]> git.proxmox.com Git - grub2.git/blame - ChangeLog
* grub-core/disk/raid.c (insert_array): Ensure uniqueness of readable
[grub2.git] / ChangeLog
CommitLineData
031f22a0
VS
12011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
2
3 * grub-core/disk/raid.c (insert_array): Ensure uniqueness of readable
4 names.
5
4388ca72
VS
62011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
7
8 * grub-core/commands/wildcard.c (match_files): Add a useful dprintf.
9 (wildcard_expand): Don't stop on nonregexp parts after regexp ones since
10 it truncates the output.
11 Reported by: Ximin Luo.
12
98e2f506
VS
132011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
14
15 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Skip . and ..
16
2a5e94d8
VS
172011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
18
19 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Load
20 partmap before abstraction.
21
535c1910
AK
222011-06-24 Alexander Kurtz <kurtz.alex@googlemail.com>
23
24 * util/grub-mkconfig_lib.in: Add missing quotes.
25
bc09e1a2
VS
262011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
27
28 * grub-core/kern/emu/getroot.c (grub_guess_root_device): Revert to
29 old method if mountinfo would return /dev/root and /dev/root doesn't
30 exist.
31
290766fb
VS
322011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
33
34 ZFS zlib support
35
36 * grub-core/fs/zfs/zfs.c (zlib_decompress): New function.
37 (decomp_table): Add zlib entries.
38 (zio_read): USe 8 bits for compression function rather than 3.
39 * include/grub/zfs/zio.h (zio_compress): Add zlib values.
40
412011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
42
43 * grub-core/disk/ahci.c: Add missing license statements.
44 * grub-core/fs/romfs.c: Likewise.
45 * grub-core/lib/ia64/setjmp.S: Likewise.
46 * grub-core/loader/i386/pc/freedos.c: Likewise.
47 * grub-core/loader/ia64/efi/linux.c: Likewise.
48 * grub-core/video/colors.c: Likewise.
49 * include/grub/dl.h (GRUB_MOD_DEP): New macro.
50
5ab3f48a
VS
512011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
52
53 AHCI support.
54
55 * grub-core/Makefile.core.def (ata_pthru): Removed.
56 (ahci): New module.
57 (pata): Likewise.
58 * grub-core/bus/usb/ohci.c (GRUB_MOD_FINI): Unregister preboot hook
59 on unload.
60 * grub-core/commands/hdparm.c (grub_hdparm_do_ata_cmd): Use ATA
61 readwrite.
62 (grub_hdparm_do_check_powermode_cmd): Likewise.
63 (grub_hdparm_do_smart_cmd): Likewise.
64 (grub_hdparm_set_val_cmd): Likewise.
65 (grub_cmd_hdparm): Likewise. Check thta we have an ATA device.
66 * grub-core/disk/ahci.c: New file.
67 * grub-core/disk/ata.c: Factor out the low-level part into ...
68 * grub-core/disk/pata.c: ... here.
69 * grub-core/disk/ata_pthru.c: Contents moved to ...
70 * grub-core/disk/pata.c: ... here.
71 * grub-core/disk/scsi.c (grub_scsi_names): New array.
72 (grub_scsi_iterate): Use grub_scsi_names.
73 (grub_scsi_open): Likewise.
74 * grub-core/kern/disk.c (grub_disk_ata_pass_through): Removed.
75 * include/grub/ata.h (grub_ata_commands): Add DMA commands.
76 (grub_ata_regs_t): New struct.
77 (grub_disk_ata_pass_through_parms): Likewise.
78 (grub_ata_device): Renamed to ...
79 (grub_ata): ... this.
80 (grub_ata_dev): New struct.
81 Removed all low-level inline functions.
82 * include/grub/scsi.h: Add PATA and AHCI subsystems.
83 (grub_scsi_dev): Removed 'name' and 'id'. Added 'id' parameter to
84 iterate hooks and open. All users updated.
85 * util/grub-install.in: Handle AHCI disk module.
86
c31dc5f5
SJ
872011-06-23 Szymon Janc <szymon@janc.net.pl>
88
89 Add support for DRI and RSTn markers in JPEG files.
90
91 * grub-core/video/readers/jpeg.c (JPEG_MARKER_DRI): New define.
92 (JPEG_MARKER_RST0): Likewise.
93 (JPEG_MARKER_RST1): Likewise.
94 (JPEG_MARKER_RST2): Likewise.
95 (JPEG_MARKER_RST3): Likewise.
96 (JPEG_MARKER_RST4): Likewise.
97 (JPEG_MARKER_RST5): Likewise.
98 (JPEG_MARKER_RST6): Likewise.
99 (JPEG_MARKER_RST7): Likewise.
100 (grub_jpeg_data): New fields dri, r1, bitmap_ptr.
101 (grub_jpeg_decode_dri): New function.
102 (grub_jpeg_decode_sos): Move image data related part into
103 grub_jpeg_decode_data function.
104 (grub_jpeg_decode_data): New function.
105 (grub_jpeg_reset): New function.
106 (grub_jpeg_decode_jpeg): Handle new markers.
107
fe12fd5b
VS
1082011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
109
110 * util/ieee1275/ofpath.c (check_sas): Close fd.
111 (main): Free of_path.
112 Reported by: David Volgyes <dvolgyes>.
113
03147f46
VS
1142011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
115
116 * util/grub-mkpasswd-pbkdf2.c (main): Don't double-close.
117 Reported by: David Volgyes <dvolgyes>.
118
cad3237f
VS
1192011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
120
121 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): Close
122 file after stat.
123 Reported by: David Volgyes <dvolgyes>.
124
13548d26
VS
1252011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
126
127 * util/raid.c (grub_util_raid_getmembers): Close fd before returning.
128
129 Reported by: David Volgyes <dvolgyes>.
130
e061a1b5
VS
1312011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
132
133 * grub-core/lib/reed_solomon.c (rs_recover) [STANDALONE]:
134 Prevent memory leak.
135
1abe47dc
VS
1362011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
137
138 * grub-core/lib/reed_solomon.c (rs_recover): Prevent memory leak.
139 (main): Close file.
e061a1b5 140 Reported by: David Volgyes <dvolgyes>.
1abe47dc 141
fbc62666
VS
1422011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
143
144 * grub-core/loader/i386/xnu.c (grub_cpu_xnu_fill_devprop): Don't attempt
145 to continue if allocation is failed.
146
147 Reported by: David Volgyes <dvolgyes>.
148
e98c83e9
DV
1492011-06-23 David Volgyes <dvolgyes>
150
151 * grub-core/bus/usb/ohci.c (grub_ohci_pci_iter): Avoid NULL-pointer
152 dereference.
153
a199a8cd
VS
1542011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
155
156 Fix spurious warning.
157
158 * grub-core/partmap/acorn.c (grub_acorn_boot_block): Make a union.
159 (acorn_partition_map_find): Use .bin member.
160
e2d1dba0
VS
1612011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
162
163 * grub-core/kern/emu/getroot.c (grub_guess_root_device): Don't accept
164 /dev/root as a valid device.
165
8a5d6919
JM
1662011-06-23 Jim Meyering <meyering@redhat.com>
167
e2d1dba0
VS
168 Avoid NULL deref in grub_device_open.
169
8a5d6919
JM
170 * grub-core/kern/device.c (grub_device_open): Don't dereference
171 a NULL pointer upon failed grub_env_get.
172
f7db6f4a
VS
1732011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
174
175 Support non-512B sectors and agglomerate reads.
176
177 * Makefile.util.def (libgrubmods.a): Add grub-core/commands/testload.c.
178 * grub-core/disk/efi/efidisk.c (grub_efidisk_data): Remove disk_io.
179 (disk_io_guid): Removed.
180 (make_devices): Locate solely by BlockIO.
181 (grub_efidisk_open): Fill log_sector_size and total_sectors.
182 (grub_efidisk_read): Use read_blocks.
183 (grub_efidisk_write): Use write_blocks.
184 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_open): Fill
185 log_sector_size.
186 (get_safe_sectors): Handle non-512B sectors.
187 (grub_biosdisk_read): Remove special CDROM handling. Handle non-512B
188 sectors.
189 (grub_biosdisk_write): Handle non-512B sectors.
190 * grub-core/disk/scsi.c (grub_scsi_open): Fill log_sector_size.
191 (grub_scsi_read): Remove special non-512B block handling (now handled
192 one level up).
193 * grub-core/kern/disk.c (grub_disk_open): Fill default log_sector_size
194 and do sanity checks.
195 (grub_disk_adjust_range): Handle non-512B sectors.
196 (transform_sector): New function.
197 (grub_disk_read_small): Likewise.
198 (grub_disk_read): Rewritten.
199 (grub_disk_write): Handle non-512B sectors.
200 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_open): Fill
201 log_sector_size.
202 (open_device): Use log_sector_size.
203 (grub_util_biosdisk_read): Likewise.
204 (grub_util_biosdisk_write): Likewise.
205 * grub-core/partmap/msdos.c (grub_partition_msdos_iterate): Handle
206 non-512B sectors.
207 (pc_partition_map_embed): Likewise.
208 * include/grub/disk.h (grub_disk): New field log_sector_size.
209 (GRUB_DISK_CACHE_SIZE): Redefined from GRUB_DISK_CACHE_BITS.
210 (GRUB_DISK_CACHE_BITS): Increased to 6.
211 * util/grub-fstest.c (fstest): New command testload.
212 (argp_parser): Likewise.
213
881ac815
RM
2142011-06-16 Robert Millan <rmh@gnu.org>
215
216 Detect `ataraid' devices on GNU/kFreeBSD. Fix for ATA devices using
217 `ata' driver on kernel of FreeBSD 9.
218
219 * util/deviceiter.c [__FreeBSD_kernel__] (get_ada_disk_name)
220 (get_ataraid_disk_name): New functions.
221 [__FreeBSD_kernel__] (grub_util_iterate_devices): Scan for ataraid
222 (/dev/ar[0-9]+) and ada (/dev/ada[0-9]+) devices using
223 get_ataraid_disk_name() and get_ada_disk_name().
224
1e9aef7d
CW
2252011-06-13 Colin Watson <cjwatson@ubuntu.com>
226
227 * docs/man/grub-mklayout.h2m (DESCRIPTION): Add a reference to the
228 input format.
229
351c7c8a
CW
2302011-05-29 Colin Watson <cjwatson@ubuntu.com>
231
232 * docs/grub.texi (Obtaining and Building GRUB): Substitute
233 `ftp.gnu.org' for `alpha.gnu.org'.
234
6b4e6430
CW
2352011-05-27 Colin Watson <cjwatson@ubuntu.com>
236
237 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Handle
238 partitions under /dev/disk/by-id/.
239
c64db050
CW
2402011-05-27 Colin Watson <cjwatson@ubuntu.com>
241
242 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Give up
243 after ten consecutive open failures. Scanning all the way up to
244 10000 is excessive and can cause serious performance problems in
245 some configurations.
246 Fixes Ubuntu bug #787461.
247
245f4aba
VS
2482011-05-21 Vladimir Serbinenko <phcoder@gmail.com>
249
250 * grub-core/disk/arc/arcdisk.c (reopen): Close old handle before
251 opening new one.
252
f767c929
VS
2532011-05-21 Colin Watson <cjwatson@ubuntu.com>
2542011-05-21 Vladimir Serbinenko <phcoder@gmail.com>
255
256 Don't stat devices unless we have to.
257
258 * grub-core/kern/emu/getroot.c (grub_find_device): Recognize
259 dir == /dev/mapper.
260 (grub_guess_root_device): Use already known os_dev if possible.
261 * grub-core/kern/emu/hostdisk.c
262 (convert_system_partition_to_system_disk): Scan only in /dev/mapper
263 if device is known to be a dm one.
264
f35fa3a6
CW
2652011-05-20 Colin Watson <cjwatson@ubuntu.com>
266
267 * util/grub-mkconfig.in: Export GRUB_CMDLINE_LINUX_XEN_REPLACE and
268 GRUB_CMDLINE_LINUX_XEN_REPLACE_DEFAULT.
269 Reported by: Pawel Tecza.
270
9a79fcf2
VS
2712011-05-19 Vladimir Serbinenko <phcoder@gmail.com>
272
273 * grub-core/Makefile.core.def (lsacpi): Fix ia64 mismerge.
274 (lsefisystab): Likewise.
275 (lssal): Likewise.
276 (lsefimmap): Likewise.
277 (hdparm): Enable on qemu-mips.
278 (setjmp): Add ia64 nodist.
279 (serial): Simplify tags.
280
63e3eea9
CW
2812011-05-18 Colin Watson <cjwatson@ubuntu.com>
282
283 * Makefile.util.def (grub-ofpathname): Install manual page.
284
09728256
CW
2852011-05-18 Colin Watson <cjwatson@ubuntu.com>
286
287 * grub-core/fs/squash4.c: Add missing GRUB_MOD_LICENSE.
288
8b63a142
CW
2892011-05-18 Colin Watson <cjwatson@ubuntu.com>
290
291 * .bzrignore: Add grub-core/modinfo.sh and a number of test files.
292
e775d8ed
VS
2932011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
294
295 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Downgrade a printf
296 into dprintf.
297
bf947d36
VS
2982011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
299
300 Use full 64-bit division.
301
302 * grub-core/kern/misc.c (grub_divmod64_full): Renamed to ...
303 (grub_divmod64): ... this.
304 * include/grub/misc.h (grub_divmod64): Removed. All users switch to full
305 version.
306
b84f26c5
CW
3072011-05-18 Colin Watson <cjwatson@ubuntu.com>
308
309 * util/grub-mkrescue.in: Use portable `.' rather than non-portable
310 `source'.
311
5626056f
CW
3122011-05-18 Colin Watson <cjwatson@ubuntu.com>
313
314 * grub-core/genmod.sh.in: Use 'set -e' rather than '#! /bin/sh -e',
315 to avoid accidents when debugging with 'sh -x'.
316 * grub-core/gensyminfo.sh.in: Likewise.
317 * tests/example_scripted_test.in: Likewise.
318 * tests/grub_cmd_regexp.in: Likewise.
319 * tests/grub_script_blanklines.in: Likewise.
320 * tests/grub_script_dollar.in: Likewise.
321 * tests/grub_script_expansion.in: Likewise.
322 * tests/grub_script_final_semicolon.in: Likewise.
323 * tests/partmap_test.in: Likewise.
324 * tests/util/grub-shell-tester.in: Likewise.
325 * tests/util/grub-shell.in: Likewise.
326
e2965f4a
CW
3272011-05-18 Colin Watson <cjwatson@ubuntu.com>
328
329 Move gfxmenu color handling to video, so that gfxterm can use it
330 too.
331
332 * grub-core/gfxmenu/named_colors.c: Move to ...
333 * grub-core/video/colors.c: ... here. Rename
334 grub_gui_get_named_color to grub_video_get_named_color.
335 * grub-core/gfxmenu/gui_string_util.c (my_isxdigit): Move to ...
336 * grub-core/video/colors.c (my_isxdigit): ... here.
337 * grub-core/gfxmenu/gui_string_util.c (parse_hex_color_component):
338 Move to ...
339 * grub-core/video/colors.c (parse_hex_color_component): ... here.
340 * grub-core/gfxmenu/gui_string_util.c (grub_gui_parse_color): Move
341 to ...
342 * grub-core/video/colors.c (grub_video_parse_color): ... here.
343
344 * include/grub/gui.h (grub_gui_color_t): Move to ...
345 * include/grub/video.h (grub_video_rgba_color_t): ... here.
346 * include/grub/gui.h (grub_gui_color_rgb): Move to ...
347 * include/grub/video.h (grub_video_rgba_color_rgb): ... here.
348 * include/grub/gui.h (grub_gui_map_color): Move to ...
349 * include/grub/video.h (grub_video_map_rgba_color): ... here.
350 * include/grub/gui_string_util.h (grub_gui_get_named_color): Move
351 to ...
352 * include/grub/video.h (grub_video_get_named_color): ... here.
353 * include/grub/gui_string_util.h (grub_gui_parse_color): Move to ...
354 * include/grub/video.h (grub_video_parse_color): ... here.
355
356 * grub-core/Makefile.core.def (kernel) [videoinkernel]: Add
357 video/colors.c.
358 (gfxmenu): Remove gfxmenu/named_colors.c.
359 (video) [videomodules]: Add video/colors.c.
360
361 Add a background_color command.
362
363 * grub-core/term/gfxterm.c (grub_gfxterm_background_color_cmd): New
364 function.
365 (GRUB_MOD_INIT): Register background_color command.
366 (GRUB_MOD_FINI): Unregister background_color command.
367 (redraw_screen_rect): Allow blend/replace of text layer to be
368 controlled independently from whether there is a background bitmap.
369 (grub_gfxterm_background_image_cmd): Change blend_text_bg when
370 changing bitmap.
371
1e4b4390
VS
3722011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
373
26618ff0
VS
374 Patch BPB in ntldr and chainloader --bpb.
375
1e4b4390
VS
376 * grub-core/fs/fat.c: Include grub/fat.h.
377 (grub_fat_bpb): Moved to ...
378 * include/grub/fat.h (grub_fat_bpb): ... here. New file.
379 * grub-core/loader/i386/pc/chainloader.c: Include grub/fat.h and
380 grub/ntfs.h.
381 * include/grub/i386/pc/chainloader.h (grub_chainloader_flags_t):
382 Moved from here...
383 * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_flags_t): ...
384 here.
385 * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_patch_bpb):
386 New function.
387 (grub_chainloader_cmd): Patch BPB if --bpb is given.
388 (GRUB_MOD_INIT): Show --bpb.
389 * grub-core/loader/i386/pc/ntldr.c (grub_cmd_ntldr): Patch BPB.
390 * grub-core/normal/main.c (features): New variable.
391 (GRUB_MOD_INIT): Set feature_* variables.
392 * include/grub/i386/pc/chainloader.h (grub_chainloader_patch_bpb): New
393 proto.
394 * include/grub/ntfs.h (grub_ntfs_bpb): New field bios_drive.
395
cf02731e
VS
3962011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
397
398 * grub-core/Makefile.core.def (ieee1275_fb): Use enable=powerpc_ieee1275
399 for cleanness.
400
e3a1073f
VS
4012011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
402
403 FreeDOS direct loading support.
404
405 * docs/grub.texi (Supported OS): Add FreeDOS.
406 * grub-core/Makefile.core.def (freedos): New module.
407 * grub-core/lib/i386/relocator.c (grub_relocator16_ebx): New extern
408 variable.
409 (grub_relocator16_boot): Handle %ebx.
410 * grub-core/lib/i386/relocator16.S: Likewise.
411 * grub-core/loader/i386/pc/freedos.c: New file.
412
05caa461
VS
4132011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
414
415 Long Linux command line support.
416
417 * grub-core/loader/i386/linux.c (GRUB_LINUX_CL_END_OFFSET): Removed.
418 (maximal_cmdline_size): New variable.
419 (allocate_pages): Use maximal_cmdline_size.
420 (grub_cmd_linux): Set and use maximal_cmdline_size.
421 * grub-core/loader/i386/pc/linux.c (GRUB_LINUX_CL_END_OFFSET): Removed.
422 (allocate_pages): Use maximal_cmdline_size.
423 (grub_cmd_linux): Set and use maximal_cmdline_size.
424 * include/grub/i386/linux.h (GRUB_LINUX_SETUP_MOVE_SIZE): Removed.
425 (linux_kernel_header): Add fields kernel_alignment, relocatable, pad
426 and cmdline_size.
427
a2491e23
VS
4282011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
4292011-05-18 Colin Watson <cjwatson@ubuntu.com>
430
431 Improve devmapper support
432
433 * grub-core/kern/emu/getroot.c (grub_util_is_dmraid): Removed.
434 (grub_util_is_lvm): New function.
435 (grub_util_get_dev_abstraction): Assume dmraid if not lvm rather
436 than lvm if not dmraid.
437 Handle mapped md nodes.
438 * grub-core/kern/emu/hostdisk.c (device_is_mapped): Rename to ...
439 (grub_util_device_is_mapped): ... this. Make always available. All users
440 updated.
441 (grub_util_get_dm_node_linear_info) [HAVE_DEVICE_MAPPER]: New function.
442 (convert_system_partition_to_system_disk): Handle lvm, mpath and
443 dmraid nodes.
444 * include/grub/emu/misc.h (grub_util_device_is_mapped): New proto.
445
6ad6223e
VS
4462011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
447
448 Unify grub-mkrescue (except powerpc) and grrub-mknetdir across platforms
449
450 * grub-core/Makefile.am (platform_DATA): Add modinfo.sh.
451 * grub-core/modinfo.sh.in: New file.
452 * grub-core/Makefile.core.def (modinfo.sh): New script.
453 * util/grub-mknetdir.in: Use modinfo.sh.
454 * util/grub-mkrescue.in: Likewise.
455
543a8f6e
VS
4562011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
457
458 * grub-core/kern/ia64/dl_helper.c (grub_ia64_dl_get_tramp_got_size):
459 Fix potential usage of Elf32 instead of Elf64 when compiling on
460 32-bit architecture. Add endianness macros while on it.
461
4959e111
VS
4622011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
463
464 Use mipsel- rather than mips- in directories involving mipsel ports to
465 allow both endiannesses coexist.
466
467 * configure.ac: proparate target_cpu=mipsel rather than resetting to
468 mips. All conditions adjusted.
469 * tests/util/grub-shell-tester.in: Remove gratuitious target_cpu
470 variable.
471 * util/grub-install.in: Adjust conditions to take renaming into account.
472 * util/grub-mkimage.c (image_targets): Likewise. New target
473 mips-qemu_mips-elf for bigendian mips.
474
35341bbc
VS
4752011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
476
477 Avoid unnecessary copying on MIPS.
478
479 * grub-core/boot/decompressor/none.c (grub_decompress_core): Exit
480 early if src == dest.
481 * util/grub-mkimage.c (generate_image): Arange for src == dest if
482 compression is none.
483
b772baed
VS
4842011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
485
486 Reduce memory footprint on SGI by putting modules before the kernel
487 as opposed to after.
488
489 * grub-core/Makefile.core.def (kernel): Increase linking address.
490 (none_decompress): Likewise.
491 (xz_decompress): Likewise.
492 * grub-core/boot/mips/startup_raw.S: Use prewritten uncompression
493 address.
494 * grub-core/kern/mips/arc/init.c (grub_machine_init): Handle memory
495 layout change.
496 (grub_arch_modules_addr): New function.
497 * grub-core/kern/mips/init.c (grub_arch_modules_addr): Moved from here...
498 * grub-core/kern/mips/loongson/init.c (grub_arch_modules_addr): .. here
499 * grub-core/kern/mips/qemu_mips/init.c (grub_arch_modules_addr): ... and
500 here.
501 * grub-core/kern/mips/startup.S (total_size): Rename to ...
502 (grub_total_modules_size): ... this. Make global.
503 [GRUB_MACHINE_ARC]: Don't attempt to move modules out of the bss.
504 * include/grub/offsets.h (GRUB_KERNEL_MIPS_LOONGSON_UNCOMPRESSED_ADDR):
505 New definition.
506 (GRUB_KERNEL_MIPS_QEMU_MIPS_UNCOMPRESSED_ADDR): Likewise.
507 (GRUB_KERNEL_MIPS_ARC_UNCOMPRESSED_ADDR): Likewise.
508 (GRUB_KERNEL_MACHINE_UNCOMPRESSED_ADDR): Likewise.
509 (GRUB_KERNEL_MIPS_ARC_LINK_ADDR): Increased.
510 * util/grub-mkimage.c (image_target_desc): New flag
511 PLATFORM_FLAGS_MODULES_BEFORE_KERNEL.
512 (image_targets): Set PLATFORM_FLAGS_MODULES_BEFORE_KERNEL on mips-arc.
513 (generate_image): Handle images with modules before kernel.
514
566a1917
VS
5152011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
516
517 Prevent potential loss of memory map by overwrite on qemu-mips.
518
519 * grub-core/boot/mips/startup_raw.S [GRUB_MACHINE_MIPS_QEMU_MIPS]:
520 Save ram size in $s4.
521 * grub-core/kern/mips/qemu_mips/init.c (RAMSIZE): Removed.
522 All users changed to grub_arch_memsize.
523 * grub-core/kern/mips/startup.S (grub_arch_machine): Restrict to
524 Loongson.
525 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Save grub_arch_memsize.
526 * grub-core/loader/mips/linux.c (grub_linux_boot): Pass memory size.
527 * include/grub/mips/qemu_mips/memory.h (grub_arch_memsize): New
528 external variable.
529
5d420cd9
CW
5302011-05-17 Colin Watson <cjwatson@ubuntu.com>
531
532 * .bzrignore: Remove grub-dumpbios.
533
d064b830
CW
5342011-05-17 Colin Watson <cjwatson@ubuntu.com>
535
536 * util/grub.d/20_linux_xen.in: Honour GRUB_CMDLINE_LINUX_XEN_REPLACE
537 and GRUB_CMDLINE_LINUX_XEN_REPLACE_DEFAULT, which replace
538 GRUB_CMDLINE_LINUX and GRUB_CMDLINE_LINUX_DEFAULT (complementing the
539 existing options which append).
540 * docs/grub.texi (Simple configuration): Document new options.
541 Reported by: Ian Jackson. Fixes Debian bug #617538.
542
3ca2b466
CW
5432011-05-17 Colin Watson <cjwatson@ubuntu.com>
544
545 * util/grub-fstest.c (cmd_cat): New function.
546 (fstest): Handle CMD_CAT.
547 (options): Add cat.
548 (argp_parser): Handle cat.
549
24c9143a
CW
5502011-05-17 Colin Watson <cjwatson@ubuntu.com>
551
552 * Makefile.util.def (grub-bin2h): Don't install.
553 * docs/man/grub-bin2h.h2m: Remove.
554
90f7ac19
VS
5552011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
556
557 * grub-core/kern/mips/startup.S (grub_arch_cpuclock): Move to the right
558 place.
559
8d4a5178
VS
5602011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
561
562 Reenable qemu-mips port.
563
564 * configure.ac: Handle --target=qemu-mips and --target=qemu_mips.
565 Fix small arc bug while on it.
566 * gentpl.py: Handle qemu_mips.
567 * grub-core/Makefile.am: Likewise.
568 * grub-core/Makefile.core.def: Likewise.
569 * grub-core/disk/ata.c [GRUB_MACHINE_MIPS_QEMU_MIPS]: Remove
570 inappropriate includes.
571 (grub_ata_pciinit) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Removed.
572 (grub_ata_initialize): [GRUB_MACHINE_MIPS_QEMU_MIPS]: Rewritten.
573 * grub-core/kern/main.c (grub_modules_get_end)
574 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Enable.
575 * grub-core/kern/mips/qemu-mips: Moved to ..
576 * grub-core/kern/mips/qemu_mips: ... this.
577 * grub-core/kern/mips/qemu_mips/init.c (grub_get_rtc): Removed.
578 (grub_machine_init): Call terminfo_init and serial_init.
579 * grub-core/kern/mips/startup.S: Change MIPS_LOONGSON to MACHINE.
580 * grub-core/loader/mips/linux.c (params) [GRUB_MACHINE_MIPS_QEMU_MIPS]:
581 New variable.
582 (grub_linux_boot) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Handle the qemu-mips
583 parameter passing.
584 (grub_linux_unload) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Free params.
585 (grub_cmd_linux) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Handle params.
586 (grub_cmd_initrd) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Likewise.
587 * include/grub/mips/qemu_mips/cmos.h: New file.
588 * include/grub/mips/qemu-mips/kernel.h: Don't include cpu/kernel.h.
589 * include/grub/mips/qemu-mips/memory.h (grub_machine_mmap_iterate):
590 Removed.
591 * include/grub/mips/qemu-mips/serial.h (GRUB_MACHINE_SERIAL_PORTS):
592 Use correct mips-style address.
593 * include/grub/mips/qemu-mips/time.h: Include cpu/time.h.
594 (GRUB_TICKS_PER_SECOND): Removed.
595 (grub_get_rtc): Likewise.
596 (grub_cpu_idle): Likewise.
597 * include/grub/offsets.h (GRUB_KERNEL_MIPS_QEMU_MIPS_LINK_ADDR):
598 New definition.
599 (GRUB_KERNEL_MIPS_QEMU_MIPS_LINK_ALIGN): Likewise.
600 (GRUB_KERNEL_MIPS_QEMU_MIPS_COMPRESSED_SIZE): Likewise.
601 (GRUB_KERNEL_MIPS_QEMU_MIPS_UNCOMPRESSED_SIZE): Likewise.
602 (GRUB_KERNEL_MIPS_QEMU_MIPS_TOTAL_MODULE_SIZE): Likewise.
603 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX): Likewise.
604 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX_END): Likewise.
605 (GRUB_KERNEL_MIPS_QEMU_MIPS_MOD_ALIGN): Likewise.
606 * util/grub-mkimage.c (image_targets): Add mipsel-qemu_mips-elf.
607
400b9371
VS
6082011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
609
610 SGI ARCS port.
611
612 * Makefile.util.def (libgrubmods.a): Add dvh.c.
613 * conf/Makefile.common (CCASFLAGS_PLATFORM): Add -mips3 on all mips
614 platforms.
615 * configure.ac: New target mips-arc.
616 * gentpl.py: Likewise.
617 * grub-core/Makefile.am: Likewise.
618 * grub-core/Makefile.core.def: Likewise.
619 (xz_decompress): Remove -D GRUB_MACHINE_LINK_ADDR.
620 (none_decompress): Likewise.
621 (lsdev): New module.
622 (datetime): Use lib/arc/datetime.c on ARC.
623 (part_dvh): New module.
624 * grub-core/commands/arc/lsdev.c: New file.
625 * grub-core/disk/arc/arcdisk.c: Likewise.
626 * grub-core/kern/mips/arc/init.c: Likewise.
627 * grub-core/kern/mips/cache_flush.S: Don't flush non 4-byte
628 aligned addresses.
629 * grub-core/kern/mips/dl.c (grub_arch_dl_check_header): Fix bigendian
630 support.
631 (grub_arch_dl_relocate_symbols): Likewise.
632 * grub-core/kern/mips/loongson/init.c (grub_get_rtc): Moved from here...
633 * grub-core/kern/mips/init.c (grub_get_rtc): ... here.
634 * grub-core/kern/mips/startup.S (grub_arch_cpuclock): Have on all
635 platforms.
636 * grub-core/lib/arc/datetime.c: New file.
637 * grub-core/loader/mips/linux.c: Always include time.h. Don't include
638 pci.h on non-loongson.
639 (envp_off) [!GRUB_MACHINE_MIPS_LOONGSON]: Remove.
640 (grub_linux_boot): Set unused registers to 0.
641 (grub_cmd_linux) [!GRUB_MACHINE_MIPS_LOONGSON]: Remove envp.
642 * grub-core/mmap/mips/loongson/uppermem.c: Moved from here ...
643 * grub-core/mmap/mips/uppermem.c: ...here.
644 * grub-core/partmap/dvh.c: New file.
645 * grub-core/term/arc/console.c: Likewise.
646 * grub-core/term/terminfo.c (ANSI_C0_STR): New const.
647 (grub_terminfo_set_current): Add terminal "arc".
648 (grub_terminfo_readkey): Support ARC sequences.
649 * include/grub/arc/arc.h: New file.
650 * include/grub/arc/console.h: Likewise.
651 * include/grub/disk.h (grub_disk_dev_id): Add
652 GRUB_DISK_DEVICE_ARCDISK_ID.
653 * include/grub/mips/arc/kernel.h: New file.
654 * include/grub/mips/arc/memory.h: Likewise.
655 * include/grub/mips/arc/time.h: Likewise.
656 * include/grub/mips/loongson/kernel.h (grub_halt): Moved from here ...
657 * include/grub/mips/kernel.h (grub_halt): ... here.
658 * include/grub/mips/loongson.h (GRUB_CPU_REGISTER_WRAP): Moved from
659 here...
660 * include/grub/mips/mips.h (GRUB_CPU_REGISTER_WRAP): ... here.
661 (GRUB_CPU_LOONGSON_COP0_TIMER_COUNT): Moved from here ...
662 * include/grub/mips/mips.h (GRUB_CPU_LOONGSON_COP0_TIMER_COUNT): .. here
663 * include/grub/mips/loongson/kernel.h (grub_reboot): Removed redundant
664 proto.
665 * include/grub/mips/loongson/memory.h (GRUB_ARCH_LOWMEMVSTART): Moved
666 from here ...
667 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMVSTART): ... here.
668 (GRUB_ARCH_LOWMEMPSTART): Moved from here ...
669 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMPSTART): ... here.
670 (GRUB_ARCH_LOWMEMMAXSIZE): Moved from here ...
671 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMMAXSIZE): ... here.
672 (GRUB_ARCH_HIGHMEMPSTART): Moved from here ...
673 * include/grub/mips/memory.h (GRUB_ARCH_HIGHMEMPSTART): ... here.
674 (grub_phys_addr_t): Moved from here ...
675 * include/grub/mips/memory.h (grub_phys_addr_t): ... here.
676 (grub_vtop): Moved from here ...
677 * include/grub/mips/memory.h (grub_vtop): ... here.
678 (grub_map_memory): Moved from here ...
679 * include/grub/mips/memory.h (grub_map_memory): ... here.
680 (grub_unmap_memory): Moved from here ...
681 * include/grub/mips/memory.h (grub_unmap_memory): ... here.
682 (grub_machine_mmap_iterate): Moved from here ...
683 * include/grub/mips/memory.h (grub_machine_mmap_iterate): ... here.
684 (grub_mmap_get_lower): Moved from here ...
685 * include/grub/mips/memory.h (grub_mmap_get_lower): ... here.
686 (grub_mmap_get_upper): Moved from here ...
687 * include/grub/mips/memory.h (grub_mmap_get_upper): ... here.
688 * include/grub/mips/loongson/time.h (grub_arch_cpuclock): Moved from
689 here ...
690 * include/grub/mips/time.h (grub_arch_cpuclock): ... here.
691 * include/grub/mips/loongson/time.h (grub_get_rtc): Moved from
692 here ...
693 * include/grub/mips/time.h (grub_get_rtc): ... here.
694 * include/grub/mips/loongson/time.h (grub_arch_cpuclock): Moved from
695 here ...
696 * include/grub/mips/time.h (grub_arch_cpuclock): ... here.
697 * include/grub/mips/loongson/time.h (grub_cpu_idle): Moved from
698 here ...
699 * include/grub/mips/time.h (grub_cpu_idle): ... here.
700 * include/grub/offsets.h (GRUB_KERNEL_MIPS_ARC_LINK_ADDR): New
701 definition.
702 (GRUB_KERNEL_MIPS_ARC_LINK_ALIGN): Likewise.
703 (GRUB_KERNEL_MIPS_ARC_COMPRESSED_SIZE): Likewise.
704 (GRUB_KERNEL_MIPS_ARC_UNCOMPRESSED_SIZE): Likewise.
705 (GRUB_KERNEL_MIPS_ARC_TOTAL_MODULE_SIZE): Likewise.
706 (GRUB_KERNEL_MIPS_ARC_PREFIX): Likewise.
707 (GRUB_KERNEL_MIPS_ARC_PREFIX_END): Likewise.
708 (GRUB_KERNEL_MIPS_ARC_MOD_ALIGN): Likewise.
709 (GRUB_MACHINE_LINK_ADDR): Likewise.
710 * include/grub/terminfo.h (GRUB_TERMINFO_READKEY_MAX_LEN): Increased
711 to 6.
712 * util/grub-install.in: Run dvhtool on ARC.
713 * util/grub-mkimage.c (image_targets): Add mips-arc.
b6296b3f 714 (generate_image): Handle ECOFF output for mips-arc.
400b9371 715
c8ecc840
VS
7162011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
717
718 * grub-core/bus/pci.c (grub_memalign_dma32): Always allocate in 64-byte
719 blocks.
720
153a4b55
VS
7212011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
722
723 * grub-core/bus/usb/usbhub.c (attach_root_port): Wait 10ms
724 after enabling port.
725
ff44d107
VS
7262011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
727
728 Skip incorrect USB devices.
729
730 * grub-core/bus/usb/usb.c (grub_usb_device_initialize): Fail if
731 configcnt == 0.
732 * include/grub/usb.h (grub_usb_err_t): New enum value
733 GRUB_USB_ERR_BADDEVICE.
734
638dbe4f
VS
7352011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
736
737 Fuloong video init support.
738
739 * include/grub/vga.h (grub_vga_write_arx): inb monochrome address as
740 well.
741 (grub_vga_read_arx): New function.
742 * grub-core/video/sis315pro.c (GRUB_SIS315PRO_MMIO_SPACE): New
743 definition.
744 (framebuffer): New members io, mmioptr and mmiobase.
745 (read_sis_cmd): New function.
746 (write_sis_cmd): Likewise.
747 (grub_video_sis315pro_setup): Do the initialisation. Use 640x480
748 rather than 640x400.
749 * grub-core/video/sis315_init.c: New file.
750
c3fc520c
VS
7512011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
752
753 * grub-core/bus/cs5536.c: Don't include grub/machine/kernel.h on
754 non-loongson.
755 * grub-core/kern/mips/dl.c (grub_arch_dl_init_linker): Fix argument
756 to grub_dl_register_symbol.
757
67b1e5c9
VS
7582011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
759
760 Fix compilation errors.
761
762 * grub-core/term/ns8250.c (serial_get_divisor): Declare 'port' as
763 potentially unused.
764 * grub-core/loader/i386/linux.c (grub_linux_setup_video):
765 Handle GRUB_VIDEO_DRIVER_SIS315PRO.
766 * grub-core/bus/cs5536.c (grub_cs5536_init_geode): Restrict DIVIL init
767 to loongson machines.
768
b756f75f
VS
7692011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
770
771 Several FS mtime support.
772
773 * grub-core/fs/affs.c (grub_affs_time): New struct.
774 (grub_affs_file): New field mtime.
775 (grub_fshelp_node): Changed 'block' and 'parent' to more appropriate
776 type. Removed 'size'. New field 'di'. All users updated.
777 (grub_affs_mount): Simplify checsum checking.
778 (grub_affs_iterate_dir): New helper grub_affs_create_node.
779 (grub_affs_dir): Handle mtime.
780 * grub-core/fs/cpio.c (grub_cpio_find_file): Handle mtime.
781 (grub_cpio_dir): Likewise.
782 * grub-core/fs/hfs.c (grub_hfs_dirrec): New fields 'ctime' and 'mtime'.
783 (grub_hfs_filerec): New field mtime.
784 (grub_hfs_dir): Handle mtime.
785 (grub_hfs_mtime): New function.
786 (grub_hfs_fs): Register grub_hfs_mtime.
787 * grub-core/fs/iso9660.c (grub_iso9660_date2): New struct.
788 (grub_iso9660_dir): New field mtime.
789 (grub_fshelp_node): New field dirent.
790 (iso9660_to_unixtime): New function.
791 (iso9660_to_unixtime2): Likewise.
792 (grub_iso9660_read_symlink): Use node->dirent.
793 (grub_iso9660_iterate_dir): Likewise.
794 (grub_iso9660_dir): Set mtime.
795 (grub_iso9660_mtime): New function.
796 (grub_iso9660_fs): Register grub_iso9660_mtime.
797 * grub-core/fs/jfs.c (grub_jfs_time): New struct.
798 (grub_jfs_inode): New fields atime, ctime and mtime.
799 (grub_jfs_dir): Set mtime.
800 * grub-core/fs/minix.c (grub_minix_dir): Likewise.
801 * grub-core/fs/ntfs.c (list_file): Set mtime.
802 (grub_ntfs_dir): Likewise.
803 * grub-core/fs/reiserfs.c (grub_fshelp_node): New field 'mtime'.
804 (grub_reiserfs_iterate_dir): Set mtime.
805 (grub_reiserfs_dir): Likewise.
806 * grub-core/fs/sfs.c (grub_sfs_obj): New field mtime.
807 (grub_fshelp_node): Likewise.
808 (grub_sfs_iterate_dir): Set mtime.
809 (grub_sfs_dir): Likewise.
810 * grub-core/fs/udf.c (grub_udf_dir): Set mtime.
811 * grub-core/fs/xfs.c (grub_xfs_time): New struct.
812 (grub_xfs_inode): New fields atime, mtime, ctime.
813 (grub_xfs_dir): Set mtime.
814 * include/grub/datetime.h (grub_datetime2unixtime): New function.
815 * include/grub/hfs.h (grub_hfs_sblock): New fields ctime and mtime.
816 * include/grub/ntfs.h (grub_fshelp_node): New field mtime.
817
818 Support UDF symlinks.
819
820 * grub-core/fs/udf.c (grub_udf_iterate_dir): Handle symlinks.
821 (grub_ufs_read_symlink): New function. All users updated.
822
823 Check amiga partmap checksum.
824
825 * grub-core/partmap/amiga.c (grub_amiga_rdsk): Pad to 128 bytes.
826 (grub_amiga_partition): Likewise.
827 (amiga_partition_map_checksum): New function.
828 (amiga_partition_map_iterate): Check checksum.
829
5470225d
VS
8302011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
831
832 ROMFS support.
833
834 * Makefile.util.def (libgrubmods.a): Add romfs.
835 * grub-core/Makefile.core.def (romfs): New module.
836 * grub-core/fs/romfs.c: New file.
837
d4680a35
VS
8382011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
839
840 Squashfs v4 support.
841
842 * Makefile.util.def (libgrubmods.a): Add squash4.
843 * grub-core/Makefile.core.def (squash4): New module.
844 * grub-core/fs/squash4.c: New file.
845 * grub-core/io/gzio.c (grub_gzio): New members disk_input_off,
846 disk_input_start, disk_input.
847 (get_byte): Handle disk_input.
848 (grub_zlib_disk_read): New function.
849 * include/grub/deflate.h (grub_zlib_disk_read): New proto.
850
bcb18e74
FZ
8512011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
8522011-05-15 Feiran Zheng <famcool@gmail.com>
853
854 * Makefile.util.def (libgrubmods.a): Add minix3.
855 * grub-core/Makefile.core.def (minix3): New module.
856 * grub-core/fs/minix.c (GRUB_MINIX_MAGIC) [MODE_MINIX3]: New value.
857 (GRUB_MINIX_BSIZE): Removed.
858 (GRUB_MINIX_INODE_DIR_BLOCKS): New definition. All users updated.
859 (grub_minix_ino_t): New type.
860 (grub_minix_le_to_cpu_ino): New macro.
861 (GRUB_MINIX_ZONE2SECT): New definition. All users updated.
862 (grub_minix_sblock) [MODE_MINIX3]: Change for minix3.
863 (grub_minix_data): New field block_size.
864 (grub_minix_read_file): Handle 64-bit correctly.
865 * grub-core/fs/minix3.c: New file.
866
32297d5f
TG
8672011-05-15 Tristan Gingold <gingold@free.fr>
8682011-05-15 Robert Millan <rmh.grub@aybabtu.com>
8692011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
870
871 IA64 support.
872
873 * Makefile.util.def (libgrubmods.a): Add grub-core/kern/ia64/dl_helper.c
874 * configure.ac: Add ia64-efi target.
875 Probe for __ia64_trampoline, __udivsi3, __umoddi3, __udivdi3,
876 __divsi3, __modsi3, __umodsi3, __moddi3 and __divdi3 symbols.
877 * gentpl.py: Add ia64_efi platform.
878 Rename x86_efi to efi and Add ia64-efi. All users updated.
879 * grub-core/Makefile.am: Set KERNEL_HEADER_FILES for ia64-efi.
880 * grub-core/Makefile.core.def (kernel.img): Add compile flags for ia64.
881 Remove kern/generic/rtc_get_time_ms.c on EFI.
882 Add kern/ia64/efi/startup.S, kern/ia64/efi/init.c, kern/ia64/dl.c,
883 kern/ia64/dl_helper.c on ia64-efi.
884 Add kern/emu/cache.c on emu.
885 (linux): Use on loader/ia64/efi/linux.c on ia64.
886 * grub-core/gensymlist.sh (grub_register_exported_symbols): Check
887 whether symbol is a function.
888 * grub-core/kern/dl.c [GRUB_MACHINE_EMU]: Include sys/mman.h.
889 (grub_symbol): New field 'isfunc'.
890 (grub_dl_resolve_symbol): Return whole symbol rather than just address.
891 (grub_dl_register_symbol): New argument 'isfunc'. All users updated.
892 (grub_dl_load_segments): Place all sections into the same region.
893 [__ia64__]: Create trampolines and got.
894 [GRUB_MACHINE_EMU]: Call mprotect.
895 (grub_dl_resolve_symbols): Resolve symbol type as well.
896 [__ia64__]: Create function descriptors.
897 * grub-core/kern/efi/efi.c (grub_get_rtc): Renamed to ...
898 (grub_rtc_get_time_ms): ... this. Expressions simplified.
899 (grub_get_rtc): New function.
900 * grub-core/kern/emu/cache.c [__ia64__]: New file.
901 * grub-core/kern/emu/cache.S: Renamed to ...
902 * grub-core/kern/emu/cache_s.S: ... this.
903 [__ia64__]: Add a nop.
904 * grub-core/kern/emu/full.c (grub_arch_dl_get_tramp_got_size)
905 [__ia64__]: New function.
906 * grub-core/kern/emu/lite.c [__ia64__]: Include ../ia64/dl.c.
907 * grub-core/kern/ia64/dl.c: New file.
908 * grub-core/kern/ia64/dl_helper.c: Likewise.
909 * grub-core/kern/ia64/efi/init.c: New file.
910 * grub-core/kern/ia64/efi/startup.S: Likewise.
911 * grub-core/lib/efi/halt.c [__ia64__]: Don't try acpi.
912 * grub-core/lib/ia64/longjmp.S: New file (from glibc).
913 * grub-core/lib/ia64/setjmp.S: Likewise (from glibc).
914 * grub-core/lib/setjmp.S [__ia64__]: Include ./ia64/setjmp.S.
915 * grub-core/loader/ia64/efi/linux.c: New file.
916 * include/grub/dl.h (GRUB_MOD_NAME): Redefined using C rather than asm.
917 (GRUB_MOD_DEP): Likewise.
918 (grub_dl) [__ia64__]: New fields got and tramp.
919 (grub_dl): New field 'base'.
920 (grub_dl_register_symbol): New argument isfunc. All users updated.
921 (GRUB_IA64_DL_TRAMP_ALIGN): New definition.
922 (GRUB_IA64_DL_TRAMP_SIZE): Likewise.
923 (GRUB_IA64_DL_GOT_ALIGN): Likewise.
924 (grub_ia64_dl_get_tramp_got_size): New proto.
925 (GRUB_ARCH_DL_TRAMP_ALIGN) [__ia64__]: Likewise
926 (GRUB_ARCH_DL_GOT_ALIGN) [__ia64__]: Likewise
927 (grub_arch_dl_get_tramp_got_size) [__ia64__]: Likewise
928 * include/grub/efi/api.h: Skip call wrappers on ia64.
929 * include/grub/efi/pe32.h (GRUB_PE32_MACHINE_IA64): New definition.
930 * include/grub/efi/time.h (GRUB_TICKS_PER_SECOND): Change to 1000.
931 * include/grub/elf.h (ELF_ST_INFO): New definition.
932 * include/grub/ia64/efi/kernel.h: New file.
933 * include/grub/ia64/efi/memory.h: Likewise.
934 * include/grub/ia64/efi/time.h: Likewise.
935 * include/grub/ia64/kernel.h: Likewise.
936 * include/grub/ia64/setjmp.h: Likewise (from glibc).
937 * include/grub/ia64/time.h: New file.
938 * include/grub/ia64/types.h: Likewise.
939 * include/grub/libgcc.h (__udivsi3, __umodsi3, __umoddi3, __udivdi3,
940 __moddi3, __divdi3, __divsi3, __modsi3, __ia64_trampoline):
941 New protos.
942 * include/grub/offsets.h (GRUB_KERNEL_IA64_EFI_PREFIX): New definition.
943 (GRUB_KERNEL_IA64_EFI_PREFIX_END): Likewise.
944 * include/grub/types.h (PRIxGRUB_ADDR): Likewise.
945 * util/grub-mkimage.c (image_target_desc): New field pe_target.
946 All users updated.
947 (EFI64_HEADER_SIZE): New definition. All users updated.
948 (image_targets): Add ia64-efi.
949 * util/grub-mkimagexx.c (relocate_symbols): New arguments jumpers and
950 jumpers_addr. All users updated.
951 Create function descriptors.
952 (count_funcs): New function.
953 (unaligned_uint32): New struct.
954 (MASK20): New definition.
955 (MASK19): Likewise.
956 (MASKF21): Likewise.
957 (add_value_to_slot_20b): New function.
958 (add_value_to_slot_21_real): Likewise.
959 (add_value_to_slot_21): Likewise.
960 (ia64_kernel_trampoline): New struct.
961 (nopm): New variable.
962 (jump): Likewise.
963 (make_trampoline): New function.
964 (relocate_addresses): Handle ia64.
965 (make_reloc_section): Likewise.
966 (load_image): Likewise.
967
983b414d
VS
9682011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
969
970 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Silence spurious
971 warning. Move variables before code while on it.
972
5d063cdc
VS
9732011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
974
975 Fuloong support.
976
977 * configure.ac: Rename yeeloong platform to loongson. All users updated.
978 * grub-core/Makefile.core.def (fwstart_fuloong): New image.
979 * grub-core/boot/mips/loongson/fuloong.S: New file.
980 * grub-core/boot/mips/loongson/fwstart.S: Wait for CS5536 to come up.
981 Explicitly init CS5536.
982 [FULOONG]: Don't use serial until CS5536 is available.
983 Set GPIO based on dumps.
984 (serial_hw_init) [FULOONG]: Handle CS5536 parts.
985 [FULOONG]: Handle GPIO and memory controller differences.
986 Parse machine type in $a2.
987 * grub-core/boot/mips/startup_raw.S: Determine and save the
988 architecture.
989 * grub-core/bus/cs5536.c (gpiodump): Move to fwstart.S.
990 (grub_cs5536_init_geode): Remove gpio part. Conditionalise DIVIL
991 init on architecture type.
992 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Init
993 SIS315E. Don't init at_keyboard on fuloong.
994 (grub_halt): Support Fuloong.
995 * grub-core/kern/mips/startup.S [LOONGSON]: Save $s7.
996 * grub-core/loader/mips/linux.c (LOONGSON_MACHTYPE): Removed.
997 (loongson_machtypes): New array.
998 (grub_cmd_linux) [GRUB_MACHINE_MIPS_LOONGSON]: Pass the right machine
999 type.
1000 * grub-core/term/ns8250.c (serial_get_divisor): New parameter port and
1001 config. All users updated. Handle CS5536 serial.
1002 * grub-core/term/serial.c (grub_serial_register): Conditionalise
1003 default port on machine type. Register serial as inactive.
1004 * grub-core/video/sis315pro.c: New file.
1005 * include/grub/cs5536.h (GRUB_CS5536_MSR_MAILBOX_CONFIG_ENABLED): New
1006 definition.
1007 (GRUB_CS5536_MSR_MAILBOX_CONFIG): Likewise.
1008 (GRUB_CS5536_MSR_DIVIL_LEG_IO_UART1_COM1): Likewise.
1009 (GRUB_CS5536_MSR_DIVIL_LEG_IO_UART2_COM3): Likewise.
1010 (GRUB_CS5536_MSR_DIVIL_UART1_CONF): Likewise.
1011 (GRUB_CS5536_MSR_DIVIL_UART2_CONF): Likewise.
1012 * include/grub/mips/loongson.h (GRUB_CPU_LOONGSON_SHUTDOWN_GPIO): Rename
1013 to ...
1014 (GRUB_CPU_YEELOONG_SHUTDOWN_GPIO): ... this.
1015 * include/grub/mips/loongson/kernel.h (GRUB_ARCH_MACHINE_YEELOONG): New
1016 definition.
1017 (GRUB_ARCH_MACHINE_FULOONG): Likewise.
1018 (grub_arch_machine): New extern var.
1019 * include/grub/mips/loongson/serial.h
1020 (GRUB_MACHINE_SERIAL_DIVISOR_115200): Renamed to ...
1021 (GRUB_MACHINE_SERIAL_PORT0_DIVISOR_115200): ... this.
1022 (GRUB_MACHINE_SERIAL_PORT): Renamed to ...
1023 (GRUB_MACHINE_SERIAL_PORT0): ... this.
1024 (GRUB_MACHINE_SERIAL_PORT2_DIVISOR_115200): New definition.
1025 (GRUB_MACHINE_SERIAL_PORT1): Likewise.
1026 (GRUB_MACHINE_SERIAL_PORT2): Likewise.
1027 (GRUB_MACHINE_SERIAL_PORTS): Include ports 1 and 2.
1028 * include/grub/term.h (grub_term_register_input_inactive): New inline
1029 function.
1030 (grub_term_register_output_inactive): Likewise.
1031 * include/grub/video.h (grub_video_driver_id): New value
1032 GRUB_VIDEO_DRIVER_SIS315PRO.
1033 * util/grub-mkimage.c (image_target_desc): Rename name to dirname.
1034 New field "names". All users updated.
1035 New field value IMAGE_FULOONG_FLASH.
1036 (generate_image): USe separate fwstart hashes for yeeloong and fuloong.
1037
6ada82d1
JU
10382011-05-14 Jordan Uggla <jordan.uggla@gmail.com>
1039
1040 * docs/grub.texi (Invoking grub-install): Fix additional outdated claims
1041 and add some clarification.
1042
90c571a4
VS
10432011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
1044
1045 * util/grub.d/10_linux.in: Autoload gzio since it's needed on some
1046 platforms if kernel is compressed.
1047
de04eecf
VS
10482011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
1049
1050 * grub-core/kern/mm.c (grub_memalign): Disable auto-unloadding of
1051 unused modules since currently referrence counter isn't reliable and
1052 there isn't much memory to recover there anyway.
1053
57688121
VS
10542011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
1055
1056 * grub-core/kern/dl.c (grub_dl_load_file): Decrease ref counter
1057 rather than resetting it to allow modules to reference themselves
1058 in init.
1059
3d2c7e35
VS
10602011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
1061
1062 * grub-core/kern/dl.c (grub_dl_unload): Don't decrease reference
1063 counter on dependencies since grub_dl_unref already handles this.
1064
b25db218
VS
10652011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
1066
1067 * grub-core/font/font_cmd.c (loadfont_command): Set grub_errno
1068 on error if not already done.
1069
25a45338
VS
10702011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
1071
1072 Fix few potential memory misusage.
1073
1074 * grub-core/font/font.c (load_font_index): Don't free char_index to
1075 avoid double free.
b25db218
VS
1076 (grub_font_load): Zero-fill font at alloc for safety.
1077 Close file on error.
1078 (free_font): Free bmp_idx.
25a45338 1079
0cac83df
VS
10802011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
1081
1082 * docs/grub.texi (Installation): Fix several outdated claims.
1083
2217a143
VS
10842011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
1085
1086 Handle module_license on windows.
1087
1088 * util/grub-pe2elf.c (MODLICENSE_SECTION): New definition. All following
1089 sections shifted.
1090 (insert_string): Make argument const char * instead of char *.
1091 (write_section_data): Handle long section names.
1092 Handle module_license.
1093
d4de6b01
VS
10942011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
1095
1096 * grub-core/commands/menuentry.c (grub_cmd_menuentry): Correctly
1097 handle class-free menuentries.
1098 (grub_normal_add_menu_entry): Add a check to be sure.
1099
4c2a3b43
VS
11002011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
1101
1102 * grub-core/term/at_keyboard.c (set1_e0_mapping): Fix swap between
1103 PgUp and PgDown.
1104
85c6210f
VS
11052011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
1106
1107 * configure.ac: Bump version to 1.99.
1108
36084912
VS
11092011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
1110
1111 Give ATA device a bit more time on first try in order to allow disks
1112 to spin up.
1113
1114 * grub-core/disk/ata.c (grub_atapi_identify): Use GRUB_ATA_TOUT_DEV_INIT
1115 if dev->present is 1. Reset dev->present on failure.
1116 (grub_ata_device_initialize): Set dev->present to 1.
1117 * include/grub/ata.h (GRUB_ATA_TOUT_DEV_INIT): New value.
1118 (grub_ata_device): New member 'present'.
1119
bda0e219
VS
11202011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
1121
1122 * util/grub-mkimage.c (generate_image): Update hash.
1123
19e1c41b
VS
11242011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
1125
1126 Flush caches on DMA memory.
1127
1128 * grub-core/kern/mips/cache.S (grub_arch_sync_dma_caches): New function.
1129 * grub-core/bus/pci.c (grub_memalign_dma32): Flush caches.
1130 (grub_dma_free): Likewise.
1131 * include/grub/cache.h (grub_arch_sync_dma_caches): New declaration.
1132
91bbcc0c
VS
11332011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
1134
1135 * grub-core/boot/mips/yeeloong/fwstart.S: Add explicit set mips3
1136 to avoid asm treating ld and sd as macros.
1137
60ddfad3
VS
11382011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
1139
1140 * grub-core/boot/mips/startup_raw.S: Flush cache after loading
1141 decompressor.
1142
a298aa04
VS
11432011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
1144
1145 * grub-core/boot/mips/startup_raw.S: Use jalr rather than bal to call
1146 grub_decompress_core since later would fail if grub_decompress_core
1147 is too far.
1148
9b44feca
VS
11492011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
1150
1151 * grub-core/kern/mips/dl.c (grub_arch_dl_relocate_symbols): Handle
1152 R_MIPS_JALR since it's used by newer compiler.
1153
56dbe7b4
VS
11542011-05-10 Vladimir Serbinenko <phcoder@gmail.com>
1155
1156 * util/grub.d/10_linux.in: Correctly handle the Linux in root.
1157
52856af2
VS
11582011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
1159
1160 * grub-core/loader/efi/chainloader.c (grub_chainloader_unload): Set
1161 file_path to 0 for surety.
1162 (grub_chainloader_boot): Set exit_data to NULL.
1163 Unset the loader once done.
1164 (grub_cmd_chainloader): Fix confusing error message if file is empty.
1165
9c9bfc6d
VS
11662011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
1167
1168 * grub-core/term/at_keyboard.c (fetch_key): Make a printf on
1169 unknown key into a dprintf.
1170
dd94a3df
VS
11712011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
1172
1173 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Don't abort
1174 on first non-existant partition.
1175
fa68d99c
VS
11762011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
1177
1178 * grub-core/kern/emu/hostdisk.c (open_device): Set data->fd to -1 if
1179 openning fails.
1180 Reported by: Mark Korenberg.
1181
157effb7
VS
11822011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
1183
1184 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Prevent possible
1185 overflow.
1186
ea75312f
VS
11872011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
1188
1189 * util/grub-mkimage.c (main): Explicitely flush and sync the output
1190 before closing to ensure that it will be readable by grub-setup.
1191
072b5d31
VS
11922011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
1193
1194 * grub-core/loader/efi/appleloader.c (MAKE_PIWG_PATH): New macro.
1195 (devpath_1): Use MAKE_PIWG_PATH.
1196 (devpath_2): Likewise.
1197 (devpath_3): Likewise.
1198 (devpath_4): Likewise.
1199 (devpath_5): Likewise.
1200 (devpath_6): Likewise.
1201
1202 The appleldr.mod was checked that to be binary identical to previous
1203 version.
1204
7fae0051
Z
12052011-05-05 Zach <mikezackles>
1206
1207 Support 2010 Macbooks.
1208
1209 * grub-core/loader/efi/appleloader.c (devpath_6): New variable.
1210 (devs): Add devpath_6.
1211
7c515bee
VS
12122011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
1213
1214 * util/grub-mkpasswd-pbkdf2.c (main): Use /dev/urandom and not
1215 /dev/random. /dev/urandom is good enough for our purposes (salting).
1216
ed660bd8
VS
12172011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
1218
1219 * util/grub-mkrescue.in (process_input_dir): Include efiemu??.o.
1220
ee5614b7
VS
12212011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
1222
1223 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Correctly handle
1224 hexadecimal.
1225
664889a6
VS
12262011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
1227
1228 * grub-core/efiemu/main.c (grub_efiemu_load_file): Return grub_errno
1229 and not 0 on failure.
1230
bd405bbc
CW
12312011-05-03 Colin Watson <cjwatson@ubuntu.com>
1232
1233 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_dir): Return
1234 GRUB_ERR_BAD_FS rather than GRUB_ERR_IO if the disk is not a pxe
1235 disk; otherwise grub_fs_probe will not fall back to the next
1236 filesystem.
1237 (grub_pxefs_open): Likewise, for consistency.
1238 Reported and tested by: Ezekiel Grave.
1239
4ebff753
CW
12402011-05-03 Colin Watson <cjwatson@ubuntu.com>
1241
1242 * tests/partmap_test.in: Don't hardcode path to parted.
1243 Reported by: Peter Hjalmarsson. Fixes Savannah bug #33150.
1244
8f942553
CW
12452011-05-01 Colin Watson <cjwatson@ubuntu.com>
1246
1247 * docs/grub.texi (GRUB only offers a rescue shell): Suggest the use
1248 of `ls' to find out which devices are available.
1249
3c62402d
VS
12502011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
1251
1252 * grub-core/loader/i386/linux.c (grub_linux_boot): Supply target rather
1253 than source address for efi mmap buffer.
1254
723f63f2
VS
12552011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
1256
1257 * grub-core/partmap/amiga.c (amiga_partition_map_iterate): Fix a
1258 wrong action on non-detecting the magic.
1259
68797f92
VS
12602011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
1261
1262 * grub-core/gnulib/regex.c: Remove GRUB_MOD_LICENSE since it's
1263 already supplied by another part of the module (fixes compilation on
1264 FreeBSD).
1265
6be8715d
VS
12662011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
1267
1268 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Make mdraid UUID
1269 match the one used by mdadm.
1270
e91dba5b
CW
12712011-04-21 Colin Watson <cjwatson@ubuntu.com>
1272
1273 * po/README: Add instructions for creating po/LINGUAS.
1274
c85140b3
CW
12752011-04-21 Colin Watson <cjwatson@ubuntu.com>
1276
1277 Add "SEE ALSO" sections to most man pages. Fixes Debian bug
1278 #551428.
1279
1280 * docs/man/grub-editenv.h2m (SEE ALSO): New section.
1281 * docs/man/grub-emu.h2m (SEE ALSO): Likewise.
1282 * docs/man/grub-fstest.h2m (SEE ALSO): Likewise.
1283 * docs/man/grub-install.h2m (SEE ALSO): Likewise.
1284 * docs/man/grub-macho2img.h2m (SEE ALSO): Likewise.
1285 * docs/man/grub-menulst2cfg.h2m (SEE ALSO): Likewise.
1286 * docs/man/grub-mkconfig.h2m (SEE ALSO): Likewise.
1287 * docs/man/grub-mkdevicemap.h2m (SEE ALSO): Likewise.
1288 * docs/man/grub-mkfont.h2m (SEE ALSO): Likewise.
1289 * docs/man/grub-mkimage.h2m (SEE ALSO): Likewise.
1290 * docs/man/grub-mklayout.h2m (SEE ALSO): Likewise.
1291 * docs/man/grub-mknetdir.h2m (SEE ALSO): Likewise.
1292 * docs/man/grub-mkpasswd-pbkdf2.h2m (SEE ALSO): Likewise.
1293 * docs/man/grub-mkrelpath.h2m (SEE ALSO): Likewise.
1294 * docs/man/grub-mkrescue.h2m (SEE ALSO): Likewise.
1295 * docs/man/grub-ofpathname.h2m (SEE ALSO): Likewise.
1296 * docs/man/grub-pe2elf.h2m (SEE ALSO): Likewise.
1297 * docs/man/grub-probe.h2m (SEE ALSO): Likewise.
1298 * docs/man/grub-reboot.h2m (SEE ALSO): Likewise.
1299 * docs/man/grub-script-check.h2m (SEE ALSO): Likewise.
1300 * docs/man/grub-set-default.h2m (SEE ALSO): Likewise.
1301 * docs/man/grub-setup.h2m (SEE ALSO): Likewise.
1302
92051871
CW
13032011-04-21 Colin Watson <cjwatson@ubuntu.com>
1304
1305 * grub-core/kern/emu/getroot.c
1306 (grub_find_root_device_from_mountinfo): Remove non-virtual-device
1307 test that was incorrectly reintroduced in r3214.
1308 Reported by: Ian Dall. Fixes Savannah bug #33133.
1309
b13f79a4
CW
13102011-04-21 Colin Watson <cjwatson@ubuntu.com>
1311
1312 Fix stack pointer handling in 16-bit relocator.
1313
1314 * grub-core/lib/i386/relocator16.S (grub_relocator16_start): Move
1315 grub_relocator16_sp to %esp rather than %ss, and zero-extend it.
1316 Fixes Ubuntu bug #683904.
1317
9b710a88
VS
13182011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
1319
1320 * configure.ac: Bump version to 1.99~rc2.
1321
d97e7b59
VS
13222011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
1323
1324 * include/grub/dl.h [ASM_FILE]: Adapt for assembly.
1325 * grub-core/lib/i386/setjmp.S: Add missing GRUB_MOD_LICENSE.
1326 * grub-core/lib/x86_64/setjmp.S: Likewise.
1327 * grub-core/lib/mips/setjmp.S: Likewise.
1328 * grub-core/lib/powerpc/setjmp.S: Likewise.
1329 * grub-core/lib/sparc64/setjmp.S: Likewise.
1330
0624551c
VS
13312011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
1332
1333 * grub-core/lib/efi/datetime.c: Add missing GRUB_MOD_LICENSE.
1334 * grub-core/lib/efi/datetime.c: Likewise.
1335
e8f28d4c
VS
13362011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
1337
1338 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_flush):
1339 New function.
1340 (grub_util_biosdisk_close): Use grub_util_biosdisk_flush.
1341 * include/grub/emu/hostdisk.h (grub_util_biosdisk_flush): New proto.
1342 * util/grub-setup.c (setup): Use grub_util_biosdisk_flush.
1343
bba79a15
VS
13442011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
1345
1346 * grub-core/term/gfxterm.c (grub_gfxterm_fullscreen): Preserve previous
1347 bitmap.
1348 (grub_gfxterm_term_init): Likewise.
1349
abc474ef
VS
13502011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
1351
1352 Take into account the decorations the computing menu entry width.
1353
1354 * grub-core/gfxmenu/widget-box.c (get_border_width): New function.
1355 (grub_gfxmenu_create_box): Register get_border_width.
1356 * grub-core/gfxmenu/gui_list.c (draw_menu): Use get_border_width
1357 if available.
1358 * include/grub/gfxwidgets.h (grub_gfxmenu_box): New member
1359 get_border_width.
1360
e74b3947
EP
13612011-04-18 Endres Puschner <code@e7p.de>
1362
1363 * grub-core/gfxmenu/icon_manager.c (grub_gfxmenu_icon_manager_get_icon):
1364 Don't skip first class.
1365
34faa595
VS
13662011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
1367
1368 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Support huge
1369 chunks.
1370 * include/grub/err.h (grub_err_t): New enum value GRUB_ERR_BUG.
1371
93a777e3
VS
13722011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
1373
1374 Complete 64-bit division support.
1375
1376 * grub-core/kern/misc.c (grub_divmod64): Rename to ...
1377 (grub_divmod64_full): ... this. Support 64-bit divisor and reminder.
1378 * include/grub/misc.h (grub_divmod64): Rename to ...
1379 (grub_divmod64_full): ... this.
1380 (grub_divmod64): New inline function.
1381
a5102d94
VS
13822011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
1383
1384 * util/grub-mkimage.c (generate_image): Add forgotten comma.
1385
f3fb7b36
VS
13862011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
1387
1388 * util/grub-mkimage.c (generate_image): Update fwstart.img hash after
1389 performing the necessary test.
1390
9ac718b0
VS
13912011-04-17 Vladimir Serbinenko <phcoder@gmail.com>
1392
1393 * Makefile.am (multiboot.elf): Add -Wl,--build-id=none.
1394 (kfreebsd.elf): Likewise.
1395 (pc-chainloader.elf): Likewise.
1396 (ntldr.elf): Likewise.
1397
50d2cc5a
VS
13982011-04-17 Vladimir Serbinenko <phcoder@gmail.com>
1399
1400 Identify RAID by its UUID rather than (guessed) name.
1401
1402 * grub-core/disk/raid.c (ascii2hex): New function.
1403 (grub_raid_open): Accept mduuid/%s specification.
1404 * grub-core/kern/emu/getroot.c (get_mdadm_name): Revamped into ...
1405 (get_mdadm_uuid): ... this.
1406 (grub_util_get_grub_dev): Use mduuid/%s if UUID is available.
1407
e03f7bea
VS
14082011-04-16 Vladimir Serbinenko <phcoder@gmail.com>
1409
1410 * grub-core/gfxmenu/gui_image.c (rescale_image): Don't attempt to scale
1411 to negative size.
1412
e74c3112
CW
14132011-04-13 Colin Watson <cjwatson@ubuntu.com>
1414
1415 * util/grub.d/10_linux.in: Add rootflags=subvol=<name> if / is on a
1416 btrfs subvolume.
1417 * util/grub.d/20_linux_xen.in: Likewise.
1418
78fa584f
CW
14192011-04-13 Colin Watson <cjwatson@ubuntu.com>
1420
1421 Rewrite /proc/self/mountinfo handling to cope with bind-mounts and
1422 move-mounts appearing out of order. Fixes Ubuntu bug #738345.
1423
1424 * grub-core/kern/emu/getroot.c (find_root_device_from_mountinfo):
1425 Build a list of relevant visible mounts using the mnt_id and
1426 parent_mnt_id fields, and then scan that list at the end.
1427
9d5f8162
CW
14282011-04-12 Colin Watson <cjwatson@ubuntu.com>
1429
1430 * docs/grub.texi (normal): New section.
1431 (normal_exit): New section.
1432 (Embedded configuration): Add reference to normal.
1433 (GRUB only offers a rescue shell): Likewise.
1434 * docs/grub-dev.texi (Error Handling): Fix typo.
1435
09a9d66f
CW
14362011-04-12 Colin Watson <cjwatson@ubuntu.com>
1437
1438 * NEWS: Drop obsolete entry about probe-only btrfs support.
1439
0c676933
CW
14402011-04-12 Colin Watson <cjwatson@ubuntu.com>
1441
1442 * util/import_gcry.py: Fix typo.
1443
ec9f5e0d
VS
14442011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
1445
1446 * NEWS: Add btrfs support.
1447
fe6b2cba
VS
14482011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
14492011-04-11 Colin Watson <cjwatson@ubuntu.com>
1450
1451 BtrFS support. Written by me (Vladimir) with important bugfixes and
1452 even more important testing by Colin.
1453
1454 * Makefile.util.def (libgrubmods.a): Add crc.c and gzio.c
1455 * grub-core/Makefile.core.def (btrfs): Add crc.c.
1456 * grub-core/fs/btrfs.c: Stub replaced with real implementation.
1457 * grub-core/io/gzio.c (grub_gzio): New fields mem_input_size,
1458 mem_input_off and mem_input. All users updated to accept in-RAM input.
1459 (gzio_seek): New function.
1460 (test_zlib_header): Likewise.
1461 (grub_gzio_read): Likewise.
1462 (grub_zlib_decompress): Likewise.
1463 * grub-core/kern/emu/getroot.c (grub_find_root_device_from_mountinfo):
1464 Accept partial and non-virtual mounts.
1465 (grub_guess_root_device): Do rescanning after device_from_mountinfo to
1466 avoid receiving /dev/dm-X as device.
1467 * grub-core/kern/emu/misc.c (grub_make_system_path_relative_to_its_root):
1468 Handle bind and partial mounts.
1469 * grub-core/lib/crc.c: New file.
1470 * include/grub/deflate.h: Likewise.
1471 * include/grub/emu/misc.h (grub_find_root_device_from_mountinfo): New
1472 proto.
1473 * include/grub/lib/crc.h: New file.
1474
e745cf0c
VS
14752011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
1476
1477 Implement automatic module license checking according to new GNU
1478 guidelines.
1479
1480 * grub-core/kern/dl.c (grub_dl_check_license): New function.
1481 (grub_dl_load_core): Use grub_dl_check_license.
1482 * include/grub/dl.h (GRUB_MOD_SECTION): New macro.
1483 (GRUB_MOD_LICENSE): Likewise.
1484 (GRUB_MOD_DUAL_LICENSE): Likewise.
1485 All modules updated.
1486
2a9bc016
CW
14872011-04-11 Colin Watson <cjwatson@ubuntu.com>
1488
1489 * grub-core/fs/btrfs.c (grub_btrfs_fs) [GRUB_UTIL]: Set
1490 reserved_first_sector to 1. btrfs reserves plenty of space for boot
1491 loaders.
1492 Reported by: Gene Cumm. Fixes Ubuntu bug #757446.
1493
8a3bc88e
VS
14942011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
1495
1496 * util/grub-fstest.c (cmd_cmp): Check that sizes match.
1497
af869a4a
VS
14982011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
1499
1500 * util/grub-fstest.c (read_file): Report GRUB error if file opening
1501 failed.
1502
9ee8d94f
VS
15032011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
1504
1505 * grub-core/kern/file.c (grub_file_open): Don't take into account the
1506 parenthesis in the middle of the filename.
1507
b01abe3e
VS
15082011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
1509
1510 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Use correct limits
1511 rather than trying to put initrd way too high.
1512 Reported by: Ryan Lortie <desrt@desrt.ca>
1513
335bda1e
VS
15142011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
1515
1516 * grub-core/boot/mips/yeeloong/fwstart.S (no_cs5536): Put back
1517 improperly removed string.
1518
5ca1a64d
VS
15192011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
1520
1521 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_data): New member
1522 is_disk.
1523 (grub_util_biosdisk_open): Don't apply ioctl on non-disk devices.
1524 (open_device) Likewise.
1525 (grub_util_biosdisk_close): Likewise.
d8ce9995 1526 Reported by: Mark Korenberg.
5ca1a64d 1527
cbac5b1e
AK
15282011-04-10 Alexander Kurtz <kurtz.alex@googlemail.com>
1529
1530 * util/grub-mkconfig_lib.in: Add missing quotes.
1531
088cdb65
CW
15322011-04-10 Colin Watson <cjwatson@ubuntu.com>
1533
1534 * grub-core/gnulib/argp-parse.c (__argp_input): Don't crash if pstate
1535 is NULL.
1536
8b8a81fa
VS
15372011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
1538
1539 Dynamically count the number of lines for the lower banner.
1540
1541 * grub-core/normal/menu_entry.c (per_term_screen): New member
1542 num_entries.
1543 (print_down): Use num_entries.
1544 (update_screen): Likewise.
1545 (grub_menu_entry_run): Set num_entries.
1546 * grub-core/normal/menu_text.c (menu_viewer_data): New member
1547 num_entries.
1548 (grub_print_message_indented): Move real part to ...
1549 (grub_print_message_indented_real): ... here. Additional argument
1550 dry_run.
1551 (draw_border): Additional argument num_entries.
1552 (print_message): Additional argument dry_run.
1553 (print_entries): Receive menu viewer data.
1554 (grub_menu_init_page): New argment num_entries.
1555 (menu_text_set_chosen_entry): Use num_entries.
1556 (grub_menu_try_text): Likewise.
1557 * grub-core/normal/term.c (print_ucs4_terminal): New argument dry_run.
1558 All users updated.
1559 (grub_ucs4_count_lines): New function.
1560 * include/grub/term.h (grub_term_cursor_x): Moved from here ..
1561 * grub-core/normal/menu_text.c (grub_term_cursor_x): ... to here.
1562 * include/grub/term.h (GRUB_TERM_MESSAGE_HEIGHT): Removed.
1563 (grub_term_border_height): Likewise.
1564 (grub_term_num_entries): Likewise.
1565
277f955b
VS
15662011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
1567
1568 * grub-core/boot/mips/yeeloong/fwstart.S: Fix address to error message.
1569 Remove now unused string.
1570
536ce85a
CW
15712011-04-09 Colin Watson <cjwatson@ubuntu.com>
1572
1573 * docs/grub-dev.texi (Finding your way around): Update for 1.99
1574 build system.
1575 (Getting started): GRUB is developed in Bazaar now, not Subversion.
1576
1577 (Comment): Fix typo.
1578 (Getting started): General copy-editing.
1579 (Typical Development Experience): Likewise.
1580 (Error Handling): Likewise.
1581 (Video API): Likewise.
1582
2cf09e32
CW
15832011-04-09 Colin Watson <cjwatson@ubuntu.com>
1584
1585 * docs/grub-dev.texi: Replace MoinMoin syntax with Texinfo syntax
1586 throughout.
1587
1ec652f4
VS
15882011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
1589
1590 * util/grub-mkimage.c (main): Handle special naming of yeeloong
1591 directory.
1592
2c583728
CW
15932011-04-08 Colin Watson <cjwatson@ubuntu.com>
1594
1595 * docs/grub-dev.texi: Fix spelling of "developer" throughout.
1596 * grub-core/fs/i386/pc/pxe.c (parse_dhcp_vendor): Fix spelling of
1597 "development".
1598
d7a565e9
VS
15992011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
1600
1601 * grub-core/normal/menu_entry.c (run): Use grub_memcpy rather than
1602 grub_strcpy since the lines aren't necessarily 0-terminated.
1603
7c2e4909
VS
16042011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
1605
1606 * grub-core/lib/legacy_parse.c (legacy_commands): Find doesn't set
1607 root on legacy.
1608
34c09785
VS
16092011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
1610
1611 * grub-core/commands/probe.c (options): Argument to set isn't optional.
1612 (GRUB_MOD_INIT): DEVICE isn't optional.
1613
6a6f8058
VS
16142011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
1615
1616 * grub-core/normal/term.c (print_ucs4_terminal): Don't try to put the
1617 word on new line if it's too long anyway. Fixes a hang.
1618
2e335e90
VS
16192011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
1620
1621 * include/grub/util/raid.h (grub_util_raid_getmembers): Make argument
1622 const.
1623 * util/grub-setup.c (main): Reuse md device name if available.
1624 * util/raid.c (grub_util_raid_getmembers): Receive device name and
1625 not GRUB name as argument.
1626 Based on patch by: Florian Wagner <fwagner>.
1627
10a7a867
VS
16282011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
1629
1630 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
1631 Place mbi on low memory for better compatibility.
1632
7a3d6cd9
VS
16332011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
1634
1635 * include/grub/efiemu/efiemu.h: Use grub_memory_hook_t type.
1636
18dd6b47
VS
16372011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
16382011-04-08 Colin Watson <cjwatson@ubuntu.com>
1639
1640 * autogen.sh: Ensure that collate and ctype locale is C.
4ed4ce58 1641 * conf/Makefile.common: Likewise.
18dd6b47 1642
3c0e3f14
VS
16432011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
1644
f7148863
VS
1645 * grub-core/normal/menu.c: Add missing include.
1646
16472011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
1648
1649 * grub-core/disk/raid.c [GRUB_UTIL]: Add missing include.
3c0e3f14 1650
6d1fa41f
MZ
16512011-04-08 Martin Zuther <mzuther@mzuther.de>
1652
1653 * util/grub-mkconfig.in: Ignore emacsen backup.
1654
478182a8
VS
16552011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
1656
1657 * grub-core/kern/emu/hostdisk.c (open_device): Sync on close and not
1658 on open.
1659 (grub_util_biosdisk_close): Likewise.
1660
72a89a54
VS
16612011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
1662
1663 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev): Add missing
1664 const attribute and use grub_isdigit.
1665
b5ebecfa
A
16662011-04-06 Andrey <dev_null@ukr.net>
1667
1668 * grub-core/video/fb/video_fb.c (grub_video_fb_setup): Silence older
1669 gcc warning.
1670
7755f66e
VS
16712011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
1672
1673 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align): Add few
1674 useful grub_dprintf's.
1675
461121ff
VS
16762011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
1677
1678 * include/grub/fs.h (grub_dirhook_info): Use unsigned for 1-bit fields.
1679
2a961775
VS
16802011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
1681
1682 * util/grub.d/00_header.in: Don't use LANG unless unifont is available.
1683
adf594cc
VS
16842011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
1685
1686 Output errors if theme loading failed.
1687
1688 * grub-core/gfxmenu/gfxmenu.c (grub_gfxmenu_try): Move the call to
1689 grub_gfxterm_fullscreen on error paths to ...
1690 * grub-core/normal/menu.c (menu_init): ...here. Wait after showing
1691 theme loading error.
1692
665900a3
VS
16932011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
1694
1695 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): Let a bit more
1696 space for older compilers.
1697 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
1698
a562b479
VS
16992011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
1700
1701 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Detect spares
1702 and report them as not RAID members since they are useless for GRUB.
1703 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
1704
850e9373
VS
17052011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
1706
1707 Increase LVM implementation robustness in order not to crash on
1708 configurations like pvmove. Previously code assumed that in some places
1709 only lvs or only pvs are used whereas it seems that they are used
1710 interchangeably.
1711
1712 * grub-core/disk/lvm.c (read_node): New function.
1713 (read_lv): Use read_node.
1714 (grub_lvm_scan_device): Use only first mirror on pvmove'd lvs.
1715 Match volumes only at the end when all lvs are found. Take both
1716 pvs (first) and lvs (second) into account.
1717 * include/grub/lvm.h (grub_lvm_segment): Merge fields stripe_* and
1718 mirror_* into node_*. All users updated.
1719 (grub_lvm_stripe): Merge this ...
1720 (grub_lvm_mirror): ... and this ...
1721 (grub_lvm_node): ... into this. All users updated.
1722
6f332153
VS
17232011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
1724
1725 * grub-core/disk/lvm.c (grub_lvm_scan_device): Print errors on the end
1726 of function to allow further scanning for LVMs.
1727
829ea451
VS
17282011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
1729
1730 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_read): Don't close
1731 on failed seek as it breaks open fd reusage.
1732
09ceb9a5
VS
17332011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
1734
1735 * util/grub-install.in: Add a recommendation to use --recheck before
1736 reporting bugs.
1737
67e11623
VS
17382011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
1739
1740 * docs/grub.texi (Vendor power-on buttons): Explain how the numbers
1741 are obtained.
1742
caee5efd
VS
17432011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
1744
1745 GRUB developper manual based on existing Internals section and
1746 contributions by the various authors with active copyright assignment.
1747
1748 * docs/Makefile.am (info_TEXINFOS): Add grub-dev.texi.
1749 * docs/font_char_metrics.png: New file.
1750 * docs/font_char_metrics.txt: Likewise.
1751 * docs/grub-dev.texi: Likewise.
1752 * docs/grub.texi (Internals): Move from here ...
1753 * docs/grub-dev.texi: ... here.
1754
2cccc747
CW
17552011-04-01 Colin Watson <cjwatson@ubuntu.com>
1756
1757 Store the loopback device as data on loopback grub_disk structures,
1758 rather than the file it points to. This fixes use of freed memory
1759 if an existing loopback device is replaced.
1760
1761 * grub-core/disk/loopback.c (grub_loopback_open): Store dev in
1762 disk->data, not dev->file.
1763 (grub_loopback_read): Adjust file assignment to match.
1764 Fixes Ubuntu bug #742967.
1765
186ae367
CW
17662011-04-01 Colin Watson <cjwatson@ubuntu.com>
1767
1768 * grub-core/disk/loopback.c (grub_cmd_loopback): Fix a memory leak
1769 when replacing an existing device.
1770
cfed2ad0
VS
17712011-04-01 Vladimir Serbinenko <phcoder@gmail.com>
1772
1773 Fix incorrect types in jfs.c. This enables >2TiB disks and fixes some
1774 memory corruptions.
1775
1776 * grub-core/fs/jfs.c (struct grub_jfs_diropen): Interpret bytes as
1777 unsigned.
1778 (grub_jfs_lookup_symlink): Make ino a grub_uint32_t rather than int.
1779 (grub_jfs_blkno): Use 64-bit quantities for block sectors.
1780 (grub_jfs_read_inode): Likewise.
1781 (grub_jfs_opendir): Likewise. Remove now useless casts.
1782 (grub_jfs_getent): Likewise.
1783 Make ino a grub_uint32_t rather than int.
1784 (grub_jfs_mount): Ensure that blksize and log2_blksize are consistent.
1785 (grub_jfs_read_file): Use 64-bit quantities when necessary. Replace
1786 division and module with bit operations.
1787 (grub_jfs_find_file): Make ino a grub_uint32_t.
1788 (grub_jfs_lookup_symlink): Likewise. Use 64-bit quantities
1789
05d2ed32
CW
17902011-04-01 Colin Watson <cjwatson@ubuntu.com>
1791
1792 * grub-core/normal/menu_entry.c (run): Quieten uninitialised
1793 warning. (This was in fact always initialised before use, but GCC
1794 wasn't smart enough to prove that.)
1795 * grub-core/script/lexer.c (grub_script_lexer_yywrap): Likewise.
1796
91dc6073
VS
17972011-03-31 Vladimir Serbinenko <phcoder@gmail.com>
1798
1799 * grub-core/kern/x86_64/efi/callwrap.S (efi_wrap_0): Preserve 16-byte
1800 stack alignment.
1801 (efi_wrap_1): Likewise.
1802 (efi_wrap_2): Likewise.
1803 (efi_wrap_3): Likewise.
1804 (efi_wrap_4): Likewise.
1805 (efi_wrap_5): Likewise.
1806 (efi_wrap_6): Likewise.
1807 (efi_wrap_10): Likewise.
1808 Based on information by: Red Hat/Peter Jones.
1809
a8afc1d1
CW
18102011-03-31 Colin Watson <cjwatson@ubuntu.com>
1811
1812 * grub-core/mmap/efi/mmap.c (grub_mmap_unregister): Remove
1813 set-but-not-used variable.
1814
a826cc7d
CW
18152011-03-31 Colin Watson <cjwatson@ubuntu.com>
1816
1817 * docs/grub.texi (Simple configuration): Be more explicit about
1818 GRUB_DEFAULT, and add an example.
1819 Reported by: Leslie Rhorer.
1820
875b67ba
CW
18212011-03-30 Colin Watson <cjwatson@ubuntu.com>
1822
1823 * docs/grub.texi (Commands): Link to "GRUB only offers a rescue
1824 shell".
1825
fd7cd914
AS
18262011-03-30 Alexey Shvetsov <alexxy@gentoo.org>
1827
1828 * util/grub.d/10_linux.in: Add gentoo-specific config filename.
1829 * util/grub.d/20_linux_xen.in: Likewise.
1830
090b1b6a
VS
18312011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
1832
1833 * util/grub.d/10_linux.in: Try alternative config filenames where
1834 we parse config file.
1835 * util/grub.d/20_linux_xen.in: Likewise.
1836
baad885c
AS
18372011-03-30 Alexey Shvetsov <alexxy@gentoo.org>
1838
1839 * util/grub.d/10_linux.in: Add gentoo-specific Linux and initrd names.
1840 * util/grub.d/20_linux_xen.in: Likewise.
1841
241e41f5
VS
18422011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
1843
1844 * grub-core/disk/raid.c (insert_array): Add few potentially
1845 useful grub_util_info.
1846 (grub_raid_register): Likewise.
1847
56445fb2
VS
18482011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
1849
1850 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev) [__linux__]:
1851 Preserve partition number in mdadm code path.
1852
c871b1c6
VS
18532011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
1854
1855 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Add
1856 few potentially useful grub_util_info.
1857
5e631b4f
CW
18582011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
1859
1860 * grub-core/disk/lvm.c (grub_lvm_scan_device): Remove spurious \n.
1861
2d5d0333
CW
18622011-03-30 Colin Watson <cjwatson@ubuntu.com>
1863
1864 * docs/grub.texi (default): Use @example rather than nested
1865 itemized lists to avoid breaking gendocs.
1866
3d7ed04e
CW
18672011-03-30 Colin Watson <cjwatson@ubuntu.com>
1868
1869 * docs/grub.texi (Future): Update.
1870
abf04200 18712011-03-30 Colin Watson <cjwatson@ubuntu.com>
1872
1873 * docs/grub.texi (Environment): New chapter.
1874 (Changes from GRUB Legacy): Link to "Environment block" section for
1875 details of limitations.
1876 (Simple configuration): Likewise. Link to documentation of gfxmode
1877 and gfxpayload variables from GRUB_GFXMODE and GRUB_GFXPAYLOAD
1878 respectively.
1879 (Shell-like scripting): Note that normal variables are stored in the
1880 environment.
1881 (gettext): Link to documentation of lang and locale_dir.
1882 (list_env): New section.
1883 (load_env): New section.
1884 (save_env): New section.
1885
1886 (Reporting bugs): Fix typo.
1887
e1ad0edd
VS
18882011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
1889
1890 * docs/grub.texi: Correctly use "terminal_input" and not "terminal" in
1891 the example.
1892
5d803174
VS
18932011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
1894
1895 * grub-core/term/at_keyboard.c (set_scancodes)
1896 [!GRUB_MACHINE_MIPS_YEELOONG && !GRUB_MACHINE_QEMU]: Use scancode set 1.
1897
2a2da1d0
CW
18982011-03-30 Colin Watson <cjwatson@ubuntu.com>
1899
1900 * docs/grub.texi (Menu-specific commands): Remove some semantics
1901 that were true in GRUB Legacy but not in GRUB 2.
1902 (submenu): New section.
1903 (false): New section.
1904 (read): New section.
1905 (true): New section.
1906
a7527639
CW
19072011-03-30 Colin Watson <cjwatson@ubuntu.com>
1908
1909 * docs/grub.texi (Changes from GRUB Legacy): Minor proofreading.
1910
19112011-03-30 Colin Watson <cjwatson@ubuntu.com>
e30af029
CW
1912
1913 * docs/grub.texi (Simple configuration): Explain some of the
1914 current limitations of grub-mkconfig.
8a748df2 1915 Reported by: Leslie Rhorer.
e30af029 1916
fc858482
VS
19172011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
1918
1919 Old macs search for boot.efi rather than for bootia32.efi.
1920
1921 * util/grub-install.in: Copy bootia32.efi to boot.efi.
1922 * util/grub-mkrescue.in: Likewise.
1923 Suggested by: Peter Jones.
1924
e1eb511d
VS
19252011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
1926
1927 * util/grub.d/20_linux_xen.in: Accept old-style xen kernels.
1928
70e75364
VS
19292011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
1930
1931 * include/grub/lvm.h (grub_lvm_lv): New field 'visible'.
1932 (grub_lvm_segment): New fields 'type', 'mirror_count' and 'mirrors'.
1933 (grub_lvm_mirror): New struct.
1934 * grub-core/disk/lvm.c (grub_lvm_checkvalue): Commented out.
1935 (grub_lvm_iterate): Iterate only visible volumes.
1936 (grub_lvm_read): Factor out to ..
1937 (read_lv): ... this. Support mirrors.
1938 (grub_lvm_read): New wrapper function.
1939 (grub_lvm_scan_device): Parse mirrors. Skip everything that isn't
1940 stripped or mirrored.
1941
fc18f6a3
VS
19422011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
1943
1944 * util/grub.d/10_linux.in: Skip vmlinux-* on x86 platforms.
1945
5c650f4c
CW
19462011-03-29 Colin Watson <cjwatson@ubuntu.com>
1947
1948 * docs/grub.texi (loopback): New section.
1949
61d7156b
CW
19502011-03-29 Colin Watson <cjwatson@ubuntu.com>
1951
1952 * grub-core/disk/loopback.c (GRUB_MOD_INIT): Stop documenting
1953 removed -p option.
1954
994b8264
CW
19552011-03-29 Colin Watson <cjwatson@ubuntu.com>
1956
1957 * docs/grub.texi (BIOS installation): New section, partly based on
1958 previous text in other sections.
1959 (Installing GRUB using grub-install): Replace BIOS discussion with a
1960 cross-reference.
1961 (Images): Likewise.
1962
9e4d19e0
VS
19632011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
1964
1965 * grub-core/kern/emu/hostdisk.c (find_partition_start)
1966 [HAVE_DIOCGDINFO]: Add safety checks.
1967
a307c0b2
VS
19682011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
1969
1970 * util/grub.d/10_kfreebsd.in: Allow ufs.ko to be missing as it's
1971 per default compiled in kernel and prior to 8.0 isn't shipped at all.
1972
b4db4f39
CW
19732011-03-29 Colin Watson <cjwatson@ubuntu.com>
1974
1975 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): If
1976 real_sb->size is zero (e.g. RAID-0), get the disk size from
1977 real_sb->data_size instead.
1978 Fixes Ubuntu bug #743136.
1979
35e5f84c
VS
19802011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
1981
1982 * grub-core/normal/misc.c (grub_normal_print_device_info): Use correct
1983 printf clauses for printing size and start.
1984
d2e29d81
VS
19852011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
1986
1987 * grub-core/fs/ext2.c (grub_ext2_read_inode): Fix an overflow.
1988 Reported and tested by: Timothy Nikkel.
1989
ed5587af
VS
19902011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
1991
1992 * grub-core/term/gfxterm.c (dirty_region_add): Move core part to ...
1993 (dirty_region_add_real): ... this.
1994 (dirty_region_add): Don't discard margin refresh when performing
1995 scheduled repaint.
1996
a1dc717c
VS
19972011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
1998
1999 * grub-core/lib/relocator.c (allocate_regstart)
2000 [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Avoid grub_dprintf since not all
2001 terminals are capabple of malloc-free operation.
2002 (allocate_inreg) [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Likewise.
2003 (malloc_in_range) [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Likewise.
2004
9f3677d3
VS
20052011-03-29 Mario Limonciello <Mario_Limonciello@Dell.com>
2006
2007 * util/grub-setup.c: Copy the partition table zone if floppy support
2008 is disabled, even if no partition table is found.
2009
2010 Otherwise, the BIOS on Dell Latitude E series laptops will freeze
2011 during POST if an invalid partition table is contained in the PBR
2012 of the active partition when GRUB is installed to a partition.
2013
24148725
CW
20142011-03-28 Colin Watson <cjwatson@debian.org>
2015
2016 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Remove stale
2017 comment.
2018
f329eda7
CW
20192011-03-28 Colin Watson <cjwatson@debian.org>
2020
2021 * grub-core/disk/raid.c (grub_raid_register): Adjust debug message
2022 to be specific about what kind of RAID device we're scanning for.
2023
c482ad98
SG
20242011-03-26 Seth Goldberg <seth.goldberg@oracle.com>
2025
2026 * grub-core/kern/emu/getroot.c (find_root_device_from_libzfs): Don't
2027 return freed string.
2028
5ee04984
VS
20292011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
2030
2031 * grub-core/fs/iso9660.c (grub_iso9660_label): Rtrim the label.
2032
f4727da9
VS
20332011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
2034
2035 Use libgeom on FreeBSD to detect partitions.
2036
2037 * Makefile.util.def (grub-mkimage): Add LIBGEOM to ldadd.
2038 (grub-mkrelpath): Likewise.
2039 (grub-script-check): Likewise.
2040 (grub-editenv): Likewise.
2041 (grub-mkpasswd-pbkdf2): Likewise.
2042 (grub-fstest): Likewise.
2043 (grub-mkfont): Likewise.
2044 (grub-mkdevicemap): Likewise.
2045 (grub-probe): Likewise.
2046 (grub-setup): Likewise.
2047 (grub-ofpathname): Likewise.
2048 (grub-mklayout): Likewise.
2049 (example_unit_test): Likewise.
2050 (grub-menulst2cfg): Likewise.
2051 * grub-core/Makefile.core.def (grub-emu): Likewise.
2052 (grub-emu-lite): Likewise.
2053 * configure.ac: Check for -lgeom on FreeBSD and set LIBGEOM.
2054 * grub-core/kern/emu/hostdisk.c [FreeBSD]: Include libgeom.h. Don't
2055 define HAVE_DIOCGDINFO.
2056 (follow_geom_up) [FreeBSD]: New function.
2057 (find_partition_start) [FreeBSD]: Rewritten using follow_geom_up.
2058 (convert_system_partition_to_system_disk) [FreeBSD]: Likewise.
2059 (grub_util_biosdisk_get_grub_dev) [FreeBSD]: Use FreeBSD path
2060 unconditionally of HAVE_DIOCGDINFO.
2061
82fe6c75
VS
20622011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
2063
2064 Fix FreeBSD compilation problem.
2065
2066 * grub-core/kern/emu/hostdisk.c (MAJOR) [FreeBSD]: New definition.
2067 (FLOPPY_MAJOR) [FreeBSD]: Likewise.
2068
4c6c9431
CW
20692011-03-24 Colin Watson <cjwatson@ubuntu.com>
2070
2071 * grub-core/video/fb/video_fb.c (grub_video_fb_get_info_and_fini):
2072 Switch back to page zero before loading a kernel, since some kernel
2073 drivers expect that.
2074 Thanks to: Felix Kuehling.
2075
c7064d94
VS
20762011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
2077
2078 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_addr)
2079 [DEBUG_RELOCATOR]: Reuse grub_mm_check.
2080 (grub_relocator_alloc_chunk_align) [DEBUG_RELOCATOR]: Likewise.
2081
3f71cded
VS
20822011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
2083
2084 * include/grub/mm.h (GRUB_MM_CHECK): Rename to ...
2085 (grub_mm_check): ... this. MAke a function-like macro and use GRUB_FILE.
2086
ef6de21a
VS
20872011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
2088
2089 * grub-core/lib/relocator.c (allocate_inreg): Avoid dprintf unless
2090 DEBUG_RELOCATOR is defined since gfxterm can't cope with output when
2091 malloc is disabled.
2092
8bc66a2c
VS
20932011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
2094
2095 * grub-core/loader/i386/bsdXX.c (grub_freebsd_load_elfmodule): Account
2096 for modules headers when counting the needed allocation size.
2097
5657722c
VS
20982011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
2099
2100 * grub-core/term/gfxterm.c (calculate_normal_character_width): Return 8
2101 if no ASCII character is found to prevent crash.
2102
41a85f55
AK
21032011-03-23 Alexander Kurtz <kurtz.alex@googlemail.com>
2104
2105 * grub-core/video/bitmap.c (match_extension): Ignore case.
2106
59e1e5f1
VS
21072011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
2108
2109 * grub-core/normal/menu_entry.c (init_line): Fix off-by-one error.
2110
bd4d051a
VS
21112011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
2112
2113 * grub-core/script/parser.y: Declare "time" as valid argument.
2114
bae7fcc1
PJ
21152011-03-23 Peter Jones <pjones@redhat.com>
2116
2117 Fix incorrect assert failure reporting.
2118
2119 * grub-core/tests/example_functional_test.c (example_test): Add
2120 a failure comment.
2121 * grub-core/tests/lib/test.c (add_failure): Renamed to ...
2122 (failure_start): ...this. Check that malloc succeeded.
2123 Don't call xvasprintf. Return failure struct.
2124 (failure_append_vtext): New function.
2125 (failure_append_text): Likewise.
2126 (add_failure): Likewise.
2127 (grub_test_assert_helper): Likewise.
2128 * include/grub/test.h (grub_test_assert_helper): New declaration.
2129 (grub_test_assert): Macro rewritten.
2130
537dc9be
VS
21312011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
2132
2133 * grub-core/normal/main.c (GRUB_MOD_INIT): Export pager variable.
2134
fa3e01bf
VS
21352011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
2136
2137 * grub-core/lib/i386/pc/biosnum.c: Add missing include.
2138
b1d28404
VS
21392011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
2140
2141 * grub-core/disk/usbms.c (grub_usbms_reset): Transform USB-style error
2142 into GRUB-style one.
2143
2e3e2e09
VS
21442011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
2145
2146 * grub-core/bus/usb/usbtrans.c (grub_usb_control_msg): Return usb-style
2147 error and not grub_errno.
2148 * grub-core/bus/usb/usbhub.c (grub_usb_add_hub): Likewise.
2149
ed57e557
VS
21502011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
2151
2152 * grub-core/bus/usb/uhci.c (grub_uhci_detect_dev): Return
2153 GRUB_USB_SPEED_NONE in case of failure and not the error code.
2154
d1611f01
VS
21552011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
2156
2157 * grub-core/efiemu/i386/pc/cfgtables.c
2158 (grub_machine_efiemu_init_tables): Make declaration a prototype.
2159 * grub-core/loader/xnu.c (grub_xnu_lock): Likewise.
2160 (grub_xnu_unlock): Likewise.
2161 * grub-core/normal/cmdline.c (grub_cmdline_get/cl_set_pos_all): Likewise.
2162
7d4e39d6
VS
21632011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
2164
2165 * grub-core/bus/usb/usb.c (attach_hooks): Make static.
2166 * grub-core/bus/usb/usbhub.c (hubs): Likewise.
2167 * grub-core/commands/hashsum.c (aliases): Likewise.
2168 * grub-core/commands/setpci.c (pci_registers): Likewise.
2169 * grub-core/disk/usbms.c (attach_hook): Likewise.
2170 * grub-core/fs/zfs/zfs.c (decomp_table): Likewise.
2171 (zio_checksum_table): Likewise.
2172 * grub-core/gettext/gettext.c (grub_gettext_msg_list): Likewise.
2173 * grub-core/gfxmenu/gfxmenu.c (cached_view): Likewise.
2174 * grub-core/lib/legacy_parse.c (legacy_commands): Likewise.
2175 * grub-core/lib/relocator.c (leftovers): Likewise.
2176 (extra_blocks): Likewise.
2177 * grub-core/loader/i386/bsd.c (relocator): Likewise.
2178 * grub-core/loader/i386/multiboot_mbi.c (modules): Likewise.
2179 (modules_last): Likewise.
2180 * grub-core/loader/i386/xnu.c (table_aliases): Likewise.
2181 (devices): Likewise.
2182 * grub-core/loader/multiboot_mbi2.c (modules): Likewise.
2183 (modules_last): Likewise.
2184 * grub-core/normal/auth.c (users): Likewise.
2185 * grub-core/normal/context.c (initial_menu): Likewise.
2186 (current_menu): Likewise.
2187 * grub-core/normal/crypto.c (crypto_specs): Likewise.
2188 * grub-core/term/serial.c (grub_serial_ports): Likewise.
2189 (grub_serial_terminfo_input_template): Likewise.
2190 (grub_serial_terminfo_output_template): Likewise.
2191 (grub_serial_terminfo_input): Likewise.
2192 (grub_serial_terminfo_output): Likewise.
2193 (registered): Likewise.
2194 * grub-core/term/usb_keyboard.c (attach_hook): Likewise.
2195
40fc4659
VS
21962011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
2197
2198 * grub-core/video/bochs.c (grub_video_bochs_setup): Use
2199 grub_video_mode_type_t.
2200 * grub-core/video/cirrus.c (grub_video_cirrus_setup): Likewise.
2201 * grub-core/video/i386/pc/vbe.c (grub_video_vbe_setup): Likewise.
2202 * grub-core/video/i386/pc/vga.c (grub_video_vga_setup): Likewise.
2203
2da48d28
VS
22042011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
2205
2206 * util/grub-install.in: Correct the x86-64 name as x86_64.
2207
9b43bf39
CW
22082011-03-11 Colin Watson <cjwatson@ubuntu.com>
2209
2210 * grub-core/boot/i386/pc/lnxboot.S (real_code_2): Ensure that the
2211 initial chunk read from the kernel always includes GRUB's multiboot
2212 header, which is now outside the first sector.
2213
be1a7ce0
CW
22142011-03-09 Colin Watson <cjwatson@ubuntu.com>
2215
2216 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Page-align
2217 cached mmap_size, so that this works correctly when called multiple
2218 times.
2219 Reported by: Daniel Kahn Gillmor. Should fix Debian bug #616638.
2220
83a3c48d
CW
22212011-03-09 Colin Watson <cjwatson@ubuntu.com>
2222
2223 * docs/grub.texi (Simple configuration): Tidy up formatting.
2224
57d75699
SJ
22252011-03-07 Szymon Janc <szymon@janc.net.pl>
2226
2227 * grub-core/fs/zfs/zfs.c (zap_leaf_lookup):
2228 Set-but-not-used variable removed.
2229
028501a0
VS
22302011-02-12 Vladimir Serbinenko <phcoder@gmail.com>
2231
2232 Workaround yet another IEEE1275 bug.
2233
2234 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum value
2235 GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS.
2236 * grub-core/kern/ieee1275/mmap.c (grub_machine_mmap_iterate): Ignore
2237 adress_cells and size:cells if GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS
2238 is set.
2239 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
2240 GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS on powermacs.
2241
d998657d
VS
22422011-02-12 Vladimir Serbinenko <phcoder@gmail.com>
2243
2244 * grub-core/partmap/msdos.c (pc_partition_map_embed): Fix off by one
2245 error.
2246
fee7cdd4
CW
22472011-02-11 Colin Watson <cjwatson@ubuntu.com>
2248
2249 * util/grub.d/20_linux_xen.in: Bail out early if linux_list is
2250 empty, since in that case we can only generate either nothing or a
2251 syntactically invalid configuration file.
2252 Reported by: Michal Suchanek. Fixes Debian bug #612898.
2253
97286eb5
CW
22542011-02-09 Colin Watson <cjwatson@ubuntu.com>
2255
2256 * docs/grub.texi (Kernel): Add reference to grub-mkrescue.
2257 (Making a GRUB bootable CD-ROM): Likewise.
2258 (Invoking grub-mkrescue): New section.
2259 Reported by: Yann Dirson. Fixes Debian bug #612585.
2260
22b28eb3
CW
22612011-02-09 Colin Watson <cjwatson@ubuntu.com>
2262
2263 * util/grub-install.in: Remove unnecessary brackets from tr
2264 arguments.
2265 * util/grub.d/10_hurd.in: Likewise.
2266 * util/grub.d/10_kfreebsd.in: Likewise.
2267 * util/grub.d/10_linux.in: Likewise.
2268 * util/grub.d/20_linux_xen.in: Likewise.
2269 Reported by: Jamie Heilman. Fixes Debian bug #612564.
2270
7e735e43
CW
22712011-02-08 Colin Watson <cjwatson@ubuntu.com>
2272
2273 * include/grub/file.h (not_easly_seekable): Rename to ...
2274 (not_easily_seekable): ... this. Update all users.
2275
800f1881
CW
22762011-01-28 Colin Watson <cjwatson@ubuntu.com>
2277
2278 * docs/grub.texi (Making a GRUB bootable CD-ROM): Update to describe
2279 grub-mkrescue.
2280
3281d3d6
VS
22812011-01-24 Vladimir Serbinenko <phcoder@gmail.com>
2282
2283 * util/grub-mkimage.c (generate_image): Refuse to create the images
2284 bigger than the actual flash (512K) in Loongson machines. 512K is also
2285 the biggest chip supported by them.
2286
3533413c
VS
22872011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
2288
2289 * grub-core/kern/emu/getroot.c: Include config-util.h explicitly.
2290
73ae4f4f
VS
22912011-01-22 Anthony DeRobertis <anthony@derobert.net>
2292
2293 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Check
2294 super_offset field.
2295
37f4f608
VS
22962011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
2297
2298 * util/grub-install.in: Ignore install device on platforms
2299 where it doesn't make sense. Always use UUIDs except on pc, efi and
2300 sparc64.
2301 Reported by: Daniel Kahn Gillmor.
2302
03a4ccb5
VS
23032011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
2304
2305 * grub-core/bus/bonito.c (write_bases): Fix direction of the shift.
2306
ffc8f4d8
VS
23072011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
2308
2309 * grub-core/partmap/bsdlabel.c: Include grub/emu/misc.h and not grub/util/misc.h.
2310 (iterate_real): Don't rely on partition being non-NULL.
2311
80f23be7
VS
23122011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
2313
2314 * grub-core/script/argv.c (round_up_exp): unsigned is 32-bit on all
2315 supported platforms. Put a compile time assert for this rather than
2316 generate a warning with 32-bit shift.
2317
5d4f4dd5
VS
23182011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
2319
2320 * grub-core/disk/scsi.c (grub_scsi_read): Fix binary and check and make
2321 logical expression more readable.
2322
e489601a
VS
23232011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
2324
2325 * grub-core/disk/raid.c (insert_array): Ensure uniqueness of p->number
2326 even if some elements have a name.
2327 Reported by: Alexander GQ Gerasiov.
2328
96e0a6ea
CW
23292011-01-22 Colin Watson <cjwatson@ubuntu.com>
2330
2331 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Consider a
2332 path unreadable if `grub-probe -t abstraction' fails, for example if
2333 memberlist fails on an LVM volume group.
2334 Reported by: Darius Jahandarie.
2335
81431e2b
CW
23362011-01-22 Colin Watson <cjwatson@ubuntu.com>
2337
2338 * docs/grub.texi (Simple configuration): Document
2339 GRUB_PRELOAD_MODULES.
2340
5e79d66a
CW
23412011-01-17 Colin Watson <cjwatson@ubuntu.com>
2342
2343 * .bzrignore: Remove nonexistent grub-pbkdf2.
2344
646ada34
VS
23452011-01-16 Vladimir Serbinenko <phcoder@gmail.com>
2346
2347 * configure.ac: Bump version to 1.99~rc1.
2348
04360337
VS
23492011-01-15 Vladimir Serbinenko <phcoder@gmail.com>
2350
2351 * util/grub-mkimage.c (generate_image): Check fwstart.img checksum
2352 for safety.
2353
46c9db88
VS
23542011-01-14 Vladimir Serbinenko <phcoder@gmail.com>
2355
2356 * grub-core/kern/mips/yeeloong/init.c (grub_machine_init): Init boot
2357 module.
2358
23592011-01-14 Vladimir Serbinenko <phcoder@gmail.com>
1d955d00
VS
2360
2361 * grub-core/Makefile.core.def (fwstart): Add lost LDFLAGS.
2362
4fbf1852
VS
23632011-01-13 Vladimir Serbinenko <phcoder@gmail.com>
2364
2365 * grub-core/fs/zfs/zfsinfo.c (grub_cmd_zfs_bootfs): Quote bootpath and
2366 diskdevid.
2367
f1632d4d
VS
23682011-01-13 Vladimir Serbinenko <phcoder@gmail.com>
2369
2370 Fix compilation on cygwin.
2371
2372 * conf/Makefile.common (STRIPFLAGS_KERNEL): Add -F elf32-i386 and
2373 -R .drectve on cygwin.
2374 * conf/i386-pc-cygwin-img-ld.sc: Merge rdata and pdata into data.
2375 * configure.ac: Use $(top_builddir) in TARGET_OBJ2ELF.
2376 (COND_CYGWIN): New condition.
2377 * grub-core/Makefile.am (%.mod): Set TARGET_OBJ2ELF.
2378 * grub-core/genmod.sh.in: Use ${TARGET_OBJ2ELF} and
2379 not @TARGET_OBJ2ELF@.
2380 * util/grub-pe2elf.c (write_symbol_table): Use pe_symtab->type and not
2381 type to determine whether aux is to be used.
2382
0b5e127b
VS
23832011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
2384
2385 * util/ieee1275/ofpath.c (grub_util_devname_to_ofpath): Use the
2386 realpath'ed device string.
2387 Handle floppy (somewhat).
2388 Issue error in unknown case rather than garbage.
2389 Reported by: Axel Beckert.
2390
173b71e9
VS
23912011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
2392
2393 * util/grub.d/00_header.in (load_video): Handle the case when no video
2394 drivers available.
2395 Thanks to: Axel Beckert.
2396
f8f479db
VS
23972011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
2398
2399 * util/grub-mkfont.c (write_font_pf2): Use appropriate type for data
2400 variable. Fixes problem on big endian platforms.
2401
8fc0a245
VS
24022011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
2403
2404 * grub-core/Makefile.core.def (ieee1275_fb): Disable on sparc.
2405 It doesn't work well there.
2406
b8494fbe
VS
24072011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
2408
2409 * grub-core/normal/context.c (grub_env_context_close): Silence spurious
2410 warning.
2411 * grub-core/normal/menu.c (grub_menu_execute_entry): Likewise.
2412 * grub-core/partmap/msdos.c (pc_partition_map_embed): Use unsigned
2413 counter.
2414
b44a558c
VS
24152011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
2416
2417 Use alias->path rather than buggy "canon".
2418
2419 * grub-core/disk/ieee1275/ofdisk.c (ofdisk_hash_add_real): New function.
2420 (ofdisk_hash_add): New argument curcan. All users updated.
2421
51fa856c
CW
24222011-01-11 Colin Watson <cjwatson@ubuntu.com>
2423
2424 * configure.ac: Fall back to `true' if `makeinfo' does not exist.
2425
9da068a5
VS
24262011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
2427
2428 * grub-core/loader/powerpc/ieee1275/linux.c (grub_linux_load32): Apply
2429 loadmask before doing any calculations. Use correct type for offset.
2430 (grub_linux_load64): Likewise.
2431
86205c94
CW
24322011-01-11 Colin Watson <cjwatson@ubuntu.com>
2433
2434 * util/grub-mklayout.c (console_grub_equivalences_shift): Terminate
2435 with NULL.
2436 (console_grub_equivalences_unshift): Likewise.
2437 Reported by: Daniel Dehennin.
2438
4531a206
VS
24392011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
2440
2441 * grub-core/fs/i386/pc/pxe.c (set_mac_env): Export variable.
2442 (set_env_limn_ro): Likewise.
2443 (GRUB_MOD_INIT): Likewise.
2444 * grub-core/hook/datehook.c (GRUB_MOD_INIT): Likewise. Change to
2445 ARRAY_SIZE while on it.
2446 (GRUB_MOD_FINI): Change to ARRAY_SIZE.
2447 * grub-core/normal/context.c (grub_env_export): Move from here ...
2448 * grub-core/kern/env.c (grub_env_export): ... here.
2449 * grub-core/normal/context.c (grub_cmd_export): Skip exporting root and
2450 prefix.
2451 * grub-core/kern/main.c (grub_main): Export root and prefix.
2452 * include/grub/env.h (grub_env_export): Export.
2453 Reported by: Seth Goldberg.
2454
45146057
VS
24552011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
2456
2457 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
2458 Take into account space used by ELF sections and multiboot palette.
2459 Reported by: Grégoire Sutre.
2460
f093110b
VS
24612011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
2462
2463 * BUGS: New file.
2464
3395fe52
VS
24652011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
2466
2467 Pass more appropriate video id to Linux.
2468
2469 * grub-core/loader/i386/linux.c (grub_linux_setup_video): Use
2470 grub_video_get_driver_id and variable gfxpayloadforcelfb to
2471 fill have_vga.
2472 (grub_linux_boot): Rely on grub_linux_setup_video to fill have_vga and
2473 shift params->lfb_size.
2474 * include/grub/i386/linux.h: Make an enume out of have_vga values.
2475
c2fa6cbb
VS
24762011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
2477
2478 * util/grub-menulst2cfg.c: Add missing include of misc.h.
2479
b3ff6ff0
VS
24802011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
2481
2482 * grub-core/fs/zfs/zfsinfo.c (grub_cmd_zfs_bootfs): Use comma as
2483 separator and pass bootpath/devid even if only one of them is available.
2484 Reported by: Seth Goldberg.
2485
ae67942e
VS
24862011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
2487
2488 Don't use post-4G memory on EFI even if 64-bit since some non-compliant
2489 implementations bug on them.
2490
2491 * grub-core/kern/efi/mm.c (grub_efi_allocate_pages): Skip post-4G
2492 memory.
2493 (filter_memory_map): Likewise.
2494
d570097a
VS
24952011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
2496
2497 * util/grub-kbdcomp.in: Add missing prefix and exec_prefix variables.
2498 Reported by: nebuchadnezzar.
2499
a508e776
VS
25002011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
2501
2502 * util/grub-kbdcomp.in: Add missing transform and bindir variables.
2503 Reported by: nebuchadnezzar.
2504
dcb883b1
VS
25052011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
2506
2507 Submenu default support.
2508
2509 * grub-core/normal/menu.c (grub_menu_execute_entry): New parameter
2510 auto_boot. All users updated.
2511 Declared static.
2512 Handle chosen and default with submenus.
2513 (grub_menu_execute_with_fallback): Declared static.
2514 Don't notify failure if autobooted. Upper level does it.
2515 (menuentry_eq): New function.
2516 (get_entry_number): Use menuentry_eq.
2517 (show_menu): New parameter "autobooted". All users updated.
2518 (grub_show_menu): Likewise.
2519 * include/grub/normal.h (grub_show_menu): Likewise.
2520 * include/grub/menu.h (grub_menu_execute_entry): Removed.
2521 (grub_menu_execute_with_fallback): Likewise.
2522
6fef99b4
VS
25232011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
2524
2525 * util/grub-mklayout.c (usage): Update help text.
2526
47a77af5
VS
25272011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
2528
2529 * grub-core/commands/legacycfg.c (legacy_file): Trim the line.
2530
ce6bb3ee
VS
25312011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
2532
2533 * util/grub-menulst2cfg.c (main): Trim the line.
2534
db87be2a
VS
25352011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
2536
2537 * grub-core/kern/i386/pc/init.c (grub_get_conv_memsize): Removed.
2538 (grub_machine_init): Don't check amount of low memory as reportedly
2539 INT 12h can be broken and if low memory is too low we wouldn't have
2540 gotten into grub_machine_init anyway.
2541
c49849cc
VS
25422011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
2543
2544 * grub-core/kern/i386/pc/mmap.c (grub_get_conv_memsize): New function.
2545 (grub_machine_mmap_iterate): Take low memory into account
2546
b1969b30
VS
25472011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
2548
2549 * grub-core/fs/btrfs.c (grub_btrfs_mount): Transform out of range into
2550 badfs.
2551 Reported by: TiCPU.
2552
cf0eaf13
VS
25532011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
2554
2555 * grub-core/disk/raid.c (insert_array): Display RAID name in duplicate
2556 members errors.
2557
1f060f39
GS
25582011-01-09 Grégoire Sutre <gregoire.sutre@gmail.com>
2559
2560 * util/grub.d/10_netbsd.in (netbsd_load_fs_module): New function.
2561 (netbsd_entry): Use netbsd_load_fs_module() to load filesystem module.
2562
a21e5672
GS
25632011-01-09 Grégoire Sutre <gregoire.sutre@gmail.com>
2564
2565 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Handle
2566 openbsd and netbsd types being in part_bsd module.
2567
c88172fa
VS
25682011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
2569
2570 * config.h.in (_LARGEFILE_SOURCE): Add missing define.
2571 (_FILE_OFFSET_BITS): Likewise.
2572 Reported by: Seth Goldberg.
2573
53798c4b
GS
25742011-01-08 Grégoire Sutre <gregoire.sutre@gmail.com>
2575
2576 * configure.ac: Check for libdevmapper header.
2577
e7121b69
VS
25782011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
2579
2580 * grub-core/fs/zfs/zfs.c (dmu_read): Use void * for some pointers to
2581 avoid aliasing.
2582 (fzap_lookup): Likewise.
2583 (dnode_get): Likewise.
2584 (make_mdn): Likewise.
2585 (zfs_mount): Likewise.
2586 (fzap_iterate): Use temporary pointer to avoid aliasing.
2587 (grub_zfs_read): Likewise.
2588 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Likewise.
2589 * grub-core/loader/xnu.c (grub_cmd_xnu_kernel): Use void * for some
2590 pointers to avoid aliasing.
2591 (grub_cmd_xnu_kernel64): Likewise.
2592 (grub_xnu_load_driver): Likewise.
2593
fc836af9
VS
25942011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
2595
2596 * grub-core/commands/terminal.c (grub_cmd_terminal_input): Silence
2597 aliasing warning.
2598 (grub_cmd_terminal_output): Likewise.
2599 Reported and tested by: Grégoire Sutre.
2600
f9f37648
VS
26012011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
2602
2603 * grub-core/term/at_keyboard.c (grub_keyboard_getkey): Silence spurious
2604 warning.
2605 Reported and tested by: Grégoire Sutre.
2606
ec1dfd63
VS
26072011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
2608
2609 * configure.ac: Do CPU substitution even if it's specified explicitly.
2610 Reported and tested by: Alain Greppin.
2611
9462775a
VS
26122011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
2613
2614 * grub-core/Makefile.am (rs_decoder.S): Force compilation with -Os.
2615 Reported and tested by: Alain Greppin.
2616
0fd48e35
VS
26172011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
2618
2619 Satisfy some bison versions need for inttypes.h.
2620
2621 * grub-core/lib/posix_wrap/inttypes.h: New file.
2622 * grub-core/lib/posix_wrap/sys/types.h (int8_t): New type.
2623 (int16_t): Likewise.
2624 (int32_t): Likewise.
2625 (int64_t): Likewise.
2626 Reported and tested by: Alain Greppin.
2627
43f1bc83
VS
26282011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
2629
2630 * grub-core/loader/i386/bsdXX.c (grub_netbsd_load_elf_meta):
2631 Silence spurious warning.
2632 Reported and tested by: Alain Greppin.
2633
64d1f041
SJ
26342011-01-07 Szymon Janc <szymon@janc.net.pl>
2635
2636 * docs/grub.texi (Support automatic decompression): Update with xz
2637 decompression support.
2638
25953e10
SJ
26392011-01-07 Szymon Janc <szymon@janc.net.pl>
2640
2641 Improve loaders' kernel command line handling.
2642
2643 * grub-core/lib/cmdline.c: New file.
2644 * include/grub/lib/cmdline.h: Likewise.
2645 * grub-core/loader/i386/linux.c (grub_cmd_linux): Use
2646 grub_create_loader_cmdline to create kernel command line.
2647 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
2648 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_linux): Likewise.
2649 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_linux): Likewise.
2650 * grub-core/Makefile.core.def (linux16): Add lib/cmdline.c on i386_pc.
2651 (linux): Add lib/cmdline.c on common.
2652
e72d259f
VS
26532011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
2654
2655 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Take into account that
2656 inopos might be unaligned.
2657
c0cf26da
VS
26582011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
2659
2660 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Add missing
2661 endian transformations.
2662 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
2663 Based on report by: Doug Nazar.
2664
0ca09e6c
DN
26652011-01-07 Doug Nazar <nazard.michi@gmail.com>
2666
2667 * grub-core/disk/raid5_recover.c (grub_raid5_recover): Add missing
2668 array->members[i].start_sector.
2669 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Likewise.
2670
014b6806
VS
26712011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
2672
2673 * util/grub-setup.c (setup): Handle NetBSD and OpenBSD disklabels.
2674 Reported and tested by: Grégoire Sutre.
2675
415502c2
CW
26762011-01-06 Colin Watson <cjwatson@ubuntu.com>
2677
2678 * tests/util/grub-shell.in: Set serial terminfo type to `dumb', to
2679 avoid causing test failures by clearing the screen.
2680
71b6a2b7
CW
26812011-01-06 Colin Watson <cjwatson@ubuntu.com>
2682
2683 * grub-core/kern/emu/getroot.c (find_root_device_from_mountinfo):
2684 Fix prefix check to handle the case where dir ends with a slash
2685 (most significantly, "/" itself).
2686 Reported by: Michael Vogt.
2687
b3f8d28a
VS
26882011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
2689
2690 Run terminfo_cls on initing terminfo output to clear the screen and
2691 move the cursor to (0,0).
2692
2693 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_init_output):
2694 Call grub_terminfo_output_init.
2695 * grub-core/term/serial.c (grub_serial_term_output): Set .init.
2696 * grub-core/term/terminfo.c (grub_terminfo_output_init): New function.
2697 * include/grub/terminfo.h (grub_terminfo_output_init): New declaration.
2698
4c3e4f37
VS
26992011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
2700
2701 * util/grub-install.in: Determine ofpathname, nvsetenv and efibootmgr
2702 only when needed.
2703
488f71f1
VS
27042011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
2705
2706 * grub-core/term/terminfo.c (grub_terminfo_readkey): Handle keys with
2707 CTRL.
2708
18a38098
VS
27092011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
2710
2711 The E820 type 5 is BADRAM, not EXEC_CODE.
2712
2713 * grub-core/loader/i386/bsd.c (GRUB_E820_EXEC_CODE): Removed.
2714 (GRUB_E820_BADRAM): New define.
2715 * grub-core/loader/i386/linux.c (grub_linux_boot): Translate code
2716 into reserved. Propagate BADRAM.
2717 * grub-core/loader/i386/bsd.c (GRUB_E820_EXEC_CODE): Removed.
2718 (GRUB_E820_BADRAM): New define.
2719
9eae2084
VS
27202011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
2721
2722 * grub-core/lib/efi/relocator.c (grub_relocator_firmware_fill_events):
2723 Ignore the memory post-4G.
2724 (grub_relocator_firmware_alloc_region): Additional debug statement.
2725
ebc71d28
VS
27262011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
2727
2728 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev): Check md/%s
2729 names.
2730 Reported by: David Pravec.
2731
446fa400
VS
27322011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
2733
2734 * grub-core/disk/i386/pc/biosdisk.c (GRUB_MOD_INIT): Workaround buggy
2735 BIOSes.
2736
a0159f37
VS
27372011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
2738
2739 * grub-core/lib/reed_solomon.c (grub_reed_solomon_add_redundancy):
2740 Prevent overflow.
2741 (grub_reed_solomon_recover): Likewise.
2742
e5146ca1
VS
27432011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
2744
2745 * grub-core/lib/reed_solomon.c (main) [TEST]: Reactivate normal test.
2746
27472011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
95638499
VS
2748
2749 * grub-core/lib/reed_solomon.c (scratch) [! STANDALONE]: Remove leftover
2750 variable.
2751
5b1bdf12
CW
27522011-01-04 Colin Watson <cjwatson@ubuntu.com>
2753
2754 * grub-core/commands/legacycfg.c (GRUB_MOD_INIT): Fix typo in
2755 descriptions of extract_legacy_entries_source and
2756 extract_legacy_entries_configfile.
2757 Reported by: Seung Soo, Ha.
2758
99d925aa
CW
27592011-01-03 Colin Watson <cjwatson@ubuntu.com>
2760
2761 * grub-core/bus/pci.c (grub_pci_iterate): Skip remaining functions
2762 on devices that do not implement function 0.
2763
4af0504b
DV
27642011-01-03 Dave Vasilevsky <dave@vasilevsky.ca>
2765
2766 * grub-core/fs/hfsplus.c: Make parent unsigned.
2767 (grub_hfsplus_cmp_catkey): Don't compare using subtraction, it
2768 overflows.
2769 (grub_hfsplus_cmp_extkey): Likewise
2770
469ee10a
VS
27712011-01-03 Vladimir Serbinenko <phcoder@gmail.com>
2772
2773 * util/grub-install.in: Correctly use bootloader_id and not
2774 GRUB_DISTRIBUTOR on efibootmgr line.
2775
323a8e9c
VS
27762011-01-03 Vladimir Serbinenko <phcoder@gmail.com>
2777
2778 * util/grub-mkfont.c (main): Report errors in FT_New_Face.
2779
1b394975
IC
27802010-12-31 Ian Campbell <ijc@hellion.org.uk>
2781
2782 * util/grub.d/20_linux_xen.in (linux_entry): Correctly capitalize
2783 Xen and reorder menu item wording to make it clearer that this entry
2784 will launch Xen. Print separate messages when loading Xen and
2785 Linux.
2786
275bff5f
VS
27872010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
2788
2789 * grub-core/partmap/amiga.c (GRUB_AMIGA_PART_MAGIC): New define.
2790 (amiga_partition_map_iterate): Check "PART" magic to avoid a very long
2791 loop in case of incorrect amiga partmap.
2792
307806cb
VS
27932010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
2794
2795 * grub-core/partmap/amiga.c (GRUB_AMIGA_RDSK_MAGIC): New define.
2796 (amiga_partition_map_iterate): Use grub_memcmp instead of grub_strcmp.
2797 Reported by:EHeM.
2798
b12b923e
VS
27992010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
2800
2801 * grub-core/loader/i386/bsdXX.c (grub_openbsd_find_ramdisk): Silence
2802 spurious warning.
2803 Reported by: crocket
2804
14b48a19
VS
28052010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
2806
2807 * grub-core/loader/xnu.c (grub_cmd_xnu_kernel) [! GRUB_MACHINE_EFI]:
2808 Preload EFIemu.
2809 (grub_cmd_xnu_kernel64) [! GRUB_MACHINE_EFI]: Likewise.
2810
693db2df
VS
28112010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
2812
2813 * grub-core/loader/xnu.c (grub_cmd_xnu_kext): Abort if no kernel
2814 is loaded
2815 (grub_cmd_xnu_kextdir): Likewise.
2816 (grub_cmd_xnu_splash): Likewise.
2817
c7638645
VS
28182010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
2819
2820 Avoid using Reed-Solomon with 0 redundancy.
2821
2822 * grub-core/kern/i386/pc/startup.S: Remove 0-data check.
2823 * grub-core/lib/reed_solomon.c (decode_block): Do not proceed on 0 data
2824 or 0 redundancy.
2825 (grub_reed_solomon_add_redundancy): Do not proceed with 0 redundancy.
2826 (grub_reed_solomon_recover): Likewise.
2827
25dd4780
VS
28282010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
2829
2830 Don't use disk subsystem in freebsd_boot.
2831
2832 * grub-core/loader/i386/bsd.c (freebsd_bootdev): New variable.
2833 (freebsd_biosdev): Likewise.
2834 (grub_freebsd_boot): Use freebsd_bootdev and freebsd_biosdev.
2835 (grub_cmd_freebsd): Set freebsd_bootdev and freebsd_biosdev.
2836
0b2db943
VS
28372010-12-26 Vladimir Serbinenko <phcoder@gmail.com>
2838
2839 Handling of files of unknown size is currently limited. They can't be
2840 used e.g. for initrd or modules. Moreover gzip handling of not
2841 easily seekable files is buggy. Disable unknown file size for now. May
2842 be inefficient but works.
2843
2844 * grub-core/io/gzio.c (test_header): Always retrieve the file size.
2845 * grub-core/io/xzio.c (grub_xzio_open): Likewise.
2846
5c408d0f
MP
28472010-12-25 Mirko Parthey <mirko.parthey@informatik.tu-chemnitz.de>
2848
2849 * grub-core/boot/i386/pc/boot.S: Fix %es:%bx pointing to nowhere on
2850 floppy probe.
2851
190a011a
JD
28522010-12-25 Jeroen Dekkers <jeroen@dekkers.ch>
2853
2854 * grub-core/disk/raid.c (insert_array): Don't add spurious members.
2855
022d01b8
SL
28562010-12-25 Shea Levy <shlevy>
2857
2858 * grub-core/genmod.sh.in: Use @OBJCOPY@ rather than objcopy.
2859
c4855fdc
VS
28602010-12-25 Vladimir Serbinenko <phcoder@gmail.com>
2861
2862 * util/grub.d/30_os-prober.in: Don't emit drivemap directive for
2863 Windows Server 2008.
2864 Reported by: Devin Giddings.
2865
0354b867
VS
28662010-12-25 Vladimir Serbinenko <phcoder@gmail.com>
2867
2868 * grub-core/commands/acpihalt.c (grub_acpi_halt): Sleep for 1.5 before
2869 writing an error message because of async power management.
2870 * grub-core/kern/mips/yeeloong/init.c (grub_halt): Likewise.
2871 (grub_reboot): Likewise.
2872
ab66c69f
JU
28732010-12-23 Jordan Uggla <jordan.uggla@gmail.com>
2874
2875 * tests/util/grub-shell.in: Suppress "ACPI shutdown failed" error to
2876 keep unit tests from failing when they shouldn't.
2877
1426ef35
CW
28782010-12-21 Colin Watson <cjwatson@ubuntu.com>
2879
2880 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): The
2881 previous patch increased the size of the RS code by 20 bytes (at
2882 least with gcc-4.4), so increase this by 20 bytes to match.
2883 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
2884
20641b6b
CW
28852010-12-21 Colin Watson <cjwatson@ubuntu.com>
2886
2887 * grub-core/lib/reed_solomon.c (gauss_solve): Fix size of standalone
2888 scratch area. Make sure to initialise chosen in standalone mode as
2889 well as non-standalone.
2890 Reported by: Robert Hooker and Andy Whitcroft.
2891 Tested by: Andy Whitcroft.
2892
d060ad60
CW
28932010-12-21 Colin Watson <cjwatson@ubuntu.com>
2894
2895 * grub-core/commands/echo.c (grub_cmd_echo): Make UTF-8-clean by
2896 constructing a new unescaped string and passing it to grub_xputs in
2897 one go, rather than passing characters to grub_printf one at a time.
2898
b889cfad
CW
28992010-12-21 Colin Watson <cjwatson@ubuntu.com>
2900
2901 * grub-core/fs/udf.c (read_string): Pacify GCC warning by
2902 initialising utf16.
2903
4e01b6c8
CW
29042010-12-21 Colin Watson <cjwatson@ubuntu.com>
2905
2906 * util/grub-mkconfig_lib.in (gettext_quoted): Add clarifying
2907 comment. Add an extra layer of quotation, requiring the output of
2908 this function to be used in a printf format string.
2909 (gettext_printf): New function.
2910 * util/grub.d/10_hurd.in: Use gettext_printf where appropriate.
2911 Extract translatable strings from here-documents and use a temporary
2912 variable instead, so that xgettext can find them.
2913 * util/grub.d/10_kfreebsd.in: Likewise.
2914 * util/grub.d/10_linux.in: Likewise.
2915 * util/grub.d/20_linux_xen.in: Likewise.
2916
2917 * po/grub.d.sed: New file.
2918 * po/Makefile.in.in ($(DOMAIN).pot-update): Extract gettext_printf
2919 arguments. Set c-format flags on all strings extracted from
2920 util/grub.d/ (xgettext refuses to include these itself for strings
2921 it extracted from a shell file, but these really are c-format).
2922
5318fe98
VS
29232010-12-20 Vladimir Serbinenko <phcoder@gmail.com>
2924
2925 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_add_module):
2926 Avoid next pointing to nowhere.
2927
6c85b743
VS
29282010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
2929
2930 * grub-core/fs/affs.c (grub_affs_mount): Read data->bblock.rootblock
2931 rather than assuming than rootblock is exactly in the middle.
2932 (grub_affs_label): Likewise.
2933
a2a08a35
VS
29342010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
2935
2936 * grub-core/fs/affs.c (grub_affs_fs) [GRUB_UTIL]: Explicitly set
2937 reserved_first_sector to 0.
2938 * grub-core/fs/cpio.c (grub_cpio_fs) [GRUB_UTIL]: Likewise.
2939 * grub-core/fs/sfs.c (grub_sfs_fs) [GRUB_UTIL]: Likewise.
2940 * grub-core/fs/xfs.c (grub_xfs_fs) [GRUB_UTIL]: Likewise.
2941
7059d1ec
VS
29422010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
2943
2944 Fix handling of UTF-16 UDF labels.
2945
2946 * grub-core/fs/udf.c (grub_udf_iterate_dir): Move string-parsing part
2947 (read_string): .. here.
2948 (grub_udf_label): Use read_string.
2949
30aff4cb
BC
29502010-12-19 BVK Chaitanya <bvk.groups@gmail.com>
2951
2952 * grub-core/normal/menu_entry.c (run): Execute commands from menu
2953 editor under argument scope.
2954 Reported by: Jordan Uggla
2955
5cf86f4b
VS
29562010-12-18 Vladimir Serbinenko <phcoder@gmail.com>
2957
2958 * util/grub-mkfont.c (main): Handle errors from FT_Set_Pixel_Sizes.
2959
32570200
CW
29602010-12-18 Colin Watson <cjwatson@ubuntu.com>
2961
2962 * grub-core/normal/term.c (print_more): Make \r or \n scroll one
2963 line, and other keys scroll an entire page (previous handling was
2964 for \r and \n to scroll a page and other keys to scroll two lines).
2965
e1dffcf2
VS
29662010-12-18 Vladimir Serbinenko <phcoder@gmail.com>
2967
2968 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
2969 Set ptrdest to correct get_physical_target_address rather than
2970 incorrect get_virtual_current_address.
2971
b04298cf 29722010-12-18 kashyap garimella <garimella.kashyap@gmail.com>
2973
2974 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_load): Use
2975 correct cat to grub_uint8_t * rather than grub_uint32_t *.
2976
5367ecd3
CW
29772010-12-10 Colin Watson <cjwatson@ubuntu.com>
2978
2979 * .bzrignore: Ignore grub-core/rs_decoder.S.
2980
1fb430f8
CW
29812010-12-10 Colin Watson <cjwatson@ubuntu.com>
2982
2983 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Factor out
2984 .mo/.mo.gz opening sequence to ...
2985 (grub_mofile_open_lang): ... here.
2986 (grub_gettext_init_ext): If opening ll_CC fails, try ll.
2987 * util/grub.d/00_header.in (grub_lang): Include country part of
2988 locale.
2989 Reported by: Mario Limonciello.
2990
a94a6671
RM
29912010-12-09 Robert Millan <rmh@gnu.org>
2992
2993 * NEWS: Document addition of ZFS support.
2994
24b7938b
CW
29952010-12-04 Colin Watson <cjwatson@ubuntu.com>
2996
2997 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Use `>> 1'
2998 rather than `/ 2', as the latter requires -Wa,--divide which would
2999 require bumping our minimum binutils version.
3000
bddc3ef6
BC
30012010-12-03 BVK Chaitanya <bvk.groups@gmail.com>
3002
3003 * util/grub-script-check.c (main): Print script line number on
3004 error.
3005
bf78d5b2
RM
30062010-12-01 Robert Millan <rmh@gnu.org>
3007
3008 * grub-core/fs/zfs/zfs.c: New file.
3009 * grub-core/fs/zfs/zfs_fletcher.c: Likewise.
3010 * grub-core/fs/zfs/zfs_lzjb.c: Likewise.
3011 * grub-core/fs/zfs/zfs_sha256.c: Likewise.
3012 * grub-core/fs/zfs/zfsinfo.c: Likewise.
3013
3014 * include/grub/zfs/dmu.h: Likewise.
3015 * include/grub/zfs/dmu_objset.h: Likewise.
3016 * include/grub/zfs/dnode.h: Likewise.
3017 * include/grub/zfs/dsl_dataset.h: Likewise.
3018 * include/grub/zfs/dsl_dir.h: Likewise.
3019 * include/grub/zfs/sa_impl.h: Likewise.
3020 * include/grub/zfs/spa.h: Likewise.
3021 * include/grub/zfs/uberblock_impl.h: Likewise.
3022 * include/grub/zfs/vdev_impl.h: Likewise.
3023 * include/grub/zfs/zap_impl.h: Likewise.
3024 * include/grub/zfs/zap_leaf.h: Likewise.
3025 * include/grub/zfs/zfs.h: Likewise.
3026 * include/grub/zfs/zfs_acl.h: Likewise.
3027 * include/grub/zfs/zfs_znode.h: Likewise.
3028 * include/grub/zfs/zil.h: Likewise.
3029 * include/grub/zfs/zio.h: Likewise.
3030 * include/grub/zfs/zio_checksum.h: Likewise.
3031
3032 * Makefile.util.def: Build ZFS into libgrubmods.
3033 * grub-core/Makefile.core.def: Build zfs.mod.
3034
3f0f3831
SJ
30352010-11-30 Szymon Janc <szymon@janc.net.pl>
3036
3037 * grub-core/commands/regexp.c (grub_cmd_regexp): Remove unused
3038 variable.
3039 * grub-core/commands/wildcard.c (match_files): Likewise.
3040
3a4253b2
RM
30412010-11-30 Robert Millan <rmh@gnu.org>
3042
3043 * grub-core/loader/i386/bsd.c
3044 (grub_cmd_freebsd_loadenv, grub_cmd_freebsd_module_elf): Check
3045 whether kernel is loaded using grub_loader_is_loaded(), rather
3046 than `kernel_type', which may still be `KERNEL_TYPE_NONE' under
3047 certain error conditions.
3048
8c317b27
RM
30492010-11-30 Robert Millan <rmh@gnu.org>
3050
c5c9cd3e
RM
3051 * grub-core/commands/echo.c: Include `<grub/term.h>'.
3052 (grub_cmd_echo): Call grub_refresh() after printing a message.
8c317b27 3053
49d3ab46
VS
30542010-11-26 Vladimir Serbinenko <phcoder@gmail.com>
3055
3056 Avoid using tricks for initialising endian variables.
3057
3058 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot):
3059 Make const.
3060 (GRUB_MOD_INIT): Don't byte-swap.
3061 * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_BIOS_BOOT):
3062 Use grub_cpu_to_le16_compile_time and grub_cpu_to_le32_compile_time.
3063 * include/grub/types.h (grub_swap_bytes16_compile_time): New macro.
3064 (grub_swap_bytes32_compile_time): Likewise.
3065 (grub_cpu_to_le32_compile_time): Likewise.
3066 (grub_cpu_to_le16_compile_time): Likewise.
3067
f420a804
VS
30682010-11-26 Vladimir Serbinenko <phcoder@gmail.com>
3069
3070 * util/grub-setup.c (setup): Stop recommending --force. People who
3071 understand the dangers of blocklists are able to find this option
3072 anyway and the ones who don't shouldn't use it anyway.
3073
4e7db17b
RM
30742010-11-26 Robert Millan <rmh@gnu.org>
3075
3076 * grub-core/term/i386/pc/vga_text.c (VGA_TEXT_SCREEN): Beautify.
3077 Update all users.
3078
9be57a0d
CW
30792010-11-26 Colin Watson <cjwatson@ubuntu.com>
3080
3081 Fix LVM-on-RAID probing.
3082
3083 * util/grub-probe.c (probe): Remember which disk was detected as
3084 RAID (perhaps an LVM physical volume). Use that disk's raidname
3085 rather than that of the top-level disk.
3086
2c7859b3 30872010-11-25 BVK Chaitanya <bvk.groups@gmail.com>
7e623b0d 3088
d7647bb6
BC
3089 Fix cmdline argument quotes for setparams command of menuentry
3090 definitions.
7e623b0d
BC
3091
3092 * grub-core/commands/menuentry.c (setparams_prefix): Use single
3093 quotes for arguments.
f866fe80 3094 * grub-core/lib/legacy_parse.c (grub_legacy_escape): Use
7955bea0 3095 grub_strchrsub function instead.
f866fe80 3096
7955bea0 3097 * include/grub/misc.h (grub_strchrsub): New function.
7e623b0d 3098
74f72a64
CW
30992010-11-24 Colin Watson <cjwatson@ubuntu.com>
3100
3101 * util/deviceiter.c (grub_util_iterate_devices): Save a bit of
3102 effort by skipping "." and ".." entries up-front.
3103 Suggested by: Michael Lazarev.
3104
5a407278
CW
31052010-11-24 Colin Watson <cjwatson@ubuntu.com>
3106
3107 * grub-core/Makefile.core.def (xz_decompress): Move -lgcc from
3108 ldflags to ldadd, to fix link line ordering.
3109 (none_decompress): Likewise.
3110
3030d8ec
CW
31112010-11-24 Colin Watson <cjwatson@ubuntu.com>
3112
3113 * grub-core/Makefile.core.def (kernel): Add kern/emu/cache.S for emu
3114 platforms.
3115 (grub-emu-lite): Remove kern/emu/cache.S.
3116
b7fbac12
CW
31172010-11-23 Colin Watson <cjwatson@ubuntu.com>
3118
3119 * util/deviceiter.c (compare_devices): If the by-id link for a
3120 device couldn't be resolved, fall back to sorting by the by-id link
3121 rather than segfaulting.
3122 Reported and tested by: Daniel Mierswa.
3123
5225f328
CW
31242010-11-23 Colin Watson <cjwatson@ubuntu.com>
3125
3126 * Makefile.util.def (grub-menulst2cfg): List libraries in ldadd, not
3127 ldflags, to fix link line ordering.
3128
038b3ce8
CW
31292010-11-23 Colin Watson <cjwatson@ubuntu.com>
3130
3131 * grub-core/Makefile.am (gentrigtables): Put -lm after $<; some
3132 linkers are picky about this.
3133
bf16e98e
CW
31342010-11-23 Colin Watson <cjwatson@ubuntu.com>
3135
3136 * grub-core/Makefile.am (command.lst): Adjust sed expression
3137 ordering so that extended and priority commands aren't treated as
3138 ordinary commands.
3139
7242bab6
CW
31402010-11-23 Colin Watson <cjwatson@ubuntu.com>
3141
3142 * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_BIOS_BOOT):
3143 Remove byte-swapping function calls, which are not valid in
3144 structure initialisers.
3145 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot): Make
3146 non-const.
3147 (GRUB_MOD_INIT): Byte-swap data1, data2, and data3 fields of
3148 grub_gpt_partition_type_bios_boot.
3149
14e8b279
CW
31502010-11-22 Colin Watson <cjwatson@ubuntu.com>
3151
3152 Fix test program build on GNU/kFreeBSD.
3153
3154 * Makefile.util.def (example_unit_test): Add `$(LIBZFS)
3155 $(LIBNVPAIR)' library dependencies.
3156
e6f63338 31572010-11-22 Colin Watson <cjwatson@ubuntu.com>
03df09c7
CW
3158
3159 * util/grub-install.in: Fix parsing of --grub-mkrelpath= option.
3160
cf8ffc38
CW
31612010-11-22 Colin Watson <cjwatson@ubuntu.com>
3162
3163 * util/grub-install.in: Remove excessive quoting that broke
3164 installations to RAID devices.
3165
7f8b0fd7
VS
31662010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
3167
3168 * grub-core/loader/i386/linux.c (grub_cmd_linux): Pass correctly the
3169 bootloader version instead of 0.
3170
dfd240b1
VS
31712010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
3172
3173 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Fix spurious
3174 warning.
3175
7b61e609
VS
31762010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
3177
3178 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Don't try to
3179 retrieve the metadat sector if size isn't known.
3180 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
3181
9dfe92d0
RM
31822010-11-18 Robert Millan <rmh@gnu.org>
3183
3184 * grub-core/fs/btrfs.c (grub_btrfs_mount): Replace grub_strncmp()
3185 with grub_memcmp().
3186
41cc919e
VS
31872010-11-18 Vladimir Serbinenko <phcoder@gmail.com>
3188
3189 * grub-core/normal/menu_entry.c (print_up): Fix displacement of up
3190 arrow.
3191 Reported by: Jordan Uggla.
3192
1afcc914
VS
31932010-11-16 Vladimir Serbinenko <phcoder@gmail.com>
3194
3195 Make better UTF compliant.
3196
3197 * grub-core/normal/charset.c (grub_utf8_to_utf16): Handle 6- and 7-byte
3198 sequences as incorrect.
3199 (grub_is_valid_utf8): Likewise.
3200 (grub_utf8_to_ucs4): Likewise.
3201 (grub_ucs4_to_utf8): Handle codepoints outside of BMP.
3202 (grub_ucs4_to_utf8_alloc): Likewise.
3203 * include/grub/charset.h (grub_utf16_to_utf8): Likewise.
3204
f1808884
VS
32052010-11-16 Vladimir Serbinenko <phcoder@gmail.com>
3206
3207 Make legacy_source behave like source.
3208
3209 * grub-core/commands/legacycfg.c (legacy_file): Don't call
3210 grub_show_menu.
3211 (grub_cmd_legacy_source): Call grub_show_menu if needed.
3212
24ec575b
CW
32132010-11-16 Colin Watson <cjwatson@debian.org>
3214
3215 * conf/Makefile.common (CFLAGS_GNULIB): Add -Wno-unused-parameter.
3216 (-Wunused implies -Wunused-parameter, but not vice versa).
3217
72b7c7aa
CW
32182010-11-16 Colin Watson <cjwatson@ubuntu.com>
3219
3220 * configure.ac: Make error messages less confusing by testing for
3221 -Wtrampolines rather than -Wno-trampolines (since -Wno-* is always
3222 accepted, but produces a diagnostic if something else is wrong).
3223
e98937aa
VS
32242010-11-15 Vladimir Serbinenko <phcoder@gmail.com>
3225
3226 * grub-core/term/at_keyboard.c (grub_keyboard_controller_read)
3227 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_QEMU]: ifdef-ed out
3228 (now unused).
3229 (grub_keyboard_controller_init)
3230 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_QEMU]: Don't attempt to
3231 read the initial state since controller isn't inited yet.
3232
f6bbabc3
VS
32332010-11-15 Vladimir Serbinenko <phcoder@gmail.com>
3234
3235 * grub-core/lib/relocator.c (malloc_in_range): Take into account that
3236 allocate_regbeg may need to create new chunk header.
3237
22e7dbb2
VS
32382010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
3239
3240 Fix quoting in legacy parser.
3241
3242 * grub-core/lib/legacy_parse.c (grub_legacy_escape): Correctly handle
3243 single quotes.
3244 (grub_legacy_parse): Likewise.
3245 Reported by: Jordan Uggla.
3246 Tested by: Jordan Uggla.
3247
03f80960
VS
32482010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
3249
3250 Don't add -lgcc on i386 and x86_64.
3251
3252 * configure.ac (LIBS): Don't add -lgcc on i386 and x86_64.
3253 * conf/Makefile.common (LDADD_KERNEL): Likewise.
3254 * grub-core/Makefile.core.def (kernel): Use LDADD_KERNEL.
3255
779dc15b
VS
32562010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
3257
3258 * configure.ac: Add -Wno-trampolines when supported.
3259
d20a3b37
MV
32602010-11-14 Modestas Vainius <modax@debian.org>
3261
3262 * grub-core/kern/emu/getroot.c (grub_util_is_dmraid): Recognise ddf1_
3263 fakeraid.
3264
e5360933
GC
32652010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
3266
3267 Add generic logical block size support for UDF.
3268
3269 * grub-core/fs/udf.c (GRUB_UDF_LOG2_BLKSIZE): Removed.
3270 (GRUB_UDF_BLKSZ): Removed.
3271 (struct grub_udf_data): New field "lbshift" to hold the logical block
3272 size of the file system in log2 format. All users updated.
3273 (sblocklist): Change type to unsigned.
3274 (grub_udf_mount): Change type of "sblklist" to unsigned.
3275 Move AVDP search before VRS recognition, because the latter requires
3276 knowledge of the logical block size, which is detected during the
3277 former.
3278 Detect and validate logical block size during AVDP search, adding
3279 support for block sizes 512, 1024 and 4096.
3280 Make VRS recognition independent of block size.
3281
cb0229c5
GC
32822010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
3283
3284 Properly handle deleted files on UDF.
3285
3286 * grub-core/fs/udf.c (grub_udf_iterate_dir): Skip directory entries
3287 whose "characteristics" field has the bit GRUB_UDF_FID_CHAR_DELETED
3288 set.
3289
406858a8
GC
32902010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
3291
3292 Support reading files larger than 2 GiB.
3293
3294 * grub-core/fs/udf.c (grub_udf_iterate_dir): Change type of variable
3295 "offset" to grub_off_t.
3296 (grub_udf_read_file): Likewise for parameter "pos".
3297
130da6a7
VS
32982010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
3299
3300 * docs/grub.texi (Changes from GRUB Legacy): Note when save_env is
3301 unavailable.
3302 (Simple configuration): Refer to Changes from GRUB Legacy about
3303 save_env availability.
3304
65e93f6b
VS
33052010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
3306
3307 * util/grub-install.in: Ignore empty partition table detection
3308 instead of trying to include part_ module.
3309
1fd08bf1
VS
33102010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
3311
3312 * grub-core/disk/lvm.c (GRUB_MOD_FINI): Reset the vg_list. Fixes
3313 LVM on RAID support.
3314
de1a024f
VS
33152010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
3316
3317 Properly define WORDS_BIGENDIAN in wrapped environments.
3318
3319 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (WORDS_BIGENDIAN): New
3320 definition.
3321 * grub-core/lib/posix_wrap/sys/types.h (WORDS_BIGENDIAN): Likewise.
3322
3323 Reported by: Manoel Rebelo Abranches.
3324 Tested by: Manoel Rebelo Abranches.
3325
bc5dd0b9
VS
33262010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
3327
3328 * util/grub-mkconfig.in: Fix quoting.
3329
58c184be
VS
33302010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
3331
3332 Support big ext2 files.
3333
3334 * grub-core/fs/ext2.c (grub_ext2_inode): Rename dir_acl to size_high.
3335 (grub_ext2_read_block): Support triple indirect blocks.
3336 (grub_ext2_read_file): Use 64-bit types and read size_high.
3337 (grub_ext2_open): Read size_high.
3338 Reported by: Ximin Luo.
3339 Tested by: Manoel Rebelo Abranches.
3340
5f0c02b3
VS
33412010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
3342
3343 * util/grub-install.in: Handle filenames containing spaces.
3344 Reported by: Jordan Uggla.
3345 Tested by: Jordan Uggla.
3346
4417aae6
VS
33472010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
3348
3349 * util/grub-mkconfig.in (grub_script_check): New variable.
3350 Use grub_script_check instead of grub-script-check.
3351 Reported by: Barry Jackson.
3352
7625a68e
VS
33532010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
3354
3355 * docs/grub.texi (menu): Correct the order.
3356 Reported by: D. Hugh Redelmeier.
3357
10001ac5
VS
33582010-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3359
3360 * grub-core/kern/i386/pc/startup.S (multiboot_trampoline): Add missing
3361 jump.
3362
9c4cf53b
MRA
33632010-11-08 Manoel Rebelo Abranches <mrabran@br.ibm.com>
3364
10001ac5
VS
3365 * include/grub/elfload.h (grub_elf32_size): New parameter.
3366 All users updated.
9c4cf53b
MRA
3367 Return maximum segments alignment.
3368 (grub_elf64_size): Likewise.
3369 * kern/elf.c (grub_elf32_size): New parameter. All users updated.
3370 Return maximum segments alignment.
3371 (grub_elf64_size): Likewise.
3372 * grub-core/loader/powerpc/ieee1275/linux.c:
10001ac5
VS
3373 (grub_linux_claimmap_iterate): New function. Uses the
3374 "available" property in the "memory" node for memory allocation
3375 for kernel in the PowerPC loader.
9c4cf53b
MRA
3376 (grub_linux_load32): Correctly find linux entry point offset.
3377 (grub_linux_load64): Likewise.
3378
d2bf06bf
RM
33792010-11-07 Robert Millan <rmh@gnu.org>
3380
3381 On mips-yeeloong, build with -march=loongson2f when this flag is
3382 available (GCC >= 4.4).
3383 * conf/Makefile.common [COND_mips_yeeloong] (CFLAGS_PLATFORM): Remove
3384 `-march=mips3'.
3385 * configure.ac: For mips-yeeloong, add -march=loongson2f if available,
3386 or otherwise add -march=mips3.
3387
898c99a2
BC
33882010-11-07 BVK Chaitanya <bvk.groups@gmail.com>
3389
87220a68
BC
3390 Suppress shell expansion on echo '*' and echo "*" like cases.
3391 Reported by: Jordan Uggla.
898c99a2
BC
3392
3393 * grub-core/script/execute.c (grub_script_arglist_to_argv): Escape
3394 string arguments before shell expansion.
3395 * tests/grub_cmd_echo.in: New testcases.
3396
4f9b406a
RM
33972010-11-07 Robert Millan <rmh@gnu.org>
3398
3399 * conf/mips-qemu-mips.rmk: Remove stale file from previous
3400 transition.
3401
80c6d25e
VS
34022010-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3403
3404 * grub-core/kern/emu/hostdisk.c
3405 (convert_system_partition_to_system_disk): Handle devices like "sdaa1".
3406
4a1a0153
VS
34072010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
3408
3409 * include/grub/emu/misc.h: Don't include grub/util/libzfs.h.
3410 * include/grub/emu/misc.h (grub_get_libzfs_handle): Move from here ...
3411 * include/grub/util/libzfs.h (grub_get_libzfs_handle): ... here.
3412
34706ddc
VS
34132010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
3414
3415 * grub-core/fs/ntfs.c (grub_ntfs_uuid): Make uppercase.
3416
6972dea9
VS
34172010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
3418
3419 * util/grub-install.in: Replace useless recomendation to pass
3420 --modules with a recomendation to report a bug.
3421
9c693bd6
VS
34222010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
3423
3424 Properly register serial terminfo.
3425 Reported by: Jordan Uggla
3426
3427 * grub-core/term/serial.c (grub_serial_terminfo_input_template): New
3428 const.
3429 (grub_serial_terminfo_output_template): Likewise.
3430 (grub_cmd_serial): Register "serial" with terminfo.
3431 (GRUB_MOD_INIT(serial)): Fill grub_serial_terminfo_input and
3432 grub_serial_terminfo_output.
3433
6c9e4c0c
RM
34342010-11-05 Robert Millan <rmh@gnu.org>
3435
3436 * util/grub-mkconfig.in: Remove gfxterm.mod probe (no longer
3437 needed).
3438
b9b3839f
RM
34392010-11-05 Robert Millan <rmh@gnu.org>
3440
3441 On Yeeloong, pass machine type information to Linux.
3442
3443 * grub-core/loader/mips/linux.c [GRUB_MACHINE_MIPS_YEELOONG]
3444 (LOONGSON_MACHTYPE): New macro, set to
3445 "machtype=lemote-yeeloong-2f-8.9inches".
3446 [LOONGSON_MACHTYPE] (grub_cmd_linux): Pass LOONGSON_MACHTYPE as
3447 additional argument to Linux.
3448
1a3aaff4
RM
34492010-11-04 Robert Millan <rmh@gnu.org>
3450
3451 * util/deviceiter.c (grub_util_iterate_devices): Increase SCSI
3452 limit to 48 (to cope with Sun Fire X4500), and IDE limit to 96
3453 (its SATA disks are detected as slaveless IDE master drives on
3454 kFreeBSD).
3455 Reported by Carsten Aulbert.
3456
a75f4f62
CW
34572010-11-02 Colin Watson <cjwatson@ubuntu.com>
3458
3459 * util/bin2h.c (main): Fix spelling error in generated output.
3460
33b4b0c6
GS
34612010-11-01 Grégoire Sutre <gregoire.sutre@gmail.com>
3462
3463 * grub-core/partmap/bsdlabel.c (iterate_real): Fix an integer overflow.
3464
2b36fbf4
VS
34652010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3466
3467 * grub-core/loader/i386/linux.c (grub_cmd_linux): Autoload vbe.mod if
3468 vga= option is supplied.
3469
74aaf558
VS
34702010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3471
3472 * util/grub.d/10_hurd.in: Don't call savedefault on recovery entries.
3473 * util/grub.d/10_kfreebsd.in: Likewise.
3474 * util/grub.d/10_linux.in: Likewise.
3475 * util/grub.d/20_linux_xen.in: Likewise.
3476
6428dec3
VS
34772010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3478
3479 * grub-core/lib/arg.c (grub_arg_parse): Avoid interpreting direct
3480 argument as an argument to no-argument option.
3481
f8729d98
VS
34822010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3483
3484 * util/grub.d/10_linux.in: Add missing load_video with explicit
3485 GRUB_GFXPAYLOAD_LINUX.
3486
89d68fa6
VS
34872010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3488
3489 * Makefile.am (libgrub.pp): Propagate the libgrub.a split.
3490
3a1197cd
VS
34912010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3492
3493 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Do not put
3494 elements with invlid index.
3495 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
3496 * grub-core/disk/raid.c (insert_array): Automatically reallocate
3497 members.
3498 * include/grub/raid.h (grub_raid_member): New struct.
3499 (grub_raid_array): Transform devices and start_sector into usage of
3500 grub_raid_member. All users updated
3501 (allocated_devs): New member.
3502
71574288
VS
35032010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3504
3505 * docs/man/grub-set-default.h2m: Clarify that only saved default entry
3506 is modified
3507
8d40ec65
BC
35082010-10-29 BVK Chaitanya <bvk.groups@gmail.com>
3509
3510 NetBSD build fix for getline function conflict from gnulib.
3511
3512 * Makefile.util.def (libgrubkern.a): New library for grub kernel
3513 components that depend on gnulib headers.
3514 (libgrubmods.a): Renamed from earlier libgrub.a.
3515 * conf/Makefile.common: Remove gnulib from *_LIBRARY flags.
3516
95b9257e
VS
35172010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
3518
3519 * util/grub-setup.c (setup): Refuse to do a cross-disk embeddingless
3520 install rather than creating a broken install.
3521
26c53dc6
VS
35222010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
3523
3524 * util/grub-setup.c (argp): Remove misleading example of installing to
3525 a partition.
3526
4171b3c5
VS
35272010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
3528
3529 * util/grub-setup.c (setup): Clarify the error message.
3530
18568d18
VS
35312010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
3532
3533 * include/grub/types.h (grub_target_off_t): Removed no longer used type.
3534
4f6a2e21
VS
35352010-10-23 Vladimir Serbinenko <phcoder@gmail.com>
3536
3537 * grub-core/kern/emu/misc.c
3538 (grub_make_system_path_relative_to_its_root)
3539 [HAVE_LIBZFS && HAVE_LIBNVPAIR]: Fix mountpoint return on ZFS.
3540
35412010-10-23 Vladimir Serbinenko <phcoder@gmail.com>
5c81f8b3
VS
3542
3543 * grub-core/kern/emu/misc.c
3544 (grub_make_system_path_relative_to_its_root): Revert r2882.
3545
e138c458
VS
35462010-10-22 Vladimir Serbinenko <phcoder@gmail.com>
3547
3548 * grub-core/lib/relocator.c (grub_relocator_subchunk): Remove now
3549 useless field head. All users updated.
3550 (free_subchunk): Correct handling of IN_REGION subchunk.
3551
0cbcdf0e
CW
35522010-10-22 Colin Watson <cjwatson@ubuntu.com>
3553
3554 * docs/grub.texi (Installing GRUB using grub-install): Proofread.
3555 (Supported kernels): Likewise.
3556
b65ea155
GS
35572010-10-18 Grégoire Sutre <gregoire.sutre@gmail.com>
3558
3559 Make mktemp invocations portable.
3560
3561 * grub-core/genmod.sh.in: Use mktemp with an explicit template, and
3562 exit if mktemp fails.
3563 * tests/grub_script_blockarg.in: Likewise.
3564 * tests/partmap_test.in: Likewise.
3565 * tests/util/grub-shell-tester.in: Likewise.
3566 * tests/util/grub-shell.in: Likewise.
3567 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
3568 * Makefile.am: Likewise, and chain shell commands with `&&'
3569 instead of ';'.
3570 * util/grub-mkrescue.in: Use the same explicit template as above, and
3571 exit if mktemp fails.
3572
05f43cdd
BC
35732010-10-18 BVK Chaitanya <bvk.groups@gmail.com>
3574
3575 * util/grub.d/10_linux.in: Fix built-in initramfs image mode for
3576 Linux kernel, reported by Dennis Schridde.
3577
800e6a9b
SJ
35782010-10-17 Szymon Janc <szymon@janc.net.pl>
3579
3580 * grub-core/normal/auth.c (grub_auth_check_authentication):
3581 Set-but-not-used variable removed.
3582
d82df574
VS
35832010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
3584
3585 * docs/grub.texi (GNU/Linux): Document APM unavailability with
3586 32-bit linux protocol.
3587
7bced458
VS
35882010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
3589
3590 * grub-core/kern/i386/pc/startup.S (grub_console_setcursor): Check
3591 cursor shape for sanity.
3592
5b027690
VS
35932010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
3594
3595 * docs/grub.texi (Installation): Document buggy BIOS install.
3596
ba5f65cf
VS
35972010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
3598
3599 * docs/grub.texi (Installation): Indent.
3600
fdf2ec9c
VS
36012010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
3602
3603 * util/grub-setup.c (setup): New parameter allow_floppy.
3604 (arguments): New member allow_floppy.
3605 (argp_parser): Handle --allow-floppy.
3606 (main): Pass allow_floppy.
3607 * util/grub-install.in: New option --allow-floppy passed though to
3608 grub-setup.
3609
861dfd4c
VS
36102010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
3611
3612 * util/grub-install.in: Handle partitionless disks.
3613
f77a8c24
VS
36142010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
3615
3616 * util/grub-setup.c (setup): Don't clean blocklists before readability
3617 verfification.
3618
27d9ee32
VS
36192010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
3620
3621 * docs/grub.texi (Installation): Document embedding zone. Remove
3622 obsolete grub-install example.
3623
6bdda8f8
SJ
36242010-10-16 Szymon Janc <szymon@janc.net.pl>
3625
3626 * grub-core/commands/legacycfg.c (grub_cmd_legacy_kernel):
3627 Set-but-not-used variable ifdef'ed.
3628 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Likewise.
3629 * grub-core/bus/usb/ohci.c (grub_ohci_pci_iter): Set-but-not-used
3630 variable removed.
3631 * grub-core/disk/lvm.c (grub_lvm_scan_device): Likewise.
3632 * grub-core/fs/jfs.c (grub_jfs_find_file): Likewise.
3633 * grub-core/fs/minix.c (grub_minix_dir): Likewise.
3634 * grub-core/fs/sfs.c (grub_sfs_read_extent): Likewise.
3635 * grub-core/fs/ufs.c (grub_ufs_dir): Likewise.
3636 * grub-core/gfxmenu/gui_list.c (grub_gui_list_new): Likewise.
3637 * grub-core/gfxmenu/view.c (redraw_menu_visit): Likewise.
3638 * grub-core/gfxmenu/widget-box.c (draw): Likewise.
3639 * grub-core/lib/relocator.c (malloc_in_range): Likewise.
3640 * grub-core/loader/i386/bsdXX.c (grub_netbsd_load_elf_meta): Likewise.
3641 * grub-core/loader/i386/bsd_pagetable.c (fill_bsd64_pagetable):
3642 Likewise.
3643
e19b016b
VS
36442010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
3645
3646 * grub-core/commands/acpihalt.c (skip_ext_op): Skip index field op.
3647 * include/grub/acpi.h (GRUB_ACPI_EXTOPCODE_INDEX_FIELD_OP): New
3648 enum value.
3649
6c8d3002
VS
36502010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
3651
3652 * grub-core/commands/acpihalt.c (get_sleep_type): Accept \_S5_ as
3653 synonym to _S5_. Needed for some DSDTs.
3654
c32b51c9
VS
36552010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
3656
3657 Userspace ACPI parser debugging.
3658
3659 * grub-core/commands/acpihalt.c [GRUB_DSDT_TEST]: Include userspace
3660 headers and add relevant defines. Don't include standard headers.
3661 (main) [GRUB_DSDT_TEST]: New function.
3662 * include/grub/acpi.h [GRUB_DSDT_TEST]: Don't include standard headers.
3663 Don't declare functions.
3664
fbfbeb39
VS
36652010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
3666
3667 Remove dead grub_efi_mm_fini.
3668
3669 * grub-core/kern/efi/mm.c (allocated_page): Removed.
3670 (ALLOCATED_PAGES_SIZE): Likewise.
3671 (MAX_ALLOCATED_PAGES): Likewise.
3672 (allocated_pages): Likewise.
3673 (grub_efi_allocate_pages): Don't record allocated pages.
3674 (grub_efi_free_pages): Likewise.
3675 (grub_efi_mm_init): Likewise.
3676 (grub_efi_mm_fini): Removed.
3677
65f7ed7c
VS
36782010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
3679
3680 * grub-core/kern/efi/mm.c (BYTES_TO_PAGES): Round up instead of down.
3681 (grub_efi_mm_init): Take into account the memory map size increase.
3682
24977b44
VS
36832010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
3684
3685 * grub-core/term/ns8250.c (do_real_config): Set port->broken to 0.
3686 (serial_hw_put): Wait based on real time rather than port reads. Don't
3687 roken ports.
3688 * include/grub/serial.h (grub_serial_port): New field broken.
3689
1eb01cd2
RM
36902010-10-16 Robert Millan <rmh@gnu.org>
3691
3692 * grub-core/kern/emu/misc.c
3693 (grub_make_system_path_relative_to_its_root): Fix premature return
3694 when processing non-root ZFS filesystems.
5f8b440b 3695 Reported by Sergio Talens-Oliag.
1eb01cd2 3696
2d5fed60
RM
36972010-10-15 Robert Millan <rmh@gnu.org>
3698
3699 * util/grub.d/10_linux.in (list): Expand "vmlinu[zx]" instances to
3700 guarantee compressed ones are processed first.
3701
d0f4c1ea
VS
37022010-10-14 Vladimir Serbinenko <phcoder@gmail.com>
3703
3704 * grub-core/efiemu/main.c (grub_efiemu_prepare): Handle errors from
3705 grub_efiemu_autocore.
3706
d87c681f
VS
37072010-10-14 Vladimir Serbinenko <phcoder@gmail.com>
3708
3709 * grub-core/kern/i386/pc/startup.S (bypass_table): Use 0x1b explicitly
3710 rather than 0x1b.
3711 (grub_console_getkey): Use correct jae opcode rather than ja.
3712
219b3564
RM
37132010-10-12 Robert Millan <rmh@gnu.org>
3714
3715 * util/grub-mkconfig.in: Merge `GRUB_DISABLE_LINUX_RECOVERY' and
3716 `GRUB_DISABLE_NETBSD_RECOVERY' into a single `GRUB_DISABLE_RECOVERY'
3717 variable. All references updated.
3718
3719 * util/grub.d/10_kfreebsd.in: Support recovery boot entries.
3720
20c6bb7e
VS
37212010-10-08 Vladimir Serbinenko <phcoder@gmail.com>
3722
3723 Correctly distinguish mdraid flavours.
3724
3725 * grub-core/disk/raid.c (grub_raid_getname) [GRUB_UTIL]: New function.
3726 (insert_array): New argument raid.
3727 * include/grub/disk.h (grub_disk_dev) [GRUB_UTIL]: New member raidname.
3728 * include/grub/raid.h (grub_raid_array) [GRUB_UTIL]: New member driver.
3729 * util/grub-probe.c (probe): PRint raidname instead of plainly "mdraid".
3730
74baff84
VS
37312010-10-09 Vladimir Serbinenko <phcoder@gmail.com>
3732
3733 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Fix incorrect
3734 handling of special keys.
3735
3ef068df 37362010-10-02 Aleš Nesrsta <starous@volny.cz>
3737
c7980ad9
VS
3738 * include/grub/scsi.h (grub_make_scsi_id): Fix incorrect usgae of
3739 GRUB_SCSI_ID_BUS_SHIFT instead of GRUB_SCSI_ID_LUN_SHIFT.
3ef068df 3740
a9455194 37412010-10-02 Aleš Nesrsta <starous@volny.cz>
3742
c7980ad9
VS
3743 * grub-core/bus/usb/ohci.c (GRUB_OHCI_TDS): Increase.
3744 * grub-core/bus/usb/uhci.c (N_TD): New definition. All previous implicit
3745 users updated.
a9455194 3746 * grub-core/bus/usb/usbtrans.c (grub_usb_bulk_setup_readwrite):
c7980ad9 3747 Use right endpoint when querying descriptor.
a9455194 3748
441cfe65
VS
37492010-10-01 Vladimir Serbinenko <phcoder@gmail.com>
3750
3751 Clear out 0x80 color bit on EFI.
3752 Tested by: decoder
3753 Reported by: decoder and meta tech.
3754
3755 * grub-core/term/efi/console.c (grub_console_standard_color): Removed.
3756 (grub_console_setcolorstate): Clear out 0x80 bit.
3757 Use GRUB_TERM_DEFAULT_STANDARD_COLOR.
3758 (grub_console_output): Use GRUB_TERM_DEFAULT_NORMAL_COLOR.
3759 Use GRUB_TERM_DEFAULT_HIGHLIGHT_COLOR.
3760
bf26bcc4
VS
37612010-10-01 Vladimir Serbinenko <phcoder@gmail.com>
3762
3763 * grub-core/loader/i386/linux.c (DEFAULT_VIDEO_MODE) [GRUB_MACHINE_EFI]:
3764 Set to "auto".
3765
6e3c515d
VS
37662010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
3767
3768 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Avoid using
3769 mo_file after freeing.
3770
e6d983ba
VS
37712010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
3772
3773 * grub-core/normal/term.c (read_terminal_list): Free in a right order.
3774
74ccb5b5
VS
37752010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
3776
3777 * grub-core/script/execute.c (grub_script_execute_sourcecode): Set
3778 flags.
3779
17821956
VS
37802010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
3781
3782 * util/grub-setup.c (main) [GRUB_MACHINE_IEEE1275]: Propagate argp
3783 usage.
3784
ee74fa48
VS
37852010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
3786
3787 Put terminfo into core on ieee1275 and yeeloong (needed for console).
3788
3789 * gentpl.py: New groups terminfoinkernel and terminfomodule.
3790 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Include extcmd.h, arg.h
3791 and terminfo.h when needed.
3792 * grub-core/Makefile.core.def (kernel): Include term/terminfo.c,
3793 term/tparm.c, commands/extcmd.c, lib/arg.c on terminfokernel.
3794 (terminfo): Enable only on terminfokernel.
3795 (extcmd): Likewise.
3796 * include/grub/extcmd.h: Add missing EXPORT_FUNC.
3797 * include/grub/lib/arg.h: Likewise.
3798 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_dimensions): Fix
3799 incorrect usage of ->.
3800
aa438e68
VS
38012010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
3802
3803 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi]
3804 [GRUB_MACHINE_EFI && __i386__]: Fix typo.
3805
57994012
VS
38062010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
3807
3808 Fix coreboot compilation.
3809
3810 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
3811 Take VBE info into account even if only text is supported.
3812 (fill_vbe_info): Take into account the case when only VGA text
3813 is supported.
3814 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VBE): Set to zero
3815 on coreboot, multiboot and qemu.
3816
2a406611
VS
38172010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
3818
3819 * grub-core/lib/relocator.c (malloc_in_range): Trim too verbose
3820 debug messages.
3821 (grub_relocator_prepare_relocs): Set movers_chunk.srcv.
3822
d33613fc
VS
38232010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
3824
3825 * grub-core/loader/i386/bsd.c (grub_cmd_netbsd): Provide default serial
3826 parameters.
3827
44a1b432
VS
38282010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
3829
3830 * grub-core/lib/arg.c (grub_arg_parse): Fix treating of all commands as
3831 if they were BSD-style.
3832
edde54e6
VS
38332010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
3834
3835 * grub-core/boot/i386/pc/lnxboot.S: Replace
3836 GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE with
3837 GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART.
3838
b65830fa
VS
38392010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
3840
3841 Write embedding zone using Reed-Solomon.
3842
3843 * Makefile.util.def (grub-setup): Add grub-core/lib/reed_solomon.c.
3844 * grub-core/Makefile.am (rs_decoder.S): New target.
3845 (kern/i386/pc/startup.S): Depend on rs_decoder.S.
3846 * grub-core/kern/i386/pc/startup.S (reed_solomon_redundancy): New field.
3847 (multiboot): Move to RS part.
3848 (post_reed_solomon): New label.
3849 (grub_boot_drive): Move to non-RS part since it's modified in memory
3850 on boot.
3851 Include rs_decoder.S.
3852 * grub-core/lib/reed_solomon.c: New file.
3853 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY):
3854 New definition.
3855 (GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE): Removed.
3856 (GRUB_KERNEL_I386_PC_RAW_SIZE): Updated.
3857 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): New definition.
3858 * include/grub/partition.h (grub_partition_map): Change prototype of
3859 embed to allow returning additional sectors.
3860 * include/grub/reed_solomon.h: New file.
3861 * util/grub-setup.c (setup): Handle Reed-Solomon.
3862
0b4b227f
CW
38632010-09-28 Colin Watson <cjwatson@ubuntu.com>
3864
3865 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix
3866 i386 and x86-64 definedness tests.
3867
f772623b
YB
38682010-09-27 Yves Blusseau <blusseau@zetam.org>
3869
3870 Fix generation of kernel_syms.lst
3871
3872 * grub-core/Makefile.am (kernel_syms.lst): Fix value and position of
3873 ASM_PREFIX
3874
8e57a6ca
RM
38752010-09-26 Robert Millan <rmh@gnu.org>
3876
3877 Support degraded ZFS arrays in "grub-probe -t device" resolution.
3878
3879 * grub-core/kern/emu/getroot.c (find_root_device_from_libzfs): When
3880 the pool is an array of devices, iterate through it and return the
3881 first device that passes a stat() test (instead of blindly returning
3882 the first one).
3883
f9130836
RM
38842010-09-26 Robert Millan <rmh@gnu.org>
3885
3886 Build fixes for GNU/kFreeBSD.
3887
3888 * Makefile.util.def: Add `$(LIBZFS) $(LIBNVPAIR)' library dependencies
3889 to programs that require ZFS conversion.
3890 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): Support
3891 kernels that don't have FLOPPY_MAJOR.
3892
96510faf
BC
38932010-09-25 BVK Chaitanya <bvk.groups@gmail.com>
3894
3895 * grub-core/kern/emu/full.c (grub_emu_post_init): Fix typo.
3896
449333eb
BC
38972010-09-25 BVK Chaitanya <bvk.groups@gmail.com>
3898
3899 Fix grub-emu build.
3900
3901 * grub-core/kern/emu/main.c: Remove #include <getopt.h>.
3902 * grub-core/kern/emu/full.c: Split grub_mdraid_{init,fini} into
3903 mdraid09 and mdraid1x.
3904
e1fd1939
CW
39052010-09-24 Colin Watson <cjwatson@ubuntu.com>
3906
3907 Re-enable grub-extras.
3908
3909 * autogen.sh: Create symlinks to ${GRUB_CONTRIB} if necessary to
3910 avoid confusing Automake. Run autogen only twice, once for the top
3911 level and once for grub-core. Add Makefile.util.def and
3912 Makefile.core.def from extra modules to the appropriate autogen
3913 invocations. If Makefile.common exists in an extra module, include
3914 it in both Makefile.util.am and grub-core/Makefile.core.am;
3915 similarly, include any Makefile.util.common file in Makefile.util.am
3916 and any Makefile.core.common file in grub-core/Makefile.core.am.
3917 * conf/Makefile.common ($(top_srcdir)/grub-core/Makefile.core.am):
3918 Depend on $(top_srcdir)/grub-core/Makefile.gcry.def.
3919 ($(top_srcdir)/grub-core/Makefile.gcry.def): Remove.
3920 * grub-core/Makefile.am: Remove inclusion of Makefile.gcry.am.
3921
3922 * gentpl.py (gvar_add): Turn GVARS into a set.
3923 (global_variable_initializers): Sort global variables on output.
3924 (vars_init): New function.
3925 (first_time): Likewise.
3926 (library): Ensure that non-global variable initialisations are
3927 emitted before the first time we emit code for a library block.
3928 Append to variables rather than setting them. Only emit
3929 noinst_LIBRARIES, BUILT_SOURCES, and CLEANFILES the first time for
3930 each conditional path.
3931 (program): installdir() emits an Autogen macro, so must be passed to
3932 var_add rather than gvar_add.
3933 (data): Likewise.
3934 (script): Likewise.
3935 (rules): New function, centralising handling for different target
3936 types. Set up Guile association lists for first_time and vars_init,
3937 and send most output to a diversion so that variable initialisations
3938 can be emitted first.
3939 (module_rules): Use new rules function.
3940 (kernel_rules): Likewise.
3941 (image_rules): Likewise.
3942 (library_rules): Likewise.
3943 (program_rules): Likewise.
3944 (script_rules): Likewise.
3945 (data_rules): Likewise.
3946
3947 * configure.ac: Add AC_PROG_LN_S, for the benefit of ntldr-img.
3948
3949 * .bzrignore: Add contrib and grub-core/contrib. Remove
3950 grub-core/Makefile.gcry.am.
3951
1d12cf29
YB
39522010-09-24 Yves Blusseau <blusseau@zetam.org>
3953
3954 * grub-core/lib/LzFind.c: Add missing include.
3955 * grub-core/lib/LzmaEnc.c: Likewise.
3956 * grub-core/script/lexer.c: Likewise.
3957 * grub-core/script/yylex.l: Likewise.
3958 * util/grub-macho2img.c: Likewise.
3959 * util/grub-menulst2cfg.c: Likewise.
3960 * util/grub-mklayout.c: Likewise.
3961 * util/grub-mkpasswd-pbkdf2.c
3962 * util/grub-mkrelpath.c: Likewise.
3963 * util/resolve.c: Likewise.
3964
dd363028
BC
39652010-09-24 BVK Chaitanya <bvk.groups@gmail.com>
3966
3967 * Makefile.util.def (example_unit_test): Add
3968 grub-core/gnulib/libgnu.a.
3969
f5a109e2
GS
39702010-09-23 Grégoire Sutre <gregoire.sutre@gmail.com>
3971
3972 * grub-core/commands/acpihalt.c (get_sleep_type): Initialize prev.
3973
6d0fa83c
VS
39742010-09-23 Vladimir Serbinenko <phcoder@gmail.com>
3975
3976 Support xz compression on yeeloong.
3977
3978 * Makefile.util.def (grub-mkimage): Add $(LIBLZMA).
3979 * configure.ac: Check for LZMA.
3980 * grub-core/Makefile.core.def (xz_decompress): New target.
3981 (none_decompress): Likewise.
3982 * grub-core/boot/decompressor/minilib.c: New file.
3983 * grub-core/boot/decompressor/none.c: Likewise.
3984 * grub-core/boot/decompressor/xz.c: Likewise.
3985 * grub-core/kern/mips/cache.S: Change to noreorder nomacro.
3986 * grub-core/kern/mips/cache_flush.S: Likewise.
3987 * grub-core/kern/i386/pc/lzma_decode.S: Remove dead code.
3988 * grub-core/kern/mips/startup.S: Move first stage to ...
3989 * grub-core/boot/mips/startup_raw.S: ...here. Change to noreorder
3990 nomacro.
3991 * grub-core/kern/mips/startup.S: Change to noreorder nomacro.
3992 * grub-core/lib/mips/relocator_asm.S: Change to noreorder nomacro.
3993 * grub-core/lib/xzembed/xz_dec_bcj.c [GRUB_EMBED_DECOMPRESSOR]:
3994 Allocate statically.
3995 * grub-core/lib/xzembed/xz_dec_lzma2.c [GRUB_EMBED_DECOMPRESSOR]:
3996 Allocate statically or use scratch. Don't check CRC32.
3997 * grub-core/lib/xzembed/xz_dec_stream.c [GRUB_EMBED_DECOMPRESSOR]:
3998 Allocate statically. Don't check CRC32.
3999 * include/grub/decompressor.h: New file.
4000 * include/grub/offsets.h (GRUB_KERNEL_MIPS_YEELOONG_RAW_SIZE):
4001 Removed.
4002 (GRUB_KERNEL_MIPS_YEELOONG_UNCOMPRESSED_SIZE): New field.
4003 (GRUB_KERNEL_MIPS_YEELOONG_TOTAL_MODULE_SIZE): Adjusted.
4004 (GRUB_KERNEL_MIPS_YEELOONG_PREFIX): Likewise.
4005 (GRUB_KERNEL_MIPS_YEELOONG_PREFIX_END): Likewise.
4006 (GRUB_KERNEL_MACHINE_UNCOMPRESSED_SIZE): New define.
4007 * util/grub-mkimage.c (grub_compression_t): New type.
4008 (PLATFORM_FLAGS_DECOMPRESSORS): New flag.
4009 (image_target_desc): New field default_compression.
4010 (image_targets): Adjust yeeloong targets.
4011 (compress_kernel_xz) [HAVE_LIBLZMA]: New function.
4012 (compress_kernel): New parameter comp.
4013 (generate_image): Likewise. Handle new compression case.
4014 (options): New option --compression
4015 (help): Likewise.
4016 (main): Handle new option.
4017
1b655af6
GS
40182010-09-22 Grégoire Sutre <gregoire.sutre@gmail.com>
4019
4020 * grub-core/kern/emu/hostdisk.c [__NetBSD__]: Define FLOPPY_MAJOR.
4021
8f03f0b5
CW
40222010-09-22 Colin Watson <cjwatson@ubuntu.com>
4023
4024 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix
4025 typo in __i386__ conditional.
4026
7835dfd3
VS
40272010-09-22 Vladimir Serbinenko <phcoder@gmail.com>
4028
4029 * grub-core/loader/multiboot_mbi2.c (GRUB_MACHINE_EFI): Add missing
4030 include.
4031
e255597e
VS
40322010-09-22 Vladimir Serbinenko <phcoder@gmail.com>
4033
6d0fa83c 4034 Implement EFI and ACPI multiboot2 extensions.
e255597e
VS
4035
4036 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_load): Declare
4037 new tags as supported.
4038 (acpiv2_size): New function.
4039 (grub_multiboot_get_mbi_size): Take new tags into account.
4040 (grub_multiboot_make_mbi): Add new tags.
4041 * include/grub/multiboot.h (GRUB_MACHINE_HAS_ACPI): New definition.
6d0fa83c 4042
6cc14051 40432010-09-21 Aleš Nesrsta <starous@volny.cz>
4044
4045 * grub-core/bus/usb/serial/common.c (grub_usbserial_attach):
4046 Added missing configuration of USB device.
4047
df7769d8
CW
40482010-09-21 Colin Watson <cjwatson@ubuntu.com>
4049
4050 * grub-core/normal/menu_entry.c (run): Make sure we always return
4051 a value.
4052
b031012d
CW
40532010-09-21 Colin Watson <cjwatson@ubuntu.com>
4054
4055 * grub-core/commands/efi/lsefimmap.c (grub_cmd_lsefimmap):
4056 NumberOfPages is UINT64 according to the UEFI specification, not
4057 UINTN. Fix printf format.
4058
174de8f3
CW
40592010-09-21 Colin Watson <cjwatson@ubuntu.com>
4060
4061 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Change type of
4062 `err' to grub_usb_err_t.
4063 Reported and tested by: KESHAV P.R.
4064
d7dbe923
CW
40652010-09-21 Colin Watson <cjwatson@ubuntu.com>
4066
4067 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Make
4068 tpart non-const, so that we can assign to it. (Since this is a
4069 typedef, the constness refers to the pointer rather than what it
4070 points to.)
4071
8d5e2af3
CW
40722010-09-21 Colin Watson <cjwatson@ubuntu.com>
4073
4074 * conf/Makefile.common (CPPFLAGS_GNULIB): Add
4075 $(top_srcdir)/grub-core/gnulib as well as
4076 $(top_builddir)/grub-core/gnulib.
4077 Reported by: KESHAV P.R.
4078
5c527783
CW
40792010-09-21 Colin Watson <cjwatson@ubuntu.com>
4080
4081 * util/grub-install.in: Fix the bootloader ID option to be
4082 consistently --bootloader-id, not --bootloader_id.
4083 Reported by: KESHAV P.R.
4084
d309a16e
CW
40852010-09-21 Colin Watson <cjwatson@ubuntu.com>
4086
4087 * grub-core/commands/hashsum.c (GRUB_MOD_INIT): Make "Compute or
4088 check hash checksum." consistently translatable.
4089
b830cd16
YB
40902010-09-21 Yves Blusseau <blusseau@zetam.org>
4091
4092 * conf/Makefile.common (CPPFLAGS_GNULIB): Replace $(top_srcdir) with
4093 $(top_builddir).
4094
c4fe27a8
CW
40952010-09-21 Colin Watson <cjwatson@ubuntu.com>
4096
4097 * grub-core/commands/hashsum.c (aliases): Add sha1sum alias.
4098 (GRUB_MOD_INIT): Register sha1sum command.
4099 (GRUB_MOD_FINI): Unregister sha1sum command.
4100
a4c1d277
YB
41012010-09-21 Yves Blusseau <blusseau@zetam.org>
4102
4103 Keep boot and grub directory names in sync with utils scripts
4104
4105 * configure.ac: Define GRUB_BOOT_DIR_NAME and GRUB_DIR_NAME macros.
4106 * config.h.in: Add previous macros.
4107 * include/grub/emu/misc.h (DEFAULT_DIRECTORY): Use previous macros.
4108 * util/grub-install.in: Use $bootdir and $grubdir variables.
4109
4eff79d2
CW
41102010-09-21 Colin Watson <cjwatson@ubuntu.com>
4111
4112 * grub-core/kern/emu/hostdisk.c (find_system_device): Only try to
4113 convert partition names to disk names if the new `convert' parameter
4114 is set.
4115 (grub_util_biosdisk_get_grub_dev): If opening the disk device
4116 returns GRUB_ERR_UNKNOWN_DEVICE, treat the partition device as a
4117 disk in its own right. This can happen with Xen disk images.
4118
934d7e44
YB
41192010-09-21 Yves Blusseau <blusseau@zetam.org>
4120
4121 * util/grub-editenv.c: Update strings to avoid warnings when generating
4122 grub.pot file.
4123 * util/grub-setup.c: Likewise.
934d7e44 4124
df3367cc
VS
41252010-09-21 Vladimir Serbinenko <phcoder@gmail.com>
4126
4127 * configure.ac: Change version to 1.99~beta0.
4128
77a94e98
VS
41292010-09-21 Vladimir Serbinenko <phcoder@gmail.com>
4130
4131 * grub-core/loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap):
4132 Add BADRAM.
4133 * grub-core/loader/multiboot_mbi2.c (grub_fill_multiboot_mmap):
4134 Likewise.
4135 * include/multiboot.h: Resynced with specification.
4136 * include/multiboot2.h: Likewise.
4137
269004c1
CW
41382010-09-21 Colin Watson <cjwatson@ubuntu.com>
4139
4140 Fix po directory handling.
4141
4142 * configure.ac: Create po/Makefile.in rather than po/Makefile.
4143 * grub-core/gnulib/Makefile.am: Import gettext module.
4144 * m4/gnulib-cache.m4: Likewise.
4145 * m4/gnulib-comp.m4: Likewise.
4146 * m4/gettext.m4: New file, from gnulib.
4147 * m4/glibc2.m4: Likewise.
4148 * m4/iconv.m4: Likewise.
4149 * m4/intdiv0.m4: Likewise.
4150 * m4/intl.m4: Likewise.
4151 * m4/intldir.m4: Likewise.
4152 * m4/intlmacosx.m4: Likewise.
4153 * m4/intmax.m4: Likewise.
4154 * m4/inttypes-pri.m4: Likewise.
4155 * m4/lcmessage.m4: Likewise.
4156 * m4/lib-ld.m4: Likewise.
4157 * m4/lib-link.m4: Likewise.
4158 * m4/lib-prefix.m4: Likewise.
4159 * m4/lock.m4: Likewise.
4160 * m4/nls.m4: Likewise.
4161 * m4/po.m4: Likewise.
4162 * m4/printf-posix.m4: Likewise.
4163 * m4/progtest.m4: Likewise.
4164 * m4/threadlib.m4: Likewise.
4165 * m4/uintmax_t.m4: Likewise.
4166 * m4/visibility.m4: Likewise.
4167 * po/Makefile.am: Remove.
4168 * po/Makefile.in.in: New file, from gettext.
4169 ($(DOMAIN).pot-update): Support POTFILES-shell.
4170 * po/Makevars: New file.
4171 * po/POTFILES-shell: Rename to ...
4172 * po/POTFILES-shell.in: ... this. Update.
4173 * po/POTFILES: Rename to ...
4174 * po/POTFILES.in: ... this. Update.
4175 * po/Rules-quot: New file, from gettext.
4176 * po/boldquot.sed: Likewise.
4177 * po/en@boldquot.header: Likewise.
4178 * po/en@quot.header: Likewise.
4179 * po/insert-header.sin: Likewise.
4180 * po/quot.sed: Likewise.
4181 * po/remove-potcdate.sin: Likewise.
4182
3e0fa5d0
VS
41832010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
4184
4185 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Use UUID when possible.
4186
ade9bd66
VS
41872010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
4188
4189 * util/grub.d/20_linux_xen.in: Use submenus.
4190
fc55cc4c
VS
41912010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
4192
4193 Support submenus.
4194
4195 * grub-core/commands/menuentry.c (grub_normal_add_menu_entry): New
4196 parameter submenu. All users updated.
4197 * grub-core/normal/main.c (free_menu): Rename to ...
4198 (grub_normal_free_menu): ... this. Made global.
4199 * grub-core/normal/menu.c (grub_menu_execute_entry): Open new context
4200 if requested.
4201 * grub-core/normal/menu_entry.c (screen): New field submenu.
4202 (make_screen): Set submenu.
4203 (run): Open new context if requested.
4204 * include/grub/menu.h (grub_menu_entry): New field submenu.
4205 * include/grub/normal.h (grub_normal_free_menu): New proto.
4206
600cedf7
VS
42072010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
4208
4209 Menu entries extractor.
4210
4211 * grub-core/commands/configfile.c (grub_cmd_source): Implement extractor
4212 variants.
4213 (GRUB_MOD_INIT): Register new variants.
4214 (GRUB_MOD_FINI): Unregister new variants.
4215 * grub-core/commands/legacycfg.c (grub_cmd_legacy_configfile): Merge
4216 into grub_cmd_legacy_source.
4217 (grub_cmd_legacy_source): Implement extractor variants.
4218 (GRUB_MOD_INIT): Register new variants.
4219 (GRUB_MOD_FINI): Unregister new variants.
4220 * grub-core/commands/menuentry.c (grub_menu_init): Declare menuentry
4221 as an extractor.
4222 * grub-core/commands/search_wrap.c (GRUB_MOD_INIT): Declare
4223 search as an extractor.
4224 * grub-core/commands/test.c (GRUB_MOD_INIT): Declare
4225 test as an extractor.
4226 * grub-core/kern/corecmd.c (grub_register_core_commands): Declare set
4227 as an extractor.
4228 * grub-core/normal/context.c (grub_env_context_open): Reorganised.
4229 (grub_env_new_context): New function.
4230 (grub_env_context_open): Likewise.
4231 (grub_env_extractor_open): Likewise.
4232 (grub_env_extractor_close): Likewise.
4233 * grub-core/script/execute.c (grub_script_execute_cmdline): Handle
4234 grub_extractor_level.
4235 * include/grub/command.h (GRUB_COMMAND_FLAG_EXTRACTOR): New flag.
4236 * include/grub/env.h (grub_env_extractor_open): New proto.
4237 (grub_env_extractor_close): Likewise.
4238 * include/grub/normal.h (grub_extractor_level): New external variable.
4239
7bda3a87
VS
42402010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
4241
4242 Make cutmem accept a region specification.
4243 Suggested by: Samuel Thibault
4244
4245 * grub-core/mmap/mmap.c (parsemem): New function.
4246 (grub_cmd_cutmem): Handle new arguments.
4247
2ea57f88
VS
42482010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
4249
4250 New command cutmem.
4251
4252 * grub-core/mmap/mmap.c (grub_cmd_cutmem): New function.
4253 (GRUB_MOD_INIT): Register new command.
4254 (GRUB_MOD_FINI): Unregister new command.
4255
74342e31
VS
42562010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
4257
4258 Support some annoying BSD and Minix subpartitions.
4259
4260 * Makefile.util.def (libgrub.a): Add grub-core/partmap/bsdlabel.c.
4261 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name):
4262 Properly handle concatenation.
4263 * grub-core/kern/device.c (grub_device_iterate): Likewise.
4264 * grub-core/normal/completion.c (iterate_partition): Likewise.
4265 * grub-core/kern/disk.c (grub_disk_open): Make disk->name not
4266 contain partition. All users updated.
4267 * grub-core/partmap/bsdlabel.c (grub_netbsdlabel_partition_map): New
4268 struct.
4269 (grub_openbsdlabel_partition_map): Likewise.
4270 (bsdlabel_partition_map_iterate): Rename to ..
4271 (iterate_real): ... this. New arguments sector, freebsd and pmap.
4272 (bsdlabel_partition_map_iterate): New function.
4273 (netopenbsdlabel_partition_map_iterate): Likewise.
4274 (netbsdlabel_partition_map_iterate): Likewise.
4275 (openbsdlabel_partition_map_iterate): Likewise.
4276 (GRUB_MOD_INIT): Register new partmaps.
4277 (GRUB_MOD_FINI): Unregister new partmaps.
4278 * grub-core/partmap/msdos.c (pc_partition_map_iterate): Rename to ...
4279 (grub_partition_msdos_iterate): ... this. All users updated.
4280 Don't support embedding other than in a minix partition.
4281 * include/grub/msdos_partition.h (grub_partition_msdos_iterate): New
4282 proto.
4283 * include/grub/partition.h (grub_partition): New field msdostype.
4284 * util/grub-install.in: Handle openbsd and netbsd types being in
4285 part_bsd module.
4286
1e8d555b
VS
42872010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
4288
4289 Split mdraid.mod into mdraid09.mod and mdraid1x.mod.
4290
4291 * Makefile.util.def (libgrub.a): Add grub-core/disk/mdraid1x_linux.c.
4292 * grub-core/Makefile.core.def (mdraid): Renamed to ...
4293 (mdraid09): ... this.
4294 (mdraid1x): New module.
4295 * grub-core/disk/mdraid_linux.c: Move 1.x parts ...
4296 * grub-core/disk/mdraid1x_linux.c: ...here. All users updated.
4297
899d8af4
VS
42982010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
4299
4300 * grub-core/kern/emu/misc.c (asprintf): Use vsnprintf instead of
4301 vsprintf.
4302
40901acd
CW
43032010-09-20 Colin Watson <cjwatson@ubuntu.com>
4304
4305 * grub-core/commands/efi/lsefimmap.c: Correct header.
4306 * NEWS: Update.
4307
dfe3b247
CW
43082010-09-20 Colin Watson <cjwatson@ubuntu.com>
4309
4310 * util/grub-editenv.c (argp_parser): Don't pass translated strings
4311 as printf format strings; the translations might contain '%' which
4312 could cause a crash.
4313 (main): Likewise.
4314 * util/grub-fstest.c (argp_parser): Likewise.
4315 * util/grub-setup.c (argp_parser): Likewise.
4316 (main): Likewise.
4317
3286a4b4
VS
43182010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
4319
4320 Use argp in grub-fstest.
4321
4322 * util/grub-fstest.c: Don't include getopt.h.
4323 Include argp.h.
4324 (root): New variable.
4325 (args_count): Likewise.
4326 (nparm): Likewise.
4327 (num_disks): Likewise.
4328 (images): Likewise.
4329 (cmd): Likewise.
4330 (debug_str): Likewise.
4331 (args): Likewise.
4332 (options): Transformed to argp.
4333 (usage): Removed.
4334 (main): Split argument parsing into ...
4335 (argp_parser): ... this. Changed to argp format.
4336 (argp): New variable.
4337 (main): Use argp_parse.
4338
3dccbe4b
TG
43392010-09-20 Tristan Gingold <gingold@free.fr>
43402010-09-20 Robert Millan <rmh.grub@aybabtu.com>
43412010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
4342
4343 * grub-core/commands/efi/lsefimmap.c: New file.
4344 * grub-core/Makefile.core.def (lsefimmap): New module.
4345 * include/grub/efi/api.h (PRIxGRUB_EFI_UINTN_T): New definition.
4346
38c259a7
VS
43472010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
4348
4349 Pause the execution (10s max) if any errors are displayed so the user
4350 has a chance to see them.
4351
4352 * grub-core/kern/err.c (grub_err_printed_errors): New variable.
4353 (grub_print_error): Increment grub_err_printed_errors.
4354 * grub-core/normal/menu.c (grub_menu_execute_entry): Pause the
4355 execution if any errors were displayed.
4356 (show_menu): Remove old code for pause.
4357 * grub-core/normal/menu_entry.c (run): Likewise.
4358 * grub-core/normal/term.c (grub_normal_char_counter): Removed. All
4359 users updated.
4360 (grub_normal_get_char_counter): Likewise.
4361 * include/grub/err.h (grub_err_printed_errors): New external variable.
4362 * include/grub/normal.h (grub_normal_get_char_counter): Removed.
4363
f218b09c
VS
43642010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
4365
4366 Support multiboot VBE info.
4367
4368 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
4369 Take VBE info into account.
4370 (fill_vbe_info) [GRUB_MACHINE_HAS_VBE]: New function.
4371 (retrieve_video_parameters) [GRUB_MACHINE_HAS_VBE]:
4372 Call fill_vbe_info when appropriate.
4373 (grub_multiboot_make_mbi): Account for the size occupied by VBE info.
4374 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_load): Declare tags
4375 as supported.
4376 (grub_multiboot_get_mbi_size): Take new tags into account.
4377 (fill_vbe_tag) [GRUB_MACHINE_HAS_VBE]: New function.
4378 (retrieve_video_parameters) [GRUB_MACHINE_HAS_VBE]:
4379 Call fill_vbe_tag when appropriate.
4380 (grub_multiboot_make_mbi): Properly align tags.
4381 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_pm_interface): New
4382 function.
4383 * include/grub/i386/pc/vbe.h (grub_vbe_bios_get_pm_interface): New
4384 proto.
4385 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VBE): New definition.
4386
a9cc5438
VS
43872010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
4388
4389 Suport manual terminal geometry specification.
4390
4391 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_dimensions):
4392 Save state in grub_ofconsole_terminfo_output.
4393 (grub_ofconsole_term): Use grub_terminfo_getwh.
4394 (grub_ofconsole_getwh): Removed.
4395 * grub-core/term/serial.c (grub_serial_getwh): Removed.
4396 (grub_serial_term): Use grub_terminfo_getwh.
4397 * grub-core/term/terminfo.c (grub_terminfo_getwh): New function.
4398 (options): New struct.
4399 (OPTION_*): New enum.
4400 (grub_cmd_terminfo): Transform into extcmd and handle new parameters.
4401 * include/grub/terminfo.h (grub_terminfo_output_state): New fields
4402 width and height.
4403 (grub_terminfo_getwh): New proto.
4404 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Handle --lines.
4405
1a8fed20
VS
44062010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
4407
4408 Handle legacy "terminal" command.
4409
4410 * grub-core/lib/legacy_parse.c (legacy_command): New flags FLAG_TITLE
4411 and FLAG_TERMINAL.
4412 (legacy_commands): Add terminal and title.
4413 (grub_legacy_parse): Handle terminal. Simplify title handling.
4414
41e9c57d
VS
44152010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
4416
4417 * grub-core/lib/arg.c (grub_arg_show_help): Correctly handle
4418 parameters overflow.
4419
61c874c5
CW
44202010-09-20 Colin Watson <cjwatson@ubuntu.com>
4421
4422 * .bzrignore: Add grub-core/gnulib/sys, widthspec.bin, and
4423 widthspec.h.
4424
4425 * docs/grub.texi (Shell-like scripting): Document `!'.
4426 (Network): Simplify using new i386-pc-pxe format. Mention
4427 grub-mknetdir.
4428
4429 * NEWS: Update.
4430
943682b4
CW
44312010-09-20 Colin Watson <cjwatson@ubuntu.com>
4432
4433 * Makefile.am (SUBDIRS): Restore "."; it's important to force
4434 ordering, so that e.g. ascii.h is built before grub-core/font/font.c
4435 when needed.
4436
6d3d698d
CW
44372010-09-20 Colin Watson <cjwatson@ubuntu.com>
4438
4439 * grub-core/commands/efi/lsefisystab.c: Correct header.
4440 * grub-core/commands/efi/lssal.c: Likewise.
4441 * grub-core/commands/testload.c: Likewise.
4442
c982589f
CW
44432010-09-20 Colin Watson <cjwatson@ubuntu.com>
4444
4445 * util/grub-mkrescue.in: Add explicit root argument to --set to
4446 prevent the UUID being interpreted as an argument to --set (matches
4447 previous change to prepare_grub_to_access_device).
4448
a63c31b6
CW
44492010-09-20 Colin Watson <cjwatson@ubuntu.com>
4450
4451 * kern/emu/hostdisk.c: Include <sys/ioctl.h> and <sys/disklabel.h>
4452 on FreeBSD. Define HAVE_DIOCGDINFO on NetBSD and FreeBSD to reduce
4453 the verbosity of later #ifs.
4454 (find_partition_start): Define this function on FreeBSD too.
4455 (device_is_wholedisk) [__FreeBSD__ || __FreeBSD_kernel__]: New
4456 function.
4457 (grub_util_biosdisk_get_grub_dev): Use partition-start-sector logic
4458 on FreeBSD.
4459
6439b8ee
YB
44602010-09-20 Yves Blusseau <blusseau@zetam.org>
4461
4462 * util/grub-editenv.c: Use argp instead of getopt.
4463
c5930ec8
YB
44642010-09-20 Yves Blusseau <blusseau@zetam.org>
4465
4466 * util/grub-setup.c: Use argp instead of getopt.
4467
15c69261
YB
44682010-09-20 Yves Blusseau <blusseau@zetam.org>
4469
4470 Use gnulib-tool to create gnulib source files.
4471
4472 * Add gnulib files generated by gnulib-tool in build-aux, m4 and
4473 grub-core/gnulib directories
4474 * .bzignore: Add **/.deps and autogenerated gnulib files
4475 * configure.ac: Assign auxiliary directory to build-aux, add invocation
4476 of gnulib macros, add grub-core/gnulib/Makefile
4477 * Makefile.am: Add gnulib directory in SUBDIRS (removing unnecessary .),
4478 include m4 directory to aclocal.
4479 * Makefile.util.def: Remove direct compilation of gnulib source files
4480 and use the new grub-core/gnulib/libgnu.a.
4481 * build-aux/config.rpath: move config.rpath from top directory to
4482 build-aux
4483 * conf/Makefile.common: Remove the macro _GL_UNUSED already defined
4484 in gnulib headers
4485 * conf/Makefile.extra-dist: Add m4/gnulib-cache.m4
4486 * grub-core/Makefile.core.def: Remove unnecessary extra_dist
4487 * grub-core/lib/posix_wrap/localcharset.h (locale_charset): Update
4488 header.
4489 * grub-core/lib/posix_wrap/langinfo.h (nl_langinfo): Return static
4490 string.
4491
e511c9f5
YB
44922010-09-20 Yves Blusseau <blusseau@zetam.org>
4493
4494 * .bzrignore: Add grub-kbdcomp, grub-menulst2cfg, *.marker,
4495 grub-core/genmod.sh and grub-core/gensyminfo.sh
4496
c2dede05
BC
44972010-09-20 BVK Chaitanya <bvk.groups@gmail.com>
4498
4499 Add a test for echo command options.
4500
4501 * tests/grub_cmd_echo.in: New test.
4502 * Makefile.util.def: Rules for new test.
4503
c55f5018
SJ
45042010-09-20 Szymon Janc <szymon@janc.net.pl>
4505
4506 Remove crc.mod and move crc command to hashsum.mod.
4507 Remove lib/crc.c - users updated to use gcrypt implementation.
4508
4509 * grub-core/commands/crc.c: Removed.
4510 * grub-core/Makefile.core.def (crc): Module removed.
4511 * grub-core/commands/hashsum.c (aliases[]): Add crc alias.
4512 * grub-core/commands/hashsum.c (GRUB_MOD_INIT): Register crc command.
4513 * grub-core/commands/hashsum.c (GRUB_MOD_FINI): Unregister crc command.
4514 * grub-core/lib/crc.c: Removed.
4515 * include/grub/lib/crc.h: Removed.
4516 * Makefile.util.def (crc): Remove lib/crc.c
4517 * grub-core/Makefile.core.def (libgrub.a): Remove grub-core/lib/crc.c.
4518 * util/grub-fstest.c (cmd_crd): Use libgcrypt crc implementation.
4519 * Makefile.util.def (libgrub.a): Add grub-core/lib/libgcrypt-grub/cipher/crc.c.
4520 * Makefile.util.def (grub-fstest): Add CFLAGS_GCRY to cflags.
4521 * Makefile.util.def (grub-fstest): Add CPPFLAGS_GCRY to cppflags.
4522 * grub-core/efiemu/prepare.c (grub_efiemu_crc): Use libgcrypt crc implementation.
4523
e0337366
VS
45242010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
4525
4526 * grub-core/boot/i386/pc/boot.S: Ignore %dl if it's not in a sane range.
4527
742f9232
VS
45282010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
4529
4530 Split config.h for util and core.
4531
4532 * acinclude.m4 (HAVE_ASM_USCORE): Transformed into a variable.
4533 (ADDR32): Likewise.
4534 (DATA32): Likewise.
4535 (BSS_START_SYMBOL): Likewise.
4536 (END_SYMBOL): Likewise.
4537 (NEED_ENABLE_EXECUTE_STACK): Likewise. All users updated.
4538 (grub_I386_ASM_ABSOLUTE_WITHOUT_ASTERISK): Removed.
4539 * config.h.in: New file.
4540 * configure.ac: Use config-util.h as config define file.
4541 Rename MACHINE into GRUB_MACHINE. All users updated.
4542 (NEED_REGISTER_FRAME_INFO): Transformed into a variable. All users
4543 updated.
4544 (NESTED_FUNC_ATTR): Likewise.
4545 Substitue new variables.
4546 (COND_HAVE_ASM_USCORE): New conditional.
4547 * grub-core/Makefile.am (ASM_PREFIX): New variable.
4548 (kernel_syms.lst): Use ASM_PREFIX.
4549 * grub-core/kern/emu/console.c: Include config-util.h.
4550 * grub-core/kern/emu/misc.c: Likewise.
4551 * grub-core/kern/emu/mm.c: Likewise.
4552 * include/grub/emu/misc.h: Likewise.
4553 * include/grub/libgcc.h: Likewise.
4554
39feb0e8
VS
45552010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
4556
4557 * grub-core/term/efi/console.c (efi_codes): Fix GRUB_TERM_KEY_*
4558 constants usage.
4559 * grub-core/kern/emu/console.c (grub_ncurses_getkey):
4560 Fix GRUB_TERM_KEY_* constants usage.
4561 * grub-core/kern/emu/misc.c (asprintf): Fix vasprintf usage.
4562
9af6dac3
VS
45632010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
4564
4565 * grub-core/bus/usb/ohci.c (grub_ohci_cancel_transfer): Use %p to
4566 print pointer.
4567 * grub-core/bus/usb/uhci.c: Remove empty define.
4568 (grub_uhci_check_transfer): Add missing cast.
4569 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Use %p to
4570 print pointer.
4571 * grub-core/term/usb_keyboard.c (grub_usb_keyboard_getkey): Use
4572 PRIuGRUB_SIZE.
4573 * include/grub/types.h (PRIuGRUB_SIZE): New definition.
4574
d6d94820
VS
45752010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
4576
4577 * grub-core/Makefile.core.def (legacycfg): Add
4578 lib/i386/pc/vesa_modes_table.c on emu.
4579
3572f2b6
BC
45802010-09-19 BVK Chaitanya <bvk.groups@gmail.com>
4581
4582 Reduce number of temporary files generated by build system.
4583
4584 * grub-core/gencmdlist.sh: Removed.
4585 * grub-core/genfslist.sh: Removed.
4586 * grub-core/genhandlerlist.sh: Removed.
4587 * grub-core/genmodsrc.sh: Removed.
4588 * grub-core/genpartmaplist.sh: Removed.
4589 * grub-core/genparttoollist.sh: Removed.
4590 * grub-core/gentermiinallist.sh: Removed.
4591 * grub-core/genvideolist.sh: Removed.
4592
4593 * grub-core/genmod.sh.in: New file.
4594 * grub-core/gensyminfo.sh.in: New file.
4595
4596 * conf/Makefile.common (CPPFLAGS_*_LIST): New marker flags.
4597 * conf/Makefile.extra-dist: Update with new files.
4598 * gentpl.py: Remove rules related to unnecessary temporary files.
4599 * grub-core/Makefile.am (syminfo.lst): New replacement for def-*
4600 and und-* files.
4601 * grub-core/Makefile.core.def: New rules for gensyminfo.sh and
4602 genmod.sh scripts.
4603 * grub-core/bus/usb/uhci.c: Remove empty #define.
4604 * grub-core/genmoddep.awk: Updated with new syminfo format.
4605 * util/bash-completion.d/Makefile.am: Add config.log to
4606 CLEANFILES.
4607
c836b030
YB
46082010-09-19 Yves Blusseau <blusseau@zetam.org>
4609
4610 * Makefile.util.def: Add forgotten $(LIBINTL) library.
4611
2f4e8053
BC
46122010-09-19 BVK Chaitanya <bvk.groups@gmail.com>
4613
4614 * util/grub-mkconfig.in: Check the config script for syntax errors
4615 before saving.
4616
75831c34
CW
46172010-09-19 Colin Watson <cjwatson@ubuntu.com>
46182010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
4619
4620 * Makefile.util.def (grub-install): Use util/grub-install.in on all
4621 platforms.
4622 * util/grub-install.in: Add EFI and IEEE1275 support.
4623 * util/i386/efi/grub-install.in: Removed.
4624 * util/ieee1275/grub-install.in: Likewise.
4625
eaf41b25
VS
46262010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
4627
4628 * grub-core/commands/i386/cmostest.c (+parse_args): New function.
4629 (grub_cmd_cmosclean): Likewise.
4630 (GRUB_MOD_INIT): Register command cmosclean.
4631 * util/grub-mkconfig.in: Export GRUB_BUTTON_CMOS_CLEAN.
4632 * util/grub.d/00_header.in: Handle GRUB_BUTTON_CMOS_CLEAN.
4633
1a9130dd
CPE
46342010-09-18 Carles Pina i Estany <carles@pina.cat>
46352010-09-18 Aleš Nesrsta <starous@volny.cz>
46362010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
4637
4638 Add keyboard layouts support.
4639
4640 * Makefile.util.def (grub-mklayout): New file.
4641 (grub-kbdcomp): New script.
4642 * grub-core/Makefile.am (KERNEL_HEADER_FILES) [COND_mips_yeeloong]:
4643 Add keyboard_layouts.h.
4644 * grub-core/Makefile.core.def (kernel): Add commands/keylayouts.c and
4645 commands/boot.c on yeeloong.
4646 (keylayouts): New module.
4647 * grub-core/bus/usb/ohci.c
4648 * grub-core/bus/usb/uhci.c
4649 * grub-core/bus/usb/usbhub.c (rescan): New variable.
4650 (grub_usb_add_hub): Poll interrupt pipe for device handling.
4651 (attach_root_port): Likewise.
4652 (poll_nonroot_hub): Likewise.
4653 (grub_usb_poll_devices): Likewise.
4654 (detach_device): Close transfer.
4655 * grub-core/bus/usb/usbtrans.c (grub_usb_execute_and_wait_transfer): New
4656 function.
4657 (grub_usb_bulk_setup_readwrite): Likewise.
4658 (grub_usb_bulk_finish_readwrite): Likewise.
4659 * grub-core/commands/keylayouts.c: New file.
4660 * grub-core/commands/keystatus.c (grub_getkeystatus): New function.
4661 * grub-core/commands/menuentry.c (hotkey_aliases): All several new
4662 aliases.
4663 * grub-core/term/at_keyboard.c: Restructured to use keylayouts and
4664 support scancode 2.
4665 * grub-core/term/usb_keyboard.c: Restructured to use keylayouts.
4666 * include/grub/keyboard_layouts.h: New file.
4667 * util/grub-mklayout.c: New file.
4668 * util/grub-kbdcomp.in: Likewise.
4669
a1d84a5e
VS
46702010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
4671
4672 Unify memory types.
4673
4674 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Include memory.h.
4675 * grub-core/commands/lsmmap.c (grub_cmd_lsmmap): Output user-readable
4676 types.
4677 * grub-core/kern/i386/multiboot_mmap.c (grub_lower_mem): Removed.
4678 (grub_upper_mem): Likewise.
4679 * grub-core/kern/ieee1275/init.c (grub_upper_mem): Likewise.
4680 * include/grub/memory.h (grub_memory_type_t): New enum.
4681 All users updated.
4682
9696382e
VS
46832010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
4684
4685 * grub-core/Makefile.core.def (lsapm): New module.
4686 * grub-core/commands/i386/pc/lsapm.c: New file.
4687 * grub-core/loader/i386/multiboot_mbi.c (make_mbi) [GRUB_MACHINE_PCBIOS]: Pass APM info.
4688 * grub-core/loader/multiboot_mbi2.c (make_mbi) [GRUB_MACHINE_PCBIOS]:
4689 Likewise.
4690 * include/grub/i386/pc/apm.h: New file.
4691 * include/multiboot.h (multiboot_apm_info): New struct.
4692
46932010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
4694
4695 GRUB-legacy configuration file support.
4696
4697 * Makefile.util.def (grub-menulst2cfg): New util.
4698 * docs/man/grub-menulst2cfg.h2m: New file.
4699 * grub-core/Makefile.core.def (legacycfg): New module.
4700 * grub-core/commands/legacycfg.c: New file.
4701 * grub-core/commands/menuentry.c (append_menu_entry): Rename to ...
4702 (grub_normal_add_menu_entry): ... this.
4703 * grub-core/commands/password.c (grub_cmd_password): Split main part to ...
4704 (grub_normal_set_password): ...this.
4705 * grub-core/commands/videoinfo.c (grub_cmd_videoinfo): Support MODE.
4706 * grub-core/loader/i386/linux.c (linux_vesafb_res): Move to ..,
4707 * grub-core/lib/i386/pc/vesa_modes_table.c: ... here.
4708 * grub-core/lib/legacy_parse.c: New file.
4709 * grub-core/normal/auth.c (grub_cmd_authenticate): New command.
4710 * include/grub/i386/pc/vesa_modes_table.h: New file.
4711 * include/grub/legacy_parse.h: Likewise.
4712 * include/grub/normal.h (grub_normal_add_menu_entry): New proto.
4713 * util/grub-menulst2cfg.c: New file.
4714
bf8d1338
CW
47152010-09-17 Colin Watson <cjwatson@ubuntu.com>
4716
4717 * grub-core/kern/emu/hostdisk.c
4718 (convert_system_partition_to_system_disk): Initialise node.
4719
9c0bad2e
CW
47202010-09-17 Colin Watson <cjwatson@ubuntu.com>
4721
4722 * grub-core/kern/emu/hostdisk.c
4723 (convert_system_partition_to_system_disk): Fix devmapper memory pool
4724 leak.
4725 Reported and based on patch by: Modestas Vainius.
4726
a939d135
CW
47272010-09-17 Colin Watson <cjwatson@ubuntu.com>
4728
4729 Fix DM-RAID probing with recent versions of device-mapper udev
4730 rules.
4731
4732 * grub-core/kern/emu/hostdisk.c (read_device_map): Don't
4733 canonicalise device paths under /dev/mapper/.
4734 (convert_system_partition_to_system_disk): Compare the
4735 uncanonicalised path to /dev/mapper/ rather than the canonicalised
4736 path, since device nodes under /dev/mapper/ are often symlinks.
4737
0f7ee3c9
YB
47382010-09-17 Yves Blusseau <blusseau@zetam.org>
4739
4740 * .bzrignore: *.d removed (old rule), add *.image and symlist.h.
4741
10854d0d
YB
47422010-09-16 Yves Blusseau <blusseau@zetam.org>
4743
4744 * configure.ac: Avoid some annoying error messages if freetype-config
4745 program is not found.
4746
108538d8
CW
47472010-09-16 Colin Watson <cjwatson@ubuntu.com>
4748
4749 Support RAID on virtio devices, and others.
4750
4751 * grub-core/kern/emu/getroot.c [__MINGW32__] (find_root_device):
4752 Rename to ...
4753 [__MINGW32__] (grub_find_device): ... this.
4754 [! __MINGW32__ && ! __CYGWIN__] (find_root_device): Rename to ...
4755 [! __MINGW32__ && ! __CYGWIN__] (grub_find_device): ... this. Use a
4756 reasonable default if dir is NULL.
4757 [! __MINGW32__ && __CYGWIN__] (find_cygwin_root_device): Rename to
4758 ...
4759 [! __MINGW32__ && __CYGWIN__] (grub_find_device): ... this.
4760 (grub_guess_root_device): Update callers.
4761 * include/grub/emu/getroot.h (grub_find_device): Add prototype.
4762
4763 * util/raid.c (grub_util_getdiskname): Remove.
4764 (grub_util_raid_getmembers): Use grub_find_device rather than
4765 grub_util_getdiskname.
4766
e5bfc130
CW
47672010-09-16 Colin Watson <cjwatson@ubuntu.com>
4768
4769 * docs/grub.texi (serial): Remove obsolete comment about GRUB
4770 needing to be compiled with serial support.
4771 (ls): Indicate that multiple files are accepted.
4772 * grub-core/commands/ls.c (GRUB_MOD_INIT): Update help text to
4773 indicate that multiple files are accepted.
4774
be458ae2
CW
47752010-09-16 Colin Watson <cjwatson@ubuntu.com>
4776
4777 * .bzrignore: Add *.1, *.8, grub-shell, grub-shell-tester,
4778 libgrub_a_init.c, and util/bash-completion.d/grub.
4779
cb731b5e
VS
47802010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
4781
4782 * util/grub-setup.c (setup): Fix incorrect container semantics.
4783
35139e8a
VS
47842010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
4785
4786 * grub-core/commands/parttool.c (grub_cmd_parttool): Fix a variable
4787 misusage.
4788 Reported by: J. Nick Terry
4789
e50fca4a
VS
47902010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
4791
4792 Move embedding routines to partmap sources files.
4793
4794 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot)
4795 [GRUB_UTIL]: New variable.
4796 (gpt_partition_map_iterate): Set part.parent.
4797 (gpt_partition_map_embed) [GRUB_UTIL]: New function.
4798 (grub_gpt_partition_map) [GRUB_UTIL]: Set .embed.
4799 * grub-core/partmap/msdos.c (pc_partition_map_embed) [GRUB_UTIL]:
4800 New function.
4801 (grub_msdos_partition_map) [GRUB_UTIL]: Set .embed.
4802 * include/grub/partition.h (grub_embed_type_t) [GRUB_UTIL]: New type.
4803 (grub_partition_map) [GRUB_UTIL]: New field embed.
4804 * util/grub-setup.c (grub_gpt_partition_type_bios_boot): Removed.
4805 (setup): Use ->embed.
4806
f00478b7
VS
48072010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
4808
4809 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): New
4810 function.
4811 * include/grub/emu/hostdisk.h (grub_util_biosdisk_is_floppy): New proto.
4812 * util/grub-setup.c (setup): Use grub_util_biosdisk_is_floppy.
4813
2b94e3ff
YB
48142010-09-15 Yves Blusseau <blusseau@zetam.org>
4815
4816 Add function to get completions from usage.
4817
4818 * util/bash-completion.d/grub-completion.bash.in: Add function to get
4819 completions from usage. Use LC_ALL=C to get options properly.
4820
2e04a006
VS
48212010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
4822
4823 * grub-core/gnulib/basename-lgpl.c: Imported.
4824 * grub-core/gnulib/basename.c: Likewise.
4825 * grub-core/gnulib/dirname-lgpl.c: Likewise.
4826 * grub-core/gnulib/dirname.c: Likewise.
4827 * grub-core/gnulib/dirname.h: Likewise.
4828 * grub-core/gnulib/stripslash.c: Likewise.
4829
5dcdf93a
VS
48302010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
4831
4832 * grub-core/gnulib/error.c: Resynced.
4833 * grub-core/gnulib/getopt.c: Likewise.
4834 * grub-core/gnulib/getopt_int.h: Likewise.
4835 * grub-core/gnulib/regex.h: Likewise.
4836 * grub-core/gnulib/regex_internal.c: Likewise.
4837 * grub-core/gnulib/regex_internal.h: Likewise.
4838
014f47b7
SJ
48392010-09-15 Szymon Janc <szymon@janc.net.pl>
4840
4841 * grub-core/lib/xzembed/xz_dec_stream.c (dec_main): Fix index and block
4842 CRC calculations and validity checks.
4843 * grub-core/lib/xzembed/xz_dec_stream.c (dec_index): Fix index CRC
4844 calculations.
4845
dd521a4a
SJ
48462010-09-15 Szymon Janc <szymon@janc.net.pl>
4847
4848 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_end): Fix memory leak.
4849
79c4eeb9
VS
48502010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
4851
4852 Fix incorrect echo options handling.
4853 Reported by: Yves Blusseau.
4854
4855 * include/grub/command.h (grub_command_flags_t): New flags
4856 GRUB_COMMAND_ACCEPT_DASH and GRUB_COMMAND_OPTIONS_AT_START.
4857 * grub-core/lib/arg.c (grub_arg_parse): Handle new flags.
4858 * grub-core/commands/echo.c (GRUB_MOD_INIT): Use new flags.
4859
ed80f7d5
VS
48602010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
4861
4862 * include/grub/command.h (GRUB_COMMAND_FLAG_CMDLINE): Removed. All
4863 users updated.
4864 (GRUB_COMMAND_FLAG_MENU): Likewise.
4865 (GRUB_COMMAND_FLAG_BOTH): Likewise.
4866 (GRUB_COMMAND_FLAG_TITLE): Removed.
4867 (GRUB_COMMAND_FLAG_NO_ECHO): Likewise.
4868 (GRUB_COMMAND_FLAG_EXTCMD): Moved into enum.
4869 (GRUB_COMMAND_FLAG_DYNCMD): Likewise.
4870 (GRUB_COMMAND_FLAG_BLOCKS): Likewise.
4871 (grub_command_flags_t): New enum. All users updated.
4872
5fe7620a
SG
48732010-09-14 Seth Goldberg <seth.goldberg@oracle.com>
4874
4875 Fix solaris compilation.
4876
4877 * grub-core/Makefile.core.def (kernel): Include gnulib/error.c on emu.
4878 (grub-emu): Add LIBZFS and LIBNVPAIR to ldadd.
4879 (grub-emu-list): Likewise.
4880
545b752f
VS
48812010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
4882
4883 Remove deprecated root command.
4884
4885 * grub-core/commands/minicmd.c (grub_mini_cmd_root): Removed. All users
4886 updated.
4887
6c1a338c
VS
48882010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
4889
4890 * util/i386/pc/grub-setup.c: Merge this ...
4891 * util/sparc64/ieee1275/grub-setup.c: ... and this ...
4892 * util/grub-setup.c: ... into this.
4893 * include/grub/sparc64/ieee1275/boot.h (grub_boot_blocklist) [ASM_FILE]:
4894 New struct.
4895
48962010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
4897
4898 * grub-core/fs/ext2.c (grub_ext2_open): Use return error value when
4899 possible.
4900
d2ea4551
VS
49012010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
4902
4903 * grub-core/partmap/sun.c (sun_partition_map_iterate): Don't needlesly
4904 allocate p.
4905
3c3b5040
VS
49062010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
4907
4908 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Add
4909 explicit root argument to set to prevent UUID to be interpreted as
4910 argument to set.
4911
b71c3fae
VS
49122010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
4913
4914 * grub-core/kern/sparc64/ieee1275/crt0.S: Align stack.
4915
275433e6
VS
49162010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
4917
4918 Don't export grub_gate_a20.
4919
4920 * grub-core/kern/i386/pc/init.c: Remove leftovers.
4921 * grub-core/kern/i386/pc/startup.S (FUNCTION(grub_gate_a20)): Rename
4922 to ...
4923 (grub_gate_a20): ... this. All users updated.
4924 * include/grub/i386/pc/init.h: Removed. All users updated.
4925
a5dbb1f1
VS
49262010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
4927
4928 Create euro.pf2 which supports most European languages.
4929
4930 * Makefile.am (grubdata_DATA): Add euro.pf2.
4931 (euro.pf2): New target.
4932 (CLEANFILES): Add euro.pf2.
4933
62a747cb
VS
49342010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
4935
4936 * configure.ac: Disable emu-usb by default to prevent inadvertent
4937 device takeover.
4938
608e43b1
VS
49392010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
4940
4941 Disable usbserial on grub-emu since our libusb code isn't good enough
4942 yet.
4943
4944 * grub-core/Makefile.core.def (usbserial_common): Disable on emu.
4945 (usbserial_pl2303): Likewise.
4946 (usbserial_ftdi): Likewise.
4947
94564f81
VS
49482010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
4949
4950 * include/grub/disk.h (grub_disk): Remove has_partitions.
4951 All users updated.
4952 * disk/loopback.c (grub_loopback): Remove has_partitions.
4953 All users updated.
4954 (options): Remove partitions. All users updated.
4955 * util/grub-fstest.c (fstest): Don't pass "-p" to loopback.
4956 * util/i386/pc/grub-setup.c (setup): copy partition table only when
4957 actual partition table is found.
4958
3352800b
VS
49592010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
4960
4961 Remove readability checks (too many false negatives).
4962
4963 * util/grub-install.in: Remove readability checks.
4964 * util/grub-mkconfig.in: Likewise.
4965 * util/grub.d/10_hurd.in: Likewise.
4966 * util/grub.d/10_kfreebsd.in: Likewise.
4967 * util/grub.d/10_linux.in: Likewise.
4968 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Revert to old
4969 way.
4970
2419f17a
VS
49712010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
4972
4973 Enable acpi shutdown on all ACPI platforms.
4974
4975 * grub-core/Makefile.core.def (halt): Inlude commands/acpihalt.c
4976 on coreboo, multiboot and EFI.
4977 * grub-core/commands/acpihalt.c (get_sleep_type): Add missing casts.
4978 (grub_acpi_halt): Likewise.
4979 * grub-core/commands/i386/pc/halt.c (grub_halt): Call grub_acpi_halt.
4980 (grub_cmd_halt): Don't call grub_acpi_halt directly.
4981 * grub-core/lib/efi/halt.c (grub_halt): Call grub_acpi_halt.
4982 * grub-core/lib/i386/halt.c (grub_halt)
4983 [GRUB_MACHINE_COREBOOT || GRUB_MACHINE_MULTIBOOT]: Likewise.
4984
0575c7c3
VS
49852010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
4986
4987 * grub-core/commands/iorw.c (grub_cmd_read): Declare buf in smallest
4988 context.
4989
54ac3cd1
VS
49902010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
4991
4992 * grub-core/video/efi_gop.c: Fix over-80-chars line.
4993 * grub-core/video/efi_uga.c: Likewise.
4994
b2a30ac5
VS
49952010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
4996
4997 Filter devaliases and never open same device twice.
4998
4999 * grub-core/disk/ieee1275/ofdisk.c (last_devpath): New variable.
5000 (last_ihandle): Likewise.
5001 (ofdisk_hash_ent): New member shortest.
5002 (ofdisk_hash_add): Add canonical path too.
5003 (scan): New function.
5004 (grub_ofdisk_iterate): Iterate over hashed entries.
5005 (compute_dev_path): Don't add :0.
5006 (grub_ofdisk_open): Don't really open the disk.
5007 (grub_ofdisk_close): Avoid closing unrelated disk.
5008 (grub_ofdisk_read): Implement reopen logic.
5009 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_canonicalise_devname):
5010 New function.
5011 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_canonicalise_devname):
5012 New proto.
5013
fb53b340
VS
50142010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
5015
5016 Fix sparc64.
5017
5018 * configure.ac (GRUB_KERNEL_MACHINE_LINK_ADDR): Removed.
5019 * grub-core/Makefile.core.def (kernel): Make ldflags just use the
5020 right address. Add sparc64_ieee1275_ldflags.
5021 * grub-core/loader/sparc64/ieee1275/linux.c: Remove leftover include.
5022 * util/grub-mkimagexx.c (locate_sections): Correct grub_host_to_target32
5023 to grub_host_to_target_addr
5024 (load_image): Likewise.
5025
f452b040
VS
50262010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
5027
5028 * grub-core/normal/completion.c (complete_file): Handle device
5029 containing slash.
5030 Fix based on patch by Doug Nazar.
5031
9b5b2541
VS
50322010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
5033
5034 grub-mknetdir script.
5035
5036 * Makefile.util.def (grub-mknetdir): New module.
5037 * tests/util/grub-shell.in: Support boot=net
5038 * util/grub-mknetdir.in: New file.
5039
9d2be652
VS
50402010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
5041
5042 videoinfo on non-vbe.
5043
5044 * grub-core/Makefile.core.def (vbeinfo): Removed.
5045 (vbetest): Removed.
5046 (videoinfo): New module.
5047 * grub-core/commands/i386/pc/vbeinfo.c: Removed.
5048 * grub-core/commands/i386/pc/vbetest.c: Removed.
5049 * grub-core/commands/videoinfo.c: New file.
5050 * grub-core/commands/videotest.c (grub_cmd_videotest): Support mode
5051 specification.
5052 (grub_cmd_videotest) [GRUB_MACHINE_PCBIOS]: Load vbe.mod when invoked
5053 as vbetest.
5054 (GRUB_MOD_INIT) [GRUB_MACHINE_PCBIOS]: New command vbetest.
5055 (GRUB_MOD_FINI) [GRUB_MACHINE_PCBIOS]: Unregister vbetest.
5056 * grub-core/video/efi_gop.c (grub_video_gop_fill_mode_info): Fill
5057 mode_number. New parameter mode. All users updated.
5058 (grub_video_gop_iterate): New function.
5059 (grub_video_efi_gop): New member iterate.
5060 * grub-core/video/i386/pc/vbe.c (framebuffer): Removed leftover fields.
5061 (grub_vbe_set_video_mode): Remove setting useless fields.
5062 (vbe2videoinfo): New function.
5063 (grub_video_vbe_iterate): Likewise.
5064 (grub_video_vbe_setup): Use vbe2videoinfo.
5065 (grub_video_vbe_print_adapter_specific_info): New function.
5066 (grub_video_vbe_adapter): New fields iterate and
5067 print_adapter_specific_info.
5068 * include/grub/video.h (GRUB_VIDEO_MODE_*): Transform into enum.
5069 All users updated.
5070 (grub_video_mode_info): New field mode_number.
5071 (grub_video_adapter): New fields iterate and
5072 print_adapter_specific_info.
5073
179503f5
TG
50742010-09-13 Tristan Gingold <gingold@free.fr>
50752010-09-13 Robert Millan <rmh.grub@aybabtu.com>
50762010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
5077
5078 * grub-core/commands/efi/lsefisystab.c: New file.
5079 * grub-core/commands/efi/lssal.c: Likewise.
5080 * grub-core/Makefile.core.def (lsacpi): New module.
5081 (lsefisystab): Likewise.
5082 * include/grub/efi/api.h (GRUB_EFI_SAL_TABLE_GUID): New definition.
5083 (GRUB_EFI_HCDP_TABLE_GUID): Likewise.
5084 (grub_efi_sal_system_table): New struct.
5085 (grub_efi_sal_system_table_entrypoint_descriptor): Likewise.
5086 (grub_efi_sal_system_table_memory_descriptor): Likewise.
5087 (grub_efi_sal_system_table_platform_features): Likewise.
5088 (grub_efi_sal_system_table_translation_register_descriptor): Likewise.
5089 (grub_efi_sal_system_table_purge_translation_coherence): Likewise.
5090 (grub_efi_sal_system_table_ap_wakeup): Likewise.
5091 * include/grub/types.h (PRIuGRUB_UINT64_T): New definition.
5092
cf9827de
VS
50932010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
5094
5095 Support explicit user claim that a device is BIOS-visible.
5096
5097 * grub-core/kern/emu/getroot.c (grub_util_get_dev_abstraction):
5098 Return GRUB_DEV_ABSTRACTION_NONE if device is in device.map.
5099 * grub-core/kern/emu/hostdisk.c
5100 (convert_system_partition_to_system_disk): Support mdX.
5101 (find_system_device): New parameter add. All users updated.
5102 (grub_util_biosdisk_is_present): New function.
5103 * include/grub/emu/hostdisk.h (grub_util_biosdisk_is_present): New
5104 proto.
5105
53f0eb1f
VS
51062010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
5107
5108 Search hints support.
5109
5110 * commands/search.c (FUNC_NAME): New arguments hints and nhints.
5111 All users updated.
5112
b23ffd70
YB
51132010-09-13 Yves Blusseau <blusseau@zetam.org>
5114
5115 Bash completion script for util commands
5116
5117 * Makefile.am: Add util/bash-completion.d directory
5118 * configure.ac: Likewise.
5119 * util/bash-completion.d/Makefile.am: New file.
5120 * util/bash-completion.d/grub-completion.bash.in: Likewise.
5121
d547dc28
VS
51222010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
5123
5124 * grub-core/normal/term.c (put_glyphs_terminal): Correct sign.
5125 (print_backlog): set backlog_ucs4 and backlog_glyphs.
5126 Reported by: Yves Blusseau.
5127
2fc8ccb9
VS
51282010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
5129
5130 * grub-core/normal/misc.c (grub_normal_print_device_info): Show
5131 partition size and offset.
5132
d8a84076
VS
51332010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
5134
5135 * grub-core/commands/wildcard.c (make_regex): Escape brackets.
5136
84fb3b3d
VS
51372010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
5138
5139 * grub-core/commands/ls.c (grub_cmd_ls): Accept multiple files.
5140
768ec2e2
VS
51412010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
5142
5143 * grub-core/kern/misc.c (grub_vprintf): Use va_copy when necessary.
5144 (grub_xvasprintf): Likewise.
5145
4870900f
VS
51462010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
5147
5148 * grub-core/kern/emu/main.c (main): Call hostfs_init only after init_all.
5149
faca6bec
VS
51502010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
5151
5152 * grub-core/commands/menuentry.c (append_menu_entry): Don't rely on
5153 args ending with NULL.
5154
51552010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
788f1f3a
VS
5156
5157 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_reset): Preserve context
5158 pointer.
5159
3c70f225
SJ
51602010-09-11 Szymon Janc <szymon@janc.net.pl>
5161
5162 * grub-core/commands/lsacpi.c (grub_cmd_lsacpi): Fix prototype.
5163
4df7996d
VS
51642010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
5165
5166 Shutdown using ACPI.
5167
5168 * grub-core/Makefile.core.def (halt): Add commands/acpihalt.c on i386-pc.
5169 * grub-core/commands/acpihalt.c: New file.
5170 * grub-core/commands/i386/pc/halt.c (grub_cmd_halt): Call grub_acpi_halt.
5171 * include/grub/acpi.h (grub_acpi_fadt): New member pm1a.
5172 (grub_acpi_halt): New proto.
5173 (GRUB_ACPI_SLP_EN): New const.
5174 (GRUB_ACPI_SLP_TYP_OFFSET): Likewise.
5175 (GRUB_ACPI_OPCODE_*): New enum.
5176 (GRUB_ACPI_EXTOPCODE_*): Likewise.
5177
126b4c32
TG
51782010-09-11 Tristan Gingold <gingold@free.fr>
51792010-09-11 Robert Millan <rmh.grub@aybabtu.com>
51802010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
5181
5182 * commands/lsacpi.c: New file.
5183 * grub-core/Makefile.core.def (lsacpi): New module.
5184 * include/grub/acpi.h (GRUB_ACPI_FADT_SIGNATURE): New definition.
5185 (GRUB_ACPI_MADT_SIGNATURE): Likewise.
5186 (grub_acpi_madt_entry_header): New struct.
5187 (grub_acpi_madt): Likewise.
5188 (grub_acpi_madt_entry_interrupt_override): Likewise.
5189 (grub_acpi_madt_entry_sapic): Likewise.
5190 (grub_acpi_madt_entry_lsapic): Likewise.
5191 (grub_acpi_madt_entry_platform_int_source): Likewise.
5192 * include/grub/types.h (PRIxGRUB_UINT32_T): New definition.
5193 (PRIuGRUB_UINT32_T): Likewise.
5194 (PRIxGRUB_UINT64_T): Likewise.
5195
1aa4fe88
VS
51962010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
5197
5198 Implement loading palette on ieee1275_fb.
5199
5200 * grub-core/video/ieee1275.c (stdout_ihandle): New variable.
5201 (have_setcolors): Likewise.
5202 (grub_video_ieee1275_init): Fill stdout_ihandle and have_setcolors.
5203 (grub_video_ieee1275_setup): Use grub_video_ieee1275_set_palette.
5204 (grub_video_ieee1275_set_palette): Implement.
5205
25761e13
VS
52062010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
52072010-09-11 Colin Watson <cjwatson@ubuntu.com>
5208
5209 * util/grub-install.in (grub_partition): New variable.
5210 Set prefix_drive on EFI and PC to (,$grub_partition) as last resort.
5211 * util/i386/pc/grub-setup.c (setup): Don't touch prefix.
5212 Fixes a bug reported by Yves Blusseau.
5213
050abaea
VS
52142010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
5215
5216 Fix emu on mipsel.
5217
5218 * conf/Makefile.common (CFLAGS_PLATFORM): Add -mflush-func
5219 =grub_cpu_flush_cache on all mips and not only yeeloong.
5220 * configure.ac (COND_mips): New conditional.
5221 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add libgcc on all
5222 platforms.
5223 * grub-core/kern/emu/cache.S (__mips__): Use _flush_cache.
5224 * grub-core/kern/emu/full.c (grub_arch_dl_init_linker)
5225 [GRUB_LINKER_HAVE_INIT]: New function.
5226 (grub_emu_post_init): Likewise.
5227 * grub-core/kern/emu/lite.c (grub_emu_post_init): Likewise.
5228 * grub-core/kern/emu/main.c: Use grub_emu_post_init.
5229 * include/grub/cache.h (_mips): Include mips/cache.h.
5230 * include/grub/disk.h [GRUB_UTIL || GRUB_MACHINE_EMU]: Add missing
5231 LVM and RAID prototypes.
5232 * include/grub/emu/misc.h (grub_emu_post_init): New proto.
5233 * include/grub/mips/time.h (grub_cpu_idle) [GRUB_MACHINE_EMU]: New
5234 function.
5235
5ed7d816
CW
52362010-09-10 Colin Watson <cjwatson@ubuntu.com>
5237
5238 * util/grub-install.in: Don't try to verify core.img until after
5239 running grub-mkimage to create it.
5240
90367e04
RM
52412010-09-10 Robert Millan <rmh@gnu.org>
5242
5243 * util/grub.d/10_hurd.in: Add misc readability checks.
5244 * util/grub.d/10_kfreebsd.in: Likewise.
5245 * util/grub.d/10_linux.in: Likewise.
5246
c452fa66
CW
52472010-09-10 Colin Watson <cjwatson@ubuntu.com>
5248
5249 * util/grub-install.in: ${imgext} won't be defined here until the
5250 install branch is merged. For the meantime, only verify core.img on
5251 i386-pc and sparc64-ieee1275 platforms.
5252
c38fe9f4
RM
52532010-09-10 Robert Millan <rmh@gnu.org>
5254
5255 Solaris support in grub_find_zpool_from_dir(). Thanks
5256 Seth Goldberg for referring to getextmntent() facility.
5257
5258 * configure.ac: Check for getextmntent(), `sys/mnttab.h' and
5259 `sys/mkdev.h'.
5260 * grub-core/kern/emu/misc.c [HAVE_SYS_MNTTAB_H]: Include
5261 `<sys/mnttab.h>'.
5262 [HAVE_SYS_MKDEV_H]: Include `<sys/mkdev.h>'.
5263 [HAVE_GETEXTMNTENT] (grub_find_zpool_from_dir): Add getextmntent()
5264 method for finding zpool name.
5265
905f7773
CW
52662010-09-10 Colin Watson <cjwatson@ubuntu.com>
5267
5268 grub-fstest needs the host and hostfs modules while other utilities
5269 actively require those modules to be absent, so grub-fstest needs
5270 its own initialisation and finalisation code.
5271
5272 * Makefile.am (grub_fstest.pp): New target.
5273 (grub_fstest_init.lst): Likewise.
5274 (grub_fstest_init.c): Likewise.
5275 * Makefile.util.def (grub-fstest): Add grub_fstest_init.c.
5276
fb90b546
RM
52772010-09-10 Robert Millan <rmh@gnu.org>
5278
5279 * configure.ac: Check for `struct statfs.f_fstypename' and
5280 `struct statfs.f_mntfromname'.
5281
5282 * grub-core/kern/emu/misc.c (grub_find_zpool_from_dir): Conditionalize
5283 kFreeBSD-specific code.
5284
66d4bea5
RM
52852010-09-10 Robert Millan <rmh@gnu.org>
5286
5287 * util/grub.d/10_kfreebsd.in: Fix ${kfreebsd_device} initialization
5288 on ZFS. Now non-main filesystems are supported as / too.
5289
b6a690ee
CW
52902010-09-09 Colin Watson <cjwatson@ubuntu.com>
5291
5292 * Makefile.util.def (libgrub.a): Move grub-core/kern/emu/hostfs.c
5293 and grub-core/disk/host.c to ...
5294 (grub-fstest): ... here. Having the host disk implementation
5295 present confuses grub-probe and other utility programs.
5296
5297 * util/grub-mkconfig.in: Only verify readability of grub.cfg.new
5298 when writing to a file, not when writing to stdout.
5299
8901b00c 53002010-09-09 BVK Chaitanya <bvk.groups@gmail.com>
5301
5302 * tests/partmap_test.in: New test for partitions.
5303 * Makefile.util.def: Rules for new test.
5304
7bf45fdd
RM
53052010-09-09 Robert Millan <rmh@gnu.org>
5306
5307 * util/grub-probe.c (probe): Fix a pair of unhandled error
5308 conditions.
5309
4dfbc574
RM
53102010-09-09 Robert Millan <rmh@gnu.org>
5311
5312 Basic Btrfs support (detection and UUID).
5313
5314 * grub-core/fs/btrfs.c: New file.
5315 * Makefile.util.def (library): Register btrfs.c.
5316 * grub-core/Makefile.core.def: Likewise.
5317
6b8e78ae
RM
53182010-09-08 Robert Millan <rmh@gnu.org>
5319
5320 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Improve
5321 with (optional) parameters to specify device and relative path.
5322 * util/grub-install.in: Use is_path_readable_by_grub() to
5323 verify readability of a few critical files.
5324 * util/grub-mkconfig.in: Use is_path_readable_by_grub() to
5325 verify readability of grub.cfg.new.
5326
27f21a8b
VS
53272010-09-08 Vladimir Serbinenko <phcoder@gmail.com>
5328
5329 Split minix.mod into minix.mod and minix2.mod.
5330
5331 * Makefile.util.def (libgrub.a): Add grub-core/fs/minix2.c.
5332 * grub-core/Makefile.core.def (minix2): New module.
5333 * grub-core/fs/minix.c: Use definitions instead of runtime version
5334 checking.
5335 * grub-core/fs/minix2.c: New file.
5336
c0e53ea5
YB
53372010-09-08 Yves Blusseau <blusseau@zetam.org>
5338
5339 Add new --boot-directory option to replace --root-directory
5340
5341 * util/grub-install.in: Add new --boot-directory option
5342 * util/grub-reboot.in: Likewise.
5343 * util/grub-set-default.in: Likewise.
5344
b9fe6ea2
YB
53452010-09-08 Yves Blusseau <blusseau@zetam.org>
5346
5347 * util/grub-mkconfig.in: Use new variable.
5348
d87aedff
YB
53492010-09-08 Yves Blusseau <blusseau@zetam.org>
5350
5351 * configure.ac: Define some useful variables.
5352
e55e8495
VS
53532010-09-08 Vladimir Serbinenko <phcoder@gmail.com>
5354
5355 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
5356 GRUB_IEEE1275_FLAG_HAS_CURSORONOFF when appropriate.
5357 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_setcursor):
5358 Use terminfo and don't use cursor-on/cursor-off unless it's known
5359 to work.
5360 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New element
5361 GRUB_IEEE1275_FLAG_HAS_CURSORONOFF.
5362
6fa6d675
CW
53632010-09-08 Colin Watson <cjwatson@ubuntu.com>
5364
5365 * grub-core/kern/efi/init.c (grub_efi_set_prefix): If the prefix
5366 starts with "(,", fill the drive containing the loaded image in
5367 between those two characters, but expect that a full partition
5368 specification including partition map names will follow.
5369
92f2aef0
RM
53702010-09-08 Robert Millan <rmh@gnu.org>
5371
5372 * configure.ac: Remove `--enable-grub-fstest' option.
5373 * Makefile.util.def (grub-fstest): Remove COND_GRUB_FSTEST condition.
5374
5375 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Use
5376 `grub-fstest' instead of `grub-probe' for readability verification.
5377 * util/grub-probe.c (probe): Remove readability verification kludge.
5378
99fd620d
RM
53792010-09-08 Robert Millan <rmh@gnu.org>
5380
5381 * util/grub-mkconfig.in: Pass `--device ${GRUB_DEVICE}' when
5382 initializing `GRUB_FS'.
5383
058e30ac 53842010-09-08 BVK Chaitanya <bvk.groups@gmail.com>
5385
5386 Not command (!) support to GRUB script.
5387
5388 * tests/grub_script_not.in: New test.
5389 * Makefile.util.def: Rules for new test.
5390
5391 * grub-core/script/execute.c (grub_script_execute_cmdline): Handle
5392 ! command as a special case.
5393 * grub-core/script/yylex.l (GRUB_PARSER_TOKEN_NOT): Removed.
5394
b61d05ed 53952010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
5396
058e30ac 5397 * grub-core/commands/wildcard.c (wildcard_expand): Fix wrong
5398 grub_free.
b61d05ed 5399
4d69c786 54002010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
5401
5402 * docs/grub.texi (Shell-like scripting): Fix @dots to @dots{}.
5403
aa3119c4 54042010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
5405
5406 * docs/grub.texi (Shell-like scripting): Documentation for break,
5407 continue, shift and return commands.
5408
db0f7e3d
VS
54092010-09-06 Vladimir Serbinenko <phcoder@gmail.com>
5410
5411 Rename CD-ROM to cd on BIOS.
5412
5413 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_get_drive): Recognise
5414 "cd".
5415 (grub_biosdisk_call_hook): Call with "cd" instead of arbitrary hdX.
5416
88b87c93
VS
54172010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
5418
5419 * grub-core/kern/emu/main.c (main): Reinit LVM and RAID.
5420 * util/grub-probe.c (main): Likewise.
5421 * util/i386/pc/grub-setup.c (main): Likewise.
5422 * util/sparc64/ieee1275/grub-setup.c (main): Likewise.
5423 Reported and debugged by: alexxy
5424
294f324d
VS
54252010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
5426
5427 * grub-core/disk/lvm.c (grub_lvm_scan_device) [GRUB_UTIL]: Output more
5428 diagnostic info.
5429
d7ee3441
JS
54302010-09-05 Jo Shields <directhex@apebox.org>
5431
5432 * util/grub.d/30_os-prober.in: Add missing classes.
5433
d7e06c1f
VS
54342010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
5435
5436 * docs/grub.texi (Theme file format): Document new position format.
5437
fc157e53
VS
54382010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
5439
5440 * docs/grub.texi (Theme file format): Replace Box_slice_names.png with
5441 a table. Use @code instead of @verbatim.
5442
506e9a1c
CB
54432010-09-05 Colin D Bennett <colin@gibibit.com>
5444
5445 Gfxmenu documentation.
5446
5447 * docs/grub.texi (Theme file format): New chapter.
5448
f0aff67c
SJ
54492010-09-05 Szymon Janc <szymon@janc.net.pl>
5450
5451 * grub-core/Makefile.core.def (xzio): New module.
5452 * grub-core/io/xzio.c: New file.
5453 * grub-core/lib/xzembed/xz.h: New file (from xembed).
5454 * grub-core/lib/xzembed/xz_config.h: Likewise.
5455 * grub-core/lib/xzembed/xz_dec_bcj.c: Likewise.
5456 * grub-core/lib/xzembed/xz_dec_lzma2.c: Likewise.
5457 * grub-core/lib/xzembed/xz_dec_stream.c: Likewise.
5458 * grub-core/lib/xzembed/xz_lzma2.h: Likewise.
5459 * grub-core/lib/xzembed/xz_private.h: Likewise.
5460 * grub-core/lib/xzembed/xz_stream.h: Likewise.
5461 * include/grub/file.h (grub_file_filter_id): New compression filter
5462 GRUB_FILE_FILTER_XZIO.
5463
82a85062
VS
54642010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
5465
5466 * include/grub/file.h (GRUB_FILE_SIZE_UNKNOWN): New definition.
5467 * grub-core/disk/loopback.c (grub_loopback_open): Handle unknown file
5468 size.
5469
3579415d
VS
54702010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
5471
5472 * include/grub/err.h (grub_err_t): Replace GRUB_ERR_BAD_GZIP_DATA with
5473 GRUB_ERR_BAD_COMPRESSED_DATA. All users updated.
5474
5124ae6d
VS
54752010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
5476
5477 Uncompressed checksum support.
5478
5479 * grub-core/commands/hashsum.c (options): Add option --uncompress.
5480 (check_list): New parameter uncompress.
5481 (grub_cmd_hashsum): Handle --uncompress.
5482
9aadb3d1
VS
54832010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
5484
5485 Reintroduce testload.
5486
5487 * grub-core/commands/minicmd.c (grub_rescue_cmd_testload) [0]: Moved
5488 from here ...
5489 * grub-core/commands/testload.c (grub_cmd_testload): ... here.
5490 (GRUB_MOD_INIT): New function.
5491 (GRUB_MOD_FINI): Likewise.
5492 * grub-core/Makefile.core.def (testload): New module.
5493
a17792c3
SJ
54942010-09-05 Szymon Janc <szymon@janc.net.pl>
5495
5496 * grub-core/lib/posix_wrap/sys/types.h (bool): Transform into an enum.
5497 (uint8_t): New type.
5498 (uint16_t): Likewise.
5499 (uint32_t): Likewise.
5500 (uint64_t): Likewise.
5501
b81e40a3
SJ
55022010-09-05 Szymon Janc <szymon@janc.net.pl>
5503
5504 * include/grub/crypto.h (GRUB_MD_CRC32): New definition.
5505
fc2ef117
VS
55062010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
5507
5508 * grub-core/io/gzio.c (grub_gzio_open): Removed "transparent" parameter.
5509 Made static.
5510 (grub_gzfile_open): Removed. All users updated.
5511 (GRUB_MOD_INIT): New function.
5512 (GRUB_MOD_FINI): Likewise.
5513 * grub-core/kern/file.c (grub_file_filters_all): New variable.
5514 (grub_file_filters_enabled): Likewise.
5515 (grub_file_open): Handle filters.
5516 * grub-core/loader/i386/bsd.c (GRUB_MOD_INIT): Load gzio.
5517 * grub-core/normal/main.c (GRUB_MOD_INIT): Likewise.
5518 * include/grub/file.h (grub_file_filter_id_t): New type.
5519 (grub_file_filter_t): Likewise.
5520 (grub_file_filters_all): New extern variable.
5521 (grub_file_filters_enabled): Likewise.
5522 (grub_file_filter_register): New inline function.
5523 (grub_file_filter_unregister): Likewise.
5524 (grub_file_filter_disable): Likewise.
5525 (grub_file_filter_disable_compression): Likewise.
5526 * include/grub/gzio.h: Removed.
5527
35ee15e0
BC
55282010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
5529
5530 Filename expansion support for wildcards in GRUB script.
5531
5532 * tests/grub_script_expansion.in: New test.
5533 * Makefile.util.def: Rule for new test.
5534
5535 * grub-core/commands/wildcard.c: New file, implements filename
5536 expansion support for GRUB script.
5537 * grub-core/Makefile.core.def: Rule update for regexp.mod.
5538 * grub-core/script/argv.c: Cosmetic changes.
5539 * grub-core/script/execute.c (grub_script_arglist_to_argv):
5540 Refactored to perform wildcard expansion on arguments.
5541 * include/grub/script_sh.h (grub_script_wildcard_translator): New
5542 struct.
5543
5544 * tests/util/grub-shell.in: Fix quoting for read input.
5545
5f0c4aca
BC
55462010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
5547
5548 Support for updating environment variables with matched substrings
5549 of regexp.
5550
5551 * tests/grub_cmd_regexp.in: New test.
5552 * Makefile.util.def: Rule for new test.
5553
5554 * grub-core/commands/regexp.c: New option -s to update environment
5555 variables with regexp matches.
5556
3759a35f
SJ
55572010-09-04 Szymon Janc <szymon@janc.net.pl>
5558
5559 * include/grub/file.h (grub_file): New member not_easly_seekable.
5560 (grub_file_seekable): New inline function.
5561 * grub-core/io/gzio.c (test_header): Don't test end magic if file isn't
5562 easily seekable.
5563 (grub_gzio_open): Set not_easly_seekable.
5564 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_open): Set not_easily_seekable.
5565 * grub-core/io/bufio.c (grub_bufio_open): Propagate not_easily_seekable.
5566
ed8c6dec
BC
55672010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
5568
5569 Support for options to appear multiple times on cmdline.
5570
5571 * include/grub/lib/arg.h (grub_arg_list_alloc): New prototype.
5572 * grub-core/commands/extcmd.c: Support for repeatable option.
5573 * grub-core/lib/arg.c (grub_arg_list_alloc): New function for
5574 repeatable option support.
5575
5576 Refactor menuentry into a regular command.
5577
5578 * grub-core/commands/menuentry.c: New file, menuentry command
5579 implementation.
5580 * grub-core/Makefile.core.def: Rule update for normal.mod.
5581 * grub-core/normal/main.c: Moved menuentry creation to
5582 grub-core/commands/menuentry.c.
5583 * grub-core/normal/menu.c (grub_menu_execute_entry): Removed.
5584 (grub_menu_execute_entry_real): Removed.
5585 * grub-core/script/execute.c (grub_script_execute_sourcecode): New
5586 function.
5587 (grub_script_execute_menuentry): Removed.
5588 * grub-core/script/parser.y (menuentry): Removed.
5589 * grub-core/script/script.c (grub_script_create_cmdmenu): Removed.
5590 * grub-core/script/yylex.l (menuentry): Removed.
5591 * include/grub/menu.h (grub_menu_init): New prototype.
5592 (grub_menu_fini): New prototype.
5593 * include/grub/normal.h (grub_normal_add_menu_entry): Removed.
5594 * include/grub/script_sh.h (grub_script_cmd_menuentry): Removed.
5595 (grub_script_execute_sourcecode): New prototype.
5596
dacd0cf0
BC
55972010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
5598
5599 "return" command for GRUB script functions.
5600
5601 * tests/grub_script_return.in: New test.
5602 * Makefile.util.def: Rules for new test.
5603
5604 * grub-core/script/execute.c (grub_script_return): New function.
5605 * grub-core/script/main.c: Register/unregister return commaond.
5606 * include/grub/script_sh.h (grub_script_return): New prototype.
5607
52e72f9d
BC
56082010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
5609
5610 "setparams" command to update positional parameters.
5611
5612 * tests/grub_script_setparams.in: New test.
5613 * Makefile.util.def: Rules for new test.
5614
5615 * grub-core/script/argv.c (grub_script_argv_make): New function.
5616 * grub-core/script/execute.c (replace_scope): New function.
5617 (grub_script_setparams): New function.
5618 * grub-core/script/lexer.c: Remove unused variables.
5619 * grub-core/script/main.c: Register/unregister setparams command.
5620 * include/grub/script_sh.h (grub_script_argv_make): New prototype.
5621 (grub_script_setparams): New prototype.
5622
25b60c91
BC
56232010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
5624
5625 * grub-core/normal/completion.c (grub_normal_do_completion): Fix
5626 grub_free order.
5627
37e7bf68
BC
56282010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
5629
5630 Support for passing block of commands as an argument to extcmds.
5631
5632 * Makefile.util.def: Rules for new test.
5633 * tests/grub_script_blockarg.in: New test.
5634 * grub-core/tests/test_blockarg.c: New file, block argument
5635 command used in the test.
5636
5637 * include/grub/extcmd.h (grub_extcmd_context): New struct.
5638 (grub_register_extcmd_prio): New function prototype.
5639 (grub_extcmd_dispatcher): New function prototype.
5640 * include/grub/command.h (GRUB_COMMAND_FLAG_BLOCKS): New command
5641 type.
5642 * include/grub/script_sh.h (struct grub_script): New members
5643 `children', `next_siblings' and `refcnt' for block arguments and
5644 reference counting.
5645 (GRUB_SCRIPT_ARG_TYPE_BLOCK): New argument type.
5646 (grub_script_arg): New member `script' for block argument.
5647 (grub_script_argv): New member `script' for block argument.
5648 (grub_parser_param): New member `scripts' for block argument.
5649 (grub_script_mem_free): New extern function prototype.
5650 (grub_script_ref): New function prototype.
5651 (grub_script_unref): New function prototype.
5652
5653 * grub-core/normal/dyncmd.c (grub_dyncmd_dispatcher): Moved to
5654 extcmd form to support block arguments.
5655 * grub-core/script/argv.c: Block arguments support.
5656 * grub-core/script/execute.c: Likewise.
5657 * grub-core/script/lexer.c: Likewise.
5658 * grub-core/script/main.c: Likewise.
5659 * grub-core/script/script.c: Likewise.
5660 * grub-core/script/parser.y: Likewise. New `block' and `block0'
5661 non-terminals.
5662
5663 * grub-core/commands/acpi.c: Update extcmd implementations with
5664 grub_extcmd_context_t.
5665 * grub-core/commands/cat.c: Likewise.
5666 * grub-core/commands/echo.c: Likewise.
5667 * grub-core/commands/extcmd.c: Likewise.
5668 * grub-core/commands/hashsum.c: Likewise.
5669 * grub-core/commands/hdparm.c: Likewise.
5670 * grub-core/commands/help.c: Likewise.
5671 * grub-core/commands/hexdump.c: Likewise.
5672 * grub-core/commands/i386/cpuid.c: Likewise.
5673 * grub-core/commands/i386/pc/drivemap.c: Likewise.
5674 * grub-core/commands/i386/pc/halt.c: Likewise.
5675 * grub-core/commands/i386/pc/sendkey.c: Likewise.
5676 * grub-core/commands/iorw.c: Likewise.
5677 * grub-core/commands/keystatus.c: Likewise.
5678 * grub-core/commands/loadenv.c: Likewise.
5679 * grub-core/commands/ls.c: Likewise.
5680 * grub-core/commands/lspci.c: Likewise.
5681 * grub-core/commands/memrw.c: Likewise.
5682 * grub-core/commands/probe.c: Likewise.
5683 * grub-core/commands/search_wrap.c: Likewise.
5684 * grub-core/commands/setpci.c: Likewise.
5685 * grub-core/commands/sleep.c: Likewise.
5686 * grub-core/disk/loopback.c: Likewise.
5687 * grub-core/hello/hello.c: Likewise.
5688 * grub-core/loader/i386/bsd.c: Likewise.
5689 * grub-core/loader/xnu.c: Likewise.
5690 * grub-core/term/gfxterm.c: Likewise.
5691 * grub-core/term/serial.c: Likewise.
5692 * grub-core/tests/lib/functional_test.c: Likewise.
5693
888d1500
BC
56942010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
5695
5696 Multi-line quoted strings support.
5697
5698 * grub-core/script/lexer.c (append_newline): Removed.
5699 (grub_script_lexer_yywrap): Refactored.
5700 (grub_script_lexer_init): Refactored.
5701 * grub-core/script/yylex.l (yywrap): New function.
5702 (grub_lexer_resplit): New function.
5703 (grub_lexer_unput): New function.
5704 * include/grub/script_sh.h (grub_lexer_param): New members, unput
5705 and resplit.
5706 * tests/grub_script_echo1.in: Added few more testcases.
5707
dda060dd
VS
57082010-09-04 Vladimir Serbinenko <phcoder@gmail.com>
5709
5710 * grub-core/kern/misc.c: Don't add abort alias in utils.
5711 Reported by: echoline.
5712
6556eba9
BC
57132010-09-03 BVK Chaitanya <bvk.groups@gmail.com>
5714
5715 Add missing files into "make dist" tarball for other platforms.
5716
5717 * gentpl.py (script): Use dist_noinst_DATA instead of EXTRA_DIST.
5718 * conf/Makefile.common (dist_noinst_DATA): New variable.
5719 * conf/Makefile.extra-dist: Added missing make dist files.
5720 * grub-core/Makefile.core.def: Likewise.
5721
c8e7bf5f
VS
57222010-09-03 Vladimir Serbinenko <phcoder@gmail.com>
5723
5724 Compress grub_prefix.
5725
5726 * grub-core/boot/i386/pc/lnxboot.S: Use
5727 GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE.
5728 * grub-core/kern/i386/pc/startup.S: Move grub_prefix to compressed part.
5729 * include/grub/offsets.h: Rename GRUB_MACHINE_DATA_END to
5730 GRUB_MACHINE_PREFIX_END. All users updated.
5731 (GRUB_KERNEL_I386_PC_PREFIX): Set to GRUB_KERNEL_I386_PC_RAW_SIZE.
5732 (GRUB_KERNEL_I386_PC_PREFIX_END): Set to GRUB_KERNEL_I386_PC_PREFIX
5733 + 0x40.
5734 (GRUB_KERNEL_I386_PC_RAW_SIZE): Decrease.
5735 * util/grub-mkimage.c (image_target_desc): Change data_end to
5736 prefix_end. All users updated.
5737
a7c00cdb
VS
57382010-09-03 Vladimir Serbinenko <phcoder@gmail.com>
5739
5740 * grub-core/loader/i386/bsd.c (grub_freebsd_boot): Set %ebp to sane
5741 value.
5742 (grub_openbsd_boot): Likewise.
5743 (grub_netbsd_boot): Likewise.
5744 * grub-core/loader/i386/xnu.c (grub_xnu_boot_resume): Likewise.
5745 (grub_xnu_boot): Likewise.
5746
9f915872
VS
57472010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
5748
5749 * configure.ac: Clean LIBS variable after tests.
5750
efa1bee7
CW
57512010-09-02 Colin Watson <cjwatson@ubuntu.com>
5752
5753 * INSTALL: Document that libdevmapper needs to be 1.02.34 or later.
5754
61d720e5
VS
57552010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
5756
5757 * configure.ac: Check for dm_log_with_errno_init in libdevmapper and
5758 echo if libdevmapper will be used.
5759
ef8e0ec8
IT
57602010-09-02 Ian Turner <Ian.Turner@deshaw.com>
5761
5762 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_read): Keep the blocksize
5763 constant for the same file.
5764
03e261d8
VS
57652010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
5766
5767 * grub-core/kern/i386/multiboot_mmap.c: Remove leftover include.
5768
c2a4eba6
CW
57692010-09-02 Colin Watson <cjwatson@ubuntu.com>
5770
5771 * .bzrignore: Add *.pp, **/.dirstamp, grub-core/*.module, and
5772 grub-core/*.pp.
5773
9056cbf3
CW
57742010-09-02 Colin Watson <cjwatson@ubuntu.com>
5775
5776 Zero %ebp and %edi when entering Linux's 32-bit entry point, as
5777 required by the boot protocol.
5778
5779 * include/grub/i386/relocator.h (struct grub_relocator32_state): Add
5780 ebp and edi members.
5781 * grub-core/lib/i386/relocator.c (grub_relocator_boot): Handle
5782 state.ebp and state.edi.
5783 * grub-core/lib/i386/relocator32.S (grub_relocator32_start): Set
5784 %ebp and %edi according to grub_relocator32_ebp and
5785 grub_relocator32_edi respectively.
5786 * grub-core/loader/i386/linux.c (grub_linux_boot): Zero state.ebp
5787 and state.edi.
5788
529cc99a
VS
57892010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
5790
5791 Add i386-pc-pxe image target.
5792
5793 * util/grub-mkimage.c (image_target_desc): New enum value
5794 IMAGE_I386_PC_PXE.
5795 (image_targets): New target i386-pc-pxe.
5796 (generate_image): Handle i386-pc-pxe image.
5797
9a093920
VS
57982010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
5799
5800 Fix grub_pxe_scan.
5801
5802 * grub-core/fs/i386/pc/pxe.c (grub_pxe_pxenv): Put correct type bangpxe.
5803 (grub_pxe_scan): Fix types and pxe_rm_entry computation.
5804 All users updated.
5805 * include/grub/i386/pc/pxe.h (grub_pxe_bangpxe): New struct.
5806 (grub_pxe_pxenv): Correct type.
5807
f9cefc4e
CW
58082010-09-01 Colin Watson <cjwatson@ubuntu.com>
5809
5810 * NEWS: Document most of the important changes since 1.98.
5811
4066f57f
CW
58122010-09-01 Colin Watson <cjwatson@ubuntu.com>
5813
5814 * util/grub-mkrescue.in (usage): Tidy up usage output (and hence
5815 generated manual page) a little.
5816
da2891f9
CW
58172010-09-01 Colin Watson <cjwatson@ubuntu.com>
5818
5819 * docs/grub.texi: Add myself as an author.
5820
ad717fae
VS
58212010-09-01 Vladimir Serbinenko <phcoder@gmail.com>
5822
5823 * Makefile.util.def (libgrub.a): Add missing sunpc.
5824 Reported by: Seth Goldberg.
5825
eefe8abd
VS
58262010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
5827
5828 Interrupt wrapping and code simplifications.
5829
9494ef9a
VS
5830 * Makefile.util.def (grub-mkrescue): Use x86 tg instead of
5831 x86_noieee1275 which are functionaly equivalent in this case.
5832 (grub-install): Make source on each platform explicit. Enable on
5833 all noemu.
5834 * gentpl.py (x86_efi_pc): Removed group.
5835 (x86_noefi): Likewise.
5836 (i386_noefi): Likewise.
5837 (x86_noieee1275): Likewise.
5838 (i386_noieee1275): Likewise.
5839 (i386_noefi_noieee1275): Likewise.
5840 (i386_pc_qemu_coreboot): Likewise.
5841 (i386_coreboot_multiboot): Likewise.
5842 (i386_pc_coreboot_multiboot_qemu): Likewise.
5843 (x86_noefi_mips): Likewise.
5844 (noieee1275): Likewise.
5845 (ieee1275_mips): Likewise.
5846 (noemu_noieee1275): Likewise.
5847 (cmos): New group.
5848 (usb): Likewise.
5849 (videoinkernel): Likewise.
5850 (videomodules): Likewise.
eefe8abd 5851 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Remove
9494ef9a
VS
5852 include/grub/elf.h, include/grub/elfload.h, include/grub/net.h,
5853 include/grub/reader.h, include/grub/symbol.h, include/grub/types.h,
5854 include/grub/loader.h, include/grub/msdos_partition.h,
5855 include/grub/machine/biosdisk.h, include/grub/machine/boot.h,
5856 include/grub/machine/console.h, include/grub/machine/vga.h,
5857 include/grub/machine/vbe.h, include/grub/machine/init.h,
5858 include/grub/machine/kernel.h, include/grub/cpu/time.h,
5859 include/grub/cpu/types.h, include/grub/gzio.h and include/grub/menu.h
eefe8abd 5860 (KERNEL_HEADER_FILES) [i386-pc]: Add include/grub/machine/int.h.
9494ef9a
VS
5861 (KERNEL_HEADER_FILES) [i386-ieee1275]: Add include/grub/i386/pit.h
5862 * grub-core/Makefile.core.def (kernel): Explicit the source for
5863 startup. Explicit the platforms using kern/generic/rtc_get_time_ms.c.
5864 Split ieee1275_mips. Remove kern/i386/halt.c. Remove kern/i386/misc.S.
5865 Enable kern/i386/pit.c on all x86. Remove kern/i386/ieee1275/init.c.
5866 Use videoinkernel tag.
5867 (usb): Enable on all usb.
5868 (usbserial_common): Likewise.
5869 (usbserial_pl2303): Likewise.
5870 (usbserial_ftdi): Likewise.
5871 (uhci): Enable on all x86.
5872 (ohci): Enable on all pci.
5873 (cmostest): Enable on all CMOS.
5874 (acpi): Include commands/acpi.c on all platforms.
5875 (halt): Add relevant lib/*/halt.c.
5876 (hdparm): Enable on all pci.
5877 (lspci): Likewise.
5878 (usbtest): Enable on all usb.
5879 (ata): Enable on all pci.
5880 (ata_pthru): Likewise.
5881 (usbms): Enable on all usb.
5882 (usb_keyboard): Likewise.
5883 (font): Use tag videomodules.
5884 (bufio): Likewise.
5885 (datetime): Use tag cmos. Enable on all noemu.
5886 (mmap): Use tags common and x86.
5887 (gfxterm): Use tag videomodules.
5888 (bitmap): Likewise.
5889 (bitmap_scale): Likewise.
5890 (video_fb): Likewise.
5891 (video): Likewise.
5892 * grub-core/bus/usb/ohci.c (grub_ohci_td): Make link_td a pointer and
5893 adjust padding accordingly. All users updated.
5894 (grub_ohci_transaction): Fix bad format specification.
5895 (GRUB_MOD_INIT): Add asserts for struct size.
5896 * grub-core/bus/usb/uhci.c (grub_uhci_pci_iter): Add explicit casts.
5897 (grub_alloc_td): Likewise.
5898 (grub_free_queue): Likewise.
5899 (grub_uhci_transfer): Likewise.
5900 (grub_uhci_transaction): Fix bad format specification.
5901 * grub-core/bus/usb/usbtrans.c (grub_usb_control_msg): Likewise.
5902 (grub_usb_bulk_readwrite): Likewise.
5903 * grub-core/kern/i386/misc.S (grub_stop): Moved from here ...
5904 * grub-core/commands/i386/pc/halt.c (stop): ...here. Transformed into C.
5905 Made static.
5906 * grub-core/lib/i386/halt.c (stop): ... and here. Transformed into C.
5907 Made static.
5908 * grub-core/kern/i386/pc/startup.S (grub_halt): Moved from here ...
5909 * grub-core/commands/i386/pc/halt.c (grub_halt): ...here.
5910 Transformed into C.
5911 * grub-core/kern/i386/pc/startup.S (grub_biosdisk_rw_int13_extensions):
5912 Moved from here ...
5913 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_rw_int13_extensions):
5914 ... here. Transformed into C. Made static.
5915 * grub-core/kern/i386/pc/startup.S (grub_biosdisk_rw_standard):
5916 Moved from here ...
5917 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_rw_standard):
5918 ... here. Transformed into C. Made static.
5919 * grub-core/kern/i386/pc/startup.S
5920 (grub_biosdisk_check_int13_extensions): Moved from here ...
5921 * grub-core/disk/i386/pc/biosdisk.c
5922 (grub_biosdisk_check_int13_extensions): ... here. Transformed into C.
5923 Made static.
5924 * grub-core/kern/i386/pc/startup.S
5925 (grub_biosdisk_get_cdinfo_int13_extensions): Moved from here ...
5926 * grub-core/disk/i386/pc/biosdisk.c
5927 (grub_biosdisk_get_cdinfo_int13_extensions): ... here.
5928 Transformed into C. Made static.
5929 * grub-core/kern/i386/pc/startup.S
5930 (grub_biosdisk_get_diskinfo_int13_extensions): Moved from here ...
5931 * grub-core/disk/i386/pc/biosdisk.c
5932 (grub_biosdisk_get_diskinfo_int13_extensions): ... here.
5933 Transformed into C. Made static.
5934 * grub-core/kern/i386/pc/startup.S
5935 (grub_biosdisk_get_diskinfo_standard): Moved from here ...
5936 * grub-core/disk/i386/pc/biosdisk.c
5937 (grub_biosdisk_get_diskinfo_standard): ... here.
5938 Transformed into C. Made static.
5939 * grub-core/kern/i386/pc/startup.S
5940 (grub_biosdisk_get_num_floppies): Moved from here ...
5941 * grub-core/disk/i386/pc/biosdisk.c
5942 (grub_biosdisk_get_num_floppies): ... here.
5943 Transformed into C. Made static.
5944 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_get_diskinfo_real):
5945 New function.
5946 * grub-core/kern/i386/pc/startup.S (grub_pxe_scan): Moved from here ...
5947 * grub-core/fs/i386/pc/pxe.c (grub_pxe_scan): ... here.
5948 Transformed into C. Made static.
5949 * grub-core/kern/i386/pc/startup.S (grub_rm_entry): Moved from here ...
5950 * grub-core/fs/i386/pc/pxe.c (grub_rm_entry): ... here.
5951 Transformed into C. Made static.
5952 * grub-core/kern/i386/ieee1275/init.c: Removed.
5953 * grub-core/kern/i386/misc.S: Likewise.
5954 * grub-core/kern/i386/pc/startup.S (grub_get_memsize):
5955 Splitted from here ...
5956 * grub-core/kern/i386/pc/init.c (grub_get_conv_memsize): ... here.
5957 Transformed into C. Made static. All users updated.
5958 * grub-core/kern/i386/pc/mmap.c (grub_get_ext_memsize): ... and here.
5959 Transformed into C. Made static. All users updated.
5960 * grub-core/kern/i386/pc/startup.S (grub_get_eisa_mmap):
5961 Moved from here...
5962 * grub-core/kern/i386/pc/mmap.c (grub_get_eisa_mmap): ... here.
5963 Transformed into C. Made static. All users updated.
5964 * grub-core/kern/i386/pc/startup.S (grub_get_mmap_entry):
5965 Moved from here...
5966 * grub-core/kern/i386/pc/mmap.c (grub_get_mmap_entry): ... here.
5967 Transformed into C. Made static. All users updated.
5968 * grub-core/kern/i386/pc/startup.S (grub_stop_floppy):
5969 Removed (replaced by C version).
5970 * grub-core/kern/i386/pc/startup.S (grub_vga_set_mode):
5971 Moved from here...
5972 * grub-core/video/i386/pc/vga.c (grub_vga_set_mode): ...here.
5973 Transformed into C. Made static.
5974 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_controller_info):
5975 Moved from here...
5976 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_controller_info):
5977 ... here. Transformed into C.
5978 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_mode_info):
5979 Moved from here...
5980 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_mode_info):
5981 ... here. Transformed into C.
5982 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_mode):
5983 Moved from here...
5984 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_mode):
5985 ... here. Transformed into C. Made static.
5986 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_mode):
5987 Moved from here...
5988 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_mode):
5989 ... here. Transformed into C.
21ed554b
VS
5990 * grub-core/kern/i386/pc/startup.S
5991 (grub_vbe_bios_getset_dac_palette_width):Moved from here...
5992 * grub-core/video/i386/pc/vbe.c
5993 (grub_vbe_bios_getset_dac_palette_width):... here. Transformed into C.
9494ef9a
VS
5994 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_memory_window):
5995 Moved from here...
5996 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_memory_window):
5997 ... here. Transformed into C.
5998 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_memory_window):
5999 Moved from here...
6000 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_memory_window):
6001 ... here. Transformed into C.
6002 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_scanline_length):
6003 Moved from here...
6004 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_scanline_length):
6005 ... here. Transformed into C.
6006 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_scanline_length):
6007 Moved from here...
6008 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_scanline_length):
6009 ... here. Transformed into C.
6010 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_display_start):
6011 Moved from here...
6012 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_display_start):
6013 ... here. Transformed into C. Made static.
6014 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_display_start):
6015 Moved from here...
6016 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_display_start):
6017 ... here. Transformed into C. Made static.
6018 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_palette_data):
6019 Moved from here...
6020 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_palette_data):
6021 ... here. Transformed into C. Made static.
6022 * grub-core/kern/i386/pc/startup.S (grub_pxe_call): Receive
6023 pxe_rm_entry as third argument.
6024 (grub_bios_interrupt): New function.
6025 * grub-core/kern/i386/qemu/mmap.c: Remove useless include.
6026 * grub-core/kern/i386/qemu/startup.S (codestart): Do cli;hlt instead
6027 of calling grub_stop.
6028 * grub-core/kern/efi/efi.c (grub_halt): Moved from here ...
6029 * grub-core/lib/efi/halt.c (grub_halt): ...here.
6030 * grub-core/kern/emu/main.c (grub_halt): Moved from here ...
6031 * grub-core/lib/emu/halt.c (grub_halt): ... here.
6032 * grub-core/lib/i386/halt.c: Moved from here ...
6033 * grub-core/lib/i386/halt.c: ... here.
6034 * grub-core/kern/ieee1275/openfw.c (grub_halt): Moved from here ...
6035 * grub-core/lib/ieee1275/halt.c (grub_halt): ... here.
6036 * grub-core/loader/i386/pc/linux.c (grub_linux16_boot): Call
6037 grub_stop_floppy.
6038 * grub-core/loader/i386/xnu.c (guessfsb) [IEEE1275]: Enable.
6039 * include/grub/i386/coreboot/init.h: Removed.
6040 * include/grub/i386/multiboot/init.h: Likewise.
6041 * include/grub/i386/pc/biosdisk.h: Removed all function prototypes.
6042 * include/grub/i386/pc/init.h: Likewise except grub_gate_a20.
6043 * include/grub/i386/pc/int.h: New file.
6044 * include/grub/i386/pc/pxe.h (GRUB_PXE_SIGNATURE): New definition.
6045 (grub_pxe_scan): Removed.
6046 (grub_pxe_call): Update prototype.
6047 * include/grub/i386/pc/vbe.h: Removed EXPORT_FUNC and useless
6048 prototypes.
6049 * include/grub/i386/pc/vga.h (grub_vga_set_mode): Removed.
6050 * include/grub/i386/qemu/init.h: Removed.
6051 * include/grub/mips/yeeloong/kernel.h (grub_reboot): Add missing
6052 noreturn.
6053 (grub_halt): Likewise.
6054 * include/grub/misc.h (grub_halt): Removed EXPORT_FUNC.
6055 (grub_reboot): Likewise.
6056 * grub-core/kern/i386/coreboot/init.c (grub_stop_floppy): Moved from here...
6057 * include/grub/i386/floppy.h (grub_stop_floppy): ...here. Inlined.
21ed554b
VS
6058 * grub-core/kern/i386/pc/startup.S (grub_hard_stop): Removed.
6059
215dd471
RM
60602010-08-30 Robert Millan <rmh@gnu.org>
6061
6062 * NEWS: Document addition of ZFS support in `grub-install' and
6063 `grub-mkconfig'.
6064
ebd65b82
BC
60652010-08-30 BVK Chaitanya <bvk.groups@gmail.com>
6066
6067 * conf/Makefile.common (CPPFLAGS_DEFAULT): Remove leading / from
6068 dprintf output.
6069
11721d19
VS
60702010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
6071
6072 Remove leftover embedding of font objects.
6073
6074 * include/grub/kernel.h (OBJ_TYPE_FONT): Removed.
6075 * util/grub-install.in (font): Removed.
6076 * util/grub-mkimage.c (generate_image): Remove font support. All users
6077 updated.
6078
37837d4e
VS
60792010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
6080
6081 Remove leftover embedding of font objects.
6082
6083 * include/grub/kernel.h (OBJ_TYPE_FONT): Removed.
6084 * util/grub-install.in (font): Removed.
6085 * util/grub-mkimage.c (generate_image): Remove font support. All users
6086 updated.
6087
b4c1aae0
VS
60882010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
6089
6090 * docs/grub.texi (Network): Fix reference to pxe_blksize.
e176a764 6091 Reported by: Ian Turner
b4c1aae0 6092
8920a08d
VS
60932010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
6094
6095 * grub-core/normal/menu.c (grub_wait_after_message): Add a 10 second
6096 timeout to avoid indefinite boot stalling.
6097
f21db033
VS
60982010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
6099
6100 * grub-core/normal/color.c (grub_env_write_color_normal): Fix a warning.
6101 (grub_env_write_color_highlight): Likewise.
6102
9a9de209
VS
61032010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
6104
6105 * grub-core/normal/term.c (print_more): Return to normal and not
6106 to standard state after printing "---MORE---".
6107
3dca01d7
VS
61082010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
6109
6110 * grub-core/term/i386/vga_common.c (grub_console_setcolorstate):
6111 Mask out the bit 0x80 since it has other meaning that specifiing color.
6112
0b986c40
VS
61132010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
6114
6115 New relocator. Allows for more kernel support and more straightforward
6116 loader writing.
6117
6118 * Makefile.am (BOOTTARGET): New variable.
6119 (QEMU32): Likewise.
6120 (linux.init.x86_64): New target.
6121 (linux.init.i386): Likewise.
6122 (multiboot.elf): Likewise.
6123 (kfreebsd.elf): Likewise.
6124 (kfreebsd.aout): Likewise.
6125 (pc-chainloader.elf): Likewise.
6126 (pc-chainloader.bin): Likewise.
6127 (ntldr.elf): Likewise.
6128 (ntldr.bin): Likewise.
6129 (multiboot2.elf): Likewise.
6130 (kfreebsd.init.x86_64): Likewise.
6131 (kfreebsd.init.i386): Likewise.
6132 (knetbsd.init.i386): Likewise.
6133 (kopenbsd.init.i386): Likewise.
6134 (knetbsd.init.x86_64): Likewise.
6135 (kopenbsd.init.x86_64): Likewise.
6136 (linux-initramfs.i386): Likewise.
6137 (linux-initramfs.x86_64): Likewise.
6138 (kfreebsd-mfsroot.i386.img): Likewise.
6139 (knetbsd.image.i386): Likewise.
6140 (kopenbsd.image.i386): Likewise.
6141 (kopenbsd.image.x86_64): Likewise.
6142 (knetbsd.miniroot-image.i386.img): Likewise.
6143 (kfreebsd-mfsroot.x86_64.img): Likewise.
6144 (knetbsd.image.x86_64): Likewise.
6145 (knetbsd.miniroot-image.x86_64.img): Likewise.
6146 (kfreebsd-mfsroot.i386.gz): Likewise.
6147 (bootcheck-kfreebsd-i386): Likewise.
6148 (kfreebsd-mfsroot.x86_64.gz): Likewise.
6149 (bootcheck-kfreebsd-x86_64): Likewise.
6150 (knetbsd.miniroot-image.i386.gz): Likewise.
6151 (bootcheck-knetbsd-i386): Likewise.
6152 (bootcheck-kopenbsd-i386): Likewise.
6153 (bootcheck-kopenbsd-x86_64): Likewise.
6154 (knetbsd.miniroot-image.x86_64.gz): Likewise.
6155 (bootcheck-knetbsd-x86_64): Likewise.
6156 (bootcheck-linux-i386): Likewise.
6157 (bootcheck-linux-x86_64): Likewise.
6158 (bootcheck-linux16-i386): Likewise.
6159 (bootcheck-linux16-x86_64): Likewise.
6160 (bootcheck-multiboot): Likewise.
6161 (bootcheck-multiboot2): Likewise.
6162 (bootcheck-kfreebsd-aout): Likewise.
6163 (bootcheck-pc-chainloader): Likewise.
6164 (bootcheck-ntldr): Likewise.
6165 (CLEANFILES): Add new targets.
6166 (BOOTCHECKS): New variable.
6167 (.PHONY): Add bootchecks.
6168 (SUCCESSFUL_BOOT_STRING): New variable.
6169 (BOOTCHECK_TIMEOUT): Likewise.
6170 (bootcheck): New target
6171 * Makefile.util.def (grub-mkrescue): Enable on i386-multiboot.
6172 * configure.ac: Correct efiemu excuse.
6173 * docs/grub.texi (Supported kernels): New chapter.
6174 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add
6175 include/grub/mm_private.h. Simplify inclusion of
6176 include/grub/boot.h, include/grub/loader.h
6177 and include/grub/msdos_partition.h
6178 (KERNEL_HEADER_FILES) [i386_coreboot]:
6179 Remove include/grub/machine/loader.h. Add include/grub/i386/pit.h.
6180 (KERNEL_HEADER_FILES) [i386_multiboot]: Likewise.
6181 (KERNEL_HEADER_FILES) [i386_qemu]: Likewise.
6182 (KERNEL_HEADER_FILES) [i386_ieee1275]: Remove
6183 include/grub/machine/loader.h.
6184 (KERNEL_HEADER_FILES) [x86_64-efi]: Likewise.
6185 * grub-core/Makefile.core.def (kernel): Remove kern/i386/loader.S from
6186 extra_dist.
6187 (pci.mod): Enable on i386-multiboot.
6188 (acpi.mod): Enable on i386-multiboot and i386-coreboot.
6189 (efiemu.mod): Enable on i386-coreboot, i386-ieee1275, i386-multiboot and
6190 i386-qemu.
6191 (relocator.mod): Rewritten.
6192 (aout.mod): Enable on all x86.
6193 (bsd.mod): Likewise.
6194 (ntldr.mod): New module.
6195 (linux.mod): Use loader/i386/linux.c on all x86.
6196 (xnu.mod): Enable on all x86.
6197 (vga_text.mod): disable on EFI and QEMU.
6198 * grub-core/efiemu/i386/coredetect.c: Remove useless include.
6199 * grub-core/efiemu/i386/pc/cfgtables.c: Likewise.
6200 * grub-core/efiemu/loadcore.c: Likewise.
6201 * grub-core/efiemu/main.c: Likewise.
6202 (grub_efiemu_exit_boot_services): Removed.
6203 (grub_efiemu_finish_boot_services): Likewise.
6204 * grub-core/efiemu/mm.c (grub_efiemu_finish_boot_services): New
6205 function.
6206 * grub-core/efiemu/i386/nocfgtables.c: New file.
6207 * grub-core/kern/dl.c (grub_dl_unload_all): Removed.
6208 * grub-core/kern/efi/efi.c (grub_efi_exit_boot_services): Removed.
6209 (grub_efi_finish_boot_services): Moved from here ...
6210 * grub-core/kern/efi/mm.c (grub_efi_finish_boot_services): ...here.
6211 Fille finish memory map and related data.
6212 (finish_mmap_buf): New variable.
6213 (grub_efi_uintn_t finish_mmap_size): Likewise.
6214 (grub_efi_uintn_t finish_key): Likewise.
6215 (grub_efi_uintn_t finish_desc_size): Likewise.
6216 (grub_efi_uint32_t finish_desc_version): Likewise.
6217 (grub_efi_is_finished): Likewise.
6218 (grub_efi_get_memory_map): Use saved memory map if EFI is already
6219 finished.
6220 * grub-core/kern/elf.c (grub_elf32_phdr_iterate): Make global.
6221 (grub_elf64_phdr_iterate): Likewise.
6222 * grub-core/kern/i386/coreboot/init.c (grub_os_area_addr): Removed.
6223 (grub_os_area_size): Likewise.
6224 (grub_machine_init): Don't reserve os area.
6225 * grub-core/kern/i386/coreboot/startup.S: Don't include loader.S.
6226 * grub-core/kern/i386/ieee1275/startup.S: Likewise.
6227 * grub-core/kern/i386/loader.S: Removed.
6228 * grub-core/kern/i386/pc/init.c (grub_os_area_addr): Removed.
6229 (grub_os_area_size): Likewise.
6230 (grub_machine_init): Don't reserve os area.
6231 * grub-core/kern/i386/pc/startup.S (grub_chainloader_real_boot):
6232 Don't call grub_dl_unload_all.
6233 Don't include loader.S.
6234 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_iterate):
6235 Declare the memory after _end as available.
6236 * grub-core/kern/mm.c (GRUB_MM_FREE_MAGIC): Moved from here...
1935c077 6237 * include/grub/mm_private.h (GRUB_MM_FREE_MAGIC): ... here.
0b986c40 6238 (GRUB_MM_ALLOC_MAGIC): Moved from here...
1935c077
VS
6239 * include/grub/mm_private.h (GRUB_MM_ALLOC_MAGIC): ... here.
6240 * grub-core/kern/mm.c (grub_mm_header): Moved from here...
6241 * include/grub/mm_private.h (grub_mm_header): ... here.
6242 * grub-core/kern/mm.c (GRUB_MM_ALIGN): Moved from here...
6243 * include/grub/mm_private.h (GRUB_MM_ALIGN): ... here.
0b986c40
VS
6244 * grub-core/kern/mm.c (grub_mm_region): Moved from here ...
6245 (grub_mm_region): ..here. Removed addr. Added pre_size.
6246 All users updated.
6247 * grub-core/kern/mm.c (base): Renamed to ...
6248 (grub_mm_base): ... this. Made global.
6249 (grub_real_malloc): Alloc from end of region.
6250 (grub_memalign): Don't attempt to malloc if grub_mm_base is NULL.
6251 * grub-core/kern/powerpc/cache.S (grub_arch_sync_caches): Move to ...
6252 * grub-core/kern/powerpc/cache_flush.S: ... here.
6253 * grub-core/lib/efi/relocator.c: New file.
6254 * grub-core/lib/i386/relocator.c: Rewritten.
6255 * grub-core/lib/i386/relocator16.S: New file.
6256 * grub-core/lib/i386/relocator32.S: Likewise.
6257 * grub-core/lib/i386/relocator64.S: Likewise.
6258 * grub-core/lib/i386/relocator_asm.S: Rewritten.
6259 * grub-core/lib/i386/relocator_common.S: New file.
6260 * grub-core/lib/ieee1275/relocator.c: Likewise.
6261 * grub-core/lib/mips/relocator.c: Rewritten.
6262 * grub-core/lib/mips/relocator_asm.S: Renamed variables and minor
6263 stylistic adjustments.
6264 * grub-core/lib/powerpc/relocator.c: New file.
6265 * grub-core/lib/powerpc/relocator_asm.S: Likewise.
6266 * grub-core/lib/relocator.c: Rewritten.
6267 * grub-core/lib/x86_64/relocator_asm.S: New file.
6268 * grub-core/loader/aout.c (grub_aout_load): Make load_addr a void *.
6269 * grub-core/loader/i386/bsd.c (NETBSD_DEFAULT_VIDEO_MODE): New const.
6270 (bsd_tag): New struct.
6271 (tags): New variable.
6272 (tags_last): Likewise.
6273 (netbsd_module): New struct.
6274 (netbsd_mods): New variable.
6275 (netbsd_mods_last): Likewise.
6276 (openbsd_opts): New parameter "serial".
6277 (OPENBSD_SERIAL_ARG): New definition.
6278 (netbsd_opts): New parameter "serial".
6279 (NETBSD_SERIAL_ARG): New definition.
6280 (grub_freebsd_add_meta): Reorganised into ...
6281 (grub_bsd_add_meta): ...this. All users updated.
6282 (grub_freebsd_add_mmap): Reorganised into ...
6283 (generate_e820_mmap): ...this...
6284 (grub_bsd_add_mmap): ...and this. All users updated.
6285 (grub_freebsd_list_modules): Use tags.
6286 (grub_netbsd_add_meta_module): New function.
6287 (grub_netbsd_list_modules): Likewise.
6288 (grub_freebsd_boot): Use relocator and finish EFI.
6289 (grub_openbsd_boot): Likewise.
6290 (grub_netbsd_setup_video): New function.
6291 (grub_netbsd_add_modules): Likewise.
6292 (grub_netbsd_boot): Use grub_netbsd_add_modules, relocator, netbsd_tags
6293 and finish EFI.
6294 (grub_bsd_unload): Unload tags.
6295 (grub_bsd_load_aout): Use relocator.
6296 (grub_bsd_elf32_size_hook): New function.
6297 (grub_bsd_elf32_hook): Use relocator.
6298 (grub_bsd_elf64_size_hook): New function.
6299 (grub_bsd_elf64_hook): Use relocator.
6300 (grub_bsd_load_elf): Use relocator and call grub_openbsd_find_ramdisk.
6301 (grub_bsd_load): Zero-out openbsd_ramdisk.
6302 (grub_bsd_load): Use relocator.
6303 (grub_cmd_openbsd): Support serial.
6304 (grub_cmd_netbsd): Support modules.
6305 (grub_cmd_freebsd_module): Use relocator.
6306 (grub_netbsd_module_load): New function.
6307 (grub_cmd_netbsd_module): Likewise.
6308 (grub_cmd_openbsd_ramdisk): Likewise.
6309 (GRUB_MOD_INIT): Register knetbsd_module, knetbsd_module_elf and
6310 kopenbsd_ramdisk.
6311 (GRUB_MOD_FINI): Unregister new commands.
6312 * grub-core/loader/i386/bsdXX.c (load): Remove useless checks.
6313 (grub_freebsd_load_elfmodule_obj): Use relocator.
6314 (grub_freebsd_load_elfmodule): Likewise.
6315 (grub_freebsd_load_elf_meta): Likewise.
6316 (grub_netbsd_load_elf_meta): New function.
6317 (grub_openbsd_find_ramdisk): Likewise.
6318 * grub-core/loader/i386/bsd_helper.S: Removed.
6319 * grub-core/loader/i386/bsd_pagetable.c: Support relocator.
6320 * grub-core/loader/i386/bsd_trampoline.S: Removed.
6321 * grub-core/loader/i386/efi/linux.c: Likewise.
6322 * grub-core/loader/i386/ieee1275/linux.c: Likewise.
6323 * grub-core/loader/i386/linux.c (HAS_VGA_TEXT): New const.
6324 (DEFAULT_VIDEO_MODE): Likewise.
6325 (real_mode_target): New variable.
6326 (prot_mode_target): Likewise.
6327 (initrd_mem_target): Likewise.
6328 (relocator): Likewise.
6329 (efi_mmap_buf): Likewise.
6330 (efi_mmap_size): Likewise.
6331 (find_efi_mmap_size): Moved from grub-core/loader/i386/efi/linux.c.
6332 (free_pages): Use relocator.
6333 (allocate_pages): Account for efi_mmap and use relocator. Return error.
6334 (grub_linux_setup_video): Return error.
6335 (grub_linux_trampoline_start): Removed.
6336 (grub_linux_trampoline_end): Likewise.
6337 (grub_linux_boot): Use relocator and DEFAULT_VIDEO_MODE. Pass console
6338 andd video parameters depending on firmware.
6339 [GRUB_MACHINE_IEEE1275]: Pass OFW parameters.
6340 [GRUB_MACHINE_EFI]: Pass EFI parameters.
6341 (grub_cmd_linux) [GRUB_MACHINE_EFI]: Likewise.
6342 (grub_cmd_initrd): Use relocator.
6343 * grub-core/loader/i386/linux_trampoline.S: Removed.
6344 * grub-core/loader/i386/multiboot_mbi.c (elf_sec_num): New variable.
6345 (elf_sec_entsize): Likewise.
6346 (elf_sec_shstrndx): Likewise.
6347 (elf_sections): Likewise.
6348 (grub_multiboot_load): Use relocator.
6349 (grub_multiboot_get_mbi_size): Account for sections.
6350 (grub_multiboot_make_mbi): Use relocator and support sections.
6351 (grub_multiboot_add_elfsyms): New function.
6352 (grub_multiboot_free_mbi): Free sections.
6353 * grub-core/loader/i386/pc/linux.c (relocator): New variable.
6354 (grub_linux_real_target): Likewise.
6355 (grub_linux_real_chunk): Likewise.
6356 (grub_linux16_prot_size): Likewise.
6357 (grub_linux16_boot): Use relocator.
6358 (grub_linux_unload): Unload relocator.
6359 (grub_cmd_linux): Use relocator.
6360 (grub_cmd_initrd): Likewise.
6361 * grub-core/loader/i386/pc/ntldr.c: New file.
6362 * grub-core/loader/i386/xnu.c (guessfsb) [GRUB_MACHINE_IEEE1275]:
6363 Don't try to guess CPU frequency.
6364 (grub_xnu_set_video): Stretch bitmap.
6365 (grub_xnu_boot): Use relocator.
6366 * grub-core/loader/mips/linux.c (grub_linux_boot): Use relocator.
6367 (grub_linux_unload): Free relocator.
6368 (grub_linux_load32): Use relocator.
6369 (grub_linux_load64): Likewise.
6370 (grub_cmd_initrd): Likewise.
6371 * grub-core/loader/multiboot.c (grub_multiboot_boot): Use relocator.
6372 (grub_multiboot_unload): Unload relocator.
6373 (grub_cmd_multiboot): Use relocator.
6374 (grub_cmd_module): Likewise.
6375 * grub-core/loader/multiboot_elfxx.c (grub_multiboot_load_elfXX):
6376 Use relocator and support sections.
6377 * grub-core/loader/multiboot_mbi2.c(elf_sec_num): New variable.
6378 (elf_sec_entsize): Likewise.
6379 (elf_sec_shstrndx): Likewise.
6380 (elf_sections): Likewise.
6381 (grub_multiboot_load): Use relocator.
6382 (grub_multiboot_get_mbi_size): Account for sections.
6383 (grub_multiboot_make_mbi): Use relocator and support sections.
6384 (grub_multiboot_add_elfsyms): New function.
6385 * grub-core/loader/powerpc/ieee1275/linux.c: Remove useless include.
6386 * grub-core/loader/sparc64/ieee1275/linux.c: Likewise.
6387 * grub-core/loader/xnu.c (grub_xnu_heap_malloc): Use relocator.
6388 Prototype changed. All users updated.
6389 (grub_xnu_align_heap): Simplified.
6390 (grub_xnu_writetree_toheap): Likewise.
6391 (grub_xnu_unload): Unload relocator.
6392 (grub_cmd_xnu_kernel): Use relocator.
6393 (grub_cmd_xnu_kernel64): Likewise.
6394 (grub_xnu_register_memory): Simplified.
6395 * grub-core/loader/xnu_resume.c (grub_xnu_resume): Use relocator.
1935c077
VS
6396 * grub-core/term/efi/console.c (grub_console_putchar): Abort if
6397 EFI is finished.
6398 (grub_console_checkkey): Likewise.
6399 (grub_console_getkey): Likewise.
6400 (grub_console_getwh): Likewise.
6401 (grub_console_getxy): Likewise.
6402 (grub_console_gotoxy): Likewise.
6403 (grub_console_cls): Likewise.
6404 (grub_console_setcolorstate): Likewise.
6405 (grub_console_setcursor): Likewise.
6406 * grub-core/term/ns8250.c (grub_ns8250_hw_get_port): New function.
6407 * grub-core/tests/boot/kbsd.init-i386.S: New file.
6408 * grub-core/tests/boot/kbsd.init-x86_64.S: Likewise.
6409 * grub-core/tests/boot/kbsd.spec.txt: Likewise.
6410 * grub-core/tests/boot/kernel-8086.S: Likewise.
6411 * grub-core/tests/boot/kernel-i386.S: Likewise.
6412 * grub-core/tests/boot/kfreebsd-aout.cfg: Likewise.
6413 * grub-core/tests/boot/kfreebsd.cfg: Likewise.
6414 * grub-core/tests/boot/kfreebsd.init-i386.S: Likewise.
6415 * grub-core/tests/boot/kfreebsd.init-x86_64.S: Likewise.
6416 * grub-core/tests/boot/knetbsd.cfg: Likewise.
6417 * grub-core/tests/boot/kopenbsd.cfg: Likewise.
6418 * grub-core/tests/boot/kopenbsdlabel.txt: Likewise.
6419 * grub-core/tests/boot/linux.cfg: Likewise.
6420 * grub-core/tests/boot/linux.init-i386.S: Likewise.
6421 * grub-core/tests/boot/linux.init-x86_64.S: Likewise.
6422 * grub-core/tests/boot/linux16.cfg: Likewise.
6423 * grub-core/tests/boot/multiboot.cfg: Likewise.
6424 * grub-core/tests/boot/multiboot2.cfg: Likewise.
6425 * grub-core/tests/boot/ntldr.cfg: Likewise.
6426 * grub-core/tests/boot/pc-chainloader.cfg: Likewise.
6427 * include/grub/aout.h (grub_aout_load): Make load_addr a void *.
6428 * include/grub/autoefi.h (grub_autoefi_finish_boot_services):
6429 New definition.
6430 * include/grub/dl.h (grub_dl_unload_all): Removed.
6431 * include/grub/efi/efi.h (grub_efi_exit_boot_services): Likewise.
6432 (grub_efi_finish_boot_services): Change prototype.
6433 (grub_efi_is_finished): New variable.
6434 * include/grub/efiemu/efiemu.h (grub_efiemu_finish_boot_services):
6435 Changed prototype.
6436 (grub_efiemu_finish_boot_services): Removed.
6437 (grub_machine_efiemu_init_tables): New prototype.
6438 * include/grub/elfload.h (grub_elf32_phdr_iterate): Likewise.
6439 (grub_elf64_phdr_iterate): Likewise.
6440 * include/grub/i386/bsd.h: Include relocator.h.
6441 (freebsd_tag_header): New struct.
6442 (grub_openbsd_bios_mmap): Removed.
6443 (grub_unix_real_boot): Removed.
6444 (grub_freebsd_load_elfmodule32): Changed prototype.
6445 (grub_freebsd_load_elfmodule_obj64): Likewise.
6446 (grub_freebsd_load_elf_meta32): Likewise.
6447 (grub_freebsd_load_elf_meta64): Likewise.
6448 (grub_freebsd_add_meta): Removed.
6449 (grub_netbsd_load_elf_meta32): New prototype.
6450 (grub_netbsd_load_elf_meta64): Likewise.
6451 (grub_bsd_add_meta): Likewise.
6452 (grub_openbsd_ramdisk_descriptor): New struct.
6453 (grub_openbsd_find_ramdisk32): New prototype.
6454 (grub_openbsd_find_ramdisk64): Likewise.
6455 * include/grub/i386/coreboot/loader.h: Removed.
6456 * include/grub/i386/efi/loader.h: Likewise.
6457 * include/grub/i386/ieee1275/loader.h: Likewise.
6458 * include/grub/i386/linux.h (linux_kernel_header): Change void *
6459 to grub_uint32_t.
6460 * include/grub/i386/loader.h: Removed.
6461 * include/grub/i386/memory.h (GRUB_MEMORY_CPU_CR4_PAE_ON): Correct the
6462 value.
6463 (GRUB_MEMORY_CPU_CR4_PSE_ON): New definition.
6464 (grub_phys_addr_t): New type.
6465 (grub_vtop): New inline function.
6466 (grub_map_memory): Likewise.
6467 (grub_unmap_memory): Likewise.
6468 * include/grub/i386/multiboot/loader.h: Removed.
6469 * include/grub/i386/netbsd_bootinfo.h (NETBSD_BTINFO_BOOTDISK): Removed.
6470 (NETBSD_BTINFO_CONSOLE): New definition.
6471 (NETBSD_BTINFO_SYMTAB): Likewise.
6472 (NETBSD_BTINFO_MODULES): Likewise.
6473 (NETBSD_BTINFO_FRAMEBUF): Likewise.
6474 (grub_netbsd_bootinfo): New struct.
6475 (grub_netbsd_btinfo_common): Use explicit bitsize.
6476 (grub_netbsd_btinfo_mmap_entry): Removed.
6477 (GRUB_NETBSD_MAX_BOOTPATH_LEN): New definition.
6478 (grub_netbsd_btinfo_bootdisk): New struct.
6479 (grub_netbsd_btinfo_symtab): Likewise.
6480 (grub_netbsd_btinfo_serial): Likewise.
6481 (grub_netbsd_btinfo_modules): Likewise.
6482 (grub_netbsd_btinfo_framebuf): Likewise.
6483 (GRUB_NETBSD_MAX_ROOTDEVICE_LEN): New definition.
6484 * include/grub/i386/openbsd_bootarg.h (OPENBSD_BOOTARG_CONSOLE):
6485 Likewise.
6486 (grub_openbsd_bootargs): Use explicit bitsize.
6487 (grub_openbsd_bootarg_console): New struct.
6488 (GRUB_OPENBSD_COM_MAJOR): New definition.
6489 (GRUB_OPENBSD_VGA_MAJOR): Likewise.
6490 * include/grub/i386/pc/efiemu.h: Removed.
6491 * include/grub/i386/pc/loader.h: Don't include cpu/loader.h.
6492 * include/grub/i386/qemu/loader.h: Removed.
6493 * include/grub/i386/relocator.h: Rewritten.
6494 * include/grub/i386/xnu.h (grub_xnu_heap_will_be_at): Removed.
6495 * include/grub/mips/memory.h: New file.
6496 * include/grub/mips/multiboot.h: Rewritten.
6497 * include/grub/mips/relocator.h: Rewritten.
6498 * include/grub/mips/yeeloong/memory.h (grub_phys_addr_t): New type.
6499 (grub_vtop): New function.
6500 (grub_map_memory): Likewise.
6501 (grub_unmap_memory): Likewise.
6502 * include/grub/misc.h (ALIGN_DOWN): New definition.
6503 * include/grub/mm.h (grub_mm_check_real): New proto.
6504 (GRUB_MM_CHECK): New definition.
6505 * include/grub/mm_private.h: New file.
6506 * include/grub/multiboot.h (grub_multiboot_relocator): New variable.
6507 (grub_multiboot_get_mbi_size): Removed.
6508 (grub_multiboot_make_mbi): Change prottype.
6509 (grub_multiboot_set_accepts_video): New proto.
6510 (grub_multiboot_add_elfsyms): Likewise.
6511 (grub_multiboot_payload_eip): New variable.
6512 * include/grub/ns8250.h (grub_ns8250_hw_get_port) [!ASM_FILE]:
6513 New prototype.
6514 * include/grub/offsets.h (GRUB_KERNEL_I386_MULTIBOOT_PREFIX):
6515 New definition.
6516 (GRUB_KERNEL_I386_MULTIBOOT_DATA_END): Likewise.
6517 (GRUB_KERNEL_I386_MULTIBOOT_MOD_ALIGN): Likewise.
6518 * include/grub/powerpc/ieee1275/loader.h: Removed.
6519 * include/grub/powerpc/memory.h: New file.
6520 * include/grub/powerpc/relocator.h: Likewise.
6521 * include/grub/relocator.h: Likewise.
6522 * include/grub/relocator_private.h: Likewise.
6523 * include/grub/sparc64/ieee1275/loader.h: Removed.
6524 * include/grub/x86_64/memory.h: New file.
6525 * include/grub/xnu.h (grub_xnu_writetree_toheap): Changed prototype.
6526 (grub_xnu_heap_malloc): Likewise.
6527 (grub_xnu_heap_real_start): Removed.
6528 (grub_xnu_heap_start): Likewise.
6529 (grub_xnu_relocator): New variable.
6530 (grub_xnu_heap_target_start): Likewise.
6531 * tests/util/grub-shell.in: Support non-pc.
6532 * util/grub-mkimage.c (image_targets): Fix multiboot target.
0b986c40 6533
5303b85d
VS
65342010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
6535
6536 * grub-core/normal/charset.c (grub_utf8_to_ucs4_alloc): Avoid deadloop
6537 on malloc error.
6538 (grub_bidi_logical_to_visual): Check that malloc succeded.
6539 * grub-core/normal/term.c (grub_puts_terminal): Fix fallback to dumb
6540 puts.
6541 (grub_xputs_normal): Likewise.
6542
d768d159
VS
65432010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
6544
6545 * grub-core/Makefile.core.def (kernel): Add kern/mips/cache_flush.S to
6546 extra_dist.
6547
65482010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
6549
6550 * grub-core/efiemu/runtime/efiemu.sh: Removed.
6551
5bf84df4
VS
65522010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
6553
6554 * Makefile.util.def (grub-ofpathname): Add missing ldadd.
6555
3626810e
VS
65562010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
6557
6558 * grub-core/kern/misc.c (grub_real_dprintf): Always refresh after
6559 dprintf.
6560
a7363f53
BC
65612010-08-29 BVK Chaitanya <bvk.groups@gmail.com>
6562
6563 * Makefile.util.def: Use ldadd instead of ldflags for libraries.
6564
902f75f6
VS
65652010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
6566
6567 * grub-core/normal/term.c (print_more): Fix a memory leak.
6568 (grub_puts_terminal): Revert to dumb puts if memory allocation fails.
6569 (grub_xputs_normal): Likewise.
6570
3c707967
VS
65712010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
6572
6573 * grub-core/script/lexer.c (grub_script_lexer_init): Don't look before
6574 the begining of the string
6575
2053cc07
VS
65762010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
6577
6578 * grub-core/script/script.c (grub_script_parse): Free parsed on
6579 failure.
6580
46422ebf
VS
65812010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
6582
6583 * grub-core/normal/completion.c (grub_normal_do_completion): Free argv
6584 on failure.
6585
9e0fa3f6
VS
65862010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
6587
6588 * grub-core/normal/cmdline.c (grub_cmdline_get): Free cl_terms on
6589 return.
6590
3393cf16
VS
65912010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
6592
6593 * grub-core/term/gfxterm.c (grub_gfxterm_term_fini): Free the text buffer.
6594 (scroll_up): Fix a memory leak.
6595
b17540cb
VS
65962010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
6597
6598 * grub-core/fs/nilfs2.c (grub_nilfs2_load_sb): Handle grub_disk_read
6599 errors.
6600
67140446
VS
66012010-08-27 Vladimir Serbinenko <phcoder@gmail.com>
6602
6603 Handle USB pendrives exposed as floppies.
6604
6605 * grub-core/boot/i386/pc/boot.S: Check LBA even on what appears to be
6606 floppy.
6607 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_open): Likewise.
6608 Check for partitions on all devices.
6609
e35e46fc
VS
66102010-08-25 Vladimir Serbinenko <phcoder@gmail.com>
6611
6612 * grub-core/term/ieee1275/ofconsole.c (put): Correct prototype.
6613 (readkey): Likewise.
6614
d24c6190
BC
66152010-08-25 BVK Chaitanya <bvk.groups@gmail.com>
6616
6617 Multiple variable names support to "export" command.
6618
6619 * normal/context.c (grub_cmd_export): "export" command supports
6620 multiple variable names.
6621
04ddcc6a
ST
66222010-08-23 Samuel Thibault <samuel.thibault@ens-lyon.org>
6623
6624 * util/grub.d/30_os-prober.in: Fix conversion from grub-probe
6625 --target=drive output to Mach device name.
6626
0c8b61d8
BC
66272010-08-23 BVK Chaitanya <bvk.groups@gmail.com>
6628
6629 New Automake based build system for GRUB.
6630
6631 * ABOUT-NLS: New file.
6632 * Makefile.am: New file. GRUB host utils' rules that doesn't fit
6633 in Makefile.util.def file.
6634 * Makefile.util.def: New file. Autogen build definitions file for
6635 GRUB host utils.
6636 * conf/Makefile.common: New file. Common variables for GRUB host
6637 utils and target modules.
6638 * conf/Makefile.extra-dist: New file. Extra files for make dist.
6639 * docs/Makefile.am: New file. Automake file for docs.
6640 * gentpl.py: New file. Python script to generate Autogen
6641 template.
6642 * grub-core/Makefile.am: New file. GRUB target modules' rules
6643 that doesn't fit in Makefile.core.def file.
6644 * grub-core/Makefile.core.def: New file. Autogen build
6645 definitions file for GRUB target modules.
6646 * grub-core/lib/setjmp.S: New file. Wrapper for target_cpu
6647 specific setjmp.S file.
6648 * po/Makefile.am: New file.
6649
6650 * .bzrignore: New ignores.
6651 * INSTALL: New requirements, without Ruby.
6652 * acinclude.m4: Use TARGET_IMG_BASE_LDOPT variable instead.
6653 * autogen.sh: Updated to invoke autogen as necessary.
6654 * configure.ac: Separate *FLAGS with HOST_ and TARGET_ prefixes,
6655 and defines for Automake conditionals.
6656 * geninit.sh: Refactoring.
6657
6658 * include/grub/dl.h: Allow build rules to define GRUB_MOD_* if
6659 necessary.
6660 * include/grub/emu/getroot.h (grub_make_system_path_relative_to_its_root):
6661 New prototype.
6662
6663 * include/grub/test.h: Fix functional test modules' naming.
6664 * grub-core/tests/example_functional_test.c: Fix test module name.
6665
6666 * util/misc.c: Hosted versions' of grub functions for libgrub.a
6667 * tests/lib/unit_test.c: Remove hosted versions of grub functions.
6668 * util/grub-editenv.c: Likewise.
6669 * util/grub-fstest.c: Likewise.
6670 * util/grub-mkdevicemap.c: Likewise.
6671 * util/grub-mkfont.c: Likewise.
6672 * util/grub-mkimage.c: Likewise.
6673 * util/grub-mkpasswd-pbkdf2.c: Likewise.
6674 * util/grub-probe.c: Likewise.
6675 * util/grub-script-check.c: Likewise.
6676 * util/i386/pc/grub-setup.c: Likewise.
6677 * util/sparc64/ieee1275/grub-setup.c: Likewise.
6678
6679 * tests/util/grub-shell.in: Fix override directory path.
6680 * util/grub-mkrescue.in: Replace @pkglib_DATA@ with files.
6681 * util/import_gcry.py: Create Makefile.gcry.def file instead.
6682
6683 * util/lvm.c: Update #includes.
6684 * util/raid.c: Likewise.
6685 * util/resolve.c: Likewise.
6686 * grub-core/bus/emu/pci.c: Likewise.
6687 * grub-core/lib/posix_wrap/stdlib.h: Likewise.
6688 * grub-core/lib/posix_wrap/string.h: Likewise.
6689 * grub-core/kern/emu/main.c: Likewise.
6690
6691 * grub-core/gensymlist.sh: New file. Script for generating kernel
6692 symbols file.
6693 * grub-core/genmoddep.awk: Support new kernel_syms.lst format.
6694
6695 * grub-core/gentrigtables.c: Fix unused variable warnings.
6696
6697 * Makefile.in: Removed.
6698 * conf/any-emu.rmk: Removed.
6699 * conf/common.rmk: Removed.
6700 * conf/i386-coreboot.rmk: Removed.
6701 * conf/i386-efi.rmk: Removed.
6702 * conf/i386-ieee1275.rmk: Removed.
6703 * conf/i386-multiboot.rmk: Removed.
6704 * conf/i386-pc.rmk: Removed.
6705 * conf/i386-qemu.rmk: Removed.
6706 * conf/i386.rmk: Removed.
6707 * conf/mips-yeeloong.rmk: Removed.
6708 * conf/mips.rmk: Removed.
6709 * conf/powerpc-ieee1275.rmk: Removed.
6710 * conf/sparc64-ieee1275.rmk: Removed.
6711 * conf/tests.rmk: Removed.
6712 * conf/x86-efi.rmk: Removed.
6713 * conf/x86_64-efi.rmk: Removed.
6714 * gendistlist.sh: Removed.
6715 * geninitheader.sh: Removed.
6716 * genkernsyms.sh.in: Removed.
6717 * genmk.rb: Removed.
6718 * gensymlist.sh.in: Removed.
6719 * mkinstalldirs: Removed.
6720 * boot: Moved ...
6721 * grub-core/boot: ... to here.
6722 * bus: Moved ...
6723 * grub-core/bus: ... to here.
6724 * commands: Moved ...
6725 * grub-core/commands: ... to here.
6726 * disk: Moved ...
6727 * grub-core/disk: ... to here.
6728 * efiemu: Moved ...
6729 * grub-core/efiemu: ... to here.
6730 * font: Moved ...
6731 * grub-core/font: ... to here.
6732 * fs: Moved ...
6733 * grub-core/fs: ... to here.
6734 * gencmdlist.sh: Moved ...
6735 * grub-core/gencmdlist.sh: ... to here.
6736 * genemuinit.sh: Moved ...
6737 * grub-core/genemuinit.sh: ... to here.
6738 * genemuinitheader.sh: Moved ...
6739 * grub-core/genemuinitheader.sh: ... to here.
6740 * genfslist.sh: Moved ...
6741 * grub-core/genfslist.sh: ... to here.
6742 * genhandlerlist.sh: Moved ...
6743 * grub-core/genhandlerlist.sh: ... to here.
6744 * genmoddep.awk: Moved ...
6745 * grub-core/genmoddep.awk: ... to here.
6746 * genmodsrc.sh: Moved ...
6747 * grub-core/genmodsrc.sh: ... to here.
6748 * genpartmaplist.sh: Moved ...
6749 * grub-core/genpartmaplist.sh: ... to here.
6750 * genparttoollist.sh: Moved ...
6751 * grub-core/genparttoollist.sh: ... to here.
6752 * genterminallist.sh: Moved ...
6753 * grub-core/genterminallist.sh: ... to here.
6754 * gentrigtables.c: Moved ...
6755 * grub-core/gentrigtables.c: ... to here.
6756 * genvideolist.sh: Moved ...
6757 * grub-core/genvideolist.sh: ... to here.
6758 * gettext: Moved ...
6759 * grub-core/gettext: ... to here.
6760 * gfxmenu: Moved ...
6761 * grub-core/gfxmenu: ... to here.
6762 * gnulib: Moved ...
6763 * grub-core/gnulib: ... to here.
6764 * hello: Moved ...
6765 * grub-core/hello: ... to here.
6766 * hook: Moved ...
6767 * grub-core/hook: ... to here.
6768 * io: Moved ...
6769 * grub-core/io: ... to here.
6770 * kern: Moved ...
6771 * grub-core/kern: ... to here.
6772 * lib: Moved ...
6773 * grub-core/lib: ... to here.
6774 * loader: Moved ...
6775 * grub-core/loader: ... to here.
6776 * mmap: Moved ...
6777 * grub-core/mmap: ... to here.
6778 * normal: Moved ...
6779 * grub-core/normal: ... to here.
6780 * partmap: Moved ...
6781 * grub-core/partmap: ... to here.
6782 * parttool: Moved ...
6783 * grub-core/parttool: ... to here.
6784 * script: Moved ...
6785 * grub-core/script: ... to here.
6786 * term: Moved ...
6787 * grub-core/term: ... to here
6788 * tests/example_functional_test.c: Moved ...
6789 * grub-core/tests/example_functional_test.c: ... to here.
6790 * tests/lib/functional_test.c: Moved ...
6791 * grub-core/tests/lib/functional_test.c: ... to here.
6792 * tests/lib/test.c: Moved ...
6793 * grub-core/tests/lib/test.c: ... to here.
6794 * video: Moved ...
6795 * grub-core/video: ... to here.
6796
645586e6
BC
67972010-08-23 BVK Chaitanya <bvk.groups@gmail.com>
6798
6799 Replace --enable-grub-emu-modules with grub-emu-lite.
6800
6801 * kern/emu/cache.S: New file. Wrapper for $target_cpu specific
6802 cache.S.
6803
6804 * include/grub/emu/misc.h (grub_emu_init): New prototype.
6805 * kern/emu/full.c: New file. For grub-emu specific initialization.
6806 * kern/emu/lite.c: New file. For grub-emu-lite initialization.
6807 * kern/emu/main.c: Call initialization function grub_emu_init.
6808
6809 * Makefile.in: Include grub-emu-lite in install.
6810 * commands/parttool.c: Use grub_no_autoload to differentiate
6811 between grub-emu and grub-emu-lite.
6812 * include/grub/misc.h: New variable grub_no_autoload.
6813
6814 * conf/any-emu.rmk: New rules for grub-emu-lite.
6815 * configure.ac: Remove --enable-grub-emu-modules.
6816 * genmk.rb: Cleanup unnecessary rules.
6817 * include/grub/dl.h: Remove GRUB_NO_MODULES macro.
6818
6819 * normal/main.c: Don't load list files on grub-emu-lite.
6820 * util/misc.c (grub_arch_sync_caches): Removed.
6821
f86a4030
CW
68222010-08-23 Colin Watson <cjwatson@ubuntu.com>
6823
6824 * kern/mips/startup.S (grub_prefix): Update comment to refer to
6825 grub-mkimage rather than grub-mkelfimage.
6826 * kern/powerpc/ieee1275/startup.S (grub_prefix): Likewise.
6827
06776944
VS
68282010-08-22 Vladimir Serbinenko <phcoder@gmail.com>
6829
6830 * term/at_keyboard.c (grub_at_keyboard_getkey_noblock): Don't discard
6831 a key after CapsLock or NumLock. It's just a qemu bug.
6832
df262419
VS
68332010-08-21 Vladimir Serbinenko <phcoder@gmail.com>
6834
6835 * include/grub/usb.h (grub_usb_device): Add 'data' field back. It's
6836 needed by libusb wrapper.
6837
b40ea81b
ST
68382010-08-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
6839
6840 * docs/grub.texi (GNU/Hurd): Document booting GNU/Hurd.
6841
dee50575
VS
68422010-08-21 Vladimir Serbinenko <phcoder@gmail.com>
6843
6844 * loader/multiboot.c (grub_cmd_module): Don't unzip module if
6845 --nounzip is passed.
6846
fb1d7b79
VS
68472010-08-20 Vladimir Serbinenko <phcoder@gmail.com>
6848
6849 USB hotunplugging and USB serial support.
6850
6851 * bus/usb/ohci.c (grub_ohci_transfer): Fill *actual and respect timeout.
6852 * bus/usb/uhci.c (grub_free_queue): Compute *actual.
6853 (grub_uhci_transfer): Respect timeout and set *actual.
6854 * bus/usb/usb.c (grub_usb_device_initialize): Correctly skip fields of
6855 non-standard length.
6856 (grub_usb_device_attach): Autoload modules.
6857 (GRUB_MOD_INIT): Set grub_term_poll_usb.
6858 (GRUB_MOD_FINI): Unset grub_term_poll_usb.
6859 * bus/usb/usbhub.c (grub_usb_hub): Replace speed with devices. All
6860 users updated.
6861 (grub_usb_add_hub): Fill nports and children.
6862 (attach_root_port): Receive hub instead of controller.
6863 All users updated. Fill hub->devices.
6864 (grub_usb_root_hub): Allocate hub->devices.
6865 (detach_device): New function.
6866 (poll_nonroot_hub): Fill children and detach devices.
6867 * bus/usb/usbtrans.c (grub_usb_bulk_readwrite): Accept timeout and
6868 actual arguments. All users updated.
6869 (grub_usb_bulk_read_extended): New function.
6870 * bus/usb/serial/common.c: New file.
6871 * bus/usb/serial/ftdi.c: Likewise.
6872 * bus/usb/serial/pl2303.c: Likewise.
6873 * commands/terminal.c (handle_command): Support wildcard.
6874 * commands/usbtest.c: Output "Unknown" instead of empty string.
6875 * conf/any-emu.rmk (pkglib_MODULES): Add usbserial_common.mod.
6876 (usbserial_common_mod_SOURCES): New variable.
6877 (usbserial_common_mod_CFLAGS): Likewise.
6878 (usbserial_common_mod_LDFLAGS): Likewise.
6879 (pkglib_MODULES): Add usbserial_pl2303.mod.
6880 (usbserial_pl2303_mod_SOURCES): New variable.
6881 (usbserial_pl2303_mod_CFLAGS): Likewise.
6882 (usbserial_pl2303_mod_LDFLAGS): Likewise.
6883 (pkglib_MODULES): Add usbserial_ftdi.mod.
6884 (usbserial_ftdi_mod_SOURCES): New variable.
6885 (usbserial_ftdi_mod_CFLAGS): Likewise.
6886 (usbserial_ftdi_mod_LDFLAGS): Likewise.
6887 (pkglib_MODULES): Add serial.mod.
6888 (serial_mod_SOURCES): New variable.
6889 (serial_mod_CFLAGS): Likewise.
6890 (serial_mod_LDFLAGS): Likewise.
6891 * conf/i386-pc.rmk: Likewise.
6892 * conf/mips-yeeloong.rmk: Likewise.
6893 * conf/i386.rmk (serial_mod_SOURCES): Add term/ns8250.c.
6894 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Likewise.
6895 * disk/usbms.c (first_available_slot): New variable.
6896 (grub_usbms_attach): Don't reuse free slots due to potential cache
6897 problems.
6898 * include/grub/serial.h: Moved to ..
6899 * include/grub/ns8250.h: ...this.
6900 * include/grub/serial.h: New file.
6901 * include/grub/term.h (grub_term_poll_usb): New variable.
6902 * include/grub/terminfo.h (grub_terminfo_input_state): Pass term to
6903 readkey. All users updated.
6904 (grub_terminfo_output_state): Pass term to put.
6905 * include/grub/usb.h (GRUB_USB_REQTYPE): New enum.
6906 (grub_usb_controller_dev): Add timeout and actual arguments to
6907 transfer. All users updated.
6908 (grub_usb_interface): New field detach_data.
6909 (grub_usb_device): New fields children and nports.
6910 (grub_usb_ep_type_t): New type.
6911 (grub_usb_get_ep_type): New function.
6912 (grub_usb_bulk_read_extended): Likewise.
6913 * include/grub/usbdesc.h (grub_usb_desc): New type.
6914 * include/grub/usbserial.h: New file.
6915 * include/grub/usbtrans.h (grub_usb_transaction): New field preceding.
6916 * kern/term.c (grub_term_poll_usb): New variable.
6917 (grub_getkey): Call grub_term_poll_usb if set.
6918 (grub_checkkey): Likewise.
6919 (grub_getkeystatus): Likewise.
6920 * term/serial.c: Moved controller-specific parts to ...
6921 * term/ns8250.c: ... here.
6922 * term/serial.c: Mostly rewritten.
6923 * term/usb_keyboard.c: Reorganised to use GET_REPORT only on attaching
6924 according to spec.
6925
21a313de
RM
69262010-08-20 Robert Millan <rmh@gnu.org>
6927
6928 Make kFreeBSD code more generic to support ext2fs as root, ufs as
6929 a separate module and maybe other interesting combinations.
6930
6931 * util/grub.d/10_kfreebsd.in (load_kfreebsd_module): New function.
6932 (kfreebsd_entry): Use load_kfreebsd_module() to load modules.
6933 (kfreebsd_entry): Add generic filesystem module load routine.
6934 Map GRUB `ext2' to kFreeBSD `ext2fs'.
6935
63c734a6
CW
69362010-08-20 Colin Watson <cjwatson@ubuntu.com>
6937
6938 * commands/i386/pc/sendkey.c (keysym_table): Rename "numlock" to
6939 "numcenter" (I misunderstood the purpose of this entry).
6940 * docs/grub.texi (sendkey): Likewise.
6941
c4d16542
CW
69422010-08-20 Colin Watson <cjwatson@ubuntu.com>
6943
6944 * commands/i386/pc/sendkey.c (options): Remove "keep" from all
6945 status flag options; simply omitting the option is equivalent and
6946 simpler. Rename "wait" to "pause". Rename "sysreq" to "sysrq".
6947 (keysym_table): Rename "num5numlock" to "numlock".
6948 (grub_cmd_sendkey): Reinitialise `andmask' and `ormask', so that we
6949 can uniformly say that only the last of multiple `sendkey'
6950 invocations has any effect.
6951 * docs/grub.texi (sendkey): New section.
6952
93541d66
CW
69532010-08-19 Colin Watson <cjwatson@ubuntu.com>
6954
6955 * commands/i386/pc/sendkey.c (options): Fix three typos.
6956
b4ece5e1
VS
69572010-08-19 Vladimir Serbinenko <phcoder@gmail.com>
6958
6959 Implement sendkey support.
6960
6961 * commands/i386/pc/sendkey.c: New file.
6962 * conf/i386-pc.rmk (pkglib_MODULES): Add sendkey.mod.
6963 (sendkey_mod_SOURCES): New variable.
6964 (sendkey_mod_CFLAGS): Likewise.
6965 (sendkey_mod_LDFLAGS): Likewise.
6966
51f1f5af
CW
69672010-08-18 Colin Watson <cjwatson@ubuntu.com>
6968
6969 * configure.ac: Move AM_INIT_AUTOMAKE after AC_CANONICAL_TARGET to
6970 fix warnings from Autoconf.
6971
9da94e05
CW
69722010-08-18 Colin Watson <cjwatson@ubuntu.com>
6973
6974 * acinclude.m4 (grub_ASM_USCORE): Use a more accurate grep pattern,
6975 to avoid false positives with some assemblers that output things
6976 like "someprefix_func" as part of their output.
6977
729a0f2e
RM
69782010-08-15 Robert Millan <rmh@gnu.org>
6979
6980 * kern/emu/misc.c (grub_get_libzfs_handle): Handle libzfs_init()
6981 errors.
6982 * kern/emu/getroot.c (find_root_device_from_libzfs): Handle
6983 grub_get_libzfs_handle() errors.
6984
f3710e08
RM
69852010-08-14 Robert Millan <rmh@gnu.org>
6986
6987 * kern/emu/misc.c (grub_find_zpool_from_dir): Abort function if
6988 filesystem is not ZFS.
6989
7a3c13de
BC
69902010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
6991
6992 Fix for misspelled color names defaulting to black/black (bug
6993 reported by Doug Nazar)
6994
6995 * include/grub/normal.h (grub_parse_color_name_pair): Add return
6996 status to prototype.
6997 * normal/color.c (grub_parse_color_name_pair): Return failure
6998 status.
6999 (grub_env_write_color_normal): Ignore bad color names.
7000 (grub_env_write_color_highlight): Likewise.
7001 * normal/main.c (GRUB_MOD_INIT): Set default color names.
7002
ab8ba50d
BC
70032010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
7004
7005 "shift" command support to GRUB script.
7006
7007 * include/grub/script_sh.h (grub_script_shift): New prototype.
7008 * script/execute.c (grub_script_shift): New function.
7009 * script/main.c (grub_script_init): Register shift command.
7010 (grub_script_fini): Unregister shift command.
7011 * util/grub-script-check.c (grub_script_cmd_shift): New function.
7012
7013 * tests/grub_script_shift.in: New testcase.
7014 * conf/tests.rmk: Rules for new testcase.
7015
4d61999e
BC
70162010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
7017
7018 "continue" command support to GRUB script.
7019
7020 * script/execute.c (grub_script_execute_cmdwhile): Continue support.
7021 (grub_script_break): Continue support.
7022 * script/main.c (grub_script_init): Register continue command.
7023 (grub_script_fini): Unregister continue command.
7024
7025 * tests/grub_script_continue.in: New testcase.
7026 * conf/tests.rmk: Rules for new testcase.
7027
4df51e00
BC
70282010-08-12 BVK Chaitanya <bvk@dbook>
7029
7030 "break" command support to GRUB script.
7031
7032 * conf/common.rmk: Rule updates to grub-script-check.
7033 * include/grub/misc.h (grub_min): New function.
7034 * include/grub/script_sh.h (grub_script_init): New prototype.
7035 (grub_script_fini): New prototype.
7036 (grub_script_break): New prototype.
7037 * script/main.c (grub_script_init): New function.
7038 (grub_script_fini): New function.
7039 * script/execute.c (grub_script_break): New function.
7040 * normal/main.c: Calls to grub_script_{init,fini}.
7041 * util/grub-script-check.c (grub_script_break): New function.
7042
7043 * tests/grub_script_break.in: New testcase.
7044 * conf/tests.rmk: Rules for new test case.
7045
f12c8420
BC
70462010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
7047
7048 Function parameters support to GRUB script.
7049
7050 * script/yylex.l (VARIABLE): Regular expression update.
7051 * script/function.c (grub_script_function_call): Moved ...
7052 * script/execute.c (grub_script_function_call): ... to here.
7053 (grub_script_execute_arglist_to_argv): Removed.
7054 (grub_script_arglist_to_argv): New function.
7055 * script/argv.c: New file.
7056 (grub_script_argv_free): New function.
7057 (grub_script_argv_next): Likewise.
7058 (grub_script_argv_append): Likewise.
7059 (grub_script_argv_split_append): Likewise.
7060 * include/grub/script_sh.h (grub_script_argv): New struct.
7061 (grub_script_argv_free): New function.
7062 (grub_script_argv_next): Likewise.
7063 (grub_script_argv_append): Likewise.
7064 (grub_script_argv_split_append): Likewise.
7065
7066 * conf/common.rmk (normal.mod): New source script/argv.c.
7067
7068 * tests/grub_script_echo1.in: More tests.
7069 * tests/grub_script_vars1.in: Likewise.
7070 * tests/grub_script_functions.in: New test case.
7071 * conf/tests.rmk: Rules for new testcase.
7072
8022b748
BC
70732010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
7074
7075 Remove grub_script_cmdblock struct.
7076
7077 * include/grub/script_sh.h: Remove grub_script_cmdblock.
7078 * script/parser.y: Likewise.
7079 * script/execute.c: Rename cmdblock suffix to cmdlist.
7080 * script/script.c: Likewise.
7081 * util/grub-script-check.c: Likewise.
7082
79a6ba61
YB
70832010-08-11 Yves Blusseau <blusseau@zetam.org>
7084
7085 * .bzrignore: add grub-macho2img
7086
d04b9414
VS
70872010-08-11 Vladimir Serbinenko <phcoder@gmail.com>
7088
7089 * kern/i386/qemu/init.c (grub_qemu_init_cirrus): Fix compilation error.
7090
f947ab49
VS
70912010-08-11 Vladimir Serbinenko <phcoder@gmail.com>
7092
7093 Remove the dump of sm712 initialisation sequence.
7094
7095 * include/grub/pci.h (GRUB_PCI_CLASS_SUBCLASS_VGA): New const.
7096 * include/grub/vga.h (GRUB_VGA_IO_ARX_READ): New register.
7097 (GRUB_VGA_IO_MISC_WRITE): Likewise.
7098 (GRUB_VGA_CR_*): Added many registers.
7099 (GRUB_VGA_SR_*): Likewise.
7100 (GRUB_VGA_GR_*): Likewise.
7101 (grub_vga_write_arx): New function.
7102 (grub_video_hw_config): New struct.
7103 (grub_vga_set_geometry): New function.
7104 * kern/i386/qemu/init.c (load_palette): Use grub_vga_write_arx and
7105 GRUB_PCI_CLASS_SUBCLASS_VGA.
7106 * video/cirrus.c (grub_video_cirrus_setup): Use grub_vga_set_geometry.
7107 * video/sm712.c (grub_sm712_write_reg): New function
7108 (grub_sm712_read_reg): Likewise.
7109 (grub_sm712_sr_write): Likewise.
7110 (grub_sm712_gr_write): Likewise.
7111 (grub_sm712_cr_write): Likewise.
7112 (grub_sm712_write_arx): Likewise.
7113 (grub_sm712_cr_shadow_write): Likewise.
7114 (grub_sm712_write_dda_lookup): Likewise.
7115 (grub_video_sm712_setup): Initialise the video rather then
7116 blindly replay the dump.
7117 (main) [TEST]: Add a routine to be able to compile as standalone for
7118 tests.
7119 * video/sm712_init.c (sm712_init): Removed.
7120 (sm712_sr_seq1): New array.
7121 (sm712_sr_seq2): Likewise.
7122
f0206638
VS
71232010-08-10 Vladimir Serbinenko <phcoder@gmail.com>
7124
7125 * include/grub/vga.h: Add missing grub/pci.h include.
7126
2764da3b
YB
71272010-08-10 Yves Blusseau <blusseau@zetam.org>
7128
7129 * util/grub-macho2img.c (main): fix typo
7130
cf0c775e
VS
71312010-08-10 Vladimir Serbinenko <phcoder@gmail.com>
7132
7133 * include/grub/vga.h (grub_vga_gr_write): Add GRUB_MACHINE_PCI_IO_BASE.
7134 (grub_vga_gr_read): Likewise.
7135 (grub_vga_cr_write): Likewise.
7136 (grub_vga_cr_read): Likewise.
7137 (grub_vga_sr_write): Likewise.
7138 (grub_vga_sr_read): Likewise.
7139 (grub_vga_palette_read): Likewise.
7140 (grub_vga_palette_write): Likewise.
7141 * video/sm712.c (GRUB_SM712_REG_BASE): New definition.
7142 (grub_sm712_sr_read): New function.
7143 (grub_video_sm712_setup): Use grub_vga_sr_write and grub_sm712_sr_read.
7144 * video/sm712_init.c (sm712_init): Substract GRUB_MACHINE_PCI_IO_BASE.
7145
07f360e9
RM
71462010-08-09 Robert Millan <rmh@gnu.org>
7147
7148 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): Filter
7149 out unused variables on non-ZFS build.
7150
346c2072
RM
71512010-08-08 Robert Millan <rmh@gnu.org>
7152
7153 Fix path generation for sub-filesystems in ZFS.
7154
7155 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): Add
7156 missing slash.
7157
71175420
RM
71582010-08-08 Robert Millan <rmh@gnu.org>
7159
7160 * util/grub-fstest.c (read_file, cmd_cmp): Improve error message.
7161
0d8286f3
RM
71622010-08-08 Robert Millan <rmh@gnu.org>
7163
7164 * util/grub.d/10_kfreebsd.in: When files required for ZFS do not
7165 exist, issue a proper error message (rely on `ls' for translated
7166 strings).
7167
55dd2924
RM
71682010-08-08 Robert Millan <rmh@gnu.org>
7169
7170 Fix grub-probe invocation.
7171
7172 * util/grub.d/10_kfreebsd.in: s/label/fs_label/g.
7173
d3dd9e80
RM
71742010-08-04 Robert Millan <rmh@gnu.org>
7175
7176 * configure.ac: Remove checks for getfsstat() and getmntany().
7177 Add checks for `<sys/param.h>' and `<sys/mount.h>'.
7178 * kern/emu/misc.c [HAVE_GETMNTANY]: Remove `<sys/mnttab.h>'.
7179 [HAVE_SYS_PARAM_H]: Include `<sys/param.h>'.
7180 [HAVE_SYS_MOUNT_H]: Include `<sys/mount.h>'.
7181 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (find_mount_point_from_dir): Remove
7182 function.
7183 (grub_find_zpool_from_dir): Use statfs() instead of indirect matching
7184 via find_mount_point_from_dir() and getfsstat() / getmntany().
7185
0de22aa9
RM
71862010-08-04 Robert Millan <rmh@gnu.org>
7187
7188 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
7189 (grub_find_zpool_from_mount_point): Merge into ...
7190 (grub_find_zpool_from_dir): ... this.
7191 * kern/emu/misc.c: Likewise.
7192
7193 * kern/emu/misc.c
7194 (grub_make_system_path_relative_to_its_root): Replace
7195 grub_find_mount_point_from_dir() / grub_find_zpool_from_mount_point()
7196 with grub_find_zpool_from_dir().
7197 * kern/emu/getroot.c (find_root_device_from_libzfs): Likewise.
7198
62858144
RM
71992010-08-04 Robert Millan <rmh@gnu.org>
7200
7201 Support OpenSolaris in ZFS device resolution.
7202
7203 * configure.ac: Check for getmntany().
7204 * kern/emu/misc.c [HAVE_GETMNTANY]: Include `<sys/mnttab.h>'.
7205 [HAVE_GETMNTANY] (grub_find_zpool_from_mount_point): Add OpenSolaris
7206 support.
7207
9dd6fd50
RM
72082010-08-03 Robert Millan <rmh@gnu.org>
7209
7210 Fix grub-emu build.
7211
7212 * include/grub/util/misc.h: Move `<grub/util/libzfs.h>' to ...
7213 * include/grub/emu/misc.h: ... here.
7214
7215 * include/grub/util/misc.h (grub_get_libzfs_handle): Move function ...
7216 * include/grub/emu/misc.h (grub_get_libzfs_handle): ... here.
7217
7218 * util/misc.c: Remove `<grub/util/libzfs.h>'.
7219 [HAVE_LIBZFS] (libzfs_handle, fini_libzfs)
7220 (grub_get_libzfs_handle): Move to ...
7221 * kern/emu/misc.c [HAVE_LIBZFS] (__libzfs_handle, fini_libzfs)
7222 (grub_get_libzfs_handle): ... here.
7223
c9f7ff97
BC
72242010-08-03 BVK Chaitanya <bvk.groups@gmail.com>
7225
7226 * script/execute.c (grub_script_execute_cmdline): Check for NULL
7227 as command name case.
7228
a870a783
CW
72292010-08-02 Colin Watson <cjwatson@ubuntu.com>
7230
7231 * disk/raid.c (insert_array): Select unique numbers for named arrays
7232 as well, for use as keys in the disk cache.
7233
c7db243b
RM
72342010-08-01 Robert Millan <rmh@gnu.org>
7235
7236 * util/grub.d/10_kfreebsd.in: Initialize ${kfreebsd_device} as the
7237 kFreeBSD device name, except on ZFS where the filesystem label is
7238 used.
7239 (kfreebsd_entry): On ZFS root, load `opensolaris.ko', `zfs.ko' and
7240 `/boot/zfs/zpool.cache'.
7241 Set mountfrom kernel variable using ${kfreebsd_device}.
7242
f7abdefb
RM
72432010-08-01 Robert Millan <rmh@gnu.org>
7244
7245 Make it even harder to use uninitialized `libzfs_handle' (and
7246 make the interface a bit simpler).
7247
7248 * include/grub/util/misc.h (grub_util_init_libzfs)
7249 (libzfs_handle): Remove.
7250 (grub_get_libzfs_handle): New prototype.
7251
7252 * util/misc.c [HAVE_LIBZFS] (libzfs_handle): Add `static'
7253 attribute.
7254 (grub_util_init_libzfs): Remove.
7255 (grub_get_libzfs_handle): New function.
7256
7257 * kern/emu/getroot.c (find_root_device_from_libzfs): Use
7258 grub_get_libzfs_handle() to obtain a libzfs handle instead of
7259 accessing `libzfs_handle' directly.
7260
c882acc0
RM
72612010-08-01 Robert Millan <rmh@gnu.org>
7262
7263 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
7264 (grub_find_zpool_from_mount_point): New function prototypes.
7265
7266 * kern/emu/getroot.c [HAVE_GETFSSTAT]: Move `<sys/mount.h>' to ...
7267 * kern/emu/misc.c [HAVE_GETFSSTAT]: ... here.
7268
7269 * kern/emu/getroot.c (find_mount_point_from_dir): Move to ...
7270 * kern/emu/misc.c (grub_find_mount_point_from_dir): ... this. Remove
7271 `static' attribute.
7272
7273 * kern/emu/getroot.c (find_root_device_from_libzfs): Split code for
7274 finding zpool from mount point into ...
7275 * kern/emu/misc.c (grub_find_zpool_from_mount_point): ... this.
7276
7277 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): When
7278 requested path is part of a ZFS pool, use
7279 grub_find_zpool_from_mount_point() to detect its filesystem name,
7280 and generate a path with `/fsname@path' syntax.
7281
8bfe31d8
CW
72822010-08-01 Colin Watson <cjwatson@ubuntu.com>
7283
7284 * include/grub/util/libzfs.h (libzfs_init): Set argument list to
7285 (void) rather than () so that this is a proper prototype.
7286
553df63d
VS
72872010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
7288
7289 * lib/arg.c (grub_arg_show_help): Add the necessary spacing.
7290
8687cf07
VS
72912010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
7292
7293 * kern/emu/getroot.c (find_mount_point_from_dir): Compile only if
7294 [HAVE_LIBZFS && HAVE_LIBNVPAIR]
7295
ea9be8ea
CW
72962010-08-01 Colin Watson <cjwatson@ubuntu.com>
7297
7298 * util/grub-mkrescue.in: Remove ${efi_dir} after building efi.img.
7299
6eea041a
CW
73002010-08-01 Colin Watson <cjwatson@ubuntu.com>
7301
7302 * script/yylex.l (NAME): Remove [:digit:], redundant with [:alnum:].
7303
2cfb45df
CW
73042010-08-01 Colin Watson <cjwatson@ubuntu.com>
7305
7306 * docs/grub.texi (Simple configuration): Document GRUB_CMDLINE_XEN
7307 and GRUB_CMDLINE_XEN_DEFAULT. Recommend setting
7308 GRUB_GFXPAYLOAD_LINUX=text rather than unsetting it in order to
7309 disable gfxpayload.
7310 (Shell-like scripting): Add real content.
7311 (Serial terminal): Suggest `terminal_input serial; terminal_output
7312 serial' rather than putting the two commands on separate lines,
7313 since console input will be inoperative after the first command.
7314 (menuentry): Document --class, --users, and --hotkey options.
7315 (terminfo): Describe what `visually-ordered UTF-8' means (thanks,
7316 Vladimir Serbinenko).
7317
7decd202
VS
73182010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
73192010-08-01 Colin Watson <cjwatson@ubuntu.com>
7320
7321 * kern/misc.c (grub_memset): Optimise to reduce cache stalls.
7322
c882acc0
RM
73232010-08-01 Robert Millan <rmh@gnu.org>
7324
7325 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
7326 (grub_find_zpool_from_mount_point): New function prototypes.
7327
7328 * kern/emu/getroot.c [HAVE_GETFSSTAT]: Move `<sys/mount.h>' to ...
7329 * kern/emu/misc.c [HAVE_GETFSSTAT]: ... here.
7330
7331 * kern/emu/getroot.c (find_mount_point_from_dir): Move to ...
7332 * kern/emu/misc.c (grub_find_mount_point_from_dir): ... this. Remove
7333 `static' attribute.
7334
7335 * kern/emu/getroot.c (find_root_device_from_libzfs): Split code for
7336 finding zpool from mount point into ...
7337 * kern/emu/misc.c (grub_find_zpool_from_mount_point): ... this.
7338
7339 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): When
7340 requested path is part of a ZFS pool, use
7341 grub_find_zpool_from_mount_point() to detect its filesystem name,
7342 and generate a path with `/fsname@path' syntax.
7343
deb0caa3
RM
73442010-08-01 Robert Millan <rmh@gnu.org>
7345
7346 Prevent accidental use of uninitialized libzfs_handle.
7347
7348 * util/grub-probe.c (main): Move grub_util_init_libzfs() call to ...
7349 * kern/emu/getroot.c (find_root_device_from_libzfs): ... here.
7350 * util/misc.c (grub_util_init_libzfs): Make this function idempotent.
7351
ce04ef47
CW
73522010-08-01 Colin Watson <cjwatson@ubuntu.com>
7353
7354 * util/grub.d/20_linux_xen.in: Don't use UUID for LVM root (matching
7355 util/grub.d/10_linux.in). Fixes Debian bug #591093.
7356
ebf53056
RM
73572010-08-01 Robert Millan <rmh@gnu.org>
7358
7359 * kern/emu/getroot.c: Include `<grub/util/misc.h>'.
8687cf07 7360
3710bb6b
RM
73612010-07-31 Robert Millan <rmh@gnu.org>
7362
7363 * util/grub.d/10_kfreebsd.in: Make module handling more generic.
7364
8072efeb
RM
73652010-07-31 Robert Millan <rmh@gnu.org>
7366
7367 * kern/emu/misc.c: Add missing license header.
7368
3169f4c7
RM
73692010-07-31 Robert Millan <rmh@gnu.org>
7370
7371 * configure.ac: Check for `libzfs.h' and `libnvpair.h'.
7372
7373 * include/grub/util/libnvpair.h: Include `<config.h>'.
7374 [HAVE_LIBNVPAIR_H]: Include `<libnvpair.h>' instead of
7375 declaring libnvpair prototypes ourselves.
7376 * include/grub/util/libzfs.h: Include `<config.h>'.
7377 [HAVE_LIBZFS_H]: Include `<libzfs.h>' instead of
7378 declaring libzfs prototypes ourselves.
7379
7380 (libzfs_handle): Moved to ...
7381 * include/grub/util/misc.h (libzfs_handle): ... here.
7382 Include `<grub/util/libzfs.h>'.
7383
c9a00aee
RM
73842010-07-30 Robert Millan <rmh@gnu.org>
7385
7386 * include/grub/emu/misc.h: Add missing license header.
7387
a184f9c8
RM
73882010-07-30 Robert Millan <rmh@gnu.org>
7389
7390 Enable `grub-probe -t device' resolution on ZFS.
7391
7392 * configure.ac: Check for getfsstat(), libzfs and libnvpair.
7393 * include/grub/util/libnvpair.h: New file.
7394 * include/grub/util/libzfs.h: New file.
7395
7396 * kern/emu/getroot.c: Include `<assert.h>' and `<error.h>'.
7397 [HAVE_LIBZFS && HAVE_LIBNVPAIR]: Include `<grub/util/libzfs.h>' and
7398 `<grub/util/libnvpair.h>'.
7399 [HAVE_GETFSSTAT]: Include `<sys/mount.h>'.
7400
7401 (find_mount_point_from_dir): New static function.
7402 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (find_root_device_from_libzfs): New
7403 function.
7404 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (grub_guess_root_device): Use
7405 find_root_device_from_libzfs() before ressorting to find_root_device().
7406
7407 * include/grub/util/misc.h (grub_util_init_libzfs): New function
7408 prototype.
7409 * util/misc.c: Include `<grub/util/libzfs.h>'.
7410 (grub_util_init_libzfs): New function.
7411 [HAVE_LIBZFS] (libzfs_handle): New global variable.
7412 [HAVE_LIBZFS] (fini_libzfs): New static function.
7413 (grub_util_init_libzfs): New function.
7414 * util/grub-probe.c (main): Call grub_util_init_libzfs().
7415
f7790cdd
RM
74162010-07-30 Robert Millan <rmh@gnu.org>
7417
7418 * include/grub/emu/misc.h (grub_make_system_path_relative_to_its_root)
7419 (xmalloc, xrealloc, xstrdup, xasprintf): Add
7420 `warn_unused_result' attribute.
7421 * include/grub/misc.h (grub_strdup, grub_strndup, grub_strlen)
7422 (grub_xasprintf, grub_xvasprintf): Likewise.
7423 * include/grub/emu/misc.h (xasprintf): Remove duplicate prototype.
7424
0806b63c
RM
74252010-07-29 Robert Millan <rmh@gnu.org>
7426
7427 * util/grub-probe.c (PRINT_FS_LABEL): New enum value.
7428 (probe): Handle `PRINT_FS_LABEL'.
7429 (main): Handle `-t fs_label'.
7430
9f841f5c
RM
74312010-07-29 Robert Millan <rmh@gnu.org>
7432
7433 * configure.ac: Remove grub-mkisofs checks.
7434
46371121
VS
74352010-07-28 Vladimir Serbinenko <phcoder@gmail.com>
7436
7437 * util/ieee1275/grub-install.in: Don't use empty grub_device.
7438 Reported by: Lennart Sorensen.
7439
74402010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
7441
7442 * util/grub.d/00_header.in: Remove compatibility with terminal.mod
7443 prior to terminal_input/terminal_output separation. It's been over 1.5
7444 years and those versions weren't widely deployed.
7445
a9600892
CW
74462010-07-22 Colin Watson <cjwatson@ubuntu.com>
7447
7448 * disk/raid.c (insert_array): Don't count named arrays when looking
7449 for unused array numbers.
697e053c 7450 Reported and tested by: Michael Guntsche.
a9600892 7451
c03507df
CW
74522010-07-20 Colin Watson <cjwatson@ubuntu.com>
7453
7454 * bus/usb/emu/usb.c (grub_usb_poll_devices): Add a dummy
7455 implementation of this so that grub-emu links again, with a note
7456 that this should support hotplugging in the future.
7457
b26f1c11
CW
74582010-07-20 Colin Watson <cjwatson@ubuntu.com>
7459
7460 * kern/emu/getroot.c (grub_util_get_grub_dev): Use xasprintf.
7461
efc9d7f1
CW
74622010-07-20 Colin Watson <cjwatson@ubuntu.com>
7463
7464 * disk/loopback.c (grub_cmd_loopback): Don't leak a grub_file_t
7465 handle on failure.
7466 (grub_loopback_close): Remove empty function.
7467 (grub_loopback_dev): Remove close method.
7468
dd8ff5c9
CW
74692010-07-20 Colin Watson <cjwatson@ubuntu.com>
7470
7471 Disable EFI cursor when the EFI console becomes inactive.
7472
7473 * term/efi/console.c (grub_efi_console_init): New function.
7474 (grub_efi_console_fini): New function.
7475 (grub_console_term_output): Register init and fini methods.
7476
5e3bec67
VS
74772010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
7478
7479 * tests/util/grub-shell-tester.in: Remove bashism and declare as
7480 sh script.
7481
afaec079
VS
74822010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
7483
7484 * disk/loopback.c (grub_loopback): Replace filename with file.
7485 (delete_loopback): Handle new semantics.
7486 (grub_cmd_loopback): Likewise.
7487 (grub_loopback_iterate): Likewise.
7488 (grub_loopback_close): Likewise.
7489
a6a11f3c
VS
74902010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
7491
7492 * util/i386/efi/grub-install.in: Revert to platform-specific behaviour
7493 with -p "".
7494 Reported by: Tito Keitel.
7495
64a638b0
VS
74962010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
7497
7498 * docs/grub.texi (Naming convention): Document new naming convention.
7499
ab8ba957
VS
75002010-07-20 Vadim Solomin <vadic052@gmail.com>
75012010-07-20 Colin Watson <cjwatson@ubuntu.com>
7502
7503 Generate device.map in something closer to the old ordering.
7504
7505 * util/deviceiter.c (struct device): New declaration.
7506 (compare_file_names): Rename to ...
7507 (compare_devices): ... this. Sort by kernel name in preference to
7508 the stable by-id name, but keep the latter as a fallback comparison.
7509 Update header comment.
7510 (grub_util_iterate_devices) [__linux__]: Construct and sort an array
7511 of `struct device' rather than of plain file names.
7512
a29d6a4b
TF
75132010-07-20 Thomas Frauendorfer <Thomas.Frauendorfer@googlemail.com>
7514
7515 * lib/i386/relocator_asm.S [! __x86_64__]: Don't try to disable amd64
7516 on i386.
7517
39d824e8
VS
75182010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
7519
7520 * commands/acpi.c (setup_common_tables): Use sizeof instead of
7521 hardcoding size.
7522 (setv1table): Likewise.
7523
f058276b
FZ
75242010-07-20 Colin Watson <cjwatson@ubuntu.com>
7525
7526 * disk/raid.c (insert_array): Use md/%s to name mdadm 1.x devices,
7527 removing the homehost if present.
7528 * kern/emu/getroot.c (get_mdadm_name) [__linux__]: New function.
7529 (grub_util_get_grub_dev): Use md/%s to name mdadm 1.x devices,
7530 removing the homehost if present.
7531 (grub_util_get_grub_dev) [__linux__]: Get the array name from mdadm
7532 if possible.
7533 * util/i386/pc/grub-setup.c (main): Handle md/* devices.
7534
7535 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Add start_sector
7536 parameter. Set its pointer target to 0.
7537 * disk/mdraid_linux.c (grub_mdraid_detect): Add start_sector
7538 parameter. Set its pointer target to 0 for 0.9 metadata, or to the
7539 `data_offset' value from the superblock for 1.x metadata.
7540 * disk/raid.c (grub_raid_read): Offset reads by the start sector of
7541 data on the device.
7542 (insert_array): Record the start sector of data on the device.
7543 (grub_raid_register): Pass start_sector parameters to
7544 grub_raid_list->detect and insert_array.
7545 * include/grub/raid.h (struct grub_raid_array): Add start_sector
7546 member.
7547 (struct grub_raid): Add start_sector parameter to `detect'.
7548
7549 * disk/mdraid_linux.c (struct grub_raid_super_1x): Remove
7550 __attribute__ ((packed)), leaving a comment.
7551 (grub_mdraid_detect): Split out 0.9 and 1.x detection to ...
7552 (grub_mdraid_detect_09): ... here and ...
7553 (grub_mdraid_detect_1x): ... here.
7554
75552010-07-20 Peter Henn <peter.henn@web.de>
7556
7557 * disk/mdraid_linux.c (grub_mdraid_detect): Fix calculation of 1.x
7558 chunk size and disk size, which are already given as sector counts
7559 as distinct from the 0.90 units. Fetch the correct device number
7560 from the role table instead of using the table index.
7561
75622010-07-20 Felix Zielcke <fzielcke@z-51.de>
7563
7564 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Set array->name to NULL.
7565 * disk/mdraid_linux.c (grub_raid_super_1x): New structure.
7566 (WriteMostly1): New macro.
7567 Set array->name to NULL for metadata format 0.90. Add support for
7568 metadata 1.x. Fix some comments.
7569 * disk/raid.c (): Add support for name based RAID arrays. Fix a
7570 few comments.
7571 * util/getroot.c (grub_util_get_grub_dev): Add support for
7572 /dev/md/name style devices.
7573
4b761da9
CW
75742010-07-20 Colin Watson <cjwatson@ubuntu.com>
7575
7576 * .bzrignore: Ignore 20_linux_xen.
7577
5771289a
CW
75782010-07-17 Colin Watson <cjwatson@ubuntu.com>
7579
7580 * util/import_unicode.py: Remove unnecessary imports.
7581
5dab68df
AN
75822010-07-17 Aleš Nesrsta <starous@volny.cz>
7583
7584 Hotplugging and USB hub support.
7585
7586 * bus/usb/ohci.c (grub_ohci_td): Add convenience fields.
7587 (grub_ohci): Likewise.
7588 (GRUB_OHCI_REG_CONTROL_BULK_ENABLE): New definition.
7589 (GRUB_OHCI_REG_CONTROL_CONTROL_ENABLE): Likewise.
7590 (GRUB_OHCI_RESET_CONNECT_CHANGE): Likewise.
7591 (GRUB_OHCI_CTRL_EDS): Likewise.
7592 (GRUB_OHCI_BULK_EDS): Likewise.
7593 (GRUB_OHCI_TDS): Likewise.
7594 (GRUB_OHCI_ED_ADDR_MASK): Likewise.
7595 (grub_ohci_ed_phys2virt): New function.
7596 (grub_ohci_virt_to_phys): Likewise.
7597 (grub_ohci_td_phys2virt): Likewise.
7598 (grub_ohci_td_virt2phys): Likewise.
7599 (grub_ohci_pci_iter): Allocate memory and don't wait for stable
7600 attachment.
7601 (grub_ohci_find_ed): New function.
7602 (grub_ohci_alloc_td): Likewise.
7603 (grub_ohci_free_td): Likewise.
7604 (grub_ohci_free_tds): Likewise.
7605 (grub_ohci_transfer): Use previously allocated memory.
7606 (grub_ohci_portstatus): Reset status changed bit.
7607 (grub_ohci_detect_dev): Supply status changed.
7608 (grub_ohci_fini_hw): Free memory.
7609 (grub_ohci_restore_hw): Reallocate memory.
7610 * bus/usb/uhci.c (grub_uhci_portstatus): Don't reset on disable.
7611 Reset status change.
7612 (grub_uhci_detect_dev): Supply status_change.
7613 * bus/usb/usb.c (attach_hooks): New var.
7614 (grub_usb_device_attach): New function.
7615 (grub_usb_register_attach_hook_class): Likewise.
7616 (grub_usb_unregister_attach_hook_class): Likewise.
7617 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Handle errors correctly.
7618 (grub_usb_add_hub): Reset connection changed bit.
7619 (attach_root_port): New function.
7620 (grub_usb_root_hub): Likewise.
7621 (poll_nonroot_hub): Likewise.
7622 (grub_usb_poll_devices): Likewise.
7623 * commands/usbtest.c (grub_cmd_usbtest): Poll devices before listing.
7624 * disk/usbms.c (grub_usbms_open): Use device hooks.
7625 (grub_usbms_iterate) :Poll devices.
7626 (grub_usbms_finddevs): Split into ...
7627 (grub_usbms_attach): ... this ...
7628 (grub_usbms_attach): ... and this.
7629 * include/grub/usb.h (grub_usb_controller_dev): Supply status_changed
7630 in detect_dev.
7631 (grub_usb_interface): New fields attached and detach_hook.
7632 (grub_usb_attach_hook_class): New type.
7633 (grub_usb_attach_desc): New struct.
7634 (grub_usb_register_attach_hook_class): New function.
7635 (grub_usb_unregister_attach_hook_class): Likewise.
7636 (grub_usb_poll_devices): Likewise.
7637 (grub_usb_device_attach): Likewise.
7638 * include/grub/usbtrans.h (GRUB_USB_HUB_FEATURE_C_CONNECTED): New const.
7639 (GRUB_USB_HUB_STATUS_C_CONNECTED): Likewise.
7640
3222efaf
VS
76412010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
7642
7643 * include/grub/bsdlabel.h (GRUB_PC_PARTITION_BSD_LABEL_WHOLE_DISK_PARTITION): New definition.
7644 * partmap/bsdlabel.c (bsdlabel_partition_map_iterate): Use FreeBSD
7645 delta determination style. Works with most NetBSD partitions too.
7646
139b714a
VS
76472010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
7648
7649 * kern/partition.c [GRUB_UTIL]: Add missing util/misc.h inclusion.
7650 * partmap/bsdlabel.c [GRUB_UTIL]: Likewise.
7651
986aad56
VS
76522010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
7653
7654 * disk/scsi.c (grub_scsi_open): Fix incorrect pointer dereference.
7655
99be513c
AB
76562010-07-14 Anton Blanchard <anton@samba.org>
7657
7658 * loader/powerpc/ieee1275/linux.c (grub_cmd_linux): Do not reject
7659 ET_DYN files.
7660
18075f62
GS
76612010-07-14 Grégoire Sutre <gregoire.sutre@gmail.com>
7662
7663 * Makefile.in: Use the substituted @USE_NLS@ instead of ENABLE_NLS.
7664
8d9a5b15
GS
76652010-07-14 Grégoire Sutre <gregoire.sutre@gmail.com>
7666
7667 * kern/partition.c (grub_partition_check_containment): New function to
7668 check that a partition is physically contained in a parent. Since
7669 offsets are relative (and non-negative), this reduces to checking that
7670 the partition ends before its parent.
7671 (grub_partition_map_probe): Discard out-of-range sub-partitions.
7672 (grub_partition_iterate): Likewise.
7673 * include/grub/partition.h (grub_partition_map): Slightly more detailed
7674 comments.
7675 * partmap/bsdlabel.c (bsdlabel_partition_map_iterate): Discard
7676 partitions that start before their parent, and add debug printfs.
7677
19563c25
CW
76782010-07-13 Colin Watson <cjwatson@ubuntu.com>
7679
7680 * Makefile.in (.SUFFIX): Spell correctly, as ...
7681 (.SUFFIXES): ... this. Fixes bug where `make foo' (where foo is a
7682 bare module name without `.mod', e.g. `test') tried to invoke a
7683 Modula-2 compiler.
7684
1a1f1e67
CW
76852010-07-13 Colin Watson <cjwatson@ubuntu.com>
7686
7687 * README: Point to the Info manual.
7688
811b0dca
JS
76892010-07-13 Jiro SEKIBA <jir@unicus.jp>
7690
7691 * fs/nilfs2.c: fix macro NILFS_2ND_SUPER_BLOCK to calculate
7692 2nd superblock position from partition size.
7693
e4f4eafc
CW
76942010-07-10 Colin Watson <cjwatson@ubuntu.com>
7695
7696 * Makefile.in (MAINTAINER_CLEANFILES): Remove
7697 unicode/UnicodeData.txt, unicode/BidiMirroring.txt, and
7698 unicode/ArabicShaping.txt again; these are inputs to autogen.sh, not
7699 outputs.
7700
4274c30f
VS
77012010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
7702
7703 Restructure SCSI .id handling.
7704 Reported and tested by: Aleš Nesrsta.
7705
7706 * disk/ata.c (grub_atapi_close): Removed. All users updated.
7707 (grub_atapi_dev): Changed .name to "ata". New field .id.
7708 * disk/usbms.c (grub_usbms_close): Removed. All users updated.
7709 (grub_usbms_dev): New field .id.
7710 * disk/scsi.c (grub_scsi_iterate): Generate name.
7711 (grub_scsi_open): Parse name.
7712 * include/grub/scsi.h (grub_make_scsi_id): New function.
7713 (grub_scsi_dev): Change iterate and open to number instead of naming
7714 busses. All users updated.
7715 (grub_scsi): Remove name. Add .bus.
7716
5bc24388
VS
77172010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
7718
7719 * commands/help.c (grub_cmd_help): Fix a typo.
7720
249975ba
VS
77212010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
7722
7723 * normal/term.c (put_glyphs_terminal): Fix state->num_lines counting.
7724 Reported and tested by: Colin Watson.
7725
3eaac1a1
VS
77262010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
7727
7728 * util/grub-mkrescue.in: Don't use tar GNU-ism since it's not necessary
7729 in this context.
7730
becce1b1
VS
77312010-07-07 Vladimir Serbinenko <phcoder@gmail.com>
7732
7733 * tests/util/grub-shell.in: Remove bashisms and declare as sh script.
7734
f7bf0918
CW
77352010-07-07 Colin Watson <cjwatson@ubuntu.com>
7736
7737 * term/gfxterm.c (grub_gfxterm_background_image_cmd): Fix
7738 indentation.
7739
0b0f9620
CW
77402010-07-06 Colin Watson <cjwatson@ubuntu.com>
7741
7742 * conf/common.rmk (grub_probe_SOURCES): Add disk/raid5_recover.c
7743 and disk/raid6_recover.c.
7744 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
7745 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Likewise.
7746
1e545469
CW
77472010-07-06 Colin Watson <cjwatson@ubuntu.com>
7748
7749 * term/gfxterm.c (repaint_schedulded): Rename to ...
7750 (repaint_scheduled): ... this. Update all callers.
7751 (repaint_was_schedulded): Rename to ...
7752 (repaint_was_scheduled): ... this. Update all callers.
7753
5357687a
CW
77542010-07-06 Colin Watson <cjwatson@ubuntu.com>
7755
7756 * util/deviceiter.c (grub_util_iterate_devices): Skip MD devices,
7757 which we expect to be handled by upper layers.
7758
29d7e783
BC
77592010-07-06 BVK Chaitanya <bvk.groups@gmail.com>
7760
7761 * bus/usb/usbhub.c: #include time.h header.
7762
37582066
CW
77632010-07-06 Colin Watson <cjwatson@ubuntu.com>
7764
7765 * fs/reiserfs.c (grub_reiserfs_iterate_dir): Zero out first byte of
7766 entry_name also for entries without stat blocks (e.g. ".."); fixes
7767 corruption of the first entry in a directory.
7768
c8c06953
CW
77692010-07-06 Colin Watson <cjwatson@ubuntu.com>
7770
7771 * util/grub.d/00_header.in: Process GRUB_THEME and GRUB_BACKGROUND
7772 after setting gfxterm as the active terminal. GRUB_BACKGROUND
7773 doesn't work otherwise.
7774
e75056f1
CW
77752010-07-05 Colin Watson <cjwatson@ubuntu.com>
7776
7777 * docs/grub.texi (Features): Update list of supported file systems.
7778 (GNU/Linux): Update for GRUB 2.
7779 (Serial terminal): Remove mention of --disable-serial, which was a
7780 GRUB Legacy configure option. Update instructions to use
7781 `terminal_input' and `terminal_output' rather than `terminal'.
7782 (Vendor power-on keys): Copy-edit. Add cross-references to `Simple
7783 configuration' and `Installing GRUB using grub-install'.
7784 (Menu entry editor): Update for GRUB 2.
7785 (terminfo): Add vt100-color, ieee1275, and dumb terminal types.
7786 Document new -a, -u, and -v options.
7787 (initrd): New section.
7788 (initrd16): New section.
7789 (linux): New section.
7790 (linux16): New section.
7791 (search): The `var' argument to `--set' is optional.
7792 (GRUB only offers a rescue shell): Go into a little more detail on
7793 drive ordering.
7794
5cf69151
CW
77952010-07-05 Colin Watson <cjwatson@ubuntu.com>
7796
7797 * Makefile.in: Set LINGUAS to empty if ENABLE_NLS is undefined.
7798
e3f90044
CW
77992010-07-05 Colin Watson <cjwatson@ubuntu.com>
7800
7801 * Makefile.in (MAINTAINER_CLEANFILES): Add unicode/UnicodeData.txt,
7802 unicode/BidiMirroring.txt, unicode/ArabicShaping.txt, and unidata.c.
7803
38d8f4f3
CW
78042010-07-05 Colin Watson <cjwatson@ubuntu.com>
7805
7806 * util/i386/pc/grub-setup.c (setup): Rename prefix to
7807 install_prefix, in line with install_dos_part and install_bsd_part.
7808 Add new prefix variable, which is copied to install_prefix after
7809 comparing core.img in memory with the one read from disk in the
7810 no-embedding case, and use that rather than overwriting
7811 install_prefix immediately when installing to a partition.
7812 Fixes Debian bug #586621; based on patches by Matt Kraai and M. Vefa
7813 Bicakci.
7814
57ebd41e
GS
78152010-07-04 Grégoire Sutre <gregoire.sutre@gmail.com>
7816
7817 * configure.ac: Avoid == in test command, it's not portable.
7818 * util/grub.d/30_os-prober.in: Likewise.
7819
cb7f64b2
CW
78202010-07-04 Colin Watson <cjwatson@ubuntu.com>
7821
7822 * kern/emu/getroot.c [__GNU__]: Include <sys/mman.h> for munmap.
7823
6b654bb0
GS
78242010-07-04 Grégoire Sutre <gregoire.sutre@gmail.com>
7825
7826 * util/i386/pc/grub-setup.c (setup): Do not embed when there are
7827 multiple (top-level) partmaps.
7828
72a2026d
VS
78292010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
7830
7831 * util/i386/efi/grub-install.in: Don't use empty grub_device.
fcda2a1f 7832 Reported by: Tino Keitel.
72a2026d 7833
df3eb88f
VS
78342010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
7835
7836 Bidi and diacritics support.
7837
7838 * Makefile.in (widthspec.bin): New target.
7839 (widthspec.h): Likewise.
7840 (TARGET_CFLAGS): Add -DHAVE_UNIFONT_WIDTHSPEC=1 if font was available.
7841 * autogen.sh: Generate unidata.c.
7842 * commands/cat.c (grub_cmd_cat): Don't use grub_putchar.
7843 * commands/ls.c (grub_ls_list_devices): Likewise.
7844 (grub_ls_list_files): Likewise.
7845 * commands/minicmd.c (grub_mini_cmd_cat): Likewise.
7846 (grub_mini_cmd_lsmod): Likewise.
7847 * commands/read.c: Likewise.
7848 * kern/corecmd.c (grub_core_cmd_ls): Likewise.
7849 * kern/rescue_reader.c (grub_rescue_read_line): Likewise.
7850 * lib/arg.c (grub_arg_show_help): Likewise.
7851 * lib/crypto.c (grub_password_get): Likewise.
7852 * normal/auth.c (grub_username_get): Likewise.
7853 * normal/misc.c (grub_normal_print_device_info): Likewise.
7854 * commands/help.c (grub_cmd_help): Use grub_unicode_aglomerate_comb.
7855 * conf/common.rmk (grub_mkfont_SOURCES): Add unidata.c.
7856 (gfxmenu_mod_SOURCES): Add gfxmenu/font.c.
7857 (normal/charset.c_DEPENDENCIES): New variable.
7858 (normal_mod_SOURCES): Add normal/charset.c and unidata.c.
7859 (pkglib_MODULES): Remove charset.mod.
7860 (charset_mod_SOURCES): Removed.
7861 (charset_mod_CFLAGS): Likewise.
7862 (charset_mod_LDFLAGS): Likewise.
7863 (pkglib_MODULES) [ieee1275]: Remove terminfo.mod.
7864 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Add term/terminfo.c
7865 and term/tparm.c.
7866 * conf/sparc64-ieee1275.rmk (kernel_img_SOURCES): Likewise.
7867 * conf/i386-ieee1275.rmk (kernel_img_SOURCES): Likewise.
7868 (kernel_img_HEADERS): Add terminfo.h.
7869 * font/font.c (ascii_glyph_lookup): Return NULL on failure.
7870 Fill ->font. Reverse ascii bitmaps.
7871 (grub_font_get_xheight): New function.
7872 * font/font.c (grub_font_get_string_width): Moved from here ...
7873 * gfxmenu/font.c (grub_font_get_string_width): ... here.
7874 * font/font.c (grub_font_draw_string): Moved from here ...
7875 * gfxmenu/font.c (grub_font_draw_string): ... here.
7876 * font/font.c (grub_font_dup_glyph): New function.
7877 (grub_font_blit_glyph): Likewise.
7878 (grub_font_blit_glyph_mirror): Likewise.
7879 (blit_comb): Likewise.
7880 (grub_font_construct_dry_run): Likewise.
7881 (grub_font_get_constructed_device_width): Likewise.
7882 (grub_font_construct_glyph): Likewise.
7883 * include/grub/charset.h (grub_ucs4_to_utf8): New proto.
7884 * include/grub/misc.h (grub_utf8_to_ucs4): Moved from here ...
7885 * include/grub/charset.h (grub_utf8_to_ucs4): ... here.
7886 * include/grub/font.h (GRUB_FONT_CODE_CHAR_MASK): New constant.
7887 (GRUB_FONT_CODE_RIGHT_JOINED): Likewise.
7888 (GRUB_FONT_CODE_LEFT_JOINED): Likewise.
7889 (grub_font_get_xheight): New proto.
7890 (grub_font_get_constructed_device_width): Likewise.
7891 (grub_font_construct_glyph): Likewise.
7892 * include/grub/font.h (grub_font_get_string_width): Moved from here ...
7893 * include/grub/gfxmenu_view.h (grub_font_get_string_width): ... here.
7894 * include/grub/font.h (grub_font_draw_string): Moved from here ...
7895 * include/grub/gfxmenu_view.h (grub_font_draw_string): ... here.
7896 * include/grub/i386/vga_common.h (grub_console_putchar): Moved from here..
7897 * include/grub/i386/pc/console.h (grub_console_putchar): ... here.
7898 * include/grub/i386/vga_common.h (grub_console_real_putchar): Removed.
7899 (grub_console_getcharwidth): Likewise.
7900 * include/grub/misc.h (grub_xputs): New proto.
7901 (grub_puts): Inlined.
7902 * include/grub/normal.h (grub_print_ucs4): Add margin specification.
7903 (grub_normal_get_line_counter): Removed.
7904 (grub_install_newline_hook): Likewise.
7905 (grub_normal_get_char_counter): New proto.
7906 (grub_normal_reset_more): Likewise.
7907 (grub_xputs_normal): Likewise.
7908 * include/grub/powerpc/ieee1275/console.h: Removed.
7909 * include/grub/sparc64/ieee1275/console.h: Likewise.
7910 * include/grub/term.h (GRUB_TERM_CODE_TYPE_MASK): New definition.
7911 (GRUB_TERM_CODE_TYPE_ASCII): Likewise.
7912 (GRUB_TERM_CODE_TYPE_CP437): Likewise.
7913 (GRUB_TERM_CODE_TYPE_UTF8_LOGICAL): Likewise.
7914 (GRUB_TERM_CODE_TYPE_UTF8_VISUAL): Likewise.
7915 (GRUB_TERM_CODE_TYPE_VISUAL_GLYPHS): Likewise.
7916 (grub_term_input): Pass reference to self. All users updated.
7917 (grub_term_output): Pass grub_unicode_glyph to putchar and getcharwidth.
7918 Pass reference to self. New fields normal_color, highlight_color and
7919 data. All users updated.
7920 (grub_putchar): Removed.
7921 (grub_putcode): Remove EXPORT_FUNC since it's not in kernel anymore.
7922 (grub_unicode_estimate_width): New function.
7923 (grub_term_getcharwidth): Add defaults.
7924 (GRUB_TERM_DEFAULT_NORMAL_COLOR): New definition.
7925 (GRUB_TERM_DEFAULT_HIGHLIGHT_COLOR): Likewise.
7926 (GRUB_TERM_DEFAULT_STANDARD_COLOR): Likewise.
7927 (grub_cls): Remove EXPORT_FUNC.
7928 (grub_setcolorstate): Inline.
7929 (grub_newline_hook): Removed.
7930 * include/grub/terminfo.h: Rewritten. All users updated.
7931 * include/grub/unicode.h: New file.
7932 * include/grub/video.h (grub_video_signed_rect): New type.
7933 * kern/emu/console.c (grub_console_highlight_color): Removed.
7934 (grub_console_normal_color): Likewise.
7935 (grub_console_standard_color): Made static.
7936 (grub_ncurses_putchar): Remove mapping.
7937 (grub_ncurses_getcharwidth): Removed.
7938 (grub_ncurses_term_output): Declare as GRUB_TERM_CODE_TYPE_ASCII.
7939 (grub_ncurses_setcolor): Removed.
7940 (grub_ncurses_getcolor): Likewise.
7941 * kern/i386/pc/startup.S (grub_console_real_putchar): Renamed to ...
7942 (grub_console_putchar): ... this.
7943 (grub_console_putchar): Handle argument difference.
7944 * kern/ieee1275/init.c (grub_machine_init): Split console_init into
7945 console_init_early and console_init_lately.
7946 * kern/sparc64/ieee1275/init.c (grub_machine_init): Likewise.
7947 * kern/misc.c (grub_puts): Removed.
7948 (grub_vprintf): Store UTF-8 string instead of outputting it directly.
7949 (grub_vsnprintf_real): Remove str = NULL support.
7950 * kern/misc.c (grub_utf8_to_ucs4): Move from here ...
7951 * normal/charset.c (grub_utf8_to_ucs4): ... here.
7952 * kern/term.c (grub_putcode): Renamed to ...
7953 (grub_putcode_dumb): ... this. Pass grub_unicode_glyph instead of code.
7954 (grub_putchar): Removed.
7955 (grub_xputs_dumb): New function.
7956 (grub_xputs): New variable.
7957 * lib/charset.c: Move from here ...
7958 * normal/charset.c: ... to here.
7959 (grub_ucs4_to_utf8): New function.
7960 (grub_ucs4_to_utf8_alloc): Use grub_ucs4_to_utf8.
7961 (join_types): New variable.
7962 (unpack_join): New function.
7963 (bidi_types): New variable.
7964 (unpack_bidi): New function.
7965 (get_bidi_type): Likewise.
7966 (get_join_type): Likewise.
7967 (is_mirrored): Likewise.
7968 (grub_unicode_get_comb_type): Likewise.
7969 (grub_unicode_estimate_width) [HAVE_UNIFONT_WIDTHSPEC]: Likewise.
7970 (is_type_after): Likewise.
7971 (grub_unicode_aglomerate_comb): Likewise.
7972 (bidi_line_wrap): Likewise.
7973 (grub_bidi_line_logical_to_visual): Likewise.
7974 (grub_bidi_logical_to_visual): Likewise.
7975 (grub_unicode_mirror_code): Likewise.
7976 (grub_unicode_shape_code): Likewise.
7977 * normal/cmdline.c (grub_cmdline_get): Reset more counter.
7978 Don't use grub_putchar.
7979 * normal/main.c (grub_normal_init_page): Use grub_putcode.
7980 (grub_normal_reader_init): Likewise.
7981 (grub_xputs_saved): New variable.
7982 (GRUB_MOD_INIT): Set grub_xputs.
7983 (GRUB_MOD_FINI): Restore grub_xputs.
7984 * normal/menu.c (grub_wait_after_message): Don't use grub_putchar.
7985 (menu_init): Avoid printing gfxmenu error.
7986 (show_menu): Use grub_normal_get_char_counter.
7987 * normal/menu_entry.c (update_screen): Fix out-of-array.
7988 (complete): Avoid NULL dereferencing.
7989 * grub_menu_entry_run (grub_menu_entry_run): Don't use putchar.
7990 * normal/menu_text.c (print_spaces): Removed.
7991 (grub_print_ucs4): Likewise.
7992 (grub_print_message_indented): Use grub_print_ucs4.
7993 (print_message): Use grub_putcode.
7994 (print_entry): Hanlde diacritics.
7995 * normal/term.c (term_state): New type.
7996 (grub_more_lines): Removed.
7997 (term_states): New variable.
7998 (grub_normal_line_counter): Renamed to ..
7999 (grub_normal_char_counter): ...this. All users updated.
8000 (grub_normal_get_line_counter): Renamed to ...
8001 (grub_normal_get_char_counter): ... this.
8002 (grub_normal_reset_more): New function.
8003 (process_newline): Removed.
8004 (print_more): New function.
8005 (grub_install_newline_hook): Removed.
8006 (map_code): New function.
8007 (grub_puts_terminal): Use grub_print_ucs4.
8008 (putglyph): New function.
8009 (putcode_real): Likewise.
8010 (grub_putcode): Use putcode_real.
8011 (get_maxwidth): New function.
8012 (get_startwidth): Likewise.
8013 (print_ucs4_terminal): Likewise.
8014 (find_term_state): Likewise.
8015 (put_glyphs_terminal): Likewise.
8016 (print_backlog): Likewise.
8017 (print_ucs4_real): Likewise.
8018 (grub_print_ucs4): Likewise.
8019 (grub_xputs_normal): Likewise.
8020 * term/efi/console.c (grub_console_putchar): Output diacritics.
8021 (grub_console_getcharwidth): Removed.
8022 (grub_console_term_output): Declare as GRUB_TERM_CODE_TYPE_UCS4_VISUAL.
8023 * term/gfxterm.c (clear_char): Free chars.
8024 (scroll_up): Avoid leaking memory.
8025 (grub_gfxterm_putchar): Support diacritics.
8026 (grub_video_term): Declare as GRUB_TERM_CODE_TYPE_UCS4_VISUAL.
8027 * term/i386/pc/console.c (grub_console_term_output): Declare as
8028 GRUB_TERM_CODE_TYPE_VGA.
8029 * term/i386/pc/vga.c (grub_vga_term): Declare as
8030 GRUB_TERM_CODE_TYPE_VISUAL_GLYPHS.
8031 * term/i386/pc/vga_text.c (grub_vga_text_term): Declare as
8032 GRUB_TERM_CODE_TYPE_VGA.
8033 * term/i386/vga_common.c (map_char): Removed.
8034 (grub_console_putchar): Likewise.
8035 (grub_console_getcharwidth): Likewise.
8036 * term/ieee1275/ofconsole.c: Simplify using terminfo.
8037 (colors): Reordered to match terminfo.
8038 (grub_ofconsole_normal_color): Removed.
8039 (grub_ofconsole_writeesc): Likewise.
8040 (grub_ofconsole_highlight_color): Likewise.
8041 (grub_ofconsole_getcharwidth): Likewise.
8042 (grub_ofconsole_setcolorstate): Likewise.
8043 (grub_ofconsole_setcolor): Likewise.
8044 (grub_ofconsole_getcolor): Likewise.
8045 (grub_ofconsole_readkey): Renamed to ...
8046 (readkey): ... this. Remove escape sequence handling. Return -1 on no
8047 key.
8048 (grub_ofconsole_checkkey): Removed.
8049 (grub_ofconsole_getkey): Likewise.
8050 (grub_ofconsole_getxy): Likewise.
8051 (grub_ofconsole_gotoxy): Likewise.
8052 (grub_ofconsole_cls): Likewise.
8053 (grub_ofconsole_refresh): Likewise.
8054 (grub_ofconsole_terminfo_input): New struct.
8055 (grub_ofconsole_terminfo_output): Likewise.
8056 (grub_ofconsole_term_input): Use terminfo.
8057 (grub_ofconsole_term_output): Likewise.
8058 (grub_console_init): Split into ...
8059 (grub_console_init_early): ...this and ...
8060 (grub_console_init_lately): ...this. Use terminfo.
8061 (grub_ofconsole_putchar): Renamed to ...
8062 (put): ... this. Remove mapping.
8063 (grub_ofconsole_term_output): Declare as GRUB_TERM_CODE_TYPE_ASCII.
8064 * term/serial.c: Simplify using terminfo.
8065 (xpos): Removed.
8066 (ypos): Likewise.
8067 (keep_track): Likewise.
8068 (registered): Likewise.
8069 (input_buf): Likewise.
8070 (npending): Likewise.
8071 (serial_translate_key_sequence): Likewise.
8072 (fill_input_buf): Likewise.
8073 (grub_serial_checkkey): Likewise.
8074 (grub_serial_getkey): Likewise.
8075 (grub_serial_getxy): Likewise.
8076 (grub_serial_gotoxy): Likewise.
8077 (grub_serial_putchar): Likewise.
8078 (grub_serial_cls): Likewise.
8079 (grub_serial_setcolorstate): Likewise.
8080 (grub_serial_setcursor): Likewise.
8081 (serial_hw_init): Use serial_hw_fetch.
8082 (grub_serial_terminfo_input): New variable.
8083 (grub_serial_terminfo_output): Likewise.
8084 (grub_serial_term_input): Use terminfo.
8085 (grub_serial_term_output): Likewise.
8086 * term/terminfo.c (putstr): Use put.
8087 (grub_terminfo_all_free): New function
8088 (grub_terminfo_set_current): New types vt100-color, ieee1275 and dumb.
8089 (grub_terminfo_output_register): New function.
8090 (grub_terminfo_output_unregister): Likewise.
8091 (grub_terminfo_getxy): Likewise.
8092 (grub_terminfo_readkey): Likewise.
8093 (grub_terminfo_checkkey): Likewise.
8094 (grub_terminfo_getkey): Likewise.
8095 (grub_terminfo_input_init): Likewise.
8096 (print_terminfo): Likewise.
8097 (grub_cmd_terminfo): Handle encoding.
8098 (grub_terminfo_gotoxy): Track position.
8099 (grub_terminfo_cls): Likewise.
8100 (grub_terminfo_putchar): Likewise.
8101 (grub_terminfo_setcolorstate): Handle colors
8102 (grub_terminfo_cursor_on): This ...
8103 (grub_terminfo_cursor_off): ... and this merged into ...
8104 (grub_terminfo_setcursor): ... this.
8105 * term/tparm.c (grub_terminfo_tparm): Avoid NULL dereferencing.
8106 * unicode/ArabicShaping.txt: New file (imported from Unicode).
8107 * unicode/BidiMirroring.txt: Likewise.
8108 * unicode/UnicodeData.txt: Likewise.
8109 * unicode/COPYING: Likewise.
8110 * util/grub-editenv.c (grub_putchar): Removed.
8111 (grub_xputs_real): New function.
8112 (grub_xputs): New variable.
8113 * util/grub-fstest.c (grub_putchar): Removed.
8114 (grub_xputs_real): New function.
8115 (grub_xputs): New variable.
8116 * util/grub-mkdevicemap.c (grub_putchar): Removed.
8117 (grub_xputs_real): New function.
8118 (grub_xputs): New variable.
8119 * util/grub-probe.c (grub_putchar): Removed.
8120 (grub_xputs_real): New function.
8121 (grub_xputs): New variable.
8122 * util/grub-script-check.c (grub_putchar): Removed.
8123 (grub_xputs_real): New function.
8124 (grub_xputs): New variable.
8125 * util/i386/pc/grub-setup.c (grub_putchar): Removed.
8126 (grub_xputs_real): New function.
8127 (grub_xputs): New variable.
8128 * util/import_unicode.py: New file.
8129 * util/grub-mkfont.c (ft_errmsgs): New array.
8130 (grub_glyph_info): Make bitmap a pointer.
8131 (file_formats): New type WIDTH_SPEC.
8132 (grub_font_info): New members glyphs_unsorted, glyphs_sorted, num_glyphs.
8133 (options): Add width-spec.
8134 (help): Likewise.
8135 (add_char): Renamed to ...
8136 (add_glyph): ... this.
8137 (add_glyph): Use index. Show freetype errors. Cut blank space at borders.
8138 (glyph_replace): New type.
8139 (subst_rightjoin), (subst_leftjoin), (subst_medijoin): New variables.
8140 (add_char): New function.
8141 (add_subst): Likewise.
8142 (process_cursive): Likewise.
8143 (add_font): Handle GSUB.
8144 (write_font_width_spec): New function.
8145 (main): Sort glyphs.
8146 * commands/minicmd.c (grub_mini_cmd_clear): Moved from here ...
8147 * normal/main.c (grub_mini_cmd_clear): ..here. All users updated.
8148 * kern/term.c (grub_cls): Moved from here...
8149 * normal/term.c (grub_cls): ... here.
8150
50f0bcda
CW
81512010-07-02 Colin Watson <cjwatson@ubuntu.com>
8152
8153 * include/grub/types.h: Define the C99-style PRIxGRUB_SIZE macro,
8154 suitable for using within the format argument of printf when
8155 converting grub_size_t.
8156 * disk/usbms.c (grub_usbms_transfer): Use PRIxGRUB_SIZE rather than
8157 "x" to convert grub_size_t arguments.
8158
40372103
VS
81592010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
8160
8161 * gfxmenu/gui_list.c (draw_menu): Use viewport to simplify code and fix
8162 too long captions.
8163 (list_get_minimal_size): Take selection box into account.
8164
942a10c7
VS
81652010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
8166
8167 * font/font.c (grub_font_get_glyph_with_fallback): Avoid dereferencing
8168 NULL font.
8169
2bdb2892
CW
81702010-07-02 Colin Watson <cjwatson@ubuntu.com>
8171
8172 * util/deviceiter.c (grub_util_iterate_devices): Skip device-mapper
8173 devices when iterating over /dev/disk/by-id; they will be handled
8174 later if appropriate, which they aren't always (e.g. LVM).
8175
e03ed6c1
CW
81762010-07-02 Colin Watson <cjwatson@ubuntu.com>
8177
8178 * include/grub/misc.h (grub_reboot): Declare as noreturn.
8179 * kern/efi/efi.c (grub_reboot): Don't return, even if reset_system
8180 fails.
8181 (grub_halt): Likewise.
8182 * kern/ieee1275/openfw.c (grub_reboot): Don't return, even if
8183 reset-all fails.
8184 (grub_halt): Don't return, even if all of shut-down, power-off, and
8185 poweroff fail.
8186
47695765
CW
81872010-07-02 Colin Watson <cjwatson@ubuntu.com>
8188
8189 * kern/efi/init.c (grub_efi_init): set_watchdog_timer takes four
8190 arguments, not three.
8191
507736c8
CW
81922010-07-02 Colin Watson <cjwatson@ubuntu.com>
8193
8194 * util/grub-mkconfig_lib.in (uses_abstraction): New function.
8195 * util/grub.d/10_linux.in: Use it to check for LVM, so that
8196 LVM-on-RAID is handled correctly.
8197
e3c8cd37
CW
81982010-07-02 Colin Watson <cjwatson@ubuntu.com>
8199
8200 * docs/grub.texi (Changes from GRUB Legacy): New section.
8201 (Future): Fix typo.
8202
8d4a2fec
CW
82032010-07-02 Colin Watson <cjwatson@ubuntu.com>
8204
8205 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Sometimes
8206 grub.d/README accidentally ends up executable for one reason or
8207 another. Ignore it.
8208
1c4827be
VS
82092010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
8210
8211 * partmap/gpt.c (MAX_SECTOR_LOG): New definition.
8212 (gpt_partition_map_iterate): Support non-512B sectors.
8213
d9a0c941
VS
82142010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
8215
8216 * kern/efi/init.c (grub_efi_init): Disable watchdog.
8217 Tested by: Seth Goldberg.
8218
48f27e87
VS
82192010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
8220
8221 * loader/multiboot.c (grub_multiboot_boot) [GRUB_USE_MULTIBOOT2]:
8222 Properly align mbi.
8223 Reported by: Seth Goldberg.
8224
b0c4f956
VS
82252010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
8226
8227 * util/grub-mkrescue.in: Avoid module duplication.
8228
105a2e8c
SF
82292010-07-01 Sean Finney <seanius@seanius.net>
8230
8231 * util/grub.d/10_linux.in: Don't use UUID for LVM root.
8232
5944958c
SF
82332010-07-01 Sean Finney <seanius@seanius.net>
8234
8235 * disk/lvm.c (grub_lvm_scan_device): Skip snapshots.
8236
82372010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
8238
8239 * disk/lvm.c (grub_lvm_checkvalue): New function.
8240 (grub_lvm_check_flag): Likewise.
8241
b79889ba
RM
82422010-07-01 Robert Millan <rmh@gnu.org>
8243
8244 * kern/emu/hostdisk.c (convert_system_partition_to_system_disk):
8245 Support 'p' as partition separator on kernel of FreeBSD (used
8246 with GPT labels).
8247 (grub_util_biosdisk_get_grub_dev): Likewise.
8248
ec1d04f1
VS
82492010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
8250
8251 Yeeloong firmware port.
8252
8253 * boot/mips/yeeloong/fwstart.S: New file.
8254 * bus/cs5536.c (gpiodump): New const.
8255 (set_io_space): New function.
8256 (set_iod): Likewise.
8257 (set_p2d): Likewise.
8258 (grub_cs5536_init_geode): Likewise.
8259 * commands/mips/yeeloong/lsspd.c: New file.
8260 * conf/mips-qemu-mips.rmk (pkglib_MODULES): Add serial.mod.
8261 (serial_mod_SOURCES): New variable.
8262 (serial_mod_CFLAGS): Likewise.
8263 (serial_mod_LDFLAGS): Likewise.
8264 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Add term/serial.c,
8265 term/terminfo.c and term/tparm.c.
8266 (pkglib_IMAGES): Add fwstart.img.
8267 (fwstart_img_SOURCES): New variable.
8268 (fwstart_img_CFLAGS): Likewise.
8269 (fwstart_img_ASFLAGS): Likewise.
8270 (fwstart_img_LDFLAGS): Likewise.
8271 (fwstart_img_FORMAT): Likewise.
8272 (pkglib_MODULES): Add lsspd.mod.
8273 (lsspd_mod_SOURCES): New variable.
8274 (lsspd_mod_CFLAGS): Likewise.
8275 (lsspd_mod_LDFLAGS): Likewise.
8276 (pkglib_MODULES): Add halt.mod.
8277 (halt_mod_SOURCES): New variable.
8278 (halt_mod_CFLAGS): Likewise.
8279 (halt_mod_LDFLAGS): Likewise.
8280 * conf/mips.rmk (pkglib_MODULES): Remove serial.mod.
8281 (serial_mod_SOURCES): Removed.
8282 (serial_mod_CFLAGS): Likewise.
8283 (serial_mod_LDFLAGS): Likewise.
8284 * disk/ata.c (check_device): New function.
8285 (grub_ata_device_initialize): Use check_device.
8286 (grub_ata_iterate): Recheck devices.
8287 (grub_ata_open): Likewise.
8288 (grub_atapi_iterate): Likewise.
8289 (grub_atapi_open): Likewise.
8290 * include/grub/ata.h (GRUB_ATA_CH0_PORT1): New macro.
8291 (GRUB_ATA_CH1_PORT1): Likewise.
8292 (GRUB_ATA_CH0_PORT2): Likewise.
8293 (GRUB_ATA_CH1_PORT2): Likewise.
8294 * include/grub/mips/loongson.h: New file.
8295 * include/grub/mips/yeeloong/ec.h: Likewise.
8296 * include/grub/mips/yeeloong/serial.h (GRUB_MACHINE_SERIAL_PORT): New definition.
8297 (GRUB_MACHINE_SERIAL_DIVISOR_115200): Likewise.
8298 (GRUB_MACHINE_SERIAL_PORTS) [ASM_FILE]: Remove.
8299 * include/grub/misc.h (grub_halt): Declare as noreturn.
8300 * include/grub/serial.h (UART_ENABLE_FIFO): Renamed to ...
8301 (UART_ENABLE_FIFO_TRIGGER14): ... this. All users updated.
8302 (UART_ENABLE_FIFO_TRIGGER1): New definition.
8303 (UART_ENABLE_DTRRTS): Likewise.
8304 (UART_ENABLE_MODEM): Removed.
8305 (UART_ENABLE_OUT2): New const.
8306 * include/grub/term.h (grub_term_register_input_active): New function.
8307 (grub_term_register_output_active): Likewise.
8308 * kern/mips/startup.S [GRUB_MACHINE_MIPS_YEELOONG]: Handle 0xffffffff
8309 argument.
8310 * kern/mips/yeeloong/init.c (grub_get_rtc): Macroify.
8311 (init_pci): New function.
8312 (grub_machine_init): Execute platform init when firmware. Init serial.
8313 (grub_halt): Implement.
8314 (grub_exit): Likewise.
8315 (grub_reboot): Likewise.
8316 * term/serial.c (serial_hw_init): Update macros.
8317 [GRUB_MACHINE_MIPS_YEELOONG]: Init on startup.
8318 * util/grub-mkimage.c (image_target_desc): New id IMAGE_YEELOONG_FLASH.
8319 (image_targets): New target mipsel-yeeloong-flash.
8320 (generate_image): Support IMAGE_YEELOONG_FLASH.
8321 * video/sm712.c (GRUB_SM712_TOTAL_MEMORY_SPACE): New definition.
8322 (grub_video_sm712_setup): Init card.
8323 (grub_video_sm712_set_palette): Removed.
8324 * video/sm712_init.c: New file.
8325
ff4a70d2
CW
83262010-06-30 Colin Watson <cjwatson@ubuntu.com>
8327
8328 * Makefile.in (install-local): Temporarily prepend $(builddir) to
8329 PATH when running help2man and then run it on the unadorned
8330 executable names, rather than passing $(builddir)/* paths to
8331 help2man. This avoids the build directory ending up in generated
8332 manual pages.
8333
1246efeb
CW
83342010-06-29 Colin Watson <cjwatson@ubuntu.com>
8335
8336 * util/grub-mkconfig.in: Use 'set -e' rather than '#! /bin/sh -e',
8337 to avoid accidents when debugging with 'sh -x'.
8338 * util/grub-mkrescue.in: Likewise.
8339 * util/grub.d/00_header.in: Likewise.
8340 * util/grub.d/10_hurd.in: Likewise.
8341 * util/grub.d/10_kfreebsd.in: Likewise.
8342 * util/grub.d/10_linux.in: Likewise.
8343 * util/grub.d/10_netbsd.in: Likewise.
8344 * util/grub.d/10_windows.in: Likewise.
8345 * util/grub.d/20_linux_xen.in: Likewise.
8346 * util/grub.d/30_os-prober.in: Likewise.
8347 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
8348
1ba9b889
CW
83492010-06-29 Colin Watson <cjwatson@ubuntu.com>
8350
8351 * commands/cat.c (grub_cmd_cat): Fix buffer overrun if '\r' is the
8352 last character in the buffer.
8353 Reported by: Vladimir Serbinenko.
8354
dccaf99d
RM
83552010-06-29 Robert Millan <rmh@gnu.org>
8356
8357 * docs/grub.texi (Simple configuration): Document ${GRUB_BADRAM}.
8358 (Command-line and menu entry commands): Document `badram' command.
8359
d500ed12
RM
83602010-06-28 Robert Millan <rmh@gnu.org>
8361
8362 * util/grub-mkconfig.in: Export `GRUB_BADRAM' variable.
8363 * util/grub.d/00_header.in: When `GRUB_BADRAM' is set, issue badram
8364 command using ${GRUB_BADRAM} as parameter.
8365
20bc84a6
CW
83662010-06-28 Colin Watson <cjwatson@ubuntu.com>
8367
8368 * docs/grub.texi (Device map): New section.
8369 (Themes): New section (stub).
8370 * Makefile.in (docs/grub.info): The info documentation now builds
8371 without errors. Make sure it stays that way.
8372
4045dee1
VS
83732010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
8374
8375 Use normal parser for menu entries.
8376 Reported by: Thomas Frauendorfer
8377
8378 * include/grub/parser.h (grub_parser_execute): Don't export.
8379 * normal/menu.c (grub_menu_execute_entry_real): New function.
8380 (grub_menu_execute_entry): Use grub_menu_execute_entry_real.
8381
bca58c7b
CW
83822010-06-28 Colin Watson <cjwatson@ubuntu.com>
8383
8384 * docs/grub.texi (Embedded configuration): New section (replacing
8385 old "Preset Menu" stub).
8386 (Images): New section.
8387 (configfile): Note that any menu entries defined in `file' are shown
8388 immediately.
8389
dec53e63
JT
83902010-06-28 Josh Triplett <josh@joshtriplett.org>
8391
8392 * mmap/i386/pc/mmap_helper.S: Set CF on return.
8393
c06e40f7
CW
83942010-06-28 Colin Watson <cjwatson@ubuntu.com>
8395
8396 * util/grub-install.in: Add --debug-image= option.
8397
cb88052b
CW
83982010-06-28 Colin Watson <cjwatson@ubuntu.com>
8399
8400 Change grub-mkdevicemap to emit /dev/disk/by-id/ names where
8401 possible on Linux.
8402
8403 * util/deviceiter.c (check_device): Rename to ...
8404 (check_device_readable_unique): ... this. Update all callers.
8405 Maintain and check a list of which devices (by canonicalized name)
8406 have already been seen.
8407 (clear_seen_devices): New function.
8408 (compare_file_names) [__linux__]: New function.
8409 (grub_util_iterate_devices): Clear the list of seen devices on exit
8410 and (just in case) on entry.
8411 (grub_util_iterate_devices) [__linux__]: Iterate over non-partition
8412 devices in /dev/disk/by-id/, in sorted order. Remove DM-RAID
8413 seen-devices list, superseded by general code in check_device.
8414
bbe34652
CW
84152010-06-28 Colin Watson <cjwatson@ubuntu.com>
8416
8417 * commands/cat.c (options): New variable.
8418 (grub_cmd_cat): Parse options. If the --dos option is given, print
8419 DOS-style "\r\n" line endings as simple newlines (Debian bug
8420 #586358).
8421 (GRUB_MOD_INIT): Use extcmd.
8422 (GRUB_MOD_FINI): Likewise.
8423 * docs/grub.texi (cat): Document --dos.
8424
412e09f3
VS
84252010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
8426
8427 XEN with Linux grub-mkconfig support.
8428
8429 * conf/common.rmk (grub-mkconfig_SCRIPTS) [linux]: Add 20_linux_xen.
8430 * util/grub-mkconfig.in: Export GRUB_CMDLINE_XEN and
8431 GRUB_CMDLINE_XEN_DEFAULT.
8432 * util/grub.d/20_linux_xen.in: New file.
8433
53f3ef38 84342010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
994b0c27
VS
8435
8436 Initialise VGA video on qemu ourselves.
8437
8438 * boot/i386/qemu/boot.S: Don't call 0xc000.
8439 * conf/i386-qemu.rmk (kern/i386/qemu/init.c_DEPENDENCIES): New variable.
8440 (kernel_img_SOURCES): Add kern/i386/qemu/init.c and bus/pci.c.
8441 (kernel_img_HEADERS): Add pci.h.
8442 * conf/i386.rmk (pkglib_MODULES) [qemu]: Remove pci.mod.
8443 * configure.ac: Force unifont on qemu and yeeloong.
8444 * include/grub/i386/qemu/kernel.h (grub_qemu_init_cirrus): New proto.
8445 (grub_vga_palette_write): Use correct register.
8446 * kern/i386/coreboot/init.c (grub_machine_init) [GRUB_MACHINE_QEMU]:
8447 Call grub_qemu_init_cirrus.
8448 * kern/i386/qemu/init.c: New file.
8449 * term/i386/pc/vga_text.c (inc_y): Never read outside the screen.
8450
8451 * commands/videotest.c (grub_cmd_videotest): Handle double buffering.
8452
c75be4fb
PR
84532010-06-26 Pavel Roskin <proski@gnu.org>
8454
8455 * util/grub.d/10_linux.in: Add support for initrd images on Fedora
8456 13.
8457
d8034603
CW
84582010-06-26 Colin Watson <cjwatson@ubuntu.com>
8459
8460 * docs/grub.texi (Simple configuration): Explain that
8461 GRUB_DISABLE_LINUX_RECOVERY and GRUB_DISABLE_NETBSD_RECOVERY must be
8462 set to `true' to disable their respective recovery entries, not
8463 merely set.
8464
3fa06487
CW
84652010-06-26 Colin Watson <cjwatson@ubuntu.com>
8466
8467 Make the `source' command slightly faster.
8468
8469 * normal/main.c (grub_normal_execute): Don't re-read list files when
8470 nested.
8471
e9b29642
CW
84722010-06-23 Colin Watson <cjwatson@ubuntu.com>
8473
8474 * loader/i386/multiboot_mbi.c (retrieve_video_parameters): Set red
8475 field position and mask size to red fields from mode_info, not
8476 green.
8477 * loader/multiboot_mbi2.c (retrieve_video_parameters): Likewise.
8478 Remove redundant tag->common.framebuffer_type assignment.
8479 Reported by: Seth Goldberg.
8480
e726542f
CW
84812010-06-23 Colin Watson <cjwatson@ubuntu.com>
8482
8483 Sync up other versions of the Linux loader with Robert Millan's
8484 change of 2010-01-09, "Make loader output a bit more user-friendly".
8485
8486 * loader/i386/efi/linux.c (grub_linux_boot): Move debug info to
8487 grub_dprintf().
8488 (grub_cmd_linux): Likewise.
8489 (grub_cmd_initrd): Likewise.
8490 * loader/i386/ieee1275/linux.c (grub_cmd_linux): Likewise.
8491 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
8492
d6e98a17
CW
84932010-06-21 Colin Watson <cjwatson@ubuntu.com>
8494
8495 * kern/efi/mm.c (grub_efi_mm_init): Handle systems with memory maps
8496 larger than MEMORY_MAP_SIZE.
8497
14d3f08e
BC
84982010-06-21 BVK Chaitanya <bvk.groups@gmail.com>
8499
8500 Fix parallel build.
8501
8502 * conf/common.rmk: Add grub_script.tab.h as a grub-script-check
8503 dependency.
8504 * script/parser.y: #include grub_script.tab.h header.
8505
4f9613a3
VS
85062010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
8507
8508 Support >3GiB and <16MiB RAM in i386-qemu.
8509
8510 * kern/i386/qemu/mmap.c (QEMU_CMOS_MEMSIZE2_HIGH): New const.
8511 (QEMU_CMOS_MEMSIZE2_LOW): Likewise.
8512 (grub_lower_mem): Removed.
8513 (grub_upper_mem): Likewise.
8514 (mem_size): Made static.
8515 (above_4g): New variable.
8516 (grub_machine_mmap_init): Detect small mem_size and above_4g.
8517 (grub_machine_mmap_iterate): Order in ascending order and add above_4g
8518 support.
8519
05e51879
VS
85202010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
8521
8522 Cirrus 5446 and Bochs video cards support.
8523
8524 * conf/i386.rmk (pkglib_MODULES): Add video_cirrus.mod and
8525 video_bochs.mod
8526 (video_cirrus_mod_SOURCES): New variable.
8527 (video_cirrus_mod_CFLAGS): Likewise.
8528 (video_cirrus_mod_LDFLAGS): Likewise.
8529 (video_bochs_mod_SOURCES): Likewise.
8530 (video_bochs_mod_CFLAGS): Likewise.
8531 (video_bochs_mod_LDFLAGS): Likewise.
8532 * include/grub/vga.h: New file.
8533 * include/grub/video_fb.h (grub_video_fb_doublebuf_blit_init): Removed.
8534 (grub_video_fb_set_page_t): New type.
8535 (grub_video_fb_setup): New prototype.
8536 (grub_video_fb_swap_buffers): Likewise.
8537 (grub_video_fb_get_info_and_fini): Likewise.
8538 * term/i386/pc/vga_text.c (CRTC_ADDR_PORT): Moved to include/grub/vga.h.
8539 (CRTC_DATA_PORT): Likewise.
8540 (CRTC_CURSOR): Likewise.
8541 (CRTC_CURSOR_ADDR_HIGH): Likewise.
8542 (CRTC_CURSOR_ADDR_LOW): Likewise.
8543 (CRTC_CURSOR_DISABLE): Likewise.
8544 (update_cursor): Use grub_vga_cr_write.
8545 (grub_vga_text_setcursor): Likewise.
8546 * video/bochs.c: New file.
8547 * video/fb/video_fb.c (render_target): Moved into framebuffer variable.
8548 (palette): Likewise.
8549 (palette_size): Likewise.
8550 (framebuffer): New variable.
8551 (grub_video_fb_init): Use 'framebuffer'.
8552 (grub_video_fb_fini): Likewise.
8553 (grub_video_fb_get_info): Likewise.
8554 (grub_video_fb_get_palette): Likewise.
8555 (grub_video_fb_set_palette): Likewise.
8556 (grub_video_fb_set_viewport): Likewise.
8557 (grub_video_fb_get_viewport): Likewise.
8558 (grub_video_fb_map_color): Likewise.
8559 (grub_video_fb_map_rgb): Likewise.
8560 (grub_video_fb_map_rgba): Likewise.
8561 (grub_video_fb_unmap_color): Likewise.
8562 (grub_video_fb_unmap_color_int): Likewise.
8563 (grub_video_fb_fill_rect): Likewise.
8564 (grub_video_fb_blit_bitmap): Likewise.
8565 (grub_video_fb_blit_render_target): Likewise.
8566 (grub_video_fb_scroll): Likewise.
8567 (grub_video_fb_create_render_target): Likewise.
8568 (grub_video_fb_doublebuf_blit_init): Likewise.
8569 (grub_video_fb_set_active_render_target): Handle doublebuffering.
8570 (doublebuf_pageflipping_update_screen): New function.
8571 (doublebuf_pageflipping_init): Likewise.
8572 (grub_video_fb_setup): Likewise.
8573 (grub_video_fb_swap_buffers): Likewise.
8574 (grub_video_fb_get_info_and_fini): Likewise.
8575 * video/i386/pc/vbe.c (framebuffer): Remove all doublebuffering fields.
8576 All users updated.
8577 (doublebuf_pageflipping_commit): Restructured into ...
8578 (doublebuf_pageflipping_set_page): ... this.
8579 (doublebuf_pageflipping_update_screen): Removed.
8580 (doublebuf_pageflipping_init): Likewise.
8581 (double_buffering_init): Likewise.
8582 (grub_video_vbe_setup): Use grub_video_fb_setup.
8583 (grub_video_vbe_swap_buffers): Removed.
8584 (grub_video_vbe_set_active_render_target): Likewise.
8585 (grub_video_vbe_get_active_render_target): Likewise.
8586 (grub_video_vbe_get_info_and_fini): Use grub_video_fb_get_info_and_fini.
8587 (grub_video_vbe_adapter): Use grub_video_fb_swap_buffers,
8588 grub_video_fb_set_active_render_target and
8589 grub_video_fb_get_active_render_target.
8590 * video/i386/pc/vga.c (SEQUENCER_ADDR_PORT): Move to include/grub/vga.h.
8591 (SEQUENCER_DATA_PORT): Likewise.
8592 (MAP_MASK_REGISTER): Likewise.
8593 (CRTC_ADDR_PORT): Likewise.
8594 (CRTC_DATA_PORT): Likewise.
8595 (START_ADDR_HIGH_REGISTER): Likewise.
8596 (START_ADDR_LOW_REGISTER): Likewise.
8597 (GRAPHICS_ADDR_PORT): Likewise.
8598 (GRAPHICS_DATA_PORT): Likewise.
8599 (READ_MAP_REGISTER): Likewise.
8600 (INPUT_STATUS1_REGISTER): Likewise.
8601 (INPUT_STATUS1_VERTR_BIT): Likewise.
8602 (get_map_mask): Use grub_vga_sr_read.
8603 (set_map_mask): Use grub_vga_sr_write.
8604 (set_read_map): Use grub_vga_gr_write.
8605 (set_start_address): Use grub_vga_cr_write.
8606 * video/sm712.c (framebuffer): Remove leftover fields.
8607
4321c64a
CW
86082010-06-20 Colin Watson <cjwatson@ubuntu.com>
8609
8610 * util/grub-mkconfig.in: Capitalise and export GRUB_PREFIX. Stop
8611 setting GRUB_VIDEO_BACKEND. Make it available as a user override
8612 instead. Replace the gfxterm backend check with a check that
8613 ${GRUB_PREFIX}/video.lst is non-empty.
8614 * util/grub.d/00_header.in: Use GRUB_PREFIX rather than computing it
8615 again.
8616 (load_video): New generated function. Call it before loading
8617 gfxterm rather than loading ${GRUB_VIDEO_BACKEND}.
8618 * util/grub.d/10_linux.in (linux_entry): Call load_video.
8619 * util/grub.d/30_os-prober.in (osx_entry): Likewise.
8620 * docs/grub.texi (Simple configuration): Document
8621 GRUB_VIDEO_BACKEND.
8622
86232010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
8624
8625 Use video functions in linux and xnu loaders.
8626
8627 * conf/i386-pc.rmk (xnu_mod_SOURCES): Remove loader/i386/pc/xnu.c.
8628 * conf/x86-efi.rmk (xnu_mod_SOURCES): Remove loader/i386/efi/xnu.c.
8629 * include/grub/i386/xnu.h (grub_xnu_set_video): Removed.
8630 * loader/i386/efi/linux.c (grub_linux_setup_video): Copied from
8631 loader/i386/pc/linux.c.
8632 (grub_linux_boot): Resynced with loader/i386/pc/linux.c.
8633 (find_line_len): Removed.
8634 (find_framebuf): Likewise.
8635 (grub_cmd_linux): Declare grub_linux_boot as possibly returning.
8636 * loader/i386/efi/xnu.c: Removed.
8637 * loader/i386/pc/xnu.c: Moved from here...
8638 * loader/i386/xnu.c: ...here.
8639
8640 Enable priorities in video drivers.
8641
8642 * include/grub/video.h (grub_video_adapter_prio_t): New type.
8643 (grub_video_adapter): New field prio.
8644 (grub_video_register): Respect prio when inserting.
8645 * video/efi_gop.c (grub_video_gop_adapter): Add prio.
8646 * video/efi_uga.c (grub_video_uga_adapter): Likewise.
8647 * video/emu/sdl.c (grub_video_sdl_adapter): Likewise.
8648 * video/i386/pc/vbe.c (grub_video_vbe_adapter): Likewise.
8649 * video/i386/pc/vga.c (grub_video_vga_adapter): Likewise.
8650 * video/ieee1275.c (grub_video_ieee1275_adapter): Likewise.
8651 * video/sm712.c (grub_video_sm712_adapter): Likewise.
8652
8653 Fix SDL driver ID.
8654
8655 * include/grub/video.h (grub_video_driver_id_t): New value
8656 GRUB_VIDEO_DRIVER_SDL.
8657 * video/emu/sdl.c (grub_video_sdl_adapter): Add id.
8658
7d24e434
CW
86592010-06-17 Colin Watson <cjwatson@ubuntu.com>
8660
8661 * util/i386/pc/grub-setup.c (usage): Pass an extra `program_name'
8662 argument to printf.
8663 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
8664
c88a83f6
CW
86652010-06-17 Colin Watson <cjwatson@ubuntu.com>
8666
8667 * util/i386/pc/grub-setup.c (usage): Fix syntax error.
8668 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
8669
094dfb69
CW
86702010-06-17 Colin Watson <cjwatson@ubuntu.com>
8671
8672 * util/i386/pc/grub-setup.c (usage): Warn against running grub-setup
8673 directly, and recommend grub-install instead.
8674 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
8675
2164da6b
CW
86762010-06-17 Colin Watson <cjwatson@ubuntu.com>
8677
8678 Fix i386-pc prefix handling with nested partitions (Debian bug
8679 #585068). Note that the case where the core image is booted using
8680 multiboot and relocated from its original location still requires
8681 more work.
8682
8683 * kern/i386/pc/init.c (make_install_device): If the prefix starts
8684 with "(,", fill the boot drive in between those two characters, but
8685 expect that a full partition specification including partition map
8686 names will follow.
8687 * util/i386/pc/grub-setup.c (setup): Unless an explicit prefix was
8688 specified, write a prefix without the drive name but including a
8689 full partition specification.
8690
044e2e60
CW
86912010-06-16 Colin Watson <cjwatson@ubuntu.com>
8692
8693 * util/grub-mkconfig.in: Ignore non-option arguments, for
8694 compatibility with older versions (before 2010-06-12) which did the
8695 same. In particular, this makes it easier to ship an update-grub
8696 wrapper which is compatible with that used with GRUB Legacy (Debian
8697 bug #586056).
8698
5591324f
GS
86992010-06-14 Grégoire Sutre <gregoire.sutre@gmail.com>
8700
8701 * Makefile.in (install-local): Use $$file.h2m instead of $$dest.h2m
8702 for manual page generation.
8703
662e24d5
GS
87042010-06-14 Grégoire Sutre <gregoire.sutre@gmail.com>
8705
8706 * po/POTFILES: Remove leftover commands/handler.c.
8707
8d70754e
CW
87082010-06-14 Colin Watson <cjwatson@ubuntu.com>
8709
8710 * util/grub-mkconfig.in: Remove vestige of old argument parsing that
8711 left this script non-functional.
8712
41160e2e
CW
87132010-06-14 Colin Watson <cjwatson@ubuntu.com>
8714
8715 * docs/man/grub-emu.h2m: New file.
8716
b5309cc1
CW
87172010-06-13 Colin Watson <cjwatson@ubuntu.com>
8718
8719 * docs/grub.texi (Commands): Document reduced command set in rescue
8720 mode.
8721 (cpuid): New section.
8722
fcb2d090
GS
87232010-06-13 Grégoire Sutre <gregoire.sutre@gmail.com>
8724
8725 * kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Use the
8726 new partition naming style.
8727 * util/grub-install.in: Adapt sed subtitutions in grub-probe calls.
8728
96e5c556
BC
87292010-06-12 BVK Chaitanya <bvk.groups@gmail.com>
8730
8731 Add "-o grub.iso" like cmdline options support.
8732
8733 * util/grub-install.in: Improve cmdline option parsing.
8734 * util/grub-mkconfig.in: Likewise.
8735 * util/grub-mkrescue.in: Likewise.
8736 * util/grub-reboot.in: Likewise.
8737 * util/grub-set-default.in: Likewise.
8738 * util/i386/efi/grub-install.in: Likewise.
8739 * util/ieee1275/grub-install.in: Likewise.
8740 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
8741
c16be99b
CW
87422010-06-12 Colin Watson <cjwatson@ubuntu.com>
8743
8744 * .bzrignore: Ignore 41_custom.
8745
ce08a9fb
TS
87462010-06-12 Thomas Schmitt <scdbackup@gmx.net>
8747
8748 * util/grub-mkrescue.in: Pass unrecognized options to xorriso.
8749
7beac90c
CW
87502010-06-12 Colin Watson <cjwatson@ubuntu.com>
8751
8752 Avoid false positives in fs.lst, partmap.lst, and video.lst due to
8753 prototype declarations.
8754
8755 * genmk.rb (PModule::rule): Define GRUB_LST_GENERATOR when
8756 generating fs, partmap, and video lists.
8757 * include/grub/fs.h (grub_fs_register): Omit prototype if
8758 GRUB_LST_GENERATOR is defined.
8759 * include/grub/partition.h (grub_partition_map_register): Likewise.
8760 * include/grub/video.h (grub_video_register): Likewise.
8761
1c8f0f8d
JM
87622010-06-12 Javier Martín <lordhabbit@gmail.com>
8763
8764 * include/grub/types.h: Check for GRUB_CPU_SIZEOF_LONG when appropriate.
8765
a6085973
TS
87662010-06-12 Thomas Schmitt <scdbackup@gmx.net>
8767
8768 * util/grub-mkrescue.in: Support --xorriso argument.
8769
25c56d29
VS
87702010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
8771
8772 * util/grub-mkrescue.in: Use -graft-points instead of -pathspecs.
8773 Suggested by: Thomas Schmitt.
8774
e03e4b24
VS
87752010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
8776
8777 * util/grub-mkrescue.in: Add --sort-weight arguments to xorriso.
8778 Suggested by: Thomas Schmitt.
8779
57711df6
VS
87802010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
8781
8782 custom.cfg support.
8783
8784 * conf/common.rmk (grub-mkconfig_SCRIPTS): Add 41_custom.
8785 * util/grub.d/41_custom.in: New file.
8786
ee62c427
CW
87872010-06-12 Colin Watson <cjwatson@ubuntu.com>
8788
8789 * util/grub-mkrescue.in (make_image): Remove sh module, which has
8790 been merged back into normal.
8791
283af07a
CW
87922010-06-11 Colin Watson <cjwatson@ubuntu.com>
8793
8794 * include/grub/efi/uga_draw.h (GRUB_EFI_UGA_GLT_MAX): Rename to ...
8795 (GRUB_EFI_UGA_BLT_MAX): ... this (typo fix).
8796
56a0d956
CW
87972010-06-11 Colin Watson <cjwatson@ubuntu.com>
8798
8799 * Makefile.in (install-local): Include $(srcdir)/docs/man/$$dest.h2m
8800 when generating manual pages.
8801 * docs/man/grub-bin2h.h2m: New file.
8802 * docs/man/grub-editenv.h2m: New file.
8803 * docs/man/grub-fstest.h2m: New file.
8804 * docs/man/grub-install.h2m: New file.
8805 * docs/man/grub-macho2img.h2m: New file.
8806 * docs/man/grub-mkconfig.h2m: New file.
8807 * docs/man/grub-mkdevicemap.h2m: New file.
8808 * docs/man/grub-mkfont.h2m: New file.
8809 * docs/man/grub-mkimage.h2m: New file.
8810 * docs/man/grub-mkpasswd-pbkdf2.h2m: New file.
8811 * docs/man/grub-mkrelpath.h2m: New file.
8812 * docs/man/grub-mkrescue.h2m: New file.
8813 * docs/man/grub-ofpathname.h2m: New file.
8814 * docs/man/grub-pe2elf.h2m: New file.
8815 * docs/man/grub-probe.h2m: New file.
8816 * docs/man/grub-reboot.h2m: New file.
8817 * docs/man/grub-script-check.h2m: New file.
8818 * docs/man/grub-set-default.h2m: New file.
8819 * docs/man/grub-setup.h2m: New file.
8820
3a37e322
VS
88212010-06-10 Vladimir Serbinenko <phcoder@gmail.com>
8822
8823 Use FOR_* macros instead of *_iterate whenever possible.
8824
8825 * commands/handler.c: Removed.
8826 * commands/help.c (grub_cmd_help): Use FOR_COMMANDS.
8827 * commands/minicmd.c (grub_mini_cmd_lsmod): Use FOR_DL_MODULES.
8828 * conf/any-emu.rmk (kernel_img_SOURCES): Remove kern/handler.c.
8829 * conf/common.rmk (script/lexer.c_DEPENDENCIES): Add grub_script.yy.h.
8830 (grub_probe_SOURCES): Remove kern/parser.c.
8831 (util/grub-script-check.c_DEPENDENCIES): Removed.
8832 (grub_script_check_SOURCES): Remove kern/handler.c, kern/parser.c
8833 and grub_script_check_init.c.
8834 (grub_script_check_init.lst): Removed.
8835 (grub_script_check_init.h): Likewise.
8836 (grub_script_check_init.c): Likewise.
8837 (pkglib_MODULES): Remove handler.mod and sh.mod.
8838 (handler_mod_SOURCES): Removed.
8839 (handler_mod_CFLAGS): Likewise.
8840 (handler_mod_LDFLAGS): Likewise.
8841 (normal_mod_SOURCES): Remove normal/handler.c.
8842 Add script/main.c, script/script.c, script/execute.c,
8843 script/function.c, script/lexer.c, grub_script.tab.c
8844 and grub_script.yy.c.
8845 * conf/i386-coreboot.rmk (kernel_img_SOURCES): Remove kern/handler.c.
8846 * conf/i386-ieee1275.rmk (kernel_img_SOURCES): Likewise.
8847 * conf/i386-pc.rmk (kernel_img_SOURCES): Likewise.
8848 (grub_setup_SOURCES): Remove kern/parser.c.
8849 * conf/i386-qemu.rmk (kernel_img_SOURCES): Remove kern/handler.c.
8850 * conf/mips-qemu-mips.rmk (kernel_img_SOURCES): Likewise.
8851 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Likewise.
8852 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Likewise.
8853 * conf/sparc64-ieee1275.rmk (kernel_img_SOURCES): Likewise.
8854 (grub_setup_SOURCES): Remove kern/parser.c.
8855 * conf/x86-efi.rmk (kernel_img_SOURCES): Remove kern/handler.c.
8856 * gettext/gettext.c (grub_gettext_delete_list): Don't use grub_list_pop.
8857 * include/grub/command.h (grub_command_iterate): Removed.
8858 (FOR_COMMANDS): New macro.
8859 * include/grub/dl.h (grub_dl): New member next.
8860 (grub_dl_iterate): Removed.
8861 (grub_dl_head): New variable declaration.
8862 (FOR_DL_MODULES): New macro.
8863 * include/grub/fs.h: Include list.h.
8864 (grub_fs): Make next first element.
8865 (grub_fs_list): New variable declaration.
8866 (grub_fs_register): Make inline.
8867 (grub_fs_unregister): Likewise.
8868 (grub_fs_iterate): Removed.
8869 (FOR_FILESYSTEMS): New macro.
8870 * include/grub/handler.h: Removed.
8871 * include/grub/list.h (grub_list_hook_t): Removed.
8872 (grub_list_test_t): Likewise.
8873 (grub_list_pop): Likewise.
8874 (grub_list_iterate): Likewise.
8875 (grub_list_insert): Likewise.
8876 (FOR_LIST_ELEMENTS): New macro.
8877 * include/grub/parser.h (grub_parser_class): Removed.
8878 (grub_parser_register): Likewise.
8879 (grub_parser_unregister): Likewise.
8880 (grub_parser_get_current): Likewise.
8881 (grub_parser_set_current): Likewise.
8882 (grub_register_rescue_parser): Likewise.
8883 (grub_rescue_parse_line): New function.
8884 * include/grub/partition.h (FOR_PARTITION_MAPS): Use FOR_LIST_ELEMENTS.
8885 * include/grub/script_sh.h (grub_script_function_list): New variable
8886 declaration.
8887 (FOR_SCRIPT_FUNCTIONS): New macro.
8888 (grub_script_function_iterate): Removed.
8889 (grub_normal_parse_line): New prototype.
8890 * include/grub/term.h (FOR_ACTIVE_TERM_INPUTS): Use FOR_LIST_ELEMENTS.
8891 (FOR_DISABLED_TERM_INPUTS): Likewise.
8892 (FOR_ACTIVE_TERM_OUTPUTS): Likewise.
8893 (FOR_DISABLED_TERM_OUTPUTS): Likewise.
8894 * include/grub/video.h (grub_video_adapter): Move 'next' to first
8895 element.
8896 (grub_video_register): Inline.
8897 (grub_video_unregister): Likewise.
8898 (grub_video_adapter_list): New variable declaration.
8899 (grub_video_iterate): Removed.
8900 (FOR_VIDEO_ADAPTERS): New macro.
8901 * kern/dl.c (grub_dl_list): Removed. All users updated.
8902 (grub_dl_iterate): Removed.
8903 * kern/fs.c (grub_fs_list): Make global.
8904 (grub_fs_register): Removed.
8905 (grub_fs_unregister): Likewise.
8906 (grub_fs_iterate): Likewise.
8907 * kern/handler.c: Removed.
8908 * kern/list.c (grub_list_pop): Removed.
8909 (grub_list_iterate): Likewise.
8910 (grub_list_insert): Likewise.
8911 (grub_named_list_find): Use FOR_LIST_ELEMENTS.
8912 (grub_prio_list_insert): Don't use grub_list_insert.
8913 * kern/main.c (grub_register_rescue_parser): Don't call
8914 grub_register_rescue_parser.
8915 * kern/parser.c (grub_parser_class): Removed.
8916 (grub_parser_execute): Use grub_rescue_parse_line.
8917 * kern/rescue_parser.c (grub_rescue_parse_line): Make global.
8918 (grub_rescue_parser): Removed.
8919 (grub_register_rescue_parser): Likewise.
8920 * kern/rescue_reader.c (grub_rescue_run): Use grub_rescue_parse_line.
8921 * normal/auth.c (is_authenticated): Use FOR_LIST_ELEMENTS.
8922 (grub_auth_check_authentication): Likewise.
8923 * normal/completion.c (iterate_command): Removed.
8924 (grub_normal_do_completion): Use FOR_COMMANDS.
8925 * normal/handler.c: Removed.
8926 * normal/main.c (read_config_file): Remove parser changing.
8927 (grub_normal_execute): Don't call read_handler_list.
8928 (grub_normal_read_line_real): Statically allocate prompt.
8929 (grub_cmdline_run): Use grub_normal_parse_line.
8930 (GRUB_MOD_FINI): Don't call free_handler_list.
8931 * normal/menu_entry.c (run): Likewise.
8932 * script/function.c (grub_script_function_list): Make global.
8933 (grub_script_function_iterate): Removed.
8934 * script/main.c (grub_normal_parse_line): Make global.
8935 (grub_sh_parser): Removed.
8936 (GRUB_MOD_INIT): Likewise.
8937 (GRUB_MOD_FINI): Likewise.
8938 * tests/lib/functional_test.c (grub_functional_test): Use
8939 FOR_LIST_ELEMENTS.
8940 * tests/lib/test.c (free_failures): Don't use grub_list_pop.
8941 (grub_test_run): Use FOR_LIST_ELEMENTS.
8942 * tests/lib/unit_test.c (main): Likewise.
8943 * util/deviceiter.c (grub_util_iterate_devices): Don't use
8944 grub_list_pop.
8945 * util/grub-fstest.c (grub_term_input_class): Removed.
8946 (grub_term_output_class): Likewise.
8947 * util/grub-probe.c: Likewise.
8948 * util/i386/pc/grub-setup.c: Likewise.
8949 * util/sparc64/ieee1275/grub-setup.c: Likewise.
8950 * util/grub-script-check.c (main): Don't call grub_init_all and
8951 grub_fini_all.
8952 * video/video.c (grub_video_adapter_list): Make global.
8953 (grub_video_register): Removed.
8954 (grub_video_unregister): Likewise.
8955 (grub_video_iterate): Likewise.
8956
6289c3a7
VS
89572010-06-09 Vladimir Serbinenko <phcoder@gmail.com>
8958
8959 * docs/grub.texi (Vendor power-on button): Add Asus EeePC 1005PE as
8960 reported by Henrique Ferreiro.
8961
91460247
RM
89622010-06-09 Robert Millan <rmh@gnu.org>
8963
8964 * util/grub.d/10_linux.in: Prefer compressed images over non-compressed
8965 ones, when both are available.
8966
0ea7c4f9
GS
89672010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
8968
8969 Make --version uniform and avoid hard-coded program name.
8970
8971 * util/grub-mkimage.c (main): Use `program_name' instead of
8972 hard-coded string.
8973 * util/i386/pc/grub-setup.c (main): Likewise.
8974 * util/sparc64/ieee1275/grub-setup.c (parse_options): Likewise.
8975 * util/grub-install.in: Save the basename of $0 in $self, and use the
8976 latter in informational messages. Use the same format for --version
8977 as the binary programs.
8978 * util/grub-mkconfig.in: Likewise.
8979 * util/grub-mkrescue.in: Likewise.
8980 * util/grub-reboot.in: Likewise.
8981 * util/grub-set-default.in: Likewise.
8982 * util/i386/efi/grub-install.in: Likewise.
8983 * util/ieee1275/grub-install.in: Likewise.
8984 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
8985
e8a6f3b6
GS
89862010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
8987
8988 * util/i386/pc/grub-setup.c (setup): Use absolute offsets for start of
8989 embedding area. Use <= instead of == when checking for non-emptiness.
8990
f4d095d7
GS
89912010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
8992
8993 * configure.ac: Add `.' to the directories searched for unifont.
8994
50e532ca
CW
89952010-06-08 Colin Watson <cjwatson@ubuntu.com>
8996
8997 * .bzrignore: Add ascii.bitmaps, ascii.h, grub_script.yy.c, and
8998 grub_script.yy.h.
8999
d39f3dec
CW
90002010-06-08 Colin Watson <cjwatson@ubuntu.com>
9001
9002 * docs/grub.texi (History): Expand to cover GRUB 2.
9003 (Serial terminal): Refer to `terminal_input' and `terminal_output'
9004 commands, not `terminal'.
9005 (serial): Likewise.
9006 (terminal_input): New section.
9007 (terminal_output): New section.
9008 (uppermem): New section (stub).
9009 (Obtaining and Building GRUB): Refer to Bazaar, not Subversion.
9010
6ef0ddb4
CW
90112010-06-08 Colin Watson <cjwatson@ubuntu.com>
9012
9013 * docs/grub.texi (Security): Menu entries are unrestricted by
9014 default, not restricted to superusers as I had previously thought.
9015 Reword to account for this.
9016
e0f4c438
CW
90172010-06-07 Colin Watson <cjwatson@ubuntu.com>
9018
9019 * kern/emu/misc.c (device_mapper_null_log): New function.
9020 (grub_device_mapper_supported): New function.
9021 * include/grub/emu/misc.h (grub_device_mapper_supported): Add
9022 prototype.
9023 * kern/emu/hostdisk.c (find_partition_start): Check whether
9024 device-mapper is supported before trying to use it.
9025 * util/deviceiter.c (grub_util_iterate_devices): Likewise.
9026
da908200
CW
90272010-06-07 Colin Watson <cjwatson@ubuntu.com>
9028
9029 * docs/grub.texi (Naming convention): Use GRUB 2 syntax.
9030 (File name syntax): Likewise.
9031 (help): --all is no longer supported in GRUB 2. Be more precise
9032 about pattern matching.
9033
fb55c3ac
CW
90342010-06-07 Colin Watson <cjwatson@ubuntu.com>
9035
9036 * normal/completion.c (grub_normal_do_completion): When completing
9037 arguments to "set" and the current word contains an equals sign,
9038 skip to after the equals sign before starting completion.
9039
258c2573
CW
90402010-06-07 Colin Watson <cjwatson@ubuntu.com>
9041
9042 * fs/i386/pc/pxe.c (grub_pxe_open): Fix parsing of gateway_ip.
9043
ee75515e
CW
90442010-06-07 Colin Watson <cjwatson@ubuntu.com>
9045
9046 * docs/grub.texi (Network): New section.
9047 (Device syntax): The network device is called `(pxe)' in GRUB 2, not
9048 `(nd)' as in GRUB Legacy.
9049 (pxe_unload): New section.
9050
a6a700aa
CW
90512010-06-07 Colin Watson <cjwatson@ubuntu.com>
9052
9053 * docs/grub.texi (Troubleshooting): `echo' is not usually available
9054 in the rescue shell, so recommend using `set' instead. Thanks,
9055 Jordan Uggla.
9056
4003dd38
CW
90572010-06-07 Colin Watson <cjwatson@ubuntu.com>
9058
9059 * docs/grub.texi (Filesystem): Refer to `search' instead of `find'.
9060 (password): New section.
9061 (password_pbkdf2): New section.
9062 (search): New section.
9063 (Security): New section.
9064 (Troubleshooting): New section, currently very incomplete.
9065 (Invoking grub-mkpasswd-pbkdf2): New section.
9066 (Internals): New section, currently very incomplete.
9067
e1cbcc40
CW
90682010-06-07 Colin Watson <cjwatson@ubuntu.com>
9069
9070 * util/grub.d/00_header.in: Add some more quoting (of
9071 "${prev_saved_entry}" and "${boot_once}") needed to make savedefault
9072 work again.
9073 Reported by: Mario 'BitKoenig' Holbe (Debian bug #584812).
9074
db8fa1ad
CW
90752010-06-07 Colin Watson <cjwatson@ubuntu.com>
9076
9077 * util/grub-mkpasswd-pbkdf2.c (main): Rename top-level `c' variable
9078 to `count', fixing variable shadowing that broke the -c option.
9079
90802010-06-05 Colin Watson <cjwatson@ubuntu.com>
71c38098
CW
9081
9082 * util/grub.d/00_header.in: Quote values assigned to `saved_entry',
9083 in case they contain spaces.
9084
f28a9212
CW
90852010-06-04 Colin Watson <cjwatson@ubuntu.com>
9086
9087 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Prepend
9088 "part_" to partmap module names, in line with grub-install.
9089 Reported by: Jindřich Makovička (Debian bug #584426).
9090
9cdfe32f
CW
90912010-06-04 Colin Watson <cjwatson@ubuntu.com>
9092
9093 * util/grub-mkimage.c: Make target-related error messages slightly
9094 more helpful; -O talks about "format". Explicitly point to the use
9095 of -O if no target is specified.
9096 Reported by: Didier Raboud (Debian bug #584415).
9097
795b593a
CW
90982010-06-03 Colin Watson <cjwatson@ubuntu.com>
9099
9100 * INSTALL: Document several build requirements for optional features
9101 (libdevmapper, ncurses, libusb, SDL, FreeType, GNU Unifont).
9102
9d9b5833
GS
91032010-06-02 Grégoire Sutre <gregoire.sutre@gmail.com>
9104
9105 * kern/emu/hostdisk.c (convert_system_partition_to_system_disk)
9106 [__NetBSD__]: Handle all device names matching /dev/r[a-z]+[0-9][a-z].
9107 (find_partition_start) [__NetBSD__]: Correct error messages for NetBSD.
9108
0819fec8
CW
91092010-06-02 Colin Watson <cjwatson@ubuntu.com>
9110
9111 * docs/grub.texi (Simple configuration): Fix copy-and-paste typo.
9112 Thanks to Jordan Uggla for spotting this.
9113
49396b4f
VS
91142010-06-02 Aleš Nesrsta <starous@volny.cz>
9115
9116 Finally make USB usable.
9117
9118 * bus/usb/ohci.c (grub_ohci_reg_t): Add missing values.
9119 (GRUB_OHCI_RHUB_PORT_POWER_MASK): New macro.
9120 (GRUB_OHCI_RHUB_PORT_ALL_POWERED): Likewise.
9121 (GRUB_OHCI_REG_FRAME_INTERVAL_FSMPS_MASK): Likewise.
9122 (GRUB_OHCI_REG_FRAME_INTERVAL_FSMPS_SHIFT): Likewise.
9123 (GRUB_OHCI_REG_FRAME_INTERVAL_FI_SHIFT): Likewise.
9124 (GRUB_OHCI_FSMPS): Likewise.
9125 (GRUB_OHCI_PERIODIC_START): Likewise.
9126 (GRUB_OHCI_FRAME_INTERVAL): Likewise.
9127 (GRUB_OHCI_SET_PORT_ENABLE): Likewise.
9128 (GRUB_OHCI_CLEAR_PORT_ENABLE): Likewise.
9129 (GRUB_OHCI_SET_PORT_RESET): Likewise.
9130 (GRUB_OHCI_SET_PORT_RESET_STATUS_CHANGE): Likewise.
9131 * bus/usb/ohci.c (grub_ohci_pci_iter): Various important fixups.
9132 (grub_ohci_transaction): Likewise.
9133 (grub_ohci_transfer): Improve condition detection algorithms.
9134 Handle toggle property. Program the transactions correctly.
9135 Improve error handling. Various important fixups.
9136 (grub_ohci_portstatus): Put register writes in right order.
9137 * bus/usb/uhci.c (grub_free_queue): Compute last_trans.
9138 (grub_uhci_transfer): Don't show "failed" message on success.
9139 * bus/usb/usb.c (grub_usb_set_configuration): Zero-fill whole "toggle"
9140 array.
9141 (grub_usb_device_initialize): Read first 8 bytes of descriptor to
9142 determine its size.
9143 * bus/usb/usbtrans.c (grub_usb_control_msg): Use descdev.maxsize0 even
9144 before initialization is completed. Use IN direction for empty
9145 transfers. Use last_trans and compute toggle.
9146 * include/grub/usbtrans.h (grub_usb_transfer): New field last_trans.
9147 (GRUB_USB_FEATURE_ENDP_HALT): Correct the value.
9148 (GRUB_USB_FEATURE_DEV_REMOTE_WU): Likewise.
9149 (GRUB_USB_FEATURE_TEST_MODE): Likewise.
9150 * include/grub/usb.h (grub_usb_err_t): New value GRUB_USB_ERR_UNRECOVERABLE.
9151 (grub_usb_device): Increase toggle to 256.
9152 (grub_usbms_subclass_t): New values GRUB_USBMS_SUBCLASS_RBC,
9153 GRUB_USBMS_SUBCLASS_MMC2, GRUB_USBMS_SUBCLASS_UFI and
9154 GRUB_USBMS_SUBCLASS_SFF8070.
9155 * include/grub/scsicmd.h (grub_scsi_test_unit_ready): New structure.
9156 (grub_scsi_inquiry): New member page and alloc_length.
9157 (grub_scsi_request_sense): New structure.
9158 (grub_scsi_request_sense_data): Likewise.
9159 (grub_scsi_read_capacity): New fields logical_block_addr, PMI and
9160 control.
9161 * disk/scsi.c (grub_scsi_request_sense): New function.
9162 (grub_scsi_test_unit_ready): Likewise.
9163 (grub_scsi_inquiry): Fill new fields.
9164 (grub_scsi_read_capacity): Likewise.
9165 (grub_scsi_read10): Add request sense at the end.
9166 (grub_scsi_read12): Likewise.
9167 (grub_scsi_write10): Likewise.
9168 (grub_scsi_write12): Likewise.
9169 (grub_scsi_open): Add Test Unit Ready.
9170 * disk/usbms.c (grub_usbms_finddevs): Check configcnt.
9171 Support additional subclasses. Con't clear halt yet. Activate the
9172 proper config. Calculate LUNs correctly.
9173 (grub_usbms_transfer): Various important fixups.
9174
91752010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
9176
9177 * bus/pci.c (grub_pci_iterate) [GRUB_MACHINE_MIPS_YEELOONG]: Skip ghosts.
9178 * bus/usb/ohci.c (grub_ohci_portstatus): Handle R/WC correctly.
9179 (grub_ohci_fini_hw): New function.
9180 (grub_ohci_restore_hw): Likewise.
9181 (GRUB_MOD_INIT(ohci)): Register preboot hook.
9182 (GRUB_MOD_FINI(ohci)): Shutdown OHCI.
9183 * term/usb_keyboard.c: Remove include of grub/machine/console.h.
9184
91852010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
9186
9187 Dedicated DMA allocations.
9188
9189 * bus/pci.c (grub_memalign_dma32): New function
9190 (grub_dma_free): Likewise.
9191 (grub_dma_get_virt): Likewise.
9192 (grub_dma_get_phys): Likewise.
9193 * bus/usb/ohci.c (grub_ohci): New members hcca_addr and hcca_chunk.
9194 (grub_ohci_pci_iter): Use dma32_alloc.
9195 (grub_ohci_transfer): Likewise.
9196 * bus/usb/usbtrans.c (grub_usb_control_msg): Likewise.
9197 (grub_usb_bulk_readwrite): Likewise.
9198 * include/grub/pci.h: Add declarations.
9199
92002010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
9201
9202 CS5536 support.
9203
9204 * bus/cs5536.c: New file.
9205 * bus/usb/ohci.c (grub_ohci_pci_iter): Check for CS5536.
9206 * conf/i386.rmk (pkglib_MODULES): Add cs5536.mod.
9207 (cs5536_mod_SOURCES): New variable.
9208 (cs5536_mod_CFLAGS): Likewise.
9209 (cs5536_mod_LDFLAGS): Likewise.
9210 * conf/mips-yeeloong.rmk (kernel_img_HEADERS): Add cs5536.h and
9211 machine/pci.h.
9212 (kernel_img_SOURCES): Add bus/cs5536.c.
9213 (pkglib_MODULES): Add usb.mod, usbtest.mod, ohci.mod, usbms.mod and
9214 usb_keyboard.mod.
9215 (usb_mod_SOURCES): New variable.
9216 (usb_mod_CFLAGS): New variable.
9217 (usb_mod_LDFLAGS): New variable.
9218 (usbtest_mod_SOURCES): New variable.
9219 (usbtest_mod_CFLAGS): New variable.
9220 (usbtest_mod_LDFLAGS): New variable.
9221 (ohci_mod_SOURCES): New variable.
9222 (ohci_mod_CFLAGS): New variable.
9223 (ohci_mod_LDFLAGS): New variable.
9224 (usbms_mod_SOURCES): New variable.
9225 (usbms_mod_CFLAGS): New variable.
9226 (usbms_mod_LDFLAGS): New variable.
9227 (usb_keyboard_mod_SOURCES): New variable.
9228 (usb_keyboard_mod_CFLAGS): New variable.
9229 (usb_keyboard_mod_LDFLAGS): New variable.
9230 * include/grub/smbus.h: New file.
9231 * include/grub/cs5536.h: New file.
9232
0b35b2a9
CW
92332010-06-02 Colin Watson <cjwatson@ubuntu.com>
9234
9235 * util/grub.d/00_header.in: Add safety check to make sure that
9236 ${locale_dir} exists before trying to probe it.
9237
ca0afd5b
CW
92382010-06-02 Colin Watson <cjwatson@ubuntu.com>
9239
9240 * docs/grub.texi (SCO UnixWare): Remove, at Vladimir's request and
9241 per the GNU Coding Standards; this is now too obscure to be worth
9242 documenting.
9243 (QNX): Likewise.
9244 (chainloader): Remove cross-reference to `SCO UnixWare'.
9245
1c41aa78
CW
92462010-06-02 Colin Watson <cjwatson@ubuntu.com>
9247
9248 * docs/grub.texi (Chain-loading): New section.
9249 (DOS/Windows): New section, borrowed from GRUB Legacy with details
9250 adjusted for GRUB 2.
9251 (SCO UnixWare): Likewise.
9252 (QNX): Likewise.
9253 (chainloader): Add reference to `Block list syntax'.
9254 (drivemap): New section.
9255 (parttool): New section.
9256
bb8ea0f5
CW
92572010-06-02 Colin Watson <cjwatson@ubuntu.com>
9258
9259 * docs/grub.texi (GNU GRUB manual): Remove reference to `Invoking
9260 the grub shell'.
9261 (Installation): Add reference to `Making a GRUB bootable CD-ROM'.
9262 (Installing GRUB using grub-install): Remove reference to the grub
9263 shell; mention `grub-mkimage' and `grub-setup' instead.
9264 (Invoking grub-install): Likewise.
9265 (Interface): Add reference to `Menu entry editor'.
9266 (serial): Remove `--device' option.
9267
288dd6ed
CW
92682010-06-02 Colin Watson <cjwatson@ubuntu.com>
9269
9270 * docs/grub.texi (Configuration): New section, documenting
9271 configuration file generation using grub-mkconfig. I've left a slot
9272 for documenting the full shell scripting format but have not yet
9273 started on writing that up.
9274 (Invoking grub-mkconfig): New section.
9275
34c9f0e9
CW
92762010-06-02 Colin Watson <cjwatson@ubuntu.com>
9277
9278 * docs/grub.texi (direntry): Remove grub-terminfo reference.
9279 (GNU GRUB manual): Likewise.
9280 (General commands): Update description of `terminfo' for GRUB 2.
9281
9121567e
CW
92822010-06-02 Colin Watson <cjwatson@ubuntu.com>
9283
9284 * commands/gptsync.c (grub_cmd_gptsync): Fix typos.
9285 (GRUB_MOD_INIT): Fix capitalisation.
9286 * docs/grub.texi (Command-line and menu entry commands): Document
9287 gettext and gptsync commands.
9288
ab631611
CW
92892010-06-02 Colin Watson <cjwatson@ubuntu.com>
9290
9291 * conf/any-emu.rmk (kernel_img_SOURCES) [!x86]: Include
9292 kern/$(target_cpu)/cache.S even if TARGET_NO_MODULES = yes.
9293
bde4a9ac
CW
92942010-06-01 Colin Watson <cjwatson@ubuntu.com>
9295
9296 Add btrfs probing support, currently only in the single-device case.
9297
9298 * kern/emu/getroot.c (find_root_device_from_mountinfo): New
9299 function.
9300 (grub_guess_root_device): Call find_root_device_from_mountinfo
9301 before looking in /dev.
9302
b1d17e10
VS
93032010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
9304
9305 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Use
9306 GRUB_DISK_SIZE_UNKNOWN.
9307 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Likewise.
9308
dfbfe004
JS
93092010-05-31 Jiro SEKIBA <jir@unicus.jp>
9310
9311 * include/grub/disk.h (GRUB_DISK_SIZE_UNKNOWN): New macro.
9312 * fs/nilfs.c: Support 2nd super block in case 1st one is accidently
9313 corrupted or not synced properly.
9314
c2ffc8e9
VS
93152010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
9316
9317 * normal/main.c (grub_normal_add_menu_entry): Avoid going out of args.
9318 Reported by: Seth Goldberg.
9319
56293166
VS
93202010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
9321
9322 * loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix incorrect
9323 addition of dest.
9324 Reported by: Seth Goldberg.
9325
7620e7de
VS
93262010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
9327
9328 * commands/setpci.c (grub_setpci_iter): Fix an incorrect function check.
9329 Reported by: Seth Goldberg.
9330
c837af3f
VS
93312010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
9332
9333 * loader/multiboot_elfxx.c (grub_multiboot_load_elfXX) [__mips]: Check
9334 64-bit address as signed on MIPS.
9335
c7c75cf4
CW
93362010-05-28 Colin Watson <cjwatson@ubuntu.com>
9337
9338 * configure.ac: AC_PROG_LEX sets LEX to ":" if lex is missing, not
9339 to the empty string.
9340
fa4b8490
BC
93412010-05-28 BVK Chaitanya <bvk.groups@gmail.com>
9342
9343 Fix grub-emu issues on NetBSD, with gcc 4.1.3.
9344
9345 * conf/any-emu.rmk: Remove unnecessary COMMON_CFLAGS.
9346 * include/grub/emu/misc.h (canonicalize_file_name): New Prototype.
9347 * kern/misc.c (__enable_execute_stack): Disable on
9348 GRUB_MACHINE_EMU.
9349
a33075b9
CW
93502010-05-28 Colin Watson <cjwatson@ubuntu.com>
9351
9352 Make grub-probe work with symbolic links under /dev/mapper as well
9353 as with real block devices. The Linux world seems to be (at best)
9354 in transition here, and GRUB shouldn't get caught in the middle.
9355
9356 * kern/emu/getroot.c (find_root_device): Follow symbolic links under
9357 /dev/mapper.
9358
d8708134
CW
93592010-05-27 Colin Watson <cjwatson@ubuntu.com>
9360
9361 * util/grub-script-check.c (main): Ensure defined behaviour on empty
9362 input files (in which case exit zero).
9363
db2102a0
CW
93642010-05-27 Colin Watson <cjwatson@ubuntu.com>
9365
9366 * kern/emu/misc.c (canonicalize_file_name): realpath can still
9367 return NULL for various reasons even if it has a maximum-length
9368 buffer: for example, there might be a symlink loop, or the path
9369 might exceed PATH_MAX. If this happens, return NULL.
9370
5fdba519
RM
93712010-05-27 Robert Millan <rmh@gnu.org>
9372
9373 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Insert
9374 partmap module to handle cross-partmap setups.
9375 Reported by Orestes Mas. Gràcies!
9376
d1d368e4
CW
93772010-05-27 Colin Watson <cjwatson@ubuntu.com>
9378
9379 * util/grub-mkrescue.in: Initialise override_dir rather than
9380 assuming that it's unset or empty in the environment.
9381
95ac3c73
GS
93822010-05-26 Grégoire Sutre <gregoire.sutre@gmail.com>
9383
9384 * kern/emu/hostdisk.c (find_partition_start) [__NetBSD__]: Renamed
9385 variable index into p_index to suppress a warning with -Wshadow.
9386
7d8c0213
BC
93872010-05-25 BVK Chaitanya <bvk.groups@gmail.com>
9388
9389 * INSTALL: Added flex >= 2.5.35 requirement.
9390
db4d5813
VS
93912010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
9392
9393 * commands/usbtest.c (grub_usb_get_string): Properly support UTF-16.
9394
f24f4300
VS
93952010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
9396
9397 cmostest support.
9398
9399 * commands/i386/cmostest.c: New file.
9400 * conf/i386-coreboot.rmk (pkglib_MODULES): Add cmostest.mod.
9401 (cmostest_mod_SOURCES): New variable.
9402 (cmostest_mod_CFLAGS): Likewise.
9403 (cmostest_mod_LDFLAGS): Likewise.
9404 * conf/i386-pc.rmk: Likewise.
9405 * docs/grub.texi (Vendor power-on keys): New section.
9406 * util/grub-mkconfig.in: export GRUB_DEFAULT_BUTTON,
9407 GRUB_HIDDEN_TIMEOUT_BUTTON, GRUB_TIMEOUT_BUTTON
9408 and GRUB_BUTTON_CMOS_ADDRESS.
9409 * util/grub.d/00_header.in: Handle powering-on by separate button.
9410
ad603f61
VS
94112010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
9412
9413 * gfxmenu/gui_list.c (draw_menu): Don't add scrollbar width to padding.
9414 Removed drawing_scrollbar argument. All users updated
9415 Fixes #29792.
9416 Reported by Jo Shields
9417
3ecb080a
VS
94182010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
9419
9420 * gfxmenu/view.c (grub_gfxmenu_draw_terminal_box): Apply only to current
9421 buffer since gfxterm handles double repaint.
9422
5f2316c1
VS
94232010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
9424
9425 * gfxmenu/gfxmenu.c (grub_gfxmenu_try): Change viewport on both buffers.
9426 * term/gfxterm.c (real_scroll): Likewise.
9427
9a25f885
VS
94282010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
9429
9430 * kern/i386/pc/mmap.c (grub_machine_mmap_iterate): Zero-fill entry
9431 before calling BIOS.
9432
39fbb79a
VS
94332010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
9434
9435 * include/grub/i18n.h: Always enable grub_gettext.
9436
228cfa97
VS
94372010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
9438
9439 * kern/i386/pc/init.c (make_install_device): Fix a leftover usage of old
9440 partition naming style.
9441
21717c8f
CW
94422010-05-21 Colin Watson <cjwatson@ubuntu.com>
9443
9444 * util/grub-mkconfig.in: Fix handling of -o so that it works when
9445 not the first option.
9446
c0f48e65
CW
94472010-05-20 Colin Watson <cjwatson@ubuntu.com>
9448
9449 * util/grub-mkrelpath.c (usage): Remove excess apostrophe.
9450
96779aec
CW
94512010-05-20 Colin Watson <cjwatson@ubuntu.com>
9452
9453 * util/misc.c: Move inclusion of <limits.h> to ...
9454 * kern/emu/misc.c: ... here. Needed for canonicalize_file_name.
9455
fa9d256e
GS
94562010-05-20 Grégoire Sutre <gregoire.sutre@gmail.com>
9457
9458 * kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev) [__NetBSD__]:
9459 Fix merge error in NetBSD code.
9460 (find_partition_start) [__NetBSD__]: Likewise.
9461
123b7a85
BC
94622010-05-19 BVK Chaitanya <bvk.groups@gmail.com>
9463
9464 Fix grub-mkrescue usage unit testing.
9465
9466 * tests/util/grub-shell.in: Use --grub-mkimage with grub-mkrescue.
9467
74276c0d
CF
94682010-05-18 Christian Franke <franke@computer.org>
9469
9470 * util/grub.d/10_windows.in: Use path names instead of
9471 drive letters to prevent warning from Cygwin 1.7.
9472 Add drivemap command to menuentry if needed.
9473
c4f7b523
ST
94742010-05-18 Justus Winter <4winter@informatik.uni-hamburg.de>
9475
9476 * util/grub.d/10_hurd.in: Include all gnumach* kernels, not only
9477 gnumach and gnumach.gz.
9478
95b97950
VS
94792010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
9480
9481 * include/grub/i18n.h (gettext): Inline instead of using #define.
9482 (grub_gettext): Likewise.
9483 (_): Likewise.
9484
01b8d2d7
VS
94852010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
9486
9487 * Makefile.in (CPPFLAGS): Replace -DGRUB_LIBDIR with
9488 -DGRUB_PKGLIBROOTDIR= and prepend @PACKAGE_TARNAME@. All users updated.
9489 * util/grub-mkimage.c (image_targets): Add i386-multiboot.
9490 (main): Add a slash after pkglibdirroot.
9491
654e1d1e
VS
94922010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
9493
9494 * util/grub-install.in: Add missing "in" keyword.
9495
26966aeb
VS
94962010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
9497
9498 * util/grub-mkrescue.in: Remove -O i386-pc duplication.
9499 Reported by: Seth Goldberg.
9500
75006747
VS
95012010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
9502
9503 * po/POTFILES: Rename util/grub-mkrawimage.c to util/grub-mkimage.c.
9504
74cbf5bd
CW
95052010-05-18 Colin Watson <cjwatson@ubuntu.com>
9506
9507 * configure.ac: Check for Linux device-mapper support.
9508
9509 * util/hostdisk.c (device_is_mapped): New function.
9510 (find_partition_start): New function, partly broken out from
9511 linux_find_partition and grub_util_biosdisk_get_grub_dev but with
9512 device-mapper support added.
9513 (linux_find_partition): Use find_partition_start.
9514 (convert_system_partition_to_system_disk): Add `st' argument.
9515 Support Linux /dev/mapper/* devices if device-mapper support is
9516 available; only DM-RAID devices are understood at present.
9517 (find_system_device): Add `st' argument. Pass it to
9518 convert_system_partition_to_system_disk.
9519 (grub_util_biosdisk_get_grub_dev): Pass stat result to
9520 find_system_device and convert_system_partition_to_system_disk. Use
9521 find_partition_start.
9522
9523 * conf/common.rmk (grub_mkdevicemap_SOURCES): Add kern/env.c,
9524 kern/err.c, kern/list.c, kern/misc.c, and kern/emu/mm.c.
9525 * util/deviceiter.c [__linux__]: Define MINOR.
9526 (grub_util_iterate_devices): Add support for DM-RAID disk devices.
9527 * util/mkdevicemap.c (grub_putchar): New function.
9528 (grub_getkey): New function.
9529 (grub_refresh): New function.
9530 (main): Set debug=all if -v -v is used.
9531
355b51e9
CW
95322010-05-18 Colin Watson <cjwatson@ubuntu.com>
9533
9534 Fix build with non-GNU libcs.
9535
9536 * util/misc.c (canonicalize_file_name): Move to ...
9537 * kern/emu/misc.c (canonicalize_file_name): ... here. Needed by
9538 grub_make_system_path_relative_to_its_root.
9539
7fb5c25f
CW
95402010-05-18 Colin Watson <cjwatson@ubuntu.com>
9541
9542 * util/grub-mkrescue.in: Sync up with grub-install in terms of how
9543 we handle finding grub-mkimage. Default to finding grub-mkimage in
9544 ${bindir} with program_transform_name applied, and provide a
9545 --grub-mkimage option to override this.
9546
1d3293d6
VS
95472010-05-17 Vladimir Serbinenko <phcoder@gmail.com>
9548
9549 Remove grub-mkisofs.
9550
9551 * conf/common.rmk (bin_UTILITIES): Remove grub-mkisofs.
9552 (grub_mkisofs_SOURCES): Removed.
9553 (grub_mkisofs_CFLAGS): Removed.
9554 * util/mkisofs/defaults.h: Removed.
9555 * util/mkisofs/eltorito.c: Likewise.
9556 * util/mkisofs/exclude.h: Likewise.
9557 * util/mkisofs/hash.c: Likewise.
9558 * util/mkisofs/include/: Likewise.
9559 * util/mkisofs/include/fctldefs.h: Likewise.
9560 * util/mkisofs/include/mconfig.h: Likewise.
9561 * util/mkisofs/include/prototyp.h: Likewise.
9562 * util/mkisofs/include/statdefs.h: Likewise.
9563 * util/mkisofs/iso9660.h: Likewise.
9564 * util/mkisofs/joliet.c: Likewise.
9565 * util/mkisofs/match.c: Likewise.
9566 * util/mkisofs/match.h: Likewise.
9567 * util/mkisofs/mkisofs.c: Likewise.
9568 * util/mkisofs/mkisofs.h: Likewise.
9569 * util/mkisofs/msdos_partition.h: Likewise.
9570 * util/mkisofs/multi.c: Likewise.
9571 * util/mkisofs/name.c: Likewise.
9572 * util/mkisofs/rock.c: Likewise.
9573 * util/mkisofs/tree.c: Likewise.
9574 * util/mkisofs/write.c: Likewise.
9575
5dde9afe
VS
95762010-05-17 Vladimir Serbinenko <phcoder@gmail.com>
9577
9578 Unify grub-mkimage accross platforms.
9579
9580 * Makefile.in (CPPFLAGS): Set GRUB_LIBDIR to $(libdir).
9581 * conf/common.rmk (bin_UTILITIES): Removed grub-mkelfimage.
9582 (grub_mkelfimage_SOURCES): Removed.
9583 (util/elf/grub-mkimage.c_DEPENDENCIES): Renamed to ..
9584 (util/grub-mkimage.c_DEPENDENCIES): .. this.
9585 (bin_UTILITIES): Add grub-mkimage.
9586 (grub_mkimage_SOURCES): New variable.
9587 (kernel_img_HEADERS): Remove machine/kernel.h.
9588 * conf/i386-pc.rmk (pkglib_IMAGES): Remove kernel.img.
9589 (pkglib_PROGRAMS): Add kernel.img.
9590 (kernel_img_HEADERS): Add machine/kernel.h.
9591 (kernel_img_FORMAT): Removed.
9592 (bin_UTILITIES): Remove grub-mkimage.
9593 (grub_mkimage_SOURCES): Removed.
9594 (grub_mkimage_CFLAGS): Likewise.
9595 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
9596 * conf/i386-qemu.rmk (pkglib_IMAGES): Remove kernel.img.
9597 (pkglib_PROGRAMS): Add kernel.img.
9598 (bin_UTILITIES): Remove grub-mkimage.
9599 (grub_mkimage_SOURCES): Removed.
9600 (grub_mkimage_CFLAGS): Likewise.
9601 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
9602 * conf/mips-qemu-mips.rmk (pkglib_IMAGES): Remove kernel.img.
9603 (pkglib_PROGRAMS): Add kernel.img.
9604 * conf/mips-yeeloong.rmk (pkglib_IMAGES): Remove kernel.img.
9605 (pkglib_PROGRAMS): Add kernel.img.
9606 * conf/mips.rmk (bin_UTILITIES): Remove grub-mkimage.
9607 (grub_mkimage_SOURCES): Removed.
9608 (grub_mkimage_CFLAGS): Likewise.
9609 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
9610 * conf/sparc64-ieee1275.rmk (pkglib_IMAGES): Remove kernel.img.
9611 (pkglib_PROGRAMS): Add kernel.img.
9612 (bin_UTILITIES): Remove grub-mkimage.
9613 (grub_mkimage_SOURCES): Removed.
9614 (grub_mkimage_CFLAGS): Likewise.
9615 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
9616 * conf/x86-efi.rmk (bin_UTILITIES): Remove grub-mkimage.
9617 (grub_mkimage_SOURCES): Removed.
9618 (grub_mkimage_CFLAGS): Likewise.
9619 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
9620 * configure.ac (machine_CFLAGS): Add "-DMACHINE".
9621 * include/grub/efi/pe32.h (grub_pe32_optional_header): Split into ...
9622 (grub_pe32_optional_header): ... this.
9623 (grub_pe64_optional_header): ... and this. All users updated.
9624 (GRUB_PE32_PE32_MAGIC): Split into ..
9625 (GRUB_PE32_PE32_MAGIC): .. this.
9626 (GRUB_PE32_PE64_MAGIC): .. and this.
9627 (GRUB_PE32_SIGNATURE_SIZE): New definition.
9628 * include/grub/elf.h (PT_GNU_STACK): New definition.
9629 * include/grub/i386/coreboot/kernel.h: Merged into include/grub/offsets.h. All users updated.
9630 * include/grub/i386/efi/kernel.h: Likewise.
9631 * include/grub/i386/kernel.h: Likewise.
9632 * include/grub/i386/pc/kernel.h: Likewise.
9633 * include/grub/i386/qemu/boot.h: Likewise.
9634 * include/grub/mips/kernel.h: Likewise.
9635 * include/grub/mips/qemu-mips/kernel.h: Likewise.
9636 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
9637 * include/grub/powerpc/kernel.h: Likewise.
9638 * include/grub/sparc64/ieee1275/boot.h: Likewise.
9639 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
9640 * include/grub/sparc64/kernel.h: Likewise.
9641 * include/grub/x86_64/efi/kernel.h: Likewise.
9642 * include/grub/x86_64/kernel.h: Likewise.
9643 * include/grub/offsets.h: New file.
9644 * include/grub/kernel.h (grub_module_info): Split into ...
9645 (grub_module_info32): ... this.
9646 (grub_module_info64): ... and this.
9647 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_KERNEL_SEG): Moved from here ...
9648 * include/grub/offsets.h (GRUB_BOOT_I386_PC_KERNEL_SEG): ... here.
9649 (grub_boot_blocklist): Moved from here ...
9650 * include/grub/offsets.h (grub_pc_bios_boot_blocklist): ... here.
9651 * include/grub/i386/pc/memory.h (GRUB_MEMORY_MACHINE_UPPER): Moved from here.
9652 * include/grub/offsets.h (GRUB_MEMORY_I386_PC_UPPER): .. here.
9653 * include/grub/types.h (grub_target_to_host16): Removed.
9654 (grub_target_to_host32): Likewise.
9655 (grub_target_to_host64): Likewise.
9656 (grub_host_to_target16): Likewise.
9657 (grub_host_to_target32): Likewise.
9658 (grub_host_to_target64): Likewise.
9659 (grub_host_to_target_addr): Likewise.
9660
9661 Support grub-mkrescue for efi, coreboot and qemu.
9662
9663 * conf/x86-efi.rmk (bin_SCRIPTS): Add grub-mkrescue.
9664 * kern/efi/init.c (grub_efi_set_prefix): Handle baked in prefix.
9665 * util/elf/grub-mkimage.c: Merged into util/grub-mkimage.c.
9666 * util/grub-mkrawimage.c: Moved from here ...
9667 * util/grub-mkimage.c: ... here. All users updated.
9668 (ALIGN_ADDR): Use image_target.
9669 (TARGET_NO_FIELD): New const.
9670 (image_target_desc): New type.
9671 (image_targets): New array.
9672 (grub_target_to_host64): Use image_target.
9673 (grub_target_to_host32): Likewise.
9674 (grub_target_to_host16): Likewise.
9675 (grub_host_to_target64): Likewise.
9676 (grub_host_to_target32): Likewise.
9677 (grub_host_to_target16): Likewise.
9678 (grub_host_to_target_addr): Likewise.
9679 (generate_image): Handle multiimage.
9680 (main): Require -O parameter. All users updated.
9681 * util/grub-mkimagexx.c: New file. Based on util/grub-mkrawimage.c and
9682 util/efi/grub-mkimage.c
9683 * util/grub-mkrescue.in: Handle coreboot, efi and qemu.
9684 New option --rom-directory.
9685 Use xorriso.
9686 * util/i386/efi/grub-mkimage.c: Removed.
9687 * util/i386/pc/grub-setup.c (grub_target_to_host16): New definition.
9688 (grub_target_to_host32): Likewise.
9689 (grub_target_to_host64): Likewise.
9690 (grub_host_to_target16): Likewise.
9691 (grub_host_to_target32): Likewise.
9692 (grub_host_to_target64): Likewise.
9693 * util/sparc64/ieee1275/grub-setup.c (grub_target_to_host16): New definition.
9694 (grub_target_to_host32): Likewise.
9695 (grub_target_to_host64): Likewise.
9696 (grub_host_to_target16): Likewise.
9697 (grub_host_to_target32): Likewise.
9698 (grub_host_to_target64): Likewise.
9699
f4fc97d0
BC
97002010-05-17 BVK Chaitanya <bvk.groups@gmail.com>
9701
9702 Source tree is reorganized for emu build.
9703
9704 * include/grub/util/console.h: Move from here...
9705 * include/grub/emu/console.h: ...to here.
9706 * include/grub/util/getroot.h: Move from here...
9707 * include/grub/emu/getroot.h: ...to here.
9708 * include/grub/util/hostdisk.h: Move from here...
9709 * include/grub/emu/hostdisk.h: ...to here.
9710 * util/console.c: Move from here...
9711 * kern/emu/console.c: ...to here.
9712 * util/getroot.c: Move from here...
9713 * kern/emu/getroot.c: ...to here.
9714 * util/grub-emu.c: Move from here...
9715 * kern/emu/main.c: ...to here.
9716 * util/hostdisk.c: Move from here...
9717 * kern/emu/hostdisk.c: ...to here.
9718 * util/hostfs.c: Move from here...
9719 * kern/emu/hostfs.c: ...to here.
9720 * util/mm.c: Move from here...
9721 * kern/emu/mm.c: ...to here.
9722 * util/pci.c: Move from here...
9723 * bus/emu/pci.c: ...to here.
9724 * util/sdl.c: Move from here...
9725 * video/emu/sdl.c: ...to here.
9726 * util/time.c: Move from here...
9727 * kern/emu/time.c: ...to here.
9728 * util/usb.c: Move from here...
9729 * bus/usb/emu/usb.c: ...to here.
9730
9731 * include/grub/emu/misc.h: New header for grub-emu functions.
9732 * kern/emu/misc.c: grub-emu functions separated from util/misc.c
9733
9734 * conf/any-emu.rmk: Rule updates for above renames.
9735 * conf/common.rmk: Likewise.
9736 * conf/i386-pc.rmk: Likewise.
9737 * conf/i386-qemu.rmk: Likewise.
9738 * conf/mips.rmk: Likewise.
9739 * conf/sparc64-ieee1275.rmk: Likewise.
9740 * conf/x86-efi.rmk: Likewise.
9741
9742 * disk/lvm.h: #include updates for above renames.
9743 * util/grub-mkrelpath.c: Likewise.
9744 * util/grub-probe.c: Likewise.
9745 * util/i386/pc/grub-setup.c: Likewise.
9746 * util/sparc64/ieee1275/grub-setup.c: Likewise.
9747 * kern/emu/console.c: Likewise.
9748 * kern/emu/getroot.c: Likewise.
9749 * kern/emu/hostdisk.c: Likewise.
9750 * kern/emu/main.c: Likewise. (was grub-emu.c earlier)
9751
9752 * include/grub/dl.h: Remove grub_dl_{ref,unref}.
9753 * include/grub/util/misc.h: Move grub-emu functions to emu/misc.h.
9754 * kern/dl.c: Handle null mod in grub_dl_{ref,unref}.
9755 * util/misc.c: Remove grub-emu functions.
9756
cced9145
VS
97572010-05-13 Vladimir Serbinenko <phcoder@gmail.com>
9758
9759 Fix gfxmenu crash.
9760 Reported by: Thorsten Grützmacher.
9761
9762 * gfxmenu/gui_circular_progress.c (circprog_destroy): Unregister
9763 timeout hook.
9764 (circprog_set_property): Register and unregister timeout hook.
9765 * gfxmenu/gui_label.c (grub_gui_label): New fields template and value.
9766 (label_destroy): Free template. and unregister hook.
9767 (label_set_state): New function.
9768 (label_set_property): Handle templates and hooks.
9769 * gfxmenu/gui_progress_bar.c (progress_bar_destroy): Unregister
9770 timeout hook.
9771 (progress_bar_set_property): Register and unregister timeout hook.
9772 * gfxmenu/view.c (TIMEOUT_COMPONENT_ID): Move from here ...
9773 * include/grub/gui.h (GRUB_GFXMENU_TIMEOUT_COMPONENT_ID): ...to here
9774 * gfxmenu/view.c (grub_gfxmenu_timeout_notifications): New variable.
9775 (update_timeout_visit): Removed.
9776 (update_timeouts): New function.
9777 (redraw_timeouts): Likewise.
9778 (grub_gfxmenu_print_timeout): Use update_timeouts and redraw_timeouts.
9779 (grub_gfxmenu_clear_timeout): Likewise.
9780 * include/grub/gui.h (grub_gfxmenu_set_state_t): New type.
9781 (grub_gfxmenu_timeout_notify): Likewise.
9782 (grub_gfxmenu_timeout_notifications): New external variable.
9783 (grub_gfxmenu_timeout_register): New function.
9784 (grub_gfxmenu_timeout_unregister): Likewise.
9785
c6e5caab
VS
97862010-05-09 Vladimir Serbinenko <phcoder@gmail.com>
9787
9788 Transform (broken) vga terminal into (working) vga video driver.
9789
9790 * conf/i386-pc.rmk (vga_mod_SOURCES): Change term/i386/pc/vga.c to
9791 video/i386/pc/vga.c.
9792 * include/grub/video.h (grub_video_driver_id):
9793 Add GRUB_VIDEO_DRIVER_VGA.
9794 * term/i386/pc/vga.c: Renamed to ...
9795 * video/i386/pc/vga.c: ...this
9796 (DEBUG_VGA): Removed.
9797 (CHAR_WIDTH): Likewise.
9798 (CHAR_HEIGHT): Likewise.
9799 (TEXT_WIDTH): Likewise.
9800 (TEXT_HEIGHT): Likewise.
9801 (DEFAULT_FG_COLOR): Likewise.
9802 (DEFAULT_BG_COLOR): Likewise.
9803 (colored_char): Likewise.
9804 (xpos): Likewise.
9805 (ypos): Likewise.
9806 (cursor_state): Likewise.
9807 (fg_color): Likewise.
9808 (bg_color): Likewise.
9809 (text_buf): Likewise.
9810 (page): Likewise.
9811 (font): Likewise.
9812 (framebuffer): New variable.
9813 (set_read_map): Disabled.
9814 (setup): New variable.
9815 (is_target): Likewise.
9816 (grub_vga_mod_init): Likewise.
9817 (grub_vga_mod_fini): Likewise.
9818 (check_vga_mem): Likewise.
9819 (write_char): Likewise.
9820 (write_cursor): Likewise.
9821 (scroll_up): Likewise.
9822 (grub_vga_putchar): Likewise.
9823 (grub_vga_getcharwidth): Likewise.
9824 (grub_vga_getwh): Likewise.
9825 (grub_vga_getxy): Likewise.
9826 (grub_vga_gotoxy): Likewise.
9827 (grub_vga_cls): Likewise.
9828 (grub_vga_setcolorstate): Likewise.
9829 (grub_vga_setcursor): Likewise.
9830 (grub_video_vga_init): New function.
9831 (grub_video_vga_setup): Likewise.
9832 (grub_video_vga_fini): Likewise.
9833 (update_target): Likewise.
9834 (grub_video_vga_blit_bitmap): Likewise.
9835 (grub_video_vga_blit_render_target): Likewise.
9836 (grub_video_vga_set_active_render_target): Likewise.
9837 (grub_video_vga_get_active_render_target): Likewise.
9838 (grub_video_vga_swap_buffers): Likewise.
9839 (grub_video_vga_set_palette): Likewise.
9840 (grub_video_vga_get_info_and_fini): Likewise.
9841 (grub_vga_term): Removed.
9842 (grub_video_vga_adapter): New variable.
9843 (GRUB_MOD_INIT): Register a video driver instead of terminal.
9844 (GRUB_MOD_FINI): Unrefister a video driver instead of terminal.
9845
2bf61a98
VS
98462010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
9847
9848 * video/readers/jpeg.c: Indented.
9849
09ddcd11
VS
98502010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
9851
9852 Various jpeg cleanups.
9853
9854 * video/readers/jpeg.c (grub_jpeg_get_huff_code): Use ARRAY_SIZE.
9855 (grub_jpeg_decode_quan_table): Use sizeof.
9856 (grub_jpeg_decode_du): Use ARRAY_SIZE.
9857
e5507505
PH
98582010-05-05 Peter Hurley <No e-mail available> (tiny change)
9859
9860 * video/readers/jpeg.c (grub_jpeg_decode_huff_table): Loop over all
9861 tables. Ignore non-last ac bit.
9862 (grub_jpeg_decode_quan_table): Likewise.
9863
7e720a9b
VS
98642010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
9865
9866 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New value
9867 GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM.
9868 * kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
9869 GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM on qemu.
9870 * kern/ieee1275/init.c (grub_claim_heap): Don0t allocate below
9871 1.5MiB if GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM is set.
9872
a7fc080b
VS
98732010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
9874
9875 * term/ieee1275/ofconsole.c (grub_ofconsole_getkey): Fix off-by-one
9876 error.
9877
2bf6012d
VS
98782010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
9879
9880 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Support C0 code.
9881
265d68cd
VS
98822010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
9883
9884 * commands/parttool.c (grub_cmd_parttool): Fix #if !GRUB_NO_MODULES
9885 condition.
9886
98872010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
7dd5a111
VS
9888
9889 * kern/mm.c (grub_real_malloc): Put magic and size assignment in common
9890 part.
9891
265d68cd 98922010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
9b058d52
VS
9893
9894 * kern/mm.c (grub_mm_init_region): Check for region size after aligning
9895 pointers.
9896
265d68cd 98972010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
25893831
VS
9898
9899 * kern/mm.c (grub_real_malloc): Fix size calculation when extra == 0.
9900
d1b61374
CF
99012010-05-01 Christian Franke <franke@computer.org>
9902
9903 * util/grub-mkconfig_lib.in (make_system_path_relative_to_its_root):
9904 Remove broken Cygwin path conversion.
9905 * util/misc.c: [__CYGWIN__] Add include and define.
9906 [__CYGWIN__] (get_win32_path): Copy function from getroot.c, modify
9907 for Cygwin 1.7.
9908 (make_system_path_relative_to_its_root): Simplify loop, replace early
9909 return by break.
9910 [__CYGWIN__] Add conversion to win32 path.
9911 Include "/" case in trailing slash removal.
9912
3558c6e9
VS
99132010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
9914
9915 * kern/main.c (grub_load_config): Fix copy-pasted comment.
9916 Reported by: Seth Goldberg
9917
f5f3ff93
VS
99182010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
9919
9920 * commands/help.c (grub_cmd_help): Fix a typo.
9921 Reported by: Seth Goldberg
9922
d8b5cd40
VS
99232010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
9924
9925 * commands/hashsum.c (GRUB_MOD_INIT): Remove duplication of command
9926 name and add N_.
9927 * commands/i386/pc/drivemap.c (GRUB_MOD_INIT): Likewise.
9928 * commands/iorw.c (GRUB_MOD_INIT): Likewise.
9929 * commands/password_pbkdf2.c (GRUB_MOD_INIT): Likewise.
9930 * commands/regexp.c (GRUB_MOD_INIT): Likewise.
9931 * commands/setpci.c (GRUB_MOD_INIT): Likewise.
9932 * commands/terminal.c (GRUB_MOD_INIT): Likewise.
9933 * efiemu/main.c (GRUB_MOD_INIT): Likewise.
9934 * font/font_cmd.c (GRUB_MOD_INIT): Likewise.
9935 * kern/corecmd.c (GRUB_MOD_INIT): Likewise.
9936 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
9937 * normal/context.c (GRUB_MOD_INIT): Likewise.
9938 * normal/main.c (GRUB_MOD_INIT): Likewise.
9939 * term/gfxterm.c (GRUB_MOD_INIT): Likewise.
9940 * term/serial.c (GRUB_MOD_INIT): Likewise.
9941 * term/terminfo.c (GRUB_MOD_INIT): Likewise.
9942
88c14915
VS
99432010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
9944
9945 * kern/mm.c (grub_real_malloc): Satisfy alignment requirement when
9946 extra == 0.
9947
165134bc
VS
99482010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
9949
9950 * commands/iorw.c: New file.
9951 * conf/i386.rmk (pkglib_MODULES): Add iorw.mod.
9952 (iorw_mod_SOURCES): New variable.
9953 (iorw_mod_CFLAGS): Likewise.
9954 (iorw_mod_LDFLAGS): Likewise.
9955
c5ac9b32
VS
99562010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
9957
9958 Hotkey support
9959
9960 * include/grub/menu.h (grub_menu_entry): New field 'hotkey'.
9961 * normal/main.c (hotkey_aliases): New variable.
9962 (grub_normal_add_menu_entry): Parse "--hotkey".
9963 * normal/menu_text.c (run_menu): Handle hotkeys.
9964
ce60689c
VS
99652010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
9966
9967 * kern/i386/coreboot/init.c (grub_machine_init): Call
9968 grub_machine_mmap_init on qemu.
9969
0359d006
VS
99702010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
9971
9972 * boot/i386/qemu/boot.S: Add a missing .code16.
9973
7819a456
VS
99742010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
9975
9976 Use LBIO on coreboot.
9977
9978 * conf/i386-coreboot.rmk (kernel_img_SOURCES): Change
9979 kern/i386/multiboot_mmap.c to kern/i386/coreboot/mmap.c.
9980 * include/grub/i386/coreboot/memory.h (GRUB_LINUXBIOS_MEMBER_LINK):
9981 New declaration.
9982 * kern/i386/coreboot/init.c (grub_machine_init): Don't call
9983 grub_machine_mmap_init on coreboot.
9984 * kern/i386/coreboot/mmap.c (grub_linuxbios_table_iterate): Handle
9985 GRUB_LINUXBIOS_MEMBER_LINK.
9986 (grub_machine_mmap_iterate): Fix declaration.
9987 * kern/i386/coreboot/startup.S: Don't save mbi location on coreboot.
9988
7210dca9
VS
99892010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
9990
9991 Split coreboot and multiboot ports.
9992
9993 * conf/i386-multiboot.rmk: New file.
9994 * configure.ac: Add multiboot port.
9995 * include/grub/i386/multiboot/boot.h: New file.
9996 * include/grub/i386/multiboot/console.h: Likewise.
9997 * include/grub/i386/multiboot/init.h: Likewise.
9998 * include/grub/i386/multiboot/kernel.h: Likewise.
9999 * include/grub/i386/multiboot/loader.h: Likewise.
10000 * include/grub/i386/multiboot/memory.h: Likewise.
10001 * include/grub/i386/multiboot/serial.h: Likewise.
10002 * include/grub/i386/multiboot/time.h: Likewise.
10003 * include/grub/multiboot.h: Add GRUB_MACHINE_MULTIBOOT to ifdef.
10004 * loader/multiboot.c: Likewise.
10005 * loader/multiboot_mbi2.c: Likewise.
10006 * util/grub-mkrescue.in: Generate multiboot rescue.
10007
6f8aaf68
VS
100082010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10009
3080f7a7
VS
10010 * kern/parser.c (grub_parser_execute): Cope with read-only config.
10011
100122010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10013
10014 Merge handling of input and output terminals. Fix a hang.
6f8aaf68
VS
10015
10016 * commands/terminal.c (abstract_terminal): New struct.
10017 (handle_command): New function. Based on grub_cmd_terminal_input.
10018 (grub_cmd_terminal_input): Use handle_command.
10019 (grub_cmd_terminal_output): Use handle_command.
10020
a8ebb841
BC
100212010-05-01 BVK Chaitanya <bvk.groups@gmail.com>
10022
10023 Fix comment handling.
10024
10025 * tests/grub_script_comments.in: New testcase.
10026 * conf/tests.rmk: Rules for new testcase.
10027 * script/yylex.l: Updated flex rules.
10028
bb06ba08
ST
100292010-04-28 Samuel Thibault <samuel.thibault@ens-lyon.org>
10030
10031 * docs/grub.texi (play): Document that zero pitches produce rests.
c76a1838
ST
10032 * commands/i386/pc/play.c (grub_cmd_play): Call 'grub_file_open' only
10033 if argc is 1.
bb06ba08 10034
cc9d2425
VS
100352010-04-27 Vladimir Serbinenko <phcoder@gmail.com>
10036
10037 * conf/x86-efi.rmk (linux_mod_SOURCES): Write explicitly to avoid
10038 autogen issues.
10039
460d8402
CF
100402010-04-26 Christian Franke <franke@computer.org>
10041
10042 * include/grub/util/getroot.h (grub_get_prefix): Remove prototype.
10043 * util/getroot.c [__CYGWIN__] (get_win32_path): Remove function.
10044 (grub_get_prefix): Remove function.
10045 * util/grub-emu.c (main): Replace grub_get_prefix () call by
10046 make_system_path_relative_to_its_root ().
10047 * util/sparc64/ieee1275/grub-setup.c (main): Likewise.
10048
553c01f9
CF
100492010-04-24 Christian Franke <franke@computer.org>
10050
10051 * Makefile.in (TARGET_LDFLAGS): Add -static-libgcc.
10052 (kernel_img_LDFLAGS): Remove -static-libgcc.
10053
2aec1692
CF
100542010-04-24 Christian Franke <franke@computer.org>
10055
10056 * configure.ac: Do not CHECK_BSS_START_SYMBOL
10057 and CHECK_END_SYMBOL if grub-emu is built.
10058 Unset TARGET_OBJ2ELF if grub-emu is built
10059 without module support.
10060
f67dc308
JS
100612010-04-24 Jiro SEKIBA <jir@unicus.jp>
10062
10063 Nilfs2 support.
10064
10065 * conf/common.rmk (grub_probe_SOURCES): Add fs/nilfs2.c.
10066 (grub_fstest_SOURCES): Likewise.
10067 (pkglib_MODULES): Add nilfs2.mod.
10068 (nilfs2_mod_SOURCES): New variable.
10069 (nilfs2_mod_CFLAGS): Likewise.
10070 (nilfs2_mod_LDFLAGS): Likewise.
10071 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/nilfs2.c.
10072 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Add fs/nilfs2.c.
10073 * fs/nilfs2.c: New file.
10074
4ba8d354
VS
100752010-04-21 Vladimir Serbinenko <phcoder@gmail.com>
10076
10077 * configure.ac: Refuse to compile for x86_64-efi is mcmodel=large
10078 is not supported.
10079
0d2c20c6
GS
100802010-04-19 Grégoire Sutre <gregoire.sutre@gmail.com>
10081
10082 Add grub-mkconfig support for NetBSD.
10083
10084 * util/grub.d/10_netbsd.in: grub-mkconfig helper script for NetBSD.
10085 * util/grub-mkconfig.in: export new NetBSD specific variables.
10086 * po/POTFILES-shell: added 10_netbsd.in.
10087 * util/grub-mkconfig_lib.in: check for gettext binary, default to echo.
10088
bc4a2d83
BC
100892010-04-19 BVK Chaitanya <bvk.groups@gmail.com>
10090
10091 Fix emu build with grub-emu-pci and grub-emu-modules.
10092
10093 * include/grub/util/misc.h: Export grub_util_{info,error,warn}
10094 functions.
10095 * include/grub/libpciaccess.h: New file.
10096 * conf/any-emu.rmk: Update kernel headers for emu build.
10097
f48c87aa
VS
100982010-04-19 Vladimir Serbinenko <phcoder@gmail.com>
10099
10100 * fs/udf.c (grub_udf_iterate_dir): Silence a spurious warning.
10101
18959385
VS
101022010-04-19 Vladimir Serbinenko <phcoder@gmail.com>
10103
10104 * fs/udf.c (grub_udf_iterate_dir): Decode the Unicode filenames.
10105
0037de3f
VS
101062010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
10107
10108 * boot/sparc64/ieee1275/boot.S: Various size-reducing changes.
10109 Retrieve chosen/bootpath if bootpath isn't hardcoded.
10110 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Add
10111 util/ieee1275/ofpath.c.
10112 * util/sparc64/ieee1275/grub-ofpathname.c: Renamed to ...
10113 * util/ieee1275/grub-ofpathname.c: ... this. All users updated
10114 * include/grub/sparc64/ieee1275/boot.h
10115 (GRUB_BOOT_MACHINE_KERNEL_SECTOR): Renamed to ...
10116 (GRUB_BOOT_MACHINE_KERNEL_BYTE): ...this. Moved 8 bytes lower.
10117 * util/hostdisk.c (grub_util_biosdisk_get_osdev): New function.
10118 * util/ieee1275/ofpath.c (grub_util_devname_to_ofpath): Make argument
10119 const char *.
10120 * util/sparc64/ieee1275/grub-setup.c (compute_dest_ofpath): Removed.
10121 (setup): Use KERNEL_BYTE instead of KERNEL_SECTOR.
10122 Use grub_util_devname_to_ofpath. Zero-fill boot_devpath on same disk
10123 install.
10124
38e55e90
GS
101252010-04-18 Grégoire Sutre <gregoire.sutre@gmail.com>
10126
10127 * util/grub-mkconfig.in: Corrected two == equality tests.
10128 Set grub_prefix as in grub-install for NetBSD and OpenBSD.
10129 * configure.ac: All definitions and uses of TARGET_IMG_LDFLAGS_AC now
10130 expect a number appended to it.
10131 * acinclude.m4 (grub_PROG_OBJCOPY_ABSOLUTE): ${TARGET_IMG_LDFLAGS_AC}
10132 expects a number appended to it.
10133
a9e6ff28
VS
101342010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
10135
10136 * po/POTFILES: Renamed multiboot_loader.c to multiboot.c
10137
0b830b8f
VS
101382010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
10139
10140 * util/hostdisk.c (make_device_name): Change to new partition naming.
10141
0973daeb
VS
101422010-04-17 Vladimir Serbinenko <phcoder@gmail.com>
10143
10144 * disk/lvm.c (grub_lvm_memberlist): Issue an error if pv->disk = 0.
10145
460d8402 101462010-04-17 Christian Franke <franke@computer.org>
ebfe7eb4
CF
10147
10148 * Makefile.in: Add missing localedir setting.
10149
0b456309
CW
101502010-04-14 Colin Watson <cjwatson@ubuntu.com>
10151
10152 Restore TEXTDOMAINDIR correction from r1889, lost apparently by
10153 mistake in r2156. Noticed by Anthony Fok.
10154
10155 * util/grub.d/10_kfreebsd.in (TEXTDOMAINDIR): Set to lowercased
10156 @localedir@.
10157 * util/grub.d/10_linux.in (TEXTDOMAINDIR): Likewise.
10158
08f46d62
BC
101592010-04-14 BVK Chaitanya <bvk.groups@gmail.com>
10160
10161 Fix a spurious, uninitialized variable warning.
10162
10163 * loader/i386/bsdXX.c (grub_freebsd_load_elfmodule_obj):
10164 Initialize variable, shdr.
10165 (grub_freebsd_load_elfmodule): Likewise.
10166 (grub_freebsd_load_elf_meta): Likewise.
10167
8c4a72d4
BC
101682010-04-13 BVK Chaitanya <bvk.groups@gmail.com>
10169
10170 Fix for escaped dollar in double quoted strings.
10171
10172 * script/yylex.l: Updated flex rules.
10173 * conf/tests.rmk: Rule for new testcase.
10174 * tests/grub_script_dollar.in: New testcase.
10175
ce44826e
CPE
101762010-04-13 Carles Pina i Estany <carles@pina.cat>
101772010-04-13 Colin Watson <cjwatson@ubuntu.com>
10178
10179 Enclose all translated strings in grub.cfg in single quotes, and
10180 escape them appropriately (Ubuntu bug #552921).
10181
10182 * util/grub-mkconfig_lib.in (gettext_quoted): New function.
10183 * util/grub.d/10_hurd.in: Use it.
10184 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
10185 * util/grub.d/10_linux.in (linux_entry): Likewise.
10186
4b0cd8f8
VS
101872010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
10188
10189 Fix cygwin compilation.
10190
10191 * configure.ac: Define NEED_REGISTER_FRAME_INFO.
10192 * include/grub/misc.h (__register_frame_info)
10193 [NEED_REGISTER_FRAME_INFO && !UTIL]: New export.
10194 (__deregister_frame_info) [NEED_REGISTER_FRAME_INFO && !UTIL]: Likewise.
10195 * kern/misc.c (__register_frame_info)
10196 [NEED_REGISTER_FRAME_INFO && !UTIL]: New empty function.
10197 (__deregister_frame_info) [NEED_REGISTER_FRAME_INFO && !UTIL]: Likewise.
10198
01fcf061
VS
101992010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
10200
10201 * configure.ac: Respect grub_cv_asm_uscore when defining dummy symbols.
10202
5d04b11e
VS
102032010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
10204
10205 Unify libgcc processing.
10206
10207 * Makefile.in (kernel_img_LDFLAGS): New variable.
10208 * conf/common.rmk (kernel_img_HEADERS): Add libgcc.h.
10209 * conf/i386-coreboot.rmk (kernel_img_LDFLAGS): Append instead of
10210 overwriting.
10211 * conf/i386-ieee1275.rmk (kernel_img_LDFLAGS): Likewise.
10212 * conf/i386-pc.rmk (kernel_img_LDFLAGS): Likewise.
10213 * conf/i386-qemu.rmk (kernel_img_LDFLAGS): Likewise.
10214 * conf/x86-efi.rmk (kernel_img_LDFLAGS): Likewise.
10215 * conf/mips-qemu-mips.rmk (kernel_img_LDFLAGS): Append instead of
10216 overwriting. Remove -lgcc and -static-libgcc
10217 * conf/mips-yeeloong.rmk (kernel_img_LDFLAGS): Likewise.
10218 * conf/mips.rmk (kernel_img_HEADERS): Remove cpu/libgcc.h
10219 * conf/powerpc-ieee1275.rmk (kernel_img_HEADERS): Remove cpu/libgcc.h
10220 (kernel_img_LDFLAGS): Append instead of overwriting.
10221 Remove -lgcc and -static-libgcc
10222 * conf/sparc64-ieee1275.rmk: Likewise.
10223 * include/grub/powerpc/libgcc.h: Move to ...
10224 * include/grub/libgcc.h: .. this.
10225 * include/grub/libgcc.h: Don't export most of the function on x86.
10226 (__bswapsi2): New export.
10227 (__bswapdi2): Likewise.
10228 * include/grub/mips/libgcc.h: Removed.
10229 * include/grub/sparc64/libgcc.h: Likewise.
10230
b7f3ac29
VS
102312010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
10232
10233 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Remove
10234 disk_info_msg (conflicts with gettexting into languages with cases).
10235
2c7031b1
GS
102362010-04-10 Grégoire Sutre <gregoire.sutre@gmail.com>
10237
10238 Add grub-probe support for NetBSD.
10239
10240 * util/getroot.c (find_root_device): Convert block device to
10241 character device on NetBSD.
10242 * util/probe.c (probe): Require character device on NetBSD.
10243 * util/hostdisk.c: NetBSD specific headers.
10244 (configure_device_driver): new function to tune device driver
10245 parameters (currently only for NetBSD floppy driver).
10246 (grub_util_biosdisk_open): NetBSD specific code (get disk size
10247 via disklabel ioctl).
10248 (open_device): call configure_device_driver on NetBSD.
10249 (convert_system_partition_to_system_disk): NetBSD specific code.
10250 (device_is_wholedisk): Likewise.
10251 (grub_util_biosdisk_get_grub_dev): Likewise.
10252 (make_device_name): Fixed a typo in bsd_part_str.
10253 * configure.ac: check for opendisk() and getrawpartition() on
10254 NetBSD and set LIBUTIL.
10255 * Makefile.in: add LIBUTIL to LIBS.
10256
f516290c
BC
102572010-04-10 BVK Chaitanya <bvk.groups@gmail.com>
10258
10259 Documentation fix.
10260
10261 * util/grub-script-check.c: Better help message.
10262
d8dcc0df
BC
102632010-04-10 BVK Chaitanya <bvk.groups@gmail.com>
10264
10265 Fix FreeBSD build.
10266
10267 * configure.ac: Flex version check.
10268 * conf/common.rmk: Add -Wno-error to sh.mod.
10269 * script/yylex.l: Remove all #pragma.
10270
6734334a
VS
102712010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
10272
10273 * include/grub/util/misc.h (canonicalise_file_name): Add missing
10274 prototype.
10275 Reported by: Seth Goldberg.
10276
daea6abd
VS
102772010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
10278
10279 * loader/multiboot.c (GRUB_MOD_INIT) [GRUB_USE_MULTIBOOT2]:
10280 Rename "module" to "module2".
10281 Reported by: Seth Goldberg.
10282
f2fd9d2b
VS
102832010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
10284
10285 * include/grub/efi/memory.h (grub_machine_mmap_iterate): Remove
10286 EXPORT_FUNC.
10287 Reported by: Seth Goldberg.
10288
be124579
VS
102892010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
10290
10291 * lib/posix_wrap/locale.h: Add missing file.
10292 Reported by: Seth Goldberg.
10293
ef5da797
VS
102942010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
10295
10296 grub-emu module load support.
10297
10298 * Makefile.in (TARGET_NO_MODULES): New variable. All users of
10299 NO_DYNAMIC_MODULES switched to this.
10300 (TARGET_CFLAGS): Add -DGRUB_TARGET_NO_MODULES=1 if applicable.
10301 (CFLAGS): Likewise.
10302 * conf/any-emu.rmk: Generate symlist.
10303 (kernel_img_HEADERS): Add util/datetime.h.
10304 (kernel_img_HEADERS) [sdl]: Add sdl.h.
10305 (kernel_img_HEADERS) [libusb]: Add libusb.h.
10306 (kernel_img_SOURCES) [TARGET_NO_MODULES = no && !x86]: Add
10307 kern/$(target_cpu)/cache.S.
10308 * configure.ac (grub-emu-modules): New option.
10309 * genmk.rb: Handle multiple source lists.
10310 * include/grub/sdl.h: New file.
10311 * include/grub/libusb.h: Likewise.
10312 * util/grub-emu.c (main): Hanle (host) root.
10313 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Error with
10314 GRUB_ERR_UNKNOWN_DEVICE.
10315 * util/misc.c: Move mm functions to ...
10316 * util/mm.c: ... here. All users updated.
10317
47822096
VS
103182010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
10319
10320 * Makefile.in (RMKFILES): Search in srcdir and not current directory.
10321 (MAINTAINER_CLEANFILES): Don't add $(srcdir) to MKFILES. Add few
10322 missing files.
10323 (maintainer-clean): Remove libgcrypt-grub.
10324
5d7e7445
VS
103252010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
10326
10327 * term/efi/console.c (grub_console_checkkey): Macroify key contants.
10328
25f4e252
EC
103292010-04-09 EFI Coder <eficoder@hotmail.com>
10330
10331 * normal/menu_text.c (print_message): Clean up the message and show
10332 the Fn information when on EFI
10333 * term/efi/console.c (grub_console_checkkey): Add F4 support.
10334
027de555
VS
103352010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
10336
10337 * normal/autofs.c (read_fs_list): New parameter 'prefix'.
10338 All users updated.
10339 * normal/crypto.c (read_crypto_list): Likewise.
10340 * normal/dyncmd.c (read_command_list): Likewise.
10341 * normal/term.c (read_terminal_list): Likewise.
10342 * normal/main.c (read_lists): Use explicit prefix.
10343 (read_lists_hook): Use read_lists.
10344 (grub_normal_execute): Likewise.
10345
47779711
VS
103462010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
10347
10348 * util/grub-mkrescue.in: Fix incorrect path in coreboot part.
10349 Reported by: Thomas Schmitt.
10350 Add -no-emul-boot to grub-mkisofs parameters.
10351
1118c32e
VS
103522010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
10353
10354 * font/font.c: Indented.
10355
7d652447
BC
103562010-04-09 BVK Chaitanya <bvk.groups@gmail.com>
10357
10358 Elif support to GRUB script (by Deepak Vankadaru).
10359
10360 * tests/grub_script_if.in: New testcase.
10361 * conf/tests.rmk: Rule for new testcase.
10362 * script/parser.y: Grammar rules for elif.
10363
34bb22df
BC
103642010-04-09 BVK Chaitanya <bvk.groups@gmail.com>
10365
10366 While and until loops support to GRUB script.
10367
10368 * include/grub/script_sh.h (grub_script_cmdwhile): New struct.
10369 (grub_script_create_cmdwhile): New function prototype.
10370 (grub_script_execute_cmdwhile): New function prototype.
10371 * script/execute.c (grub_script_execute_cmdwhile): New function.
10372 * script/parser.y (command): New commands.
10373 (whilecmd): New grammar rule.
10374 (untilcmd): New grammar rule.
10375 * script/script.c (grub_script_create_cmdwhile): New function.
10376 * util/grub-script-check.c (grub_script_execute_cmdwhile): New
10377 function.
10378
10379 * tests/grub_script_while1.in: New testcase.
10380 * conf/tests.rmk: Rule for new testcase.
10381
e215d8e0
VS
103822010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
10383
10384 * util/grub.d/00_header.in: Add few missing quotes. Recognise *.jpeg
10385 as *.jpg.
10386
d7c43ba1
MV
103872010-04-09 Mario Vazquez <mariovazq@gmail.com>
10388
10389 GRUB_BACKGROUND support.
10390
10391 * util/grub-mkconfig.in: Export GRUB_BACKGROUND.
10392 * util/grub.d/00_header.in: Parse GRUB_BACKGROUND.
10393
d64795c0
VS
103942010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
10395
10396 Load fonts and modules for gfxmenu in grub-mkconfig.
d7c43ba1 10397 Idea by: Mario Vazquez
d64795c0
VS
10398
10399 * util/grub.d/00_header.in: Load pf2 and image modules.
10400
f267f83a
VS
104012010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
10402
10403 grub-mkconfig multiple terminal support.
10404
10405 * util/grub-mkconfig.in: Handle multiple terminals correctly.
10406 * util/grub.d/00_header.in: Likewise.
10407
b7841ceb
VS
104082010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
10409
10410 * Makefile.in: Specify files explicitly instead of using $< and $@ since
10411 we use cd $(srcdir).
10412
df60998c
CW
104132010-04-08 Colin Watson <cjwatson@ubuntu.com>
10414
10415 * util/grub.d/10_linux.in: Only use the first word of
10416 GRUB_DISTRIBUTOR for --class, to avoid problems if somebody puts
10417 spaces in GRUB_DISTRIBUTOR.
10418 * util/grub.d/10_kfreebsd.in: Likewise.
10419 * util/grub.d/10_hurd.in: Likewise.
10420
fa09c82e
BC
104212010-04-06 BVK Chaitanya <bvk.groups@gmail.com>
10422
14e18ae3 10423 Fix unit testing framework for Qemu 0.12.
fa09c82e
BC
10424
10425 * tests/util/grub-shell.in: Remove -serial stdio option.
10426
daf892b3
BC
104272010-04-06 Vladimir Serbinenko <phcoder@gmail.com>
10428
10429 POSIX header file wrappers.
10430
10431 * lib/posix_wrap/assert.h: New file. Wrapper for its POSIX
10432 equivalents.
10433 * lib/posix_wrap/ctype.h: Likewise.
10434 * lib/posix_wrap/errno.h: Likewise.
10435 * lib/posix_wrap/langinfo.h: Likewise.
10436 * lib/posix_wrap/limits.h: Likewise.
10437 * lib/posix_wrap/localcharset.h: Likewise.
10438 * lib/posix_wrap/stdint.h: Likewise.
10439 * lib/posix_wrap/stdio.h: Likewise.
10440 * lib/posix_wrap/stdlib.h: Likewise.
10441 * lib/posix_wrap/string.h: Likewise.
10442 * lib/posix_wrap/sys/types.h: Likewise.
10443 * lib/posix_wrap/unistd.h: Likewise.
10444 * lib/posix_wrap/wchar.h: Likewise.
10445 * lib/posix_wrap/wctype.h: Likewise.
10446 * conf/common.rmk (grub_script.yy.c): Remove #include elimination.
10447 (grub_script.yy.h): Likewise.
10448 * script/yylex.l: Remove POSIX emulation #defines.
10449 * Makefile.in (POSIX_CFLAGS): New variable.
10450 (GNULIB_UTIL_CFLAGS): Likewise.
10451
10452 Regexp support.
10453
10454 * conf/common.rmk (pkglib_MODULES): Add regexp.mod.
10455 (regexp_mod_SOURCES): New variable.
10456 (regexp_mod_CFLAGS): Likewise.
10457 (regexp_mod_LDFLAGS): Likewise.
10458 * commands/regexp.c: New file.
10459 * gnulib/regcomp.c: New file. Imported from gnulib.
10460 * gnulib/regex.c: Likewise.
10461 * gnulib/regex_internal.c: Likewise.
10462 * gnulib/regex_internal.h: Likewise.
10463 * gnulib/regexec.c: Likewise.
10464 * gnulib/regex.h: Likewise.
10465
974ac4f7
VS
104662010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
10467
10468 * loader/i386/multiboot_mbi.c (grub_multiboot_load): Correctly report
10469 unsupported video mode types.
10470
2622c3ff
VS
104712010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
10472
10473 * kern/i386/pc/startup.S (grub_getrtsecs): Removed (dead code).
10474
064cb524
VS
104752010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
10476
10477 * include/grub/i386/pc/init.h (grub_get_mmap_entry): Don't export.
10478 * conf/i386-pc.rmk (kernel_img_HEADERS): Remove machine/init.h.
10479
a8c3b552
VS
104802010-04-04 Vladimir Serbinenko <phcoder@gmail.com>
10481
10482 Remove unused grub_vga_get_font.
10483
10484 * kern/i386/pc/startup.S (grub_vga_get_font): Removed.
10485 * include/grub/i386/pc/vga.h (grub_vga_get_font): Likewise.
10486
187bbe3d
GS
104872010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
10488
10489 * kern/misc.c: Disable the __enable_execute_stack hack for utilities.
10490 * include/grub/misc.h: Likewise.
10491
b9396631
GS
104922010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
10493
10494 * util/grub-install.in: Add `|| exit 1' to all grub-probe calls
10495 for which failure is fatal.
10496
50479feb
GS
104972010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
10498
10499 * util/grub-install.in: Use mkdir -p to create grub directory.
10500 * util/i386/efi/grub-install.in: Likewise.
10501 * util/ieee1275/grub-install.in: Likewise.
10502
b1654fdf
GS
105032010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
10504
10505 * Makefile.in (LEX): new variable.
10506
bd5a6415
GS
105072010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
10508
10509 * util/i386/efi/grub-dumpdevtree: replaced the non-portable `==' by
10510 `=' and added double quotes on operands of this equality test.
10511
3db3a82b
VS
105122010-04-03 Vladimir Serbinenko <phcoder@gmail.com>
10513
10514 * Makefile.in (uninstall): Remove a leftover debug echo.
10515 Reported by: Grégoire Sutre
10516
38023412
VS
105172010-04-03 Vladimir Serbinenko <phcoder@gmail.com>
10518
10519 MIPS multiboot2 support.
10520
10521 * conf/mips.rmk (pkglib_MODULES): Add multiboot2.mod.
10522 (multiboot2_mod_SOURCES): New variable.
10523 (multiboot2_mod_CFLAGS): Likewise.
10524 (multiboot2_mod_LDFLAGS): Likewise.
10525 (multiboot2_mod_ASFLAGS): Likewise.
10526 * include/grub/i386/multiboot.h (MULTIBOOT_INITIAL_STATE): New
10527 definition.
10528 (MULTIBOOT_ENTRY_REGISTER): Likewise.
10529 (MULTIBOOT_MBI_REGISTER): Likewise.
10530 (MULTIBOOT_ARCHITECTURE_CURRENT): Likewise.
10531 (MULTIBOOT_ELF32_MACHINE): Likewise.
10532 (MULTIBOOT_ELF64_MACHINE): Likewise.
10533 * include/grub/mips/multiboot.h: New file.
10534 * include/grub/video.h (grub_video_driver_id): New type
10535 GRUB_VIDEO_DRIVER_SM712.
10536 (grub_video_get_info_and_fini): Export.
10537 (grub_video_get_palette): Likewise.
10538 (grub_video_get_driver_id): Likewise.
10539 * include/multiboot2.h: Resynced with spec.
10540 * loader/i386/multiboot.c: Moved from here ...
10541 * loader/multiboot.c: ... here. All users updated.
10542 (grub_multiboot_boot): Use platform-specific macros.
10543 * loader/i386/multiboot_elfxx.c: Moved from here ...
10544 * loader/multiboot_elfxx.c: ... here. All users updated.
10545 (E_MACHINE): Use MULTIBOOT_ELF32_MACHINE and MULTIBOOT_ELF64_MACHINE.
10546 * loader/i386/multiboot_mbi2.c (grub_multiboot_load): Check arcitecture.
10547 * video/sm712.c (grub_video_sm712_adapter): Add missing id field.
10548
47674667
VS
105492010-04-02 Vladimir Serbinenko <phcoder@gmail.com>
10550
10551 Import gnulib argp module.
10552
10553 * gnulib/argp-ba.c: New file.
10554 * gnulib/argp-eexst.c: Likewise.
10555 * gnulib/argp-fmtstream.c: Likewise.
10556 * gnulib/argp-fmtstream.h: Likewise.
10557 * gnulib/argp-fs-xinl.c: Likewise.
10558 * gnulib/argp-help.c: Likewise.
10559 * gnulib/argp-namefrob.h: Likewise.
10560 * gnulib/argp-parse.c: Likewise.
10561 * gnulib/argp-pin.c: Likewise.
10562 * gnulib/argp-pv.c: Likewise.
10563 * gnulib/argp-pvh.c: Likewise.
10564 * gnulib/argp-version-etc.c: Likewise.
10565 * gnulib/argp-version-etc.h: Likewise.
10566 * gnulib/argp-xinl.c: Likewise.
10567 * gnulib/argp.h: Likewise.
10568
495442ed
VS
105692010-03-31 Vladimir Serbinenko <phcoder@gmail.com>
10570
10571 * kern/device.c (grub_device_iterate): Clear errors after failed
10572 opening device.
10573
f9fd65df
VS
105742010-03-31 Vladimir Serbinenko <phcoder@gmail.com>
10575
10576 * kern/ieee1275/openfw.c (grub_children_iterate): Skip device itself if
10577 returned by firmware.
10578
af09641e
VS
105792010-03-30 Vladimir Serbinenko <phcoder@gmail.com>
10580
10581 * loader/i386/multiboot_mbi2.c (retrieve_video_parameters): Fix
10582 compilation on coreboot and qemu
10583
016883a5
VS
105842010-03-28 Vladimir Serbinenko <phcoder@gmail.com>
10585
10586 * include/multiboot2.h: Resync with spec.
10587
f97e1f7d
VS
105882010-03-28 Vladimir Serbinenko <phcoder@gmail.com>
10589
10590 Multiboot2 tag support
10591
10592 * conf/i386.rmk (multiboot2_mod_SOURCES): Replace
10593 loader/i386/multiboot_mbi.c with loader/i386/multiboot_mbi2.c.
10594 Remove loader/multiboot_loader.c.
10595 * include/grub/i386/multiboot.h (grub_multiboot_real_boot): Removed.
10596 (grub_multiboot2_real_boot): Likewise.
10597 * include/grub/multiboot.h (grub_multiboot_set_accepts_video): Removed.
10598 (grub_get_multiboot_mmap_count): New proto.
10599 (grub_fill_multiboot_mmap): Likewise.
10600 (grub_multiboot_set_video_mode): Likewise.
10601 (grub_multiboot_set_console): Likewise.
10602 (grub_multiboot_load): Likewise.
10603 (grub_multiboot_load_elf): Likewise.
10604 (GRUB_MULTIBOOT_CONSOLE_EGA_TEXT): New definition.
10605 (GRUB_MULTIBOOT_CONSOLE_FRAMEBUFFER): Likewise.
10606 * include/multiboot.h: Resynced with specification.
10607 * include/multiboot2.h: Resynced with specification.
10608 * loader/i386/multiboot_mbi.c (DEFAULT_VIDEO_MODE): Moved from here...
10609 * loader/i386/multiboot.c (DEFAULT_VIDEO_MODE): ... here.
10610 * loader/i386/multiboot_mbi.c (HAS_VGA_TEXT): Moved from here ..
10611 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VGA_TEXT): ... here. All
10612 users updated.
10613 * loader/i386/multiboot_mbi.c (accepts_video): Moved from here...
10614 * loader/i386/multiboot.c (accepts_video): ... here. All users updated.
10615 * loader/i386/multiboot_mbi.c (grub_multiboot_set_accepts_video):
10616 Removed.
10617 * loader/i386/multiboot_mbi.c (grub_get_multiboot_mmap_len):
10618 Moved from here...
10619 * loader/i386/multiboot.c (grub_get_multiboot_mmap_len): ... here.
10620 * loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap):
10621 Moved from here...
10622 * loader/i386/multiboot.c (grub_fill_multiboot_mmap): ... here.
10623 * loader/i386/multiboot_mbi.c (set_video_mode): Moved from here...
10624 * loader/i386/multiboot.c (grub_multiboot_set_video_mode): ... here.
10625 All users updated.
10626 * loader/i386/multiboot_mbi2.c: New file.
10627
3506b90b
VS
106282010-03-27 Vladimir Serbinenko <phcoder@gmail.com>
10629
10630 Resync with gnulib.
10631
10632 * Makefile.in (GNULIB_CFLAGS): New variable.
10633 * conf/common.rmk (grub_mkisofs_CFLAGS): Add GNULIB_CFLAGS.
10634 (grub_script_check_CFLAGS): New variable.
10635 * gnulib/alloca.h: Resync with gnulib.
10636 * gnulib/error.c: Likewise.
10637 * gnulib/error.h: Likewise.
10638 * gnulib/fnmatch.c: Likewise.
10639 * gnulib/fnmatch_loop.c: Likewise.
10640 * gnulib/getdelim.c: Likewise.
10641 * gnulib/getline.c: Likewise.
10642 * gnulib/getopt.c: Likewise.
10643 * gnulib/getopt1.c: Likewise.
10644 * gnulib/getopt_int.h: Likewise.
10645 * gnulib/gettext.h: Likewise.
10646 * gnulib/progname.c: Likewise.
10647 * gnulib/progname.h: Likewise.
10648
394a3120
GS
106492010-03-27 Grégoire Sutre <gregoire.sutre@gmail.com>
10650
10651 Fix a build failure (-Wundef -Werror) when ENABLE_NLS is not defined,
10652 which is the case with --disabled-nls.
10653
10654 * include/grub/i18n.h: Use (defined(ENABLE_NLS)
10655 && ENABLE_NLS) instead of ENABLE_NLS in all #if preprocessor macros.
10656 * util/misc.c: Likewise.
10657 * util/mkisofs/mkisofs.c: Likewise.
10658 * util/mkisofs/mkisofs.h: Likewise.
10659
969d1c78
VS
106602010-03-27 Vladimir Serbinenko <phcoder@gmail.com>
10661
10662 Simplify Apple CC support.
10663
10664 * commands/i386/pc/drivemap_int13h.S: Use LOCAL when possible.
10665 Add 0 byte at the end not to have a symbol with empty target.
10666 * mmap/i386/pc/mmap_helper.S: Likewise.
10667 * genmk.rb: Ignore errors 2030 and 2050.
10668 * kern/i386/pc/startup.S: Use LOCAL when possible.
10669
8d2977bb
BC
106702010-03-26 BVK Chaitanya <bvk.groups@gmail.com>
10671
10672 Testcase and the fix for final semicolon on cmdline.
10673
10674 * tests/grub_script_final_semicolon.in: New testcase.
10675 * conf/tests.rmk: Rules for the new testcase.
10676 * script/parser.y: Grammar fix.
10677
a7bd6915
BC
106782010-03-26 BVK Chaitanya <bvk@localhost>
10679
10680 Blank lines testcase for GRUB script.
10681
10682 * tests/grub_script_blanklines.in: New testcase.
10683 * conf/tests.rmk: Rules for the new testcase.
10684
e4ff6628
VS
106852010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
10686
10687 Don't use __FILE__.
10688
10689 * genmk.rb: Add -DGRUB_FILE to all C targets.
10690 * fs/reiserfs.c: Replace __FILE__ with GRUB_FILE.
10691 * include/grub/list.h: Likewise.
10692 * include/grub/misc.h: Likewise.
10693 * include/grub/mm.h: Likewise.
10694 * include/grub/test.h: Likewise.
10695 * kern/mm.c: Likewise.
10696 * lib/libgcrypt_wrap/cipher_wrap.h: Likewise.
10697
6a5cf6b6
VS
106982010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
10699
10700 Sunpc partitions support.
10701
10702 * conf/common.rmk (grub_probe_SOURCES): Add partmap/sunpc.c.
10703 (grub_fstest_SOURCES): Likewise.
10704 (pkglib_MODULES): Add part_sunpc.mod.
10705 (part_sunpc_mod_SOURCES): New variable.
10706 (part_sunpc_mod_CFLAGS): Likewise.
10707 (part_sunpc_mod_LDFLAGS): Likewise.
10708 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/sunpc.c.
10709 * partmap/sunpc.c: New file.
10710
746d9045
BC
107112010-03-26 BVK Chaitanya <bvk@localhost>
10712
10713 For loop support to GRUB script.
10714
10715 * include/grub/script_sh.h (grub_script_cmdfor): New struct.
10716 (grub_script_create_cmdfor): New function prototype.
10717 (grub_script_execute_cmdfor): New function prototype.
10718 * script/execute.c (grub_script_execute_cmdfor): New function.
10719 * script/parser.y (command): New for command.
10720 (forcmd): New grammar rule.
10721 * script/script.c (grub_script_create_cmdfor): New function.
10722 * util/grub-script-check.c (grub_script_execute_cmdfor): New
10723 function.
10724 * tests/grub_script_for1.in: New testcase.
10725 * conf/tests.rmk: Rules for new testcase.
10726
18486b18
VS
107272010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
10728
10729 Nested partitions
10730
10731 * commands/blocklist.c (grub_cmd_blocklist): Don't check whether
10732 'partition' is NULL, grub_partition_get_start already does that.
10733 * commands/loadenv.c (check_blocklists): Likewise.
10734 (write_blocklists): Likewise.
10735 * conf/common.rmk (grub_probe_SOURCES): Add partmap/bsdlabel.c.
10736 (grub_fstest_SOURCES): Likewise.
10737 (pkglib_MODULES): Add part_bsd.mod.
10738 (part_bsd_mod_SOURCES): New variable.
10739 (part_bsd_mod_CFLAGS): Likewise.
10740 (part_bsd_mod_LDFLAGS): Likewise.
10741 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/bsdlabel.c.
10742 (grub_emu_SOURCES): Likewise.
10743 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
10744 * include/grub/bsdlabel.h: New file.
10745 * include/grub/partition.h (grub_partition_map): Remove 'probe' and
10746 'get_name'.
10747 (grub_partition): Add 'parent' and 'number'. Remove 'data'.
10748 (grub_partition_map_list): New variable.
10749 (grub_partition_map_register): Inline.
10750 (grub_partition_map_unregister): Likewise.
10751 (FOR_PARTITION_MAPS): New macro.
10752 (grub_partition_map_iterate): Removed.
10753 (grub_partition_get_start): Handle nested partitions.
10754 * include/grub/msdos_partition.h: Remove bsd-related entries.
10755 (grub_pc_partition): Remove.
10756 * kern/disk.c (grub_disk_close): Free partition data.
10757 (grub_disk_adjust_range): Handle nested partitions.
10758 * kern/partition.c (grub_partition_map_probe): New function.
10759 (grub_partition_probe): Parse name to number, handle subpartitions.
10760 (get_partmap): New function.
10761 (grub_partition_iterate): Handle subpartitions.
10762 (grub_partition_get_name): Likewise.
10763 * loader/i386/pc/bsd.c (grub_bsd_get_device): Likewise.
10764 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): Likewise.
10765 * loader/i386/pc/chainloader.c (grub_chainloader_cmd): Likewise.
10766 * partmap/acorn.c (acorn_partition_map_iterate): Don't force raw access.
10767 Set 'number'.
10768 (acorn_partition_map_probe): Remove.
10769 (acorn_partition_map_get_name): Likewise.
10770 * partmap/amiga.c (amiga_partition_map_iterate): Don't force raw access.
10771 Set 'number'.
10772 Set 'index' to 0 since there can be only one partition entry per sector.
10773 (amiga_partition_map_probe): Remove.
10774 (amiga_partition_map_get_name): Likewise.
10775 * partmap/apple.c (apple_partition_map_iterate): Don't force raw access.
10776 Set 'number'.
10777 Set 'offset' and 'index' to real positions of partitions.
10778 (apple_partition_map_probe): Remove.
10779 (apple_partition_map_get_name): Likewise.
10780 * partmap/bsdlabel.c: New file.
10781 * partmap/gpt.c (gpt_partition_map_iterate): Don't force raw access.
10782 Set 'number'.
10783 Allocate 'data' so it can be correctly freed.
10784 Set 'index' to offset inside sector.
10785 (gpt_partition_map_probe): Remove.
10786 (gpt_partition_map_get_name): Likewise.
10787 * partmap/msdos.c (grub_partition_parse): Remove.
10788 (pc_partition_map_iterate): Don't force raw access.
10789 Set 'number'.
10790 Make 'ext_offset' a local variable.
10791 (pc_partition_map_probe): Remove.
10792 (pc_partition_map_get_name): Remove.
10793 * partmap/sun.c (sun_partition_map_iterate): Don't force raw access.
10794 Set 'number'.
10795 (sun_partition_map_probe): Remove.
10796 (sun_partition_map_get_name): Likewise.
10797 * parttool/msdospart.c (grub_pcpart_boot): Handle nested partitions.
10798 (grub_pcpart_type): Likewise.
10799 * util/hostdisk.c (open_device): Handle new numbering scheme.
10800 (grub_util_biosdisk_get_grub_dev): Handle nested partitions.
10801 * util/i386/pc/grub-setup.c (setup): Handle new numbering scheme.
10802 * util/grub-probe.c (probe_partmap): Handle nested paritions.
10803 * util/grub-install.in: Insert all subpartition modules.
10804 * util/ieee1275/grub-install.in: Likewise.
10805
a3940f88
AG
108062010-03-24 Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
10807
10808 * kern/dl.c (grub_dl_resolve_symbols): Improve error message
10809 grammar.
10810
21b99926 108112010-03-24 Colin Watson <cjwatson@ubuntu.com>
10812
10813 * .bzrignore: Add grub-bin2h, grub-reboot, and grub-set-default.
10814
bed1d352
CW
108152010-03-21 Colin Watson <cjwatson@ubuntu.com>
10816
10817 * util/grub-install.in: Copy .mo files from @datadir@/locale, to
10818 match where 'make install' puts them.
10819 * util/i386/efi/grub-install.in: Likewise.
10820
c9f58427
CW
108212010-03-19 Colin Watson <cjwatson@ubuntu.com>
10822
10823 * .bzrignore: Add gentrigtables, grub-script-check,
10824 grub_script_check_init.c, grub_script_check_init.h, and
10825 trigtables.c.
10826
f84afb27
VS
108272010-03-18 Vladimir Serbinenko <phcoder@gmail.com>
10828
10829 * kern/parser.c: Indented.
10830
ed0e3d30
VS
108312010-03-17 Vladimir Serbinenko <phcoder@gmail.com>
10832
10833 * term/i386/pc/vesafb.c: Removed (orphaned, deprecated and broken).
10834
0ea81d98
VS
108352010-03-17 Vladimir Serbinenko <phcoder@gmail.com>
10836
10837 * video/fb/fbblit.c (grub_video_fbblit_blend_XXXA8888_1bit): Handle
10838 alpha_mask_size == 0 case.
10839
0cdc2a09
BC
108402010-03-14 BVK Chaitanya <bvk.groups@gmail.com>
10841
10842 GRUB shell lexer and parser improvements.
10843
10844 * conf/any-emu.rmk: Build rule updates.
10845 * conf/common.rmk: Likewise.
10846 * conf/i386-coreboot.rmk: Likewise.
10847 * conf/i386-efi.rmk: Likewise.
10848 * conf/i386-ieee1275.rmk: Likewise.
10849 * conf/i386-pc.rmk: Likewise.
10850 * conf/powerpc-ieee1275.rmk: Likewise.
10851 * conf/x86_64-efi.rmk: Likewise.
10852
10853 * configure.ac: Configure check for flex.
10854
10855 * include/grub/script_sh.h (grub_script_arg_type_t): More argument
10856 types.
10857 (grub_lexer_param): Struct member updates.
10858 (grub_parser_param): Likewise.
10859 (GRUB_LEXER_TOKEN_MAX): Maximum token size.
10860 (GRUB_LEXER_RECORD_INCREMENT): Memory increments' size.
10861 (grub_script_lexer_init): Prototype update.
10862 (grub_script_lexer_record_start): Likewise.
10863 (grub_script_lexer_record_stop): Likewise.
10864 (grub_script_lexer_yywrap): New function prototype.
10865 (grub_script_lexer_fini): Likewise.
10866 (grub_script_execute_argument_to_string): Removed by...
10867 (grub_script_execute_argument_to_argv): ...better version.
10868
10869 * script/execute.c (ROUND_UPTO): New macro.
10870 (grub_script_execute_cmdline): Out of memory fixes.
10871 (grub_script_execute_menuentry): Likewise.
10872 (grub_script_execute_argument_to_string): Removed. Update all
10873 users by...
10874 (grub_script_execute_argument_to_argv): ...better version.
10875 * script/function.c (grub_script_function_create): Use
10876 grub_script_execute_argument_to_argv instead of
10877 grub_script_execute_argument_to_string.
10878
10879 * script/lexer.c (check_varstate): Removed.
10880 (check_textstate): Removed.
10881 (grub_script_lexer_record_start): Likewise.
10882 (grub_script_lexer_record_stop): Likewise.
10883 (recordchar): Replaced with...
10884 (grub_script_lexer_record): ...new function.
10885 (nextchar): Removed.
10886 (grub_script_lexer_init): Rewritten.
10887 (grub_script_yylex): Rewritten.
10888 (append_newline): New function.
10889 (grub_script_lexer_yywrap): New function.
10890 (grub_script_lexer_fini): New function.
10891 (grub_script_yyerror): Sets error flag.
10892
10893 * script/yylex.l: New file.
10894 (grub_lexer_yyfree): Wrapper for flex yyffre.
10895 (grub_lexer_yyalloc): Likewise.
10896 (grub_lexer_yyrealloc): Likewise.
10897 * script/parser.y: Refactored.
10898
10899 * script/script.c (grub_script_arg_add): Out of memory fixes.
10900 (grub_script_add_arglist): Likewise.
10901 (grub_script_create_cmdline): Likewise.
10902 (grub_script_create_cmdmenu): Likewise.
10903 (grub_script_add_cmd): Likewise.
10904 (grub_script_parse): Use grub_script_lexer_fini to deallocated.
10905 * util/grub-script-check.c (grub_script_execute_menuentry): Remove
10906 unnecessary code.
10907
10908 * tests/grub_script_echo1.in: New testcase.
10909 * tests/grub_script_vars1.in: New testcase.
10910 * tests/grub_script_echo_keywords.in: New testcase.
10911
1d63a066
VS
109122010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
10913
10914 Remove some redundancy in build system.
10915
10916 * Makefile.in (TARGET_CFLAGS): Add -ffreestanding.
10917 (TARGET_ASFLAGS): Add -nostdinc -fno-builtin.
10918 (TARGET_LDFLAGS): Add -nostdlib.
10919 (TARGET_IMG_LDFLAGS): Likewise.
10920 * commands/lsmmap.c (grub_cmd_lsmmap) [GRUB_MACHINE_EMU]: Don't do
10921 anything since mmap isn't available.
10922 * conf/any-emu.rmk (kernel_img_SOURCES): Remove commands/boot.c.
10923 Add util/time.c.
10924 (pkglib_MODULES): Remove reboot.mod.
10925 (reboot_mod_SOURCES): Removed.
10926 (reboot_mod_CFLAGS): Likewise.
10927 (reboot_mod_LDFLAGS): Likewise.
10928 * conf/common.rmk (script/lexer.c_DEPENDENCIES): New variable.
10929 (MOSTLYCLEANFILES): Add symlist.c kernel_syms.lst.
10930 (DEFSYMFILES): Add kernel_syms.lst.
10931 (kernel_img_HEADERS): Add common headers.
10932 (symlist.c): New target.
10933 (kernel_syms.lst): Likewise.
10934 (pkglib_MODULES): Add memdisk.mod.
10935 (memdisk_mod_SOURCES): New variable.
10936 (memdisk_mod_CFLAGS): Likewise.
10937 (memdisk_mod_LDFLAGS): Likewise.
10938 (pkglib_MODULES): Add reboot.mod.
10939 (reboot_mod_SOURCES): New variable.
10940 (reboot_mod_CFLAGS): Likewise.
10941 (reboot_mod_LDFLAGS): Likewise.
10942 (pkglib_MODULES): Add date.mod.
10943 (date_mod_SOURCES): New variable.
10944 (date_mod_CFLAGS): Likewise.
10945 (date_mod_LDFLAGS): Likewise.
10946 (pkglib_MODULES): Add datehook.mod.
10947 (datehook_mod_SOURCES): New variable.
10948 (datehook_mod_CFLAGS): Likewise.
10949 (datehook_mod_LDFLAGS): Likewise.
10950 (pkglib_MODULES): Add lsmmap.mod.
10951 (lsmmap_mod_SOURCES): New variable.
10952 (lsmmap_mod_CFLAGS): Likewise.
10953 (lsmmap_mod_LDFLAGS): Likewise.
10954 (pkglib_MODULES): Add boot.mod.
10955 (boot_mod_SOURCES): New variable.
10956 (boot_mod_CFLAGS): Likewise.
10957 (boot_mod_LDFLAGS): Likewise.
10958 * conf/i386-coreboot.rmk: Removed redundant parts.
10959 * conf/i386-ieee1275.rmk: Likewise.
10960 * conf/i386-pc.rmk: Likewise.
10961 * conf/mips-yeeloong.rmk: Likewise.
10962 * conf/mips.rmk: Likewise.
10963 * conf/powerpc-ieee1275.rmk: Likewise.
10964 * conf/sparc64-ieee1275.rmk: Likewise.
10965 * conf/x86_64-efi.rmk: Likewise.
10966 * conf/i386-coreboot.rmk: Moved qemu parts ..
10967 * conf/i386-qemu.rmk: ... here
10968 * conf/i386-efi.rmk: Moved common parts to...
10969 * conf/x86-efi.rmk: ... here.
10970 * conf/i386.rmk: Added modules common to all x86 variants.
10971 * configure.ac: Add -m32/-m64 to TARGET_ASFLAGS.
10972 * disk/memdisk.c: Remove grub/machine/kernel.h.
10973 * gensymlist.sh.in: Include symbol.h.
10974 * hook/datehook.c: Correct module name.
10975 * include/grub/datetime.h (grub_get_datetime) [GRUB_MACHINE_EMU]: Export.
10976 (grub_set_datetime) [GRUB_MACHINE_EMU]: Likewise.
10977 * include/grub/i386/efi/serial.h: New file.
10978 * include/grub/x86_64/efi/serial.h: Likewise.
10979 * util/time.c: Likewise.
10980 * video/ieee1275.c (grub_video_ieee1275_setup): Handle 64-bit void *.
10981
463ac55f
CK
109822010-03-14 Colin King <colin.king@ubuntu.com>
109832010-03-14 Colin Watson <cjwatson@ubuntu.com>
10984
10985 Shrink the pre-partition-table part of boot.img by eight bytes.
10986
10987 * boot/i386/pc/boot.S (ERR): New macro.
10988 (chs_mode): Use ERR.
10989 (geometry_error): Likewise.
10990 (hd_probe_error): Remove. This is only used once, so we wrwite
10991 it inline instead.
10992 (read_error): Instead of printing read_error_string, just set up
10993 %si and fall through to ...
10994 (error_message): ... this new function, also used by ERR.
10995
08e46ede
CW
109962010-03-14 Colin Watson <cjwatson@ubuntu.com>
10997
10998 Speed up consecutive hostdisk operations on the same device.
10999
11000 * util/hostdisk.c (struct grub_util_biosdisk_data): New structure.
11001 (grub_util_biosdisk_open): Initialise disk->data.
11002 (struct linux_partition_cache): New structure.
11003 (linux_find_partition): Cache partition start positions; these are
11004 expensive to compute on every read and write.
11005 (open_device): Cache open file descriptor in disk->data, so that we
11006 don't have to reopen it and flush the buffer cache for consecutive
11007 operations on the same device.
11008 (grub_util_biosdisk_close): New function.
11009 (grub_util_biosdisk_dev): Set `close' member.
11010
11011 * conf/common.rmk (grub_probe_SOURCES): Add kern/list.c.
11012 * conf/i386-efi.rmk (grub_setup_SOURCES): Likewise.
11013 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
11014 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Likewise.
11015 * conf/x86_64-efi.rmk (grub_setup_SOURCES): Likewise.
11016
4a6d2d06
VS
110172010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
11018
11019 Compile parts of grub-emu as modules.
11020
11021 * Makefile.in (TARGET_CPPFLAGS) [emu]: Remove -nostdinc -isystem.
11022 (pkglib_DATA) [emu]: Remove moddep.lst command.lst fs.lst
11023 partmap.lst parttool.lst handler.lst video.lst crypto.lst terminal.lst.
11024 (all-local): Add $(GRUB_EMU).
11025 (install-local): Install $(GRUB_EMU).
11026 (uninstall): Uninstall $(GRUB_EMU).
11027 * commands/parttool.c: Replace GRUB_UTIL with GRUB_NO_MODULES.
11028 * kern/dl.c: Likewise.
11029 * commands/sleep.c: Not include machine/time.h.
11030 * conf/any-emu.rmk (COMMON_LDFLAGS): New variable.
11031 (COMMON_CFLAGS): Likewise.
11032 (sbin_UTILITIES): Remove grub-emu.
11033 (grub_emu_SOURCES): Removed.
11034 (kernel_img_RELOCATABLE): New variable.
11035 (pkglib_PROGRAMS): Add kernel.img.
11036 (kernel_img_SOURCES): New variable
11037 (kernel_img_CFLAGS): Likewise.
11038 (kernel_img_LDFLAGS): Likewise.
11039 (TARGET_NO_STRIP): Likewise.
11040 (TARGET_NO_DYNAMIC_MODULES): Likewise.
11041 (pkglib_MODULES): Add progname.mod, hostfs.mod, host.mod, reboot.mod,
11042 halt.mod, cpuid.mod, usb.mod, sdl.mod and pci.mod.
11043 (grub-emu): New target.
11044 (GRUB_EMU): New variable.
11045 * configure.ac: Whitelist -emu as possible x86_64 architecture.
11046 * efiemu/main.c: Replace GRUB_UTIL with GRUB_MACHINE_EMU.
11047 * loader/xnu.c: Likewise.
11048 * include/grub/pci.h: Likewise.
11049 * genemuinit.sh: New file.
11050 * genemuinitheader.sh: Likewise.
11051 * genmk.rb: Don't strip if TARGET_NO_STRIP is yes.
11052 Support TARGET_NO_DYNAMIC_MODULES.
11053 * include/grub/dl.h (GRUB_NO_MODULES): New variable.
11054 * commands/search.c: Fix GRUB_MOD_INIT and GRUB_MOD_FINI arguments.
11055 * disk/loopback.c: Likewise.
11056 * font/font_cmd.c: Likewise.
11057 * partmap/acorn.c: Likewise.
11058 * partmap/amiga.c: Likewise.
11059 * partmap/apple.c: Likewise.
11060 * partmap/gpt.c: Likewise.
11061 * partmap/msdos.c: Likewise.
11062 * partmap/sun.c: Likewise.
11063 * parttool/msdospart.c: Likewise.
11064 * term/gfxterm.c: Likewise.
11065 * video/bitmap.c: Likewise.
11066 * video/readers/jpeg.c: Likewise.
11067 * video/readers/png.c: Likewise.
11068 * video/readers/tga.c: Likewise.
11069 * video/video.c: Likewise.
11070 * util/grub-emu.c (read_command_list): Removed.
11071 (main): Don't call util_init_nls.
11072 * util/misc.c (grub_err_printf) [!GRUB_UTIL]: Removed.
11073 (grub_util_init_nls) [!GRUB_UTIL]: Likewise.
11074
91fdd2ed
VS
110752010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
11076
11077 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add datetime.mod,
11078 date.mod, datehook.mod.
11079 (datetime_mod_SOURCES): New variable.
11080 (datetime_mod_CFLAGS): Likewise.
11081 (datetime_mod_LDFLAGS): Likewise.
11082 (date_mod_SOURCES): Likewise.
11083 (date_mod_CFLAGS): Likewise.
11084 (date_mod_LDFLAGS): Likewise.
11085 (datehook_mod_SOURCES): Likewise.
11086 (datehook_mod_CFLAGS): Likewise.
11087 (datehook_mod_LDFLAGS): Likewise.
11088 * conf/sparc64-ieee1275.rmk: Likewise.
11089 * lib/ieee1275/datetime.c: New file.
11090
873ccae6
VS
110912010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
11092
11093 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add ieee1275_fb.mod.
11094 (ieee1275_fb_mod_SOURCES): New variable.
11095 (ieee1275_fb_mod_CFLAGS): Likewise.
11096 (ieee1275_fb_mod_LDFLAGS): Likewise.
11097 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_devices_iterate):
11098 New proto.
11099 * kern/ieee1275/init.c (HEAP_MAX_SIZE): Increased.
11100 (HEAP_MAX_ADDR): Likewise.
11101 * kern/ieee1275/openfw.c (grub_children_iterate): Don't skip empty
11102 type.
11103 Correct stop condition.
11104 (grub_ieee1275_devices_iterate): New function.
11105 * video/ieee1275.c: New file.
11106
601c97c0
VS
111072010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
11108
11109 Merge sparc grub-mkimage into generic grub-mkimage and a.out support.
11110
11111 * boot/sparc64/ieee1275/boot.S (boot_continue): Use SCRATCH_PAD_BOOT
11112 as scratch.
11113 * boot/sparc64/ieee1275/diskboot.S (after_info_block): Use
11114 SCRATCH_PAD_DISKBOOT as scratch.
11115 (bootit): Pass Openfirmware pointer in %o4.
11116 * conf/sparc64-ieee1275.rmk (kernel_img_LDFLAGS): Link at 0x4400 instead
11117 of 0x200000.
11118 (grub_mkimage_SOURCES): Replace util/sparc64/ieee1275/grub-mkimage.c
11119 with util/grub-mkrawimage.c.
11120 * configure.ac: Handle GRUB_MACHINE_SPARC64 and GRUB_MACHINE_MIPS.
11121 * include/grub/aout.h (AOUT_MID_SUN): New definition.
11122 (grub_aout_get_type) [GRUB_UTIL]: Removed.
11123 (grub_aout_load) [GRUB_UTIL]: Likewise.
11124 * include/grub/kernel.h (grub_modules_get_end): New proto.
11125 * include/grub/sparc64/ieee1275/boot.h (SCRATCH_PAD): Removed.
11126 (SCRATCH_PAD_BOOT): New definition.
11127 (SCRATCH_PAD_DISKBOOT): Likewise.
11128 (GRUB_BOOT_MACHINE_IMAGE_ADDRESS): Set to 0x4400.
11129 * include/grub/sparc64/ieee1275/ieee1275.h
11130 (grub_ieee1275_original_stack): New variable
11131 * include/grub/sparc64/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
11132 New definition
11133 (GRUB_KERNEL_MACHINE_STACK_SIZE): Likewise.
11134 (GRUB_PLATFORM_IMAGE_FORMATS): Likewise.
11135 (GRUB_PLATFORM_IMAGE_DEFAULT_FORMAT): Likewise.
11136 (GRUB_PLATFORM_IMAGE_DEFAULT): Likewise.
11137 (GRUB_PLATFORM_IMAGE_RAW): Likewise.
11138 (GRUB_PLATFORM_IMAGE_AOUT): Likewise.
11139 (grub_platform_image_format_t): New type.
11140 * kern/mips/yeeloong/init.c (grub_modules_get_end): Move from here ...
11141 * kern/main.c (grub_modules_get_end)
11142 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_SPARC64]: ... here.
11143 * kern/sparc64/ieee1275/crt0.S: Store firmware entry point in %o0.
11144 (codestart): Switch stacks.
11145 * kern/sparc64/ieee1275/init.c (grub_ieee1275_original_stack): New
11146 variable.
11147 (grub_heap_init): Use grub_modules_get_end.
11148 * loader/sparc64/ieee1275/linux.c (grub_linux_boot): Restore original
11149 stack.
11150 * util/grub-mkrawimage.c (generate_image): Support sparc64.
11151 (main): Likewise.
11152 * util/sparc64/ieee1275/grub-mkimage.c: Removed.
11153
d68b491e
TG
111542010-03-14 Thorsten Glaser <tg@mirbsd.org>
11155
11156 * util/grub-mkrescue.in: Base ISO UUID on UTC.
11157
4e02ed50
MK
111582010-03-08 Matt Kraai <kraai@ftbfs.org>
11159
11160 * util/i386/pc/grub-setup.c (setup): Fix a grammatical error (Debian
11161 bug #559005).
11162
1f15fc1e
VS
111632010-03-07 Vladimir Serbinenko <phcoder@gmail.com>
11164
11165 * genmoddep.awk: Output all missing symbols and not only first.
11166
fce5d8ff
VS
111672010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11168
11169 * NEWS: Put the date of 1.98 release.
11170
d1e8a02f
VS
111712010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11172
11173 * configure.ac: Update CPPFLAGS and not CFLAGS when checking for
11174 ft2build.h.
11175
696fd607
VS
111762010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11177
11178 * normal/cmdline.c (grub_cmdline_get): Fix gabled line after
11179 completition in the middle of string.
11180
33e2e6f3
VS
111812010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11182
11183 * util/grub-mkrescue.in: Use mktemp with explicit template.
11184
b1f6d291
VS
111852010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11186
11187 * loader/i386/bsd.c (grub_bsd_get_device): Fix a memory leak.
11188
2ac227c7
VS
111892010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11190
11191 * loader/i386/multiboot_mbi.c (grub_multiboot_set_bootdev): Free the
11192 right pointer.
11193
8f9a632b
VS
111942010-03-05 Vladimir Serbinenko <phcoder@gmail.com>
11195
11196 Fix FreeBSD compilation.
11197
11198 * Makefile.in (TARGET_CPPFLAGS): Remove -nostdinc -isystem.
11199 * configure.ac: Add -nostdinc -isystem to TARGET_CPPFLAGS if it works.
11200
60b03859
VS
112012010-03-05 Vladimir Serbinenko <phcoder@gmail.com>
11202
11203 * util/import_gcry.py: Add autogenerated files to MAINTAINER_CLEANFILES.
11204
48a5a769
VS
112052010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11206
11207 * gettext/gettext.c (grub_gettext_init_ext): Fix a memory leak.
11208
3ab4bd77
VS
112092010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11210
11211 * disk/scsi.c (grub_scsi_iterate): Fix a memory leak.
11212
d116e0d8
RM
112132010-03-04 Robert Millan <rmh.grub@aybabtu.com>
11214
11215 Support relative image path in theme file.
11216
11217 * gfxmenu/gui_image.c (grub_gui_image): New member theme_dir.
11218 (image_set_property): Handle theme_dir and relative path.
11219
c7ef54aa
VS
112202010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11221
11222 * configure.ac: Alias amd64 to x86_64.
11223
fcee14ed
VS
112242010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11225
11226 * NEWS: mention multiboot on EFI.
11227
d0780363
VS
112282010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11229
11230 * kern/main.c (grub_load_modules): Handle errors from init functions of
11231 embeded modules.
11232
41168ea4
VS
112332010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11234
11235 * normal/autofs.c (autoload_fs_module): Handle errors.
11236
b54d93ac
VS
112372010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11238
11239 Disable linux.mod on qemu-mips since it's not functional and leads
11240 to compilation failure.
11241
11242 * conf/mips.rmk (pkglib_MODULES): Remove linux.mod.
11243 * conf/mips-yeeloong.rmk (pkglib_MODULES): Add linux.mod.
11244 * conf/mips.rmk (linux_mod_SOURCES): Move from here ...
11245 * conf/mips-yeeloong.rmk (linux_mod_SOURCES): ... here
11246 * conf/mips.rmk (linux_mod_CFLAGS): Move from here ...
11247 * conf/mips-yeeloong.rmk (linux_mod_CFLAGS): ... here
11248 * conf/mips.rmk (linux_mod_ASFLAGS): Move from here ...
11249 * conf/mips-yeeloong.rmk (linux_mod_ASFLAGS): ... here
11250 * conf/mips.rmk (linux_mod_LDFLAGS): Move from here ...
11251 * conf/mips-yeeloong.rmk (linux_mod_LDFLAGS): ... here
11252 Reported by: BVK Chaitanya
11253
fc8345da
JU
112542010-03-04 Jordan Uggla <jordan.uggla@gmail.com>
11255
11256 * INSTALL: Add gettext as a dependency and add qemu to a new section
11257 "Prerequisites for make-check".
11258
4760f979
CF
112592010-03-04 Christian Franke <franke@computer.org>
11260
11261 * util/grub-pe2elf.c: Add missing include "progname.h".
11262
f209b5b2
VS
112632010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11264
11265 * normal/crypto.c (read_crypto_list): Fix a typo.
11266 Reported by: Seth Goldberg.
11267
b4b7be98
VS
112682010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11269
11270 * Makefile.in (DISTCLEANFILES): Add stamp-h1.
f209b5b2 11271 Reported by: Seth Goldberg.
b4b7be98 11272
c0ee0385
VS
112732010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11274
11275 * Makefile.in (CLEANFILES) [FONT_SOURCE && grub_mkfont]: Add
11276 ascii.bitmaps.
11277
a8efbf64
VS
112782010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11279
11280 * genmk.rb: Remove terminal*.lst in make clean.
f209b5b2 11281 Reported by: Seth Goldberg.
a8efbf64 11282
08dcd913
VS
112832010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11284
11285 * util/i386/efi/grub-install.in: Copy gettext files.
11286
c4d0b332
VS
112872010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
11288
11289 * fs/ext2.c (grub_ext2_read_block): Fix an integer overflow.
11290
c6f2fe52
VS
112912010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
11292
11293 Wait for user entry basing on presence of output rather than on errors.
11294
11295 * include/grub/normal.h (grub_normal_get_line_counter): New proto.
11296 (grub_install_newline_hook): Likewise.
11297 * normal/main.c (GRUB_MOD_INIT): Call grub_install_newline_hook.
11298 * normal/menu.c (show_menu): Check line_counter to determine presence
11299 of output.
11300 * normal/term.c (grub_normal_line_counter): New variable.
11301 (grub_normal_get_line_counter): New function.
11302 (grub_install_newline_hook): Likewise.
11303
5382b1e4
VS
113042010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
11305
11306 * commands/cat.c (grub_cmd_cat): Propagate grub_gzfile_open error.
11307
5519963b
VS
113082010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
11309
11310 * configure.ac: Update version to 1.98.
11311
72b28631
VS
113122010-02-26 Vladimir Serbinenko <phcoder@gmail.com>
11313
11314 * util/grub.d/10_linux.in (linux_entry): Don't default to
11315 gfxpayload=keep if Linux doesn't support video handover.
11316
c140a180
VS
113172010-02-25 Vladimir Serbinenko <phcoder@gmail.com>
11318
11319 Don't compile video modules on yeeloong since video subsystem is part
11320 of kernel.
11321
11322 * conf/common.rmk (pkglib_MODULES) [yeeloong]: Remove video.mod,
11323 video_fb.mod, bitmap.mod, font.mod, gfxterm.mod and bufio.mod
11324 * conf/mips-yeeloong.rmk (kernel_img_HEADERS): Add bitmap.h,
11325 video.h, gfxterm.h, font.h, bitmap_scale.h and bufio.h.
11326 * conf/mips.rmk (kernel_img_HEADERS): Add values instead of overwriting.
11327 * include/grub/bitmap.h: Add EXPORT_FUNC and EXPORT_VAR.
11328 * include/grub/bitmap_scale.h: Likewise.
11329 * include/grub/bufio.h: Likewise.
11330 * include/grub/font.h: Likewise.
11331 * include/grub/gfxterm.h: Likewise.
11332 * include/grub/video.h: Likewise.
11333 * include/grub/vbe.h: Don't include video_fb.h.
11334 * video/i386/pc/vbe.c: Include video_fb.h.
11335 * commands/i386/pc/vbetest.c: Include video.h.
11336
a0ca21c2
CW
113372010-02-25 Jordan Uggla <jordan.uggla@gmail.com>
11338
11339 * util/grub-mkconfig.in (GRUB_SAVEDEFAULT): Export new variable.
11340 * util/grub-mkconfig_lib.in (save_default_entry): Only save a new
11341 default entry if GRUB_SAVEDEFAULT=true. This allows using
11342 GRUB_DEFAULT=saved on its own to let grub-reboot work, without
11343 saving a new default on every boot.
11344
4a8a763c
VS
113452010-02-24 Vladimir Serbinenko <phcoder@gmail.com>
11346
11347 * normal/crypto.c (read_crypto_list): Fix a memory leak.
11348 * normal/term.c (read_terminal_list): Likewise.
11349 * normal/main.c (grub_normal_init_page): Likewise.
11350 (grub_normal_read_line_real): Likewise.
11351
607ffde2
VS
113522010-02-24 Vladimir Serbinenko <phcoder@gmail.com>
11353
11354 * loader/i386/multiboot_mbi.c (grub_multiboot_set_bootdev): Fix a
11355 memory leak.
11356 Reported by: Seth Goldberg.
11357
2b8fa975
CW
113582010-02-24 Joey Korkames <joey+lists@kidfixit.com>
11359
11360 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Remove
11361 duplicate declaration of `start'.
11362
618307dd
VS
113632010-02-20 Vladimir Serbinenko <phcoder@gmail.com>
11364
11365 * fs/iso9660.c (grub_iso9660_iterate_dir): Strip version from joliet
11366 filename.
11367 Reported by: Georgy Buranov
11368
7dd05b96 113692010-02-20 Carles Pina i Estany <carles@pina.cat>
11370
11371 * util/grub-mkrawimage.c (usage): Change string formatting to
11372 improve gettext.
11373
d1484a42
MRA
113742010-02-20 Manoel Rebelo Abranches <mrabran@br.ibm.com>
11375
11376 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Add delete and
11377 backspace keys.
11378
42b1d186
VS
113792010-02-20 Vladimir Serbinenko <phcoder@gmail.com>
11380
11381 * video/fb/video_fb.c (grub_video_fb_scroll): Fix a pixel size bug.
11382 Reported by: Michael Suchanek.
11383
113842010-02-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
0a39de87
ST
11385
11386 * util/grub-mkconfig.in: Export GRUB_INIT_TUNE.
11387 * util/grub.d/00_header.in: Handle GRUB_INIT_TUNE.
11388
d9f31a41
VS
113892010-02-16 Vladimir Serbinenko <phcoder@gmail.com>
11390
11391 Remove any reference to non-free fonts.
11392
11393 * commands/videotest.c (grub_cmd_videotest): Use unifont by default.
11394 * docs/gfxmenu-theme-example.txt: Removed. It's both outdated and
11395 uses non-free components.
11396 * font/font.c (grub_font_get_name): Remove example name.
11397 * gfxmenu/gui_label.c (grub_gui_label_new): Use unifont by default.
11398 * gfxmenu/gui_list.c (grub_gui_list_new): Likewise.
11399 * gfxmenu/gui_progress_bar.c (grub_gui_progress_bar_new): Likewise.
11400 * gfxmenu/view.c (grub_gfxmenu_view_new): Likewise.
11401
2793c71e
GB
114022010-02-16 Georgy Buranov <gburanov@gmail.com>
11403
11404 * disk/efi/efidisk.c (grub_efidisk_get_device_name): Fix a typo.
11405
402e3779
VS
114062010-02-15 Vladimir Serbinenko <phcoder@gmail.com>
11407
11408 * term/serial.c (serial_get_divisor) [GRUB_MACHINE_MIPS_YEELOONG]:
11409 Double divisor.
11410 (serial_hw_init) [GRUB_MACHINE_MIPS_YEELOONG]: Don't enable advanced
11411 features.
11412 (GRUB_MOD_INIT) [GRUB_MACHINE_MIPS_YEELOONG]: Default to 115200.
11413
0dd1e0dd
VS
114142010-02-15 Vladimir Serbinenko <phcoder@gmail.com>
11415
11416 * gensymlist.sh.in: Use TARGET_CC instead of CC.
11417
6fa7cfce
ST
114182010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
11419
11420 * commands/i386/pc/play.c (GRUB_MOD_INIT(play)): Fix help.
11421 * docs/grub.texi (Command-line and menu entry commands): Document play
11422 command.
11423
37c8483b
ST
114242010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
11425
11426 * commands/i386/pc/play.c (grub_cmd_play): If grub_file_open fails,
11427 parse arguments as inline tempo and notes. Move code for playing notes
11428 to...
11429 (play): ... new function.
11430
14da0fb7
ST
114312010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
11432
11433 * commands/i386/pc/play.c (T_REST, T_FINE, struct note, beep_on): Use
11434 grub_uint16_t instead of short.
11435 (grub_cmd_play): Use grub_uint32_t instead of int, convert data from
11436 disk from little endian to cpu endianness.
11437
04459e70
ST
114382010-02-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
11439
11440 * commands/i386/pc/play.c (BASE_TEMPO): Set to 60 *
11441 GRUB_TICKS_PER_SECOND instead of 120.
11442
a0876943
VS
114432010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
11444
11445 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Wait for possible
11446 escape sequence after \e.
11447
e29f95dc
VS
114482010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
11449
11450 * term/ieee1275/ofconsole.c (grub_ofconsole_putchar): Don't output
11451 non-ASCII characters.
11452
d27859b2
VS
114532010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
11454
11455 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Enclose
11456 set root in single quotes to prevent \, from being unescaped.
11457
bc028f2f
VS
114582010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
11459
11460 Prevent unknown commands from stopping menuentry execution.
11461
11462 * script/execute.c (grub_script_execute_cmdline): Print error after
11463 unknown command.
11464
095f5f82
VS
114652010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
11466
11467 * fs/i386/pc/pxe.c (GRUB_MOD_INIT): Fix typo.
11468 Reported by: Pavel Pisa.
11469
8c717950
VS
114702010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
11471
11472 * io/gzio.c (grub_gzio_open): Use grub_zalloc.
11473
904935c3
VS
114742010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
11475
11476 Merge grub_ieee1275_map_physical into grub_map and rename to
11477 grub_ieee1275_map
11478
11479 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_map): New proto.
11480 * include/grub/sparc64/ieee1275/ieee1275.h (grub_ieee1275_map_physical):
11481 Remove.
11482 * kern/ieee1275/openfw.c (grub_map): Rename to ...
11483 (grub_ieee1275_map): ... this. All users updated. Add phys_lo when
11484 necessary.
11485 * kern/sparc64/ieee1275/ieee1275.c (grub_ieee1275_map_physical): Remove.
11486
5b59a4e3
VS
114872010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
11488
11489 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Check device type before
11490 opening and not after.
11491
69e137e8
VS
114922010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
11493
11494 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Macroify
11495 constants.
11496
2c0fcc36
VS
114972010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
11498
11499 * loader/sparc64/ieee1275/linux.c (align_addr): Remove.
11500 (alloc_phys): Use ALIGN_UP instead of align_addr.
11501
8c6052ce
VS
115022010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
11503
11504 * loader/sparc64/ieee1275/linux.c (alloc_phys): Correct bounds checking.
11505
17cec782
VS
115062010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
11507
11508 * kern/sparc64/ieee1275/crt0.S (codestart): Move modules backwards.
11509
e0128bbd
VS
115102010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
11511
11512 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Remove excessively
11513 verbose dprintf.
11514
ca62070b
VS
115152010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
11516
11517 Fix over-4GiB seek on sparc64.
11518
11519 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_seek):
11520 Replace pos_i and pos_lo with pos. All users updated.
11521 * include/grub/powerpc/ieee1275/ieee1275.h (GRUB_IEEE1275_CELL_SIZEOF):
11522 New constant.
11523 * include/grub/sparc64/ieee1275/ieee1275.h (GRUB_IEEE1275_CELL_SIZEOF):
11524 Likewise.
11525 * kern/ieee1275/ieee1275.c (grub_ieee1275_seek): Split pos into pos_hi
11526 and pos_lo.
11527
bdca2607
VS
115282010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
11529
11530 * util/grub-mkrawimage.c (main): Call set_program_name.
11531
da278c4d
VS
115322010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
11533
11534 Properly align 64-bit targets.
11535
11536 * util/grub-mkrawimage.c (ALIGN_ADDR): New macro.
11537 (generate_image): Use ALIGN_ADDR.
11538
b274d734
VS
115392010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
11540
11541 Properly create cross-endian images.
11542
11543 * include/grub/types.h (grub_host_to_target_addr): New macro
11544 * util/grub-mkrawimage.c (generate_image): Add missing host_to_target.
11545
82da2062
VS
115462010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
11547
11548 * util/grub-mkrawimage.c (generate_image): Add forgotten ALIGN_UP.
11549
7cae4377
VS
115502010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
11551
11552 Pass SIMPLE framebuffer size in bytes and not 64K blocks.
11553
11554 * loader/i386/efi/linux.c (grub_linux_setup_video): Don't divide by 64K.
11555 * loader/i386/linux.c (grub_linux_setup_video): Likewise.
11556 (grub_linux_boot): Divide by 64K when on VESA.
11557
65a533e7
VS
115582010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
11559
11560 Support GRUB_GFXPAYLOAD_LINUX.
11561
11562 * util/grub-mkconfig.in: Export GRUB_GFXPAYLOAD_LINUX.
11563 * util/grub.d/10_linux.in (linux_entry): Handle GRUB_GFXPAYLOAD_LINUX.
11564
dd01d397
VS
115652010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
11566
11567 * script/execute.c (grub_script_execute_cmdline): Use grub_print_error
11568 to show messages instead of discarding them.
11569 Process errors after executing command and not before. Keep old method
11570 too as precaution.
11571
660960d6
VS
115722010-02-09 Vladimir Serbinenko <phcoder@gmail.com>
11573
11574 * configure.ac: Check for ft2build.h.
11575
62509f04
VS
115762010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
11577
11578 * kern/ieee1275/openfw.c (grub_halt): Try executing "poweroff".
11579
473df63d
VS
115802010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
11581
11582 * genkernsyms.sh.in: Use TARGET_CC.
11583
c98d2a13
CW
115842010-02-07 Colin Watson <cjwatson@ubuntu.com>
11585
11586 * NEWS: Update.
11587
6e14234c
VS
115882010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
11589
11590 * include/grub/multiboot2.h: Remove leftover file.
e28e32ae
VS
11591 * include/grub/normal.h [GRUB_UTIL]: Remove leftover declarations.
11592 * include/grub/partition.h [GRUB_UTIL]: Likewise.
6e14234c 11593
b255e9cf
YB
115942010-02-07 Yves Blusseau <blusseau@zetam.org>
11595
6e14234c 11596 * gnulib/getdelim.c: add missing header (type ssize_t must be defined).
b255e9cf 11597
98e6959d
VS
115982010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
11599
11600 Fix warnings in grub-emu when compiling with maximum warning options.
11601
11602 * util/grub-emu.c (ENABLE_RELOCATABLE): New definition.
11603 (grub_arch_modules_addr): Return 0 and not NULL.
11604 * util/misc.c (ENABLE_RELOCATABLE): New definition.
74e4934e 11605 (xstrdup): Use newstr instead of dup.
f88d801b
VS
11606 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Rename one instance
11607 of disk to dsk to avoid shadowing.
74e4934e
VS
11608 (find_free_slot): Fix prototype.
11609 * util/getroot.c (grub_util_is_dmraid): Make static.
11610 * include/grub/time.h (grub_get_rtc) [GRUB_MACHINE_EMU || GRUB_UTIL]:
11611 Add missing prototype.
11612 * util/sdl.c (grub_video_sdl_set_viewport): Remove.
98e6959d 11613
74e31b5c
VS
116142010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
11615
11616 * loader/i386/linux.c (grub_linux_setup_video): Handle error
11617 appropriately.
11618
6b2ad14b
VS
116192010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
11620
11621 * fs/reiserfs.c (grub_reiserfs_read): Use #if 0 instead of commenting
11622 code out.
11623
8f891adc
VS
116242010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
11625
11626 * include/grub/cache.h (grub_arch_sync_caches) [i386 || x86_64]: Inline.
11627 * kern/i386/coreboot/init.c (grub_arch_sync_caches): Remove.
11628 * kern/i386/efi/init.c (grub_arch_sync_caches): Likewise.
11629 * kern/i386/ieee1275/init.c (grub_arch_sync_caches): Likewise.
11630 * kern/i386/pc/init.c (grub_arch_sync_caches): Likewise.
11631 * util/misc.c (grub_arch_sync_caches) [i386 || x86_64]: Likewise.
11632
74b45184
VS
116332010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
11634
11635 * include/grub/err.h (grub_err_printf): Don't export.
11636
a4bced77
VS
116372010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
11638
11639 * include/grub/dl.h (grub_dl_register_symbol): Don't export.
11640
007d0695
VS
116412010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
11642
11643 * include/grub/i18n.h (grub_gettext_dummy): Removed.
11644 * kern/misc.c (grub_gettext_dummy): Make static.
11645
b6c0d9c2
VS
116462010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
11647
11648 * kern/misc.c (grub_utf8_to_ucs4): Don't eat valid characters preceeded
11649 by non-valid ones.
11650 * kern/term.c (grub_putchar): Likewise.
11651
f51a90d0
VS
116522010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
11653
11654 * partmap/sun.c (sun_partition_map_iterate): Restructure flow to fix
11655 buggy hook call and memory leak.
11656
6846cec5
VS
116572010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
11658
11659 * commands/ls.c (grub_ls_list_files): Free pathname on exit.
11660
468d69fe
VS
116612010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
11662
11663 * fs/fat.c (grub_fat_iterate_dir): Free unibuf at exit.
11664
51906b8c
VS
116652010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
11666
11667 * loader/i386/pc/xnu.c (grub_xnu_set_video): Add const qualifier to
11668 modevar.
11669 Return grub_errno on allocation error.
11670
09706ce5
VS
116712010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
11672
11673 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Correct error handling.
11674
911df80c
YB
116752010-02-06 Yves Blusseau <blusseau@zetam.org>
11676
11677 * conf/common.rmk (grub_script_check_SOURCES): add missing dependencies.
11678 (grub_mkpasswd_pbkdf2_SOURCES): Likewise.
11679
3746a6bc
VS
116802010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
11681
11682 * fs/i386/pc/pxe.c (grub_pxefs_dir): Return with failure on
11683 non-pxe disk.
11684 (grub_pxefs_open): Likewise.
11685
09706ce5
VS
116862010-02-06 Robert Millan <rmh.grub@aybabtu.com>
11687
11688 * util/grub.d/10_hurd.in: Add --class information to menuentries.
11689 * util/grub.d/10_kfreebsd.in: Likewise.
11690 * util/grub.d/10_linux.in: Likewise.
11691
7cc192d9
VS
116922010-02-06 Colin D Bennett <colin@gibibit.com>
11693
11694 * conf/common.rmk (pkglib_MODULES): Add gfxmenu.mod.
11695 (gfxmenu_mod_SOURCES): New variable.
11696 (gfxmenu_mod_CFLAGS): Likewise.
11697 (gfxmenu_mod_LDFLAGS): Likewise.
11698 * include/grub/term.h (grub_term_set_current_output): Declare
11699 argument as const.
11700 * docs/gfxmenu-theme-example.txt: New file.
11701 * gfxmenu/gfxmenu.c: Likewise.
11702 * gfxmenu/gui_box.c: Likewise.
11703 * gfxmenu/gui_canvas.c: Likewise.
11704 * gfxmenu/gui_circular_progress.c: Likewise.
11705 * gfxmenu/gui_image.c: Likewise.
11706 * gfxmenu/gui_label.c: Likewise.
11707 * gfxmenu/gui_list.c: Likewise.
11708 * gfxmenu/gui_progress_bar.c: Likewise.
11709 * gfxmenu/gui_string_util.c: Likewise.
11710 * gfxmenu/gui_util.c: Likewise.
11711 * gfxmenu/icon_manager.c: Likewise.
11712 * gfxmenu/model.c: Likewise.
11713 * gfxmenu/named_colors.c: Likewise.
11714 * gfxmenu/theme_loader.c: Likewise.
11715 * gfxmenu/view.c: Likewise.
11716 * gfxmenu/widget-box.c: Likewise.
11717 * include/grub/gfxmenu_model.h: Likewise.
11718 * include/grub/gfxmenu_view.h: Likewise.
11719 * include/grub/gfxwidgets.h: Likewise.
11720 * include/grub/gui.h: Likewise.
11721 * include/grub/gui_string_util.h: Likewise.
11722 * include/grub/icon_manager.h: Likewise.
11723
117242010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
11725
11726 Agglomerate scrolling in gfxterm.
11727
11728 * term/gfxterm.c (grub_virtual_screen): New member 'total_screen'.
11729 (grub_virtual_screen_setup): Initialise 'total_screen'.
11730 (write_char): Split to ...
11731 (paint_char): ... this ...
11732 (write_char): ... and this.
11733 (paint_char): Handle delayed scrolling.
11734 (draw_cursor): Likewise.
11735 (scroll_up): Split to ...
11736 (real_scroll): ... this ...
11737 (scroll_up): ... and this.
11738 (real_scroll): Handle multi-line scroll and draw below-the-bottom
11739 characters.
11740 (grub_gfxterm_refresh): Call real_scroll.
11741
117422010-02-06 Colin D Bennett <colin@gibibit.com>
11743
11744 * include/grub/misc.h (grub_iscntrl): New inline function.
11745 (grub_isalnum): Likewise.
11746 (grub_strtol): Likewise.
11747
117482010-02-06 Colin D Bennett <colin@gibibit.com>
11749
11750 * normal/menu_text.c (get_entry_number): Move from here ...
11751 * normal/menu.c (get_entry_number): ... moved here.
11752 * include/grub/menu.h (grub_menu_get_default_entry_index):
11753 New prototype.
11754 * normal/menu.c (grub_menu_get_default_entry_index): New function.
11755 * normal/menu_text.c (run_menu): Use grub_menu_get_default_entry_index.
11756 * include/grub/menu_viewer.h (grub_menu_viewer_init): New prototype.
11757 (grub_menu_viewer_should_return): Likewise.
11758 * normal/main.c (GRUB_MOD_INIT (normal)): Call grub_menu_viewer_init.
11759 * normal/menu_text.c (run_menu): Enable menu switching.
11760 * normal/menu_viewer.c (should_return): New variable.
11761 (menu_viewer_changed): Likewise.
11762 (grub_menu_viewer_show_menu): Handle menu viewer changes.
11763 (grub_menu_viewer_should_return): New function.
11764 (menuviewer_write_hook): Likewise.
11765 (grub_menu_viewer_init): Likewise.
11766
117672010-02-06 Colin D Bennet <colin@gibibit.com>
117682010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
11769
11770 Support for gfxterm in a window.
11771
11772 * include/grub/gfxterm.h: New file.
11773 * include/grub/video.h (struct grub_video_rect): New declaration.
11774 (grub_video_rect_t): Likewise.
11775 * term/gfxterm.c (struct grub_gfxterm_window): New type.
11776 (refcount): New variable.
11777 (render_target): Likewise.
11778 (window): Likewise.
11779 (repaint_callback): Likewise.
11780 (grub_virtual_screen_setup): Use 'render_target'.
11781 (init_window): New function.
11782 (grub_gfxterm_init_window): Likewise.
11783 (grub_gfxterm_init): Check reference counter.
11784 Use init_window.
11785 (destroy_window): New function.
11786 (grub_gfxterm_destroy_window): Likewise.
11787 (grub_gfxterm_fini): Check reference counter.
11788 Use destroy_window.
11789 (redraw_screen_rect): Restore viewport.
11790 Use 'render_target' and 'window'.
11791 Call 'repaint_callback'.
11792 (write_char): Use 'render_target'.
11793 (draw_cursor): Likewise.
11794 (scroll_up): Restore viewport.
11795 Use 'render_target' and 'window'.
11796 Call 'repaint_callback'.
11797 (grub_gfxterm_cls): Likewise.
11798 (grub_gfxterm_refresh): Use 'window'.
11799 (grub_gfxterm_set_repaint_callback): New function.
11800 (grub_gfxterm_background_image_cmd): Use 'window'.
11801 (grub_gfxterm_get_term): New function.
11802 (GRUB_MOD_INIT(term_gfxterm)): Set 'refcount' to 0.
11803
118042010-02-06 Colin D Bennett <colin@gibibit.com>
11805
11806 Bitmap scaling support.
11807
11808 * conf/common.rmk (pkglib_MODULES): Add bitmap_scale.mod.
11809 (bitmap_scale_mod_SOURCES): New variable.
11810 (bitmap_scale_mod_CFLAGS): Likewise.
11811 (bitmap_scale_mod_LDFLAGS): Likewise.
11812 * include/grub/bitmap_scale.h: New file.
11813 * term/gfxterm.c (BACKGROUND_CMD_ARGINDEX_MODE): New definiton.
11814 (background_image_cmd_options): New variable.
11815 (grub_gfxterm_background_image_cmd): Support bitmap stretching.
11816 (cmd): Rename and change type to ...
11817 (background_image_cmd_handle): ... this. All users updated.
11818 (GRUB_MOD_INIT(term_gfxterm)): Make background_image extended command.
11819 * video/bitmap_scale.c: New file.
11820
118212010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
11822
11823 SDL support.
11824
11825 * Makefile.in (LIBSDL): New variable.
11826 (enable_grub_emu_sdl): Likewise.
11827 * conf/i386-pc.rmk (grub_emu_SOURCES): Add video files.
11828 (grub_emu_SOURCES) [enable_grub_emu_sdl]: Add util/sdl.c.
11829 (grub_emu_LDFLAGS) [enable_grub_emu_sdl]: Add $(LIBSDL).
11830 * configure.ac: Detect SDL availability and add --enable-grub-emu-sdl
11831 * util/sdl.c: New file.
11832
118332010-02-06 Colin D Bennett <colin@gibibit.com>
118342010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
11835
11836 Double buffering support.
11837
11838 * commands/i386/pc/videotest.c (grub_cmd_videotest): Swap doublebuffers.
11839 * include/grub/video.h: Update comment.
11840 * include/grub/video_fb.h (grub_video_fb_doublebuf_update_screen_t):
11841 New type.
11842 (grub_video_fb_doublebuf_blit_init): New prototype.
11843 * term/gfxterm.c (scroll_up): Support double buffering.
11844 (grub_gfxterm_refresh): Likewise.
11845 * video/fb/video_fb.c (doublebuf_blit_update_screen): New function.
11846 (grub_video_fb_doublebuf_blit_init): Likewise.
11847 * video/i386/pc/vbe.c (framebuffer): Remove 'render_target'. Add
11848 'front_target', 'back_target', 'offscreen_buffer', 'page_size',
11849 'displayed_page', 'render_page' and 'update_screen'.
11850 (grub_video_vbe_fini): Free offscreen buffer.
11851 (doublebuf_pageflipping_commit): New function.
11852 (doublebuf_pageflipping_update_screen): Likewise.
11853 (doublebuf_pageflipping_init): Likewise.
11854 (double_buffering_init): Likewise.
11855 (grub_video_vbe_setup): Enable doublebuffering.
11856 (grub_video_vbe_swap_buffers): Implement.
11857 (grub_video_vbe_set_active_render_target): Handle double buffering.
11858 (grub_video_vbe_get_active_render_target): Likewise.
11859 (grub_video_vbe_get_info_and_fini): Likewise. Free offscreen_buffer.
11860 (grub_video_vbe_adapter): Use grub_video_vbe_get_active_render_target.
11861 (grub_video_vbe_enable_double_buffering): Likewise.
11862 (grub_video_vbe_swap_buffers): Use update_screen.
11863 (grub_video_set_mode): Use double buffering.
11864
118652010-02-06 Robert Millan <rmh.grub@aybabtu.com>
11866
11867 * maintainance/gentrigtables.py: Remove.
11868 * lib/trig.c: Likewise.
11869
11870 * gentrigtables.c: New file. C rewrite of gentrigtables.py.
11871
11872 * conf/common.rmk (trig_mod_SOURCES): Replace `lib/trig.c' with
11873 `trigtables.c'.
11874 (trigtables.c): New rule.
11875 (gentrigtables): Likewise.
11876 (DISTCLEANFILES): Add `trigtables.c' and `gentrigtables'.
11877
118782010-02-06 Robert Millan <rmh.grub@aybabtu.com>
11879
11880 * maintainance/gentrigtables.py: Avoid duplicate hardcoding of
11881 integer constants.
11882
118832010-02-06 Colin D Bennet <colin@gibibit.com>
11884
11885 Trigonometry support.
11886
11887 * include/grub/trig.h: New file.
11888 * lib/trig.c: Likewise.
11889 * maintainance/gentrigtables.py: Likewise.
11890 * conf/common.rmk (pkglib_MODULES): Add trig.mod.
11891 (trig_mod_SOURCES): New variable.
11892 (trig_mod_CFLAGS): Likewise.
11893 (trig_mod_LDFLAGS): Likewise.
11894
5562834e
VS
118952010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
11896
11897 * kern/ieee1275/openfw.c (grub_ieee1275_encode_devname): Support whole
11898 disk devices.
11899
4f8528fc
VS
119002010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
11901
11902 * kern/ieee1275/openfw.c (grub_devalias_iterate): Stop iterating on
11903 error.
11904
2b4068e9
VS
119052010-02-03 Vladimir Serbinenko <phcoder@gmail.com>
11906
11907 * util/hostdisk.c (open_device): Don't use partition device when reading
11908 before the partition.
11909 (grub_util_biosdisk_read): Don't read from partition and before the
11910 partition in single operation.
11911 (grub_util_biosdisk_write): Don't write to partition and before the
11912 partition in single operation.
11913
399f6e4d
TL
119142010-02-03 Torsten Landschoff <torsten@debian.org>
11915
11916 * kern/disk.c (grub_disk_read): Fix offset computation when reading
11917 last sectors.
11918
996649b0
VS
119192010-02-03 Vladimir Serbinenko <phcoder@gmail.com>
11920
11921 * disk/i386/pc/biosdisk.c (grub_biosdisk_read): Handle non-2048 aligned
11922 CDROM reads.
11923 (grub_biosdisk_write): Refuse to write to CDROM.
11924
3b205d4d
VS
119252010-01-31 Vladimir Serbinenko <phcoder@gmail.com>
11926
11927 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Fix off-by-one error.
11928
61e89d9d
VS
119292010-01-31 Vladimir Serbinenko <phcoder@gmail.com>
11930
11931 * font/font.c (find_glyph): Check that bmp_idx is available before
11932 using it.
11933 (grub_font_get_string_width): Never call grub_font_get_glyph_internal
11934 with (font == NULL).
11935
bf7fcba2
CS
119362010-01-28 Christian Schmitt <chris@ilovelinux.de>
11937
11938 * util/ieee1275/grub-install.in: Fix nvsetenv arguments.
11939
f45d2663
BC
119402010-01-28 BVK Chaitanya <bvk.groups@gmail.com>
11941
11942 * include/grub/script_sh.h (sourcecode): Add const qualifier.
11943 * util/grub-script-check.c (getline): Fix empty lines case.
11944
ec1444e6
RM
119452010-01-28 Robert Millan <rmh.grub@aybabtu.com>
11946
11947 * Makefile.in (check): Exit with fail status when one of the tests
11948 fails.
11949 * tests/example_functional_test.c (example_test): Fix reversed assert.
11950 * tests/example_unit_test.c (example_test): Likewise.
11951
2e1cb9bb
CW
119522010-01-28 Colin Watson <cjwatson@ubuntu.com>
11953
11954 * util/grub.d/10_linux.in: This script does not use any of the
11955 contents of gettext.sh, only the external command `gettext', so stop
11956 sourcing it. (Moreover, gettext.sh isn't necessarily installed in
11957 the same prefix as GRUB.)
11958 * util/grub.d/10_kfreebsd.in: Likewise.
11959
63533ab0
VS
119602010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
11961
11962 * normal/cmdline.c (grub_cmdline_get): Fix completion in the middle
11963 of the line.
11964
989e1f93
VS
119652010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
11966
11967 * kern/disk.c (grub_disk_read): Fix offset computation when reading
11968 last sectors.
11969
e709ebe2
VS
119702010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
11971
11972 * commands/hashsum.c (hash_file): Avoid possible stack overflow by
11973 having a 4KiB and not 32KiB buffer size.
11974
27dea7ed
RM
119752010-01-27 Robert Millan <rmh.grub@aybabtu.com>
11976
11977 * util/hostfs.c: Include `<errno.h>'.
11978 (grub_hostfs_read): Handle errors from fseeko() and fread().
11979
67667b9c
RM
119802010-01-27 Robert Millan <rmh.grub@aybabtu.com>
11981
11982 * kern/disk.c (grub_disk_read): Fix bug that would cause infinite
11983 loop when using read hooks on files whose size isn't sector-aligned.
11984
c294d9d8
RM
119852010-01-27 Robert Millan <rmh.grub@aybabtu.com>
11986
11987 Remove unused parameter.
11988
11989 * fs/iso9660.c (struct grub_iso9660_data): Remove `length' parameter.
11990 (grub_iso9660_open): Remove initialization of `data->length'.
11991
af75a9f1
RM
119922010-01-27 Robert Millan <rmh.grub@aybabtu.com>
11993
11994 * util/grub-fstest.c (fstest): Rewrite allocation, fixing a few
11995 memleak conditions.
11996
254e2ce5 119972010-01-27 Carles Pina i Estany <carles@pina.cat>
11998
11999 * util/lvm.c: New macro LVM_DEV_MAPPER_STRING.
12000 (grub_util_lvm_isvolume): Use LVM_DEV_MAPPER_STRING.
12001
b510928c 120022010-01-26 Carles Pina i Estany <carles@pina.cat>
12003
12004 * util/bin2h.c (usage): Fix warning (space after backslash).
12005
aa2f9dd2 120062010-01-26 Carles Pina i Estany <carles@pina.cat>
de0b7a4e 12007
12008 * font/font.c: Include `grub/fontformat.h.
12009 Remove font file format constants.
12010 (grub_font_load): Use the new macros.
12011 * include/grub/fontformat.h: New file.
12012 * util/grub-mkfont.c: Include `grub/fontformat.c'.
12013 (write_font_pf2): Use the new macros.
12014
94e7e712
RM
120152010-01-26 Robert Millan <rmh.grub@aybabtu.com>
12016
12017 * util/bin2h.c (usage): Make --help actually explain what `grub-bin2h'
12018 does.
12019
3973a59a
RM
120202010-01-26 Robert Millan <rmh.grub@aybabtu.com>
12021
12022 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_PXE_DL): New macro.
12023
12024 * boot/i386/pc/pxeboot.S: Include `<grub/machine/boot.h>'.
12025 (_start): Macroify `0x7F'.
12026
12027 * kern/i386/pc/init.c: Include `<grub/machine/boot.h>'.
12028 (make_install_device): Use "(pxe)" as fallback prefix when booting
12029 via PXE.
12030
42e0cba3
GS
120312010-01-26 Vladimir Serbinenko <phcoder@gmail.com>
12032
12033 * configure.ac: Reset LIBS after check for libgcc symbols.
12034
847effd8
CW
120352010-01-25 Colin Watson <cjwatson@ubuntu.com>
12036
12037 * util/hostdisk.c (open_device): Add trailing newline to debug
12038 message.
12039
ea4a7e35
GS
120402010-01-25 Grégoire Sutre <gregoire.sutre@gmail.com>
12041
12042 * configure.ac: Check for `limits.h'.
12043 * util/misc.c: Include `<limits.h>' (for PATH_MAX).
12044
67951a53
RM
120452010-01-24 Robert Millan <rmh.grub@aybabtu.com>
12046
12047 * loader/mips/linux.c (grub_cmd_linux, grub_cmd_initrd): Don't
12048 capitalize error strings.
12049
c273d4ce
ST
120502010-01-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
12051
12052 * util/grub.d/10_hurd.in: Add a recovery mode.
12053
69be5b74
VS
120542010-01-23 Vladimir Serbinenko <phcoder@gmail.com>
12055
12056 * configure.ac: Check for libgcc symbols with -nostdlib.
12057
fc9e5810
BC
120582010-01-23 BVK Chaitanya <bvk.groups@gmail.com>
12059
12060 * acinclude.m4: Quote underquoted AC_DEFUN parameters.
12061
4b358c0a
VS
120622010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
12063
12064 * term/ieee1275/ofconsole.c (grub_ofconsole_setcolorstate): Allocate on
12065 stack since heap may be unavailable at that point.
12066 (grub_ofconsole_gotoxy): Likewise.
12067
454fcd1c
VS
120682010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
12069
12070 * configure.ac: Check for _restgpr_14_x.
12071 * include/grub/powerpc/libgcc.h [HAVE__RESTGPR_14_X]: Add _restgpr_*_x
12072 and _savegpr_* prototypes.
12073
566863ca
RM
120742010-01-22 Robert Millan <rmh.grub@aybabtu.com>
12075
12076 Use generic grub_reboot() for i386-efi.
12077
12078 * kern/efi/efi.c [__i386__] (grub_reboot): Remove.
12079 * kern/i386/efi/startup.S: Include `"../realmode.S"'.
12080 * kern/i386/realmode.S: Include `<grub/i386/pc/memory.h>'.
12081
bf86e59a
VS
120822010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
12083
12084 * kern/ieee1275/init.c (grub_machine_set_prefix): Don't check for
12085 presence of "prefix" variable as it breaks when normal.mod is
12086 embedded.
12087
d645e0f8
VS
120882010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
12089
12090 * term/ieee1275/ofconsole.c (grub_ofconsole_dimensions): Allocate on
12091 stack since heap is unavailable at that point.
12092
f9ab2e25
VS
120932010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
12094
12095 * include/grub/i386/bsd.h (FREEBSD_N_BIOS_GEOM): Removed.
12096 (grub_freebsd_bootinfo): Rewritten.
12097 * loader/i386/bsd.c (grub_freebsd_boot): Use new grub_freebsd_bootinfo.
12098
01fc7054
VS
120992010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
12100
12101 * util/misc.c (make_system_path_relative_to_its_root): Fix typo.
12102
caab4fd6
RM
121032010-01-21 Robert Millan <rmh.grub@aybabtu.com>
12104
12105 * po/POTFILES: Remove mkisofs-related files. They have their own TLP
12106 domain now.
12107
67eb1427
FZ
121082010-01-20 Felix Zielcke <fzielcke@z-51.de>
12109
12110 * util/misc.c (make_system_path_relative_to_its_root): Change the work
12111 around for handling "/" to the correct fix. Fix a memory leak. Use
12112 xstrdup instead of strdup.
12113
a9ed4ff3
VS
121142010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
12115
12116 * conf/mips.rmk (kernel_img_HEADERS): Add env_private.h
12117
121182010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
bed35bda
VS
12119
12120 Optimise glyph lookup by Basic Multilingual Plane lookup array.
12121
12122 * font/font.c (struct grub_font): New member 'bmp_idx'.
12123 (font_init): Initialise 'bmp_idx'.
12124 (load_font_index): Fill 'bmp_idx'.
12125 (find_glyph): Make inline. Use bmp_idx for BMP characters.
12126
48209f4f
VS
121272010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
12128
12129 * video/fb/video_fb.c (grub_video_fb_scroll): Optimise by avoiding
12130 unnecessary calls.
12131
9f0a4bb7
VS
121322010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
12133
12134 Move context handling out of the kernel.
12135
12136 * conf/any-emu.rmk (grub_emu_SOURCES): Add normal/context.c.
12137 * conf/common.rmk (normal_mod_SOURCES): Add normal/context.c.
12138 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add env_private.h.
12139 * conf/i386-efi.rmk: Likewise.
12140 * conf/i386-ieee1275.rmk: Likewise.
12141 * conf/i386-pc.rmk: Likewise.
12142 * conf/powerpc-ieee1275.rmk: Likewise.
12143 * conf/sparc64-ieee1275.rmk: Likewise.
12144 * conf/x86_64-efi.rmk: Likewise.
12145 * include/grub/env.h: Include grub/menu.h.
12146 (grub_env_var_type): Removed.
12147 (grub_env_var): Replaced field 'type' with 'global'.
12148 (grub_env_find): New prototype.
12149 (grub_env_context_open): Remove EXPORT_FUNC.
12150 (grub_env_context_close): Likewise.
12151 (grub_env_export): Likewise.
12152 (grub_env_set_data_slot): Removed.
12153 (grub_env_get_data_slot): Likewise.
12154 (grub_env_unset_data_slot): Likewise.
12155 (grub_env_unset_menu): New prototype.
12156 (grub_env_set_menu): Likewise.
12157 (grub_env_get_menu): Likewise.
12158 * include/grub/env_private.h: New file.
12159 * include/grub/normal.h (grub_context_init): New prototype.
12160 (grub_context_fini): Likewise.
12161 * kern/corecmd.c (grub_core_cmd_export): Moved from here ...
12162 * normal/context.c (grub_cmd_export): ... to here.
12163 * kern/env.c: Include env_private.h.
12164 (HASHSZ): Moved to include/grub/env_private.h.
12165 (grub_env_context): Likewise.
12166 (grub_env_sorted_var): Likewise.
12167 (current_context): Renamed from this ...
12168 (grub_current_context): ...to this. 'static' removed. All users updated.
12169 (grub_env_find): Removed 'static'.
12170 (grub_env_context_open): Moved to normal/context.c.
12171 (grub_env_context_close): Likewise.
12172 (grub_env_export): Likewise.
12173 (mangle_data_slot_name): Removed.
12174 (grub_env_set_data_slot): Likewise.
12175 (grub_env_get_data_slot): Likewise.
12176 (grub_env_unset_data_slot): Likewise.
12177 * kern/main.c (grub_set_root_dev): Don't export root.
12178 It will be done later.
12179 (grub_main): Don't export prefix.
12180 It will be done later.
12181 * normal/context.c: New file.
12182 * normal/main.c (free_menu): Use grub_env_unset_menu.
12183 (grub_normal_add_menu_entry): Use grub_env_get_menu.
12184 (read_config_file): Use grub_env_get_menu and grub_env_set_menu.
12185 (GRUB_MOD_INIT(normal)): Call grub_context_init.
12186 (GRUB_MOD_FINI(normal)): Call grub_context_fini.
12187
8dd35b8c
VS
121882010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
12189
12190 setpci support.
12191
12192 * commands/setpci.c: New file.
12193 * conf/i386.rmk (pkglib_MODULES): Add setpci.mod.
12194 (setpci_mod_SOURCES): New variable.
12195 (setpci_mod_CFLAGS): Likewise.
12196 (setpci_mod_LDFLAGS): Likewise.
12197
449193d5
VS
121982010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
12199
12200 Byte-addressable PCI configuration space.
12201
12202 * bus/pci.c (grub_pci_make_address): Use byte address instead of
12203 dword address.
12204 (grub_pci_iterate): Use macroses GRUB_PCI_REG_PCI_ID and
12205 GRUB_PCI_REG_CACHELINE.
12206 * bus/usb/ohci.c (grub_ohci_pci_iter): Use macroses
12207 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESS_REG0.
12208 * bus/usb/uhci.c (grub_ohci_pci_iter): Use macroses
12209 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESS_REG4.
12210 * commands/efi/fixvideo.c (scan_card): Use macros GRUB_PCI_REG_CLASS.
12211 * commands/efi/loadbios.c (enable_rom_area): Pass byte-address to
12212 grub_pci_make_address.
12213 (lock_rom_area): Likewise.
12214 * commands/lspci.c (grub_lspci_iter): Use macroses
12215 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESSES. Handle byte-addressing
12216 of grub_pci_make_address.
12217 * disk/ata.c (grub_ata_pciinit): Likewise.
12218 * include/grub/pci.h (GRUB_PCI_REG_PCI_ID): New macro.
12219 (GRUB_PCI_REG_VENDOR): Likewise.
12220 (GRUB_PCI_REG_DEVICE): Likewise.
12221 (GRUB_PCI_REG_COMMAND): Likewise.
12222 (GRUB_PCI_REG_STATUS): Likewise.
12223 (GRUB_PCI_REG_REVISION): Likewise.
12224 (GRUB_PCI_REG_CLASS): Likewise.
12225 (GRUB_PCI_REG_CACHELINE): Likewise.
12226 (GRUB_PCI_REG_LAT_TIMER): Likewise.
12227 (GRUB_PCI_REG_HEADER_TYPE): Likewise.
12228 (GRUB_PCI_REG_BIST): Likewise.
12229 (GRUB_PCI_REG_ADDRESSES): Likewise.
12230 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
12231 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
12232 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
12233 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
12234 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
12235 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
12236 (GRUB_PCI_REG_CIS_POINTER): Likewise.
12237 (GRUB_PCI_REG_SUBVENDOR): Likewise.
12238 (GRUB_PCI_REG_SUBSYSTEM): Likewise.
12239 (GRUB_PCI_REG_ROM_ADDRESS): Likewise.
12240 (GRUB_PCI_REG_CAP_POINTER): Likewise.
12241 (GRUB_PCI_REG_IRQ_LINE): Likewise.
12242 (GRUB_PCI_REG_IRQ_PIN): Likewise.
12243 (GRUB_PCI_REG_MIN_GNT): Likewise.
12244 (GRUB_PCI_REG_MAX_LAT): Likewise.
12245 * loader/i386/efi/linux.c (find_framebuf): Use GRUB_PCI_REG_CLASS.
12246 * loader/i386/efi/xnu.c (find_framebuf): Likewise.
12247 * video/efi_uga.c (find_framebuf): Likewise.
fdb1b2ea 12248 * video/sm712.c (grub_video_sm712_setup): Likewise.
449193d5
VS
12249 * util/pci.c (grub_pci_make_address): Use byte-addressed configuration
12250 space.
12251
96d73208
RM
122522010-01-20 Robert Millan <rmh.grub@aybabtu.com>
12253
12254 * util/grub.d/10_linux.in (linux_entry): Set gfxpayload=keep when it
12255 can be reliably determined to be supported.
12256
d4484482
RM
122572010-01-20 Robert Millan <rmh.grub@aybabtu.com>
12258
12259 * loader/i386/linux.c (grub_cmd_linux): If `vga=' was used, write down
12260 that VESA is supported.
12261 (grub_linux_boot): Use generic framebuffer unless VESA is known to be
12262 supported.
12263
00308ecf
VS
122642010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
12265
12266 * conf/common.rmk (font/font.c_DEPENDENCIES): Condition on FONT_SOURCE.
12267
f66924a4
RM
122682010-01-20 Robert Millan <rmh.grub@aybabtu.com>
12269
12270 * util/misc.c (make_system_path_relative_to_its_root): Work around
12271 special-casing of "/", as previous incarnation of this routine did.
12272
cbca0ada
VS
122732010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
12274
12275 Fix any-emu compilation.
12276
12277 * conf/any-emu.rmk (bin_UTILITIES): Add grub-bin2h.
12278 * grub_bin2h_SOURCES: New variable.
12279
34a66d99
RM
122802010-01-20 Robert Millan <rmh.grub@aybabtu.com>
12281
12282 * util/grub.d/00_header.in: Fix stupid mistake from last commit.
12283
94fabf58
RM
122842010-01-20 Robert Millan <rmh.grub@aybabtu.com>
12285
12286 * util/grub.d/00_header.in: Fix handling of locale_dir.
12287
02cf98ca
VS
122882010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
12289
12290 * configure.ac: Add /usr/share/fonts/unifont/unifont.pcf.gz
12291 as possible unifont location (Gentoo).
12292 Reported by: Alexander Brüning
12293
327dbcd7
VS
122942010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
12295
12296 Don't try to generate lists for kernel.img.
12297
12298 * conf/i386-efi.rmk (pkglib_PROGRAMS): New variable.
12299 (pkglib_MODULES): Remove kernel.img.
12300 (kernel_img_EXPORTS): Removed.
12301 (kernel_img_RELOCATABLE): New variable.
12302 * conf/x86_64-efi.rmk: Likewise.
12303 * genmk.rb: Remove *_EXPORTS support and add *_RELOCATABLE support.
12304
ca467290
VS
123052010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
12306
12307 * include/grub/misc.h (grub_sprintf): Removed. All users switched to
12308 grub_xasprintf or grub_snprintf.
12309 (grub_vsprintf): Likewise.
12310 (grub_snprintf): New proto.
12311 (grub_vsnprintf): Likewise.
12312 (grub_xasprintf): Likewise.
12313 (grub_xvasprintf): Likewise.
12314 * kern/misc.c (grub_vprintf): Use grub_vsnprintf_real.
12315 (grub_sprintf): Removed.
12316 (grub_vsnprintf): New function.
12317 (grub_snprintf): Likewise.
12318 (grub_xvasprintf): Likewise.
12319 (grub_xasprintf): Likewise.
12320 (grub_vsprintf): Renamed to ...
12321 (grub_vsnprintf_real): ...this. New argument max_len.
12322
aca655fd
BC
123232010-01-20 BVK Chaitanya <bvk.groups@gmail.com>
12324
12325 * include/grub/script_sh.h (sourcecode): Remove const qualifier to
12326 fix grub-script-check warning.
12327
7ee92c32
VS
123282010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
12329
12330 * include/grub/font.h (grub_font_load): Fix prototype.
12331
f80927ca
VS
123322010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
12333
12334 * conf/mips.rmk (kernel_img_HEADERS) [yeeloong]: Add pci.h.
12335
119c50ea
VS
123362010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
12337
12338 * include/grub/x86_64/at_keyboard.h: New file.
12339
47d5f3c1
VS
123402010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
12341
12342 * loader/mips/linux.c: Include missing grub/i18n.h.
12343
55ff5266
RM
123442009-12-20 Robert Millan <rmh.grub@aybabtu.com>
12345
12346 * normal/menu.c (notify_execution_failure): Clarify error message.
12347
c893cc87
RM
123482009-12-20 Robert Millan <rmh.grub@aybabtu.com>
12349
12350 * commands/loadenv.c (check_blocklists): Use `grub_err_t' as
12351 return value (and revert all return statements). Update users.
12352
917dd370
CW
123532010-01-20 Dan Merillat <debian@dan.merillat.org>
12354
12355 * kern/device.c (grub_device_iterate): Allocate new part_ent
12356 structure based on sizeof (*p) rather than sizeof (p->next), to
12357 account for structure padding.
12358
12359 * util/grub-probe.c (probe_raid_level): Return -1 immediately if
12360 disk is NULL, which might happen for LVM physical volumes with no
12361 LVM signature.
12362
d4a4ee57
RM
123632009-12-20 Robert Millan <rmh.grub@aybabtu.com>
12364
12365 * loader/mips/linux.c (grub_cmd_initrd)
12366 (GRUB_MOD_INIT(linux)): Adjust and gettextize a few strings.
12367
123682009-12-20 Robert Millan <rmh.grub@aybabtu.com>
12369
12370 * kern/mips/yeeloong/init.c (grub_video_sm712_init)
12371 (grub_video_video_init, grub_video_bitmap_init)
12372 (grub_font_manager_init, grub_term_gfxterm_init)
12373 (grub_at_keyboard_init): New extern declarations.
12374 (grub_machine_init): Initialize gfxterm and at_keyboard.
12375
12376 * kern/main.c (grub_main): Revert grub_printf delay kludge.
12377
12378 * util/grub-install.in: Revert embed of `at_keyboard.mod' and
12379 `gfxterm.mod' into core image.
12380
12381 * conf/mips.rmk (pkglib_IMAGES, kernel_img_SOURCES)
12382 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
12383 (kernel_img_FORMAT): Copy to ...
12384
12385 * conf/mips-qemu-mips.rmk (pkglib_IMAGES, kernel_img_SOURCES)
12386 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
12387 (kernel_img_FORMAT): ... here, and ...
12388
12389 * conf/mips-yeeloong.rmk (pkglib_IMAGES, kernel_img_SOURCES)
12390 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
12391 (kernel_img_FORMAT): ... here.
12392
12393 (kernel_img_SOURCES): Add files necessary for output (gfxterm)
12394 and input (at_keyboard) terminals in kernel.
12395 (kernel_img_CFLAGS): Add `-DUSE_ASCII_FAILBACK'.
12396
12397 (pkglib_MODULES): Remove `pci.mod'.
12398 (pci_mod_SOURCES, pci_mod_CFLAGS, pci_mod_LDFLAGS)
12399 (sm712_mod_SOURCES, sm712_mod_CFLAGS, sm712_mod_LDFLAGS)
12400 (at_keyboard_mod_SOURCES, at_keyboard_mod_CFLAGS)
12401 (at_keyboard_mod_LDFLAGS): Remove variables.
12402
124032010-01-11 Felix Zielcke <fzielcke@z-51.de>
12404
12405 * po/POTFILES: Replace `term/i386/pc/serial.c' with `term/serial.c'.
12406
124072009-12-10 Robert Millan <rmh.grub@aybabtu.com>
12408
12409 * include/grub/mips/libgcc.h: Only export symbols for functions
12410 that libgcc provides.
12411
124122009-12-02 Vladimir Serbinenko <phcoder@gmail.com>
12413
12414 MIPS support.
12415
12416 * bus/bonito.c: New file.
12417 * bus/pci.c (grub_pci_iterate): Use GRUB_PCI_NUM_BUS and
12418 GRUB_PCI_NUM_DEVICES.
12419 * term/i386/pc/serial.c: Move to ...
12420 * term/serial.c: ... here. All users updated.
12421 * util/i386/pc/grub-mkimage.c: Move to ...
12422 * util/grub-mkrawimage.c: ... here. All users updated.
12423 * term/i386/pc/at_keyboard.c: Move to ...
12424 * term/at_keyboard.c: ... here. All users updated.
12425 * conf/mips-qemu-mips.rmk: New file.
12426 * conf/mips-yeeloong.rmk: Likewise.
12427 * conf/mips.rmk: Likewise.
12428 * configure.ac: New platforms mipsel-yeeloong, mips-qemu-mips and
12429 mipsel-qemu-mips.
12430 * disk/ata.c (grub_ata_device_initialize): Add GRUB_MACHINE_PCI_IO_BASE
12431 to port addresses.
12432 (grub_ata_pciinit): Support CS5536.
12433 * font/font.c (grub_font_load): Use grub_file_t instead of filename.
12434 * font/font_cmd.c (loadfont_command): Open file before passing it to
12435 grub_font_load.
12436 (pseudo_file_read): New function.
12437 (pseudo_file_close): Likewise.
12438 (pseudo_fs): New structure.
12439 (load_font_module): New function.
12440 (GRUB_MOD_INIT(font_manager)): Load embedded font.
12441 * fs/cpio.c (grub_cpio_open): Handle partial matches correctly.
12442 * genmk.rb: Strip .rel.dyn, .reginfo, .note and .comment.
12443 * genmoddep.awk: Ignore __gnu_local_gp. It's defined by linker.
12444 * include/grub/i386/at_keyboard.h: Split into ...
12445 * include/grub/at_keyboard.h: ... this ...
12446 * include/grub/i386/at_keyboard.h: ... and this.
12447 * include/grub/dl.h (grub_arch_dl_init_linker) [_mips && !GRUB_UTIL]:
12448 New prototype.
12449 * include/grub/elfload.h (grub_elf32_size): New parameter. All users
12450 updated.
12451 (grub_elf64_size): Likewise.
12452 * include/grub/font.h (grub_font_load): Use grub_file_t instead of
12453 filename.
12454 * include/grub/i386/io.h (grub_port_t): New type. All users updated.
12455 * include/grub/i386/coreboot/serial.h: Rewritten.
12456 * include/grub/i386/ieee1275/serial.h: Include
12457 grub/i386/coreboot/serial.h instead of grub/i386/pc/serial.h.
12458 * include/grub/i386/pc/serial.h: Moved from here ...
12459 * include/grub/serial.h: ... to here. All users updated.
12460 * include/grub/i386/pci.h (GRUB_MACHINE_PCI_IO_BASE): New definition.
12461 (GRUB_PCI_NUM_BUS): Likewise.
12462 (GRUB_PCI_NUM_DEVICES): Likewise.
12463 (grub_pci_device_map_range): Add missing volatile keyword.
12464 * include/grub/kernel.h (OBJ_TYPE_FONT): New enum value.
12465 * include/grub/mips/at_keyboard.h: New file.
12466 * include/grub/mips/cache.h: Likewise.
12467 * include/grub/mips/io.h: Likewise.
12468 * include/grub/mips/kernel.h: Likewise.
12469 * include/grub/mips/libgcc.h: Likewise.
12470 * include/grub/mips/pci.h: Likewise.
12471 * include/grub/mips/qemu-mips/boot.h: Likewise.
12472 * include/grub/mips/qemu-mips/kernel.h: Likewise.
12473 * include/grub/mips/qemu-mips/loader.h: Likewise.
12474 * include/grub/mips/qemu-mips/memory.h: Likewise.
12475 * include/grub/mips/qemu-mips/serial.h: Likewise.
12476 * include/grub/mips/qemu-mips/time.h: Likewise.
12477 * include/grub/mips/relocator.h: Likewise.
12478 * include/grub/mips/time.h: Likewise.
12479 * include/grub/mips/types.h: Likewise.
12480 * include/grub/mips/yeeloong/at_keyboard.h: Likewise.
12481 * include/grub/mips/yeeloong/boot.h: Likewise.
12482 * include/grub/mips/yeeloong/kernel.h: Likewise.
12483 * include/grub/mips/yeeloong/loader.h: Likewise.
12484 * include/grub/mips/yeeloong/memory.h: Likewise.
12485 * include/grub/mips/yeeloong/pci.h: Likewise.
12486 * include/grub/mips/yeeloong/serial.h: Likewise.
12487 * include/grub/mips/yeeloong/time.h: Likewise.
12488 * kern/dl.c (grub_dl_resolve_symbols): Handle STT_OBJECT correctly.
12489 * kern/elf.c (grub_elf32_size): New parameter. All users
12490 updated.
12491 (grub_elf64_size): Likewise.
12492 * kern/main.c (grub_main): Call grub_arch_dl_init_linker if necessary.
12493 Load modules before saying "Welcome to GRUB!".
12494 Call grub_refresh after saying "Welcome to GRUB!".
12495 * kern/mips/cache.S: New file.
12496 * kern/mips/cache_flush.S: Likewise.
12497 * kern/mips/dl.c: Likewise.
12498 * kern/mips/init.c: Likewise.
12499 * kern/mips/qemu-mips/init.c: Likewise.
12500 * kern/mips/startup.S: Likewise.
12501 * kern/mips/yeeloong/init.c: Likewise.
12502 * kern/term.c (grub_putcode): Handle NULL terminal.
12503 (grub_getcharwidth): Likewise.
12504 (grub_getkey): Likewise.
12505 (grub_checkkey): Likewise.
12506 (grub_getkeystatus): Likewise.
12507 (grub_getxy): Likewise.
12508 (grub_getwh): Likewise.
12509 (grub_gotoxy): Likewise.
12510 (grub_cls): Likewise.
12511 (grub_setcolorstate): Likewise.
12512 (grub_setcolor): Likewise.
12513 (grub_getcolor): Likewise.
12514 (grub_refresh): Likewise.
12515 * lib/mips/relocator.c (JUMP_SIZEOF): Fix incorrect value.
12516 (write_jump): Add hatch nop.
12517 * lib/mips/relocator_asm.S: Use kern/mips/cache_flush.S.
12518 * lib/mips/setjmp.S: New file.
12519 * loader/mips/linux.c: Likewise.
12520 * term/i386/pc/at_keyboard.c: Move from here ...
12521 * term/at_keyboard.c: ... to here.
12522 * term/i386/pc/serial.c: Moved from here ...
12523 * term/serial.c: ... to here. All users updated.
12524 (TEXT_HEIGHT): Set to 24 to fit linux terminal.
12525 (serial_hw_io_addr): Use GRUB_MACHINE_SERIAL_PORTS.
12526 (serial_translate_key_sequence): Avoid deadlock.
12527 (grub_serial_getkey): Handle backspace.
12528 (grub_serial_putchar): Fix newline handling.
12529 * util/i386/pc/grub-mkimage.c: Move from here ...
12530 * util/grub-mkrawimage.c: ... to here. All users updated.
12531 (generate_image): New parameters 'font_path' and 'format'.
12532 Support embedding font.
12533 Use grub_host_to_target* instead of grub_cpu_to_le*.
12534 (generate_image) [GRUB_MACHINE_MIPS]: Support ELF encapsulation.
12535 (options) [GRUB_PLATFORM_IMAGE_DEFAULT]: New option "--format".
12536 (options): New option "--font".
12537 (usage): Likewise.
12538 (main) [GRUB_PLATFORM_IMAGE_DEFAULT]: Handle "--format".
12539 (main): Handle "--font".
12540 * term/gfxterm.c (grub_virtual_screen): New member bg_color_display.
12541 (grub_virtual_screen_setup): Set bg_color_display.
12542 (redraw_screen_rect): Use bg_color_display instead of incorrect
12543 bg_color.
12544 (grub_gfxterm_cls): Likewise.
12545 * util/elf/grub-mkimage.c (load_modules): New parameter 'config_path'.
12546 Support embedding config file.
12547 (add_segments): Likewise.
12548 (options): New option "--config".
12549 (main): Handle "--config".
12550 * video/sm712.c: New file.
12551
25c2b5b3
RM
125522010-01-18 Robert Millan <rmh.grub@aybabtu.com>
12553
12554 Fix parallel builds.
12555
12556 * conf/common.rmk (font/font.c_DEPENDENCIES): New variable (makes
12557 font.c depend on ascii.h).
12558
125592010-01-12 Carles Pina i Estany <carles@pina.cat>
12560
12561 * Makefile.in (DUSE_ASCII_FAILBACK): New macro.
12562
125632010-01-11 Carles Pina i Estany <carles@pina.cat>
12564
12565 * font/font.c (GENERATE_ASCII): Change the name to USE_ASCII_FAILBACK.
12566 By default: disabled.
12567 * Makefile.in (ascii.h): Remove the non-needed grub/bin2h size
12568 parameter.
12569
125702010-01-10 Carles Pina i Estany <carles@pina.cat>
12571
12572 * font/font.c: Update copyright years.
12573 * util/grub-mkfont.c (write_font_ascii_bitmap): Change comment format.
12574
125752010-01-10 Carles Pina i Estany <carles@pina.cat>
12576
12577 * font/font.c: Include `ascii.h'.
12578 (ASCII_BITMAP_SIZE): New macro.
12579 (ascii_font_glyph): Define.
12580 (ascii_glyph_lookup): New function.
12581 (grub_font_get_string_width): Change comment. If glyph not found, use
12582 ascii_glyph_lookup.
12583 (grub_font_get_glyph_with_fallback): If glyph not available returns
12584 ascii_glyph_lookup.
12585 * util/grub-mkfont.c (file_formats): New enum.
12586 (options): Add `ascii-bitmaps' new option.
12587 (usage): Add `asii-bitmaps' new option.
12588 (write_font_ascii_bitmap): New function.
12589 (write_font): Rename to ...
12590 (write_font_p2): ... this. Remove print_glyphs call.
12591 (main): Use file_format. Implement code for ranges if ascii-bitmaps is
12592 used. Call print_glyphs.
12593 * Makefile.in (pkgdata_DATA): Add `ascii.h'.
12594
125952010-01-14 Robert Millan <rmh.grub@aybabtu.com>
12596
12597 * conf/common.rmk (bin_UTILITIES): Add `grub-bin2h'.
12598 (grub_bin2h_SOURCES): New variable.
12599 * util/bin2h.c: New file.
12600
915fc1b8
VS
126012010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
12602
12603 * include/multiboot.h: Resynced with spec.
12604 * include/multiboot2.h: Likewise.
12605 * loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap): Handle
12606 GRUB_MACHINE_MEMORY_ACPI_RECLAIMABLE and GRUB_MACHINE_MEMORY_NVS.
12607
9444b678
RM
126082010-01-18 Robert Millan <rmh.grub@aybabtu.com>
12609
12610 * include/grub/term.h (grub_term_register_input,
12611 grub_term_register_output): Check return of terminal init()
12612 routines, and abort if errors are raised.
12613
12614 * commands/terminal.c: Update copyright year.
12615
cba98e8d
RM
126162010-01-18 Robert Millan <rmh.grub@aybabtu.com>
12617
12618 * commands/terminal.c (grub_cmd_terminal_input)
12619 (grub_cmd_terminal_output): Check return of terminal init()
12620 routines, and abort if errors are raised.
12621
6f7db5d6
VS
126222010-01-18 Vladimir Serbinenko <phcoder@gmail.com>
12623
12624 * include/grub/i386/bsd.h: Fix include pathes.
12625
262bff8d
VS
126262010-01-18 Vladimir Serbinenko <phcoder@gmail.com>
12627
12628 Add missing *BSD copyright headers.
12629
12630 * include/grub/aout.h: Add BSD licence.
12631 * include/grub/i386/bsd.h: Parts under different licences moved to ...
12632 * include/grub/i386/freebsd_linker.h: ... here,
12633 * include/grub/i386/freebsd_reboot.h: ... here,
12634 * include/grub/i386/netbsd_bootinfo.h: ... here,
12635 * include/grub/i386/netbsd_reboot.h: ... here,
12636 * include/grub/i386/openbsd_bootarg.h: ... here,
12637 * include/grub/i386/openbsd_reboot.h: ... and here. Added appropriate
12638 licence to each file.
12639
b2cab848
RM
126402010-01-18 Robert Millan <rmh.grub@aybabtu.com>
12641
12642 * acinclude.m4: Remove `nop' assembly instruction; it's not
12643 implemented by all architectures.
12644
2cb6be4b
RM
126452010-01-18 Robert Millan <rmh.grub@aybabtu.com>
12646
12647 * loader/i386/efi/linux.c (grub_cmd_linux): Stop pretending we're
12648 ELILO. This is no longer necessary.
12649
a2eaee15
BC
126502010-01-18 BVK Chaitanya <bvk.groups@gmail.com>
12651
12652 Added new tool, grub-scrit-check to verify grub.cfg syntax.
12653
12654 * util/grub-script-check.c: grub-script-check tool.
12655 * conf/common.rmk: Make rules for grub-script-check.
12656
88d17012
RM
126572010-01-18 Robert Millan <rmh.grub@aybabtu.com>
12658
12659 Fix annoying UI bug in rescue mode. Thanks to Tristan Gingold for
12660 spotting it back in 2008. Shame on me for forgetting he did.
12661
12662 * kern/rescue_reader.c (grub_rescue_run): Skip zero-length lines.
12663
8040619d
RM
126642010-01-18 Robert Millan <rmh.grub@aybabtu.com>
12665
12666 * include/grub/i386/linux.h (GRUB_VIDEO_TYPE_TEXT): Rename to ...
12667 (GRUB_VIDEO_LINUX_TYPE_TEXT): ... this. Update all users.
12668 (GRUB_VIDEO_TYPE_VLFB): Rename to ...
12669 (GRUB_VIDEO_LINUX_TYPE_VESA): ... this. Update all users.
12670 (GRUB_VIDEO_TYPE_EFI): Rename to ...
12671 (GRUB_VIDEO_LINUX_TYPE_SIMPLE): ... this. Update all users.
12672
a0c2a0f6
RM
126732010-01-17 Robert Millan <rmh.grub@aybabtu.com>
12674
12675 * include/grub/test.h: Add license header.
12676 * tests/example_functional_test.c: Likewise.
12677 * tests/example_unit_test.c: Likewise.
12678 * tests/lib/functional_test.c: Likewise.
12679 * tests/lib/test.c: Likewise.
12680 * tests/lib/unit_test.c: Likewise.
12681
b0b13907
VS
126822010-01-17 Vladimir Serbinenko <phcoder@gmail.com>
12683
12684 Use flag-based instead of hook-based video mode selection and "auto"
12685 keyword.
12686
12687 * include/grub/video.h (grub_video_adapter): Changed 'setup' member.
12688 (grub_video_set_mode): Changed prototype. All users updated.
12689 (grub_video_check_mode_flag): New inline function.
12690 * video/video.c (parse_modespec): New function.
12691 (grub_video_set_mode): Parse flags and keywords.
12692
ea379330 126932010-01-17 Carles Pina i Estany <carles@pina.cat>
12694
12695 * util/misc.c (grub_util_info): Fix the order of the parameters in a
12696 fprintf call.
12697
e15c215e
FZ
126982010-01-16 Grégoire Sutre <gregoire.sutre@gmail.com>
12699
12700 * genmk.rb (class SCRIPT): Replace option -i of sed by a pipe.
12701
409ae1c9 127022010-01-16 Carles Pina i Estany <carles@pina.cat>
12703
12704 * util/grub-editenv.c (usage): Use `program_name' instead of hardcoded
12705 string.
12706 * util/grub-emu.c (usage): Likewise.
12707 * util/grub-mkpasswd-pbkdf2.c (usage): Likewise.
12708 * util/i386/efi/grub-mkimage.c (usage): Likewise.
12709 * util/i386/pc/grub-mkimage.c (usage): Likewise.
12710 * util/i386/pc/grub-setup.c (usage): Likewise.
12711
70a14d3d 127122010-01-16 Carles Pina i Estany <carles@pina.cat>
12713
12714 * util/misc.c (grub_util_warn): Gettextizze, print full stop after
12715 the message.
12716 (grub_util_info): Likewise.
12717 (grub_util_error): Likewise.
12718 * util/elf/grub-mkimage.c: Fix capitalisation, quotes, full stops
12719 and/or new lines in `grub_util_warna', `grub_util_info',
12720 `grub_util_error' calls.
12721 * util/getroot.c: Likewise.
12722 * util/grub-editenv.c: Likewise.
12723 * util/grub-emu.c: Likewise.
12724 * util/grub-fstest.c: Likewise.
12725 * util/grub-mkdevicemap.c: Likewise.
12726 * util/grub-mkfont.c: Likewise.
12727 * util/grub-mkpasswd-pbkdf2.c: Likewise.
12728 * util/grub-mkrelpath.c: Likewise.
12729 * util/grub-pe2elf.c: Likewise.
12730 * util/grub-probe.c: Likewise.
12731 * util/hostdisk.c: Likewise.
12732 * util/i386/efi/grub-mkimage.c: Likewise.
12733 * util/i386/pc/grub-mkimage.c: Likewise.
12734 * util/i386/pc/grub-setup.c: Likewise.
12735 * util/ieee1275/ofpath.c: Likewise.
12736 * util/mkisofs/eltorito.c: Likewise.
12737 * util/mkisofs/rock.c: Likewise.
12738 * util/mkisofs/write.c: Likewise.
12739 * util/raid.c: Likewise.
12740 * util/sparc64/ieee1275/grub-mkimage.c: Likewise.
12741 * util/sparc64/ieee1275/grub-setup.c: Likewise.
12742
a0b766fc
VS
127432010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
12744
12745 Enable multiboot on non-pc.
12746
12747 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (pkglib_MODULES): Move
12748 multiboot.mod and multiboot2.mod to ...
12749 * conf/i386.rmk (pkglib_MODULES): ... here.
12750 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_SOURCES):
12751 Moved to ...
12752 * conf/i386.rmk (multiboot_mod_SOURCES): .. here.
12753 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_CFLAGS):
12754 Moved to ...
12755 * conf/i386.rmk (multiboot_mod_CFLAGS): .. here.
12756 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_ASFLAGS):
12757 Moved to ...
12758 * conf/i386.rmk (multiboot_mod_ASFLAGS): .. here.
12759 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_LDFLAGS):
12760 Moved to ...
12761 * conf/i386.rmk (multiboot_mod_LDFLAGS): .. here.
12762 * conf/x86_64-efi.rmk (pkglib_MODULES): Remove ata.mod and
12763 relocator.mod.
12764 (ata_mod_SOURCES): Removed.
12765 (ata_mod_CFLAGS): Likewise.
12766 (ata_mod_LDFLAGS): Likewise.
12767 (relocator_mod_SOURCES): Removed.
12768 (relocator_mod_CFLAGS): Likewise.
12769 (relocator_mod_ASFLAGS): Likewise.
12770 (relocator_mod_LDFLAGS): Likewise.
12771 Include i386.mk.
12772 * include/grub/x86_64/multiboot.h: New file.
12773 * loader/i386/multiboot.c (grub_multiboot_boot) [GRUB_MACHINE_EFI]:
12774 Terminate EFI.
12775
884ade56
VS
127762010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
12777
12778 Video multiboot support.
12779
12780 * include/grub/multiboot.h (grub_multiboot_set_accepts_video):
12781 New prototype.
12782 * include/multiboot.h: Resynced with multiboot specification.
12783 * include/multiboot2.h: Likewise.
12784 * loader/i386/multiboot.c (UNSUPPORTED_FLAGS): Support video flags.
12785 (grub_multiboot): Parse MULTIBOOT_VIDEO_MODE fields.
12786 * loader/i386/multiboot_mbi.c (DEFAULT_VIDEO_MODE): New constant.
12787 (HAS_VGA_TEXT): Likewise.
12788 (accepts_video): New variable.
12789 (grub_multiboot_set_accepts_video): New function.
12790 (grub_multiboot_get_mbi_size): Account for video structures.
12791 (set_video_mode): New function.
12792 (retrieve_video_parameters): Likewise.
12793 (grub_multiboot_make_mbi): Fill video fields.
12794
0d90e8a6
VS
127952010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
12796
12797 Video driver ids.
12798
12799 * include/grub/video.h (grub_video_driver_id): New type.
12800 (grub_video_adapter): New member 'id'. All users updated.
12801 (grub_video_get_driver_id): New proto.
12802 * video/video.c (grub_video_get_driver_id): New function.
12803
5c71db1b 128042010-01-14 Carles Pina i Estany <carles@pina.cat>
12805
12806 * util/grub.d/30_os-prober.in: Use `set var=val' rather than plain
12807 `var=val'.
12808
cca15b52 128092010-01-14 Carles Pina i Estany <carles@pina.cat>
12810
12811 * normal/cmdline.c (print_completion): Gettextizze.
12812
c586fbb2 128132001-01-14 Carles Pina i Estany <carles@pina.cat>
12814
12815 * loader/i386/pc/chainloader.c: Include `<grub/mm.h>'.
12816
ba2f6848 128172010-01-14 Carles Pina i Estany <carles@pina.cat>
12818
12819 * gettext/gettext.c (grub_gettext_translate): Push and pop
12820 grub_errno.
12821 (grub_gettext_delete_list): Change comment style.
12822 * kern/err.c (grub_error): Gettextizze.
12823 (grub_fatal): Gettextizze.
12824
0a46429a
RM
128252010-01-14 Robert Millan <rmh.grub@aybabtu.com>
12826
12827 * include/grub/i386/loader.h (grub_linux16_boot): Renamed to ...
12828 (grub_linux16_real_boot): ... this.
12829 * kern/i386/loader.S: Likewise.
12830 * loader/i386/pc/linux.c: Include `<grub/video.h>' and `<grub/mm.h>'.
12831 (grub_linux16_boot): New function. Switches to text mode and calls
12832 grub_linux16_real_boot().
12833
12834 * loader/i386/bsd.c: Include `<grub/video.h>'.
12835 (grub_freebsd_boot, grub_openbsd_boot, grub_netbsd_boot): Switch to
12836 text mode before calling grub_unix_real_boot().
12837
12838 * loader/i386/multiboot.c: Include `<grub/video.h>'.
12839 (grub_multiboot_boot): Switch to text mode before calling
12840 grub_relocator32_boot().
12841
12842 * loader/i386/pc/chainloader.c: Include `<grub/video.h>'.
12843 (grub_chainloader_boot): Switch to text mode before calling
12844 grub_chainloader_real_boot().
12845
d6f93a66
RM
128462010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
128472010-01-05 Colin Watson <cjwatson@ubuntu.com>
12848
12849 * util/grub-reboot.in: Make sure prev_saved_entry always gets a
12850 non-empty value.
12851
128522010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
128532010-01-05 Colin Watson <cjwatson@ubuntu.com>
12854
12855 * util/grub.d/00_header.in: Define a "savedefault" function for use
12856 in menu entries.
12857 * util/grub-mkconfig_lib.in (save_default_entry): Use it.
12858
128592010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
128602010-01-05 Colin Watson <cjwatson@ubuntu.com>
12861
12862 * util/grub-mkconfig_lib.in (save_default_entry): Only set
12863 saved_entry if boot_once is unset.
12864 * util/grub.d/00_header.in: Set boot_once to "true" if there was a
12865 previous saved entry (i.e. grub-reboot).
12866
128672009-12-08 Colin Watson <cjwatson@ubuntu.com>
12868
12869 * util/grub.d/30_os-prober.in: Call save_default_entry for hurd.
12870
128712009-12-08 Colin Watson <cjwatson@ubuntu.com>
12872
12873 * util/grub.d/00_header.in: Use `set var=val' rather than plain
12874 `var=val'.
12875 * util/grub-mkconfig_lib.in (save_default_entry): Likewise.
12876
128772009-12-08 Colin Watson <cjwatson@ubuntu.com>
12878
12879 * util/grub-reboot.in: Fix --version output.
12880 * util/grub-set-default.in: Likewise.
12881
128822009-12-08 Colin Watson <cjwatson@ubuntu.com>
12883
12884 * util/grub.d/00_header.in: Silently ignore zero-sized environment
12885 blocks.
12886
128872009-12-08 Colin Watson <cjwatson@ubuntu.com>
12888
12889 * util/grub.d/00_header.in: Quote the value assigned to `default',
12890 in case it contains spaces.
12891
128922009-12-08 Colin Watson <cjwatson@ubuntu.com>
12893
12894 * util/grub.d/30_os-prober.in: Fix merge error that moved a
12895 `save_default_entry' call from the macosx case to the linux case.
12896
128972009-10-25 Vladimir Serbinenko <phcoder@gmail.com>
128982009-10-25 Colin Watson <cjwatson@ubuntu.com>
12899
12900 * normal/menu.c (grub_menu_execute_entry): Save selected entry title
12901 in `chosen' environment variable.
12902 * normal/menu_text.c (get_entry_number): Check if the variable
12903 matches the title of a menu entry.
12904 (run_menu): Pass menu to get_entry_number.
12905
12906 * util/grub-reboot.in: New file.
12907 * util/grub-set-default.in: New file.
12908 * conf/common.rmk (grub-reboot): New utility.
12909 (grub-set-default): New utility.
12910
12911 * util/grub-mkconfig_lib.in (save_default_entry): New function.
12912 * util/grub.d/00_header.in: If GRUB_DEFAULT is `saved', set
12913 default to `${saved_entry}'. If `${prev_saved_entry}' is non-empty,
12914 move it to `saved_entry' for the next boot. Load environment on
12915 initialisation.
12916 * util/grub.d/10_kfreebsd.in: Call save_default_entry.
12917 * util/grub.d/10_hurd.in: Likewise.
12918 * util/grub.d/10_linux.in (linux_entry): Likewise.
12919 * util/grub.d/10_windows.in: Likewise.
12920 * util/grub.d/30_os-prober.in: Likewise.
12921
12922 * util/grub-install.in: Create environment block.
12923 * util/i386/efi/grub-install.in: Likewise.
12924 * util/ieee1275/grub-install.in: Likewise.
12925 * util/sparc64/ieee1275/grub-install.in: Likewise.
12926
0934d184
BC
129272010-01-14 BVK Chaitanya <bvk.groups@gmail.com>
12928
12929 Unit testing framework for GRUB.
12930
12931 * Makefile.in: Test framework build rules for 'make check'.
12932 * conf/tests.rmk: Build rules for individual tests and framework.
12933
12934 * include/grub/test.h: Header file for whitebox tests.
12935 * tests/lib/functional_test.c: Framework support for whitebox
12936 functional tests.
12937 * tests/lib/test.c: Common whitebox testing code for unit and
12938 functional tests.
12939 * tests/lib/unit_test.c: Framework support for whitebox unit
12940 tests.
12941
12942 * tests/util/grub-shell-tester.in: Support utility for grub-script
12943 tests.
12944 * tests/util/grub-shell.in: Utility to execute grub-script
12945 commands in a Qemu instance.
12946
12947 * tests/example_functional_test.c: Example whitebox functional
12948 test.
12949 * tests/example_grub_script_test.in: Example grub-script test.
12950 * tests/example_scripted_test.in: Example scripted test.
12951 * tests/example_unit_test.c: Example whitebox unit test.
12952
9c4ffeeb
VS
129532010-01-14 Vladimir Serbinenko <phcoder@gmail.com>
12954
12955 * conf/i386-coreboot.rmk (multiboot_mod_SOURCES):
12956 Add loader/i386/multiboot_mbi.c.
12957 (multiboot2_mod_SOURCES): Likewise.
12958 * conf/i386-pc.rmk (multiboot_mod_SOURCES): Likewise.
12959 (multiboot2_mod_SOURCES): Likewise.
12960 * include/grub/multiboot.h (grub_multiboot_get_mbi_size): New proto.
12961 (grub_multiboot_make_mbi): Likewise.
12962 (grub_multiboot_free_mbi): Likewise.
12963 (grub_multiboot_init_mbi): Likewise.
12964 (grub_multiboot_add_module): Likewise.
12965 (grub_multiboot_set_bootdev): Likewise.
12966 * loader/i386/multiboot.c (mbi): Removed.
12967 (mbi_dest): Likewise.
12968 (alloc_mbi): New variable.
12969 (grub_multiboot_payload_size): Removed. All users updated.
12970 (grub_multiboot_pure_size): New variable.
12971 (grub_multiboot_boot): Use grub_multiboot_make_mbi.
12972 (grub_multiboot_unload): Use grub_multiboot_free_mbi.
12973 (grub_get_multiboot_mmap_len): Moved to loader/i386/multiboot_mbi.c.
12974 (grub_fill_multiboot_mmap): Likewise.
12975 (grub_multiboot_get_bootdev): Likewise.
12976 (grub_multiboot): Use multiboot_mbi functions.
12977 * loader/i386/multiboot_mbi.c: New file.
12978
17383dfe
VS
129792010-01-13 Vladimir Serbinenko <phcoder@gmail.com>
12980
12981 * kern/efi/init.c (grub_efi_fini): Don't call grub_efi_mm_fini as
12982 it would result in module crash.
12983
c1f28820
VS
129842010-01-13 Vladimir Serbinenko <phcoder@gmail.com>
12985
12986 * term/ieee1275/ofconsole.c (grub_ofconsole_putchar): Handle '\r'.
12987 (grub_ofconsole_getwh): Split to ...
12988 (grub_ofconsole_getwh): ... this.
12989 (grub_ofconsole_dimensions): ...and this.
12990 (grub_ofconsole_init_output): Call grub_ofconsole_dimensions.
12991
58655a16
RM
129922010-01-13 Robert Millan <rmh.grub@aybabtu.com>
12993
12994 * util/mkisofs/rock.c (generate_rock_ridge_attributes): Fix a typo.
12995
10891398
VS
129962010-01-12 Vladimir Serbinenko <phcoder@gmail.com>
12997
12998 * loader/i386/pc/multiboot2.c: Removed stalled file.
12999
0b8a223c
VS
130002010-01-12 Vladimir Serbinenko <phcoder@gmail.com>
13001
13002 * util/grub-mkpasswd-pbkdf2.c (main): Use grub_util_init_nls.
13003 Reported by: Grégoire Sutre
13004
92ab12b0
RM
130052010-01-11 Robert Millan <rmh.grub@aybabtu.com>
13006
13007 * util/misc.c (canonicalize_file_name): New function.
13008 (make_system_path_relative_to_its_root): Use canonicalize_file_name()
13009 instead of realpath().
13010
a788afb6
CW
130112010-01-11 Colin Watson <cjwatson@ubuntu.com>
13012
13013 * util/grub-install.in (usage): Clarify meaning of --root-directory,
13014 and make it clearer that it's optional. Based on confusion
13015 witnessed on IRC.
13016
ffa8e3d2
VS
130172010-01-10 Vladimir Serbinenko <phcoder@gmail.com>
13018
13019 * term/i386/pc/vga_text.c (inc_y): Fix off-by-one error which resulted
13020 in premature implicit newline.
13021
e9060a9d
VS
130222010-01-10 Vladimir Serbinenko <phcoder@gmail.com>
13023
13024 * normal/cmdline.c (grub_cmdline_get): Fix off-by-one error
13025 which resulted in garbled command line at the end of screen.
13026
f0d0c0b7
RM
130272010-01-10 Robert Millan <rmh.grub@aybabtu.com>
13028
13029 * loader/i386/ieee1275/linux.c (grub_linux_boot): Rework video position
13030 initialization with similar approach as with other Linux loaders.
13031
0e60bae7
RM
130322010-01-10 Robert Millan <rmh.grub@aybabtu.com>
13033
13034 Fix i386-ieee1275 build.
13035
13036 * loader/i386/ieee1275/linux.c (grub_linux_boot): Use grub_term_width()
13037 and grub_term_height() for video_{width,height} initialization.
13038
130392010-01-10 Robert Millan <rmh.grub@aybabtu.com>
cdec4d31
RM
13040
13041 Fix grub-emu build.
13042
13043 * conf/any-emu.rmk (grub_emu_SOURCES): Remove `kern/reader.c'.
13044
cdb3f378
RM
130452010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
130462010-01-09 Robert Millan <rmh.grub@aybabtu.com>
13047
13048 Support for multiple terminals.
13049
13050 * Makefile.in (pkglib_DATA): terminal.lst.
13051 (terminal.lst): New target.
13052 * commands/handler.c (grub_cmd_handler): Don't handle terminals.
13053 (GRUB_MOD_INIT(handler)): Likewise.
13054 (GRUB_MOD_FINI(handler)): Likewise.
13055 * commands/help.c (grub_cmd_help): Handle multiple terminals.
13056 * commands/keystatus.c (grub_cmd_keystatus): Likewise.
13057 * commands/sleep.c (do_print): Use grub_term_restore_pos.
13058 (grub_cmd_sleep): Use grub_term_save_pos.
13059 * commands/terminal.c: New file.
13060 * conf/any-emu.rmk (grub_emu_SOURCES): Add normal/term.c
13061 commands/terminal.c and lib/charset.c.
13062 * conf/common.rmk (normal_mod_SOURCES): Add normal/term.c.
13063 (pkglib_MODULES): Add terminal.mod.
13064 (terminal_mod_SOURCES): New variable.
13065 (terminal_mod_CFLAGS): Likewise.
13066 (terminal_mod_LDFLAGS): Likewise.
13067 * genhandlerlist.sh: Don't handle terminals.
13068 * genmk.rb: Generate terminal-*.lst.
13069 * genterminallist.sh: New file.
13070 * include/grub/charset.h (grub_ucs4_to_utf8_alloc): New proto.
13071 (grub_is_valid_utf8): Likewise.
13072 (grub_utf8_to_ucs4_alloc): Likewise.
13073 * include/grub/menu_viewer.h (grub_menu_viewer): Rewritten.
13074 (grub_menu_register_viewer): Changed argument.
13075 (grub_menu_try_text): New proto.
13076 (grub_gfxmenu_try_hook): New declaration.
13077 * include/grub/normal.h (grub_normal_exit_level): New declaration.
13078 (grub_menu_init_page): Additional argument term.
13079 (grub_normal_init_page): Likewise.
13080 (grub_cmdline_get): Arguments simplified.
13081 (grub_utf8_to_ucs4_alloc): Removed.
13082 (grub_print_ucs4): Additional argument term.
13083 (grub_getstringwidth): Likewise.
13084 (grub_print_message_indented): Likewise.
13085 (grub_menu_text_register_instances): New proto.
13086 (grub_show_menu): Likewise.
13087 (read_terminal_list): Likewise.
13088 (grub_set_more): Likewise.
13089 * include/grub/parser.h: Include handler.h.
13090 * include/grub/reader.h: Rewritten.
13091 * include/grub/term.h (GRUB_TERM_NEED_INIT): Removed.
13092 (GRUB_TERM_WIDTH): Changed to function.
13093 (GRUB_TERM_HEIGHT): Likewise.
13094 (GRUB_TERM_BORDER_WIDTH): Likewise.
13095 (GRUB_TERM_BORDER_HEIGHT): Likewise.
13096 (GRUB_TERM_NUM_ENTRIES): Likewise.
13097 (GRUB_TERM_ENTRY_WIDTH): Likewise.
13098 (GRUB_TERM_CURSOR_X): Likewise.
13099 (grub_term_input_class): Likewise.
13100 (grub_term_output_class): Likewise.
13101 (grub_term_outputs_disabled): New declaration.
13102 (grub_term_inputs_disabled): Likewise.
13103 (grub_term_outputs): Likewise.
13104 (grub_term_inputs): Likewise.
13105 (grub_term_register_input): Rewritten.
13106 (grub_term_register_output): Likewise.
13107 (grub_term_unregister_input): Likewise.
13108 (grub_term_unregister_output): Likewise.
13109 (FOR_ACTIVE_TERM_INPUTS): New macro.
13110 (FOR_DISABLED_TERM_INPUTS): Likewise.
13111 (FOR_ACTIVE_TERM_OUTPUTS): Likewise.
13112 (FOR_DISABLED_TERM_OUTPUTS): Likewise.
13113 * include/grub/terminfo.h: Add oterm argument to all protypes.
13114 * kern/main.c (grub_main): Don't call grub_register_rescue_reader.
13115 Use grub_rescue_run.
13116 * kern/misc.c (grub_utf8_to_ucs4): Put '?' for invalid characters.
13117 All users updated.
13118 * kern/reader.c: Removed. All users updated.
13119 * kern/rescue_reader.c (grub_rescue_init): Removed.
13120 (grub_rescue_reader): Likewise.
13121 (grub_register_rescue_reader): Likewise.
13122 (grub_rescue_run): New function based on kern/reader.c.
13123 * kern/term.c: Adapted for multiterm.
13124 * lib/charset.c (grub_ucs4_to_utf8_alloc): New function.
13125 (grub_is_valid_utf8): Likewise.
13126 (grub_utf8_to_ucs4_alloc): Moved from normal/menu_text.c.
13127 * loader/i386/efi/linux.c (grub_cmd_linux): Retrieve parameters of
13128 right terminal.
13129 * loader/i386/linux.c (grub_linux_boot): Likewise.
13130 * normal/auth.c (grub_username_get): New function.
13131 (grub_auth_check_authentication): Use grub_username_get.
13132 * normal/cmdline.c: Changed to UCS4. Adapted for multiterm.
13133 * normal/color.c: Adapt for multiterm.
13134 * normal/main.c (read_config_file): Don't use grub_reader_loop.
13135 (grub_normal_init_page): Additional argument term.
13136 (read_lists): Call read_terminal_lists.
13137 (grub_enter_normal_mode): Call grub_cmdline_run.
13138 Handle grub_normal_exit_level.
13139 (grub_cmd_normal): Make reentrant.
13140 (grub_cmd_normal_exit): New function.
13141 (grub_normal_reader_init): Additional argument nested. Handle multiterm.
13142 * normal/menu.c: Adapt for multiterm.
13143 * normal/menu_entry.c: Likewise.
13144 * normal/menu_text.c: Likewise.
13145 * normal/menu_viewer.c: Removed. All users updated.
13146 * normal/term.c: New file.
13147 * util/console.c: Change order of includes to workaround a bug in
13148 ncurses headers.
13149 * term/terminfo.c: New argument oterm on all exported functions.
13150 All users updated.
13151 * util/grub-editenv.c (grub_term_input_class): Removed.
13152 (grub_term_output_class): Likewise.
13153
1a064917
RM
131542010-01-09 Robert Millan <rmh.grub@aybabtu.com>
13155
13156 Make loader output a bit more user-friendly.
13157
13158 * util/grub.d/10_hurd.in: Print message indicating that GNU Mach
13159 is being loaded. Likewise for the Hurd.
13160
13161 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Print message indicating
13162 that kernel of FreeBSD ${version} is being loaded.
13163
13164 * loader/i386/linux.c (grub_cmd_linux): Move debug info to
13165 grub_dprintf().
13166 (grub_cmd_initrd): Likewise.
13167 * util/grub.d/10_linux.in (linux_entry): Print message indicating
13168 that Linux ${version} is being loaded. Likewise for initrd.
13169
5ce0a83a 131702010-01-09 Carles Pina i Estany <carles@pina.cat>
13171
13172 * gettext/gettext.c (GRUB_MOD_INIT): Gettextizze.
13173
809bbfeb 131742010-01-08 Carles Pina i Estany <carles@pina.cat>
13175
13176 * loader/efi/appleloader.c: Include `<grub/i18n.h>'.
13177 (GRUB_MOD_INIT): Gettextizze.
13178 * loader/efi/chainloader.c: Include `<grub/i18n.h>'.
13179 (GRUB_MOD_INIT): Gettextizze.
13180 * loader/i386/efi/linux.c: Include `<grub/i18n.h>'.
13181 (grub_cmd_linux): Capitalise Linux.
13182 (GRUB_MOD_INIT): Gettextizze.
13183 * loader/i386/ieee1275/linux.c: Include `<grub/i18n.h>'.
13184 (grub_cmd_linux): Capitalise Linux.
13185 (GRUB_MOD_INIT): Gettextizze.
13186 * loader/i386/linux.c: Include `<grub/i18n.h>'.
13187 (grub_cmd_linux): Capitalise Linux.
13188 (GRUB_MOD_INIT): Gettextizze.
13189 * loader/i386/pc/chainloader.c: Include `<grub/i18n.h>'.
13190 (GRUB_MOD_INIT): Gettextizze.
13191 * loader/i386/pc/linux.c: Include `<grub/i18n.h>'.
13192 (grub_cmd_linux): Capitalise Linux.
13193 (GRUB_MOD_INIT): Gettextizze.
13194 * loader/i386/xnu.c: Include `<grub/i18n.h>'.
13195 (grub_cpu_xnu_init): Gettextizze.
13196 * loader/multiboot_loader.c: Include `<grub/i18n.h>'.
13197 (GRUB_MOD_INIT): Gettextizze.
13198 * loader/powerpc/ieee1275/linux.c: Include `<grub/i18n.h>'.
13199 (GRUB_MOD_INIT): Gettextizze.
13200 * loader/sparc64/ieee1275/linux.c: Include `<grub/i18n.h>'.
13201 (grub_linux_load64): Capitalise Linux.
13202 (GRUB_MOD_INIT): Gettextizze.
13203 * loader/xnu.c: Include `<grub/i18n.h>'.
13204 (GRUB_MOD_INIT): Gettextizze.
13205 * po/POTFILES: Add `loader/efi/appleloader.c',
13206 `loader/efi/chainloader.c', `loader/i386/efi/linux.c',
13207 `loader/i386/ieee1275/linux.c', `loader/i386/linux.c',
13208 `loader/i386/pc/chainloader.c', `loader/i386/pc/linux.c',
13209 `loader/i386/xnu.c', `loader/multiboot_loader.c',
13210 `loader/powerpc/ieee1275/linux.c', `loader/sparc64/ieee1275/linux.c'
13211 and `loader/xnu.c'.
13212
b394b2ca
RM
132132010-01-08 Robert Millan <rmh.grub@aybabtu.com>
13214
13215 * src/mkisofs.c: Remove `ifdef linux' portability kludge.
13216
132172010-01-08 Robert Millan <rmh.grub@aybabtu.com>
cd943b75
RM
13218
13219 * util/mkisofs/defaults.h (APPID_DEFAULT): Redefine using PACKAGE_NAME.
13220 (SYSTEM_ID_DEFAULT): Set to "GNU" unconditionally.
13221 * util/mkisofs/mkisofs.c (main): Readjust --version output.
13222
bc8b32b3
RM
132232010-01-07 Robert Millan <rmh.grub@aybabtu.com>
13224
13225 Reset Multiboot 2 support. New loader implements the draft in
13226 /branches/multiboot2 and shares as much code as possible with the
13227 production Multiboot 1 implementation.
13228
13229 * loader/ieee1275/multiboot2.c: Remove file. Update all users.
13230 * loader/multiboot2.c: Likewise.
13231 * loader/i386/multiboot_helper.S: Likewise.
13232 * include/multiboot2.h: Replace with latest version from the draft
13233 in /branches/multiboot2.
13234
13235 * conf/i386-coreboot.rmk (multiboot_mod_SOURCES): Remove
13236 `loader/i386/multiboot_helper.S', `loader/i386/pc/multiboot2.c'
13237 and `loader/multiboot2.c'.
13238 (pkglib_MODULES): Add `multiboot2.mod'.
13239 (multiboot2_mod_SOURCES): New variable.
13240 (multiboot2_mod_LDFLAGS): Likewise.
13241 (multiboot2_mod_CFLAGS): Likewise. Define `GRUB_USE_MULTIBOOT2'.
13242
13243 * conf/i386-pc.rmk: Likewise.
13244
13245 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Remove `multiboot.mod'.
13246 (multiboot_mod_SOURCES): Remove variable.
13247 (multiboot_mod_LDFLAGS): Likewise.
13248 (multiboot_mod_CFLAGS): Likewise.
13249
13250 * include/grub/multiboot.h [GRUB_USE_MULTIBOOT2]: Include
13251 `<multiboot2.h>' instead of `<multiboot.h>'.
13252 [GRUB_USE_MULTIBOOT2] (MULTIBOOT_BOOTLOADER_MAGIC)
13253 (MULTIBOOT_HEADER_MAGIC): New macros.
13254
13255 * loader/multiboot_loader.c (module_version_status): Remove variable.
13256 (find_multi_boot2_header): Remove function.
13257 (grub_cmd_multiboot_loader): Remove Multiboot 2 / Multiboot 1 selection
13258 logic. Always check for the Multiboot version we're compiling for.
13259 (grub_cmd_module_loader): Likewise.
13260 [GRUB_USE_MULTIBOOT2] (GRUB_MOD_INIT(multiboot)): Register `multiboot2'
13261 command instead of `multiboot'.
13262
5d2c52b8
RM
132632010-01-07 Robert Millan <rmh.grub@aybabtu.com>
13264
13265 * include/multiboot.h (MULTIBOOT_UNSUPPORTED): Moved from here ...
13266 * loader/i386/multiboot.c (UNSUPPORTED_FLAGS): ... to here. Update
13267 all users.
13268
53108d92
RM
132692010-01-07 Robert Millan <rmh.grub@aybabtu.com>
132702010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
13271
13272 Fix breakage introduced with previous commit.
13273
13274 * normal/dyncmd.c (read_command_list): Avoid unregistering kernel
13275 commands.
13276 * normal/handler.c (read_handler_list): Revert part of previous commit
13277 affecting this file.
13278 * normal/main.c (read_lists): Move read_handler_list() call back to ...
13279 (grub_normal_execute): ... here.
13280
e2e936b2
RM
132812010-01-07 Robert Millan <rmh.grub@aybabtu.com>
13282
13283 Merge prefix-redefinition-fix branch.
13284
13285 * normal/autofs.c (read_fs_list): Make function capable of being
13286 run multiple times, gracefuly replacing the previous data
13287 structures.
13288 * normal/dyncmd.c (read_command_list): Likewise.
13289 * normal/handler.c (read_handler_list): Likewise.
13290 * normal/main.c (read_lists): New function. Calls all the
13291 list reading functions.
13292 (grub_normal_execute): Use read_lists() instead of calling all
13293 list reading functions explicitly. Register read_lists() as a
13294 variable hook attached to ${prefix}.
13295
607a3701
VS
132962010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
13297
13298 Merge crypto branch.
13299
13300 * Makefile.in (pkglib_DATA): Add crypto.lst.
13301 (crypto.lst): New target.
13302 * commands/hashsum.c: New file.
13303 * commands/password.c (check_password): Use grub_crypto_memcmp.
13304 * commands/password_pbkdf2.c: New file.
13305 * commands/xnu_uuid.c: Remove MD5. Use GRUB_MD_MD5.
13306 * conf/any-emu.rmk (grub_emu_SOURCES): Add lib/crypto.c,
13307 normal/crypto.c and lib/libgcrypt-grub/cipher/md5.c.
13308 (grub_emu_CFLAGS): Add -Wno-missing-field-initializers -Wno-error
13309 -I$(srcdir)/lib/libgcrypt_wrap.
13310 * conf/common.rmk (normal_mod_SOURCES): Add normal/crypto.c.
13311 (pkglib_MODULES): Add crypto.mod, hashsum.mod, pbkdf2.mod and
13312 password_pbkdf2.mod.
13313 (crypto_mod_SOURCES): New variable.
13314 (crypto_mod_CFLAGS): Likewise.
13315 (crypto_mod_LDFLAGS): Likewise.
13316 (hashsum_mod_SOURCES): New variable.
13317 (hashsum_mod_CFLAGS): Likewise.
13318 (hashsum_mod_LDFLAGS): Likewise.
13319 (pbkdf2_mod_SOURCES): New variable.
13320 (pbkdf2_mod_CFLAGS): Likewise.
13321 (pbkdf2_mod_LDFLAGS): Likewise.
13322 (password_pbkdf2_mod_SOURCES): New variable.
13323 (password_pbkdf2_mod_CFLAGS): Likewise.
13324 (password_pbkdf2_mod_LDFLAGS): Likewise.
13325 (bin_UTILITIES): Add grub-mkpasswd-pbkdf2.
13326 (grub_mkpasswd_pbkdf2_SOURCES): New variable.
13327 (grub_mkpasswd_pbkdf2_CFLAGS): Likewise.
13328 Include conf/gcry.rmk.
13329 * include/grub/auth.h: Rewritten.
13330 * include/grub/crypto.h: New file.
13331 * include/grub/disk.h (grub_disk_dev_id): Add GRUB_DISK_DEVICE_LUKS_ID.
13332 * include/grub/normal.h (read_crypto_list): New prototype.
13333 * lib/crypto.c: New file.
13334 * lib/libgcrypt_wrap/cipher_wrap.h: Likewise.
13335 * lib/pbkdf2.c: Likewise.
13336 * normal/auth.c (grub_auth_strcmp): Removed.
13337 (grub_iswordseparator): Likewise.
13338 (grub_auth_strword): Likewise.
13339 (is_authenticated): Use grub_strword.
13340 (grub_auth_check_authentication): Use grub_strcmp, grub_password_get
13341 and grub_strword. Pass entered password to authentication callback.
13342 * normal/crypto.c: New file.
13343 * normal/main.c: Call read_crypto_list.
13344 * util/grub-mkpasswd-pbkdf2.c: New file.
13345 * util/import_gcry.py: Generate crypto.lst. Add hash blocklen.
13346
42841caa
VS
133472010-01-06 Vladimir Serbinenko <phcoder@gmail.com>
13348
13349 Fix descent and ascent calculation.
13350
13351 * util/grub-mkfont.c (grub_font_info): New fields 'asce' and 'max_y'.
13352 (options): New option "asce".
13353 (usage): Likewise.
13354 (add_char): Ignore invalid glyphs for descent calculation.
13355 Calculate ascent from actual content.
13356 (print_glyphs): Use 'asce'.
13357 (write_font): Likewise. Allow ascent override.
13358 (main): Handle "asce" option.
13359
e7730de7 133602010-01-06 Carles Pina i Estany <carles@pina.cat>
13361
13362 * kern/err.c: Include `<grub/i18n.h>'.
13363 (grub_print_error): Add full stop. Gettextizze.
13364 * loader/i386/bsd.c (grub_netbsd_boot): Change grub_error description.
13365 (grub_bsd_load_elf): Capitalise ELF.
13366 (grub_cmd_freebsd_loadenv): Add `s' in error string.
13367 (grub_cmd_freebsd_module): Likewise.
13368 (grub_cmd_freebsd_module_elf): Likewise.
13369 * loader/i386/bsdXX.c (SUFFIX): Capitalise ELF.
13370
40e3a41f 133712010-01-06 Carles Pina i Estany <carles@pina.cat>
13372
13373 * commands/search.c (GRUB_MOD_INIT): Use HELP_MESSAGE.
13374 * commands/search_file.c (HELP_MESSAGE): New macro.
13375 * commands/search_label.c (HELP_MESSAGE): Likewise.
13376 * commands/search_uuid.c (HELP_MESSAGE): Likewise.
13377 * po/POTFILES: Add `commands/search_file.c',
13378 `commands/search_label.c', `commands_uuid.c'. Remove duplicate
13379 `commands/search.c'.
13380
83507e68
RM
133812010-01-05 Robert Millan <rmh.grub@aybabtu.com>
13382
13383 * config.rpath: Update from Gnulib.
13384
465c787b
YB
133852010-01-05 Yves Blusseau <blusseau@zetam.org>
13386
13387 * commands/acpi.c (grub_acpi_create_ebda): fix incorrect message.
13388
6581dd3a
YB
133892010-01-05 Yves Blusseau <yves.blusseau@zetam.org>
13390
13391 * util/sparc64/ieee1275/grub-mkimage.c (main): Typo fix.
13392
3bff18c5
CW
133932010-01-05 Colin Watson <cjwatson@ubuntu.com>
13394
13395 * util/mkisofs/write.c (padblock_write): Switch size and nmemb
13396 arguments to fread so that we get a return value in bytes, rather
13397 than something that will normally be rounded down to 0.
13398 Adjust error handling to avoid producing garbage when size_t is not
13399 the same size as long long.
13400
a1368118
CW
134012010-01-05 Colin Watson <cjwatson@ubuntu.com>
13402
13403 * util/mkisofs/write.c (padblock_write): Check return value of
13404 fread.
13405
7c302978
RM
134062010-01-05 Robert Millan <rmh.grub@aybabtu.com>
13407
13408 Remove grub-mkfloppy. Images produced by grub-mkrescue are valid
13409 floppy images now.
13410
13411 * util/i386/pc/grub-mkfloppy.in: Remove. Update all users.
13412
e33ace06
RM
134132010-01-04 Robert Millan <rmh.grub@aybabtu.com>
13414
13415 * disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Use ALIGN_UP macro
13416 instead of manual alignment.
13417 * kern/disk.c (grub_disk_read): Remove grub_dprintf call (excessively
13418 verbose). Avoid attempts to read past end of the device
13419 (grub_disk_adjust_range() guarantees that we can read `size' bytes,
13420 but GRUB_DISK_CACHE_SIZE may exceed that).
13421
4b856776
RM
134222010-01-04 Robert Millan <rmh.grub@aybabtu.com>
13423
13424 * commands/crc.c (grub_cmd_crc): Abort on read errors.
13425 * fs/iso9660.c (grub_iso9660_read): Check for read error and pass
13426 it to upper layer.
13427
52c2d97f
VS
134282010-01-04 Vladimir Serbinenko <phcoder@gmail.com>
13429
13430 * include/grub/efi/api.h (GRUB_EFI_PIWG_DEVICE_PATH_SUBTYPE):
13431 New constant.
13432 (grub_efi_piwg_device_path): New structure
13433 (grub_efi_piwg_device_path_t): New type.
13434 * loader/efi/appleloader.c (piwg_full_device_path): New structure.
13435 (devpath_1): Transform to a structure. All users updated.
13436 (devpath_2): Likewise.
13437 (devpath_3): Likewise.
13438 (devpath_4): Likewise.
13439 (devpath_5): Likewise.
13440
98ff6a54
VS
134412010-01-04 Vladimir Serbinenko <phcoder@gmail.com>
13442
13443 * loader/efi/appleloader.c: Restored. Update all users.
13444
3a73dcb6
RM
134452010-01-03 Robert Millan <rmh.grub@aybabtu.com>
13446
13447 * boot/i386/pc/diskboot.S: Fix inaccurate comment.
13448
13449 * util/i386/pc/grub-setup.c: Include `<assert.h>'.
13450 (struct boot_blocklist): Move from here ...
13451 * include/grub/i386/pc/boot.h [ASM_FILE]
13452 (struct grub_boot_blocklist): ... to here. Update all users.
13453 (setup): Only initialize `start' member of `first_block'
13454 structure. Add assert() calls to verify the other members.
13455
13456 * util/i386/pc/grub-mkimage.c: Include `<assert.h>'.
13457 (generate_image): Fix broken blocklist length initialization.
13458 Add assert() call to verify blocklist `segment' field.
13459
ab0eeb0c
RM
134602010-01-03 Robert Millan <rmh.grub@aybabtu.com>
13461
13462 * loader/efi/appleloader.c: Remove. Update all users.
13463
58bc8bd5
RM
134642010-01-03 Robert Millan <rmh.grub@aybabtu.com>
13465
13466 * boot/i386/pc/boot.S: Update copyright year.
13467 * boot/i386/pc/cdboot.S: Likewise.
13468 * boot/i386/pc/diskboot.S: Likewise.
13469 * boot/i386/pc/lnxboot.S: Likewise.
13470 * boot/i386/pc/pxeboot.S: Likewise.
13471 * bus/pci.c: Likewise.
13472 * commands/cmp.c: Likewise.
13473 * commands/help.c: Likewise.
13474 * commands/hexdump.c: Likewise.
13475 * commands/i386/pc/halt.c: Likewise.
13476 * commands/i386/pc/play.c: Likewise.
13477 * commands/i386/pc/vbeinfo.c: Likewise.
13478 * commands/ls.c: Likewise.
13479 * commands/test.c: Likewise.
13480 * disk/dmraid_nvidia.c: Likewise.
13481 * disk/i386/pc/biosdisk.c: Likewise.
13482 * disk/ieee1275/nand.c: Likewise.
13483 * disk/ieee1275/ofdisk.c: Likewise.
13484 * disk/lvm.c: Likewise.
13485 * disk/raid.c: Likewise.
13486 * disk/raid6_recover.c: Likewise.
13487 * disk/scsi.c: Likewise.
13488 * fs/affs.c: Likewise.
13489 * fs/cpio.c: Likewise.
13490 * fs/ext2.c: Likewise.
13491 * fs/hfs.c: Likewise.
13492 * fs/iso9660.c: Likewise.
13493 * fs/ntfs.c: Likewise.
13494 * fs/sfs.c: Likewise.
13495 * fs/udf.c: Likewise.
13496 * fs/ufs.c: Likewise.
13497 * fs/xfs.c: Likewise.
13498 * gencmdlist.sh: Likewise.
13499 * genmk.rb: Likewise.
13500 * include/grub/disk.h: Likewise.
13501 * include/grub/efi/api.h: Likewise.
13502 * include/grub/efi/efi.h: Likewise.
13503 * include/grub/efi/pe32.h: Likewise.
13504 * include/grub/elf.h: Likewise.
13505 * include/grub/fs.h: Likewise.
13506 * include/grub/i386/at_keyboard.h: Likewise.
13507 * include/grub/i386/pc/memory.h: Likewise.
13508 * include/grub/i386/pc/vbe.h: Likewise.
13509 * include/grub/i386/pci.h: Likewise.
13510 * include/grub/i386/tsc.h: Likewise.
13511 * include/grub/ieee1275/ieee1275.h: Likewise.
13512 * include/grub/ntfs.h: Likewise.
13513 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
13514 * include/grub/sparc64/libgcc.h: Likewise.
13515 * include/grub/symbol.h: Likewise.
13516 * include/grub/types.h: Likewise.
13517 * include/multiboot2.h: Likewise.
13518 * io/gzio.c: Likewise.
13519 * kern/device.c: Likewise.
13520 * kern/disk.c: Likewise.
13521 * kern/efi/efi.c: Likewise.
13522 * kern/efi/mm.c: Likewise.
13523 * kern/elf.c: Likewise.
13524 * kern/file.c: Likewise.
13525 * kern/i386/dl.c: Likewise.
13526 * kern/i386/pc/init.c: Likewise.
13527 * kern/i386/pc/startup.S: Likewise.
13528 * kern/ieee1275/ieee1275.c: Likewise.
13529 * kern/ieee1275/init.c: Likewise.
13530 * kern/main.c: Likewise.
13531 * kern/mm.c: Likewise.
13532 * kern/powerpc/dl.c: Likewise.
13533 * kern/sparc64/dl.c: Likewise.
13534 * kern/x86_64/dl.c: Likewise.
13535 * lib/hexdump.c: Likewise.
13536 * loader/efi/appleloader.c: Likewise.
13537 * loader/i386/ieee1275/linux.c: Likewise.
13538 * loader/i386/pc/chainloader.c: Likewise.
13539 * loader/i386/pc/linux.c: Likewise.
13540 * loader/i386/pc/multiboot2.c: Likewise.
13541 * loader/ieee1275/multiboot2.c: Likewise.
13542 * loader/multiboot2.c: Likewise.
13543 * loader/multiboot_loader.c: Likewise.
13544 * loader/powerpc/ieee1275/linux.c: Likewise.
13545 * normal/completion.c: Likewise.
13546 * normal/menu_entry.c: Likewise.
13547 * partmap/apple.c: Likewise.
13548 * util/grub.d/10_hurd.in: Likewise.
13549 * util/hostfs.c: Likewise.
13550 * video/readers/png.c: Likewise.
13551
e2d70b5c
CW
135522010-01-03 Colin Watson <cjwatson@ubuntu.com>
13553
13554 * include/grub/misc.h (GNUC_PREREQ): New macro.
13555 (ATTRIBUTE_ERROR): New macro.
13556 * include/grub/list.h (grub_bad_type_cast_real): Use
13557 ATTRIBUTE_ERROR.
13558
a173283f 135592010-01-03 Carles Pina i Estany <carles@pina.cat>
13560
13561 * normal/menu_text.c (print_message): Change messages.
13562
7fa7ff74 135632010-01-03 Carles Pina i Estany <carles@pina.cat>
13564
13565 * normal/menu_entry.c (store_completion): Gettextizze.
13566
136d24f6 135672010-01-03 Carles Pina i Estany <carles@pina.cat>
13568
13569 * kern/env.c (grub_env_unset): Set the variable to "" if has hooks.
13570
f936862e 135712010-01-03 Carles Pina i Estany <carles@pina.cat>
13572
13573 * po/POTFILES: Sort correctly.
13574
29c44ad1 135752010-01-03 Carles Pina i Estany <carles@pina.cat>
13576
13577 * commands/acpi.c (GRUB_MOD_INIT): Capitalise some words from help.
13578 * commands/efi/loadbios.c (GRUB_MOD_INIT): Capitalise BIOS.
13579 * commands/i386/pc/drivemap.c (GRUB_MOD_INIT): Remove space. Add
13580 full stop.
13581 * commands/loadenv.c (GRUB_MOD_INIT): Remove command name from
13582 summary. Gettextizze the strings.
13583 * commands/probe.c (grub_cmd_probe): Capitalise UUID and FS.
13584 * commands/xnu_uuid.c (GRUB_MOD_INIT): Capitalise XNU.
13585 * disk/loopback.c (grub_arg_options): Capitalise first letter. Add
13586 full stop.
13587 (GRUB_MOD_INIT): Remove command name from summary.
13588 * hello/hello.c (GRUD_MOT_INIT): Add missing full stop. Improve the
13589 summary.
13590 * loader/i386/bsd.c (grub_arg_option): Capitalise CDROM.
13591 * term/i386/pc/serial.c (options): Add full stops.
13592 (GRUB_MOD_INIT): Remove command name from the summary.
13593
77a79592 135942010-01-03 Carles Pina i Estany <carles@pina.cat>
13595
13596 * commands/acpi.c: Gettextizze help strings and/or options. Include
13597 `grub/i18n.h' if needed.
13598 * commands/blocklist.c: Likewise.
13599 * commands/boot.c: Likewise.
13600 * commands/cat.c: Likewise.
13601 * commands/cmp.c: Likewise.
13602 * commands/configfile.c: Likewise.
13603 * commands/crc.c: Likewise.
13604 * commands/date.c: Likewise.
13605 * commands/echo.c: Likewise.
13606 * commands/efi/fixvideo.c: Likewise.
13607 * commands/efi/loadbios.c: Likewise.
13608 * commands/gptsync.c: Likewise.
13609 * commands/halt.c: Likewise.
13610 * commands/handler.c: Likewise.
13611 * commands/hdparm.c: Likewise.
13612 * commands/hexdump.c: Likewise.
13613 * commands/i386/cpuid.c: Likewise.
13614 * commands/i386/pc/drivemap.c: Likewise.
13615 * commands/i386/pc/halt.c: Likewise.
13616 * commands/i386/pc/pxecmd.c: Likewise.
13617 * commands/i386/pc/vbeinfo.c: Likewise.
13618 * commands/i386/pc/vbetest.c: Likewise.
13619 * commands/ieee1275/suspend.c: Likewise.
13620 * commands/keystatus.c: Likewise.
13621 * commands/loadenv.c: Likewise.
13622 * commands/ls.c: Likewise.
13623 * commands/lsmmap.c: Likewise.
13624 * commands/lspci.c: Likewise.
13625 * commands/memrw.c: Likewise.
13626 * commands/minicmd.c: Likewise.
13627 * commands/parttool.c: Likewise.
13628 * commands/password.c: Likewise.
13629 * commands/probe.c: Likewise.
13630 * commands/read.c: Likewise.
13631 * commands/reboot.c: Likewise.
13632 * commands/search.c: Likewise.
13633 * commands/sleep.c: Likewise.
13634 * commands/test.c: Likewise.
13635 * commands/true.c: Likewise.
13636 * commands/usbtest.c: Likewise.
13637 * commands/videotest.c: Likewise.
13638 * commands/xnu_uuid.c: Likewise.
13639 * disk/loopback.c: Likewise.
13640 * hello/hello.c: Likewise.
13641 * loader/i386/bsd.c: Likewise.
13642 * term/i386/pc/serial.c: Likewise.
13643 * po/POTFILES: Add new files.
13644
da8d5c53
CW
136452010-01-02 Colin Watson <cjwatson@ubuntu.com>
13646
13647 * term/i386/pc/at_keyboard.c
13648 (keyboard_controller_wait_untill_ready): Rename to ...
13649 (keyboard_controller_wait_until_ready): ... this. Update all users.
13650
33937904 136512010-01-01 Carles Pina i Estany <carles@pina.cat>
13652
13653 * commands/help.c: Include `grub/mm.h' and `grub/normal.h'.
13654 (grub_cmd_help): Print the cmd->name before the cmd->summary. Cut the
13655 string using string width.
13656 * normal/menu_text.c (grub_print_message_indented): Use
13657 grub_print_spaces and not print_spaces.
13658 (print_timeout): Likewise.
13659 (print_spaces): Move to...
13660 * include/grub/term.h: ... here. Change the name to grub_print_spaces.
13661
3fd3b8d8
RM
136622010-01-01 Robert Millan <rmh.grub@aybabtu.com>
13663
13664 Import from Gnulib.
13665
13666 * gnulib/getdelim.c: New file.
13667 * gnulib/getline.c: Likewise.
13668
33433555
VS
136692009-12-31 BVK Chaitanya <bvk.groups@gmail.com>
13670
13671 * include/grub/list.h (grub_assert_fail): Removed.
13672 (grub_bad_type_cast_real): New function.
13673 (grub_bad_type_cast): New macro.
13674 (GRUB_AS_LIST): Use grub_bad_type_cast.
13675 (GRUB_AS_LIST_P): Likewise.
e44721e8 13676 (GRUB_AS_NAMED_LIST): Likewise.
33433555 13677 (GRUB_AS_NAMED_LIST_P): Likewise.
e44721e8 13678 (GRUB_AS_PRIO_LIST): Likewise.
33433555 13679 (GRUB_AS_PRIO_LIST_P): Likewise.
e44721e8 13680 * include/grub/handler.h (GRUB_AS_HANDLER): Likewise.
33433555 13681
f5a51306
VS
136822009-12-29 Vladimir Serbinenko <phcoder@gmail.com>
13683
13684 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT (linux)):
13685 Fix syntax error.
13686
90d1e879
RM
136872009-12-29 Robert Millan <rmh.grub@aybabtu.com>
13688
13689 * configure.ac: Check for TARGET_CFLAGS initialization before we
13690 initialize it ourselves (sigh).
13691 Move a few modifications to TARGET_CFLAGS to be unconditional
13692 (extra warning flags, loop alignment, i386 CPU extensions, GCC 4.4
13693 eh_frame)
13694
13695 * gettext/gettext.c (grub_gettext_delete_list): Add `void' argument.
13696 * term/i386/pc/at_keyboard.c
13697 (keyboard_controller_wait_untill_ready): Likewise.
13698 (keyboard_controller_led): Rename `led_status' paramter to avoid
13699 name conflict.
13700
465b5a81 137012009-12-28 Carles Pina i Estany <carles@pina.cat>
13702
13703 * normal/misc.c (grub_normal_print_device_info): Add spaces and double
13704 quotes.
13705
c181849b
VS
137062009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
13707
13708 * kern/parser.c (grub_parser_split_cmdline): Don't dereference NULL.
13709
9c8739a4
VS
137102009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
13711
13712 * normal/menu_text.c (grub_print_message_indented): Prevent
13713 past-the-end-of-array dereference.
13714
3e74249c
VS
137152009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
13716
13717 * video/readers/jpeg.c (GRUB_MOD_FINI (grub_cmd_jpegtest)): Rename to ..
13718 (GRUB_MOD_FINI (video_reader_jpeg)): ...this
13719
64fd18ed 137202009-12-27 Carles Pina i Estany <carles@pina.cat>
13721
13722 * normal/cmdline.c (grub_cmdline_get): Print a space after prompt.
13723 * normal/main.c (grub_normal_read_line): Remove a space from the
13724 default prompt.
13725
714af9b9 137262009-12-27 Carles Pina i Estany <carles@pina.cat>
13727
13728 * loader/i386/efi/linux.c (GRUB_MOD_INIT): Improve command summary.
13729 * loader/i386/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
13730 * loader/i386/linux.c (GRUB_MOD_INIT): Likewise.
13731 * loader/i386/pc/linux.c (GRUB_MOD_INIT): Likewise.
13732 * loader/powerpc/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
13733 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
13734 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
13735
82f3e412 137362009-12-26 Carles Pina i Estany <carles@pina.cat>
c541b01a 13737
13738 * video/readers/jpeg.c (cmd): Declare.
13739 (grub_cmd_jpegtest): Use `grub_command_t' type.
13740 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
13741 Assign to `cmd'.
13742 (GRUB_MOD_FINI): Use `cmd' to unregister.
13743 * video/readers/png.c (cmd): Declare.
13744 (grub_cmd_pngtest): Use `grub_command_t' type.
13745 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
13746 Assign to `cmd'.
13747 (GRUB_MOD_FINI): Use `cmd' to unregister.
13748 * video/readers/tga.c (cmd): Declare.
13749 (grub_cmd_tgatest): Use `grub_command_t' type.
13750 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
13751 Assign to `cmd'.
13752 (GRUB_MOD_FINI): Use `cmd' to unregister.
13753
82f3e412 137542009-12-26 Carles Pina i Estany <carles@pina.cat>
864ba2bb 13755
13756 * efiemu/main.c (GRUB_MOD_INIT): Fix capitalizations and/or full
13757 stops.
13758 * kern/corecmd.c (grub_register_core_commands): Likewise.
13759 * loader/efi/chainloader.c (GRUB_MOD_INIT): Likewise.
13760 * loader/i386/bsd.c (GRUB_MOD_INIT): Likewise.
13761 * loader/i386/efi/linux.c (GRUB_MOD_INIT): Likewise.
13762 * loader/i386/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
13763 * loader/i386/linux.c (GRUB_MOD_INIT): Likewise.
13764 * loader/i386/pc/chainloader.c (GRUB_MOD_INIT): Likewise.
13765 * loader/i386/pc/linux.c (GRUB_MOD_INIT): Likewise.
13766 * loader/multiboot_loader.c (GRUB_MOD_INIT): Likewise.
13767 * loader/powerpc/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
13768 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
13769 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
13770 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
13771 * normal/handler.c (insert_handler): Likewise.
13772 * normal/main.c (GRUB_MOD_INIT): Likewise.
13773 * term/gfxterm.c (GRUB_MOD_INIT): Likewise.
13774
fdcdbb66 137752009-12-26 Carles Pina i Estany <carles@pina.cat>
13776
13777 * commands/help.c (grub_cmd_help): Print the command name before the
13778 summary.
13779 (GRUB_MOD_INIT): Remove command name from the summary.
13780 * kern/command.c (GRUB_MOD_INIT): If summary is null assign an empty
82f3e412 13781 string as summary.
fdcdbb66 13782 * lib/arg.c (find_long): Print the command name before the summary.
13783 * commands/acpi.c (GRUB_MOD_INIT): Remove command name from the
13784 summary.
13785 * commands/blocklist.c (GRUB_MOD_INIT): Likewise.
13786 * commands/cat.c (GRUB_MOD_INIT): Likewise.
13787 * commands/cmp.c (GRUB_MOD_INIT): Likewise.
13788 * commands/configfile.c (GRUB_MOD_INIT): Likewise.
13789 * commands/crc.c (GRUB_MOD_INIT): Likewise.
13790 * commands/date.c (GRUB_MOD_INIT): Likewise.
13791 * commands/echo.c (GRUB_MOD_INIT): Likewise.
13792 * commands/efi/loadbios.c (GRUB_MOD_INIT): Likewise.
13793 * commands/gptsync.c (GRUB_MOD_INIT): Likewise.
13794 * commands/handler.c (GRUB_MOD_INIT): Likewise.
13795 * commands/hdparm.c (GRUB_MOD_INIT): Likewise.
13796 * commands/hexdump.c (GRUB_MOD_INIT): Likewise.
13797 * commands/i386/cpuid.c (GRUB_MOD_INIT): Likewise.
13798 * commands/i386/pc/halt.c (GRUB_MOD_INIT): Likewise.
13799 * commands/i386/pc/play.c (GRUB_MOD_INIT): Likewise.
13800 * commands/i386/pc/pxecmd.c (GRUB_MOD_INIT): Likewise.
13801 * commands/keystatus.c (GRUB_MOD_INIT): Likewise.
13802 * commands/loadenv.c (GRUB_MOD_INIT): Likewise.
13803 * commands/ls.c (GRUB_MOD_INIT): Likewise.
13804 * commands/lspci.c (GRUB_MOD_INIT): Likewise.
13805 * commands/memrw.c (GRUB_MOD_INIT): Likewise.
13806 * commands/minicmd.c (GRUB_MOD_INIT): Likewise.
13807 * commands/parttool.c (GRUB_MOD_INIT): Likewise.
13808 * commands/password.c (GRUB_MOD_INIT): Likewise.
13809 * commands/probe.c (GRUB_MOD_INIT): Likewise.
13810 * commands/read.c (GRUB_MOD_INIT): Likewise.
13811 * commands/search.c (GRUB_MOD_INIT): Likewise.
13812 * commands/sleep.c (GRUB_MOD_INIT): Likewise.
13813 * commands/test.c (GRUB_MOD_INIT): Likewise.
13814 * commands/xnu_uuid.c (GRUB_MOD_INIT): Likewise.
13815 * efiemu/main.c (GRUB_MOD_INIT): Likewise.
13816 * font/font_cmd.c (GRUB_MOD_INIT): Likewise.
13817 * gettext/gettext.c (GRUB_MOD_INIT): Likewise.
13818 * kern/corecmd.c (GRUB_MOD_INIT): Likewise.
13819 * lib/arg.c (GRUB_MOD_INIT): Likewise.
13820 * loader/efi/appleloader.c (GRUB_MOD_INIT): Likewise.
13821 * loader/i386/bsd.c (GRUB_MOD_INIT): Likewise.
13822 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
13823 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
13824 * term/terminfo.c (GRUB_MOD_INIT): Likewise.
13825 * video/readers/jpeg.c (GRUB_MOD_INIT): Likewise.
13826 * video/readers/png.c (GRUB_MOD_INIT): Likewise.
13827 * video/readers/tga.c (GRUB_MOD_INIT): Likewise.
13828
9c288be2
VS
138292009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
13830
13831 Use search command for preliminar UUID search.
13832
13833 * commands/search.c: Split into ...
13834 * commands/search_wrap.c: ...this
13835 * commands/search.c: ...and this.
13836 * commands/search_file.c: New file.
13837 * commands/search_label.c: New file.
13838 * commands/search_uuid.c: New file.
13839 * conf/any-emu.rmk (grub_emu_SOURCES): Remove commands/search.c.
13840 Add commands/search_wrap.c, commands/search_file.c,
13841 commands/search_label.c and commands/search_uuid.c.
13842 * conf/common.rmk (pkglib_MODULES): Remove fs_uuid.mod and fs_file.mod.
13843 (search_mod_SOURCES): Set to commands/search_wrap.c.
13844 (pkglib_MODULES): Add search_fs_file.mod, search_fs_uuid.mod and
13845 search_label.mod.
13846 (search_fs_file_mod_SOURCES): New variable.
13847 (search_fs_file_mod_CFLAGS): Likewise.
13848 (search_fs_file_mod_LDFLAGS): Likewise.
13849 (search_label_mod_SOURCES): Likewise.
13850 (search_label_mod_CFLAGS): Likewise.
13851 (search_label_mod_LDFLAGS): Likewise.
13852 (search_fs_uuid_mod_SOURCES): New variable.
13853 (search_fs_uuid_mod_CFLAGS): Likewise.
13854 (search_fs_uuid_mod_LDFLAGS): Likewise.
13855 (fs_file_mod_SOURCES): Removed.
13856 (fs_file_mod_CFLAGS): Likewise.
13857 (fs_file_mod_LDFLAGS): Likewise.
13858 (fs_uuid_mod_SOURCES): Removed.
13859 (fs_uuid_mod_CFLAGS): Likewise.
13860 (fs_uuid_mod_LDFLAGS): Likewise.
13861 * conf/sparc64-ieee1275.rmk (grub_install_SOURCES):
13862 Set to util/grub-install.in.
13863 * disk/fs_file.c: Removed.
13864 * disk/fs_uuid.c: Likewise.
13865 * include/grub/search.h: New file.
13866 * util/grub-install.in: Handle sparc64.
13867 Create and use load.cfg.
13868 * util/sparc64/ieee1275/grub-install.in: Removed.
13869
db943399
VS
138702009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
13871
13872 * kern/i386/pc/startup.S (grub_biosdisk_get_diskinfo_int13_extensions):
13873 Ignore return status if CF is cleared.
13874 (grub_biosdisk_get_diskinfo_standard): Likewise.
13875
3fdae612
RM
138762009-12-25 Robert Millan <rmh.grub@aybabtu.com>
13877
13878 * term/i386/pc/at_keyboard.c
13879 (keyboard_controller_wait_untill_ready): New function.
13880 (grub_keyboard_controller_write, grub_keyboard_controller_read)
13881 (keyboard_controller_led): Use keyboard_controller_wait_untill_ready()
13882 for keyboard polling, rather than duplicate the same loop. This
13883 saves a few bytes in code size.
13884
7ebaa2b4
VS
138852009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
13886
13887 Support for (pxe[:server[:gateway]]) syntax and
13888 use environment variable for PXE.
13889
13890 * commands/i386/pc/pxecmd.c (options): Removed.
13891 (print_ip): Removed.
13892 (grub_cmd_pxe): Removed
13893 (grub_cmd_pxe_unload): New function.
13894 * fs/i386/pc/pxe.c (grub_pxe_disk_data): New structure.
13895 (grub_pxe_your_ip): Made static.
13896 (grub_pxe_default_server_ip): Likewise.
13897 (grub_pxe_default_gateway_ip): Likewise.
13898 (grub_pxe_blksize): Likewise.
13899 (parse_ip): New function.
13900 (grub_pxe_open): Support server and gateway specification.
13901 (grub_pxe_close): Free disk->data.
13902 (grub_pxefs_open): Use disk->data.
13903 (grub_pxefs_read): Likewise.
13904 (grub_env_write_readonly): New function.
13905 (set_mac_env): Likewise.
13906 (set_env_limn_ro): Likewise.
13907 (parse_dhcp_vendor): Likewise.
13908 (grub_pxe_detect): Set the environment variables.
13909 (set_ip_env): New function.
13910 (write_ip_env): Likewise.
13911 (grub_env_write_pxe_default_server): Likewise.
13912 (grub_env_write_pxe_default_gateway): Likewise.
13913 (grub_env_write_pxe_blocksize): Likewise.
13914 (GRUB_MOD_INIT(pxe)): Set environment variables.
13915 * include/grub/i386/pc/pxe.h (grub_pxe_mac_addr): Rename to ...
13916 (grub_pxe_mac_addr_t): ... this. All users updated.
13917 (grub_pxe_your_ip): Removed.
13918 (grub_pxe_server_ip): Likewise.
13919 (grub_pxe_gateway_ip): Likewise.
13920 (grub_pxe_blksize): Likewise.
13921
ec5f98ab 139222009-12-25 Carles Pina i Estany <carles@pina.cat>
13923
13924 * commands/help.c: Include `<grub/i18n.h>'.
13925 (grub_cmd_help): Gettextizze.
13926 (GRUB_MOD_INIT): Likewise.
13927 * commands/i386/pc/play.c: Include `<grub/i18n.h>'.
13928 (GRUB_MOD_INIT): Gettextizze.
13929 * commands/search.c: Include `<grub/i18n.h>'.
13930 (options): Gettextizze.
13931 (GRUB_MOD_INIT): Gettextizze.
13932 * lib/arg.c: Include `<grub/i18n.h>'.
13933 (help_options): Gettextizze.
13934 (find_long): Likewise.
13935 (grub_arg_show_help): Likewise.
13936 * normal/dyncmd.c: Include `<grub/i18n.h>'.
13937 (read_command_list): Gettextizze.
13938 * po/POTFILES: Add `commands/i386/pc/play.c', `commands/search.c',
7ebaa2b4 13939 `commands/help.c', `lib/arg.c' and `normal/dyncmd.c'.
ec5f98ab 13940
22815526
RM
139412009-12-25 Robert Millan <rmh.grub@aybabtu.com>
13942
13943 * include/grub/i386/at_keyboard.h (NUM_LOCK, SCROLL_LOCK): New macros.
13944 * term/i386/pc/at_keyboard.c (KEYBOARD_STATUS_NUM_LOCK)
13945 (KEYBOARD_LED_SCROLL, KEYBOARD_LED_NUM, KEYBOARD_LED_CAPS): New macros.
13946 (led_status): New variable.
13947 (keyboard_controller_led): New function.
13948 (grub_at_keyboard_getkey_noblock): Handle num lock and scroll lock,
13949 update led status for caps lock, num lock and scroll lock.
13950
0ad46fd7
FZ
139512009-12-25 Felix Zielcke <fzielcke@z-51.de>
13952
13953 * util/hostdisk.c (open_device): Fix a comment.
13954
d0e158c2
RM
139552009-12-24 Robert Millan <rmh.grub@aybabtu.com>
13956
13957 * util/grub-install.in (host_os): New variable.
13958 * util/i386/efi/grub-install.in (host_os): Likewise.
13959
401c0ad6
RM
139602009-12-24 Robert Millan <rmh.grub@aybabtu.com>
13961
13962 * util/mkisofs/write.c (padblock_write): Abort when given an
13963 excedingly large embed image, instead of silently truncating it.
13964
d14d3370
RM
139652009-12-24 Robert Millan <rmh.grub@aybabtu.com>
13966
13967 * include/multiboot.h: Indentation fixes.
13968
eeed10b4
RM
139692009-12-24 Robert Millan <rmh.grub@aybabtu.com>
13970
13971 * include/multiboot.h (struct multiboot_aout_symbol_table)
13972 (struct multiboot_elf_section_header_table): New structure
13973 declarations (stolen from GRUB Legacy).
13974 (struct multiboot_info): Replace opaque `syms' with a.out and ELF
13975 table information.
13976
13977 (multiboot_aout_symbol_table_t, multiboot_elf_section_header_table_t)
13978 (multiboot_info_t, multiboot_memory_map_t, multiboot_module_t): New
13979 type aliases.
13980
681c70ab
RM
139812009-12-24 Robert Millan <rmh.grub@aybabtu.com>
13982
13983 * include/multiboot.h: Make comments src2texi-friendly.
13984
e4d47d8d
RM
139852009-12-24 Robert Millan <rmh.grub@aybabtu.com>
13986
13987 For consistency with [multiboot]/docs/boot.S.
13988
13989 * include/multiboot.h (MULTIBOOT_MAGIC): Rename from this ...
13990 (MULTIBOOT_HEADER_MAGIC): ... to this. Update all users.
13991 (MULTIBOOT_MAGIC2): Rename from this ...
13992 (MULTIBOOT_BOOTLOADER_MAGIC): ... to this. Update all users.
13993
a0b70bda
RM
139942009-12-24 Robert Millan <rmh.grub@aybabtu.com>
13995
13996 * include/multiboot.h: Remove `<grub/types.h>'.
13997 (multiboot_uint16_t, multiboot_uint32_t, multiboot_uint64_t): New
13998 types. Update all users.
13999
61ba42be 140002009-12-25 Carles Pina i Estany <carles@pina.cat>
14001
14002 * commands/efi/loadbios.c: Capitalize acronyms, replace `could not' by
14003 `couldn't' and `can not' by `cannot'.
14004 * commands/i386/pc/drivemap.c: Likewise.
14005 * disk/ata.c: Likewise.
14006 * disk/ieee1275/nand.c: Likewise.
14007 * fs/affs.c: Likewise.
14008 * fs/fat.c: Likewise.
14009 * fs/hfs.c: Likewise.
14010 * fs/hfsplus.c: Likewise.
14011 * fs/iso9660.c: Likewise.
14012 * fs/jfs.c: Likewise.
14013 * fs/minix.c: Likewise.
14014 * fs/reiserfs.c: Likewise.
14015 * fs/sfs.c: Likewise.
14016 * fs/udf.c: Likewise.
14017 * fs/ufs.c: Likewise.
14018 * fs/xfs.c: Likewise.
14019 * loader/powerpc/ieee1275/linux.c: Likewise.
14020 * loader/sparc64/ieee1275/linux.c: Likewise.
14021 * util/grub-probe.c: Likewise.
14022 * util/misc.c: Likewise.
14023
7fd0baee 140242009-12-24 Carles Pina i Estany <carles@pina.cat>
14025
14026 * bus/usb/usbhub.c: Fix capitalization, fullstop and newlines in
14027 grub_errno calls.
14028 * commands/acpi.c: Likewise.
14029 * commands/blocklist.c: Likewise.
14030 * commands/efi/loadbios.c: Likewise.
14031 * commands/i386/pc/drivemap.c: Likewise.
14032 * commands/loadenv.c: Likewise.
14033 * commands/memrw.c: Likewise.
14034 * commands/password.c: Likewise.
14035 * commands/videotest.c: Likewise.
14036 * disk/ata.c: Likewise.
14037 * disk/ata_pthru.c: Likewise.
14038 * disk/dmraid_nvidia.c: Likewise.
14039 * disk/ieee1275/nand.c: Likewise.
14040 * disk/ieee1275/ofdisk.c: Likewise.
14041 * disk/loopback.c: Likewise.
14042 * disk/lvm.c: Likewise.
14043 * disk/mdraid_linux.c: Likewise.
14044 * disk/raid.c: Likewise.
14045 * disk/raid6_recover.c: Likewise.
14046 * disk/scsi.c: Likewise.
14047 * efiemu/main.c: Likewise.
14048 * efiemu/mm.c: Likewise.
14049 * efiemu/pnvram.c: Likewise.
14050 * efiemu/symbols.c: Likewise.
14051 * font/font.c: Likewise.
14052 * fs/cpio.c: Likewise.
14053 * fs/hfsplus.c: Likewise.
14054 * fs/iso9660.c: Likewise.
14055 * fs/jfs.c: Likewise.
14056 * fs/minix.c: Likewise.
14057 * fs/ntfs.c: Likewise.
14058 * fs/ntfscomp.c: Likewise.
14059 * fs/reiserfs.c: Likewise.
14060 * fs/ufs.c: Likewise.
14061 * fs/xfs.c: Likewise.
14062 * gettext/gettext.c: Likewise.
14063 * include/grub/auth.h: Likewise.
14064 * kern/elf.c: Likewise.
14065 * kern/file.c: Likewise.
14066 * kern/ieee1275/init.c: Likewise.
14067 * kern/ieee1275/mmap.c: Likewise.
14068 * kern/ieee1275/openfw.c: Likewise.
14069 * kern/powerpc/dl.c: Likewise.
14070 * kern/sparc64/dl.c: Likewise.
14071 * lib/arg.c: Likewise.
14072 * loader/i386/bsd.c: Likewise.
14073 * loader/i386/bsdXX.c: Likewise.
14074 * loader/i386/efi/linux.c: Likewise.
14075 * loader/i386/efi/xnu.c: Likewise.
14076 * loader/i386/ieee1275/linux.c: Likewise.
14077 * loader/i386/linux.c: Likewise.
14078 * loader/i386/multiboot.c: Likewise.
14079 * loader/i386/pc/linux.c: Likewise.
14080 * loader/i386/pc/multiboot2.c: Likewise.
14081 * loader/i386/xnu.c: Likewise.
14082 * loader/ieee1275/multiboot2.c: Likewise.
14083 * loader/macho.c: Likewise.
14084 * loader/machoXX.c: Likewise.
14085 * loader/multiboot2.c: Likewise.
14086 * loader/multiboot_loader.c: Likewise.
14087 * loader/powerpc/ieee1275/linux.c: Likewise.
14088 * loader/sparc64/ieee1275/linux.c: Likewise.
14089 * loader/xnu.c: Likewise.
14090 * loader/xnu_resume.c: Likewise.
14091 * mmap/i386/pc/mmap.c: Likewise.
14092 * normal/menu_viewer.c: Likewise.
14093 * partmap/acorn.c: Likewise.
14094 * partmap/amiga.c: Likewise.
14095 * partmap/apple.c: Likewise.
14096 * script/lexer.c: Likewise.
14097 * term/gfxterm.c: Likewise.
14098 * term/i386/pc/serial.c: Likewise.
14099 * term/i386/pc/vga.c: Likewise.
14100 * term/ieee1275/ofconsole.c: Likewise.
14101 * term/terminfo.c: Likewise.
14102 * video/bitmap.c: Likewise.
14103 * video/efi_gop.c: Likewise.
14104 * video/efi_uga.c: Likewise.
14105 * video/fb/video_fb.c: Likewise.
14106 * video/i386/pc/vbe.c: Likewise.
14107 * video/readers/tga.c: Likewise.
14108 * video/video.c: Likewise.
14109
0ad46fd7 141102009-12-23 Felix Zielcke <fzielcke@z-51.de>
a2c1332b
FZ
14111
14112 * commands/i386/pc/drivemap.c: Remove all trailing whitespace.
14113 * commands/lspci.c: Likewise.
14114 * commands/probe.c: Likewise.
14115 * commands/xnu_uuid.c: Likewise.
14116 * conf/i386-coreboot.rmk: Likewise.
14117 * conf/i386-efi.rmk: Likewise.
14118 * conf/i386-ieee1275.rmk: Likewise.
14119 * conf/i386-pc.rmk: Likewise.
14120 * conf/powerpc-ieee1275.rmk: Likewise.
14121 * conf/sparc64-ieee1275.rmk: Likewise.
14122 * conf/x86_64-efi.rmk: Likewise.
14123 * fs/i386/pc/pxe.c: Likewise.
14124 * gettext/gettext.c: Likewise.
14125 * include/grub/efi/graphics_output.h: Likewise.
14126 * include/grub/i386/pc/memory.h: Likewise.
14127 * kern/env.c: Likewise.
14128 * kern/i386/qemu/startup.S: Likewise.
14129 * lib/i386/pc/biosnum.c: Likewise.
14130 * lib/i386/relocator.c: Likewise.
14131 * lib/i386/relocator_asm.S: Likewise.
14132 * lib/relocator.c: Likewise.
14133 * loader/i386/bsd.c: Likewise.
14134 * loader/i386/multiboot.c: Likewise.
14135 * loader/i386/pc/chainloader.c: Likewise.
14136 * loader/i386/xnu.c: Likewise.
14137 * loader/xnu.c: Likewise.
14138 * normal/main.c: Likewise.
14139 * normal/menu_text.c: Likewise.
14140 * util/getroot.c: Likewise.
14141 * util/grub-mkconfig_lib.in: Likewise.
14142 * util/grub.d/00_header.in: Likewise.
14143 * util/i386/pc/grub-mkimage.c: Likewise.
14144 * util/mkisofs/eltorito.c: Likewise.
14145 * util/mkisofs/exclude.h: Likewise.
14146 * util/mkisofs/hash.c: Likewise.
14147 * util/mkisofs/iso9660.h: Likewise.
14148 * util/mkisofs/joliet.c: Likewise.
14149 * util/mkisofs/mkisofs.c: Likewise.
14150 * util/mkisofs/mkisofs.h: Likewise.
14151 * util/mkisofs/multi.c: Likewise.
14152 * util/mkisofs/name.c: Likewise.
14153 * util/mkisofs/rock.c: Likewise.
14154 * util/mkisofs/tree.c: Likewise.
14155 * util/mkisofs/write.c: Likewise.
14156 * video/efi_gop.c: Likewise.
14157
009ec743
VS
141582009-12-23 Vladimir Serbinenko <phcoder@gmail.com>
14159
14160 * video/efi_gop.c (grub_video_gop_get_bitmask): Fix off-by-one in mask
14161 size counting.
14162
0ad46fd7 141632009-12-22 Felix Zielcke <fzielcke@z-51.de>
990f3548
FZ
14164
14165 * util/grub-mkrescue.in (pkglib_DATA): Set to @pkglib_DATA@.
14166 * genmk.rb (class SCRIPT): Modify the target file instead of source.
14167
d3d30ea0
VS
141682009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
14169
14170 * commands/memrw.c (grub_cmd_write): Support for mask parameter.
14171 (GRUB_MOD_INIT(memrw)): Update help line.
14172
a34f5c70
VS
141732009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
14174
14175 * commands/memrw.c (cmd_read_byte, cmd_read_word, cmd_read_dword):
14176 Use grub_extcmd_t. All users updated.
14177 (options): New variable.
14178 (grub_cmd_read): Restructure for readability. Support "-v" option.
14179 (grub_cmd_write): Restructure for readability.
14180
0ad46fd7 141812009-12-22 Felix Zielcke <fzielcke@z-51.de>
67618ea6
FZ
14182
14183 * genmk.rb (class SCRIPT): Prepend #{src} path with $(srcdir).
14184
0ad46fd7 141852009-12-22 Felix Zielcke <fzielcke@z-51.de>
10a88797
FZ
14186
14187 * genmk.rb (class SCRIPT): Use sed to substitute @pkglib_DATA@
14188 with the actual contents of the correspondending make variable.
14189 * util/grub-mkrescue.in (pkglib_DATA): New variable.
14190 (process_input_dir): Copy all $pkglib_DATA files instead of explicitly
14191 specifying `*.lst' and `efiemu??.o'
14192
0ad46fd7 141932009-12-22 Felix Zielcke <fzielcke@z-51.de>
7e70dfff
FZ
14194
14195 * util/grub.d/30_os-prober.in (osx_entry): Add round brackets
14196 after function name.
14197 Noticed by Rene Engelhard <rene@debian.org>.
14198
dc77a799
VS
141992009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
14200
14201 * commands/lspci.c (grub_pci_classes): Add "USB Controller".
14202 (options): New variable.
14203 (iospace): Likewise.
14204 (grub_lspci_iter): List IO spaces if "-i" was given.
14205 (grub_cmd_lspci): Parse options.
14206 (GRUB_MOD_INIT(lspci)): Use extcmd.
14207 (GRUB_MOD_FINI(lspci)): Likewise.
14208
0ad46fd7 142092009-12-22 Felix Zielcke <fzielcke@z-51.de>
82000aa2
FZ
14210
14211 * util/grub.d/30_os-prober.in (osx_entry): Remove non POSIX compliant
14212 `function' keyword.
14213 Patch by Tony Mancill <tmancill@debian.org>.
14214
b5d5993b
VS
142152009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
14216
14217 * bus/usb/uhci.c (grub_uhci_transfer): Set a limit transaction time.
14218 (grub_uhci_portstatus): Likewise.
14219 (grub_uhci_portstatus): Add necessary delay.
11d18281 14220 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Fix loop-break condition.
b5d5993b 14221
941903f2 142222009-12-21 Carles Pina i Estany <carles@pina.cat>
b5d5993b 14223
941903f2 14224 * commands/acpi.c (options): Fix capitalizations and/or full stops.
14225 (GRUB_MOD_INIT): Likewise.
14226 * commands/boot.c (GRUB_MOD_INIT): Likewise.
cb04503e 14227 * commands/cmp.c (grub_cmd_cmp): Improve the help message.
14228 * commands/echo.c (options): Fix capitalizations and/or full stops.
941903f2 14229 * commands/efi/loadbios.c (enable_rom_area): Likewise.
14230 (enable_rom_area): Likewise.
14231 (GRUB_MOD_INIT): Likewise.
14232 * commands/gptsync.c (GRUB_MOD_INIT): Likewise.
14233 * commands/halt.c (GRUB_MOD_INIT): Improve the help message.
14234 * commands/handler.c (GRUB_MOD_INIT): Likewise.
14235 * commands/hdparm.c (options): Fix capitalizations and/or full stops.
14236 * commands/hexdump.c (options): Likewise.
14237 * commands/i386/cpuid.c (options): Likewise.
14238 (GRUB_MOD_INIT): Likewise.
14239 * commands/i386/pc/drivemap.c (options): Likewise.
14240 (GRUB_MOD_INIT): Likewise.
14241 * commands/i386/pc/halt (options): Likewise.
14242 (GRUB_MOD_INIT): Likewise.
14243 * commands/i386/pc/play.c (GRUB_MOD_INIT): Likewise.
14244 * commands/i386/pc/pxecmd.c (options): Likewise.
14245 * commands/i386/pc/vbetest.c (GRUB_MOD_INIT): Likewise.
14246 * commands/ieee1275/suspend.c (GRUB_MOD_INIT): Likewise.
14247 * commands/keystatus.c (options): Likewise.
14248 (GRUB_MOD_INIT): Likewise.
14249 * commands/loadenv.c (options): Likewise.
14250 * commands/ls.c (options): Likewise.
14251 * commands/lspci.c (GRUB_MOD_INIT): Likewise.
14252 * commands/memrw.c (GRUB_MOD_INIT): Likewise.
14253 * commands/minicmd.c (GRUB_MOD_INIT): Likewise.
14254 * commands/parttool.c (helpmsg): Likewise.
14255 * commands/probe.c (options): Likewise.
14256 * commands/read.c (GRUB_MOD_INIT): Likewise.
14257 * commands/reboot.c (GRUB_MOD_INIT): Likewise.
14258 * commands/search.c (options): Likewise.
14259 * commands/sleep.c (options): Likewise.
14260 * commands/test.c (GRUB_MOD_INIT): Likewise.
14261 * commands/true.c (GRUB_MOD_INIT): Likewise.
14262 * commands/usbtest.c (GRUB_MOD_INIT): Likewise.
14263 * commands/videotest.c (GRUB_MOD_INIT): Likewise.
14264 * lib/arg.c (help_options): Likewise.
e9bbb4e7 14265 * Makefile.in ($(srcdir)/po/$(PACKAGE).pot): Pass -ctranslate to
14266 `$(XGETTEXT)'.
98a50553 14267 * po/POTFILES: Add `commands/loadenv.c'.
941903f2 14268
0ad46fd7 142692009-12-21 Felix Zielcke <fzielcke@z-51.de>
4dd13225 14270
ef3c2c3a 14271 * util/grub-mkrescue.in (process_input_dir): Copy `*.lst' files
4dd13225
FZ
14272 instead of specifying them explicit.
14273
7922f68b
RM
142742009-12-21 Robert Millan <rmh.grub@aybabtu.com>
14275
14276 * NEWS: Add grub-probe support for GNU/Hurd.
14277
537ce47f
RM
142782009-12-21 Robert Millan <rmh.grub@aybabtu.com>
14279
14280 * NEWS: gettext was added after 1.97.
14281
9b214e3a
RM
142822009-12-21 Robert Millan <rmh.grub@aybabtu.com>
14283
14284 * util/mkisofs/msdos_partition.h: New file (based on
14285 include/grub/msdos_partition.h).
14286 * util/mkisofs/mkisofs.c (use_protective_msdos_label): New variable.
14287 (OPTION_PROTECTIVE_MSDOS_LABEL): New macro.
14288 (ld_options, main): Recognize --protective-msdos-label.
14289 * util/mkisofs/mkisofs.h (use_protective_msdos_label): New declaration.
14290 * util/mkisofs/write.c: Include `"msdos_partition.h"'.
14291 (padblock_write): If `use_protective_msdos_label' is set, patch a
14292 protective DOS-style label in the output image.
14293
14294 * util/grub-mkrescue.in: Use --protective-msdos-label.
14295
e9309813
RM
142962009-12-21 Robert Millan <rmh.grub@aybabtu.com>
14297
14298 * util/grub-mkrescue.in: Do not zero-pad image for BIOS-based disk
14299 boot.
14300
0ae56929
RM
143012009-12-21 Robert Millan <rmh.grub@aybabtu.com>
14302
14303 * util/mkisofs/mkisofs.c (use_embedded_boot, boot_image_embed): New
14304 variables.
14305 (ld_options, main): Recognize `--embedded-boot'.
14306 * util/mkisofs/mkisofs.h (use_embedded_boot, boot_image_embed): New
14307 declarations.
14308 * util/mkisofs/write.c (PADBLOCK_SIZE): New variable.
14309 (padblock_size): Use `PADBLOCK_SIZE' instead of hardcoding 16.
14310 (padblock_write): Likewise. Rewrite to support embedded boot image.
14311
14312 * util/grub-mkrescue.in: When building i386-pc images, embed core.img
14313 for BIOS-based disk boot instead of only ElTorito.
14314
b15937b1
RM
143152009-12-21 Robert Millan <rmh.grub@aybabtu.com>
14316
14317 * util/grub-mkrescue.in: Remove `configfile' and `sh' from i386-pc
14318 build (not needed for bootstrap).
14319
52cc3ce0
RM
143202009-12-21 Robert Millan <rmh.grub@aybabtu.com>
14321
14322 * util/grub-mkrescue.in: Remove `memdisk', `tar' and `search' modules
14323 from i386-pc build (not needed for bootstrap).
14324 Rewrite a pair of strings.
14325
36f5ff04
RM
143262009-12-21 Robert Millan <rmh.grub@aybabtu.com>
14327
14328 * normal/main.c (grub_normal_reader_init): Set left margin back to 3.
14329
973c6c85 143302009-12-21 Vladimir Serbinenko <phcoder@gmail.com>
b07e53f0
VS
14331
14332 * video/i386/pc/vbe.c (grub_video_vbe_fini): Set 'last_set_mode'.
14333
05d21547
AB
143342009-12-21 Andreas Born <futur.andy@googlemail.com>
14335
14336 * kern/env.c (grub_env_context_open): Mark exported variable for
14337 reexport.
14338
0175d51f
AB
143392009-12-21 Andreas Born <futur.andy@googlemail.com>
14340
14341 * kern/env.c (grub_env_export): Create nonexistent variables before
14342 exporting.
14343
7f39d92f 143442009-12-20 Carles Pina i Estany <carles@pina.cat>
0175d51f 14345
7f39d92f 14346 * include/grub/auth.h: Include `<grub/i18n.h>'.
14347 (GRUB_GET_PASSWORD): Gettextizze string.
14348 * include/grub/normal.h (STANDARD_MARGIN): New macro, moved from
14349 menu_text.c.
14350 (grub_utf8_to_ucs4_alloc): Fix indentation.
14351 (grub_print_ucs4): Likewise.
14352 (grub_getstringwidth): Likewise.
14353 (print_message_indented): New declaration.
14354 * normal/auth.c: Include `<grub/i18n.h>'.
14355 (grub_auth_check_authentication): Gettexttize string.
14356 * normal/cmdline.c: Include `<grub/i18n.h>'.
14357 (grub_cmdline_get): Gettextizze.
14358 * normal/color.c: Include `<grub/i18n.h>'.
14359 (grub_parse_color_name_pair): Gettexttize strings.
14360 * normal/main.c (grub_normal_reader_init): Cleanup gettexttized
14361 string (use `print_message_indented').
14362 * normal/menu_text.c (STANDARD_MARGIN): Moved from here to
14363 `include/grub/normal.h'.
14364 (print_message_indented): Renamed to ...
14365 (grub_print_message_indented): ... this. Remove `static' qualifer (now
14366 used in normal/main.c).
14367 (print_message): Use `grub_print_message_indented' instead of
14368 `print_message_indented'.
14369 (print_timeout): Likewise.
14370 * normal/misc.c: Include `<grub/term.h>' and `<grub/i18n.h>'.
14371 (grub_normal_print_device_info): Gettexttize strings.
14372 * po/POTFILES: Add `auth.c', `color.c' and `misc.c'.
14373
3041d898
VS
143742009-12-20 Vladimir Serbinenko <phcoder@gmail.com>
14375
14376 * kern/parser.c (grub_parser_split_cmdline): Fix incorrect counting
14377 of arguments. Return number of tokens and not arguments. All users
14378 updated.
14379
de15bf8e
VS
143802009-12-20 Vladimir Serbinenko <phcoder@gmail.com>
14381
14382 * util/i386/pc/grub-setup.c (setup): Don't install on non-GPT,
14383 non-MSDOS paritions.
14384
e0a6ca52
VS
143852009-12-19 Vladimir Serbinenko <phcoder@gmail.com>
14386
14387 * include/grub/types.h (UNUSED): Removed since it conflicts with
14388 NetBSD headers. All users changed to direct __attribute__ ((unused)).
14389 Reported by Grégoire Sutre.
14390
b99518d1 143912009-12-19 Carles Pina i Estany <carles@pina.cat>
14392
14393 * include/grub/normal.h (grub_utf8_to_ucs4): New declaration.
14394 (grub_print_ucs4_alloc): Likewise.
14395 (grub_getstringwidth): Likewise.
14396 * normal/main.c (grub_normal_init_page): Gettextize version string.
14397 * normal/menu_text.c (grub_utf8_to_ucs4_alloc): New definition.
14398 (getstringwidth): Renamed to ...
14399 (grub_getstringwidth): ... this. Remove `static' qualifier (now used
14400 in normal/main.c). Use `grub_utf8_to_ucs4_alloc'.
14401 (grub_print_ucs4): Remove `static' qualifer (now used in
14402 normal/main.c).
14403 * po/POTFILES: Add normal/main.c.
14404
bfd5e52b 144052009-12-19 Carles Pina i Estany <carles@pina.cat>
14406
14407 * normal/menu_text.c (STANDARD_MARGIN): New macro.
14408 (print_message_indented): Add `margin_left' and `margin_right'
14409 parameters.
14410 (print_message): Update `print_message_indented' calls. Adds '\n' to the
14411 strings.
14412 (print_timeout): Use `print_message_indented' to print the message.
14413 Deletes `second_stage' parameter.
14414 (run_menu): Update `print_timeout' calls.
14415
5a1ad2b9
VS
144162009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
14417
14418 Fix console palette on OpenFirmware.
14419
14420 * term/ieee1275/ofconsole.c (MAX): Removed.
14421 (colors): Redone based on VGA palette.
14422 (grub_ofconsole_setcolor): Discard brightness bit since only 8
14423 colors are supported.
14424 (grub_ofconsole_init_output): Use ARRAY_SIZE instead of hardcoded size.
14425
b045f00a
VS
144262009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
14427
14428 Fix potential EfiEmu double prepare.
14429
14430 * efiemu/main.c (prepared): New variable
14431 (grub_efiemu_unload): Set prepare to '0'.
14432 (grub_efiemu_prepare): Return if already prepared. Set prepared.
14433
14434 set_virtual_address_map support.
14435
14436 * include/grub/efi/efi.h (grub_efi_set_virtual_address_map): New
14437 prototype.
14438 * include/grub/efiemu/efiemu.h (grub_efiemu_write_sym_markers): New
14439 prototype.
14440 (grub_efiemu_crc32): Likewise.
14441 (grub_efiemu_crc64): Likewise.
14442 (grub_efiemu_set_virtual_address_map): Likewise.
14443 * include/grub/autoefi.h (grub_autoefi_exit_boot_services):
14444 New definition.
14445 (grub_autoefi_set_virtual_address_map): Likewise.
14446 * kern/efi/efi.c (grub_efi_set_virtual_address_map): New function.
14447 * loader/i386/xnu.c (grub_xnu_boot): Call set_virtual_address_map.
14448 Restructure flow to accomodate it.
14449 * efiemu/prepare.c (grub_efiemu_prepare): Support set_virtual_address_map.
14450 (grub_efiemu_crc): Recompute CRC32.
14451 * efiemu/runtime/efiemu.c (ptv_relocated): Renamed to ...
14452 (efiemu_ptv_relocated): ... this. Made global. All users updated.
14453 * efiemu/symbols.c (relocated_handle): New variable.
14454 (grub_efiemu_free_syms): Free relocated_handle.
14455 (grub_efiemu_alloc_syms): Allocate relocated_handle.
14456 (grub_efiemu_write_sym_markers): New function.
14457 (grub_efiemu_set_virtual_address_map): Likewise.
14458
14459 Newer XNU parameters.
14460
14461 * include/grub/i386/xnu.h (GRUB_XNU_BOOTARGS_VERMINOR): Change to 5.
14462 * include/grub/xnu.h (grub_xnu_extheader): Add nameaddr and namesize.
14463 (grub_xnu_fill_devicetree): New prototype.
14464 (grub_xnu_heap_real_start): New variable.
14465 * loader/xnu.c (get_name_ptr): New function.
14466 (grub_xnu_load_driver): Fill namelen and name.
14467
14468 64-bit xnu support.
14469
14470 * conf/i386-efi.rmk (xnu_mod_SOURCES): Add 'loader/macho32.c'
14471 and 'loader/macho64.c'.
14472 * conf/i386-pc.rmk: Likewise.
14473 * conf/x86_64-efi.rmk: Likewise.
14474 * include/grub/i386/macho.h (grub_macho_thread64): New structure.
14475 * include/grub/xnu.h (grub_xnu_is_64bit): New variable.
14476 * include/grub/macho.h (grub_macho_segment64): New structure.
14477 * include/grub/machoload.h (grub_macho32_size): Renamed from ...
14478 (grub_macho_size32): ... to this.
14479 (grub_macho32_get_entry_point): Renamed from ...
14480 (grub_macho_get_entry_point32): ... to this.
14481 (grub_macho_contains_macho64): New prototype.
14482 (grub_macho_size64): Likewise.
14483 (grub_macho_get_entry_point64): Likewise.
14484 (grub_macho32_load): Renamed from ...
14485 (grub_macho_load32): ... to this.
14486 (grub_macho32_filesize): Renamed from ...
14487 (grub_macho_filesize32): ... to this.
14488 (grub_macho32_readfile): Renamed from ...
14489 (grub_macho_readfile32): ... to this.
14490 (grub_macho_filesize64): New prototype.
14491 (grub_macho_readfile64): Likewise.
14492 (grub_macho_parse32): Likewise.
14493 (grub_macho_parse64): Likewise.
14494 * loader/macho.c: Split into ...
14495 * loader/machoXX.c: ... and this. Replace 32 with XX.
14496 * loader/macho32.c: New file.
14497 * loader/macho64.c: Likewise.
14498 * loader/xnu.c (grub_xnu_is_64bit): New variable.
14499 (grub_cmd_xnu_kernel): Make 32-bit only.
14500 (grub_cmd_xnu_kernel64): New function.
14501 (grub_xnu_load_driver): Support Mach-O 64.
14502 (grub_cmd_xnu_mkext): Likewise.
14503 * util/grub.d/30_os-prober.in (osx_entry): New function.
14504 Generate entries for 64-bit boot too.
14505
14506 Eliminate ad-hoc tree format in XNU and EfiEmu.
14507
14508 * efiemu/main.c (grub_efiemu_prepare): Update comment.
14509 * efiemu/pnvram.c: Rewritten to use environment variables.
14510 All users updated.
14511
14512 Inline utf16_to_utf8.
14513
14514 * kern/misc.c (grub_utf16_to_utf8): Move from here ...
14515 * include/grub/charset.h (grub_utf16_to_utf8): ... to here. Inlined.
14516 All users updated.
14517 * include/grub/misc.h (grub_utf16_to_utf8): Removed.
14518
14519 * bus/usb/usb.c (grub_usb_get_string): Move from here ...
14520 * commands/usbtest.c (grub_usb_get_string): ... move here.
14521 (usb_print_str): Fix error handling.
14522 * include/grub/usb.h (grub_usb_get_string): Remove.
14523
14524 UTF-8 to UTF-16 transformation.
14525
14526 * conf/common.rmk (pkglib_MODULES): Add charset.mod
14527 (charset_mod_SOURCES): New variable.
14528 (charset_mod_CFLAGS): Likewise.
14529 (charset_mod_LDFLAGS): Likewise.
14530 * include/grub/utf.h: New file.
14531 * lib/utf.c: New file. (Based on grub_utf8_to_ucs4 from kern/misc.c)
14532
14533 Support for device properties.
14534
14535 * include/grub/i386/xnu.h (grub_xnu_devprop_header): New structure.
14536 (grub_xnu_devprop_device_header): Likewise.
14537 (grub_xnu_devprop_device_descriptor): Likewise.
14538 (grub_xnu_devprop_add_device): New prototype.
14539 (grub_xnu_devprop_remove_device): Likewise.
14540 (grub_xnu_devprop_remove_property): Likewise.
14541 (grub_xnu_devprop_add_property_utf8): Likewise.
14542 (grub_xnu_devprop_add_property_utf16): Likewise.
14543 (grub_cpu_xnu_init): Likewise.
14544 (grub_cpu_xnu_fini): Likewise.
14545 (grub_cpu_xnu_unload): Likewise.
14546 * loader/i386/xnu.c (grub_xnu_devprop_device_descriptor): New structure.
14547 (property_descriptor): Likewise.
14548 (devices): New variable.
14549 (grub_xnu_devprop_remove_property): New function.
14550 (grub_xnu_devprop_add_device): Likewise.
14551 (grub_xnu_devprop_remove_device): Likewise.
14552 (grub_xnu_devprop_add_property): Likewise.
14553 (grub_xnu_devprop_add_property_utf8): Likewise.
14554 (grub_xnu_devprop_add_property_utf16): Likewise.
14555 (hextoval): Likewise.
14556 (grub_cpu_xnu_fill_devprop): Likewise.
14557 (grub_cmd_devprop_load): Likewise.
14558 (grub_xnu_boot): Call grub_cpu_xnu_fill_devprop,
14559 grub_xnu_fill_devicetree, grub_xnu_fill_devicetree
14560 (cmd_devprop_load): New variable.
14561 (grub_cpu_xnu_init): New function.
14562 (grub_cpu_xnu_fini): Likewise.
14563 * loader/i386/xnu.c (grub_xnu_unload): Call grub_cpu_xnu_unload.
14564 * loader/xnu.c (grub_xnu_parse_devtree): Remove.
14565 (grub_cmd_xnu_devtree): Likewise.
14566 (hextoval): New function.
14567 (unescape): Likewise.
14568 (grub_xnu_fill_devicetree): Likewise.
14569
14570 * util/grub.d/30_os-prober.in: Load devprop.bin. Don't load devtree.txt.
14571 * util/i386/efi/grub-dumpdevtree: Generate devprop.bin.
14572
0945f181
VS
145732009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
14574
14575 Workaround for broken ATI VBE.
14576
14577 * video/i386/pc/vbe.c (last_set_mode): New variable.
14578 (grub_vbe_set_video_mode): Set 'last_set_mode'.
14579 (grub_vbe_get_video_mode): Use 'last_set_mode' if get_mode fails.
14580 (grub_video_vbe_setup): Don't check for reserved flag.
14581
0ad46fd7 145822009-12-17 Felix Zielcke <fzielcke@z-51.de>
0297aafb
FZ
14583
14584 * gendistlist.sh: Use POSIX compliant `!' instead of `-not' in
14585 the `find' command.
14586
c179ebe4
VS
145872009-12-16 Vladimir Serbinenko <phcoder@gmail.com>
14588
14589 UUID support for HFS.
14590
14591 * fs/hfs.c (grub_hfs_uuid): New function.
14592 (grub_hfs_fs): New value .uuid.
14593 * include/grub/hfs.h (grub_hfs_sblock): New field 'num_serial'.
14594
0ad46fd7 145952009-12-14 Felix Zielcke <fzielcke@z-51.de>
574cce0c
FZ
14596
14597 Fix a segfault with parsing unknown long options.
14598
14599 * util/grub-mkrelpath.c (options): Zero terminate it.
14600
c4a3e41a
CPE
146012009-12-13 Carles Pina i Estany <carles@pina.cat>
14602
14603 * include/grub/misc.h (grub_puts): New declaration.
14604 (grub_puts_): Likewise.
a22008a6 14605 * kern/misc.c (grub_puts): New definition.
c4a3e41a
CPE
14606 (grub_puts_): Likewise.
14607
2e8a7602
RM
146082009-12-13 Robert Millan <rmh.grub@aybabtu.com>
14609
14610 * util/grub-probe.c (probe): Improve error message.
14611
b50b77b9
RM
146122009-12-13 Robert Millan <rmh.grub@aybabtu.com>
14613
14614 * loader/i386/multiboot_elfxx.c
14615 (CONCAT(grub_multiboot_load_elf, XX)): Fix `grub_multiboot_payload_eip'
14616 initialization.
14617
146182009-12-13 Vladimir Serbinenko <phcoder@gmail.com>
14619
14620 Relocator framework
14621
14622 * loader/i386/xnu_helper.S: Removed. All users updated.
14623 * conf/i386.rmk (pkglib_MODULES): Add relocator.mod.
14624 (relocator_mod_SOURCES): New variable.
14625 (relocator_mod_CFLAGS): Likewise.
14626 (relocator_mod_LDFLAGS): Likewise.
14627 (relocator_mod_ASFLAGS): Likewise.
14628 * conf/x86_64.rmk: Likewise.
14629 * include/grub/i386/multiboot.h (grub_multiboot_payload_orig): Removed.
14630 (grub_multiboot_payload_entry_offset): Likewise.
14631 (grub_multiboot_forward_relocator): Likewise.
14632 (grub_multiboot_forward_relocator_end): Likewise.
14633 (grub_multiboot_backward_relocator): Likewise.
14634 (grub_multiboot_backward_relocator_end): Likewise.
14635 (grub_multiboot_payload_eip): New variable.
14636 (grub_multiboot_payload_orig): Likewise.
14637 * include/grub/i386/pc/memory.h: Include grub/i386/memory.h.
14638 (GRUB_MEMORY_MACHINE_CR0_PE_ON): Move from here ...
14639 * include/grub/i386/memory.h
14640 (GRUB_MEMORY_CPU_CR0_PE_ON): ... to here
14641 (GRUB_MEMORY_CPU_CR4_PAE_ON): New definition.
14642 (GRUB_MEMORY_CPU_CR0_PAGING_ON): Likewise.
14643 (GRUB_MEMORY_CPU_AMD64_MSR): Likewise.
14644 (GRUB_MEMORY_CPU_AMD64_MSR_ON): Likewise.
14645 * include/grub/i386/relocator.h: New file.
14646 * include/grub/x86_64/relocator.h: Likewise.
14647 * include/grub/i386/xnu.h: Include grub/cpu/relocator.h.
14648 (XNU_RELOCATOR): New macro.
14649 (grub_xnu_launcher_start): Remove.
14650 (grub_xnu_launcher_end): Likewise.
14651 * include/grub/xnu.h (grub_xnu_boot_resume): New prototype.
14652 (grub_xnu_heap_real_start): Remove.
14653 (grub_xnu_heap_start): Change to void *. All users updated.
14654 * kern/i386/realmode.S (real_to_prot): Use GRUB_MEMORY_CPU_CR0_PE_ON.
14655 * lib/i386/relocator.c: New file.
14656 * lib/i386/relocator_asm.S: Likewise.
14657 * lib/i386/relocator_backward.S: Likewise.
14658 * lib/mips/relocator.c: Likewise.
14659 * lib/mips/relocator_asm.S: Likewise.
14660 * lib/relocator.c: Likewise.
14661 * loader/i386/multiboot.c: Include grub/i386/relocator.h.
14662 (entry): Removed.
14663 (playground): Likewise.
14664 (grub_multiboot_payload_orig): New variable.
14665 (grub_multiboot_payload_dest): Likewise.
14666 (grub_multiboot_payload_size): Likewise.
14667 (grub_multiboot_payload_eip): Likewise.
14668 (grub_multiboot_payload_esp): Likewise.
14669 (grub_multiboot_boot): Use grub_relocator32_boot.
14670 (grub_multiboot_unload): Free relocators.
14671 (grub_multiboot): Setup stack. Use relocators.
14672 * loader/i386/multiboot_elfxx.c: Include grub/i386/relocator.h.
14673 (grub_multiboot_load_elfXX): Use relocators.
14674 * loader/i386/multiboot_helper.S (grub_multiboot_payload_orig): Removed.
14675 (grub_multiboot_payload_size): Likewise.
14676 (grub_multiboot_payload_dest): Likewise.
14677 (grub_multiboot_payload_entry_offset): Likewise.
14678 (grub_multiboot_forward_relocator): Likewise.
14679 (grub_multiboot_backward_relocator): Likewise.
14680 (grub_multiboot_real_boot): Likewise.
14681 * loader/i386/xnu.c (grub_xnu_heap_will_be_at): New variable.
14682 (grub_xnu_entry_point): Likewise.
14683 (grub_xnu_arg1): Likewise.
14684 (grub_xnu_stack): Likewise.
14685 (grub_xnu_launch): Removed.
14686 (grub_xnu_boot_resume): New function.
14687 (grub_xnu_boot): Use relocators.
14688 * loader/i386/xnu_helper.S: Removed.
14689 * loader/xnu.c (grub_xnu_heap_start): New variable.
14690 (grub_xnu_heap_size): Likewise.
14691 (grub_xnu_heap_malloc): Use relocators.
14692 * loader/xnu_resume.c (grub_xnu_resume): Use relocators.
14693
29eb90c6
VS
146942009-12-13 Vladimir Serbinenko <phcoder@gmail.com>
14695
14696 * kern/i386/pc/startup.S (multiboot_entry): Setup stack before calling
14697 anything.
14698
31027430
CPE
146992009-12-13 Carles Pina i Estany <carles@pina.cat>
14700
14701 * script/execute.c (grub_script_execute_cmdline): Set grub_errno to
14702 GRUB_ERR_NONE before calling grub_env_set.
14703
dc0c71d9
RM
147042009-12-12 Robert Millan <rmh@aybabtu.com>
14705
14706 * gendistlist.sh (EXTRA_DISTFILES): Add `genvideolist.sh'.
14707 * genmk.rb (video): New variable.
14708 (CLEANFILES, VIDEOFILES): Add #{video}.
14709 (#{video}): New target rule.
14710 * genvideolist.sh: New file.
14711 * Makefile.in (pkglib_DATA): Add video.lst.
14712 (video.lst): New target rule.
14713 * util/grub-mkconfig.in: Initialize ${GRUB_VIDEO_BACKEND} using
14714 `video.lst'.
14715 * util/grub.d/30_os-prober.in: Replace `vbe' with
14716 ${GRUB_VIDEO_BACKEND}.
14717
2a4bfcf0
RM
147182009-12-11 Robert Millan <rmh.grub@aybabtu.com>
14719
14720 * THANKS: Add David Miller.
14721
2a3aa4d5
RM
147222009-12-11 Vladimir Serbinenko <phcoder@gmail.com>
14723
14724 libpciaccess support.
14725
14726 * Makefile.in (LIBPCIACCESS): New variable.
14727 (enable_grub_emu_pci): Likewise.
14728 * conf/any-emu.rmk (grub_emu_SOURCES) [enable_grub_emu_pci]: Add
14729 util/pci.c and commands/lspci.c.
14730 (grub_emu_LDFLAGS) [enable_grub_emu_pci]: Add $(LIBPCIACCESS).
14731 * configure.ac (grub-emu-pci): New option.
14732 * include/grub/i386/pci.h (grub_pci_device_map_range): New function.
14733 (grub_pci_device_unmap_range): Likewise.
14734 * include/grub/pci.h [GRUB_UTIL]: Include grub/pciutils.h.
14735 (grub_pci_device) [!GRUB_UTIL]: New structure. All users updated.
14736 (grub_pci_address_t) [!GRUB_UTIL]: New type.
14737 (grub_pci_device_t) [!GRUB_UTIL]: Likewise.
14738 (grub_pci_get_bus) [!GRUB_UTIL]: New function.
14739 (grub_pci_get_device) [!GRUB_UTIL]: Likewise.
14740 (grub_pci_get_function) [!GRUB_UTIL]: Likewise.
14741 * include/grub/pciutils.h: New file.
14742 * util/pci.c: Likewise.
14743
0ad46fd7 147442009-12-11 Felix Zielcke <fzielcke@z-51.de>
8d0502d9
FZ
14745
14746 * util/misc.c: Don't include <errno.h> twice.
14747
0ad46fd7 147482009-12-10 Felix Zielcke <fzielcke@z-51.de>
0d56ed64
FZ
14749
14750 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Show the disk
14751 name in an error message.
14752 (grub_biosdisk_rw): Likewise.
14753
2e59983c
VS
147542009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
14755
14756 Eliminate NTFS 4Gib barrier.
14757
14758 * fs/ntfs.c (read_attr): Use grub_disk_addr_t and grub_size_t.
14759 (read_run_data): Likewise.
14760 (grub_ntfs_read_run_list): Likewise.
14761 (grub_ntfs_read_block): Likewise.
14762 (grub_ntfs_iterate_dir): Likewise.
14763 (read_mft): Likewise.
14764 (read_data): Likewise.
14765 Use COM_LOG_LEN.
14766 * fs/ntfscomp.c (read_block): Cast ctx->target_vcn & 0xF to unsigned
14767 to avoid 64-bit division
14768 * include/grub/ntfs.h (COM_LOG_LEN): New definition.
14769 (grub_ntfs_rlst): Use grub_disk_addr_t.
14770
71ee178a
VS
147712009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
14772
14773 Eliminate grub-fstest 4Gib barrier.
14774
14775 * util/grub-fstest.c (skip, leng): Use grub_disk_addr_t.
14776 (read_file): Fix error reporting.
14777
2520d4b8
VS
147782009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
14779
14780 Eliminate hexdump 4Gib barrier.
14781
14782 * commands/hexdump.c (grub_cmd_hexdump): Use grub_disk_addr_t.
14783 * lib/arg.c (grub_arg_parse): Use grub_strtoull.
14784
e1f27065
VS
147852009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
14786
14787 * kern/device.c (grub_device_iterate): Ignore errors during first scan.
14788 Fixes amarsh bug.
14789
1a0f7f45
RM
147902009-12-09 Bruce Dubbs <bruce.dubbs@gmail.com>
14791
14792 Remove miscellaneous files in distclean target.
14793
14794 * Makefile.in: Remove docs/{grub.info,version.texi,stamp-vti}
14795
c631d9fb
CW
147962009-12-09 Colin Watson <cjwatson@ubuntu.com>
14797
14798 * util/grub-mkconfig_lib.in: Don't set grub_probe or grub_mkrelpath
14799 if they're already set. This resolves the conflict between my
14800 grub-install change on 2009-10-06 and Felix' change on 2009-11-11,
14801 fixing the --grub-probe option again.
14802 * util/sparc64/ieee1275/grub-install.in: Revert the last piece of my
14803 change on 2009-10-06, so that we now once again source
14804 `${libdir}/grub/grub-mkconfig_lib' after options have been parsed.
14805
7c7b6106
RM
148062009-12-08 Robert Millan <rmh.grub@aybabtu.com>
14807
14808 * conf/common.rmk [sparc64-ieee1275] (grub_mkdevicemap_SOURCES): Use
14809 `util/ieee1275/ofpath.c' and `util/ieee1275/devicemap.c' instead of
14810 `util/devicemap.c'.
14811
e3069ec1
CPE
148122009-12-08 Carles Pina i Estany <carles@pina.cat>
14813
14814 * include/grub/misc.h (grub_printf_): New declaration.
14815 * kern/misc.c (grub_printf_): New definition.
14816 * normal/main.c (grub_normal_reader_init): Use `grub_printf_' and `N_'
14817 instead of `grub_printf' and `_'.
14818 * normal/menu_entry.c (store_completion): Likewise.
14819 (run): Likewise.
14820 (grub_menu_entry_run): Likewise.
14821 * normal/menu_text.c (grub_wait_after_message): Likewise.
14822 (notify_booting): Likewise.
14823 (notify_fallback): Likewise.
14824 (notify_execution_failure): Likewise.
14825
d6ceebf1
CW
148262009-12-07 Colin Watson <cjwatson@ubuntu.com>
14827
14828 * configure.ac: Check for vasprintf.
14829 * util/misc.c (asprintf): Move allocation from here ...
14830 (vasprintf): ... to here. New function.
14831 (xasprintf): New function.
14832 * include/grub/util/misc.h (vasprintf, xasprintf): Add
14833 prototypes.
14834 * util/getroot.c (grub_util_get_grub_dev): Use xasprintf.
14835 * util/grub-mkfont.c (write_font): Likewise.
14836 * util/grub-probe.c (probe): Likewise.
14837 * util/hostdisk.c (make_device_name): Likewise.
14838
de6daa8b
DM
148392009-12-06 David S. Miller <davem@sunset.davemloft.net>
14840
14841 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Recognize
14842 anything even prefixed with 'cdrom' as a cdrom.
14843
0ad46fd7 148442009-12-06 Felix Zielcke <fzielcke@z-51.de>
df91e679
FZ
14845
14846 * util/misc.c (make_system_path_relative_to_its_root): Correctly cope with
14847 mount points.
14848
98d3dc02
CPE
148492009-12-05 Carles Pina i Estany <carles@pina.cat>
14850
14851 * gettext/gettext.c: Include `<grub/list.h>'. Define grub_gettext_msg,
14852 grub_gettext_msg_list.
14853 (grub_gettext_gettranslation_from_position): Return const char *
14854 and not char *.
a2c1332b 14855 (grub_gettext_translate): Add the translated strings into a list,
98d3dc02
CPE
14856 returns from the list if existing there.
14857 (grub_gettext_init_ext): Add \n at the end of grub_dprintf string.
14858 (grub_gettext_delete_list): Delete the list.
14859 (grub_gettext_env_write_lang): Call grub_gettext_delete_list when
14860 lang environment variable is changed.
14861 (GRUB_MOD_FINI): Call grub_gettext_delete_list.
14862
b283f108
VS
148632009-12-05 Vladimir Serbinenko <phcoder@gmail.com>
14864
14865 Rename kernel.mod to kernel.img.
14866
14867 * conf/i386-efi.rmk (pkglib_MODULES): Change kernel.mod to kernel.img.
14868 (kernel_mod_EXPORTS): Rename to ...
14869 (kernel_img_EXPORTS): ... this.
14870 (kernel_mod_SOURCES): Rename to ...
14871 (kernel_img_SOURCES): ... this.
14872 (kernel_mod_HEADERS): Rename to ...
14873 (kernel_img_HEADERS): ... this. All users updated.
14874 (kernel_mod_CFLAGS): Rename to ...
14875 (kernel_img_CFLAGS): ... this.
14876 (kernel_mod_ASFLAGS): Rename to ...
14877 (kernel_img_ASFLAGS): ... this.
14878 (kernel_mod_LDFLAGS): Rename to ...
14879 (kernel_img_LDFLAGS): ... this.
14880 * conf/x86_64-efi.rmk: Likewise.
14881 * util/i386/efi/grub-mkimage.c (read_kernel_module): Rename to ...
14882 (read_kernel_image): ... this. All users updated.
14883 (read_kernel_image): Read "kernel.img" instead of "kernel.mod".
14884
69055f8a
CPE
148852009-12-05 Carles Pina i Estany <carles@pina.cat>
14886
14887 * normal/menu_text.c (grub_color_menu_high): Gettexttize string.
14888 (print_spaces): New function.
14889 (grub_print_ucs4): New function.
14890 (getstringwidth): New function.
14891 (print_message_indented): New function.
14892 (print_message): Gettexttize strings using print_message_indented.
14893 (run_menu): Replaces grub_printf by print_spaces and dynamic terminal
14894 width.
14895 (get_entry_number): Gettextize and uses dynamic terminal width.
a2c1332b 14896 (notify_booting, notify_fallback, notify_execution_failure):
69055f8a
CPE
14897 Gettextize.
14898 * normal/menu_entry.c (store_completion): Cleanup the gettextized
14899 string.
14900 (run): Likewise.
14901 (grub_menu_entry_run): Likewise.
14902 * PO/POTFILES: Add normal/menu_entry.c.
14903
f616f51c
VS
149042009-12-05 Vladimir Serbinenko <phcoder@gmail.com>
14905
14906 * configure.ac (TARGET_ASFLAGS): Add "-D<MACHINE>".
14907
57bbe3be
CPE
149082009-12-05 Carles Pina i Estany <carles@pina.cat>
14909
14910 * util/grub-install.in: Install gettext .mo files.
14911 * util/grub-mkrescue.in (process_input_dir): Copy gettext .mo files.
14912
013d67a1
CPE
149132009-12-05 Carles Pina i Estany <carles@pina.cat>
14914
14915 * gettext/gettext.c (grub_gettext_init_ext): Replace grub_printf with
14916 grub_dprintf.
14917
fb954db0
RM
149182009-12-05 Robert Millan <rmh.grub@aybabtu.com>
14919
14920 * kern/ieee1275/openfw.c (grub_reboot): Disable for i386. The
14921 non-firmware-dependant one in realmode.S takes precedence.
14922
6b8474f8
RM
149232009-12-04 Robert Millan <rmh.grub@aybabtu.com>
14924
14925 * commands/halt.c: Replace misc arch-specific headers with
14926 `<grub/misc.h>'.
14927 * commands/reboot.c: Likewise.
14928 * commands/i386/pc/halt.c: Replace `<grub/machine/init.h>' with
14929 `<grub/misc.h>'.
14930 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Remove `cpu/reboot.h'.
14931 (halt_mod_SOURCES): Move `kern/i386/halt.c' from here ...
14932 (kernel_img_SOURCES): ... to here.
14933
14934 * include/grub/efi/efi.h (grub_reboot, grub_halt): Remove prototypes.
14935 * include/grub/i386/pc/init.h: Likewise.
14936 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
14937 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
14938
14939 * include/grub/misc.h (grub_reboot, grub_halt): New prototypes.
14940
14941 * include/grub/i386/halt.h: Remove.
14942 * include/grub/i386/reboot.h: Likewise.
14943
14944 * kern/i386/halt.c: Remove `<grub/cpu/halt.h>'.
14945
4b2e6ca2
DM
149462009-12-03 David S. Miller <davem@sunset.davemloft.net>
14947
14948 * conf/sparc64-ieee1275.rmk (grub_mkimage_SOURCES,
14949 grub_setup_SOURCES, grub_ofpathname_SOURCES): Add gnulib/progname.c
14950 * util/sparc64/ieee1275/grub-mkimage.c: Include <grub/i18n.h> and
14951 "progname.h"
14952 * util/sparc64/ieee1275/grub-ofpathname.c: Likewise.
14953 * util/sparc64/ieee1275/grub-setup.c: Likewise.
14954 (usage): Add missing comma in printf.
14955
5239348f
RM
149562009-12-02 Robert Millan <rmh.grub@aybabtu.com>
14957
14958 Use the same reboot approach on i386 coreboot and qemu as we do on
14959 BIOS.
14960
14961 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add `cpu/reboot.h'.
14962 (reboot_mod_SOURCES): Remove `kern/i386/reboot.c'.
14963 * kern/i386/reboot.c: Remove.
14964 * include/grub/i386/reboot.h (grub_reboot): Export function.
14965 * kern/i386/pc/startup.S (grub_reboot): Move from here ...
14966 * kern/i386/realmode.S (grub_reboot): ... to here. Jump to
14967 0xf000:0xfff0 instead of 0xffff:0x0000.
14968 [!GRUB_MACHINE_PCBIOS] (prot_to_real): Do not restore interrupts.
14969 * kern/i386/qemu/startup.S: Include `"../realmode.S"'.
14970
ef34cbd4
RM
149712009-11-30 Robert Millan <rmh.grub@aybabtu.com>
14972
14973 Fix $srcdir != $objdir build.
14974
14975 * Makefile.in (po/%.po): Rewrite as ...
14976 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po)): ... this.
14977
dc9837ea
ST
149782009-11-29 Samuel Thibault <samuel.thibault@ens-lyon.org>
14979
14980 Fix GNU/Hurd grub-install crash.
14981 * util/grub-probe.c (probe): Try to access `path' only when it is not
14982 NULL.
14983
2f857f98
VS
149842009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
14985
14986 Correct module naming.
14987
14988 * video/efi_uga.c (GRUB_MOD_INIT(efi_fb)): Renamed from this ...
14989 (GRUB_MOD_INIT(efi_uga)): ... to this
14990 (GRUB_MOD_FINI(efi_fb)): Renamed from this ...
14991 (GRUB_MOD_FINI(efi_uga)): ... to this
14992 * video/efi_gop.c (GRUB_MOD_INIT(efi_fb)): Renamed from this ...
14993 (GRUB_MOD_INIT(efi_gop)): ... to this
14994 (GRUB_MOD_FINI(efi_fb)): Renamed from this ...
14995 (GRUB_MOD_FINI(efi_gop)): ... to this
14996
c5448046
RM
149972009-11-28 Robert Millan <rmh.grub@aybabtu.com>
14998
14999 * util/mkisofs/mkisofs.c (ld_options): Mark all `arg' strings as
15000 translatable.
15001 (usage): Translate `arg' strings using gettext().
15002 Thanks to Jordi Mallach for the suggestion.
15003
c85184ad
VS
150042009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
15005
15006 GOP support. Based on patch from Bean
15007 (http://lists.gnu.org/archive/html/grub-devel/2009-08/msg00384.html)
15008
15009 * video/efi_gop.c: New file.
15010 * include/grub/efi/graphics_output.h: Likewise.
15011 * conf/i386-efi.rmk (pkglib_MODULES): Add `efi_gop.mod'.
15012 (efi_fb_mod_SOURCES, efi_fb_mod_CFLAGS, efi_fb_mod_LDFLAGS): New
15013 variables.
15014 * conf/x86_64-efi.rmk: Likewise.
15015
8a4c48d8
VS
150162009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
15017
15018 Rename efi_fb to efi_uga.
15019
15020 * conf/i386-efi.rmk (pkglib_MODULES): Rename 'efi_fb.mod' to
15021 'efi_uga.mod'.
15022 (efi_fb_mod_SOURCES): Rename this ...
15023 (efi_uga_mod_SOURCES): ... to this.
15024 (efi_fb_mod_CFLAGS): Rename this ...
15025 (efi_uga_mod_CFLAGS): ... to this.
15026 (efi_fb_mod_LDFLAGS): Rename this ...
15027 (efi_uga_mod_LDFLAGS): ... to this.
15028 * conf/x86_64-efi.rmk (pkglib_MODULES): Rename 'efi_fb.mod' to
15029 'efi_uga.mod'.
15030 (efi_fb_mod_SOURCES): Rename this ...
15031 (efi_uga_mod_SOURCES): ... to this.
15032 (efi_fb_mod_CFLAGS): Rename this ...
15033 (efi_uga_mod_CFLAGS): ... to this.
15034 (efi_fb_mod_LDFLAGS): Rename this ...
15035 (efi_uga_mod_LDFLAGS): ... to this.
15036 * video/efi_fb.c: Move this ...
15037 * video/efi_uga.c: ... to this. Change prefix to 'grub_video_uga_'.
15038
fb6c1a7b
RM
150392009-11-27 Robert Millan <rmh.grub@aybabtu.com>
15040
15041 * po/README: New file. Explain our PO file workflow.
15042
3bc7896c
RM
150432009-11-27 Robert Millan <rmh.grub@aybabtu.com>
15044
15045 * po/ChangeLog: Remove. Move relevant entries back to ...
15046 * ChangeLog: ... here.
15047 * po/ca.po: Remove (now handled by TLP).
15048 * po/id.po: Likewise.
15049 * po/zh_CN.po: Likewise.
15050 * Makefile.in (LINGUAS): Initialize in a way that supports
15051 empty set.
15052
9ed4841d
RM
150532009-11-27 Robert Millan <rmh.grub@aybabtu.com>
15054
15055 * Makefile.in (LINGUAS): Rewrite by scanning po/ directory instead of
15056 reliing on po/LINGUAS.
15057 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po)): Rewrite as ...
15058 (po/%.po): ... this.
15059
0ad46fd7 150602009-11-26 Felix Zielcke <fzielcke@z-51.de>
242668a2
FZ
15061
15062 * util/i386/efi/grub-mkimage.c: Include "progname.h".
15063 (main): Use `program_name' instead of nonexistent `progname'.
15064
e30dd392
FZ
150652009-11-26 Felix Zielcke <fzielcke@z-51.de>
15066
15067 * conf/i386-efi.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
15068 * conf/x86_64-efi.rmk (grub_mkimage_SOURCES): Likewise.
15069
7656de4f
RM
150702009-11-26 Robert Millan <rmh.grub@aybabtu.com>
15071
15072 * conf/i386-coreboot.rmk: Cleanup stale filenames from my previous
15073 commit.
15074 * conf/i386-efi.rmk: Likewise.
15075 * conf/i386-ieee1275.rmk: Likewise.
15076 * conf/powerpc-ieee1275.rmk: Likewise.
15077 * conf/sparc64-ieee1275.rmk: Likewise.
15078 * conf/x86_64-efi.rmk: Likewise.
15079
db77c4d4
FZ
150802009-11-26 Felix Zielcke <fzielcke@z-51.de>
15081
15082 * conf/any-emu.rmk (grub_emu_SOURCES): Add `gnulib/progname.c'.
15083
a755bb04
FZ
150842009-11-26 Felix Zielcke <fzielcke@z-51.de>
15085
15086 * conf/any-emu.rmk (grub_mkfont_SOURCES): Add `gnulib/progname.c'.
15087
8a4c07fd
RM
150882009-11-26 Robert Millan <rmh.grub@aybabtu.com>
15089
15090 * conf/common.rmk (sbin_UTILITIES): Add `grub-mkdevicemap'.
15091 (grub_mkdevicemap_SOURCES): New variable.
15092 (grub_probe_SOURCES, grub_fstest_SOURCES, grub_mkfont_SOURCES)
15093 (grub_mkrelpath_SOURCES, grub_editenv_SOURCES)
15094 (grub_pe2elf_SOURCES): Add `gnulib/progname.c'.
15095 * conf/i386-coreboot.rmk (sbin_UTILITIES): Remove `grub-mkdevicemap'.
15096 (grub_mkdevicemap_SOURCES): Remove.
15097 * conf/i386-efi.rmk: Likewise.
15098 * conf/i386-ieee1275.rmk: Likewise.
15099 * conf/i386-pc.rmk: Likewise.
15100 * conf/powerpc-ieee1275.rmk: Likewise.
15101 * conf/sparc64-ieee1275.rmk: Likewise.
15102 * conf/x86_64-efi.rmk: Likewise.
15103 * util/elf/grub-mkimage.c: Include `<grub/i18n.h>' and `"progname.h"'.
15104 (usage): Fix strings to use `program_name'.
15105 (main): Initialize gettext.
15106 * util/grub-editenv.c: Likewise.
15107 * util/grub-emu.c: Likewise.
15108 * util/grub-fstest.c: Likewise.
15109 * util/grub-mkdevicemap.c: Likewise.
15110 * util/grub-mkfont.c: Likewise.
15111 * util/grub-mkrelpath.c: Likewise.
15112 * util/grub-pe2elf.c: Likewise.
15113 * util/grub-probe.c: Likewise.
15114 * util/sparc64/ieee1275/grub-mkimage.c: Likewise.
15115 * util/sparc64/ieee1275/grub-ofpathname.c: Likewise.
15116 * util/sparc64/ieee1275/grub-setup.c: Likewise.
15117
15118 * util/misc.c: Include `"progname.h"'.
15119 (progname): Remove variable.
15120 (grub_util_warn, grub_util_info, grub_util_error): Use `program_name'.
15121
6f61ed55
FZ
151222009-11-25 Felix Zielcke <fzielcke@z-51.de>
15123
15124 * util/grub.d/10_linux.in (linux_entry): Quote the arguments to
15125 printf and print a newline after the menuentry header line.
15126 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
15127
f022876b
FZ
151282009-11-25 Felix Zielcke <fzielcke@z-51.de>
15129
15130 autoconf >= 2.60 support $(localedir).
15131
15132 * INSTALL: Note that autoconf 2.60 is required.
15133 * configure.ac (AC_PREREQ): Bump to 2.60.
15134 * util/grub.d/10_kfreebsd.in (TEXTDOMAINDIR): Set to lowercased @localedir@.
15135 * util/grub.d/10_linux.in (TEXTDOMAINDIR): Likewise.
15136
6717926e
YB
151372009-11-25 Yves Blusseau <yves.blusseau@zetam.org>
15138
15139 * configure.ac: move the call to AM_GNU_GETTEXT to avoid warnings when
15140 aclocal is run.
15141
08806a54
RM
151422009-11-25 Robert Millan <rmh.grub@aybabtu.com>
15143
15144 * normal/main.c (grub_normal_read_line): Fix off-by-one
15145 buffer overflow.
15146
13b33fba
RM
151472009-11-25 Robert Millan <rmh.grub@aybabtu.com>
15148
15149 * normal/main.c (grub_normal_execute): Replace "parser.sh" with
15150 "parser.grub" in grub_command_execute() call.
15151
4a8572e9
CPE
151522009-11-24 Carles Pina i Estany <carles@pina.cat>
15153
15154 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add i18n.h.
15155 * conf/i386-efi.rmk: Likewise.
15156 * conf/i386-ieee1275.rmk: Likewise.
15157 * conf/i386-pc.rmk: Likewise.
15158 * conf/powerpc-ieee1275.rmk: Likewise.
15159 * conf/sparc64-ieee1275.rmk: Likewise.
15160 * conf/x86_64-efi.rmk: Likewise.
15161 * gettext/gettex.c: Include <grub/i18n.h>.
15162 * include/grub/misc.h (grub_gettext_dummy, grub_gettext): Move from
15163 here ...
15164 * include/grub/i18n.h: ... to here
15165 * include/grub/i18n.h: ... to here.
15166 * kern/misc.c: Include <grub/i18n.h>
a2c1332b 15167 (grub_gettext_dummy): Move above user.
4a8572e9 15168
bee48093
FZ
151692009-11-24 Felix Zielcke <fzielcke@z-51.de>
15170
15171 * util/Makefile.in (install-local): Convert a `for' into a normal
15172 shell expansion.
15173
a031e91c
RM
151742009-11-24 Robert Millan <rmh.grub@aybabtu.com>
15175
15176 * autogen.sh: Add automake call.
15177 * config.guess: Remove.
15178 * config.sub: Likewise.
15179 * install-sh: Likewise.
15180
26bec39d
FZ
151812009-11-24 Felix Zielcke <fzielcke@z-51.de>
15182
15183 * util/Makefile.in (install-local): Fix the use of $lang shell variable.
15184
8e2532fd
FZ
151852009-11-24 Felix Zielcke <fzielcke@z-51.de>
15186
15187 * util/Makefile.in (install-local): Convert a make `$(foreach)'
15188 function to a normal shell `for'.
15189
fefa1b7d
FZ
151902009-11-24 Felix Zielcke <fzielcke@z-51.de>
15191
15192 * conf/i386-coreboot.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
15193
4501250b
FZ
151942009-11-24 Felix Zielcke <fzielcke@z-51.de>
15195
15196 * util/grub-mkrelpath.c: New file.
15197 * conf/common.rmk (bin_UTILITIES): Add grub-mkrelpath.
15198 (grub_mkrelpath_SOURCES): New variable.
15199 * include/grub/util/misc.h: New function prototype.
15200 * util/misc.c (make_system_path_relative_to_its_root): New function.
15201
15202 * util/grub-mkconfig_lib.in (bindir): New variable.
15203 (grub_mkrelpath): Likewise.
15204 (make_system_path_relative_to_its_root): Use grub-mkrelpath.
15205
15206 * util/probe.c (probe): Make the file path relative to its root.
15207 Change a info message to use the GRUB path. Enable again the
15208 check if we can read the file with GRUB facilities.
15209
15210 * util/i386/pc/grub-setup.c (setup): Make core.img path relative
15211 to its root.
15212
11d9778b
FZ
152132009-11-24 Felix Zielcke <fzielcke@z-51.de>
15214
15215 * Makefile.in: Don't include GRUB_CONTRIB makefiles with emu
15216 platform.
15217
4465287d
FZ
152182009-11-24 Felix Zielcke <fzielcke@z-51.de>
15219
15220 * util/getroot.c (grub_util_get_dev_abstraction): Properly use
15221 strncmp().
15222
62b47f22
FZ
152232009-11-24 Felix Zielcke <fzielcke@z-51.de>
15224
15225 * util/getroot.c (grub_util_is_dmraid): New function.
15226 (grub_util_get_dev_abstraction): Treat dmraid and multipath
15227 devices as normal ones, not as LVM.
15228
1eafb9b9 152292009-11-23 Carles Pina i Estany <carles@pina.cat>
c3ea6bd4
CPE
15230
15231 * conf/common.rmk: Add grub-gettext_lib target and updates
15232 lib_DATA and CLEANFILES. Adds gettext.mod SOURCES, CFLAGS,
15233 LDFLAGS.
15234 * gettext/gettext.c: New file. (Reads mo files).
15235 * include/grub/file.h (grub_file_pread): New prototype.
15236 * include/grub/i18n.h (_): New prototype.
15237 * include/grub/misc.h (grub_gettext_dummy, grub_gettext): New
15238 prototypes.
15239 * kern/misc.c (grub_gettext_dummy): New function.
15240 * normal/menu_text.c: Include <grub/i18n.h>.
15241 * normal/menu_text.c (print_timeout): Gettexttize string.
15242 * normal/menu_text.c (print_message): Gettexttize string.
3bc7896c
RM
15243 * po/POTFILES: Add `normal/menu_text.c'.
15244 * po/ca.po: Add new translations.
c3ea6bd4
CPE
15245 * util/grub.d/00_header.in: Define locale_dir and lang. insmod
15246 gettext module and defines locale_dir and lang in grub.cfg.
15247 * NEWS: Add gettext support.
15248
0fdb2568
RM
152492009-11-23 Robert Millan <rmh.grub@aybabtu.com>
15250
15251 * util/hostdisk.c: Include `<grub/i18n.h>'.
15252 (find_grub_drive): Use ARRAY_SIZE for map size calculation.
15253 (make_device_name): Rewrite using asprintf.
15254 (convert_system_partition_to_system_disk): Replace 0 with NULL.
15255 (find_system_device): If a device is not found, generate one just
15256 by reusing the OS path name.
15257 (read_device_map): Make it permissible for device.map not to exist.
15258
f515aa62
RM
152592009-11-23 Robert Millan <rmh.grub@aybabtu.com>
15260
15261 * script/sh/execute.c: Move from here ...
15262 * script/execute.c: ... to here. Update all users.
15263 * script/sh/function.c: Move from here ...
15264 * script/function.c: ... to here. Update all users.
15265 * script/sh/lexer.c: Move from here ...
15266 * script/lexer.c: ... to here. Update all users.
15267 * script/sh/main.c: Move from here ...
15268 * script/main.c: ... to here. Update all users.
15269 * script/sh/parser.y: Move from here ...
15270 * script/parser.y: ... to here. Update all users.
15271 * script/sh/script.c: Move from here ...
15272 * script/script.c: ... to here. Update all users.
15273
f84b481b
RM
152742009-11-23 Robert Millan <rmh.grub@aybabtu.com>
15275
15276 * configure.ac: Detect all `emu' platforms. Define
15277 GRUB_MACHINE_* macros in TARGET_CFLAGS. Remove
15278 --enable-grub-emu logic. Disable include/grub/machine
15279 symlink on `emu' platforms.
15280
15281 * genkernsyms.sh.in: Use @TARGET_CFLAGS@ during symbol generation.
15282 * gensymlist.sh.in: Likewise.
15283
15284 * include/grub/i386/coreboot/machine.h: Remove file.
15285 * include/grub/i386/efi/machine.h: Likewise.
15286 * include/grub/i386/ieee1275/machine.h: Likewise.
15287 * include/grub/i386/pc/machine.h: Likewise.
15288 * include/grub/i386/qemu/machine.h: Likewise.
15289 * include/grub/powerpc/ieee1275/machine.h: Likewise.
15290 * include/grub/sparc64/ieee1275/machine.h: Likewise.
15291 * include/grub/x86_64/efi/machine.h: Likewise.
15292
15293 * commands/acpi.c: Remove `<grub/machine/machine.h>'.
15294 * commands/halt.c: Likewise.
15295 * commands/reboot.c: Likewise.
15296 * include/grub/autoefi.h: Likewise.
15297 * include/grub/i386/at_keyboard.h: Likewise.
15298 * include/grub/i386/kernel.h: Likewise.
15299 * include/grub/i386/loader.h: Likewise.
15300 * include/grub/i386/pc/memory.h: Likewise.
15301 * kern/dl.c: Likewise.
15302 * kern/i386/coreboot/init.c: Likewise.
15303 * loader/i386/bsd.c: Likewise.
15304 * loader/i386/linux.c: Likewise.
15305 * loader/multiboot_loader.c: Likewise.
15306 * term/i386/pc/serial.c: Likewise.
15307 * term/usb_keyboard.c: Likewise.
15308
15309 * include/grub/time.h [!GRUB_MACHINE_EMU]: Remove
15310 `<grub/machine/machine.h>'
15311 [!GRUB_MACHINE_EMU] (GRUB_TICKS_PER_SECOND): New macro.
15312 * util/misc.c: Remove `<grub/machine/machine.h>' and
15313 `<grub/machine/time.h>'.
15314
15315 * Makefile.in (enable_grub_emu): Remove variable.
15316 Include $(srcdir)/conf/any-emu.mk for the `emu' platform.
15317
15318 * conf/any-emu.rmk: New file.
15319 * conf/common.rmk (grub_emu_init.lst, grub_emu_init.h)
15320 (grub_emu_init.c): Move from here ...
15321 * conf/any-emu.rmk: ... to here.
15322
15323 * conf/i386-coreboot.rmk (sbin_UTILITIES): Remove `grub-emu'.
15324 (grub_emu_SOURCES, grub_emu_LDFLAGS): Move from here ...
15325 * conf/any-emu.rmk: ... to here.
15326
4efeab03
RM
153272009-11-23 Robert Millan <rmh.grub@aybabtu.com>
15328
15329 * include/grub/parser.h (grub_parser_register): Document need
15330 of `name' parameter.
15331 * normal/main.c (grub_normal_read_line): Simplify prompt string.
15332 * script/sh/main.c (grub_sh_parser, GRUB_MOD_INIT(sh)): Rename
15333 "sh" to "grub".
15334
ea1dd8bf
RM
153352009-11-23 Robert Millan <rmh.grub@aybabtu.com>
15336
15337 * Makefile.in ($(srcdir)/po/$(PACKAGE).pot): Pass --keyword=N_ to
15338 `$(XGETTEXT)'.
15339 * include/grub/i18n.h (N_): New macro.
15340 * util/mkisofs/mkisofs.h: Likewise.
15341 * util/mkisofs/mkisofs.c (ld_options): Wrap all translatable strings
15342 around N_().
15343 (usage): Use gettext() to translate help strings when printing them.
15344
0c140626
RM
153452009-11-23 Robert Millan <rmh.grub@aybabtu.com>
15346
15347 Based on patch from Bean
15348 (http://lists.gnu.org/archive/html/grub-devel/2009-08/msg00384.html)
15349
15350 * video/efi_fb.c: New file.
15351 * conf/i386-efi.rmk (pkglib_MODULES): Add `efi_fb.mod'.
15352 (efi_fb_mod_SOURCES, efi_fb_mod_CFLAGS, efi_fb_mod_LDFLAGS): New
15353 variables.
15354 * conf/x86_64-efi.rmk: Likewise.
15355
87d58298
RM
153562009-11-22 Robert Millan <rmh.grub@aybabtu.com>
15357
15358 * util/i386/pc/grub-mkimage.c: Ungettextize grub_util_info() strings.
15359 * util/i386/pc/grub-setup.c: Likewise.
15360
994cc3a3
ST
153612009-11-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
15362
15363 * util/getroot.c [__GNU__]: Include <hurd.h>, <hurd/lookup.h>, and
15364 <hurd/fs.h>
15365 [__GNU__] (grub_guess_root_device): Call file_name_lookup and
15366 file_get_storage_info to implement grub_guess_root_device.
15367
26a61d6a
FZ
153682009-11-21 Felix Zielcke <fzielcke@z-51.de>
15369
15370 * Makefile.in (target): Use make's builtin $(shell) function
15371 instead of calling directly $(SHELL) to create the locale directories,
15372 inside the $(foreach) function.
15373
74ff1dd5
FZ
153742009-11-21 Felix Zielcke <fzielcke@z-51.de>
15375
15376 * util/grub-mkrescue.in: Print an error and usage if output option
15377 has not been given.
15378
0b787d0e
FZ
153792009-11-21 Felix Zielcke <fzielcke@z-51.de>
15380
15381 Patch from Loïc Minier <loic.minier@ubuntu.com>.
15382 * util/grub.d/30_os-prober.in: Cope with Linux entries where
15383 root and /boot are on different devices.
15384
1164b270
RM
153852009-11-21 Robert Millan <rmh.grub@aybabtu.com>
15386
15387 Fix build for srcdir != objdir.
15388
15389 * Makefile.in (po/$(PACKAGE).pot): Rename to ...
15390 ($(srcdir)/po/$(PACKAGE).pot): ... this. Run $(XGETTEXT) from
15391 $(srcdir).
15392 ($(foreach lang, $(LINGUAS), po/$(lang).po)): Rename to ...
15393 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po): ... this. Use $^
15394 reference for input.
15395
13774a2f
RM
153962009-11-21 Robert Millan <rmh.grub@aybabtu.com>
15397
15398 * util/grub-mkrescue.in: Use source directory direcly (without copiing
15399 or hardlinking it). Remove -J option, Joliet is not compatible with
15400 multiple source directories.
15401
efda854e
RM
154022009-11-21 Carles Pina i Estany <carles@pina.cat>
154032009-11-21 Robert Millan <rmh.grub@aybabtu.com>
15404
15405 * util/grub-mkrescue.in: Recognize `--override-directory' option.
15406 (process_input_dir): New function. Process an arbitrary input
15407 directory.
15408 Misc adjustments to support both "override mode" and system-wide mode.
15409
6c09890c
FZ
154102009-11-20 Felix Zielcke <fzielcke@z-51.de>
15411
15412 * configure.ac (UNIFONT_BDF): Rename to ...
15413 (FONT_SOURCE): ... this. Update all users.
15414
a797824f
FZ
154152009-11-20 Felix Zielcke <fzielcke@z-51.de>
15416
15417 * configure.ac: Add `/usr/share/fonts/X11/misc/unifont.pcf.gz'
15418 to the list of unifont files to look for.
15419
cd4f42b0
RM
154202009-11-19 Robert Millan <rmh.grub@aybabtu.com>
15421
15422 Patch from Joe Auricchio <jauricchio@gmail.com>
15423 * commands/minicmd.c (grub_mini_cmd_clear): New function.
15424 (GRUB_MOD_INIT(minicmd)): Register grub_mini_cmd_clear().
15425 (GRUB_MOD_FINI(minicmd)): Unregister grub_mini_cmd_clear().
15426
393c783d
FZ
154272009-11-19 Felix Zielcke <fzielcke@z-51.de>
15428
15429 * Makefile.in (install-local): Add a missing backslash.
15430
b2f1e327
FZ
154312009-11-19 Felix Zielcke <fzielcke@z-51.de>
15432
15433 * include/grub/x86_64/io.h: New file.
15434
f577f7a0
RM
154352009-11-19 Robert Millan <rmh.grub@aybabtu.com>
15436
15437 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `gnulib/progname.c'.
15438 * util/i386/pc/grub-setup.c: Include `<grub/i18n.h>'.
15439 Include `"progname.h"'.
15440 (main): Initialize gettext.
15441 * util/i386/pc/grub-setup.c: Gettexttize.
15442 * util/i386/pc/grub-mkimage.c: Likewise.
15443
15444 * Makefile.in (po/*.po): Redefine as ...
15445 ($(foreach lang, $(LINGUAS), po/$(lang).po)): ... this.
15446
3bc7896c
RM
15447 * po/POTFILES: Add `util/i386/pc/grub-setup.c'.
15448
c37943b6
RM
154492009-11-19 Robert Millan <rmh.grub@aybabtu.com>
15450
15451 * conf/common.rmk (grub_mkisofs_SOURCES): Add `gnulib/progname.c'.
15452 * util/mkisofs/mkisofs.c: Include `"progname.h"'.
15453 (program_name): Remove.
15454 (main): Initialize gettext support.
6323f705
RM
15455 * util/mkisofs/mkisofs.h: Include `<locale.h>'.
15456 Include `<libintl.h>'.
15457 (_): New macro.
c37943b6
RM
15458
15459 * util/mkisofs/eltorito.c: Gettexttize.
15460 * util/mkisofs/joliet.c: Likewise.
15461 * util/mkisofs/mkisofs.c: Likewise.
c37943b6
RM
15462 * util/mkisofs/multi.c: Likewise.
15463 * util/mkisofs/rock.c: Likewise.
15464 * util/mkisofs/tree.c: Likewise.
15465 * util/mkisofs/write.c: Likewise.
15466
3bc7896c
RM
15467 * po/POTFILES: Update with new files.
15468
5ce77c6e
RM
154692009-11-18 Robert Millan <rmh.grub@aybabtu.com>
15470
15471 * util/mkisofs/eltorito.c: Fix minor mistake in license text.
15472 * util/mkisofs/iso9660.h: Likewise.
15473 * util/mkisofs/joliet.c: Likewise.
15474 * util/mkisofs/mkisofs.c: Likewise.
15475 * util/mkisofs/mkisofs.h: Likewise.
15476 * util/mkisofs/rock.c: Likewise.
15477 * util/mkisofs/tree.c: Likewise.
15478 * util/mkisofs/write.c: Likewise.
15479
15480 * util/mkisofs/eltorito.c (rcsid): Remove.
15481 * util/mkisofs/hash.c: Likewise.
15482 * util/mkisofs/joliet.c: Likewise.
15483 * util/mkisofs/name.c: Likewise.
15484 * util/mkisofs/rock.c: Likewise.
15485 * util/mkisofs/tree.c: Likewise.
15486 * util/mkisofs/write.c: Likewise.
15487
1dabbc77
RM
154882009-11-18 Robert Millan <rmh.grub@aybabtu.com>
15489
15490 * util/mkisofs/match.c: Rewrite from scratch, using a linked list
15491 instead of static allocation.
15492 * util/mkisofs/match.h: Likewise.
15493
633877cb
RM
154942009-11-18 Robert Millan <rmh.grub@aybabtu.com>
15495
3bc7896c
RM
15496 * po/POTFILES-shell: New file. List `util/grub.d/10_kfreebsd.in'
15497 and `util/grub.d/10_linux.in'.
633877cb
RM
15498 * Makefile.in (po/$(PACKAGE).pot): Process `po/POTFILES-shell' for
15499 translatable Shell files.
15500
af1c0c85
RM
155012009-11-18 Robert Millan <rmh.grub@aybabtu.com>
15502
15503 * Makefile.in ($(srcdir)/aclocal.m4): New target.
15504
769ae37b
RM
155052009-11-17 Robert Millan <rmh.grub@aybabtu.com>
15506
15507 * INSTALL: Document Automake is needed for bootstrap.
3bc7896c 15508 * po/ca.po: Fix PO-Revision-Date and Language-Team fields.
769ae37b
RM
15509 * util/grub.d/10_kfreebsd.in (bindir): New variable.
15510 Add gettext initialization.
15511 (kfreebsd_entry): Make menuentry output translatable.
15512
155132009-11-17 Robert Millan <rmh.grub@aybabtu.com>
15514
15515 * Makefile.in (XGETTEXT, MSGMERGE, MSGFMT): New variables.
15516 (po/$(PACKAGE).pot): Replace `xgettext' with `$(XGETTEXT)'.
15517 (po/*.po): Replace `msgmerge' with `$(MSGMERGE)'.
15518 (po/%.mo): Replace `msgfmt' with `$(MSGFMT)'.
15519 (LINGUAS): Auto-generate using `po/LINGUAS'.
3bc7896c 15520 * po/LINGUAS: New file.
769ae37b
RM
15521
155222009-11-17 Robert Millan <rmh.grub@aybabtu.com>
15523
15524 * configure.ac: Call AM_GNU_GETTEXT() (defines localedir, among
15525 other things).
15526 * Makefile.in (CPPFLAGS): Add `-DLOCALEDIR=\"$(localedir)\"'.
15527 * util/i386/pc/grub-mkimage.c (main): Issue setlocale() and
15528 bindtextdomain() calls for gettext initialization.
15529
155302009-11-17 Robert Millan <rmh.grub@aybabtu.com>
15531
15532 * gnulib/progname.c: New file (imported from Gnulib).
15533 * gnulib/progname.h: Likewise.
15534 * conf/i386-pc.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
15535 * util/i386/pc/grub-mkimage.c: Include `"progname.h"'.
15536 (usage): Replace `progname' with `program_name'.
15537 (main): Use set_program_name() for program name initialization.
15538
155392009-11-17 Robert Millan <rmh.grub@aybabtu.com>
15540
15541 * conf/common.rmk (grub_mkisofs_CFLAGS): Move `-I$(srcdir)/gnulib'
15542 from here ...
15543 * Makefile.in (CPPFLAGS): ... to here.
15544
155452009-11-16 Robert Millan <rmh.grub@aybabtu.com>
15546
15547 * aclocal.m4: Move from here ...
15548 * acinclude.m4: ... to here.
15549 * autogen.sh: Add call to `aclocal'.
15550 * configure.ac: Add AM_INIT_AUTOMAKE() after AC_INIT() call.
15551
155522009-11-16 Robert Millan <rmh.grub@aybabtu.com>
15553
15554 * Makefile.in (CLEANFILES): Add `po/*.mo'.
15555 (LINGUAS): New variable.
15556 (all-local): Add `$(foreach lang, $(LINGUAS), po/$(lang).mo)'.
15557 (install-local): Install MO files.
15558 (po/$(PACKAGE).pot, po/*.po, po/%.mo): New rules.
15559 * include/grub/i18n.h: New file.
3bc7896c
RM
15560 * po/POTFILES: New file.
15561 * po/ca.po: New file.
769ae37b
RM
15562 * util/grub.d/10_linux.in (bindir): New variable.
15563 Add gettext initialization.
15564 (linux_entry): Make menuentry output translatable.
15565 * util/i386/pc/grub-mkimage.c: Include `<grub/i18n.h>'.
15566 (usage): Make --help output translatable.
15567 (main): Initialize gettext.
15568
02c0a6ad
RM
155692009-11-17 Robert Millan <rmh.grub@aybabtu.com>
15570
15571 * import_gcry.py: New file (written by Vladimir with minor
15572 adjustments).
15573 * autogen.sh: Use import_gcry.py to auto-generate GRUB-ified
15574 ciphers.
15575 * INSTALL: Document that Python is required for bootstrap.
15576
155772009-11-17 Robert Millan <rmh.grub@aybabtu.com>
15578
15579 Import ciphers from libgcrypt 1.4.4.
15580
15581 * lib/libgcrypt/cipher/ChangeLog
15582 * lib/libgcrypt/cipher/ac.c
15583 * lib/libgcrypt/cipher/arcfour.c
15584 * lib/libgcrypt/cipher/bithelp.h
15585 * lib/libgcrypt/cipher/blowfish.c
15586 * lib/libgcrypt/cipher/camellia-glue.c
15587 * lib/libgcrypt/cipher/camellia.c
15588 * lib/libgcrypt/cipher/camellia.h
15589 * lib/libgcrypt/cipher/cast5.c
15590 * lib/libgcrypt/cipher/cipher.c
15591 * lib/libgcrypt/cipher/crc.c
15592 * lib/libgcrypt/cipher/des.c
15593 * lib/libgcrypt/cipher/dsa.c
15594 * lib/libgcrypt/cipher/ecc.c
15595 * lib/libgcrypt/cipher/elgamal.c
15596 * lib/libgcrypt/cipher/hash-common.c
15597 * lib/libgcrypt/cipher/hash-common.h
15598 * lib/libgcrypt/cipher/hmac-tests.c
15599 * lib/libgcrypt/cipher/md.c
15600 * lib/libgcrypt/cipher/md4.c
15601 * lib/libgcrypt/cipher/md5.c
15602 * lib/libgcrypt/cipher/primegen.c
15603 * lib/libgcrypt/cipher/pubkey.c
15604 * lib/libgcrypt/cipher/rfc2268.c
15605 * lib/libgcrypt/cipher/rijndael-tables.h
15606 * lib/libgcrypt/cipher/rijndael.c
15607 * lib/libgcrypt/cipher/rmd.h
15608 * lib/libgcrypt/cipher/rmd160.c
15609 * lib/libgcrypt/cipher/rsa.c
15610 * lib/libgcrypt/cipher/seed.c
15611 * lib/libgcrypt/cipher/serpent.c
15612 * lib/libgcrypt/cipher/sha1.c
15613 * lib/libgcrypt/cipher/sha256.c
15614 * lib/libgcrypt/cipher/sha512.c
15615 * lib/libgcrypt/cipher/tiger.c
15616 * lib/libgcrypt/cipher/twofish.c
15617 * lib/libgcrypt/cipher/whirlpool.c
15618
af2f93ac
RM
156192009-11-16 Robert Millan <rmh.grub@aybabtu.com>
15620
15621 Fix build for systems without error().
15622
15623 * gnulib/error.c: New file (imported from Gnulib).
15624 * gnulib/error.h: Likewise.
15625 * conf/common.rmk (grub_mkisofs_SOURCES): Add `gnulib/error.c'.
15626 * util/mkisofs/mkisofs.c (program_name): Remove `static' qualifier
15627 (this variable is now used by error()).
15628
73fb3dd5
FZ
156292009-11-16 Felix Zielcke <fzielcke@z-51.de>
15630
814f5e96
FZ
15631 * util/mkisofs/name.c (iso9660_file_length): Use isascii macro
15632 instead of relying that char is signed.
73fb3dd5 15633
a691ca33
VS
156342009-11-16 Vladimir Serbinenko <phcoder@gmail.com>
15635
15636 * fs/i386/pc/pxe.c (grub_pxefs_open): Correctly handle PXE choosing
15637 blocksize different from specified.
15638 (grub_pxefs_read): Likewise.
15639
2af8f0f4
FZ
156402009-11-16 Felix Zielcke <fzielcke@z-51.de>
15641
15642 Enable ata.mod on x86_64-efi, i386-efi and i386-ieee1275.
15643
15644 * disk/ata.c (grub_ata_dumpinfo): Add a cast.
15645 (grub_ata_readwrite): Likewise. Update 2 format strings.
15646 (grub_atapi_read): Likewise.
15647
15648 * conf/i386-coreboot.rmk (pkglib_MODULES): Move `ata.mod' from here ...
15649 * conf/i386.rmk (pkglib_MODULES): ... to here ...
15650 * conf/x86_64-efi.rmk (pkglib_MODULES): ... and here.
15651 * conf/i386-coreboot.rmk (ata_mod_SOURCES, ata_mod_CFLAGS)
15652 (ata_mod_LDFLAGS): Move from here ...
15653 * conf/i386.rmk: ... to here ...
15654 * conf/x86_64-efi.rmk: ... and here.
15655 * conf/i386-pc.rmk (pkglib_MODULES): Remove `ata.mod'
15656 (ata_mod_SOURCES, ata_mod_CFLAGS, ata_mod_LDFLAGS): Remove.
15657
83bdecaf
RM
156582009-11-16 Robert Millan <rmh.grub@aybabtu.com>
15659
15660 Relicense multiboot.h, with RMS' blessing.
15661
15662 * include/multiboot.h: Change to X11 license.
15663
fd6fd3d7
RM
156642009-11-15 Robert Millan <rmh.grub@aybabtu.com>
15665
15666 Support --version in grub-mkisofs.
15667
15668 * util/mkisofs/mkisofs.c (rcsid): Remove variable.
15669 (OPTION_VERSION): New macro.
15670 (ld_options): Recognize --version.
15671 (usage): Move `program_name' from here ...
15672 (program_name): ... to here. Add `static' qualifier.
15673 (main): Recognize `OPTION_VERSION'.
15674
16a88c49
FZ
156752009-11-15 Felix Zielcke <fzielcke@z-51.de>
15676
15677 * Makefile.in (TARGET_CPPFLAGS): Replace `-isystem=$(srcdir)/include'
15678 with `-nostdinc -isystem $(shell $(TARGET_CC) -print-file-name=include)'.
15679
a4158476
RM
156802009-11-14 Robert Millan <rmh.grub@aybabtu.com>
15681
15682 Fix help2man generation for mkisofs.
15683
15684 * util/mkisofs/mkisofs.c (ld_options): Recognize --help.
15685 (usage): Send output to stdout (rather than stderr).
15686
fc2208b0
RM
156872009-11-14 Robert Millan <rmh.grub@aybabtu.com>
15688
15689 * conf/i386-coreboot.rmk (grub_mkrescue_SOURCES): Replace
15690 `util/i386/coreboot/grub-mkrescue.in' with `util/grub-mkrescue.in'.
15691 * conf/i386-pc.rmk (grub_mkrescue_SOURCES): Replace
15692 `util/i386/pc/grub-mkrescue.in' with `util/grub-mkrescue.in'.
15693 (bin_SCRIPTS): Add `grub-mkfloppy'.
15694 (grub_mkfloppy_SOURCES): New variable.
15695
15696 * util/grub-mkrescue.in: New file.
15697 * util/i386/pc/grub-mkfloppy.in: New file.
15698
15699 * util/i386/coreboot/grub-mkrescue.in: Remove.
15700 * util/i386/pc/grub-mkrescue.in: Remove.
15701
8d0edf4a
RM
157022009-11-13 Robert Millan <rmh.grub@aybabtu.com>
15703
15704 * include/grub/multiboot.h (struct grub_multiboot_header): Move
15705 from here ...
15706 * include/multiboot.h (struct multiboot_header): ... to here. Update
15707 all users.
15708 * include/grub/multiboot.h (struct grub_multiboot_info): Move
15709 from here ...
15710 * include/multiboot.h (struct multiboot_info): ... to here. Update
15711 all users.
15712 * include/grub/multiboot.h (struct grub_multiboot_mmap_entry): Move
15713 from here ...
15714 * include/multiboot.h (struct multiboot_mmap_entry): ... to here.
15715 Update all users.
15716 * include/grub/multiboot.h (struct grub_mod_list): Move
15717 from here ...
15718 * include/multiboot.h (struct multiboot_mod_list): ... to here.
15719 Update all users.
15720
a73f5969
RM
157212009-11-13 Robert Millan <rmh.grub@aybabtu.com>
15722
15723 * include/multiboot2.h (multiboot_word): Rename from this ...
15724 (multiboot2_word): ... to this. Update all users.
15725 (multiboot_header): Rename from this ...
15726 (multiboot2_header): ... to this. Update all users.
15727 (multiboot_tag_header): Rename from this ...
15728 (multiboot2_tag_header): ... to this. Update all users.
15729 (multiboot_tag_start): Rename from this ...
15730 (multiboot2_tag_start): ... to this. Update all users.
15731 (multiboot_tag_name): Rename from this ...
15732 (multiboot2_tag_name): ... to this. Update all users.
15733 (multiboot_tag_module): Rename from this ...
15734 (multiboot2_tag_module): ... to this. Update all users.
15735 (multiboot_tag_memory): Rename from this ...
15736 (multiboot2_tag_memory): ... to this. Update all users.
15737 (multiboot_tag_unused): Rename from this ...
15738 (multiboot2_tag_unused): ... to this. Update all users.
15739 (multiboot_tag_end): Rename from this ...
15740 (multiboot2_tag_end): ... to this. Update all users.
15741
1c8927f0
RM
157422009-11-13 Robert Millan <rmh.grub@aybabtu.com>
15743
15744 Disable Multiboot2 in i386-ieee1275. It didn't actually work, and on
15745 this platform we should support Multiboot1 first.
15746
15747 * conf/i386-ieee1275.rmk (pkglib_MODULES): Remove `multiboot.mod'.
15748 (multiboot_mod_SOURCES, multiboot_mod_CFLAGS)
15749 (multiboot_mod_LDFLAGS, multiboot_mod_ASFLAGS): Remove.
15750
6e1e0d89
RM
157512009-11-12 Robert Millan <rmh.grub@aybabtu.com>
15752
15753 * util/mkisofs/eltorito.c (init_boot_catalog): Handle return code
15754 of write calls (converting them to fwrite() if they aren't already).
15755 (get_torito_desc): Likewise.
15756 * util/mkisofs/rock.c (generate_rock_ridge_attributes): Likewise.
15757
7f2b34d8
RM
157582009-11-12 Robert Millan <rmh.grub@aybabtu.com>
15759
15760 * util/i386/pc/grub-install.in: Move from here ...
15761 * util/grub-install.in: ... to here. Update all users.
15762
c0ef3311
CW
157632009-11-11 Colin Watson <cjwatson@ubuntu.com>
15764
15765 * util/powerpc/ieee1275/grub-mkrescue.in: Fix --version output.
15766
e1f240ff
RM
157672009-11-11 Robert Millan <rmh.grub@aybabtu.com>
15768
15769 Support for El Torito without floppy emulation.
15770
15771 * util/mkisofs/eltorito.c: Include `<errno.h>'.
15772 (init_boot_catalog): Improve error handling.
15773 (get_torito_desc): Don't use floppy emulation unless requested by
15774 user. Patch boot information table when requested via
15775 `-boot-info-table'.
15776 * util/mkisofs/iso9660.h (struct eltorito_boot_info): New struct.
15777 * util/mkisofs/mkisofs.c (use_eltorito_emul_floppy)
15778 (use_boot_info_table): New variables.
15779 (OPTION_BOOT_INFO_TABLE, OPTION_NO_EMUL_BOOT)
15780 (OPTION_ELTORITO_EMUL_FLOPPY): New macros.
15781 (ld_options): Handle `-boot-info-table', `-no-emul-boot' and
15782 `--eltorito-emul-floppy'.
15783 (main): Handle `OPTION_BOOT_INFO_TABLE', `OPTION_NO_EMUL_BOOT'
15784 and `OPTION_ELTORITO_EMUL_FLOPPY'.
15785 * util/mkisofs/mkisofs.h (use_eltorito_emul_floppy)
15786 (use_boot_info_table, get_731): New prototypes.
15787 * util/mkisofs/write.c (get_731): New function.
15788
af7d4de5
FZ
157892009-11-11 Felix Zielcke <fzielcke@z-51.de>
15790
15791 Fix the generation of the man page.
15792
15793 * util/pc/i386/grub-install.in: Source
15794 `${libdir}/grub/grub-mkconfig_lib' after options have been parsed.
15795
2c55dbc0
RM
157962009-11-11 Robert Millan <rmh.grub@aybabtu.com>
15797
15798 Large file support for grub-mkisofs.
15799
15800 * conf/common.rmk (grub_mkisofs_CFLAGS): Add `-D_FILE_OFFSET_BITS=64'.
15801 * util/mkisofs/mkisofs.c (next_extent, last_extent)
15802 (session_start): Upgrade type to `uint64_t'. Update all users.
15803 * util/mkisofs/mkisofs.h: Include `<stdint.h>'.
15804 (struct directory_entry): Upgrade type of `starting_block' and
15805 `size' to `uint64_t'. Update all users.
15806 (struct deferred): Remove unused structure.
15807 (xfwrite): Upgrade type of `count' and `size' to `uint64_t'.
15808 Update all users.
15809 * util/mkisofs/tree.c (stat_filter, lstat_filter): Return -1 when
15810 file is larger than `UINT32_MAX'.
15811 * util/mkisofs/write.c (xfwrite): Upgrade type of `count' and
15812 `size' to `uint64_t'. Update all users. Fix handling of fwrite()
15813 return value.
15814 (struct deferred_write): Upgrade type of `extent' and `size' to
15815 `uint64_t'. Update all users.
15816 (last_extent_written): Upgrade type to `uint64_t'. Update all
15817 users.
15818 (write_one_file): Upgrade type of `count' and `size' to `uint64_t'.
15819 Update all users. Upgrade type of `remain' to `int64_t' and
15820 `use' to `size_t'. Use error() to handle fread() errors.
15821 (write_files): Rely on write_one_file() rather than calling
15822 xfwrite() directly.
15823
6a9cead5
FZ
158242009-11-09 Felix Zielcke <fzielcke@z-51.de>
15825
15826 * util/mkisofs/mkisofs.c (ld_options): Fix a spelling mistake.
15827
4825d790
RM
158282009-11-09 Robert Millan <rmh.grub@aybabtu.com>
15829
15830 * util/mkisofs/fnmatch.c: Remove.
15831 * util/mkisofs/getopt1.c: Likewise.
15832 * util/mkisofs/getopt.c: Likewise.
15833 * conf/common.rmk (grub_mkisofs_SOURCES): Replace
15834 `util/mkisofs/fnmatch.c', `util/mkisofs/getopt1.c' and
15835 `util/mkisofs/getopt.c' with `gnulib/fnmatch.c',
15836 `gnulib/getopt1.c' and `gnulib/getopt.c'.
15837 (grub_mkisofs_CFLAGS): Add `-I$(srcdir)/gnulib'.
15838
15839 * configure.ac: Detect `mingw32msvc' host_os.
15840 Check for lstat(), getuid() and getgid().
15841
15842 * util/mkisofs/joliet.c: Include `<stdint.h>'. Replace all
15843 instances of `u_char' with `uint8_t'.
15844
15845 * util/mkisofs/mkisofs.h: Include `<sys/stat.h>'.
15846 [!HAVE_GETUID] (getuid): New function (stub).
15847 [!HAVE_GETGID] (getgid): Likewise.
15848 [!HAVE_LSTAT] (lstat): Likewise.
15849 [!S_IROTH] (S_IROTH): New macro (dummy).
15850 [!S_IRGRP] (S_IRGRP): Likewise.
15851
84b860d8
RM
158522009-11-09 Robert Millan <rmh.grub@aybabtu.com>
15853
15854 * gnulib/fnmatch_loop.c (EXT): Fix warning (signed and unsigned type in
15855 conditional expression).
15856
66e9b712
RM
158572009-11-09 Robert Millan <rmh.grub@aybabtu.com>
15858
15859 Import from Gnulib.
15860
15861 * gnulib/fnmatch.c: New file.
15862 * gnulib/fnmatch.h: Likewise.
15863 * gnulib/fnmatch_loop.c: Likewise.
15864 * gnulib/getopt.c: Likewise.
15865 * gnulib/getopt.h: Likewise.
15866 * gnulib/getopt1.c: Likewise.
15867 * gnulib/getopt_int.h: Likewise.
15868 * gnulib/gettext.h: Likewise.
15869
34f4a5b0
RM
158702009-11-09 Robert Millan <rmh.grub@aybabtu.com>
15871
15872 * normal/dyncmd.c (read_command_list): Replace `0' with `NULL'.
15873 * normal/handler.c (read_handler_list): Likewise.
15874
ac451143
RM
158752009-11-09 Robert Millan <rmh.grub@aybabtu.com>
15876
15877 Misc cleanup.
15878
15879 * kern/command.c (grub_register_command_prio): Use
15880 grub_zalloc() instead of explicitly zeroing data.
15881 * kern/list.c: Include `<grub/mm.h>'.
15882 (grub_named_list_find): Replace `0' with `NULL'.
15883 * normal/autofs.c (struct grub_fs_module_list): Remove ad-hoc type.
15884 (fs_module_list): Change type to `grub_named_list_t'. Update all
15885 users.
15886 * normal/dyncmd.c (read_command_list): Add space between function
15887 call and parenthesis.
15888 * normal/handler.c (read_handler_list): Likewise.
15889
4089b167
RM
158902009-11-09 Robert Millan <rmh.grub@aybabtu.com>
15891
15892 * normal/auth.c (punishment_delay): Moved from here ...
15893 (grub_auth_strcmp): ... to here (inside function).
15894
325f5037
RM
158952009-11-09 Robert Millan <rmh.grub@aybabtu.com>
15896
15897 * include/grub/list.h (struct grub_named_list): Remove `const'
15898 qualifier from `name'.
15899 (struct grub_prio_list): Likewise.
15900
7aea29a3
RM
159012009-11-09 Robert Millan <rmh.grub@aybabtu.com>
15902
15903 * normal/auth.c: Include `<grub/time.h>'.
15904 (grub_auth_strcmp): Replace `strcmp' with `grub_strcmp'.
15905
3fd6f044
RM
159062009-11-09 Robert Millan <rmh.grub@aybabtu.com>
15907
15908 * normal/auth.c (punishment_delay): New variable.
15909 (grub_auth_strcmp): Rewrite using grub_get_time_ms ().
15910 (grub_auth_check_authentication): Punish failed login attempts with
15911 an incremental (2^N) delay.
15912
a4cd68e4
RM
159132009-11-09 Robert Millan <rmh.grub@aybabtu.com>
15914
15915 * conf/common.rmk (grub_mkisofs_CFLAGS): Prefix include
15916 path with $(srcdir).
15917
7ad12f43
VS
159182009-11-09 Vladimir Serbinenko <phcoder@gmail.com>
15919
15920 * normal/auth.c (grub_auth_strcmp): Fixed incorrect variable usage.
15921
c1129f03
RM
159222009-11-09 Robert Millan <rmh.grub@aybabtu.com>
15923
15924 * util/i386/coreboot/grub-mkrescue.in: New file.
15925 * conf/i386-coreboot.rmk (bin_SCRIPTS, grub_mkrescue_SOURCES): New
15926 variables.
15927
15928 * conf/common.rmk (bin_UTILITIES): Add `grub-mkisofs'.
15929 (grub_mkisofs_SOURCES, grub_mkisofs_CFLAGS): New variables.
15930 * configure.ac: Add header and function checks to satisfy grub-mkisofs
15931 requirements.
15932 * util/mkisofs/defaults.h: New file.
15933 * util/mkisofs/eltorito.c: Likewise.
15934 * util/mkisofs/exclude.h: Likewise.
15935 * util/mkisofs/fnmatch.c: Likewise.
15936 * util/mkisofs/getopt.c: Likewise.
15937 * util/mkisofs/getopt1.c: Likewise.
15938 * util/mkisofs/hash.c: Likewise.
15939 * util/mkisofs/include/fctldefs.h: Likewise.
15940 * util/mkisofs/include/mconfig.h: Likewise.
15941 * util/mkisofs/include/prototyp.h: Likewise.
15942 * util/mkisofs/include/statdefs.h: Likewise.
15943 * util/mkisofs/iso9660.h: Likewise.
15944 * util/mkisofs/joliet.c: Likewise.
15945 * util/mkisofs/match.c: Likewise.
15946 * util/mkisofs/match.h: Likewise.
15947 * util/mkisofs/mkisofs.c: Likewise.
15948 * util/mkisofs/mkisofs.h: Likewise.
15949 * util/mkisofs/multi.c: Likewise.
15950 * util/mkisofs/name.c: Likewise.
15951 * util/mkisofs/rock.c: Likewise.
15952 * util/mkisofs/tree.c: Likewise.
15953 * util/mkisofs/write.c: Likewise.
15954
ec8bb77d
VS
159552009-11-09 Vladimir Serbinenko <phcoder@gmail.com>
15956
15957 * normal/auth.c (grub_auth_strcmp): Fix bug which resulted in function
15958 being insecure.
15959
3716b12c
RM
159602009-11-08 Robert Millan <rmh.grub@aybabtu.com>
15961
15962 * util/i386/pc/grub-mkrescue.in: Fix miss-identification as
15963 `grub-mkimage' (and use $0 when possible).
15964
b97b7b91
RM
159652009-11-08 Robert Millan <rmh.grub@aybabtu.com>
15966
15967 * kern/i386/multiboot_mmap.c (grub_machine_mmap_init): Improve
15968 error message for excessively large memory map.
15969
04114812
RM
159702009-11-08 Robert Millan <rmh.grub@aybabtu.com>
15971
15972 * autogen.sh: Use `sh gendistlist.sh' to avoid reliing on
15973 executable bit.
15974
e4eb2373
RM
159752009-11-08 Robert Millan <rmh.grub@aybabtu.com>
15976
15977 * kern/i386/multiboot_mmap.c (grub_machine_mmap_init): Improve error
15978 message for coreboot users.
15979
c926e1d5 159802009-11-07 Robert Millan <rmh.grub@aybabtu.com>
15981
15982 Fix build with GNU gold.
15983
15984 * conf/i386-pc.rmk (boot_img_LDFLAGS, pxeboot_img_LDFLAGS)
15985 (diskboot_img_LDFLAGS, lnxboot_img_LDFLAGS)
15986 (cdboot_img_LDFLAGS): Prepend `0x' qualifier to hexadecimal
15987 link addresses.
15988 * aclocal.m4: Likewise.
15989
86e5b1db 159902009-11-04 Felix Zielcke <fzielcke@z-51.de>
15991
15992 * configure.ac (AC_PREREQ): Bump to 2.59d.
15993 * INSTALL: Make it more clear when Autoconf and Ruby are
15994 needed and when to run `./autogen.sh'.
15995
246cd78f 159962009-11-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
15997
15998 * util/grub.d/30_os-prober.in: Restore default behavior for unsupported
15999 OSes.
16000
4f9dfb37 160012009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
16002
16003 * util/grub.d/30_os-prober.in: Add GNU/Hurd support
16004
b82bd5e1 160052009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
16006
16007 * util/grub.d/10_hurd.in: Drop /dev/ prefix from root device path before
16008 giving it to GNU Mach.
16009
ff1a9bca 160102009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
16011
16012 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Subtract 1 from
16013 GNU partition number to get internal GRUB partition number.
16014
61697d9c 160152009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
16016
16017 * util/grub.d/10_hurd.in: Call prepare_grub_to_access_device
16018 ${GRUB_DEVICE_BOOT} before loading /boot kernel.
16019
a50569e1 160202009-11-01 Robert Millan <rmh.grub@aybabtu.com>
16021
16022 Based on patch from BVK Chaitanya <bvk.groups@gmail.com>
16023 * kern/misc.c (grub_strchr, grub_strrchr): Fix to handle c == '\0'
16024 case.
16025
5b153867 160262009-11-01 Felix Zielcke <fzielcke@z-51.de>
16027
16028 * Makefile.in (TARGET_CPPFLAGS): Add `-I$(srcdir)/include'.
16029
d9e2cd70 160302009-10-30 Robert Millan <rmh.grub@aybabtu.com>
16031
16032 Fix build problem.
16033
16034 * Makefile.in (TARGET_CPPFLAGS): Replace `-nostdinc' with
16035 `-isystem=$(srcdir)/include'.
16036
805111a4 160372009-10-30 Robert Millan <rmh.grub@aybabtu.com>
16038
16039 * util/i386/pc/grub-install.in: Remove hint that device.map should be
16040 checked (grub-install doesn't currently rely on it).
16041
fa6e945f 160422009-10-29 Robert Millan <rmh.grub@aybabtu.com>
16043
16044 Revert SVN r2660.
16045
16046 * conf/common.rmk (script/sh/lexer.c_DEPENDENCIES): Moved from here ...
16047 * conf/i386-coreboot.rmk (script/sh/lexer.c_DEPENDENCIES): ... to here.
16048 * conf/i386-efi.rmk (script/sh/lexer.c_DEPENDENCIES): ... and here.
16049 * conf/i386-ieee1275.rmk: Likewise.
16050 * conf/i386-pc.rmk: Likewise.
16051 * conf/powerpc-ieee1275.rmk: Likewise.
16052 * conf/sparc64-ieee1275.rmk: Likewise.
16053 * conf/x86_64-efi.rmk: Likewise.
16054
cee15086 160552009-10-28 Robert Millan <rmh.grub@aybabtu.com>
16056
16057 * Makefile.in (TARGET_CPPFLAGS): Add `-nostdinc'.
16058
95b9239e 160592009-10-28 Robert Millan <rmh.grub@aybabtu.com>
16060
16061 * include/grub/misc.h: Stop checking for APPLE_CC.
16062
2ed19dfd 160632009-10-28 Robert Millan <rmh.grub@aybabtu.com>
16064
16065 * kern/i386/coreboot/init.c (grub_exit): Reimplement in a way that
16066 doesn't cause an infinite call loop.
16067
fdcdde19 160682009-10-28 Felix Zielcke <fzielcke@z-51.de>
16069
16070 * commands/acpi.c (grub_cmd_acpi): Fix the out of memory error
16071 strings.
16072
cefabfe1 160732009-10-26 Robert Millan <rmh.grub@aybabtu.com>
16074
16075 * autogen.sh: Support addition of external modules via `GRUB_CONTRIB'
16076 variable.
16077 * Makefile.in: Likewise.
16078
ed96ab6d 160792009-10-26 Robert Millan <rmh.grub@aybabtu.com>
16080
16081 * gendistlist.sh: Simplify .svn check. Skip .bzr as well.
16082
0579b753 160832009-10-26 Robert Millan <rmh.grub@aybabtu.com>
16084
16085 * Makefile.in (RMKFILES): Rewrite using $(wildcard).
16086
478df409 160872009-10-26 Robert Millan <rmh.grub@aybabtu.com>
16088
16089 * disk/scsi.c: Remove `<grub/machine/kernel.h>' (not needed).
16090
083d1679 160912009-10-26 Robert Millan <rmh.grub@aybabtu.com>
16092
16093 * gensymlist.sh.in (COMPILE_TIME_ASSERT): Copy macro declaration
16094 from here ...
16095 * include/grub/misc.h (COMPILE_TIME_ASSERT): ... to here.
16096
5947ae32 160972009-10-26 Robert Millan <rmh.grub@aybabtu.com>
16098
16099 * Makefile.in (docs/grub.info): Use make syntax to ignore errors
16100 in $(MAKEINFO) invocation. This makes it clear in output that
16101 errors are being ignored.
16102
94180ff6 161032009-10-26 Robert Millan <rmh.grub@aybabtu.com>
16104
16105 * conf/i386-coreboot.rmk (script/sh/lexer.c_DEPENDENCIES): Moved
16106 from here ...
16107 * conf/common.rmk (script/sh/lexer.c_DEPENDENCIES): ... to here.
16108 * conf/i386-efi.rmk (script/sh/lexer.c_DEPENDENCIES): Remove.
16109 * conf/i386-ieee1275.rmk: Likewise.
16110 * conf/i386-pc.rmk: Likewise.
16111 * conf/powerpc-ieee1275.rmk: Likewise.
16112 * conf/sparc64-ieee1275.rmk: Likewise.
16113 * conf/x86_64-efi.rmk: Likewise.
16114
9031b03a 161152009-10-26 Colin Watson <cjwatson@ubuntu.com>
16116
16117 * util/grub-editenv.c (main): If only a command is given, use
16118 DEFAULT_DIRECTORY "/" GRUB_ENVBLK_DEFCFG as a default file name.
16119 (usage): FILENAME is now optional and has a default.
16120
e4f6809b 161212009-10-26 Colin Watson <cjwatson@ubuntu.com>
16122
16123 Improve grub-mkconfig performance when there are several menu
16124 entries on a single filesystem.
16125
16126 * util/grub.d/10_linux.in (linux_entry): Cache the output of
16127 prepare_grub_to_access_device.
16128 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
16129 * util/grub.d/30_os-prober.in: Likewise.
16130
67937d4d 161312009-10-26 Robert Millan <rmh.grub@aybabtu.com>
16132
16133 * util/grub.d/10_freebsd.in: Remove.
16134 * util/grub.d/10_kfreebsd.in: New file (based on 10_linux.in).
16135 * configure.ac: Set host_kernel=kfreebsd for FreeBSD and GNU/kFreeBSD.
16136
ee3756cc 161372009-10-26 Robert Millan <rmh.grub@aybabtu.com>
16138
5c35048e 16139 * docs/grub.cfg: Fix example usage of *BSD loaders.
ee3756cc 16140
4dea1c6f 161412009-10-25 Robert Millan <rmh.grub@aybabtu.com>
16142
16143 * util/i386/pc/grub-setup.c (setup): Add missing parameter to
16144 grub_util_error() call.
16145
042484d7 161462009-10-25 Robert Millan <rmh.grub@aybabtu.com>
16147
16148 * include/grub/fs.h [GRUB_UTIL] (struct grub_fs): Add
16149 `reserved_first_sector' member.
16150 * fs/ext2.c [GRUB_UTIL] (grub_ext2_fs): Initialize
16151 `reserved_first_sector' to 1.
16152 * fs/fat.c [GRUB_UTIL] (grub_fat_fs): Likewise.
16153 * fs/ntfs.c [GRUB_UTIL] (grub_ntfs_fs): Likewise.
16154 * fs/hfsplus.c [GRUB_UTIL] (grub_hfsplus_fs): Likewise.
16155 * util/i386/pc/grub-setup.c (setup): Add safety check that probes for
16156 filesystems which begin at first sector.
16157 (options): New option --skip-fs-probe.
16158 (main): Handle --skip-fs-probe and pass it to setup().
16159
d64448a7 161602009-10-25 Robert Millan <rmh.grub@aybabtu.com>
16161
16162 * include/grub/misc.h: Fix wrong evaluation of APPLE_CC.
16163 (memset): Fix function prototype.
16164
508d42ec 161652009-10-25 Robert Millan <rmh.grub@aybabtu.com>
161662009-10-25 Vasily Averin <vvs@parallels.com>
16167
16168 * fs/ext2.c (grub_ext2_iterate_dir): Avoid infinite loop when
16169 `dirent.direntlen == 0'.
16170
b240e30c 161712009-10-25 Robert Millan <rmh.grub@aybabtu.com>
16172
16173 * fs/cpio.c [MODE_USTAR]: Initialize `tar' module instead of
16174 `cpio'.
16175 [! MODE_USTAR]: Initialize `cpio' module instead of `tar'.
16176
346e7fbe 161772009-10-25 Robert Millan <rmh.grub@aybabtu.com>
16178
16179 * configure.ac: Check for `__ashldi3', `__ashrdi3', `__lshrdi3',
16180 `__trampoline_setup' and `__ucmpdi2'.
16181 * include/grub/powerpc/libgcc.h: Only export symbols for functions
16182 that libgcc provides.
16183
cdb308b0 161842009-10-25 Robert Millan <rmh.grub@aybabtu.com>
16185
16186 * include/grub/powerpc/libgcc.h (memset): Remove function prototype.
16187 * include/grub/sparc64/libgcc.h (memset): Likewise.
16188 * include/grub/misc.h (memset, memcmp): New function prototypes.
16189
fb26abc2 161902009-10-25 Robert Millan <rmh.grub@aybabtu.com>
16191
16192 * fs/cpio.c [MODE_USTAR]: Finish `tar' module instead of
16193 `cpio'.
16194 [! MODE_USTAR]: Finish `cpio' module instead of `tar'.
16195
f6693890 161962009-10-25 Robert Millan <rmh.grub@aybabtu.com>
16197
16198 Patch from Samuel Thibault <samuel.thibault@ens-lyon.org>
16199 * docs/grub.cfg: Compensate for recent change in multiboot
16200 loader (since 2009-08-14 it won't pass filename to payload).
16201 * util/grub.d/10_hurd.in: Likewise.
16202
0933cdc0 162032009-10-21 Felix Zielcke <fzielcke@z-51.de>
16204
16205 * config.guess: Update to latest version from config git
16206 repository.
16207 * config.sub: Likewise.
16208
3b2fe8c2 162092009-10-20 Robert Millan <rmh.grub@aybabtu.com>
16210
16211 Fix build on sparc64.
16212
16213 * configure.ac: Perform checks for libgcc symbols before
16214 adding `-nostdlib' to LDFLAGS.
16215
46695a62 162162009-10-16 Vladimir Serbinenko <phcoder@gmail.com>
16217
16218 Let user specify OpenBSD root device.
16219
16220 * loader/i386/bsd.c (openbsd_root): New variable.
16221 (openbsd_opts): New option 'root'.
16222 (OPENBSD_ROOT_ARG): New macro.
16223 (grub_openbsd_boot): Use 'openbsd_root'.
16224 (grub_cmd_openbsd): Fill 'openbsd_root'.
16225
d2b6b7fc 162262009-10-16 Robert Millan <rmh.grub@aybabtu.com>
16227
16228 * NEWS: Misc adjustments.
16229
421bd7ac 162302009-10-16 Vladimir Serbinenko <phcoder@gmail.com>
16231
16232 * NEWS: Mentioned XNU, ACPI, gptsync, password and parttool.
16233
f1d29d87 162342009-10-16 Robert Millan <rmh.grub@aybabtu.com>
16235
16236 * configure.ac: Bump version to 1.97.
16237
6f3cd880 162382009-10-16 Colin Watson <cjwatson@ubuntu.com>
16239
16240 * configure.ac (TARGET_CFLAGS): Add -mno-mmx -mno-sse -mno-sse2
16241 -mno-3dnow on x86 architectures. Some toolchains enable these
16242 features by default, but they rely on registers that aren't enabled
16243 in GRUB. Thanks to Vladimir Serbinenko for the suggestion.
16244
035f7122 162452009-10-15 Robert Millan <rmh.grub@aybabtu.com>
16246
16247 Make entry text a bit more readable.
16248
16249 * util/grub.d/10_linux.in: Add `with' before `Linux'.
16250
44998e58 162512009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
16252
16253 * loader/i386/pc/xnu.c (grub_xnu_set_video): Fix loading splash image.
16254
cd2851b3 162552009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
16256
16257 * commands/xnu_uuid.c (grub_cmd_xnu_uuid): Remove duplicated bitwise
16258 operations.
16259
c6f3b249 162602009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
16261
16262 * configure.ac: Add missing dollar.
16263
6b5886ba 162642009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
16265
16266 Revert 2009-06-10 Pavel Roskin <proski@gnu.org>
16267
16268 * configure.ac: Put checks for __bswapsi2 and __bswapdi2.
16269 * include/grub/powerpc/libgcc.h: Don't use weak attribute for all
16270 exports.
16271 * include/grub/sparc64/libgcc.h: Likewise. Use
16272 preprocessor conditionals.
16273
e9d66f6d 162742009-10-14 Robert Millan <rmh.grub@aybabtu.com>
16275
16276 * conf/common.rmk (grub-dumpbios): Remove rule.
16277 (sbin_SCRIPTS, CLEANFILES): Remove `grub-dumpbios'.
16278 * util/grub-dumpbios.in: Remove file.
16279
9155bc17 162802009-10-14 Robert Millan <rmh.grub@aybabtu.com>
16281
16282 Refer to kernel of FreeBSD "kFreeBSD" to avoid confusion between
16283 the Operating System (FreeBSD) and its kernel (kernel of FreeBSD).
16284
16285 * loader/i386/bsd.c (grub_freebsd_boot): Read kernel environment
16286 from "kFreeBSD" namespace (rather than "FreeBSD"). Update all
16287 users.
16288
16289 (GRUB_MOD_INIT (bsd)): Rename "freebsd" command to "kfreebsd",
16290 "openbsd" to "kopenbsd", "netbsd" to "knetbsd", "freebsd_loadenv"
16291 to "kfreebsd_loadenv", "freebsd_module" to "kfreebsd_module",
16292 and "freebsd_module_elf" to "kfreebsd_module_elf". Update all
16293 users.
16294
bf7f7a18 162952009-10-12 Robert Millan <rmh.grub@aybabtu.com>
16296
16297 * term/tparm.c: Switch to GPLv3.
16298
86564c26 162992009-10-09 Robert Millan <rmh.grub@aybabtu.com>
16300
16301 * include/grub/i386/cpuid.h: Add header protection.
16302
5c936493 163032009-10-09 Robert Millan <rmh.grub@aybabtu.com>
16304
16305 Fail gracefuly when attempting to load 64-bit kFreeBSD on IA32 CPU.
16306
16307 * include/grub/i386/cpuid.h: New file.
16308 * commands/i386/cpuid.c: Include `<grub/i386/cpuid.h>'.
16309 (has_longmode): Rename to ...
16310 (grub_cpuid_has_longmode): ... this. Update all users. Remove
16311 `static' attribute.
16312 * loader/i386/bsd.c: Include `<grub/i386/cpuid.h>'.
16313 (grub_bsd_load_elf): Fail if load of 64-bit kernel was requested
16314 on a CPU that doesn't implement AMD64 instruction set.
16315
186e7cf2 163162009-10-06 Colin Watson <cjwatson@ubuntu.com>
16317
16318 * Makefile.in (docs/stamp-vti): Depend on configure.ac as well, so
16319 that version.texi is rebuilt on version number changes.
16320
83b65c4a 163212009-10-06 Colin Watson <cjwatson@ubuntu.com>
16322
16323 * Makefile.in: Don't set info_INFOS unless makeinfo was found.
16324 Fixes bug #27602.
16325
d244281c 163262009-10-06 Colin Watson <cjwatson@ubuntu.com>
16327
16328 * util/i386/pc/grub-install.in: Source
16329 ${libdir}/grub/grub-mkconfig_lib before option processing, in order
16330 that the --grub-probe option will work.
16331 * util/sparc64/ieee1275/grub-install.in: Likewise.
16332
da25306d 163332009-10-05 Robert Millan <rmh.grub@aybabtu.com>
16334
16335 * configure.ac: Bump version to 1.97~beta4.
16336
e8ee83c0 163372009-10-03 Robert Millan <rmh.grub@aybabtu.com>
16338
16339 Resync grub-mkdevicemap in x86_64-efi.
16340
16341 * conf/x86_64-efi.rmk (sbin_UTILITIES): Enable `grub-mkdevicemap'.
16342 (grub_mkdevicemap_SOURCES): Add missing `util/deviceiter.c' and
16343 `util/devicemap.c'.
16344
50dcabcf 163452009-10-01 Colin Watson <cjwatson@ubuntu.com>
16346
16347 * util/grub-editenv.c (create_envblk_file): Write new block with a
16348 .new suffix and then rename it into place, to ensure atomic
16349 creation.
16350
0e51c3a7 163512009-09-28 Robert Millan <rmh.grub@aybabtu.com>
16352
16353 Do not automatically install headers.
16354
16355 * Makefile.in (include_DATA): Remove. Update all users.
16356
31299a95 163572009-09-26 Robert Millan <rmh.grub@aybabtu.com>
16358
16359 * conf/common.rmk (pkglib_MODULES): Remove `lua.mod'.
16360 (lua_mod_SOURCES, lua_mod_CFLAGS, lua_mod_LDFLAGS): Remove.
16361
16362 * util/osdetect.lua: Remove.
16363 * script/lua/lauxlib.c: Likewise.
16364 * script/lua/ldebug.c: Likewise.
16365 * script/lua/grub_main.c: Likewise.
16366 * script/lua/lauxlib.h: Likewise.
16367 * script/lua/ldebug.h: Likewise.
16368 * script/lua/ltablib.c: Likewise.
16369 * script/lua/liolib.c: Likewise.
16370 * script/lua/lstrlib.c: Likewise.
16371 * script/lua/lualib.h: Likewise.
16372 * script/lua/ldo.c: Likewise.
16373 * script/lua/ldump.c: Likewise.
16374 * script/lua/ldo.h: Likewise.
16375 * script/lua/loslib.c: Likewise.
16376 * script/lua/lundump.c: Likewise.
16377 * script/lua/grub_lib.c: Likewise.
16378 * script/lua/ldblib.c: Likewise.
16379 * script/lua/lundump.h: Likewise.
16380 * script/lua/lmem.c: Likewise.
16381 * script/lua/grub_lib.h: Likewise.
16382 * script/lua/lmathlib.c: Likewise.
16383 * script/lua/lstate.c: Likewise.
16384 * script/lua/ltm.c: Likewise.
16385 * script/lua/lvm.c: Likewise.
16386 * script/lua/lmem.h: Likewise.
16387 * script/lua/lstate.h: Likewise.
16388 * script/lua/ltm.h: Likewise.
16389 * script/lua/ltable.c: Likewise.
16390 * script/lua/lvm.h: Likewise.
16391 * script/lua/llex.c: Likewise.
16392 * script/lua/lgc.c: Likewise.
16393 * script/lua/grub_lua.h: Likewise.
16394 * script/lua/loadlib.c: Likewise.
16395 * script/lua/lfunc.c: Likewise.
16396 * script/lua/lopcodes.c: Likewise.
16397 * script/lua/lparser.c: Likewise.
16398 * script/lua/ltable.h: Likewise.
16399 * script/lua/llex.h: Likewise.
16400 * script/lua/lgc.h: Likewise.
16401 * script/lua/lfunc.h: Likewise.
16402 * script/lua/lbaselib.c: Likewise.
16403 * script/lua/lopcodes.h: Likewise.
16404 * script/lua/lparser.h: Likewise.
16405 * script/lua/lzio.c: Likewise.
16406 * script/lua/linit.c: Likewise.
16407 * script/lua/lobject.c: Likewise.
16408 * script/lua/llimits.h: Likewise.
16409 * script/lua/lstring.c: Likewise.
16410 * script/lua/lzio.h: Likewise.
16411 * script/lua/lapi.c: Likewise.
16412 * script/lua/lcode.c: Likewise.
16413 * script/lua/lua.h: Likewise.
16414 * script/lua/lobject.h: Likewise.
16415 * script/lua/lstring.h: Likewise.
16416 * script/lua/lapi.h: Likewise.
16417 * script/lua/lcode.h: Likewise.
16418 * script/lua/luaconf.h: Likewise.
16419
cb8a2c38 164202009-09-26 Colin Watson <cjwatson@ubuntu.com>
16421
16422 * docs/grub.texi (Command-line and menu entry commands): Document
16423 date and echo commands.
16424
6b9b6276 164252009-09-24 Pavel Roskin <proski@gnu.org>
16426
16427 * include/grub/kernel.h (struct grub_module_header): Remove
16428 `grub_module_header_types'. Make `type' unsigned. Make `size'
16429 32-bit on all platforms.
16430 * util/elf/grub-mkimage.c (load_modules): Treat `type' as an
16431 8-bit field. Use grub_host_to_target32() for `size'.
16432 * util/i386/efi/grub-mkimage.c (make_mods_section): Likewise.
16433 * util/i386/pc/grub-mkimage.c (generate_image): Likewise.
16434 * util/sparc64/ieee1275/grub-mkimage.c (generate_image): Likewise.
16435
4e5a02a7 164362009-09-24 Robert Millan <rmh.grub@aybabtu.com>
16437
16438 Fix "lost keypress" bug in at_keyboard.
16439
16440 * term/i386/pc/at_keyboard.c (grub_at_keyboard_checkkey): New function.
16441 Checks for readyness of input buffer (without flushing it).
16442 (grub_at_keyboard_term): Use grub_at_keyboard_checkkey() rather
16443 than grub_at_keyboard_getkey_noblock() for `checkkey' struct member.
16444
c6dcedf6 164452009-09-24 Robert Millan <rmh.grub@aybabtu.com>
16446
16447 * util/i386/pc/grub-mkimage.c (generate_image): Enclose BIOS-specific
16448 size check within GRUB_MACHINE_PCBIOS section.
16449
74c958b1 164502009-09-24 Robert Millan <rmh.grub@aybabtu.com>
16451
16452 * include/grub/i386/at_keyboard.h (KEYBOARD_ISREADY): Negate
16453 return value.
16454 * term/i386/pc/at_keyboard.c (grub_keyboard_getkey): Negate
16455 KEYBOARD_ISREADY check.
16456 (grub_at_keyboard_checkkey): Rename to ...
16457 (grub_at_keyboard_getkey_noblock): ... this. Update all users.
16458 Remove gratuitous cast.
16459
ff420223 164602009-09-23 Colin Watson <cjwatson@ubuntu.com>
16461
16462 * configure.ac: Call AC_PROG_MKDIR_P.
16463 * Makefile.in (docs/stamp-vti): Create docs directory. Create
16464 version.texi in $(builddir) rather than $(srcdir).
16465 (docs/grub.info): Create docs directory. Prepend $(builddir)/docs
16466 to makeinfo's @include search path.
16467
d96875df 164682009-09-23 Felix Zielcke <fzielcke@z-51.de>
16469
16470 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Cope with `*.dpkg-*'
16471
9b3f8365 164722009-09-23 Felix Zielcke <fzielcke@z-51.de>
16473
16474 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Add support
16475 for `*.dpkg-new'.
16476
c44c90db 164772009-09-21 Colin Watson <cjwatson@ubuntu.com>
16478
16479 Build info documentation. Some code borrowed from Automake.
16480
16481 * configure.ac: Check for makeinfo.
16482 * Makefile.in (MAKEINFO, INFOS, info_INFOS): New variables.
16483 (MAINTAINER_CLEANFILES): Add $(INFOS), docs/stamp-vti, and
16484 docs/version.texi.
16485 (MOSTLYCLEANFILES): Add vti.tmp.
16486 (docs/version.texi, docs/stamp-vti): Update automatically.
16487 (docs/grub.info): Build info documentation. Use --force and ignore
16488 errors for now.
16489 (all-local): Add $(INFOS).
16490 (install-local): Install info files.
16491 (uninstall): Uninstall info files.
16492 * docs/version.texi: Remove from revision control. This file is
16493 automatically generated on build now.
16494 * gendistlist.sh: Add `*.info'.
16495
e0b37bb5 164962009-09-21 Felix Zielcke <fzielcke@z-51.de>
16497
16498 * kern/term.c: Fix indentation.
16499
5a78865b 165002009-09-21 Felix Zielcke <fzielcke@z-51.de>
16501
16502 * util/hostdisk.c: Fix a comment.
16503
dace7e8a 165042009-09-20 Robert Millan <rmh.grub@aybabtu.com>
16505
16506 Fix regression introduced in r2539.
16507
16508 * term/usb_keyboard.c (USB_HID_DEVICE_TO_HOST): Change from 0x61
16509 to 0xA1.
16510
a83d079b 165112009-09-19 Colin Watson <cjwatson@ubuntu.com>
16512
16513 * util/grub.d/30_os-prober.in: Don't throw away stderr from
4cbbccec 16514 os-prober. Under normal operation, it does not print anything to
16515 stderr; if it does, we need to debug it, and throwing away stderr
16516 makes that excessively difficult.
a83d079b 16517
be94a509 165182009-09-16 Vladimir Serbinenko <phcoder@gmail.com>
16519
16520 * mmap/mmap.c (grub_cmd_badram): Fix off-by-one error.
16521
63f745e8 165222009-09-16 Robert Millan <rmh.grub@aybabtu.com>
16523
16524 * aclocal.m4 (AC_LANG_PROGRAM): New macro. Overrides stock
16525 AC_LANG_PROGRAM from autoconf.
16526 (grub_ASM_USCORE, grub_PROG_OBJCOPY_ABSOLUTE): Add missing
16527 prototypes (fixes warning).
16528
16529 * configure.ac: Add `-Werror' to TARGET_CFLAGS unless
16530 `--disable-werror' was used.
16531
bbb2a70f 165322009-09-16 Robert Millan <rmh.grub@aybabtu.com>
16533
16534 * partmap/msdos.c (pc_partition_map_iterate): Fix possible use of
16535 uninitialized `lastaddr'.
16536
77c24f1d 165372009-09-15 Vladimir Serbinenko <phcoder@gmail.com>
16538
0f0b8c87 16539 * partmap/msdos.c (pc_partition_map_iterate): Detect and break loops.
77c24f1d 16540
07197f23 165412009-09-14 Colin Watson <cjwatson@ubuntu.com>
16542
16543 * commands/test.c (get_fileinfo): Return immediately if
16544 grub_fs_probe fails.
16545
dabf1798 165462009-09-14 José Martínez <xosemp@gmail.com>
16547
16548 * commands/acpi.c (grub_cmd_acpi): Fix loading ACPI tables from file.
16549
d52109a7 165502009-09-14 Colin Watson <cjwatson@ubuntu.com>
16551
16552 * util/grub.d/30_os-prober.in: Cope with Windows 7 in os-prober
16553 output.
16554
56532179 165552009-09-13 Robert Millan <rmh.grub@aybabtu.com>
16556
16557 * configure.ac: Remove --enable-grub-pe2elf. Only build
16558 grub-pe2elf when needed by the build system itself.
16559 * conf/common.rmk: Remove $(enable_grub_pe2elf) check.
16560
8ef070f5 165612009-09-12 Robert Millan <rmh.grub@aybabtu.com>
16562
16563 * configure.ac: Bump version to 1.97~beta3.
16564 * docs/version.texi: Likewise.
16565
61229557 165662009-09-12 Robert Millan <rmh.grub@aybabtu.com>
16567
16568 * video/i386/pc/vbe.c (grub_vbe_get_video_mode_info): Move packed
16569 mode special handling (grub_vbe_bios_set_dac_palette_width() call)
16570 from here ...
16571 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS]
16572 (grub_linux_setup_video): ... to here (with some adjustments).
16573
5c9f8d84 165742009-09-12 Robert Millan <rmh.grub@aybabtu.com>
16575
16576 Fix memory corruption issue (spotted by Colin Watson).
16577
16578 * kern/i386/pc/startup.S (grub_vbe_bios_getset_dac_palette): Fix bug
16579 causing returned size to be stored in an incorrect memory location.
16580 Fix use of uninitialized value when storing the returned size.
16581
e8f5d6e9 165822009-09-12 Yves Blusseau <blusseau@zetam.org>
16583
16584 Change clean rules to properly remove files
16585
16586 * genmk.rb: add new clean rules
16587 * Makefile.in (clean): add the new targets
16588 (mostlyclean): likewise
16589
cda2a409 165902009-09-11 Colin Watson <cjwatson@ubuntu.com>
16591
16592 * include/grub/ntfs.h (struct grub_fshelp_node): Change `size'
16593 to grub_uint64_t.
16594 * fs/ntfs.c (init_file): Understand 64-bit sizes for
16595 non-resident files.
16596
86695375 165972009-09-11 Colin Watson <cjwatson@ubuntu.com>
16598
16599 * configure.ac: Don't look for help2man when cross-compiling. Fixes
16600 part of bug #27349.
16601
8aa1541a 166022009-09-10 Felix Zielcke <fzielcke@z-51.de>
16603
16604 * util/grub-mkconfig.in: Make the created config mode 400 and
16605 print a warning if it fails.
16606
48d9bb0a 166072009-09-10 Robert Millan <rmh.grub@aybabtu.com>
16608
16609 * util/grub.d/40_custom.in: Ask user to type custom entries below
16610 comment, rather than below 'exec tail' line.
16611
3b0521be 166122009-09-10 Colin Watson <cjwatson@ubuntu.com>
16613
16614 * util/grub.d/40_custom.in: Make sure that the explanatory text is
16615 visible in grub.cfg.
16616
50051d55 166172009-09-10 Colin Watson <cjwatson@ubuntu.com>
16618
16619 * util/grub.d/40_custom.in: Make it a little clearer how to use this
16620 file.
16621
c0d34387 166222009-09-10 Felix Zielcke <fzielcke@z-51.de>
16623
16624 * docs/grub.cfg: Add an example menu entry for memtest86+.
16625
80a608f3 166262009-09-09 Felix Zielcke <fzielcke@z-51.de>
16627
a2094832 16628 * config.guess: Update to latest version from config git.
80a608f3 16629 * config.sub: Likewise.
16630
99423078 166312009-09-08 Colin Watson <cjwatson@ubuntu.com>
16632
16633 * script/sh/execute.c (grub_script_execute_cmdline): Set "?" in
16634 unknown-command case. Fixes bug #27320.
16635
44454e4c 166362009-09-08 Felix Zielcke <fzielcke@z-51.de>
16637
16638 * kern/rescue_parser.c (grub_rescue_parse_line): Only suggest to try
16639 `help' if the command exists.
16640
e30d87ad 166412009-09-06 Robert Millan <rmh.grub@aybabtu.com>
16642
16643 * INSTALL: Require GCC 4.1.3 or later.
16644
9a86f1ec 166452009-09-06 Yves Blusseau <blusseau@zetam.org>
16646
16647 * Makefile.in (RMKFILES): add i386-qemu.rmk
16648 (MAINTAINER_CLEANFILES): add $(srcdir)/DISTLIST $(srcdir)/config.h.in
16649 $(srcdir)/stamp-h.in
16650
7f26d466 166512009-09-05 Robert Millan <rmh.grub@aybabtu.com>
16652
16653 * util/grub-probe.c (probe): Comment out buggy codepath, which
16654 was unexpectedly enabled by Colin Watson's 2009-09-02 fix. This
16655 should be re-enabled after 1.97.
16656
3a613259 166572009-09-05 Felix Zielcke <fzielcke@z-51.de>
16658
16659 * gendistlist.sh: Add `grub-dumpdevtree' and `*.lua' to the list
16660 find searches for.
16661
197f76c7 166622009-09-04 Vladimir Serbinenko <phcoder@gmail.com>
16663
16664 * loader/i386/xnu.c (grub_cpu_xnu_fill_devicetree): Remove
16665 unnecessary calls to grub_error.
16666
70ba68ce 166672009-09-04 Colin Watson <cjwatson@ubuntu.com>
16668
16669 * NEWS: Mention `keystatus' and Unicode fonts.
16670
4ff0d7a4 166712009-09-04 Robert Millan <rmh.grub@aybabtu.com>
16672
16673 * configure.ac: Bump version to 1.97~beta2.
16674 * docs/version.texi: Likewise.
16675
77c55a87 166762009-09-03 Colin Watson <cjwatson@ubuntu.com>
16677
16678 * configure.ac: By default, GCC 4.4 generates .eh_frame sections
16679 containing unwind information in some cases where it previously did
16680 not. Use -fno-dwarf2-cfi-asm if available to restore the old
16681 behaviour. See http://patchwork.kernel.org/patch/8555/ for related
16682 discussion.
16683
f79572cd 166842009-09-02 Yves BLUSSEAU <blusseau@zetam.org>
16685
16686 Embedding loadenv module into grub-emu
16687
16688 * conf/i386-pc.rmk (grub_emu_SOURCES): add lib/envblk.c and
16689 commands/loadenv.c
16690 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise
16691 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise
16692 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise
16693 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise
16694 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise
16695 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise
16696
93a81088 166972009-09-03 Magnus Granberg <zorry@ume.nu>
16698
16699 * aclocal.m4: Add grub_CHECK_PIE. It check if the compiler
16700 include -fPIE in the default specs.
16701 * configure.ac: Check if pie_possible is yes and add -fno-PIE
16702 to TARGET_CFLAGS.
16703
160034b2 167042009-09-03 Felix Zielcke <fzielcke@z-51.de>
16705
16706 * INSTALL: Note that GNU Bison 2.3 or later is required.
16707
087c07c4 167082009-09-03 Colin Watson <cjwatson@ubuntu.com>
16709
16710 * kern/i386/pc/startup.S: Fix typo.
16711
cbf978c0 167122009-09-02 Vladimir Serbinenko <phcoder@gmail.com>
16713
16714 * efiemu/loadcore.c (SUFFIX (grub_efiemu_loadcore_load)): Fix style
16715 according to GCS.
16716
167172009-09-02 Colin Watson <cjwatson@ubuntu.com>
f0910644 16718
16719 * docs/grub.texi (Naming convention): Describe one-based partition
16720 numbering.
16721 (Device syntax): Likewise.
16722 (File name syntax): Likewise.
16723 (Block list syntax): Likewise.
16724 (Making a GRUB bootable CD-ROM): Talk about grub.cfg rather than
16725 menu.lst.
16726 (File name syntax): Likewise.
16727 (Command-line and menu entry commands): Document acpi, blocklist,
16728 crc, export, insmod, keystatus, ls, set, and unset commands.
16729
f3e8cdfd 167302009-09-02 Colin Watson <cjwatson@ubuntu.com>
16731
16732 * commands/keystatus.c (GRUB_MOD_INIT (keystatus)): Adjust summary
16733 to avoid implying that only one of --shift, --ctrl, or --alt may be
16734 used.
16735
c0bc232b 167362009-09-02 Colin Watson <cjwatson@ubuntu.com>
16737
16738 * util/grub-probe.c (probe): Test st.st_mode using S_ISREG macro
16739 rather than comparing against S_IFREG, which will almost never work.
16740
aa0f752d 167412009-09-01 Vladimir Serbinenko <phcoder@gmail.com>
16742
16743 * commands/loadenv.c (check_blocklists): Fix off-by-one error.
16744 (write_blocklists): Likewise.
16745
ecb3166a 167462009-09-01 Colin Watson <cjwatson@ubuntu.com>
16747
16748 * script/lua/grub_lua.h (fputs): Supply a format string as the first
16749 argument to grub_printf.
16750
c403a125 167512009-09-01 Felix Zielcke <fzielcke@z-51.de>
31aba781 16752
16753 * genmk.rb: Add quotes around $(TARGET_OBJ2ELF) to cope with
c403a125 16754 non GNU test.
31aba781 16755
b5e7312c 167562009-08-30 Vladimir Serbinenko <phcoder@gmail.com>
16757
16758 * kern/file.c (grub_file_read): Spelling fix
16759
fe00f472 167602009-08-30 Vladimir Serbinenko <phcoder@gmail.com>
16761
16762 * loader/i386/bsdXX.c (SUFFIX (grub_freebsd_load_elfmodule)): Fix
16763 loading of headers in some cases.
16764
cc55302e 167652009-08-30 Robert Millan <rmh.grub@aybabtu.com>
16766
16767 * configure.ac: Bump version to 1.97~beta1.
16768 * docs/version.texi: Likewise.
16769
5c90cdd2 167702009-08-29 Vladimir Serbinenko <phcoder@gmail.com>
64bf71d0 16771
16772 * include/grub/i386/xnu.h: Add license header.
16773 include grub/err.h explicitly.
16774
c90edae4 167752009-08-29 Robert Millan <rmh.grub@aybabtu.com>
16776
16777 * util/grub.d/10_freebsd.in: Detect `ufs1' and `ufs2' and map them
16778 to `ufs' in the vfs.root.mountfrom kernel parameter.
16779
d8888b5c 167802009-08-29 Robert Millan <rmh.grub@aybabtu.com>
16781
16782 * term/i386/pc/serial.c: Include `<grub/machine/memory.h>'.
16783
16784 [GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Macroify initialization
16785 value (0x0400 -> GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR).
16786
16787 [! GRUB_MACHINE_PCBIOS] (GRUB_SERIAL_PORT_NUM): Calculate using
16788 `ARRAY_SIZE' macro.
16789
6f07b921 167902009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
16791
16792 * kern/file.c (grub_file_read): Check offset.
16793 * fs/hfs.c (grub_hfs_read_file): Remove unnecessary offset check.
16794 * fs/jfs.c (grub_jfs_read_file): Likewise.
16795 * fs/ntfs.c (grub_ntfs_read): Likewise.
16796 * fs/reiserfs.c (grub_reiserfs_read): Likewise.
16797 * fs/minix.c (grub_minix_read_file): Correct offset check.
16798 * fs/ufs.c (grub_ufs_read_file): Likewise.
16799
b4f34077 168002009-08-28 Colin Watson <cjwatson@ubuntu.com>
16801
16802 * term/i386/pc/console.c (bios_data_area): Cast
16803 GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR explicitly.
16804
e7c69859 168052009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
16806
16807 1-bit optimised blitters.
16808
16809 * include/grub/fbblit.h (grub_video_fbblit_replace_32bit_1bit): New
16810 prototype.
16811 (grub_video_fbblit_replace_24bit_1bit): Likewise.
16812 (grub_video_fbblit_replace_16bit_1bit): Likewise.
16813 (grub_video_fbblit_replace_8bit_1bit): Likewise.
16814 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
16815 (grub_video_fbblit_blend_XXX888_1bit): Likewise.
16816 (grub_video_fbblit_blend_XXX565_1bit): Likewise.
16817 * video/fb/fbblit.c (grub_video_fbblit_replace_32bit_1bit): New
16818 function.
16819 (grub_video_fbblit_replace_24bit_1bit): Likewise.
16820 (grub_video_fbblit_replace_16bit_1bit): Likewise.
16821 (grub_video_fbblit_replace_8bit_1bit): Likewise.
16822 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
16823 (grub_video_fbblit_blend_XXX888_1bit): Likewise.
16824 (grub_video_fbblit_blend_XXX565_1bit): Likewise.
16825 * video/fb/video_fb.c (common_blitter): Use 1-bit optimised blitters
16826 when possible.
16827 * video/video.c (grub_video_get_blit_format): Return
16828 GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED if bpp = 1.
16829
a57da43f 168302009-08-28 Colin Watson <cjwatson@ubuntu.com>
16831
16832 * normal/cmdline.c (grub_cmdline_get): Supply a format string as
16833 the first argument to grub_printf.
16834
4cbe67e5 168352009-08-28 Colin Watson <cjwatson@ubuntu.com>
168362009-08-28 Robert Millan <rmh.grub@aybabtu.com>
16837
16838 Add `getkeystatus' terminal method. Add a new `keystatus' command
16839 to query it.
16840
16841 * include/grub/term.h (GRUB_TERM_STATUS_SHIFT,
16842 GRUB_TERM_STATUS_CTRL, GRUB_TERM_STATUS_ALT): Definitions for
16843 modifier key bitmasks.
16844 (struct grub_term_input): Add `getkeystatus' member.
16845 (grub_getkeystatus): Add prototype.
16846 * kern/term.c (grub_getkeystatus): New function.
16847
16848 * include/grub/i386/pc/memory.h
16849 (GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR): New macro.
16850 (struct grub_machine_bios_data_area): Define necessary parts of BIOS
16851 Data Area layout.
16852 * term/i386/pc/console.c (grub_console_getkeystatus): New function.
16853 (grub_console_term_input): Set `getkeystatus' member.
16854 * term/usb_keyboard.c (grub_usb_hid): Macroify HID protocol
16855 constants.
16856 (grub_usb_keyboard_getreport): Likewise.
16857 (grub_usb_keyboard_checkkey): Likewise.
16858 (grub_usb_keyboard_getkeystatus): New function.
16859 (grub_usb_keyboard_term): Set `getkeystatus' member.
16860
16861 * commands/keystatus.c: New file.
16862 * conf/common.rmk (pkglib_MODULES): Add keystatus.mod.
16863 (keystatus_mod_SOURCES): New variable.
16864 (keystatus_mod_CFLAGS): Likewise.
16865 (keystatus_mod_LDFLAGS): Likewise.
16866 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add
16867 commands/keystatus.c.
16868 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
16869 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
16870 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
16871 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
16872 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
16873 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
4cbe67e5 16874
6e2a9085 168752009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
16876
16877 Split befs.mod and afs.mod into *_be.mod and *.mod
16878
16879 * conf/common.rmk (grub_probe_SOURCES): Add afs_be.c and befs_be.c.
16880 (grub_fstest_SOURCES): Likewise.
16881 (pkglib_MODULES): Add afs_be.mod and befs_be.mod.
16882 (afs_be_mod_SOURCES): New variable.
16883 (afs_be_mod_CFLAGS): Likewise.
16884 (afs_be_mod_LDFLAGS): Likewise.
16885 (befs_be_mod_SOURCES): Likewise.
16886 (befs_be_mod_CFLAGS): Likewise.
16887 (befs_be_mod_LDFLAGS): Likewise.
16888 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add afs_be.c and befs_be.c.
16889 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
16890 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
16891 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
16892 (grub_emu_SOURCES): Likewise.
16893 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
16894 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
16895 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
16896 * fs/afs_be.c: New file.
16897 * fs/befs_be.c: New file.
16898 * fs/afs.c (GRUB_AFS_FSNAME_SUFFIX): New definition.
16899 (GRUB_AFS_FSNAME): Use GRUB_AFS_FSNAME_SUFFIX.
16900 (U16): Replaced with ...
16901 (grub_afs_to_cpu16): ...this. All users updated.
16902 (U32): Replaced with ...
16903 (grub_afs_to_cpu32): ...this. All users updated.
16904 (U64): Replaced with ...
16905 (grub_afs_to_cpu64): ...this. All users updated.
16906 (GRUB_AFS_BO_LITTLE_ENDIAN): Remove.
16907 (GRUB_AFS_BO_BIG_ENDIAN): Likewise.
ad8ea1f4 16908 (grub_afs_validate_sblock): Check only one endianness.
6e2a9085 16909 (GRUB_MOD_INIT (befs)) [MODE_BIGENDIAN && MODE_BFS]: Rename to ..
16910 (GRUB_MOD_INIT (befs_be)) [MODE_BIGENDIAN && MODE_BFS]: ... this.
16911 (GRUB_MOD_INIT (afs)) [MODE_BIGENDIAN && !MODE_BFS]: Rename to ..
16912 (GRUB_MOD_INIT (afs_be)) [MODE_BIGENDIAN && !MODE_BFS]: ... this.
16913 (GRUB_MOD_FINI (befs)) [MODE_BIGENDIAN && MODE_BFS]: Rename to ..
16914 (GRUB_MOD_FINI (befs_be)) [MODE_BIGENDIAN && MODE_BFS]: ... this.
16915 (GRUB_MOD_FINI (afs)) [MODE_BIGENDIAN && !MODE_BFS]: Rename to ..
16916 (GRUB_MOD_FINI (afs_be)) [MODE_BIGENDIAN && !MODE_BFS]: ... this.
16917
32a71655 169182009-08-26 Bean <bean123ch@gmail.com>
16919
16920 * fs/xfs.c (GRUB_XFS_INO_INOINAG): Replace 1L with 1LL to support
16921 64-bit number.
16922 (GRUB_XFS_FSB_TO_BLOCK): Likewise.
16923 (grub_xfs_inode_block): Change return type to grub_uint64_t.
16924 (grub_xfs_read_inode): Change type of block to grub_uint64_t.
16925
552bf6c5 169262009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
16927
16928 NetBSD memory map support.
16929
16930 * include/grub/i386/bsd.h (NETBSD_BTINFO_MEMMAP): New definition.
16931 (grub_netbsd_btinfo_mmap_header): New structure.
16932 (grub_netbsd_btinfo_mmap_entry): Likewise.
16933 * loader/i386/bsd.c (grub_netbsd_boot): Pass memory map.
16934
1ae2078c 169352009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
16936
16937 Enable bsd.mod on coreboot.
16938
16939 * conf/i386-coreboot.rmk (pkglib_MODULES): Add bsd.mod.
16940 (bsd_mod_SOURCES): New variable.
16941 (bsd_mod_CFLAGS): Likewise.
16942 (bsd_mod_LDFLAGS): Likewise.
16943 (bsd_mod_ASFLAGS): Likewise.
16944 * loader/i386/bsd.c [!GRUB_MACHINE_PCBIOS]: Fix includes.
16945 (grub_bsd_get_device) [!GRUB_MACHINE_PCBIOS]: Set *biosdev to 0xff.
16946
beefc598 169472009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
16948
16949 Cleanup NetBSD root support.
16950
16951 * loader/i386/bsd.c (grub_netbsd_boot): Remove call to
16952 grub_bsd_get_device.
16953 Fix typo.
16954
3b76e68b 169552009-08-25 Felix Zielcke <fzielcke@z-51.de>
16956
16957 * util/grub.d/00_header.in: Move check for the video backend of
16958 gfxterm from here ...
16959 * util/grub-mkconfig.in: ... to here. Enable gfxterm if there's
16960 a suitable video backend.
16961
aea664ea 169622009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
16963
16964 Fix breakage in grub-setup.
16965
16966 * util/i386/pc/grub-setup.c (setup): Use "part_msdos" instead of
16967 "msdos_partition_map".
16968
ff747d50 169692009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
16970
16971 Fix breakage in normal/auth.c.
16972
16973 * normal/auth.c (grub_iswordseparator): New function.
16974
e7e1f93f 169752009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
16976
16977 Authentication support.
16978
16979 * commands/password.c: New file.
16980 * conf/common.rmk (pkglib_MODULES): Add password.mod.
16981 (password_mod_SOURCES): New variable.
16982 (password_mod_CFLAGS): Likewise.
16983 (password_mod_LDFLAGS): Likewise.
16984 (normal_mod_SOURCES): Add normal/auth.c.
16985 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add commands/password.c and
16986 normal/auth.c.
16987 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
16988 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
16989 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
16990 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
16991 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
16992 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
16993 * include/grub/auth.h: New file.
16994 * include/grub/err.h (grub_err_t): New enum value
16995 GRUB_ERR_ACCESS_DENIED.
16996 * include/grub/menu.h (grub_menu_entry): New fields 'restricted' and
16997 'users'.
16998 * include/grub/normal.h (grub_cmdline_get): New argument 'history'.
16999 * normal/cmdline.c (grub_cmdline_get): New argument 'history'. All
17000 users updated.
17001 * normal/auth.c: New file.
17002 * normal/main.c (grub_normal_add_menu_entry): Handle --users option.
17003 (grub_cmdline_run): Don't allow to go to command line without
17004 authentication.
17005 * normal/menu.c (grub_menu_execute_entry): Handle restricted entries.
17006 * normal/menu_entry.c (grub_menu_entry_run): Don't allow editing
17007 menuentry without superuser rights.
17008 * normal/menu_viewer.c (grub_menu_viewer_show_menu): Don't exit if
17009 user isn't a superuser.
17010
70f1161d 170112009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
17012
17013 Save space by inlining misc.c functions.
17014
17015 * kern/misc.c (grub_iswordseparator): Made static.
17016 * kern/misc.c (grub_strcat): Moved from here ...
17017 * include/grub/misc.h (grub_strcat): ... here. Inlined.
17018 * kern/misc.c (grub_strncat): Moved from here ...
17019 * include/grub/misc.h (grub_strncat): ... here. Inlined.
17020 * kern/misc.c (grub_strcasecmp): Moved from here ...
17021 * include/grub/misc.h (grub_strcasecmp): ... here. Inlined.
17022 * kern/misc.c (grub_strncasecmp): Moved from here ...
17023 * include/grub/misc.h (grub_strncasecmp): ... here. Inlined.
17024 * kern/misc.c (grub_isalpha): Moved from here ...
17025 * include/grub/misc.h (grub_isalpha): ... here. Inlined.
17026 * kern/misc.c (grub_isdigit): Moved from here ...
17027 * include/grub/misc.h (grub_isdigit): ... here. Inlined.
17028 * kern/misc.c (grub_isgraph): Moved from here ...
17029 * include/grub/misc.h (grub_isgraph): ... here. Inlined.
17030 * kern/misc.c (grub_tolower): Moved from here ...
17031 * include/grub/misc.h (grub_tolower): ... here. Inlined.
17032
48e40bff 170332009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
17034
17035 * script/sh/function.c (grub_script_function_find): Cut error message
17036 not to flood terminal.
17037 * script/sh/lexer.c (grub_script_yylex): Remove command line length
17038 limit.
17039 * script/sh/script.c (grub_script_arg_add): Duplicate string.
17040
c385bfc3 170412009-08-24 Colin Watson <cjwatson@ubuntu.com>
17042
17043 * term/usb_keyboard.c (grub_usb_keyboard_getreport): Make
17044 `report' grub_uint8_t *.
17045 (grub_usb_keyboard_checkkey): Make `data' elements grub_uint8_t.
17046 Use a 50-millisecond timeout rather than just repeating
17047 grub_usb_keyboard_getreport 50 times.
17048 (grub_usb_keyboard_getkey): Make `data' elements grub_uint8_t.
17049
2d21e3e8 170502009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
17051
17052 Rename *_partition_map to part_*
17053
17054 * partmap/acorn.c (grub_acorn_partition_map): Set name to 'part_acorn'.
17055 * partmap/amiga.c (grub_amiga_partition_map): Set name to 'part_amiga'.
17056 * partmap/apple.c (grub_apple_partition_map): Set name to 'part_apple'.
17057 * partmap/gpt.c (grub_gpt_partition_map): Set name to 'part_gpt'.
17058 All users updated.
17059 * partmap/msdos.c (grub_msdos_partition_map): Set name to 'part_msdos'.
17060 All users updated.
17061 * partmap/sun.c (grub_sun_partition_map): Set name to 'part_sun'.
17062 * util/grub-probe.c (probe_partmap): Don't transform partition name
17063 to get module name.
17064
dd103c4e 170652009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
17066
17067 Fix OpenBSD and NetBSD support.
17068
17069 * include/grub/i386/bsd.h (GRUB_BSD_TEMP_BUFFER): Change to resolve
17070 memory address conflict.
17071 (OPENBSD_MMAP_ACPI): New definition.
17072 (OPENBSD_MMAP_NVS): Likewise.
17073 * loader/i386/bsd.c (grub_openbsd_boot): Support OPENBSD_MMAP_ACPI
17074 and OPENBSD_MMAP_NVS.
17075 Add memory map terminator
17076 Explicit cast when calling grub_unix_real_boot.
ad8ea1f4 17077 (grub_netbsd_boot): Explicit cast when calling grub_unix_real_boot.
dd103c4e 17078
16c84d74 170792009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
17080
17081 Let user specify NetBSD root device.
17082
17083 * loader/i386/bsd.c (netbsd_root): New variable.
17084 (netbsd_opts): New option 'root'.
17085 (NETBSD_ROOT_ARG): New macro.
17086 (grub_netbsd_boot): Use 'netbsd_root'.
17087 (grub_bsd_unload): Free 'netbsd_root'.
17088 (grub_cmd_netbsd): Fill 'netbsd_root'.
17089
adb29902 170902009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
17091
17092 Support for 64-bit NetBSD.
17093
17094 * loader/i386/bsd.c (grub_bsd_load_elf): Apply correct mask to entry
17095 point when booting non-FreeBSD.
17096
f5ae9f74 170972009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
17098
17099 Support --no-smp and --no-acpi for NetBSD.
17100
17101 * include/grub/i386/bsd.h (NETBSD_AB_NOSMP): New definition.
17102 (NETBSD_AB_NOACPI): Likewise.
17103 * loader/i386/bsd.c (netbsd_opts): New entries no-smp and no-acpi.
17104 (netbsd_flags): Add NETBSD_AB_NOSMP, NETBSD_AB_NOACPI.
17105
de74f136 171062009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
17107
17108 * fs/hfsplus.c (grub_hfsplus_mount): Don't ignore grub_hfsplus_read_file
17109 errors.
17110 (grub_hfsplus_btree_iterate_node): Don't ignore grub_hfsplus_read_file
17111 errors. Call grub_error when needed.
17112
e9a925da 171132009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
17114
17115 * commands/search.c (search_fs): Try searching without autoload first.
17116 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Load
17117 filesystem module explicitly for faster booting.
17118
5174302b 171192009-08-23 Colin Watson <cjwatson@ubuntu.com>
17120
17121 * util/grub-mkconfig.in: Export GRUB_DISABLE_OS_PROBER.
17122
c8c80635 171232009-08-23 Colin Watson <cjwatson@ubuntu.com>
17124
17125 * util/grub.d/30_os-prober.in: Disable os-prober if
17126 `GRUB_DISABLE_OS_PROBER' was set to true.
17127
71acf5e5 171282009-08-23 Robert Millan <rmh.grub@aybabtu.com>
17129
17130 * partmap/pc.c: Rename to ...
17131 * partmap/msdos.c: ... this. Update all users.
17132 (grub_pc_partition_map): Rename to ...
17133 (grub_msdos_partition_map): ... this. Update all users.
17134
17135 * parttool/pcpart.c: Rename to ...
17136 * parttool/msdospart.c: ... this. Update all users.
17137
17138 * include/grub/pc_partition.h: Rename to ...
17139 * include/grub/msdos_partition.h: ... this. Update all users.
17140 (grub_pc_partition_bsd_entry): Rename to ...
17141 (grub_msdos_partition_bsd_entry): ... this. Update all users.
17142 (grub_pc_partition_disk_label): Rename to ...
17143 (grub_msdos_partition_disk_label): ... this. Update all users.
17144 (grub_pc_partition_entry): Rename to ...
17145 (grub_msdos_partition_entry): ... this. Update all users.
17146 (grub_pc_partition_mbr): Rename to ...
17147 (grub_msdos_partition_mbr): ... this. Update all users.
17148 (grub_pc_partition): Rename to ...
17149 (grub_msdos_partition): ... this. Update all users.
17150 (grub_pc_partition_is_empty): Rename to ...
17151 (grub_msdos_partition_is_empty): ... this. Update all users.
17152 (grub_pc_partition_is_extended): Rename to ...
17153 (grub_msdos_partition_is_extended): ... this. Update all users.
17154 (grub_pc_partition_is_bsd): Rename to ...
17155 (grub_msdos_partition_is_bsd): ... this. Update all users.
17156
17157 * conf/common.rmk (amiga_mod_SOURCES, amiga_mod_CFLAGS)
17158 (amiga_mod_LDFLAGS, apple_mod_SOURCES, apple_mod_CFLAGS)
17159 (apple_mod_LDFLAGS, msdos_mod_SOURCES, msdos_mod_CFLAGS)
17160 (msdos_mod_LDFLAGS, sun_mod_SOURCES, sun_mod_CFLAGS)
17161 (sun_mod_LDFLAGS, acorn_mod_SOURCES, acorn_mod_CFLAGS)
17162 (acorn_mod_LDFLAGS, gpt_mod_SOURCES, gpt_mod_CFLAGS)
17163 (gpt_mod_LDFLAGS): Rename to ...
17164 (part_amiga_mod_SOURCES, part_amiga_mod_CFLAGS, part_amiga_mod_LDFLAGS)
17165 (part_apple_mod_SOURCES, part_apple_mod_CFLAGS, part_apple_mod_LDFLAGS)
17166 (part_msdos_mod_SOURCES, part_msdos_mod_CFLAGS, part_msdos_mod_LDFLAGS)
17167 (part_sun_mod_SOURCES, part_sun_mod_CFLAGS, part_sun_mod_LDFLAGS)
17168 (part_acorn_mod_SOURCES, part_acorn_mod_CFLAGS, part_acorn_mod_LDFLAGS)
17169 (part_gpt_mod_SOURCES, part_gpt_mod_CFLAGS)
17170 (part_gpt_mod_LDFLAGS): ... this.
17171 (pkglib_MODULES): Prefix partition modules with `part_'. Rename
17172 `pcpart.mod' to `msdospart.mod'.
17173 (pcpart_mod_SOURCES, pcpart_mod_CFLAGS, pcpart_mod_LDFLAGS): Rename
17174 to ...
17175 (msdospart_mod_SOURCES, msdospart_mod_CFLAGS)
17176 (msdospart_mod_LDFLAGS): ... this.
17177
c11fded5 171782009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
17179
17180 * loader/i386/bsd.c (freebsd_opts): Rewritten to use extcmd.
17181 (openbsd_opts): Likewise.
17182 (netbsd_opts): Likewise.
17183 (freebsd_flags): Added 0 terminator.
17184 (openbsd_flags): Likewise.
17185 (netbsd_flags): Likewise.
17186 (grub_bsd_parse_flags): Rewritten to use extcmd. All users updated.
17187 (grub_cmd_freebsd): Transformed into extended command.
17188 (grub_cmd_openbsd): Likewise.
17189 (grub_cmd_netbsd): Likewise.
17190 (cmd_freebsd): Changed type to grub_extcmd_t.
17191 (cmd_openbsd): Likewise.
17192 (cmd_netbsd): Likewise.
17193 (GRUB_MOD_INIT (bsd)): Register grub_cmd_freebsd, grub_cmd_netbsd and
17194 grub_cmd_openbsd as extended commands.
17195 (GRUB_MOD_FINI (bsd)): Use grub_unregister_extcmd for cmd_freebsd,
17196 cmd_netbsd and cmd_openbsd
17197
11d1c769 171982009-08-22 Vladimir Serbinenko <phcoder@gmail.com>
17199
17200 * commands/xnu_uuid.c (transform): Use grub_memcpy instead of memcpy.
17201
7a9094e5 172022009-08-21 Pavel Roskin <proski@gnu.org>
17203
5496c37e 17204 * Makefile.in (install-local): When checking if a file is in the
17205 build directory, use "test -e" to detect symlinks.
17206
7a9094e5 17207 * Makefile.in (install-local): Remove all files in
17208 $(DESTDIR)$(pkglibdir) before installing new files there.
17209
e53cea11 172102009-08-18 Felix Zielcke <fzielcke@z-51.de>
17211
17212 * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Use
17213 grub-mkelfimage.
17214
9aced544 172152009-08-18 Felix Zielcke <fzielcke@z-51.de>
17216
17217 * util/grub-mkconfig.in: Don't use gfxterm by default if not
17218 explicitly specified by the user.
17219
b7da6bab 172202009-08-18 Pavel Roskin <proski@gnu.org>
17221
17222 * include/grub/fbfill.h (struct grub_video_fbrender_target): Use
17223 grub_uint8_t pointer for data.
17224 * include/grub/fbutil.h (struct grub_video_fbblit_info):
17225 Likewise.
17226 * video/fb/fbutil.c: Remove unnecessary casts.
17227
19f1b335 172282009-08-17 Michal Suchanek <hramrach@centrum.cz>
17229
17230 VBE cleanup.
17231
17232 * video/i386/pc/vbe.c (vbe_mode_in_use): Removed (duplicate).
17233 (grub_vbe_set_video_mode): Save active mode info
17234 only after setting the mode.
17235 (grub_video_vbe_setup): Call 'grub_vbe_set_video_mode' with NULL as
17236 second argument.
17237
2f467aa9 172382009-08-17 Michal Suchanek <hramrach@centrum.cz>
17239
17240 Rename variables for clarity.
17241
17242 * video/i386/pc/vbe.c (active_mode_info): Renamed to ...
17243 (active_vbe_mode_info): ... this. All users updated.
17244 (framebuffer): Rename 'active_mode' to 'active_vbe_mode'.
17245 All users updated.
17246 (initial_mode): Rename to ...
17247 (initial_vbe_mode): ... this. All users updated.
17248 (mode_in_use): Rename to ..
17249 (vbe_mode_in_use): ... this. All users updated.
17250 (mode_list): Rename to ..
17251 (vbe_mode_list): ... this. All users updated.
17252 (grub_vbe_set_video_mode): Rename 'mode' to 'vbe_mode', 'mode_info' to
17253 'vbe_mode_info' and 'old_mode' to 'old_vbe_mode'.
17254 (grub_video_vbe_init): Rename 'rm_mode_list' to 'rm_vbe_mode_list' and
17255 'mode_list_size' to 'vbe_mode_list_size'.
17256 (grub_video_vbe_setup): Rename 'mode_info' to 'vbe_mode_info',
17257 'best_mode_info' to 'best_vbe_mode_info' and
17258 'best_mode' to 'best_vbe_mode'
17259
6025fcd7 172602009-08-17 Michal Suchanek <hramrach@centrum.cz>
17261
17262 Remove duplicate grub_video_fb_get_video_ptr.
17263
17264 * include/grub/fbutil.h (get_data_ptr): Rename to ...
17265 (grub_video_fb_get_video_ptr): ... this.
17266 * include/grub/video_fb.h (grub_video_fb_get_video_ptr): Removed.
17267 * video/fb/fbutil.c: Add comment about addressing.
17268 (get_data_ptr): Rename to ...
17269 (grub_video_fb_get_video_ptr): ... this. All users updated.
17270 * video/fb/video_fb.c (grub_video_fb_get_video_ptr): Remove.
17271
cc8c6faf 172722009-08-17 Robert Millan <rmh.grub@aybabtu.com>
17273
17274 * fs/fat.c (grub_fat_read_data): Remove `#if 0' braces around the
17275 grub_dprintf() that was just added.
17276
08aa61f0 172772009-08-17 Robert Millan <rmh.grub@aybabtu.com>
17278
17279 * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT)
17280 (DEFAULT_VIDEO_MODE): Remove macros.
17281 (grub_linux_boot): Remove assumption that Linux has FB support,
17282 and use "text" as default video mode.
17283
7cef4f75 172842009-08-15 Vladimir Serbinenko <phcoder@gmail.com>
17285
17286 * fs/affs.c (grub_affs_read_symlink): Change leftover grub_printf into
17287 grub_dprintf.
17288 * fs/fat.c (grub_fat_read_data): Likewise.
17289
e1f39873 172902009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
17291
17292 * loader/i386/multiboot.c (grub_multiboot): Don't pass filename to
17293 payload.
17294 (grub_module): Likewise.
17295
c166d79e 172962009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
17297
17298 * loader/i386/multiboot.c (grub_multiboot_unload): Don't free mbi and
17299 mbi->cmdline but free playground.
17300
c60cee8e 173012009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
17302
17303 Handle group offset on UFS1.
17304
17305 * fs/ufs.c (grub_ufs_sblock): New field 'cylg_mask'.
17306 (grub_ufs_read_inode) [!MODE_UFS2]: handle cylg_offset and cylg_mask.
17307
c0d8b5d4 173082009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
17309
17310 Split ufs.mod into ufs1.mod and ufs2.mod.
17311
17312 * conf/common.rmk (grub_probe_SOURCES): Add fs/ufs2.c.
17313 (grub_fstest_SOURCES): Likewise.
17314 (pkglib_MODULES): Remove ufs.mod. Add ufs1.mod and ufs2.mod.
17315 (ufs_mod_SOURCES): Remove.
17316 (ufs_mod_CFLAGS): Likewise.
17317 (ufs_mod_LDFLAGS): Likewise.
17318 (ufs1_mod_SOURCES): New variable.
17319 (ufs1_mod_CFLAGS): Likewise.
17320 (ufs1_mod_LDFLAGS): Likewise.
25fbd77a 17321 (ufs2_mod_SOURCES): New variable.
17322 (ufs2_mod_CFLAGS): Likewise.
17323 (ufs2_mod_LDFLAGS): Likewise.
c0d8b5d4 17324 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add fs/ufs2.c.
17325 * conf/i386-efi.rmk (util/i386/efi/grub-mkimage.c_DEPENDENCIES):
17326 Likewise.
17327 (grub_emu_SOURCES): Likewise.
17328 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
17329 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
17330 (grub_setup_SOURCES): Likewise.
17331 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
17332 * conf/sparc64.rmk (grub_emu_SOURCES): Likewise.
17333 (grub_setup_SOURCES): Likewise.
17334 * conf/x86_64-efi.rmk (util/i386/efi/grub-mkimage.c_DEPENDENCIES):
17335 Likewise.
17336 * fs/ufs2.c: New file.
17337 * fs/ufs.c: Separate UFS1 from UFS2 by using preprocessor.
17338
d3539132 173392009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
17340
17341 Framebuffer split.
17342
17343 * commands/i386/pc/vbetest.c (grub_cmd_vbetest): Restore video
17344 subsystem at the end.
17345 * conf/common.rmk (pkglib_MODULES): Add video_fb.mod.
17346 (video_fb_mod_SOURCES): New variable.
17347 (video_fb_mod_CFLAGS): Likewise.
17348 (video_fb_mod_LDFLAGS): Likewise.
17349 * conf/i386-pc.rmk (vbe_mod_SOURCES): Remove video/i386/pc/vbeblit.c,
17350 video/i386/pc/vbefill.c and video/i386/pc/vbeutil.c.
17351 * video/i386/pc/vbeblit.c: Moved from here ...
17352 * video/fb/fbblit.c: ..here. Replaced 'vbe' with 'fb'.
17353 * video/i386/pc/vbefill.c: Moved from here ...
17354 * video/fb/fbfill.c: ..here. Replaced 'vbe' with 'fb'.
17355 * video/i386/pc/vbeutil.c: Moved from here ...
17356 * video/fb/fbutil.c: ..here. Replaced 'vbe' with 'fb'.
17357 * include/grub/i386/pc/vbeblit.h: Moved from here ...
17358 * include/grub/fbblit.h: ... here. Replaced 'vbe' with 'fb'.
17359 * include/grub/i386/pc/vbefill.h: Moved from here ...
17360 * include/grub/fbfill.h: ... here. Replaced 'vbe' with 'fb'.
17361 * include/grub/i386/pc/vbeutil.h: Moved from here ...
17362 * include/grub/fbutil.h: ... here. Replaced 'vbe' with 'fb'.
17363 * include/grub/i386/pc/vbe.h: Moved framebuffer part ...
17364 * include/grub/video_fb.h: ... here. Replaced 'vbe' with 'fb'.
17365 * include/grub/video.h (GRUB_VIDEO_RENDER_TARGET_FRONT_BUFFER): Removed.
17366 (GRUB_VIDEO_RENDER_TARGET_BACK_BUFFER): Likewise.
17367 (grub_video_adapter): Added 'get_info_and_fini'.
17368 (grub_video_get_info_and_fini): New prototype.
17369 (grub_video_set_mode): make modestring const char *.
17370 * loader/i386/linux.c (grub_linux_setup_video): Use
17371 grub_video_get_info_and_fini.
17372 (grub_linux_boot): Move modesetting just before booting.
17373 * loader/i386/pc/xnu.c (grub_xnu_set_video): Use
17374 grub_video_get_info_and_fini.
17375 * video/i386/pc/vbe.c: Moved framebuffer part ...
17376 * video/fb/video_fb.c: ... here. Replaced 'vbe' with 'fb'.
17377 * video/i386/pc/vbe.c (grub_vbe_set_video_mode): Use
17378 grub_video_fbstd_colors and grub_video_fb_set_palette.
17379 (grub_video_vbe_init): Clear 'framebuffer' variable and use
17380 grub_video_fb_init.
17381 (grub_video_vbe_fini): Use grub_video_fb_fini.
17382 (grub_video_vbe_setup): Use framebuffer.render_target instead of
17383 render_target and use grub_video_fb_set_active_render_target and
17384 grub_video_fb_set_palette.
17385 (grub_video_vbe_set_palette): Use grub_video_fb_set_palette.
17386 (grub_video_vbe_set_viewport): Use grub_video_fb_set_viewport.
17387 (grub_video_vbe_adapter): Use framebuffer.
17388 * video/video.c (grub_video_get_info_and_fini): New function.
17389 (grub_video_set_mode): Make modestring const char *.
17390 (GRUB_MOD_INIT(video_video)): Don't set variables to 0 since these
17391 values are already initialised.
17392
d404ee56 173932009-08-14 Pavel Roskin <proski@gnu.org>
17394
17395 * boot/i386/pc/cdboot.S: Use LOCAL for local labels. Eliminate
17396 ABS and APPLE_CC.
17397 * boot/i386/pc/diskboot.S: Likewise.
17398 * boot/i386/pc/lnxboot.S: Likewise. Hardcode the number of code
17399 sectors allow compilation on MacOSX.
17400 * conf/i386-pc.rmk: Enable unconditional compilation of
17401 lnxboot.img.
17402
9a10df16 174032009-08-13 Colin Watson <cjwatson@ubuntu.com>
17404
17405 * util/grub-mkconfig.in: Export GRUB_HIDDEN_TIMEOUT.
17406 * util/grub.d/00_header.in: Enter interruptible sleep if
17407 GRUB_HIDDEN_TIMEOUT is set.
17408
be3c9ca7 174092009-08-13 Yves Blusseau <blusseau@zetam.org>
17410
17411 * include/grub/symbol.h: Add the LOCAL macro.
17412 * boot/i386/pc/boot.S: Use the LOCAL macro for all labels
17413 starting with "L_".
17414
1f9e557e 174152009-08-13 Pavel Roskin <proski@gnu.org>
17416
9ca62843 17417 * boot/i386/pc/boot.S: Remove ABS macro, it's not required by
17418 any modern compilers we support.
17419
1f9e557e 17420 * boot/i386/pc/boot.S: Remove all code dependent on APPLE_CC.
17421 Use local labels starting with "L_" so that Apple assembler
17422 knows they are local.
17423
81623db6 174242009-08-10 Robert Millan <rmh.grub@aybabtu.com>
17425
17426 * include/grub/i386/bsd.h (KERNEL_TYPE_NONE, KERNEL_TYPE_FREEBSD)
17427 (KERNEL_TYPE_OPENBSD, KERNEL_TYPE_NETBSD): Convert to ...
17428 (bsd_kernel_types): ... this enum.
17429
17430 * loader/i386/bsd.c (grub_cmd_freebsd_loadenv, grub_cmd_freebsd_module)
17431 (grub_cmd_freebsd_module_elf): Abort with "You need to load the
17432 kernel first." when `kernel_type' is set to KERNEL_TYPE_NONE.
17433
17434 (grub_bsd_load_aout, grub_bsd_load, grub_cmd_freebsd_loadenv)
17435 (grub_cmd_freebsd_module, grub_cmd_freebsd_module_elf)
17436 (GRUB_MOD_INIT (bsd)): Fix capitalization in a few error
17437 messages.
17438
f5d35e7a 174392009-08-08 Robert Millan <rmh.grub@aybabtu.com>
17440
17441 * util/grub-dumpdevtree: Moved from here ...
17442 * util/i386/efi/grub-dumpdevtree: ... to here.
17443 (hexify): New function. Converts a string to its hex version.
17444 Generate hex versions of "efi" and "device-properties" by calling
17445 hexify() on the ASCII strings rather than by hardcoding numbers.
17446
d1e1d527 174472009-08-08 Robert Millan <rmh.grub@aybabtu.com>
17448
17449 * fs/jfs.c: Update copyright year.
17450
1ebbe064 174512009-08-08 Felix Zielcke <fzielcke@z-51.de>
17452
17453 * util/grub.d/00_header.in: Fix a comment.
17454 * util/grub.d/10_linux.in: Likewise.
17455 * util/grub.d/10_windows.in: Likewise.
17456 * util/grub.d/10_hurd.in: Likewise.
17457
a78c8d24 174582009-08-08 Felix Zielcke <fzielcke@z-51.de>
17459
17460 * util/grub-mkconfig.in: Allow the user to specify the used font
17461 with GRUB_FONT.
17462
29a6b9e8 174632009-08-08 Pavel Roskin <proski@gnu.org>
17464
b5f16cc4 17465 * include/grub/powerpc/libgcc.h: Export __ashrdi3() if
17466 available, xfs.mod needs it now.
17467
2f5cb827 17468 * util/grub-mkconfig_lib.in (version_test_numeric): Don't use
17469 the "g" modifier in sed when the intention is to strip something
17470 once. This fixes comparison of kernels with multiple dashes.
17471
29a6b9e8 17472 * util/grub-mkconfig.in: Define datarootdir, datadir may depend
17473 on it. Add missing space before closing bracket. Fix
17474 misleading formatting.
17475
892a3d98 174762009-08-07 Robert Millan <rmh.grub@aybabtu.com>
17477
17478 * docs/grub.texi: Major overhaul. Remove all sections that are
17479 specific to GRUB Legacy, or mostly composed of Legacy-specific
17480 information.
17481
ed94253f 174822009-08-07 Robert Millan <rmh.grub@aybabtu.com>
17483
17484 * docs/version.texi: New file. Provides version information for
17485 grub.texi.
17486
126d6628 174872009-08-07 Robert Millan <rmh.grub@aybabtu.com>
17488
17489 * docs/grub.texi: Update CVS information to SVN.
17490 Replace outdated "GRUB 2 will include" phrase with "GRUB 2 includes".
17491
998b5aa9 174922009-08-07 Felix Zielcke <fzielcke@z-51.de>
17493
17494 * util/grub-mkconfig.in: Remove a wrong `fi'.
17495
818e094a 174962009-08-07 Felix Zielcke <fzielcke@z-51.de>
17497
17498 * fs/uuid.c (grub_jfs_superblock): New fields unused2 and uuid.
17499 (grub_jfs_uuid): New function.
17500 (grub_jfs_fs): Set uuid field to grub_jfs_uuid.
17501
b969c52f 175022009-08-07 Felix Zielcke <fzielcke@z-51.de>
17503
17504 * util/grub-mkconfig_lib.in (font_path): Move the functionality
17505 of it to ...
17506 * util/grub-mkconfig.in: ... here. Prefer unicode.pf2 and
17507 unifont.pf2 over ascii.pf2. Export LANG=C in case ascii.pf2 gets used.
17508
7a4894cc 175092009-08-07 Robert Millan <rmh.grub@aybabtu.com>
17510
17511 * util/grub.d/10_linux.in (test_numeric): Moved from here ...
17512 * util/grub-mkconfig_lib.in (version_test_numeric): ... to here.
17513 Update all users.
17514
17515 * util/grub.d/10_linux.in (test_gt): Strip any basename prefix,
17516 not just "vmlinu[zx]".
17517 Moved from here ...
17518 * util/grub-mkconfig_lib.in (version_test_gt): ... to here. Update
17519 all users.
17520
17521 * util/grub.d/10_linux.in (find_latest): Moved from here ...
17522 * util/grub-mkconfig_lib.in (version_find_latest): ... to here. Update
17523 all users.
17524
4e2171f8 175252009-08-07 Robert Millan <rmh.grub@aybabtu.com>
17526
17527 * util/grub.d/10_freebsd.in: Use an absolute device path for
17528 `vfs.root.mountfrom'. Set `vfs.root.mountfrom.options=rw'.
17529
6dcfcb32 175302009-08-06 Felix Zielcke <fzielcke@z-51.de>
17531
17532 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Fix
17533 handling of multiple abstraction modules.
17534
f56a8756 175352009-08-04 Robert Millan <rmh.grub@aybabtu.com>
17536
17537 Fix a bug resulting in black screen when loading Linux using a
17538 packed video mode.
17539
17540 * kern/i386/pc/startup.S (grub_vbe_bios_getset_dac_palette_width): New
17541 function.
17542
17543 * include/grub/i386/pc/vbe.h (GRUB_VBE_CAPABILITY_DACWIDTH): New macro.
17544 (grub_vbe_bios_getset_dac_palette_width): New function.
17545 (grub_vbe_bios_get_dac_palette_width)
17546 (grub_vbe_bios_set_dac_palette_width): New macros (act as wrappers for
17547 grub_vbe_bios_getset_dac_palette_width()).
17548
17549 * video/i386/pc/vbe.c (grub_vbe_probe): Use `GRUB_VBE_STATUS_OK' to
17550 check for return status.
17551 (grub_vbe_get_video_mode_info): When getting information for a packed
17552 mode (<= 8 bpp), obtain DAC palette width using
17553 grub_vbe_bios_getset_dac_palette_width(), and use that for initializing
17554 {red,green,blue}_mark_size.
17555
222671b2 175562009-08-04 Felix Zielcke <fzielcke@z-51.de>
17557
ecb1a6d9 17558 * commands/search.c (options): Fix help output to match actual code.
222671b2 17559
f84114f5 175602009-08-02 Vladimir Serbinenko <phcoder@gmail.com>
17561
17562 * commands/hexdump.c (grub_cmd_hexdump): Use grub_disk_read instead
17563 of homegrown code.
17564
bd288a20 175652009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
e768b770 17566
17567 * util/hostfs.c (grub_hostfs_dir): Don't use DT_DIR: It doesn't work
17568 on XFS or ReiserFS.
17569
8aab5e25 175702009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
17571
17572 Support Apple partition map with sector size different from 512 bytes.
17573
17574 * partmap/apple.c (grub_apple_header): New field 'blocksize'.
17575 (apple_partition_map_iterate): Respect 'aheader.blocksize'
17576 and 'apart.partmap_size'.
17577
6ad6258a 175782009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
175792009-08-01 Robert Millan <rmh.grub@aybabtu.com>
17580
17581 Fix cpuid command.
17582
17583 * commands/i386/cpuid.c (options): New variable.
17584 (grub_cmd_cpuid): Return real error.
17585 (GRUB_MOD_INIT(cpuid)): Declare options.
17586
67459bc6 175872009-07-31 Vladimir Serbinenko <phcoder@gmail.com>
17588
17589 * partmap/pc.c (pc_partition_map_iterate): Check that boot flags are
17590 valid.
17591
fbc6ab54 175922009-07-31 Bean <bean123ch@gmail.com>
17593
17594 * fs/xfs.c (grub_xfs_sblock): Change unused5 field to log2_sect and
17595 log2_inode.
17596 (grub_fshelp_node): Move inode field to the end.
17597 (grub_xfs_data): Remove inode field.
17598 (grub_xfs_inode_block): Calculate inode size using sblock.
17599 (grub_xfs_inode_offset): Likewise.
17600 (grub_xfs_read_inode): Calculate inode size using sblock.
17601 (grub_xfs_read_block): Replace XFS_INODE_EXTENTS with nrec.
17602 (grub_xfs_iterate_dir): Calculate inode size using sblock.
17603 (grub_xfs_mount): Use grub_zalloc instead of grub_malloc. Realloc data
17604 to match inode size.
17605 (grub_xfs_dir): goto mount_fail when mount fails, as data->diropen is
17606 not accessible when data is null.
17607 (grub_xfs_open): Likewise.
17608
f45d6cfc 176092009-07-31 Bean <bean123ch@gmail.com>
17610
17611 * disk/lvm.c (grub_lvm_scan_device): Ignore extra copy of metadata.
17612 Don't change pv->disk if it's already set.
17613
17614 * disk/raid.c (grub_raid_scan_device): Merge this function into ...
17615 (grub_raid_register): ... here.
17616 (grub_raid_rescan): Removed.
17617
17618 * include/grub/raid.h (grub_raid_rescan): Removed.
17619
17620 * util/grub-fstest.c: Remove include file <grub/raid.h>.
17621 (fstest): Replace grub_raid_rescan with module fini function followed
17622 by init function.
17623
17624 * util/grub-probe.c: Add include file <grub/raid.h>.
17625 (probe_raid_level): New function.
17626 (probe): Detect abstraction by walking the disk device, support two
17627 level of abstraction (LVM on RAID) when detecting partition map.
17628
24443b5a 176292009-07-31 Pavel Roskin <proski@gnu.org>
17630
17631 * disk/raid5_recover.c (grub_raid5_recover): Revert conversion
17632 to grub_zalloc(), it was erroneous.
17633 Reported by Bean <bean123ch@gmail.com>
17634
a275d9e7 176352009-07-30 Vladimir Serbinenko <phcoder@gmail.com>
17636
17637 * util/i386/pc/grub-setup.c (setup): Check that no partition is in
ad8ea1f4 17638 embedding zone, not only the first one.
a275d9e7 17639
56c5a47f 176402009-07-29 Joe Auricchio <jauricchio@gmail.com>
17641
17642 * term/gfxterm.c (clear_char): New function.
17643 (grub_virtual_screen_setup): Use clear_char.
17644 (scroll_up): Likewise.
17645 (grub_virtual_screen_cls): Likewise.
17646
67bb323a 176472009-07-29 Felix Zielcke <fzielcke@z-51.de>
17648
17649 * util/deviceiter.c (get_acceleraid_disk_name): New static
17650 function.
17651 (grub_util_iterate_devices): Handle Accelraid devices.
17652 * util/hostdisk.c (convert_system_partition_to_system_disk): Likewise.
17653
388a7c75 176542009-07-28 Robert Millan <rmh.grub@aybabtu.com>
17655
17656 * loader/i386/linux.c (grub_cmd_linux): Use ',' rather than ';' as
17657 separator for the suggested gfxpayload string (';' collides with the
17658 parser and needs escaping).
17659
3bb7abcf 176602009-07-28 Vladimir Serbinenko <phcoder@gmail.com>
17661
17662 * loader/i386/multiboot_helper.S (grub_multiboot_backward_relocator):
17663 Clear direction flag before jumping to OS.
17664 (grub_multiboot2_real_boot): Likewise.
17665
2ddd36d7 176662009-07-28 Felix Zielcke <fzielcke@z-51.de>
17667
17668 * util/i386/pc/grub-install: Fix parsing of --disk-module
17669 option.
17670
c521b62b 176712009-07-28 Felix Zielcke <fzielcke@z-51.de>
17672
17673 * util/i386/pc/grub-setup.c (setup): Fix 2 incorrect checks
17674 when embedding.
17675
880e0a0c 176762009-07-26 Felix Zielcke <fzielcke@z-51.de>
17677
17678 * util/grub-mkconfig.in (package_version): New variable.
17679 Use it do display the version.
17680
2366e356 176812009-07-25 Felix Zielcke <fzielcke@z-51.de>
17682
17683 * kern/file.c (grub_file_open): Revert to previous check with
17684 grub_errno.
17685
7ad8c80e 176862009-07-25 Vladimir Serbinenko <phcoder@gmail.com>
17687
17688 * commands/probe.c (GRUB_MOD_INIT (probe)): Remove "[--target=target]"
17689 from help line. It's out of sync with code.
17690
72b9658b 176912009-07-25 Vladimir Serbinenko <phcoder@gmail.com>
17692
17693 * kern/parser.c (grub_parser_execute): Fix a bug causing truncated
17694 entries on failed boot.
17695
77435277 176962009-07-25 Felix Zielcke <fzielcke@z-51.de>
17697
17698 * kern/file.c (grub_file_open): Fix an error check.
17699
fcaa8b21 177002009-07-24 Vladimir Serbinenko <phcoder@gmail.com>
17701
35d16c74 17702 * util/i386/pc/grub-setup.c (setup): Fix segmentation fault when
17703 partition map couldn't be identified.
fcaa8b21 17704
48904cd1 177052009-07-23 Pavel Roskin <proski@gnu.org>
17706
ef3c317f 17707 * commands/xnu_uuid.c (transform): Use GRUB_CPU_WORDS_BIGENDIAN
17708 instead of WORDS_BIGENDIAN. Use grub_le_to_cpu32(), so that the
17709 case of little endian words becomes just an optimization.
17710 Respect const modifier.
ad8ea1f4 17711 (md5_final): Use code that doesn't depend on endianness.
ef3c317f 17712
48904cd1 17713 * include/grub/misc.h (ALIGN_UP): Cast align to the type of addr
17714 to avoid loss of upper bits if align is unsigned and shorter
17715 than addr.
17716
260c9a89 177172009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
17718
17719 UUID support for UFS
17720
17721 * fs/ufs.c (grub_ufs_sblock): Add uuidhi and uuidlow.
17722 (grub_ufs_uuid): New function.
17723 (grub_ufs_fs): add .uuid
17724
f76ce889 177252009-07-21 Pavel Roskin <proski@gnu.org>
17726
17727 * kern/dl.c (grub_dl_check_header): Make static.
17728
6a6cbcaf 177292009-07-21 Felix Zielcke <fzielcke@z-51.de>
17730
17731 * util/grub.d/30_os-prober.in: Remove unused CHAINROOT. Don't
17732 add drivemap for Vista. It breaks Windows 7.
17733
cffcddb2 177342009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
17735
17736 * fs/ufs.c (grub_ufs_sblock): Fix offset of mtime2 which was off by
17737 128 bytes
17738
1ef44b80 177392009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
17740
17741 Add BFS support
17742
17743 * conf/common.rmk (grub_probe_SOURCES): Add fs/befs.c.
17744 (grub_fstest_SOURCES): Likewise.
17745 (pkglib_MODULES): Add befs.mod.
17746 (befs_mod_SOURCES): New variable.
17747 (befs_mod_CFLAGS): Likewise.
17748 (befs_mod_LDFLAGS): Likewise.
17749 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
17750 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
17751 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
17752 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
17753 (grub_setup_SOURCES): Likewise.
17754 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
17755 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
17756 (grub_setup_SOURCES): Likewise.
17757 * fs/befs.c: New file.
17758 * fs/afs.c (GRUB_AFS_FSNAME): New declaration.
17759 (GRUB_AFS_SBLOCK_SECTOR): Likewise.
17760 (GRUB_AFS_SBLOCK_MAGIC1) [MODE_BFS]: New conditional declaration.
17761 (GRUB_AFS_BTREE_MAGIC) [MODE_BFS]: Likewise
17762 (B_KEY_INDEX_ALIGN): New declaration.
17763 (B_KEY_INDEX_OFFSET): Use B_KEY_INDEX_ALIGN.
17764 (grub_afs_bnode) [MODE_BFS]: Make key_count and key_size 16-bit
17765 (grub_afs_btree) [MODE_BFS]: New conditional declaration.
17766 (grub_afs_sblock) [MODE_BFS]: Remove link_count.
17767 (grub_afs_validate_sblock) [MODE_BFS]: Support BFS
17768 (grub_afs_mount) [MODE_BFS]: Likewise.
17769 (grub_afs_dir) [MODE_BFS]: Divide mtime by 65536 and not 1000000.
17770 (grub_afs_fs): Use GRUB_AFS_FSNAME
17771 (GRUB_MOD_INIT (afs)) [MODE_BFS]: Rename to ...
17772 (GRUB_MOD_INIT (befs)) [MODE_BFS]: ... this
17773 (GRUB_MOD_FINI (afs)) [MODE_BFS]: Rename to ...
17774 (GRUB_MOD_FINI (befs)) [MODE_BFS]: ... this
17775
4f253044 177762009-07-19 Yves BLUSSEAU <yves.grub-devel@zetam.org>
17777
17778 * util/getroot.c (find_root_device): Add support for MacOSX.
17779 * util/hostdisk.c: Likewise.
17780
57a55913 177812009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
17782
17783 * font/font.c (find_glyph): Check whether a font is present to avoid
17784 segmentation fault.
75421ca9 17785
177862009-07-20 Joe Auricchio <jauricchio@gmail.com>
04c7c429 17787
17788 * term/gfxterm.c (grub_virtual_screen_setup): Clear virtual_screen.
17789
e98cd0c2 177902009-07-20 Pavel Roskin <proski@gnu.org>
17791
17792 * configure.ac: Trim excessively wordy excuses.
17793
1d2d169a 177942009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
17795
17796 Add symlink, mtime and label support to AtheFS.
17797
17798 * fs/afs.c (grub_afs_sblock): Declare `name' as char.
17799 (grub_afs_iterate_dir): Handle symlinks.
17800 (grub_afs_open): Use grub_afs_read_symlink.
17801 (grub_afs_dir): Likewise.
17802 Pass mtime.
17803 (grub_afs_label): New function.
17804 (grub_afs_fs): Add grub_afs_label.
17805 (grub_afs_read_symlink): New function.
17806
186f3189 178072009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
17808
17809 Fix AtheFS support.
17810
17811 * fs/afs.c: Fix comments style.
17812 (grub_afs_blockrun): Declare as packed.
17813 (grub_afs_datastream): Likewise.
17814 (grub_afs_bnode): Likewise.
17815 (grub_afs_btree): Likewise.
17816 (grub_afs_sblock): Likewise.
17817 Declare `name' as char.
17818 (grub_afs_inode): Declare as packed.
17819 Change void *vnode to grub_uint32_t unused.
17820 (grub_afs_iterate_dir): Check that key_size is positive.
17821 (grub_afs_mount): Don't read superblock twice.
75421ca9 17822 (grub_afs_dir): Don't free node in case of error,
186f3189 17823 grub_fshelp_find_file already handles this.
17824 (grub_afs_open): Likewise.
17825
5680109e 178262009-07-19 Pavel Roskin <proski@gnu.org>
17827
17828 * Makefile.in: Remove LIBLZO and enable_lzo.
17829 * conf/i386-pc.rmk: Remove lzo support.
17830 * configure.ac: Remove checks for lzo, don't define ENABLE_LZMA.
17831 * include/grub/i386/pc/kernel.h: Define ENABLE_LZMA. Remove lzo
17832 support.
17833 * kern/i386/pc/lzo1x.S: Remove.
17834 * kern/i386/pc/startup.S: Remove lzo support.
17835 * util/i386/pc/grub-mkimage.c: Likewise.
17836
ac70fa32 178372009-07-19 Vladimir Serbinenko <phcoder@gmail.com>
17838
17839 * disk/usbms.c (grub_usbms_transfer): Fix double semicolon.
17840 * fs/xfs.c (grub_xfs_dir): Likewise.
17841 * fs/afs.c (grub_afs_dir): Likewise.
17842 * fs/iso9660.c (grub_iso9660_iterate_dir): Likewise.
17843 (grub_iso9660_open): Likewise.
17844 * fs/jfs.c (grub_jfs_open): Likewise.
17845 * fs/ext2.c (grub_ext2_dir): Likewise.
17846 * include/grub/macho.h (grub_macho_fat_arch): Likewise.
17847 * script/sh/lexer.c (grub_script_yylex): Likewise.
75421ca9 17848
eab58da2 178492009-07-16 Pavel Roskin <proski@gnu.org>
17850
d2838156 17851 * configure.ac: Never add "-c" to CFLAGS.
17852
55c70904 17853 * configure.ac: Fix incorrect comparison for grub_cv_cc_efiemu.
17854
43e6200c 17855 * configure.ac: Fix wrong use of grub_cv_cc_no_red_zone where
17856 grub_cv_cc_efiemu should be used.
17857
ce7a733d 17858 * configure.ac: Typo fixes.
17859
eab58da2 17860 * kern/mm.c (grub_zalloc): New function.
17861 (grub_debug_zalloc): Likewise.
17862 * include/grub/mm.h: Declare grub_zalloc() and
17863 grub_debug_zalloc().
17864 * util/misc.c (grub_zalloc): New function.
17865 * bus/usb/uhci.c (grub_uhci_pci_iter): Use grub_zalloc()
17866 instead of grub_malloc(), remove unneeded initializations.
17867 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Likewise.
17868 * commands/extcmd.c (grub_extcmd_dispatcher): Likewise.
17869 * commands/parttool.c (grub_cmd_parttool): Likewise.
17870 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Likewise.
17871 * disk/raid5_recover.c (grub_raid5_recover): Likewise.
17872 * disk/raid6_recover.c (grub_raid6_recover): Likewise.
17873 * disk/usbms.c (grub_usbms_finddevs): Likewise.
17874 * efiemu/mm.c (grub_efiemu_request_memalign): Likewise.
17875 * efiemu/pnvram.c (grub_efiemu_pnvram): Likewise.
17876 (grub_cmd_efiemu_pnvram): Likewise.
17877 * fs/i386/pc/pxe.c (grub_pxefs_open): Likewise.
17878 * fs/iso9660.c (grub_iso9660_mount): Likewise.
17879 (grub_iso9660_iterate_dir): Likewise.
17880 * fs/jfs.c (grub_jfs_opendir): Likewise.
17881 * fs/ntfs.c (list_file): Likewise.
17882 (grub_ntfs_mount): Likewise.
17883 * kern/disk.c (grub_disk_open): Likewise.
17884 * kern/dl.c (grub_dl_load_core): Likewise.
17885 * kern/elf.c (grub_elf_file): Likewise.
17886 * kern/env.c (grub_env_context_open): Likewise.
17887 (grub_env_set): Likewise.
17888 (grub_env_set_data_slot): Likewise.
17889 * kern/file.c (grub_file_open): Likewise.
17890 * kern/fs.c (grub_fs_blocklist_open): Likewise.
17891 * loader/i386/multiboot.c (grub_module): Likewise.
17892 * loader/xnu.c (grub_xnu_create_key): Likewise.
17893 (grub_xnu_create_value): Likewise.
17894 * normal/main.c (grub_normal_add_menu_entry): Likewise.
17895 (read_config_file): Likewise.
17896 * normal/menu_entry.c (make_screen): Likewise.
17897 * partmap/sun.c (sun_partition_map_iterate): Likewise.
17898 * script/sh/lexer.c (grub_script_lexer_init): Likewise.
17899 * script/sh/script.c (grub_script_parse): Likewise.
17900 * video/bitmap.c (grub_video_bitmap_create): Likewise.
17901 * video/readers/jpeg.c (grub_video_reader_jpeg): Likewise.
17902 * video/readers/png.c (grub_png_output_byte): Likewise.
17903 (grub_video_reader_png): Likewise.
17904
830afef7 179052009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
5ce5507f 17906
17907 Enable all targets that can be built by default
17908
830afef7 17909 * configure.ac: enable efiemu runtime, grub-emu, grub-emu-usb,
5ce5507f 17910 grub-mkfont and grub-fstest if they can be built
17911
ee293aee 179122009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
17913
17914 Fix hang and segmentation fault in grub-emu-usb
17915
17916 * disk/scsi.c (grub_scsi_open): return err and not grub_errno
17917 * util/usb.c (grub_libusb_devices): likewise
17918 (grub_libusb_init): rename to ...
17919 (GRUB_MOD_INIT (libusb)):...this
17920 (grub_libusb_fini): rename to ..
17921 (GRUB_MOD_FINI (libusb)):...this
17922 * disk/usbms.c (grub_usbms_transfer): fix retry logic
17923 * include/grub/disk.h (grub_raid_init): removed, it's useless
17924 (grub_raid_fini): likewise
17925 (grub_lvm_init): likewise
17926 (grub_lvm_fini): likewise
17927 * util/grub-emu.c (main): don't call grub_libusb_init, it's done
17928 by grub_init_all
17929
94414221 179302009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
17931
17932 Fix libusb
17933
17934 * Makefile.in (LIBUSB): new macro
17935 * genmk.rb (Utility/print_tail): new method
17936 (Utility/rule): use intermediary variable #{prefix}_OBJECTS
17937 (top level): call util.print_tail at the end.
17938
59ade63d 179392009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
17940
17941 Make FreeBSD accept zpool.cache
17942
17943 * loader/i386/bsd.c (grub_freebsd_add_meta_module): spoof filename if
17944 type is /boot/zfs/zpool.cache
17945
a58da8c7 179462009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
17947
17948 Fix 64-bit efiemu
17949
17950 * include/grub/efiemu/efiemu.h (grub_efiemu_configuration_table64_t):
17951 correct wrong typedef
17952 * efiemu/prepare.c (SUFFIX (grub_efiemu_prepare)): minor style fixes
17953
20591577 179542009-07-15 Pavel Roskin <proski@gnu.org>
17955
560ca572 17956 * include/grub/disk.h (struct grub_disk_dev): Use enum for id.
17957 * kern/disk.c (struct grub_disk_cache): Likewise.
17958
e8e8e4fd 17959 * commands/probe.c (options): Typo fix.
17960
fde24e10 17961 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_BPB_END):
17962 Increase to 0x5a to accommodate FAT32. Adjust other offsets
17963 accordingly.
17964 Original patch by Yves Blusseau <yves.grub-devel@zetam.org>
17965
379c54c1 17966 * boot/i386/pc/boot.S (general_error_string): Add DOS newline at
17967 the end of "Error" to make the message more readable.
17968
7bd8f5bf 17969 * boot/i386/pc/boot.S (kernel_segment): Remove.
17970 (copy_buffer): Use GRUB_BOOT_MACHINE_KERNEL_ADDR in segment 0
17971 for destination.
17972
40b132c5 17973 * boot/i386/pc/boot.S (boot_version): Remove.
17974 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_VER_MAJ):
17975 Remove.
17976
20591577 17977 * include/grub/i386/pc/boot.h: Sort all offsets.
17978 (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Remove, it's unused.
17979 (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Likewise.
17980 * boot/i386/pc/boot.S: Assert location of every offset listed in
17981 include/grub/i386/pc/boot.h.
17982
2df32b2c 179832009-07-13 Pavel Roskin <proski@gnu.org>
17984
44b5d879 17985 * include/grub/i386/coreboot/machine.h: Rename
17986 GRUB_MACHINE_LINUXBIOS to GRUB_MACHINE_COREBOOT.
17987 * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Allow
17988 multiboot 1 for GRUB_MACHINE_COREBOOT and GRUB_MACHINE_QEMU.
17989
17dc3751 17990 * kern/dl.c: Force native word size to suppress warnings when
17991 compiling grub-emu.
17992
2df32b2c 17993 * kern/device.c (grub_device_iterate): Change struct part_ent to
17994 hold the name, not a pointer to it. Use one grub_malloc() per
17995 partition, not two. Free partition_name if grub_malloc() fails.
17996 Set ents to NULL only before grub_partition_iterate() is called.
17997
75c59f59 179982009-07-11 Bean <bean123ch@gmail.com>
17999
18000 * kern/ieee1275/openfw.c (grub_children_iterate): Fix size of
18001 childname.
18002
0ae1bf88 180032009-07-10 Bean <bean123ch@gmail.com>
180042009-07-10 Robert Millan <rmh.grub@aybabtu.com>
18005
18006 * kern/ieee1275/openfw.c (grub_children_iterate)
18007 (grub_devalias_iterate): Fix size evaluation for property or path
18008 strings, which was broken since r2132.
18009
8279cade 180102009-07-07 Pavel Roskin <proski@gnu.org>
18011
7d8a52d3 18012 * commands/search.c (search_file): Merge into ...
18013 (search_fs): ... this. Accept search type as argument.
18014 (grub_cmd_search): Pass search type to search_fs().
18015
25f9a05a 18016 * include/grub/util/console.h: New file.
18017 * util/console.c: Use it instead of grub/machine/console.h.
18018 * util/grub-emu.c: Likewise.
18019
8279cade 18020 * lib/arg.c (find_long_option): Remove.
18021 (find_long): Add `len' argument, make `s' const char *.
18022 (grub_arg_parse): Parse long options in place, not in a
18023 temporary buffer.
18024
4a11b60f 180252009-07-06 Pavel Roskin <proski@gnu.org>
18026
99f68041 18027 * commands/search.c (search_fs): Fix potential NULL pointer
18028 dereference.
18029
4a11b60f 18030 * commands/search.c (search_fs): Replace QUID macro with quid_fn
18031 function pointer.
18032
e110f4de 180332009-07-06 Daniel Mierswa <impulze@impulze.org>
18034
18035 * commands/search.c (search_fs): Use grub_strcasecmp() for UUID
18036 comparison.
18037
46eeb6a2 180382009-07-05 Pavel Roskin <proski@gnu.org>
18039
bab74958 18040 * include/grub/i386/linux.h (struct linux_kernel_params):
18041 Restore padding3, it's still needed.
18042
46eeb6a2 18043 * util/grub.d/10_freebsd.in: Fix spelling of `device.hints' on
18044 FreeBSD.
18045 * util/osdetect.lua: Likewise.
18046
b4a1dc79 180472009-07-05 Bean <bean123ch@gmail.com>
18048
18049 * conf/common.rmk (lua_mode_SOURCES): Add script/lua/lstrlib.c.
18050
18051 * script/lua/grub_lib.c (grub_lua_run): Check input parameter.
18052 (grub_lua_getenv): Likewise.
18053 (grub_lua_setenv): Likewise.
18054 (save_errno): New function.
18055 (push_result): Likewise.
18056 (grub_lua_enum_device): Likewise.
18057 (grub_lua_enum_file): Likewise.
18058 (grub_lua_file_open): Likewise.
18059 (grub_lua_file_close): Likewise.
18060 (grub_lua_file_seek): Likewise.
18061 (grub_lua_file_read): Likewise.
18062 (grub_lua_file_getline): Likewise.
18063 (grub_lua_file_getsize): Likewise.
18064 (grub_lua_file_getpos): Likewise.
18065 (grub_lua_file_eof): Likewise.
18066 (grub_lua_file_exist): Likewise.
18067 (grub_lua_add_menu): Likewise.
18068
18069 * script/lua/grub_lua.h (isupper): New inline function.
18070 (islower): Likewise.
18071 (ispunct): Likewise.
18072 (isxdigit): Likewise.
18073 (strcspn): Change to normal function.
18074 (strpbkr): New function declaration.
18075 (memchr): Likewise.
18076
18077 * script/lua/grub_main.c (scan_str): New function.
18078 (strcspn): Likewise.
18079 (strpbrk): Likewise.
18080 (memchr): Likewise.
18081
18082 * script/lua/linit.c (lualibs): Enable the string library.
18083
18084 * util/osdetect.lua: New file.
18085
2da92295 180862009-07-04 Robert Millan <rmh.grub@aybabtu.com>
18087
18088 * include/grub/i386/linux.h (struct linux_kernel_params): Add
18089 `capabilities' member.
18090
b2582ec9 180912009-07-02 Pavel Roskin <proski@gnu.org>
18092
18093 * genparttoollist.sh: Add missing newline at the end.
18094
32622956 180952009-07-01 Pavel Roskin <proski@gnu.org>
18096
87a7339e 18097 * kern/x86_64/efi/callwrap.S: Add missing newline at the end.
18098
d23af54e 18099 * util/hostdisk.c (open_device): Remove `const' from
18100 `sysctl_size', as sysctlbyname() can change it (in this case it
18101 doesn't actually happen).
18102
c94b18a9 18103 * include/grub/types.h: Define GRUB_LONG_MAX and GRUB_LONG_MIN
18104 using signed long int constants.
18105
c6cd3ef0 18106 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Make `p'
18107 constant to avoid a warning on FreeBSD.
18108
0df63420 18109 * util/hostdisk.c (device_is_wholedisk): Compile only on systems
18110 where it's needed.
18111
999577f1 18112 * Makefile.in: Install include/grub/machine symlink.
18113
6f41557f 18114 * Makefile.in: When installing symlinks, use "cp -fR", which
18115 works on FreeBSD and MacOSX.
18116 From Yves Blusseau <cl7m42e02@sneakemail.com>
18117
c8d22988 18118 * kern/dl.c (grub_dl_resolve_symbol): Make static.
18119 * include/grub/dl.h: Remove grub_dl_resolve_symbol().
18120
1b96e952 18121 * util/misc.c: Move grub_reboot() and grub_halt() ...
18122 * util/grub-emu.c: ... here. Make main_env static.
18123 * include/grub/util/misc.h: Remove main_env.
18124
2ef0084d 18125 * kern/mm.c: Use correct format to print size_t.
18126
32622956 18127 * include/grub/elf.h: Define Elf_Sword and Elf_Xword.
18128 * kern/i386/dl.c: Use ELF symbols without "32" or "64".
18129 * kern/powerpc/dl.c: Likewise.
18130 * kern/sparc64/dl.c: Likewise.
18131 * kern/x86_64/dl.c: Likewise.
18132
3f7f0cd0 181332009-07-01 Robert Millan <rmh.grub@aybabtu.com>
18134
18135 Fix grub-emu build on sparc64-ieee1275.
18136
75421ca9 18137 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Synchronize with ...
3f7f0cd0 18138 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): ... this.
18139
211d06b5 181402009-07-01 Robert Millan <rmh.grub@aybabtu.com>
18141
18142 * util/misc.c: Include `<setjmp.h>' and `<grub/machine/machine.h>'.
18143 (grub_reboot, grub_halt): New functions.
18144
18145 * util/i386/pc/misc.c: Delete. Update all users.
18146 * util/sparc64/ieee1275/misc.c: Likewise.
18147 * util/powerpc/ieee1275/misc.c: Likewise.
18148
aaf53e3c 181492009-07-01 Robert Millan <rmh.grub@aybabtu.com>
18150
18151 * conf/i386.rmk (setjmp_mod_SOURCES)
18152 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Move to ...
18153 * conf/common.rmk (setjmp_mod_SOURCES)
18154 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): ... here, and modify
18155 to use $(target_cpu).
18156 * conf/x86_64-efi.rmk (setjmp_mod_SOURCES)
18157 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Remove.
18158 * conf/powerpc-ieee1275.rmk: Likewise.
18159 * conf/sparc64-ieee1275.rmk: Likewise.
18160
18161 * conf/i386-pc.rmk (kernel_img_SOURCES): Use
18162 $(target_cpu) for kern/$(target_cpu)/dl.c.
18163 * conf/i386-efi.rmk: Likewise.
18164 * conf/i386-ieee1275.rmk: Likewise.
18165 * conf/x86_64-efi.rmk: Likewise.
18166 * conf/i386-coreboot.rmk: Likewise.
18167 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Use
18168 $(target_cpu) for kern/$(target_cpu)/dl.c and for
18169 kern/$(target_cpu)/cache.S.
18170 * conf/sparc64-ieee1275.rmk: Likewise.
18171
a337130b 181722009-07-01 Robert Millan <rmh.grub@aybabtu.com>
18173
18174 * include/grub/i386/linux.h (linux_kernel_params): Change `mmap_size'
18175 type to `grub_uint8_t', and adjust `padding9' accordingly.
18176
c6fe4d53 181772009-06-29 Robert Millan <rmh.grub@aybabtu.com>
18178
b09db61d 18179 * include/grub/i386/linux.h (GRUB_VIDEO_TYPE_TEXT): New macro.
18180
c6fe4d53 18181 * loader/i386/linux.c [__i386__] (grub_linux_boot): Simplify inline
18182 assembly in final jump, using register constraints.
18183
b09db61d 18184 (grub_linux_boot): For text mode, initialize `have_vga' using
18185 GRUB_VIDEO_TYPE_TEXT rather than 0 (this changes its value to 1).
18186
18187 Initialize `video_cursor_x' and `video_cursor_y' as late as possible,
18188 right before the final jump.
18189
18190 Set `video_mode' to 0x3.
18191
18192 Document initialization of `video_page', `video_mode' and
18193 `video_ega_bx'.
18194
28333ad0 181952009-06-29 Robert Millan <rmh.grub@aybabtu.com>
18196
18197 * include/grub/i386/linux.h (GRUB_LINUX_FLAG_QUIET): New macro.
18198 * loader/i386/linux.c (grub_cmd_linux): Recognize "quiet" option,
75421ca9 18199 and set GRUB_LINUX_FLAG_QUIET appropriately.
28333ad0 18200
02164e1b 182012009-06-29 Robert Millan <rmh.grub@aybabtu.com>
18202
18203 Fix build on Debian / sparc.
18204
18205 * configure.ac: Recognize `sparc' target_cpu (as sparc64).
18206
18b6c557 182072009-06-28 Pavel Roskin <proski@gnu.org>
18208
85f2aab6 18209 * kern/i386/qemu/mmap.c (grub_machine_mmap_iterate): Use cast to
18210 fix a warning.
18211
18b6c557 18212 * util/grub.d/10_linux.in: Match SUSE style initrd names.
18213
ad760f81 182142009-06-27 Robert Millan <rmh.grub@aybabtu.com>
18215
18216 * loader/i386/linux.c (grub_linux_boot): Fix uninitialized use of
18217 `err'.
18218
87a4623b 182192009-06-27 Robert Millan <rmh.grub@aybabtu.com>
18220
18221 Revert r2338.
18222
18223 * loader/i386/linux.c (grub_cmd_linux): Don't call grub_error when
18224 file can't be opened. grub_file_open() is already supposed to set
75421ca9 18225 grub_errno / grub_errmsg appropriately.
87a4623b 18226 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
18227
8231fb77 182282009-06-27 Pavel Roskin <proski@gnu.org>
182292009-06-27 Robert Millan <rmh.grub@aybabtu.com>
18230
18231 * include/grub/dl.h: Include grub/elf.h.
18232 (struct grub_dl): Add symtab field.
18233 * kern/dl.c [GRUB_MACHINE_QEMU]: Define
18234 GRUB_MODULES_MACHINE_READONLY.
18235 (grub_dl_resolve_symbols): Populate mod->symtab, making a copy
18236 of the header for read-only modules.
18237 (grub_dl_unload): Free mod->symtab for read-only modules.
18238 * kern/i386/dl.c: Use mod->symtab.
18239 * kern/powerpc/dl.c: Likewise.
18240 * kern/sparc64/dl.c: Likewise.
18241 * kern/x86_64/dl.c: Likewise.
18242
18243 * conf/i386-qemu.rmk: New file.
18244 * kern/i386/qemu/startup.S: Likewise.
18245 * kern/i386/qemu/mmap.c: Likewise.
18246 * boot/i386/qemu/boot.S: Likewise.
18247 * include/grub/i386/qemu/time.h: Likewise.
18248 * include/grub/i386/qemu/serial.h: Likewise.
18249 * include/grub/i386/qemu/kernel.h: Likewise.
18250 * include/grub/i386/qemu/console.h: Likewise.
18251 * include/grub/i386/qemu/boot.h: Likewise.
18252 * include/grub/i386/qemu/init.h: Likewise.
18253 * include/grub/i386/qemu/machine.h: Likewise.
18254 * include/grub/i386/qemu/loader.h: Likewise.
18255 * include/grub/i386/qemu/memory.h: Likewise.
18256
18257 * conf/i386-coreboot.rmk (GRUB_BOOT_MACHINE_LINK_ADDR)
18258 (GRUB_KERNEL_MACHINE_LINK_ADDR): New variables.
18259 [qemu] (pkglib_IMAGES): Add `boot.img'.
18260 [qemu] (boot_img_SOURCES, boot_img_ASFLAGS, boot_img_LDFLAGS)
18261 [qemu] (boot_img_FORMAT): New variables.
18262 [qemu] (bin_UTILITIES): Add `grub-mkimage'.
18263 [qemu] (grub_mkimage_SOURCES, grub_mkimage_CFLAGS): New variables.
18264 [qemu] (kernel_img_SOURCES, kernel_img_HEADERS, kernel_img_CFLAGS)
18265 [qemu] (kernel_img_ASFLAGS, kernel_img_LDFLAGS)
18266 [qemu] (kernel_img_FORMAT): New variables.
18267
18268 * configure.ac: Recognise `i386-qemu'.
18269
18270 * util/i386/pc/grub-mkimage.c (compress_kernel): Add dummy variant
18271 (for no compression).
18272 [GRUB_MACHINE_QEMU] (generate_image): Misc adjustments to produce
18273 a valid i386 ROM image. Make `GRUB_KERNEL_MACHINE_COMPRESSED_SIZE',
18274 `GRUB_KERNEL_MACHINE_INSTALL_DOS_PART' and
18275 `GRUB_KERNEL_MACHINE_INSTALL_BSD_PART' optional features (with
18276 ifdefs).
18277
97fe384e 182782009-06-27 Pavel Roskin <proski@gnu.org>
18279
18280 * efiemu/prepare.c: Eliminate TYPE macro, it makes code hard to
18281 read.
18282 * efiemu/prepare32.c: Likewise.
18283 * efiemu/prepare64.c: Likewise.
18284
c402ab17 182852009-06-26 Pavel Roskin <proski@gnu.org>
18286
18287 * include/grub/types.h: Define GRUB_TARGET_WORDSIZE.
18288 * include/grub/elf.h: Define symbols without "32" or "64" based
18289 on GRUB_TARGET_WORDSIZE.
18290 * include/grub/multiboot2.h: Use GRUB_TARGET_WORDSIZE.
18291 * efiemu/loadcore32.c: Redefine GRUB_TARGET_WORDSIZE, remove own
18292 ELF definitions.
18293 * efiemu/loadcore64.c: Likewise.
18294 * loader/i386/bsd32.c: Likewise.
18295 * loader/i386/bsd64.c: Likewise.
18296 * kern/dl.c: Remove own ELF definitions.
18297 * util/i386/efi/grub-mkimage.c: Likewise.
18298
9bbdfd4d 182992009-06-23 Robert Millan <rmh.grub@aybabtu.com>
18300
18301 * kern/i386/pc/startup.S (real_to_prot): Access `gdtdesc' using
18302 segment 0x0 unconditionally, because the reference generated by
18303 GAS is an absolute address.
18304
a42ce6e9 183052009-06-22 Robert Millan <rmh.grub@aybabtu.com>
18306
18307 * include/grub/i386/kernel.h: Include `<grub/machine/machine.h>'.
18308 [! GRUB_MACHINE_IEEE1275]: Set `GRUB_MOD_ALIGN' to 0x1.
18309
c952cf92 183102009-06-22 Robert Millan <rmh.grub@aybabtu.com>
18311
18312 * commands/search.c (grub_cmd_search): Macroify hardcoded args[]
18313 indexes. Check for -f explicitly.
cc3752ad 18314 (search_file): Improve error message.
18315 (GRUB_MOD_INIT(search)): Add missing `-n' to help output.
c952cf92 18316
132a0a59 183172009-06-22 Robert Millan <rmh.grub@aybabtu.com>
18318
18319 * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): Rename to ...
18320 (GRUB_KERNEL_MACHINE_LINK_ADDR): ... this. Update all users.
18321
387a140c 183222009-06-22 Robert Millan <rmh.grub@aybabtu.com>
18323
18324 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/misc.S'.
18325 * conf/i386-ieee1275.rmk: Likewise.
18326 * conf/i386-coreboot.rmk: Likewise.
18327
18328 * kern/i386/pc/startup.S (grub_stop): Remove function.
18329 * kern/i386/ieee1275/startup.S: Likewise.
18330 * kern/i386/coreboot/startup.S: Likewise.
18331 * kern/i386/misc.S (grub_stop): New function.
18332
41da9665 183332009-06-22 Robert Millan <rmh.grub@aybabtu.com>
18334
18335 * kern/i386/pc/startup.S (real_to_prot): Move from here ...
18336 * kern/i386/realmode.S (real_to_prot): ... to here.
18337
bf337234 183382009-06-22 Robert Millan <rmh.grub@aybabtu.com>
18339
18340 * conf/i386-ieee1275.rmk (pkglib_PROGRAMS): Replace `kernel.elf'
18341 with `kernel.img'.
18342 (kernel_elf_SOURCES): Rename to ...
18343 (kernel_img_SOURCES): ... this.
18344 (kernel_elf_HEADERS): Rename to ...
18345 (kernel_img_HEADERS): ... this. Update all users.
18346 (kernel_elf_ASFLAGS): Rename to ...
18347 (kernel_img_ASFLAGS): ... this.
18348 (kernel_elf_CFLAGS): Rename to ...
18349 (kernel_img_CFLAGS): ... this.
18350 (kernel_elf_LDFLAGS): Rename to ...
18351 (kernel_img_LDFLAGS): ... this.
18352 * conf/i386-coreboot.rmk: Likewise.
18353 * conf/powerpc-ieee1275.rmk: Likewise.
18354
18355 * util/elf/grub-mkimage.c (add_segments): Replace "kernel.elf"
18356 with "kernel.img".
18357
f52196ff 183582009-06-21 Pavel Roskin <proski@gnu.org>
18359
c3cee413 18360 * loader/powerpc/ieee1275/linux.c (offset_phdr): Fix prototypes
18361 to match nested functions.
18362 * loader/sparc64/ieee1275/linux.c: Likewise.
18363
f52196ff 18364 * conf/i386-ieee1275.rmk: Define kernel_elf_ASFLAGS.
18365
58750afc 183662009-06-21 Robert Millan <rmh.grub@aybabtu.com>
18367
18368 * configure.ac: Enable `END_SYMBOL' / `BSS_START_SYMBOL' test on
18369 all i386 platforms.
18370
15355c7d 183712009-06-21 Robert Millan <rmh.grub@aybabtu.com>
18372
18373 Fix asm file handling on ELF, and remove workarounds.
18374
18375 * genmk.rb (class Programs): Detect assembly files, and set ASFLAGS
75421ca9 18376 and -DASM_FILE=1 appropriately (copied from `class Images' stanza).
15355c7d 18377 * kern/i386/ieee1275/startup.S (ASM_FILE): Remove macro.
18378 * kern/i386/coreboot/startup.S (ASM_FILE): Likewise.
18379
3f3ec72b 183802009-06-21 Vladimir Serbinenko <phcoder@gmail.com>
18381
18382 Load BSD ELF modules
18383
18384 * conf/i386-pc.rmk (bsd_mod_SOURCES): Add loader/i386/bsd32.c
18385 and loader/i386/bsd64.c
18386 * include/grub/i386/bsd.h (FREEBSD_MODTYPE_MODULE): Remove
18387 (FREEBSD_MODTYPE_ELF_MODULE): New definition
18388 (FREEBSD_MODTYPE_ELF_MODULE_OBJ): Likewise
18389 (grub_freebsd_load_elfmodule32): New declaration
18390 (grub_freebsd_load_elfmoduleobj64): Likewise
18391 (grub_freebsd_load_elf_meta32): Likewise
18392 (grub_freebsd_load_elf_meta64): Likewise
18393 (grub_freebsd_add_meta): Likewise
18394 (grub_freebsd_add_meta_module): Likewise
18395 * loader/i386/bsd.c (grub_freebsd_add_meta): Make global
18396 (grub_freebsd_add_meta_module): Likewise and move module-specific
18397 parts to grub_cmd_freebsd and grub_cmd_freebsd_module
18398 (grub_cmd_freebsd): Add elf-kernel specific parts
18399 based on grub_freebsd_add_meta_module
18400 (grub_cmd_freebsd_module): Add type parsing moved from
18401 grub_freebsd_add_meta_module
18402 (grub_cmd_freebsd_module_elf): New function
18403 (cmd_freebsd_module_elf): New variable
18404 (GRUB_MOD_INIT): Register freebsd_module_elf
18405 * loader/i386/bsd32.c: New file
18406 * loader/i386/bsd64.c: Likewise
18407 * loader/i386/bsdXX.c: Likewise
18408 * kern/elf.c (grub_elf32_load): Let hook decide which pheaders to load
18409 (grub_elf64_load): Likewise
18410 * include/grub/elfload.h (grub_elf32_load_hook_t): New parameter do_load
18411 All users updated
18412 (grub_elf64_load_hook_t): Likewise
18413
0db15301 184142009-06-21 Colin Watson <cjwatson@ubuntu.com>
18415
18416 * util/grub-mkconfig.in (GRUB_DISABLE_LINUX_RECOVERY): Export
18417 variable.
18418 * util/grub.d/10_linux.in: If GRUB_DISABLE_LINUX_RECOVERY is true,
18419 don't write a menu entry for recovery mode.
18420
546796c1 184212009-06-20 Robert Millan <rmh.grub@aybabtu.com>
18422
18423 * util/i386/pc/grub-mkimage.c (main): Oops, free `output' only
18424 after it's no longer needed.
18425
cd7310d5 184262009-06-20 Robert Millan <rmh.grub@aybabtu.com>
18427
18428 * include/grub/i386/loader.h (grub_linux_prot_size)
18429 (grub_linux_tmp_addr, grub_linux_real_addr)
18430 (grub_linux_is_bzimage, grub_linux16_boot): Declare only on
18431 GRUB_MACHINE_PCBIOS.
18432 * util/i386/pc/grub-mkimage.c (compress_kernel): Move
18433 common grub_util_info() call to ...
18434 (generate_image): ... here.
18435 Fix use of uninitialized memory, comparison of signed with
18436 unsigned integers and memory leak.
18437 Remove bogus module address message.
18438
ab32d3b5 184392009-06-20 Vladimir Serbinenko <phcoder@gmail.com>
18440
18441 * disk/mdraid_linux.c (GRUB_MOD_FINI): use grub_raid_unregister and not
18442 grub_raid_register
18443 * disk/dmraid_nvidia.c (GRUB_MOD_FINI): likewise
18444
024ef597 184452009-06-19 Pavel Roskin <proski@gnu.org>
18446
18447 * configure.ac: Remove stray AC_MSG_CHECKING.
18448
3ac72b51 184492009-06-19 Vladimir Serbinenko <phcoder@gmail.com>
18450
18451 * disk/scsi.c (grub_scsi_open): use continue instead of big if
dd74360c 18452
e14cd814 184532009-06-18 Pavel Roskin <proski@gnu.org>
18454
18455 * conf/common.rmk: Add fs_file.mod.
18456 * disk/fs_file.c: New file.
18457 * include/grub/disk.h (enum grub_disk_dev_id): Add
18458 GRUB_DISK_DEVICE_FILE_ID.
18459
26586d98 184602009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
18461
18462 Fix build with Apple's toolchain. Part 2
18463
18464 * aclocal.m4 (grub_PROG_TARGET_CC): add missing prototype for main and
18465 a fake start
18466
26de2bcd 184672009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
18468
18469 Fix build with Apple's toolchain. Part 1
18470
18471 * commands/i386/pc/drivemap_int13h.S: use assembly-time constants
18472 for long calls
18473 * configure.ac: remove a leftover AC_MSG_RESULT
dd74360c 18474 (CFLAGS): don't add -Wl,--defsym,___main=0x8100 when building with
26de2bcd 18475 Apple's toolchain
18476
09b3490b 184772009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
18478
18479 Fix warnings
18480
18481 * fs/ntfscomp.c (decomp_get16): initialize c1 and c2
18482 (decomp_block): initialize ch
18483 use grub_memcpy instead of memcpy
18484
c22a006a 184852009-06-17 Pavel Roskin <proski@gnu.org>
18486
d3638678 18487 * include/grub/i386/coreboot/console.h: Don't use the i386-pc
18488 version, use declarations needed to use vga_text as the startup
18489 console.
18490
c22a006a 18491 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Remove
18492 term/i386/pc/at_keyboard.c, it doesn't need to be compiled into
18493 the kernel.
18494 * kern/i386/coreboot/init.c: Don't call grub_at_keyboard_init()
18495 and grub_at_keyboard_fini(), it's done on module load and
18496 unload.
18497
05b129e0 184982009-06-17 Felix Zielcke <fzielcke@z-51.de>
18499
18500 * loader/i386/linux.c (grub_cmd_linux): Set grub_error if the
18501 file can't be found.
18502 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
18503
cf24ed9e 185042009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
18505
18506 Fix newline handling
18507
18508 * include/grub/script_sh.h (grub_lexer_param): new field was_newline
dd74360c 18509 * script/sh/lexer.c (grub_script_lexer_init): initialize was_newline
cf24ed9e 18510 (grub_script_yylex): don't segfault on unterminated script
18511 newline terminates command and variable
18512
74aa8e4b 185132009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
18514
18515 avoid double grub_adjust_range call. Bug reported by David Simner
18516
18517 * kern/disk.c (grub_disk_write): change to raw disk access before
18518 calling disk_read
18519
1bd265f3 185202009-06-17 Colin Watson <cjwatson@ubuntu.com>
18521
18522 * util/elf/grub-mkimage.c (usage): Prefix each option line with two
18523 spaces, for the benefit of help2man.
18524 * util/i386/efi/grub-mkimage.c (usage): Likewise.
18525
a2d08c06 185262009-06-16 Pavel Roskin <proski@gnu.org>
18527
18528 * kern/i386/halt.c: Include grub/machine/init.h.
18529 * kern/i386/reboot.c: Include grub/cpu/reboot.h.
18530
b97bcb19 185312009-06-16 Felix Zielcke <fzielcke@z-51.de>
18532
18533 * util/grub.d/30_os-prober.in: Use ${root} in the generated
18534 drivemap menuentry.
18535
0644f96c 185362009-06-16 James Jarvis <James.Jarvis@ed.ac.uk>
18537
18538 * commands/help.c GRUB_MOD_INIT(echo): Fix the help output of
18539 `echo' command.
18540
3ef17a2e 185412009-06-16 Pavel Roskin <proski@gnu.org>
18542
18543 * boot/i386/pc/boot.S: Remove root_drive. Assert offset of
18544 boot_drive_check by using GRUB_BOOT_MACHINE_DRIVE_CHECK. Don't
18545 save %dx, we only need %dl and we never change it.
18546 * boot/i386/pc/cdboot.S: Don't set the root drive.
18547 * boot/i386/pc/pxeboot.S: Likewise.
18548 * include/grub/i386/pc/boot.h: Remove
18549 GRUB_BOOT_MACHINE_ROOT_DRIVE, adjust
18550 GRUB_BOOT_MACHINE_DRIVE_CHECK.
18551 * include/grub/i386/pc/kernel.h: Remove grub_root_drive.
18552 * kern/i386/pc/init.c (make_install_device): Remove references
18553 to grub_root_drive.
18554 * kern/i386/pc/startup.S: Likewise.
18555 * util/i386/pc/grub-setup.c (setup): Don't set root_drive.
18556
693fe637 185572009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
18558
18559 xnu_uuid command
18560
18561 * commands/xnu_uuid.c: new file
18562 * conf/common.rmk (pkglib_MODULES): add xnu_uuid.mod
18563 (xnu_uuid_mod_SOURCES): new variable
18564 (xnu_uuid_mod_CFLAGS): likewise
18565 (xnu_uuid_mod_LDFLAGS): likewise
18566 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
18567 * conf/i386-ieee1275.rmk: likewise
18568 * conf/i386-pc.rmk: likewise
18569 * conf/powerpc-ieee1275.rmk: likewise
18570 * conf/sparc64-ieee1275.rmk: likewise
18571 * util/grub.d/30_os-prober.in: use UUID for Mac OS X/Darwin
18572
c9da87d0 185732009-06-16 Pavel Roskin <proski@gnu.org>
18574
18575 * configure.ac: Avoid '==' in test command, it's not portable.
18576
9c6f4596 185772009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
18578
18579 Probe command
18580
18581 * commands/probe.c: new file
18582 * conf/common.rmk (pkglib_MODULES): add probe.mod
18583 (probe_mod_SOURCES): new variable
18584 (probe_mod_CFLAGS): likewise
18585 (probe_mod_LDFLAGS): likewise
18586 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
18587 * conf/i386-ieee1275.rmk: likewise
18588 * conf/i386-pc.rmk: likewise
18589 * conf/powerpc-ieee1275.rmk: likewise
18590 * conf/sparc64-ieee1275.rmk: likewise
18591
70b7f9fd 185922009-06-15 Vladimir Serbinenko <phcoder@gmail.com>
18593
18594 Fix handling of string like \"hello\" and "a
18595 b"
18596
18597 * script/sh/lexer.c (check_textstate): accept GRUB_PARSER_STATE_ESC
18598 (grub_script_yylex): fix parsing of quoting, escaping and newline
18599
71c79a6b 186002009-06-13 Vladimir Serbinenko <phcoder@gmail.com>
18601
dd74360c 18602 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): fix partition
71c79a6b 18603 handling
dd74360c 18604
0644f96c 186052009-06-13 Jun Inoue <jun.lambda@gmail.com>
880fc3c4 18606
18607 * util/grub-mkconfig.in: Fix parsing of --output option.
18608
e40893c3 186092009-06-12 Pavel Roskin <proski@gnu.org>
18610
18611 * Makefile.in (pkgdata_SRCDIR): Remove. genmodsrc.sh and
18612 genmk.rb don't need to be generated or installed.
18613
3a1acfe2 186142009-06-12 Vladimir Serbinenko <phcoder@gmail.com>
18615
18616 * commands/i386/pc/drivemap_int13h.S: add more comments
18617
3a4575d4 186182009-06-11 Pavel Roskin <proski@gnu.org>
18619
0658e928 18620 * Makefile.in (uninstall): Uninstall manuals.
18621
ca0388f0 18622 * Makefile.in: Rename lib_DATA to lib_SCRIPTS, move it from
18623 PKGLIB to SCRIPTS. This fixes installation of grub-mkconfig_lib
18624 and update-grub_lib in two places.
18625 * conf/common.rmk: Rename lib_DATA to lib_SCRIPTS.
18626
e3b27c39 18627 * disk/usbms.c (grub_usbms_transfer): Initialize `err' to fix
18628 a compiler warning.
18629
3a4575d4 18630 * loader/i386/bsd.c (grub_freebsd_boot): Rename `entry' to
18631 `entry_lo' to fix variable shadowing.
18632
af1f4f55 186332009-06-11 Christian Franke <franke@computer.org>
18634
18635 * kern/misc.c (__enable_execute_stack): Add missing return type
18636 to prevent gcc warning.
18637
5225e649 186382009-06-11 Felix Zielcke <fzielcke@z-51.de>
18639
18640 * conf/i386-ieee1275.rmk (COMMON_LDFLAGS): Remove `-static -lgcc'.
18641
7d83bd47 186422009-06-11 Pavel Roskin <proski@gnu.org>
18643
c1cb63ba 18644 * Makefile.in: Don't rely on any scripts being executable.
18645 Always use $(SHELL) to run shell scripts.
18646
7d83bd47 18647 * configure.ac: Always define ___main if using -nostdlib. This
18648 fixes tests on Cygwin.
18649
948f48e7 186502009-06-11 Giuseppe Caizzone <acaizzo@gmail.com>
18651
18652 UDF fix
18653
7d83bd47 18654 * fs/udf.c (grub_udf_read_block): handle the fact that ad->length
948f48e7 18655 is in bytes and not in blocks
7d83bd47 18656
8ada9bc1 186572009-06-11 Pavel Roskin <proski@gnu.org>
18658
18659 * kern/i386/halt.c (grub_halt): Make `i' unsigned to fix a
18660 warning.
18661
25ad2323 186622009-06-11 Felix Zielcke <fzielcke@z-51.de>
18663
18664 * util/grub.d/30_os-prober.in: Fix a comment. Source
18665 ${libdir}/grub/grub-mkconfig_lib. Use prepare_grub_to_access_device
18666 to set the root device. Place drivemap command in the generated
18667 chain entry.
18668
e65acb0c 186692009-06-11 Pavel Roskin <proski@gnu.org>
18670
18671 * configure.ac: Remove host_m32. Issues with 64-bit utilities
18672 have long been resolved.
18673
f285fe2d 186742009-06-11 Colin Watson <cjwatson@ubuntu.com>
18675
bd47b0b5 18676 * util/grub.d/10_linux.in: Capitalise "Linux".
18677
f285fe2d 18678 * util/grub-pe2elf.c (usage): Fix references to grub-editenv.
18679
a0c62e4e 186802009-06-11 Pavel Roskin <proski@gnu.org>
18681
b6783cb2 18682 * kern/efi/efi.c (grub_exit): Add infinite loop at the end to
18683 fix a gcc warning and ensure that the function won't ever exit.
18684
dde032e8 18685 * kern/i386/ieee1275/init.c: Add missing prototype for
18686 grub_stop_floppy().
18687
22cd079d 18688 * loader/ieee1275/multiboot2.c [__i386__]: Include
18689 grub/cpu/multiboot.h.
18690
a0c62e4e 18691 * term/i386/pc/serial.c (serial_translate_key_sequence): Avoid
18692 casts to short - they are not portable and cause warnings. Fix
18693 use of uninitialized values in input_buf. Use ARRAY_SIZE.
18694
63963d17 186952009-06-11 Vladimir Serbinenko <phcoder@gmail.com>
18696
18697 Drivemap fixes
18698
18699 * commands/i386/pc/drivemap.c (grub_get_root_biosnumber_drivemap):
18700 new function
18701 (grub_get_root_biosnumber_saved): new variable
18702 (GRUB_MOD_INIT): register grub_get_root_biosnumber_drivemap
18703 (GRUB_MOD_FINI): unregister grub_get_root_biosnumber_drivemap
775dbc4d 18704 * commands/i386/pc/drivemap_int13h.S (grub_drivemap_handler): restore
63963d17 18705 %dx after the call if necessary
18706 * conf/common.rmk (pkglib_MODULES): remove boot.mod
18707 (boot_mod_SOURCES): remove
18708 (boot_mod_CFLAGS): remove
18709 (boot_mod_LDFLAGS): remove
18710 * conf/i386-coreboot.rmk (pkglib_MODULES): add boot.mod
18711 (boot_mod_SOURCES): new variable
18712 (boot_mod_CFLAGS): likewise
18713 (boot_mod_LDFLAGS): likewise
18714 * conf/i386-efi.rmk: likewise
18715 * conf/i386-ieee1275.rmk: likewise
18716 * conf/i386-pc.rmk: likewise
18717 * conf/powerpc-ieee1275.rmk: likewise
18718 * conf/sparc64-ieee1275.rmk: likewise
18719 * conf/x86_64-efi.rmk: likewise
18720 * include/grub/i386/pc/biosnum.h: new file
18721 * lib/i386/pc/biosnum.c: likewise
18722 * loader/i386/bsd.c (grub_bsd_get_device): use grub_get_root_biosnumber
18723 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): likewise
18724 * loader/i386/pc/chainloader.c (grub_chainloader_cmd): likewise
775dbc4d 18725
33abf7ae 187262009-06-10 Pavel Roskin <proski@gnu.org>
18727
5ac35b35 18728 * io/gzio.c (test_header): Don't reuse one buffer for all data.
18729 Use separate variables. Read only the file size at the end, but
18730 not the checksum that we don't use.
18731
5c5215d5 18732 * kern/file.c (grub_file_read): Use void pointer for the buffer.
18733 Adjust all callers.
18734
27d5fef7 18735 * kern/ieee1275/openfw.c: Remove libc includes.
18736 * kern/ieee1275/cmain.c: Likewise.
18737 * include/grub/ieee1275/ieee1275.h: Likewise.
18738
33abf7ae 18739 * kern/i386/coreboot/init.c: Include grub/cpu/tsc.h to fix
18740 compiler warnings.
18741
19d50c2b 187422009-06-10 Felix Zielcke <fzielcke@z-51.de>
18743
18744 * Makefile.in: Remove all trailing whitespace.
18745 * conf/i386-pc.rmk: Likewise.
18746 * conf/powerpc-ieee1275.rmk: Likewise.
18747 * conf/sparc64-ieee1275.rmk: Likewise.
18748 * docs/grub.texi: Likewise.
18749 * docs/texinfo.tex: Likewise.
18750 * disk/fs_uuid.c: Likewise.
18751 * disk/lvm.c: Likewise.
18752 * disk/scsi.c: Likewise.
18753 * disk/ata.c: Likewise.
18754 * disk/ieee1275/ofdisk.c: Likewise.
18755 * disk/i386/pc/biosdisk.c: Likewise.
18756 * disk/host.c: Likewise.
18757 * disk/raid.c: Likewise.
18758 * disk/efi/efidisk.c: Likewise.
18759 * disk/usbms.c: Likewise.
18760 * disk/memdisk.c: Likewise.
18761 * disk/loopback.c: Likewise.
18762 * kern/powerpc/dl.c: Likewise.
18763 * kern/device.c: Likewise.
18764 * kern/dl.c: Likewise.
18765 * kern/sparc64/dl.c: Likewise.
18766 * kern/ieee1275/ieee1275.c: Likewise.
18767 * kern/term.c: Likewise.
18768 * kern/fs.c: Likewise.
18769 * kern/i386/dl.c: Likewise.
18770 * kern/i386/pc/startup.S: Likewise.
18771 * kern/i386/pc/init.c: Likewise.
18772 * kern/i386/pc/mmap.c: Likewise.
18773 * kern/i386/pc/lzo1x.S: Likewise.
18774 * kern/i386/ieee1275/init.c: Likewise.
18775 * kern/i386/realmode.S: Likewise.
18776 * kern/i386/tsc.c: Likewise.
18777 * kern/partition.c: Likewise.
18778 * kern/corecmd.c: Likewise.
18779 * kern/file.c: Likewise.
18780 * kern/efi/efi.c: Likewise.
18781 * kern/efi/init.c: Likewise.
18782 * kern/efi/mm.c: Likewise.
18783 * kern/main.c: Likewise.
18784 * kern/err.c: Likewise.
18785 * kern/env.c: Likewise.
18786 * kern/disk.c: Likewise.
18787 * kern/generic/millisleep.c: Likewise.
18788 * kern/generic/rtc_get_time_ms.c: Likewise.
18789 * kern/misc.c: Likewise.
18790 * kern/parser.c: Likewise.
18791 * genmk.rb: Likewise.
18792 * configure.ac: Likewise.
18793 * boot/i386/pc/diskboot.S: Likewise.
18794 * boot/i386/pc/pxeboot.S: Likewise.
18795 * boot/i386/pc/boot.S: Likewise.
18796 * boot/i386/pc/lnxboot.S: Likewise.
18797 * boot/i386/pc/cdboot.S: Likewise.
18798 * parttool/pcpart.c: Likewise.
18799 * video/readers/tga.c: Likewise.
18800 * video/video.c: Likewise.
18801 * video/bitmap.c: Likewise.
18802 * lib/envblk.c: Likewise.
18803 * lib/i386/setjmp.S: Likewise.
18804 * fs/xfs.c: Likewise.
18805 * fs/afs.c: Likewise.
18806 * fs/fat.c: Likewise.
18807 * fs/ntfs.c: Likewise.
18808 * fs/udf.c: Likewise.
18809 * fs/affs.c: Likewise.
18810 * fs/iso9660.c: Likewise.
18811 * fs/hfs.c: Likewise.
18812 * fs/fshelp.c: Likewise.
18813 * fs/ext2.c: Likewise.
18814 * fs/jfs.c: Likewise.
18815 * fs/reiserfs.c: Likewise.
18816 * fs/hfsplus.c: Likewise.
18817 * fs/minix.c: Likewise.
18818 * fs/cpio.c: Likewise.
18819 * fs/sfs.c: Likewise.
18820 * fs/ufs.c: Likewise.
18821 * efiemu/prepare.c: Likewise.
18822 * efiemu/loadcore_common.c: Likewise.
18823 * efiemu/runtime/efiemu.sh: Likewise.
18824 * efiemu/runtime/efiemu.S: Likewise.
18825 * efiemu/runtime/efiemu.c: Likewise.
18826 * efiemu/pnvram.c: Likewise.
18827 * efiemu/main.c: Likewise.
18828 * efiemu/i386/pc/cfgtables.c: Likewise.
18829 * efiemu/i386/loadcore64.c: Likewise.
18830 * efiemu/i386/loadcore32.c: Likewise.
18831 * efiemu/loadcore.c: Likewise.
18832 * efiemu/symbols.c: Likewise.
18833 * efiemu/mm.c: Likewise.
18834 * include/grub/autoefi.h: Likewise.
18835 * include/grub/datetime.h: Likewise.
18836 * include/grub/term.h: Likewise.
18837 * include/grub/hfs.h: Likewise.
18838 * include/grub/lvm.h: Likewise.
18839 * include/grub/i386/tsc.h: Likewise.
18840 * include/grub/i386/linux.h: Likewise.
18841 * include/grub/i386/xnu.h: Likewise.
18842 * include/grub/i386/efiemu.h: Likewise.
18843 * include/grub/i386/pc/biosdisk.h: Likewise.
18844 * include/grub/i386/pc/memory.h: Likewise.
18845 * include/grub/i386/pc/vbe.h: Likewise.
18846 * include/grub/parttool.h: Likewise.
18847 * include/grub/video.h: Likewise.
18848 * include/grub/memory.h: Likewise.
18849 * include/grub/fs.h: Likewise.
18850 * include/grub/partition.h: Likewise.
18851 * include/grub/xnu.h: Likewise.
18852 * include/grub/efi/api.h: Likewise.
18853 * include/grub/efi/pe32.h: Likewise.
18854 * include/grub/efi/memory.h: Likewise.
18855 * include/grub/multiboot.h: Likewise.
18856 * include/grub/usbdesc.h: Likewise.
18857 * include/grub/multiboot2.h: Likewise.
18858 * include/grub/acpi.h: Likewise.
18859 * include/grub/efiemu/efiemu.h: Likewise.
18860 * include/grub/disk.h: Likewise.
18861 * include/grub/ieee1275/ieee1275.h: Likewise.
18862 * include/grub/net.h: Likewise.
18863 * include/grub/machoload.h: Likewise.
18864 * include/grub/macho.h: Likewise.
18865 * include/multiboot.h: Likewise.
18866 * genmoddep.awk: Likewise.
18867 * normal/main.c: Likewise.
18868 * normal/menu_entry.c: Likewise.
18869 * normal/menu_viewer.c: Likewise.
18870 * normal/completion.c: Likewise.
18871 * normal/cmdline.c: Likewise.
18872 * normal/misc.c: Likewise.
18873 * normal/datetime.c: Likewise.
18874 * bus/usb/usbtrans.c: Likewise.
18875 * bus/usb/ohci.c: Likewise.
18876 * bus/usb/uhci.c: Likewise.
18877 * bus/usb/usb.c: Likewise.
18878 * mmap/efi/mmap.c: Likewise.
18879 * mmap/i386/pc/mmap_helper.S: Likewise.
18880 * mmap/i386/pc/mmap.c: Likewise.
18881 * mmap/i386/mmap.c: Likewise.
18882 * mmap/i386/uppermem.c: Likewise.
18883 * mmap/mmap.c: Likewise.
18884 * commands/acpi.c: Likewise.
18885 * commands/echo.c: Likewise.
18886 * commands/blocklist.c: Likewise.
18887 * commands/loadenv.c: Likewise.
18888 * commands/usbtest.c: Likewise.
18889 * commands/boot.c: Likewise.
18890 * commands/parttool.c: Likewise.
18891 * commands/search.c: Likewise.
18892 * commands/cat.c: Likewise.
18893 * commands/i386/pc/play.c: Likewise.
18894 * commands/i386/pc/drivemap.c: Likewise.
18895 * commands/i386/pc/vbeinfo.c: Likewise.
18896 * commands/i386/pc/acpi.c: Likewise.
18897 * commands/i386/pc/vbetest.c: Likewise.
18898 * commands/ls.c: Likewise.
18899 * commands/cmp.c: Likewise.
18900 * commands/test.c: Likewise.
18901 * commands/efi/acpi.c: Likewise.
18902 * commands/gptsync.c: Likewise.
18903 * commands/help.c: Likewise.
18904 * partmap/amiga.c: Likewise.
18905 * partmap/apple.c: Likewise.
18906 * partmap/acorn.c: Likewise.
18907 * partmap/pc.c: Likewise.
18908 * partmap/sun.c: Likewise.
18909 * partmap/gpt.c: Likewise.
18910 * script/sh/lexer.c: Likewise.
18911 * script/sh/function.c: Likewise.
18912 * font/font.c: Likewise.
18913 * font/font_cmd.c: Likewise.
18914 * loader/powerpc/ieee1275/linux.c: Likewise.
18915 * loader/efi/chainloader.c: Likewise.
18916 * loader/multiboot_loader.c: Likewise.
18917 * loader/macho.c: Likewise.
18918 * loader/i386/multiboot.c: Likewise.
18919 * loader/i386/linux.c: Likewise.
18920 * loader/i386/pc/linux.c: Likewise.
18921 * loader/i386/pc/multiboot2.c: Likewise.
18922 * loader/i386/pc/chainloader.c: Likewise.
18923 * loader/i386/pc/xnu.c: Likewise.
18924 * loader/i386/bsd_trampoline.S: Likewise.
18925 * loader/i386/efi/linux.c: Likewise.
18926 * loader/i386/multiboot_elfxx.c: Likewise.
18927 * loader/i386/bsd_helper.S: Likewise.
18928 * loader/i386/bsd.c: Likewise.
18929 * loader/i386/linux_trampoline.S: Likewise.
18930 * loader/i386/xnu_helper.S: Likewise.
18931 * loader/i386/xnu.c: Likewise.
18932 * loader/i386/bsd_pagetable.c: Likewise.
18933 * loader/i386/multiboot_helper.S: Likewise.
18934 * loader/xnu.c: Likewise.
18935 * loader/xnu_resume.c: Likewise.
18936 * io/gzio.c: Likewise.
18937 * term/efi/console.c: Likewise.
18938 * term/terminfo.c: Likewise.
18939 * term/ieee1275/ofconsole.c: Likewise.
18940 * term/i386/pc/serial.c: Likewise.
18941 * term/i386/pc/vesafb.c: Likewise.
18942 * term/i386/pc/vga.c: Likewise.
18943 * term/usb_keyboard.c: Likewise.
18944 * term/gfxterm.c: Likewise.
18945 * aclocal.m4: Likewise.
18946 * util/lvm.c: Likewise.
18947 * util/grub.d/30_os-prober.in: Likewise.
18948 * util/grub.d/10_hurd.in: Likewise.
18949 * util/console.c: Likewise.
18950 * util/grub-macho2img.c: Likewise.
18951 * util/grub-probe.c: Likewise.
18952 * util/hostfs.c: Likewise.
18953 * util/i386/pc/grub-mkimage.c: Likewise.
18954 * util/i386/pc/grub-setup.c: Likewise.
18955 * util/i386/efi/grub-mkimage.c: Likewise.
18956 * util/grub-mkconfig.in: Likewise.
18957 * util/raid.c: Likewise.
18958 * util/resolve.c: Likewise.
18959 * util/grub-mkdevicemap.c: Likewise.
18960 * util/grub-emu.c: Likewise.
18961 * util/getroot.c: Likewise.
18962 * util/hostdisk.c: Likewise.
18963 * util/usb.c: Likewise.
18964 * util/grub-editenv.c: Likewise.
18965 * util/misc.c: Likewise.
18966
d2d49665 189672009-06-10 Felix Zielcke <fzielcke@z-51.de>
18968
18969 * gendistlist.sh (EXTRA_DISTFILES): Add `genhandlerlist.sh' and
18970 `genparttoollist.sh'.
18971 (DISTDIRS): Add `efiemu', `mmap', `parttool' and `script'.
18972 Add `*.sh' to the list find searches for and change `mdate.sh'
18973 to `mdate-sh'.
18974
fe052e37 189752009-06-10 Pavel Roskin <proski@gnu.org>
18976
2763ac18 18977 * include/grub/multiboot2.h: Provide compatibility defines for
18978 multiboot2.h.
18979 * include/multiboot2.h: Include stdint.h only if needed, using
18980 angle brackets.
18981 * loader/i386/pc/multiboot2.c: Include multiboot2.h after
18982 grub/multiboot2.h.
18983 * loader/ieee1275/multiboot2.c: Likewise.
18984 * loader/multiboot2.c: Likewise.
18985 * loader/multiboot_loader.c: Likewise.
18986
437e6adc 18987 * configure.ac: Use -nostdlib when probing for the target. It
18988 should not be required to have libc for the target.
18989
06a6836c 18990 * configure.ac: Remove checks for __bswapsi2 and __bswapdi2,
18991 they fail without libc headers for the target.
18992 * include/grub/powerpc/libgcc.h: Use weak attribute for all
18993 exports.
18994 * include/grub/sparc64/libgcc.h: Likewise. Don't use
18995 preprocessor conditionals.
18996
fe052e37 18997 * conf/common.rmk: Compile tar.mod from tar.c, not cpio.c. The
18998 build system doesn't need to be aware of the tar.c internals.
18999
afd22553 190002009-06-09 Michel Hermier <michel.hermier@gmail.com>
87b8f28c 19001
afd22553 19002 * fs/i386/pc/pxe.c (grub_pxefs_read): Fix returned values.
8ec4a6d0 19003
6b787c4f 190042009-06-09 Robert Millan <rmh.grub@aybabtu.com>
19005
19006 * util/deviceiter.c (grub_util_iterate_devices): Increase number of
19007 disk limit to 26 for IDE, Virtio, Xen and SCSI.
19008
190092009-06-09 Felix Zielcke <fzielcke@z-51.de>
19010
19011 * util/i386/pc/grub-install.in: Change the error message if UUIDs
473d1e45 19012 aren't available if ata.mod gets used.
6b787c4f 19013
473d1e45 190142009-06-09 Oliver Henshaw <oliver.henshaw@gmail.com>
e23721e8 19015
473d1e45 19016 * bus/usb/ohci.c (grub_ohci_pci_iter): Link struct only after
e23721e8 19017 initialising controller.
473d1e45 19018 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
e23721e8 19019
255a27d4 190202009-06-08 Felix Zielcke <fzielcke@z-51.de>
19021
19022 * util/i386/pc/grub-install.in: Add a parameter --disk-module
19023 to choose between ata and biosdisk module on i386-pc.
19024
473d1e45 190252009-06-08 Oliver Henshaw <oliver.henshaw@gmail.com>
69da8877 19026
d55842d8 19027 * bus/usb/ohci.c (grub_ohci_pci_iter): Define the Class,
19028 Subclass and Programming Interface fields in terms of the 3 byte
19029 Class Code register.
19030 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
19031
fa5db0b1 19032 * bus/usb/ohci.c (grub_ohci_pci_iter): Check that programming
19033 interface is OHCI. Add grub_dprintf for symmetry with
19034 bus/usb/uhci.c.
19035 * bus/usb/uhci.c (grub_uhci_pci_iter): Check that programming
19036 interface is UHCI. Add interf variable for programming
19037 interface. Print interface with class/subclass.
19038
c0947beb 19039 * bus/usb/ohci.c: Set interf with correct field.
19040
69da8877 19041 * bus/usb/uhci.c: Remove unneeded doubled lines.
19042 * bus/usb/ohci.c: Likewise. Change interf to grub_uint32_t.
19043 Remove whitespace inside comment.
19044
9e172e30 190452009-06-08 Robert Millan <rmh.grub@aybabtu.com>
19046
19047 * loader/i386/linux.c (grub_cmd_linux): When processing `vga=', use
19048 as fallback an equivalent option without depth.
19049
de65ee2b 190502009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
19051
19052 Not fail if unable to retrieve C/H/S on LBA disks
19053
473d1e45 19054 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): behave gracefully
de65ee2b 19055 if unable to retrieve C/H/S on LBA disks
19056
b57ea2c9 190572009-06-08 Pavel Roskin <proski@gnu.org>
19058
19059 * fs/hfs.c (grub_hfs_find_dir): Use union to avoid a warning
19060 about aliasing.
19061
af361263 190622009-06-08 Felix Zielcke <fzielcke@z-51.de>
19063
19064 * Makefile.in (uninstall): Remove all $lib_DATA files.
19065
4c9ec6b3 190662009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
19067
19068 Bugfix: install on partitionless device
19069
19070 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): check if os_dev
19071 is a whole disk
19072
e76fc924 190732009-06-08 Felix Zielcke <fzielcke@z-51.de>
19074
19075 * Makefile.in (uninstall): Remove all $include_DATA files.
19076
ba5a0d05 190772009-06-08 Felix Zielcke <fzielcke@z-51.de>
19078
19079 * commands/true.c: New file. Implement the true and false commands.
19080 * conf/common.rmk.c (pkglib_MODULES): Add `true.mod'.
19081 (true_mod_SOURCES): New variable.
19082 (true_mod_CFLAGS): Likewise.
19083 (true_mod_LDFLAGS): Likewise.
19084
c8048e32 190852009-06-05 Colin D Bennett <colin@gibibit.com>
19086
19087 Optimized font character lookup using binary search instead of linear
19088 search. Fonts now are required to have the character index ordered by
19089 code point.
19090
19091 * font/font.c (load_font_index): Verify that fonts have ordered
19092 character indices.
19093 (find_glyph): Use binary search instead of linear search to find a
19094 character in a font.
19095
408305be 190962009-06-05 Michael Scherer <misc@mandriva.org>
19097
19098 * fs/hfsplus.c (grub_hfsplus_mount): Determine if the filesystem
19099 uses case sensitive btree.
19100 (grub_hfsplus_iterate_dir): Use GRUB_FSHELP_CASE_INSENSITIVE
19101 only for case insensitive filesystems.
19102
8ee1e0d9 191032009-06-05 Vladimir Serbinenko <phcoder@gmail.com>
19104
19105 * conf/i386-pc.rmk (efiemu_mod_CFLAGS): remove -Werror -Wall
19106 * conf/common.rmk (search_mod_CFLAGS): likewise
19107
a9966eb1 191082009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
19109
473d1e45 19110 * kern/i386/pc/startup.S [APPLE_CC]: block of nops to
a9966eb1 19111 compensate a compiler bug
19112
9e7100fb 191132009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
19114
473d1e45 19115 * include/grub/term.h (GRUB_TERM_BACKSPACE): explicitly define as 8
9e7100fb 19116 instead of '\b'
473d1e45 19117
ede21d71 191182009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
19119
19120 Definitions for creating asm symbols with Apple's CC
19121
19122 * include/grub/symbol.h [APPLE_CC] (FUNCTION): new macro
19123 [APPLE_CC] (VARIABLE): likewise
19124
9dbf7653 191252009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
19126
19127 Disable lnxboot.img when compiled
19128 with Apple's CC
19129
19130 * conf/i386-pc.rmk (pkglib_IMAGES): remove lnxboot.img
19131 pkglib_IMAGES [! TARGET_APPLE_CC] (pkglib_IMAGES): add lnxboot.img
19132 * boot/i386/pc/lnxboot.S [APPLE_CC]: define an #error
19133 [! APPLE_CC] (CODE_LENG): skip
19134 [! APPLE_CC] (setup_sects): likewise
19135 [! APPLE_CC]: skip filling
473d1e45 19136
e93cdc3d 191372009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
19138
19139 Address in trampolines based on 32-bit registers when compiled
19140 with Apple's CC
19141
473d1e45 19142 * loader/i386/xnu_helper.S [APPLE_CC]: use 32-bit registers
e93cdc3d 19143 for addresses
19144 * loader/i386/linux_trampoline.S [APPLE_CC]: likewise
19145
6c688477 191462009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
19147
19148 Avoid aliases when compiling with Apple's CC for PCBIOS machine
19149
19150 * kern/misc.c [APPLE_CC] (memcpy): new function
19151 [APPLE_CC] (memmove): likewise
19152 [APPLE_CC && !GRUB_UTIL] (grub_err_printf): likewise
473d1e45 19153 (memcpy): define alias conditionally on !APPLE_CC
6c688477 19154 (memset): likewise
19155 (abort): likewise
19156 * include/grub/misc.h (memove): don't define when both GRUB_UTIL and
19157 APPLE_CC are defined
19158 * include/grub/list.h [APPLE_CC] (grub_assert_fail): new function
19159 (grub_assert_fail): make prototype conditional
19160
e37ffc5c 191612009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
19162
19163 Use grub-macho2img when compiling with Apple's CC for PCBIOS machine
19164
473d1e45 19165 * conf/common.rmk (bin_UTILITIES): add (on false on condition)
19166 grub-macho2img
e37ffc5c 19167 (CLEANFILES): add grub-macho2img
19168 (grub_macho2img_SOURCES): new variable
19169 * kern/i386/pc/startup.S (bss_start): new variable
19170 (bss_end): likewise
19171 * genmk.rb: use grub-macho2img for *.img when compiled with Apple's CC
19172 * util/grub-macho2img.c: new file
19173
cf00df31 191742009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
19175
19176 Use objconv when compiling with Apple's CC
19177
19178 * conf/i386-pc.rmk (efiemu32.o): use OBJCONV if defined
19179 (efiemu64.o): likewise
19180 (efiemu64_c.o): omit -mcmodel=large and add -DAPPLE_CC=1
19181 when compiling with Apple's CC
19182 (efiemu64_s.o): likewise
19183 * configure.ac: check for objconv when compiling with Apple's CC
19184 * genmk.rb: use objconv for modules when compiled with Apple's CC
473d1e45 19185
d119a20c 191862009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
19187
19188 Define segment as well as section when compiling with
19189 Apple's CC
19190
19191 * efiemu/runtime/efiemu.c (PHYSICAL_ATTRIBUTE): new definition
19192 (efiemu_set_virtual_address_map): declare with PHYSICAL_ATTRIBUTE
19193 (efiemu_convert_pointer): likewise
19194 (efiemu_set_virtual_address_map): likewise
19195 (efiemu_convert_pointer): likewise
19196 (efiemu_getcrc32): likewise
19197 (init_crc32_table): likewise
19198 (reflect): likewise
19199 * include/grub/dl.h (GRUB_MOD_NAME): define segment with Apple's CC
19200 (GRUB_MOD_DEP): likewise
473d1e45 19201
c8600122 192022009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
19203
19204 Allow a compilation without -mcmodel=large
19205
19206 * kern/efi/mm.c (grub_efi_allocate_pages): don't allocate >4GiB
19207 when compiled without -mcmodel=large
473d1e45 19208 (filter_memory_map): remove memory post 4 GiB when compiled
c8600122 19209 without -mcmodel=large
473d1e45 19210 * configure.ac: fail gracefully and add -DMCMODEL_SMALL=1 to
c8600122 19211 TARGET_CFLAGS when -mcmodel=large isn't supported
473d1e45 19212
e8df1d4e 192132009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
19214
19215 Remove nested functions in efiemu core
19216
19217 * efiemu/runtime/efiemu.c (reflect): make static instead of nested
473d1e45 19218
cc6c3ac1 192192009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
19220
19221 Avoid clobbering %ebx/%rbx in inline assembly with Apple's CC
19222
19223 * efiemu/runtime/efiemu.c (write_cmos): use %cl instead of %bl as
19224 temporary storage
473d1e45 19225 * include/grub/i386/tsc.h (grub_get_tsc): restore %rbx/%ebx when
19226 using Apple's CC
cc6c3ac1 19227 (grub_cpu_is_tsc_supported): likewise
19228 * loader/i386/xnu.c (guessfsb): restore %rbx/%ebx in inline assembly
473d1e45 19229
3e325901 192302009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
19231
19232 Absolute addressing through constant with Apple's cc
19233
19234 * kern/i386/pc/startup.S: Define necessary constants
19235 and address through it when using ABS with Apple's CC
19236 * boot/i386/pc/diskboot.S: likewise
19237 * boot/i386/pc/boot.S: likewise
19238 * boot/i386/pc/lnxboot.S: likewise
19239 * boot/i386/pc/cdboot.S: likewise
19240 * mmap/i386/pc/mmap_helper.S: likewise
19241 * commands/i386/pc/drivemap_int13h.S: likewise
19242
2b167a72 192432009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
19244
19245 Check if compiler is apple cc
19246
19247 * Makefile.in (ASFLAGS): new variable
19248 (TARGET_ASFLAGS): likewise
19249 (TARGET_MODULE_FORMAT): likewise
19250 (TARGET_APPLE_CC): likewise
19251 (OBJCONV): likewise
19252 (TARGET_IMG_CFLAGS): likewise
19253 (TARGET_CPPFLAGS): add includedir
19254 * configure.ac: call grub_apple_cc and grub_apple_target_cc
19255 (TARGET_IMG_LDFLAGS): Add -Wl,-Ttext,. All users updated
19256 Check for linker script only if compiler isn't Apple's CC
19257 (TARGET_MODULE_FORMAT): set
19258 (TARGET_APPLE_CC): likewise
19259 (TARGET_ASFLAGS): likewise
19260 (ASFLAGS): likewise
19261 Check for objcopy only if compiler isn't Apple's CC
19262 Check for BSS symbol only if compiler isn't Apple's CC
19263 * genmk.rb: adapt nm options if we use Apple's utils
19264 * aclocal.m4 (grub_apple_cc): new test
19265 (grub_apple_target_cc): likewise
473d1e45 19266
fb14123e 192672009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
19268
19269 Simplify sed expressions and improve awk
19270
19271 * Makefile.in (install-local): simplify sed expression
19272 * gencmdlist.sh: likewise
19273 * genmoddep.awk: avoid adding module as a dependency of itself
19274
5b889789 192752009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
19276
19277 Add missing start symbols
19278
19279 * boot/i386/pc/boot.S: add start
fb14123e 19280 * boot/i386/pc/pxeboot.S: likewise
473d1e45 19281
fd2bf2e3 192822009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
19283
19284 Fix wrong assumptions with grub-mkimage on EFI
473d1e45 19285
19286 * i386/efi/grub-mkimage.c (read_kernel_module): don't write prefix here
fd2bf2e3 19287 (relocate_addresses): consider both r_addend and value at offset
19288 (make_mods_section): zerofill modinfo and header
19289 (convert_elf): write prefix here
473d1e45 19290
5389763d 192912009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
19292
19293 Use .asciz instead of .string
19294
19295 * i386/pc/diskboot.S: use .asciz instead of .string
19296 * i386/pc/boot.S: likewise
19297 * include/grub/dl.h (GRUB_MOD_DEP): likewise
19298 (GRUB_MOD_NAME): likewise
473d1e45 19299
3eb5ed4e 193002009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
19301
19302 gfxpayload support
19303
19304 * commands/videotest.c (grub_cmd_videotest): use grub_video_set_mode
19305 * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_PURE_TEXT): new definition
19306 (grub_video_setup): remove
19307 (grub_video_set_mode): new prototype
19308 * loader/i386/linux.c (DEFAULT_VIDEO_MODE): new definition
19309 (vid_mode): remove
19310 (linux_vesafb_res): compile only on PCBIOS
19311 (grub_linux_boot): support gfxpayload
19312 * loader/i386/pc/xnu.c (video_hook): new function
19313 (grub_xnu_set_video): support gfxpayload
19314 * term/gfxterm.c (DEFAULT_VIDEO_WIDTH): removed
19315 (DEFAULT_VIDEO_HEIGHT): likewise
19316 (DEFAULT_VIDEO_FLAGS): likewise
19317 (DEFAULT_VIDEO_MODE): new definition
19318 (video_hook): new function
19319 (grub_gfxterm_init): use grub_video_set_mode
473d1e45 19320 * util/grub.d/30_os-prober.in: remove explicit modesetting before
3eb5ed4e 19321 loading xnu
19322 * video/video.c (grub_video_setup): removed
473d1e45 19323 (grub_video_set_mode): new function based on grub_gfxterm_init and
3eb5ed4e 19324 grub_video_setup
19325
4b0e1143 193262009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
19327
19328 Avoid calling biosdisk in drivemap
19329
19330 * commands/i386/pc/drivemap.c (parse_biosdisk): remove
19331 (revparse_biosdisk): likewise
19332 (list_mappings): derive name from id directly
19333 (grub_cmd_drivemap): use tryparse_diskstring
473d1e45 19334
fda6cb98 193352009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
19336
19337 Script fixes
19338
19339 * include/grub/script_sh.h (grub_script_cmdline): remove cmdline
19340 (grub_lexer_param): add tokenonhold
19341 (grub_script_create_cmdline): remove cmdline. All callers updated
19342 (grub_script_function_create): make functionname
19343 grub_script_arg. All callers updated
19344 (grub_script_execute_argument_to_string): new prototype
19345 * kern/parser.c (state_transitions): reorder
19346 (grub_parser_cmdline_state): fix a bug and make more compact
473d1e45 19347 * script/sh/execute.c (grub_script_execute_argument_to_string):
fda6cb98 19348 make global
19349 (grub_script_execute_cmdline): use new format
19350 * script/sh/function.c (grub_script_function_create): make functionname
19351 grub_script_arg. All callers updated
473d1e45 19352 * script/sh/lexer.c (grub_script_lexer_init): initialize tokenonhold
fda6cb98 19353 (grub_script_yylex): remove
19354 (grub_script_yylex2): renamed to ...
19355 (grub_script_yylex): ...renamed
19356 parse the expressions like a${b}c
19357 * script/sh/parser.y (GRUB_PARSER_TOKEN_ARG): new typed terminal
19358 (GRUB_PARSER_TOKEN_VAR): remove
19359 (GRUB_PARSER_TOKEN_NAME): likewise
19360 ("if"): declare as typeless
19361 ("while"): likewise
19362 ("function"): likewise
19363 ("else"): likewise
19364 ("then"): likewise
19365 ("fi"): likewise
19366 (text): remove
19367 (argument): likewise
19368 (script): accept empty scripts and make exit on error
19369 (arguments): use GRUB_PARSER_TOKEN_ARG
19370 (function): likewise
19371 (command): move error handling to script
19372 (menuentry): move grub_script_lexer_ref before
473d1e45 19373 * script/sh/script.c (grub_script_create_cmdline): remove cmdline
fda6cb98 19374 argument. All callers updated
19375
f4448a07 193762009-06-04 Robert Millan <rmh.grub@aybabtu.com>
19377
19378 Prevent GRUB from probing floppies during boot.
19379
19380 * conf/common.rmk (search_mod_CFLAGS): Use `-Werror -Wall'.
19381 * commands/search.c (options): Add --no-floppy.
19382 (search_fs, search_file, grub_cmd_search): Support --no-floppy.
19383 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Use
19384 --no-floppy when searching for UUIDs.
19385
2bf5885a 193862009-06-04 Robert Millan <rmh.grub@aybabtu.com>
19387
19388 Simplify the code duplication in commands/search.c.
19389
19390 * commands/search.c (search_label, search_fs_uuid): Merge into ...
19391 (search_fs): ... this. Update all users.
19392
f6fd460a 193932009-06-03 Felix Zielcke <fzielcke@z-51.de>
19394
19395 * util/grub-mkconfig.in (update_grub_dir): Rename to grub_mkconfig_dir.
19396
cbb3c83e 193972009-05-28 Pavel Roskin <proski@gnu.org>
19398
57788cfd 19399 * Makefile.in: Don't use "cp -d", it doesn't work on FreeBSD.
19400 Remove the original symlink explicitly.
19401
cbb3c83e 19402 * fs/hfs.c (grub_hfs_find_dir): Skip sequences of slashes, not
19403 just one slash. That's how grub_fshelp_find_file() does it.
19404
cd0d5e30 194052009-05-26 Pavel Roskin <proski@gnu.org>
19406
f0f8bbe2 19407 * genmk.rb: Avoid shadowing variable `s', rename the outer `s'
19408 to `str'.
19409
cd0d5e30 19410 * util/getroot.c (grub_util_get_dev_abstraction): Mark os_dev as
19411 possibly unused.
19412
8c2cab51 194132009-05-25 Christian Franke <franke@computer.org>
19414
19415 * disk/ata.c (grub_ata_wait_not_busy): Add debug output of status
19416 register.
19417 (grub_atapi_identify): Add wait after drive select.
19418 (grub_ata_identify): Do more strict status register check before
19419 calling grub_atapi_identify (). Suppress error message if status
19420 register is 0x00 after command failure. Add status register
19421 check after PIO read to avoid bogus identify due to stuck DRQ.
19422 Thanks to Pavel Roskin for testing.
19423 (grub_device_initialize): Remove unsafe status register check.
19424 Thanks to 'phcoder' for problem report and patch.
19425 Prevent sign extension in debug message.
19426
230c0ad6 194272009-05-23 Colin D Bennett <colin@gibibit.com>
19428
19429 Cleaned up `include/grub/normal.h'. Grouped prototypes by
19430 definition file, and functions defined in `normal/menu.c' have had
19431 their prototypes moved to `include/grub/menu.h' for consistency.
19432
19433 * include/grub/menu.h (grub_menu_execute_callback): Added; moved
19434 from normal.h.
19435 (grub_menu_get_entry): Likewise.
19436 (grub_menu_get_timeout): Likewise.
19437 (grub_menu_set_timeout): Likewise.
19438 (grub_menu_execute_entry): Likewise.
19439 (grub_menu_execute_with_fallback): Likewise.
19440 (grub_menu_entry_run): Likewise.
19441
19442 * include/grub/normal.h: Re-ordered and grouped function
19443 prototypes by file that the function is defined in.
19444 (grub_menu_execute_callback): Removed; moved to menu.h.
19445 (grub_menu_get_entry): Likewise.
19446 (grub_menu_get_timeout): Likewise.
19447 (grub_menu_set_timeout): Likewise.
19448 (grub_menu_execute_entry): Likewise.
19449 (grub_menu_execute_with_fallback): Likewise.
19450 (grub_menu_entry_run): Likewise.
19451 (grub_menu_addentry): Renamed from this ...
19452 (grub_normal_add_menu_entry): ... to this.
19453
19454 * normal/main.c (grub_menu_addentry): Renamed from this ...
19455 (grub_normal_add_menu_entry): ... to this.
19456
19457 * script/sh/execute.c (grub_script_execute_menuentry): Update
19458 reference to renamed grub_menu_addentry function.
19459
861f03a5 194602009-05-23 Felix Zielcke <fzielcke@z-51.de>
19461
19462 * commands/i386/pc/drivemap.c (MODNAME): Remove. Update all users.
19463
96b1619a 194642009-05-22 Pavel Roskin <proski@gnu.org>
19465
bf6a5fb2 19466 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Remove.
19467 * configure.ac: Don't call grub_I386_CHECK_REGPARM_BUG. Define
19468 NESTED_FUNC_ATTR using AH_BOTTOM. Use regparm(1) only when
19469 compiling for the i386 targets, but not for the utilities.
19470
96b1619a 19471 * include/grub/i386/pc/kernel.h (grub_boot_drive): Change type
19472 to grub_uint8_t.
19473 (grub_root_drive): Likewise.
19474 * kern/i386/pc/startup.S (grub_boot_drive): Change size to byte,
19475 remove alignment.
19476 (grub_root_drive): Change size to byte.
19477 (grub_start_addr): Remove.
19478 (grub_end_addr): Likewise.
19479 (grub_apm_bios_info): Likewise.
19480
b729776b 194812009-05-21 Felix Zielcke <fzielcke@z-51.de>
19482
19483 * normal/i386: Remove.
19484 * normal/powerpc: Likewise.
19485 * normal/sparc64: Likewise.
19486 * normal/x86_64: Likewise.
19487
0a15ce80 194882009-05-19 Vladimir Serbinenko <phcoder@gmail.com>
19489
19490 * conf/x86_64-efi.rmk (linux_mod_ASFLAGS): Add missing variable
473d1e45 19491 * loader/i386/linux_trampoline.S: Fix indentation
0a15ce80 19492 * loader/i386/xnu_helper.S: Likewise
d6da58e6 19493
33db9015 194942009-05-18 Colin D Bennett <colin@gibibit.com>
19495
d6da58e6 19496 Display error messages when parsing a Lua statement fails.
19497 Previously, executing a syntactically invalid statement like
19498 ")foo" or "bar;" would silently fail.
33db9015 19499
19500 * script/lua/grub_main.c (handle_lua_error): New function.
d6da58e6 19501 (grub_lua_parse_line): Improved reporting of Lua parser and
19502 execution errors.
33db9015 19503
46422c89 195042009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
19505
19506 Remove -Werror which causes build to fail on some systems
19507
19508 * conf/i386-pc.rmk (xnu_mod_CFLAGS): Remove -Werror -Wall
19509 * conf/i386-efi.rmk (xnu_mod_CFLAGS): Likewise
19510 * conf/x86_64-efi.rmk (xnu_mod_CFLAGS): Likewise
18f547ad 19511
22f53a96 195122009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
19513
19514 trampoline for linux on 64-bit platform
19515
18f547ad 19516 * conf/x86_64-efi.rmk (linux_mod_SOURCES): added
19517 loader/i386/efi/linux_trampoline.S
19518 * include/grub/x86_64/efi/loader.h (grub_linux_real_boot): removed
473d1e45 19519 declaration
d6da58e6 19520 * kern/x86_64/efi/startup.S (grub_linux_real_boot): moved from
19521 here
22f53a96 19522 * loader/i386/linux_trampoline.S: moved here
d6da58e6 19523 * loader/i386/efi/linux.c (allocate_pages): reserve space for
19524 trampoline
22f53a96 19525 (jumpvector): removed
19526 (grub_linux_trampoline_start): new declaration
19527 (grub_linux_trampoline_end): likewise
19528 (grub_linux_boot): use trampoline when on 64-bit platform
19529 * loader/i386/linux.c: likewise
19530
cb5a0f40 195312009-05-16 Pavel Roskin <proski@gnu.org>
19532
19533 * script/lua/grub_lib.c (grub_lua_getenv): Make name and value
19534 const to avoid a warning.
19535 (grub_lua_setenv): Likewise.
19536 * script/lua/grub_main.c (grub_lua_parse_line): Use size_t for
19537 lmsg to fix a warning.
19538
334f2c28 195392009-05-16 Felix Zielcke <fzielcke@z-51.de>
19540
19541 * conf/i386.rmk (setjmp_mod_CFLAGS): Rename to ...
7dd10fce 19542 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
19543 * conf/x86_64-efi.rmk (setjmp_mod_CFLAGS): Rename to ...
19544 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
19545 * conf/powerpc-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
19546 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
19547 * conf/sparc64-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
19548 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
334f2c28 19549
59e5d3ec 195502009-05-16 Felix Zielcke <fzielcke@z-51.de>
19551
19552 * util/grub-mkconfig.in: Export GRUB_TERMINAL_INPUT.
19553
9d87a1ba 195542009-05-16 Bean <bean123ch@gmail.com>
19555
19556 * conf/common.rmk (pkglib_MODULES): Add lua.mod.
19557 (lua_mod_SOURCES): New variable.
19558 (lua_mod_CFLAGS): Likewise.
19559 (lua_mod_LDFLAGS): Likewise.
19560
19561 * conf/i386.rmk (pkglib_MODULES): Add setjmp.mod.
19562 (setjmp_mod_SOURCES): New variable.
19563 (setjmp_mod_CFLAGS): Likewise.
19564 (setjmp_LDFLAGS): Likewise.
19565
19566 * conf/x86_64-efi.rmk (pkglib_MODULES): Add setjmp.mod.
19567 (setjmp_mod_SOURCES): New variable.
19568 (setjmp_mod_CFLAGS): Likewise.
19569 (setjmp_LDFLAGS): Likewise.
19570
19571 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
19572 (setjmp_mod_SOURCES): New variable.
19573 (setjmp_mod_CFLAGS): Likewise.
19574 (setjmp_LDFLAGS): Likewise.
19575
19576 * conf/sparc64-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
19577 (setjmp_mod_SOURCES): New variable.
19578 (setjmp_mod_CFLAGS): Likewise.
19579 (setjmp_LDFLAGS): Likewise.
19580
19581 * normal/i386/setjmp.S: Moved from here ...
19582 * lib/i386/setjmp.S: ... Moved here
19583 * normal/x86_64/setjmp.S: Moved from here ...
19584 * lib/x86_64/setjmp.S: ... Moved here
19585 * normal/powerpc/setjmp.S: Moved from here ...
19586 * lib/powerpc/setjmp.S: ... Moved here
19587 * normal/sparc64/setjmp.S: Moved from here ...
19588 * lib/sparc64/setjmp.S: ... Moved here
19589
19590 * include/grub/i386/setjmp.h (grub_setjmp): Don't use attribute
19591 returns_twice in mingw.
19592
19593 * script/lua/grub_lib.c: New file.
19594 * script/lua/grub_lib.h: Likewise.
19595 * script/lua/grub_lua.h: Likewise.
19596 * script/lua/grub_main.c: Likewise.
19597 * script/lua/lapi.c: Likewise.
19598 * script/lua/lapi.h: Likewise.
19599 * script/lua/lauxlib.c: Likewise.
19600 * script/lua/lauxlib.h: Likewise.
19601 * script/lua/lbaselib.c: Likewise.
19602 * script/lua/lcode.c: Likewise.
19603 * script/lua/lcode.h: Likewise.
19604 * script/lua/ldblib.c: Likewise.
19605 * script/lua/ldebug.c: Likewise.
19606 * script/lua/ldebug.h: Likewise.
19607 * script/lua/ldo.c: Likewise.
19608 * script/lua/ldo.h: Likewise.
19609 * script/lua/ldump.c: Likewise.
19610 * script/lua/lfunc.c: Likewise.
19611 * script/lua/lfunc.h: Likewise.
19612 * script/lua/lgc.c: Likewise.
19613 * script/lua/lgc.h: Likewise.
19614 * script/lua/linit.c: Likewise.
19615 * script/lua/liolib.c: Likewise.
19616 * script/lua/llex.c: Likewise.
19617 * script/lua/llex.h: Likewise.
19618 * script/lua/llimits.h: Likewise.
19619 * script/lua/lmathlib.c: Likewise.
19620 * script/lua/lmem.c: Likewise.
19621 * script/lua/lmem.h: Likewise.
19622 * script/lua/loadlib.c: Likewise.
19623 * script/lua/lobject.c: Likewise.
19624 * script/lua/lobject.h: Likewise.
19625 * script/lua/lopcodes.c: Likewise.
19626 * script/lua/lopcodes.h: Likewise.
19627 * script/lua/loslib.c: Likewise.
19628 * script/lua/lparser.c: Likewise.
19629 * script/lua/lparser.h: Likewise.
19630 * script/lua/lstate.c: Likewise.
19631 * script/lua/lstate.h: Likewise.
19632 * script/lua/lstring.c: Likewise.
19633 * script/lua/lstring.h: Likewise.
19634 * script/lua/lstrlib.c: Likewise.
19635 * script/lua/ltable.c: Likewise.
19636 * script/lua/ltable.h: Likewise.
19637 * script/lua/ltablib.c: Likewise.
19638 * script/lua/ltm.c: Likewise.
19639 * script/lua/ltm.h: Likewise.
19640 * script/lua/lua.h: Likewise.
19641 * script/lua/luaconf.h: Likewise.
19642 * script/lua/lualib.h: Likewise.
19643 * script/lua/lundump.c: Likewise.
19644 * script/lua/lundump.h: Likewise.
19645 * script/lua/lvm.c: Likewise.
19646 * script/lua/lvm.h: Likewise.
19647 * script/lua/lzio.c: Likewise.
19648 * script/lua/lzio.h: Likewise.
19649
5e898c9d 196502009-05-16 Bean <bean123ch@gmail.com>
19651
19652 * include/grub/kernel.h (grub_module_header_types): Add type
19653 OBJ_TYPE_CONFIG.
19654
19655 * kern/main.c (grub_load_config): New function.
19656 (grub_main): Call grub_load_config to read boot config.
19657
19658 * grub-mkimage (generate_image): New parameter config_path.
19659 (options): New option --config.
19660 (main): Parse --config option, and pass it to generate_image.
19661
cf353a47 196622009-05-14 Christian Franke <franke@computer.org>
19663
19664 * commands/i386/pc/drivemap_int13h.S: Add missing EXT_C for symbols.
19665 This fixes build on Cygwin.
19666
3834887f 196672009-05-14 Pavel Roskin <proski@gnu.org>
19668
19669 * commands/i386/pc/drivemap_int13h.S: Eliminate unconditional
19670 jump. This saves two bytes, so the typical case of 2 swapped
19671 drives would fit 32 bytes.
19672
8090fc01 196732009-05-13 Pavel Roskin <proski@gnu.org>
19674
ac963883 19675 * loader/i386/multiboot.c (grub_multiboot): Cast mmap_addr to
19676 grub_uint32_t to avoid a warning.
19677
8090fc01 19678 * loader/i386/linux.c (allocate_pages): When assigning
19679 real_mode_mem, cast through grub_size_t to fix a warning. The
19680 code already makes sure that the value would fit a pointer.
19681 (grub_linux_setup_video): Cast render_target->data to
19682 grub_size_t to fix a warning.
19683
18f547ad 196842009-05-13 Javier Martín <lordhabbit@gmail.com>
4246b8a9 19685
19686 * commands/i386/pc/drivemap.c: New file - implement drivemap
19687 command.
19688 * commands/i386/pc/drivemap_int13h.S: New file - int13 handler.
19689 * conf/i386-pc.rmk: Add drivemap.c and drivemap_int13h.S.
19690
6f6a8b28 196912009-05-13 Pavel Roskin <proski@gnu.org>
19692
19693 * util/i386/pc/grub-setup.c (setup): Remove unused variable
19694 embedding_area_exists.
19695
15fbf4c4 196962009-05-13 Robert Millan <rmh.grub@aybabtu.com>
19697
19698 * util/i386/pc/grub-setup.c (setup): Restructure code flow to make
19699 it easier to understand / work with.
59978c8a 19700 Improve warning messages for cases where there's no embedding area,
19701 or when it is too small (or core.img too large).
15fbf4c4 19702
238e871f 197032009-05-13 Pavel Roskin <proski@gnu.org>
19704
0ab3a9a4 19705 * loader/i386/pc/multiboot2.c: Add necessary includes for
19706 grub_multiboot2_real_boot().
19707
a2c8c5f8 19708 * fs/iso9660.c (grub_iso9660_iterate_dir): The file mode in the
19709 PX record is always little-endian. We only need the lower 2
19710 bytes of the mode.
19711
faec96af 19712 * fs/cpio.c: Use the same name "struct head" for tar and cpio to
19713 facilitate code reuse.
19714 (grub_cpio_mount): Use "struct head", not a char buffer. This
19715 fixes a warning reported by gcc 4.4.
19716
238e871f 19717 * kernel/disk.c (grub_disk_read): Use void pointer for the
19718 buffer.
19719 (grub_disk_write): Use const void pointer for the buffer.
19720 Adjust all callers. Remove unnecessary casts.
19721
901d2f0c 197222009-05-10 Robert Millan <rmh.grub@aybabtu.com>
19723
19724 * util/i386/pc/grub-install.in: Update copyright year.
19725
18f547ad 197262009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
2eac4c16 19727
19728 gptsync
19729
19730 * commands/gptsync.c: new file
19731 * conf/common.rmk (pkglib_MODULES): add gptsync.mod
19732 (gptsync_mod_SOURCES): new variable
19733 (gptsync_mod_CFLAGS): likewise
19734 (gptsync_mod_LDFLAGS): likewise
18f547ad 19735 * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_NTFS):
2eac4c16 19736 new definition
19737 (GRUB_PC_PARTITION_TYPE_HFS): likewise
19738 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/gptsync.c
19739 * conf/i386-ieee1275.rmk: likewise
19740 * conf/i386-pc.rmk: likewise
19741 * conf/powerpc-ieee1275.rmk: likewise
19742
b4ba690a 197432009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
19744
19745 Fixed grub-emu
19746
19747 * kern/dl.c (grub_dl_ref): omit when compiling grub-emu
19748 (grub_dl_ref): likewise
19749
317e1a44 197502009-05-08 Robert Millan <rmh.grub@aybabtu.com>
19751
19752 * util/i386/pc/grub-setup.c (setup): Factorize find_usable_region(),
19753 split in two functions (one for msdos and one for gpt).
19754
041b8094 197552009-05-08 Pavel Roskin <proski@gnu.org>
19756
752473c2 19757 * disk/raid.c (grub_raid_block_xor): Make buf2 constant, it's
19758 not modified.
19759
041b8094 19760 * disk/raid6_recover.c (grub_raid6_recover): Fix warnings about
19761 uninitialized err[0] and err[1]. Rename them to bad1 and bad2.
19762 Initialize them with -1. Add sanity check for bad1. Eliminate
19763 nerr variable.
19764
172800ce 197652009-05-08 David S. Miller <davem@davemloft.net>
19766
19767 * util/sparc64/ieee1275/grub-ofpathname.c (main): Set progname.
19768
29aa5e81 197692009-05-06 Robert Millan <rmh.grub@aybabtu.com>
19770
19771 * util/i386/pc/grub-setup.c (setup): Fix check for embed region
473d1e45 19772 existence.
29aa5e81 19773
96613b62 197742009-05-05 Felix Zielcke <fzielcke@z-51.de>
19775
19776 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
1905c57b 19777 `kern/rescue_reader.c', `kern/rescue_parser.c' and `normal/autofs.c'.
96613b62 19778
eef73c8a 197792009-05-05 David S. Miller <davem@davemloft.net>
19780
19781 * util/sparc64/ieee1275/grub-install.in: Fix sed arg quoting.
19782
119494b5 197832009-05-05 Pavel Roskin <proski@gnu.org>
19784
19785 * include/grub/dl.h [GRUB_UTIL]: Provide inline implementations
19786 of grub_dl_ref() and grub_dl_unref().
19787 * commands/parttool.c: Remove preprocessor conditionals around
19788 grub_dl_ref() and grub_dl_unref().
19789 * fs/affs.c: Likewise.
19790 * fs/afs.c: Likewise.
19791 * fs/cpio.c: Likewise.
19792 * fs/ext2.c: Likewise.
19793 * fs/fat.c: Likewise.
19794 * fs/hfs.c: Likewise.
19795 * fs/hfsplus.c: Likewise.
19796 * fs/iso9660.c: Likewise.
19797 * fs/jfs.c: Likewise.
19798 * fs/minix.c: Likewise.
19799 * fs/ntfs.c: Likewise.
19800 * fs/reiserfs.c: Likewise.
19801 * fs/sfs.c: Likewise.
19802 * fs/udf.c: Likewise.
19803 * fs/ufs.c: Likewise.
19804 * fs/xfs.c: Likewise.
19805 * include/grub/dl.h: Likewise.
19806 * loader/xnu.c: Likewise.
19807
de5fd76e 198082009-05-04 Pavel Roskin <proski@gnu.org>
19809
19810 * commands/acpi.c: Remove unused variable my_mod.
19811 * partmap/amiga.c: Likewise.
19812 * partmap/apple.c: Likewise.
19813 * partmap/gpt.c: Likewise.
19814 * partmap/pc.c: Likewise.
19815 * partmap/sun.c: Likewise.
19816 * term/gfxterm.c: Likewise.
19817 * term/i386/pc/vesafb.c: Likewise.
19818 * term/i386/pc/vga.c: Likewise.
19819
983598ad 198202009-05-04 David S. Miller <davem@davemloft.net>
19821
19822 * kern/ieee1275/openfw.c (grub_children_iterate): Fix string
19823 pointer args to grub_ieee1275_get_property().
19824
8aadec43 19825 * conf/sparc64-ieee1275.rmk: Fix build due to missing '\'.
19826
9554b15e 19827 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Bypass cdrom
19828 devices, and do not traverse down under controller nodes.
19829
67e23c90 19830 * disk/ieee1275/ofdisk.c (compute_dev_path): New.
19831 (grub_ofdisk_open): Use it to un-escape "," characters.
19832 * kern/disk.c (find_part_sep): New.
19833 (grub_disk_open): Use it to find the first non-escaped ','
19834 character in the disk name.
19835 * util/ieee1275/devicemap.c (escape_of_path): New.
19836 (grub_util_emit_devicemap_entry): Use it.
19837 * util/sparc64/ieee1275/grub-install.in: Update script to
19838 strip partition specifiers properly by not triggering on
19839 '\' escaped ',' characters.
19840
74bfdd2f 198412009-05-04 Robert Millan <rmh.grub@aybabtu.com>
19842
19843 * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START): Set
19844 to 0x300.
19845 * loader/i386/linux.c (vga_modes, linux_vesafb_res): Add a few
19846 resolutions.
19847 (linux_vesafb_modes): Add a lot of additional modes to the list (based
19848 on documentation from Wikipedia).
19849
4241d2b1 198502009-05-04 Pavel Roskin <proski@gnu.org>
19851
19852 * disk/ata.c: Spelling fixes.
19853 * disk/raid.c: Likewise.
19854 * disk/usbms.c: Likewise.
19855 * disk/dmraid_nvidia.c: Likewise.
19856 * kern/ieee1275/openfw.c: Likewise.
19857 * kern/ieee1275/init.c: Likewise.
19858 * kern/ieee1275/cmain.c: Likewise.
19859 * boot/i386/pc/cdboot.S: Likewise.
19860 * video/readers/png.c: Likewise.
19861 * video/i386/pc/vbe.c: Likewise.
19862 * fs/udf.c: Likewise.
19863 * fs/hfs.c: Likewise.
19864 * fs/reiserfs.c: Likewise.
19865 * efiemu/runtime/efiemu.c: Likewise.
19866 * efiemu/main.c: Likewise.
19867 * efiemu/mm.c: Likewise.
19868 * include/grub/elf.h: Likewise.
19869 * include/grub/xnu.h: Likewise.
19870 * include/grub/usbdesc.h: Likewise.
19871 * include/grub/usb.h: Likewise.
19872 * include/grub/script_sh.h: Likewise.
19873 * include/grub/lib/LzmaEnc.h: Likewise.
19874 * include/grub/efiemu/efiemu.h: Likewise.
19875 * include/grub/command.h: Likewise.
19876 * normal/menu.c: Likewise.
19877 * normal/main.c: Likewise.
19878 * normal/datetime.c: Likewise.
19879 * bus/usb/uhci.c: Likewise.
19880 * mmap/i386/uppermem.c: Likewise.
19881 * mmap/mmap.c: Likewise.
19882 * commands/acpi.c: Likewise.
19883 * commands/test.c: Likewise.
19884 * partmap/apple.c: Likewise.
19885 * font/font.c: Likewise.
19886 * loader/sparc64/ieee1275/linux.c: Likewise.
19887 * loader/macho.c: Likewise.
19888 * loader/i386/bsd_trampoline.S: Likewise.
19889 * loader/i386/bsd.c: Likewise.
19890 * loader/xnu.c: Likewise.
19891 * term/i386/pc/vesafb.c: Likewise.
19892 * term/usb_keyboard.c: Likewise.
19893 * util/resolve.c: Likewise.
19894 * util/getroot.c: Likewise.
19895
0cfc0083 198962009-05-04 Felix Zielcke <fzielcke@z-51.de>
19897
19898 * conf/i386-pc.rmk (libpkg_DATA): Rename to pkglib_DATA.
19899
7c1d00cd 199002009-05-04 Robert Millan <rmh.grub@aybabtu.com>
19901
19902 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (grub_cmd_linux): Fix
19903 build error.
19904
b01f0548 199052009-05-04 Robert Millan <rmh.grub@aybabtu.com>
19906
19907 * loader/i386/linux.c (grub_cmd_linux): Make "vga=" compatibility
19908 parameter only available on BIOS.
19909
ecc3eb22 199102009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
19911
19912 Removed wrong semicolon in declaration
19913
19914 * grub/misc.h (grub_dprintf): remove semicolon
19915
112972a9 199162009-05-04 Robert Millan <rmh.grub@aybabtu.com>
19917
19918 * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT): New macro.
19919 (grub_linux_boot): Don't check for `linux_vesafb_modes' bounds (this
19920 is done by grub_cmd_linux() now).
19921 [! GRUB_ASSUME_LINUX_HAS_FB_SUPPORT]: If "vga=" parameter wasn't set,
19922 restore video to text mode.
19923 (grub_cmd_linux): Default `vid_mode' initialization to 0, which
19924 indicates lack of "vga=" parameter. "vga=0" is mapped to
19925 `GRUB_LINUX_VID_MODE_NORMAL'.
19926
afd5c115 199272009-05-04 Felix Zielcke <fzielcke@z-51.de>
19928
19929 * conf/i386-efi.rmk (grub_emu_SOURCES): Remove `normal/execute.c',
19930 `normal/lexer.c', `kern/rescue.c', `normal/function.c', `normal/misc.c'
19931 and `normal/script.c'. Add `kern/rescue_reader.c',
18f547ad 19932 `kern/rescue_parser.c', `script/sh/main.c', `script/sh/execute.c',
afd5c115 19933 `script/sh/function.c', `script/sh/lexer.c', `script/sh/script.c' and
19934 `grub_script.tab.c'.
19935
19936 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
19937 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
19938 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
19939 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
19940 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
19941
faa517ce 19942 * Makefile.in: Remove duplicated 2008 in Copyright line.
19943
ae0c0bdc 199442009-05-04 Robert Millan <rmh.grub@aybabtu.com>
19945
473d1e45 19946 * util/misc.c (grub_util_warn): New function. Emits a warning
ae0c0bdc 19947 unconditionally.
19948 * include/grub/util/misc.h (grub_util_warn): New declaration.
19949
19950 * util/i386/pc/grub-install.in: Understand --force and pass it down
19951 to grub-setup.
19952
19953 * util/i386/pc/grub-setup.c (main): Understand --force and pass it
19954 down to setup().
19955 (setup): Improve error messages and add warnings when requested to
19956 install in odd layouts. Refuse to install using blocklists unless
19957 --force was set.
19958
18f547ad 199592009-05-04 martin f. krafft <madduck@madduck.net>
c149b500 19960
19961 * disk/raid.c (grub_raid_scan_device): Improve debug message.
19962
6d260daa 199632009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
19964
19965 Updated copyright year
19966
19967 * fs/hfsplus.c: updated copyright year
18f547ad 19968
69f853f8 199692009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
19970
19971 HFS+ UUID
19972
18f547ad 19973 * fs/hfsplus.c (grub_hfsplus_volheader): added num_serial field
69f853f8 19974 in the space previously used by unused3
19975 (grub_hfsplus_uuid): new function
19976 (grub_hfsplus_fs): added uuid field
19977
4c402e73 199782009-05-03 Pavel Roskin <proski@gnu.org>
19979
19980 * disk/ata.c: Don't cast mod to void in GRUB_MOD_INIT to
19981 suppress warnings. It's no longer needed.
19982 * disk/host.c: Likewise.
19983 * disk/ata_pthru.c: Likewise.
19984 * disk/loopback.c: Likewise.
19985 * hook/datehook.c: Likewise.
19986 * parttool/pcpart.c: Likewise.
19987 * fs/i386/pc/pxe.c: Likewise.
19988 * fs/ntfscomp.c: Likewise.
19989 * efiemu/main.c: Likewise.
19990 * mmap/mmap.c: Likewise.
19991 * commands/crc.c: Likewise.
19992 * commands/hexdump.c: Likewise.
19993 * commands/hdparm.c: Likewise.
19994 * commands/acpi.c: Likewise.
19995 * commands/echo.c: Likewise.
19996 * commands/minicmd.c: Likewise.
19997 * commands/blocklist.c: Likewise.
19998 * commands/memrw.c: Likewise.
19999 * commands/loadenv.c: Likewise.
20000 * commands/usbtest.c: Likewise.
20001 * commands/lsmmap.c: Likewise.
20002 * commands/boot.c: Likewise.
20003 * commands/parttool.c: Likewise.
20004 * commands/configfile.c: Likewise.
20005 * commands/search.c: Likewise.
20006 * commands/ieee1275/suspend.c: Likewise.
20007 * commands/cat.c: Likewise.
20008 * commands/i386/pc/pxecmd.c: Likewise.
20009 * commands/i386/pc/play.c: Likewise.
20010 * commands/i386/pc/halt.c: Likewise.
20011 * commands/i386/pc/vbeinfo.c: Likewise.
20012 * commands/i386/pc/vbetest.c: Likewise.
20013 * commands/lspci.c: Likewise.
20014 * commands/date.c: Likewise.
20015 * commands/handler.c: Likewise.
20016 * commands/ls.c: Likewise.
20017 * commands/test.c: Likewise.
20018 * commands/cmp.c: Likewise.
20019 * commands/efi/loadbios.c: Likewise.
20020 * commands/efi/fixvideo.c: Likewise.
20021 * commands/halt.c: Likewise.
20022 * commands/help.c: Likewise.
20023 * commands/reboot.c: Likewise.
20024 * hello/hello.c: Likewise.
20025 * script/sh/main.c: Likewise.
20026 * loader/xnu.c: Likewise.
20027 * term/terminfo.c: Likewise.
20028 * term/i386/pc/serial.c: Likewise.
20029 * term/usb_keyboard.c: Likewise.
20030
515b5079 200312009-05-03 David S. Miller <davem@davemloft.net>
20032
20033 * normal/menu.c: Include grub/parser.h
20034
dfc31a22 200352009-05-03 Pavel Roskin <proski@gnu.org>
20036
2fee74f1 20037 * mmap/efi/mmap.c (grub_mmap_malign_and_register): Return void*,
20038 not char*.
20039 * mmap/i386/mmap.c (grub_mmap_malign_and_register): Likewise.
20040 Suggested by Javier Martín <lordhabbit@gmail.com>
20041
dfc31a22 20042 * util/i386/pc/grub-mkrescue.in: Allow for the case when
20043 efiemu??.o doesn't exist.
20044 * util/i386/pc/grub-install.in: Likewise. Use "cp -f" for
20045 copying.
20046
18f547ad 200472009-05-03 Bean <bean123ch@gmail.com> Vladimir Serbinenko <phcoder@gmail.com>
cef17233 20048
20049 FreeBSD 64-bit support
20050
18f547ad 20051 * conf/i386-pc.rmk (bsd_mod_SOURCES): add loader/i386/bsd_helper.S
cef17233 20052 and loader/i386/bsd_trampoline.S
20053 (bsd_mod_ASFLAGS): new variable
20054 * include/grub/i386/bsd.h (FREEBSD_MODINFOMD_SMAP): new definition
20055 (FREEBSD_MODTYPE_KERNEL64): likewise
20056 (grub_bsd64_trampoline_start): likewise
20057 (grub_bsd64_trampoline_end): likewise
20058 (grub_bsd64_trampoline_selfjump): likewise
20059 (grub_bsd64_trampoline_gdt): likewise
20060 * include/grub/i386/loader.h (grub_unix_real_boot): moved from here ...
20061 * include/grub/i386/bsd.h (grub_unix_real_boot): ... moved here
20062 * kern/i386/loader.S (grub_unix_real_boot): moved from here ...
20063 * loader/i386/bsd_helper.S (grub_unix_real_boot): moved here
18f547ad 20064 * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
cef17233 20065 of "attrib" member
20066 * loader/i386/bsd_pagetable.c: new file
20067 * loader/i386/bsd_trampoline.S: likewise
20068 * loader/i386/bsd.c (ALIGN_QWORD): new macro
20069 (ALIGN_VAR): likewise
20070 (entry_hi): new variable
20071 (kern_end_mdofs): likewise
20072 (is_64bit): likewise
20073 (grub_freebsd_add_meta): use ALIGN_VAR
20074 (grub_e820_mmap): new declaration
20075 (grub_freebsd_add_mmap): new function
20076 (grub_freebsd_add_meta_module): support 64 bit kernels
20077 (grub_freebsd_list_modules): use ALIGN_VAR
20078 (gdt_descriptor): new declaration
20079 (grub_freebsd_boot): support 64 bit kernels
20080 (grub_bsd_elf64_hook): new function
20081 (grub_bsd_load_elf): support elf64
20082
038c5720 200832009-05-03 Bean <bean123ch@gmail.com>
20084
20085 * script/sh/execute.c (grub_script_execute_cmdif): Reset grub_errno
20086 after we get the result of if statement.
20087
fc45fb58 200882009-05-03 Bean <bean123ch@gmail.com>
20089
20090 * Makefile.in (enable_efiemu): New variable.
20091
20092 * conf/i386-pc.rmk: Only compile efiemu runtimes when enable_efiemu is
20093 set.
20094 (efiemu32.o): Use macro $< for source file, add $(srcdir) to include
20095 path.
20096 (efi64_c.o): Use macro $< for source file, add $(srcdir) to include
20097 path, add -mno-red-zone option.
20098 (efiemu64_s.o): Likewise.
20099 (efiemu64.o): Use macro $^ for source file.
20100
20101 * configure.ac (--enable-efiemu): New option.
20102
bbee0f2b 201032009-05-03 Vladimir Serbinenko <phcoder@gmail.com>
20104
20105 xnu support
20106
20107 * conf/i386-efi.rmk (kernel_mod_HEADERS): added i386/pit.h
20108 (pkglib_MODULES): add xnu.mod
20109 (xnu_mod_SOURCES): new variable
20110 (xnu_mod_CFLAGS): likewise
20111 (xnu_mod_LDFLAGS): likewise
20112 (xnu_mod_ASFLAGS): likewise
20113 * conf/i386-pc.rmk: likewise
20114 * conf/x86_64-efi.rmk: likewise
7dd4a573 20115 * include/grub/efi/efi.h (grub_efi_finish_boot_services):
bbee0f2b 20116 new declaration
20117 * include/grub/i386/macho.h: new file
20118 * include/grub/i386/xnu.h: likewise
20119 * include/grub/macho.h: likewise
20120 * include/grub/machoload.h: likewise
20121 * include/grub/x86_64/macho.h: likewise
20122 * include/grub/x86_64/xnu.h: likewise
20123 * include/grub/xnu.h: likewise
20124 * kern/efi/efi.c (grub_efi_finish_boot_services): new function
20125 * kern/efi/mm.c (MAX_HEAP_SIZE): increase
20126 * loader/i386/efi/xnu.c: new file
20127 * loader/i386/pc/xnu.c: likewise
20128 * loader/i386/xnu.c: likewise
20129 * loader/i386/xnu_helper.S: likewise
20130 * loader/macho.c: likewise
20131 * loader/xnu.c: likewise
20132 * loader/xnu_resume.c: likewise
20133 * util/grub-dumpdevtree: likewise
20134 * include/grub/i386/pit.h: include grub/err.h
20135 (grub_pit_wait): export
20136 * util/grub.d/30_os-prober.in: support Darwin/Mac OS X
7dd4a573 20137
5caf964d 201382009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
20139
20140 Efiemu
7dd4a573 20141
5caf964d 20142 * conf/i386-pc.rmk: new modules efiemu, efiemu_acpi, efiemu_pnvram,
7dd4a573 20143 _linux_efi, linux_efi.
20144 new files in grub-emu
5caf964d 20145 new targets efiemu32.o and efiemu64.o
20146 * loader/linux_normal_efiemu.c: likewise
20147 * loader/i386/efi/linux.c: added preliminary efiemu support
7dd4a573 20148 * util/i386/pc/grub-install.in: add efiemu??.o to the list of
5caf964d 20149 files to copy
20150 * include/grub/autoefi.h: new file
7dd4a573 20151 * include/grub/i386/efiemu.h: likewise
5caf964d 20152 * include/grub/i386/pc/efiemu.h: likewise
20153 * include/grub/efi/api.h: add LL suffix when necessary
20154 new definitions relating to tables
20155 * include/grub/efiemu/efiemu.h: new file
20156 * include/grub/efiemu/runtime.h: likewise
20157 * efiemu/prepare.c: likewise
20158 * efiemu/loadcore_common.c: likewise
20159 * efiemu/loadcore64.c: likewise
20160 * efiemu/runtime/efiemu.sh: likewise
20161 * efiemu/runtime/efiemu.S: likewise
20162 * efiemu/runtime/efiemu.c: likewise
20163 * efiemu/runtime/config.h: likewise
20164 * efiemu/prepare32.c: likewise
20165 * efiemu/main.c: likewise
20166 * efiemu/modules/pnvram.c: likewise
20167 * efiemu/modules/i386: likewise
20168 * efiemu/modules/i386/pc: likewise
20169 * efiemu/modules/acpi.c: likewise
20170 * efiemu/i386/pc/cfgtables.c: likewise
20171 * efiemu/i386/loadcore64.c: likewise
20172 * efiemu/i386/loadcore32.c: likewise
20173 * efiemu/prepare64.c: likewise
20174 * efiemu/loadcore.c: likewise
20175 * efiemu/symbols.c: likewise
20176 * efiemu/mm.c: likewise
20177 * efiemu/loadcore32.c: likewise
7dd4a573 20178
201792009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
f8efe3ad 20180
20181 ACPI spoofing
20182
20183 * commands/acpi.c: new file
20184 * commands/i386/pc/acpi.c: likewise
20185 * commands/efi/acpi.c: likewise
20186 * include/grub/acpi.h: likewise
20187 * conf/i386-pc.rmk (pkglib_MODULES): added acpi.mod
20188 (acpi_mod_SOURCES): new variable
20189 (acpi_mod_CFLAGS): likewise
20190 (acpi_mod_LDFLAGS): likewise
20191 * conf/i386-efi.rmk: likewise
20192 * conf/x86_64-efi.rmk: likewise
20193
7dd4a573 201942009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
28a85665 20195
20196 Missing part from mmap patch
20197
20198 * mmap/efi/mmap.c (grub_machine_mmap_unregister): renamed to
20199 (grub_mmap_unregister)
20200 (grub_mmap_free_and_unregister): use grub_mmap_register
20201
7dd4a573 202022009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
09d842b9 20203
20204 Mmap services
20205
20206 * loader/i386/efi/linux.c (grub_linux_boot): use grub_mmap_iterate
20207 * loader/i386/linux.c (find_mmap_size): likewise
20208 (allocate_pages): likewise
20209 * loader/i386/multiboot.c (grub_get_multiboot_mmap_len): likewise
20210 (grub_fill_multiboot_mmap): likewise
20211 (grub_multiboot): use grub_mmap_get_lower and grub_mmap_get_upper
20212 * loader/i386/pc/linux.c (grub_cmd_linux): use grub_mmap_get_lower
20213 * include/grub/i386/bsd.h (OPENBSD_MMAP_AVAILABLE): new definition
20214 (OPENBSD_MMAP_RESERVED): likewise
20215 * include/grub/i386/pc/memory.h: include grub/memory.h
20216 (grub_lower_mem): removed
20217 (grub_upper_mem): likewise
20218 (GRUB_MACHINE_MEMORY_ACPI): new definition
20219 (GRUB_MACHINE_MEMORY_NVS): likewise
20220 (GRUB_MACHINE_MEMORY_MAX_TYPE): likewise
20221 (GRUB_MACHINE_MEMORY_HOLE): likewise
20222 (grub_machine_mmap_register): likewise
20223 (grub_machine_mmap_unregister): likewise
20224 (grub_machine_get_upper): likewise
20225 (grub_machine_get_lower): likewise
20226 (grub_machine_get_post64): likewise
20227 * include/grub/i386/efi/memory.h: new file
20228 * include/grub/x86_64/efi/memory.h: likewise
20229 * include/grub/efi/memory.h: likewise
20230 * conf/i386-pc.rmk (pkglib_MODULES): added mmap.mod
20231 (mmap_mod_SOURCES): new variable
20232 (mmap_mod_LDFLAGS): likewise
20233 (mmap_mod_ASFLAGS): likewise
20234 * conf/i386-coreboot.rmk: likewise
20235 * conf/i386-ieee1275.rmk: likewise
20236 * conf/i386-efi.rmk: likewise
20237 * conf/x86_64-efi.rmk: likewise
20238 * include/grub/types.h (UINT_TO_PTR): new macro
20239 (PTR_TO_UINT32): likewise
20240 (PTR_TO_UINT64): likewise
20241 * include/grub/memory.h: new file
20242 * mmap/i386/pc/mmap.c: likewise
20243 * mmap/i386/pc/mmap_helper.S: likewise
20244 * mmap/i386/uppermem.c: likewise
20245 * mmap/mmap.c: likewise
20246 * mmap/efi/mmap.c: likewise
7dd4a573 20247 * kern/i386/coreboot/init.c (grub_machine_init): don't use
09d842b9 20248 grub_upper_mem
20249 * kern/i386/pc/init.c (grub_lower_mem): removed variable
20250 (grub_upper_mem): likewise
20251 (grub_machine_init): don't use grub_upper_mem,
20252 make grub_lower_mem local
20253 * loader/i386/bsd.c (grub_openbsd_boot): use grub_mmap_get_lower,
20254 grub_mmap_iterate and grub_mmap_get_upper
20255 (grub_netbsd_boot): use grub_mmap_get_lower and grub_mmap_get_upper
20256
d558e6b5 202572009-05-02 Bean <bean123ch@gmail.com>
20258
20259 * conf/common.rmk (grub_script.tab.c): Change normal/parser.y to
20260 script/sh/parser.y.
20261 (pkglib_MODULES): Add normal.mod and sh.mod.
20262 (normal_SOURCES): New variable.
20263 (normal_mod_CFLAGS): Likewise.
20264 (normal_mod_LDFLAGS): Likewise.
20265 (sh_mod_SOURCES): Likewise.
20266 (sh_mod_CFLAGS): Likewise.
20267 (sh_mod_LDFLAGS): Likewise.
20268
20269 * conf/i386-pc.rmk (normal/lexer.c_DEPENDENCIES): Changed to
20270 script/sh/lexer.c_DEPENDENCIES.
20271 (kernel_img_SOURCES): Remove kern/rescue.c, and kern/reader.c,
20272 kern/rescue_reader.c and kern/rescue_parser.c.
20273 (kernel_img_HEADERS): Remove rescue.h, add reader.h.
20274 (grub_emu_SOURCES): Change source files.
20275 (pkglib_MODULES): Remove normal.mod.
20276 (normal_SOURCES): Removed.
20277 (normal_mod_CFLAGS): Likewise.
20278 (normal_mod_LDFLAGS): Likewise.
20279 * conf/i386-coreboot.rmk: Likewise.
20280 * conf/i386-efi.rmk: Likewise.
20281 * conf/i386-ieee1276.rmk: Likewise.
20282 * conf/powerpc-ieee1275.rmk: Likewise.
20283 * conf/sparc64-ieee1275.rmk: Likewise.
20284 * conf/x86_64-efi.rmk: Likewise.
20285
20286 * include/grub/command.h (grub_command_execute): New inline function.
20287
20288 * include/grub/menu.h (grub_menu_entry): Removed commands field.
20289
20290 * include/grub/normal.h: Remove <grub/setjmp.h>.
20291 (grub_fs_module_list): Moved to normal/autofs.c.
20292 (grub_exit_env): Removed.
20293 (grub_command_execute): Likewise.
20294 (grub_normal_menu_addentry): Renamed to grub_menu_addentry, removed
20295 parameter script.
20296 (read_command_list): New function declaration.
20297 (read_fs_list): Likewise.
20298
20299 * include/parser.h: Include <grub/reader.h>.
20300 (grub_parser_split_cmdline): Change type of getline parameter.
20301 (grub_parser): New structure.
20302 (grub_parser_class): New variable.
20303 (grub_parser_execute): New function declaration.
20304 (grub_register_rescue_parser): Likewise.
20305 (grub_parser_register): New inline function.
20306 (grub_parser_unregister): Likewise.
20307 (grub_parser_get_current): Likewise.
20308 (grub_parser_set_current): Likewise.
20309
20310 * include/grub/reader.h: New file.
20311 * kern/reader.c: Likewise.
20312 * kern/rescue_parser.c: Likewise.
20313 * kern/rescue_reader.c: Likewise.
20314 * normal/autofs.c: Likewise.
20315 * normal/dyncmd.c: Likewise.
20316
20317 * include/grub/rescue.h: Removed.
20318 * normal/command.h: Likewise.
20319
20320 * include/grub/script.h: Moved to ...
20321 * include/grub/script_sh.h: ... Moved here.
20322 * normal/execute.c: Moved to ...
20323 * script/sh/execute.c: ... Moved here.
20324 * normal/function.c: Moved to ...
20325 * script/sh/function.c: ... Moved here.
20326 * normal/lexer.c: Moved to ...
20327 * script/sh/lexer.c: ... Moved here.
20328 * normal/parser.y: Moved to ...
20329 * script/sh/parser.y: ... Moved here.
20330 * normal/script.c: Moved to ...
20331 * script/sh/script.c: ... Moved here.
20332
20333 * normal/main.c: Remove <grub/rescue.h> and <grub/script.h>, include
20334 <grub/reader.h>.
20335 (grub_exit_env): Removed.
20336 (fs_module_list): Moved to normal/autofs.c.
20337 (grub_file_getline): Don't handle comment here.
20338 (free_menu): Skip removed field entry->commands.
20339 (grub_normal_menu_addentry): Removed as grub_menu_entry, removed
20340 script parameter.
20341 (read_config_file): Removed nested parameter, change getline function.
20342 (grub_enter_normal_mode): Removed.
20343 (grub_dyncmd_dispatcher): Moved to normal/dyncmd.c.
20344 (read_command_list): Likewise.
20345 (autoload_fs_module): Moved to normal/autofs.c.
20346 (read_fs_list): Likewise.
20347 (reader_nested): New variable.
20348 (grub_normal_execute): Run parser.sh to switch to sh parser.
20349 (grub_cmd_rescue): Removed.
20350 (cmd_normal): Removed.
20351 (grub_cmd_normal): Unregister itself at the beginning. Don't register
20352 rescue command.
20353 (grub_cmdline_run): New function.
20354 (grub_normal_reader_init): Likewise.
20355 (grub_normal_read_line): Likewise.
20356 (grub_env_write_pager): Likewise.
20357 (cmdline): New variable.
20358 (grub_normal_reader): Likewise.
20359 (GRUB_MOD_INIT): Register normal reader and set as current, register
20360 pager hook, register normal command with grub_register_command_prio,
20361 so that it won't show up in command.lst.
20362 (GRUB_MOD_FINI): Unregister normal reader, unhook pager, clear
20363 grub_fs_autoload_hook.
20364
20365 * normal/menu.c: Remove <grub/script.h>, add <grub/command.h>.
20366 (grub_menu_execute_entry): Replace grub_script_execute with
20367 grub_parser_execute, change parameter to grub_command_execute.
20368
20369 * normal/menu_text.c: Remove <grub/script.h>.
20370
20371 * normal/menu_entry.c: Remove <grub/script.h>, add <grub/command.h>
20372 and <grub/parser.h>.
20373 (run): Change editor_getline to use new parser interface. Change
20374 parameter to grub_command_execute.
20375
20376 * kern/main.c: Remove <grub/rescue.h>, include <grub/command.h>,
20377 <grub/reader.h> and <grub/parser.h>.
20378 (grub_load_normal_mode): Execute normal command.
20379 (grub_main): Call grub_register_core_commands,
20380 grub_register_rescue_parser and grub_register_rescue_reader, use
20381 grub_reader_loop to enter input loop.
20382
7dd4a573 20383 * kern/parser.c (grub_parser_split_cmdline): Change type of
20384 getline parameter.
d558e6b5 20385 (grub_parser_class): New variable.
20386 (grub_parser_execute): New function.
20387
20388 * loader/i386/multiboot.c: Remove <grub/rescue.h>.
20389 * loader/multiboot2.c: Likewise.
20390 * loader/sparc64/ieee1275/linux.c: Likewise.
20391
20392 * util/grub-emu.c (read_command_list): New dummy function.
20393
18db813d 203942009-05-02 Robert Millan <rmh.grub@aybabtu.com>
20395
20396 * util/deviceiter.c (grub_util_iterate_devices): Increase max drive
20397 count to 16 for CCISS and IDA.
20398
6c67de15 203992009-05-02 Robert Millan <rmh.grub@aybabtu.com>
20400
20401 * normal/menu_text.c (grub_wait_after_message): Print a newline
20402 after waiting for user input.
20403
20404 * loader/i386/linux.c: Include `<grub/normal.h>'.
20405 (grub_cmd_linux): Improve the error message about `ask' mode, by
20406 waiting for user input so it's not missed (we can do this, since
20407 user requested interaction).
20408
d9dc87b0 204092009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
20410
20411 Added missing lst to grub-mkrescue
20412
20413 * util/i386/pc/grub-mkrescue.in: added ${input_dir}/handler.lst
20414 and ${input_dir}/parttool.lst
20415
ac8a2baa 204162009-04-30 David S. Miller <davem@davemloft.net>
20417
ad22a610 20418 * util/hostdisk.c (device_is_wholedisk): New function.
20419 (grub_util_biosdisk_get_grub_dev): Shortcut when hdg.start is
20420 zero only if device_is_wholedisk() returns true.
20421
6966215d 20422 * util/hostdisk.c (convert_system_partition_to_system_disk):
20423 Handle virtual disk devices named /dev/vdiskX as found on sparc
20424 and powerpc.
20425
ac8a2baa 20426 * kern/sparc64/ieee1275/init.c (grub_machine_set_prefix): If
20427 lettered partition specifier is found, convert to numbered.
20428
979b4fb4 204292009-04-29 David S. Miller <davem@davemloft.net>
20430
e2bf39b2 20431 * include/grub/powerpc/ieee1275/memory.h: Include ieee1275.h.
20432 * include/grub/sparc64/ieee1275/memory.h: Likewise.
20433
3c64e104 20434 * normal/command.c: Add missing newline at end of file.
20435
979b4fb4 20436 * commands/lsmmap.c (grub_cmd_lsmmap): Add casts to avoid printf
20437 warnings.
20438 * kern/ieee1275/openfw.c (grub_claimmap): Likewise.
20439 * disk/ieee1275/ofdisk.c (grub_ofdisk_open, grub_ofdisk_close,
20440 grub_ofdisk_read): Likewise, and deal similarly with the fact that
20441 ihandles have a 32-bit type but need to be stored in a "void *".
20442
136d9f82 204432009-04-28 Pavel Roskin <proski@gnu.org>
20444
9459c306 20445 * disk/fs_uuid.c (grub_fs_uuid_open): Use parent->data for dev,
20446 not disk. Adjust all dependencies.
2e08a26a 20447 (grub_fs_uuid_close): Use grub_device_close(), not
9459c306 20448 grub_disk_close().
20449
136d9f82 20450 * disk/fs_uuid.c (grub_fs_uuid_open): Allocate memory to copy
20451 parent's partition, don't copy it by reference, as it gets freed
20452 on close.
20453
7dd4a573 204542009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
75a807cf 20455
20456 Preboot hooks support
20457
20458 * commands/boot.c (struct grub_preboot_t): new declaration
20459 (preboots_head): new variable
20460 (preboots_tail): likewise
20461 (grub_loader_register_preboot_hook): new function
20462 (grub_loader_unregister_preboot_hook): likewise
20463 (grub_loader_set): launch preboot hooks
20464 * include/grub/loader.h (grub_loader_preboot_hook_prio_t): new type
20465 (grub_loader_register_preboot_hook): new declaration
20466 (grub_loader_unregister_preboot_hook): likewise
20467
5af922b5 204682009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
20469
20470 Warning fix
20471
7dd4a573 20472 * disk/scsi.c (grub_scsi_open): added missing cast when
5af922b5 20473 calling grub_dprintf
20474
a5562c30 204752009-04-26 Vladimir Serbinenko <phcoder@gmail.com>
20476
20477 Bug and warning fixes
20478
7dd4a573 20479 * include/grub/i386/pc/init.h (grub_stop_floppy): added missing
a5562c30 20480 declaration
20481 * commands/test.c (test_parse): fixed bug with file tests and corrected
20482 declaration of find_file
20483
4006f85c 204842009-04-26 Pavel Roskin <proski@gnu.org>
20485
20486 * Makefile.in: Don't install empty manual pages if help2man is
20487 missing. Use help2man option for output, not shell redirection.
20488
5c77c3de 204892009-04-26 David S. Miller <davem@davemloft.net>
20490
20491 * util/grub-mkdevicemap.c (make_device_map): Add missing
20492 NESTED_FUNC_ATTR to process_device().
20493
033b10a8 204942009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
20495
20496 Test command
20497
20498 * commands/test.c: rewritten to use bash-like test
20499
e4343593 205002009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
20501
20502 Parttool autoloading and improvements
20503
7dd4a573 20504 * Makefile.in (pkglib_DATA): add parttool.lst
e4343593 20505 (parttool.lst): new target
20506 * genmk.rb: generate parttool-*
20507 (CLEANFILES): add #{parttool}
20508 (PARTTOOLFILES): new variable
20509 * genparttoollist.sh: new file
7dd4a573 20510 * parttool/pcpart.c (grub_pcpart_boot): more feedback
e4343593 20511 (grub_pcpart_type): likewise
20512 * commands/parttool.c (helpmsg): new variable
20513 (grub_cmd_parttool): output help if not enough arguments are supplied
20514 autoload modules
20515 (GRUB_MOD_INIT(parttool)): use helpmsg
20516
0d312500 205172009-04-24 David S. Miller <davem@davemloft.net>
20518
7dd4a573 20519 Avoiding opening same device multiple times in device iterator.
0d312500 20520
20521 * kern/device.c: (grub_device_iterate): Define struct part_ent,
7dd4a573 20522 and use it to build a list of partitions in iterate_disk() and
0d312500 20523 iterate_partition().
20524
ac20caff 20525 * disk/fs_uuid.c (grub_fs_uuid_close): Call grub_disk_close()
20526 on disk->data.
20527
0dcf7495 20528 * disk/ieee1275/nand.c (grub_nand_iterate): Return
20529 grub_devalias_iterate() result instead of unconditional 0.
20530 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Likewise.
20531 Also, capture hook return value, either directly or via
20532 grub_children_iterate(), and propagate to caller.
20533 * include/grub/ieee1275/ieee1275.h (grub_devalias_iterate,
20534 grub_children_iterate): Return value is now 'int' instead of
20535 'grub_err_t'.
20536 * kern/ieee1275/openfw.c (grub_children_iterate): Fix to behave
20537 like a proper iterator, stopping when hooks return non-zero.
20538 (grub_devalias_iterate): Likewise.
20539
c8c08833 205402009-04-23 David S. Miller <davem@davemloft.net>
20541
20542 * kern/sparc64/ieee1275/openfw.c: Unused, delete.
20543
f01005a8 205442009-04-22 David S. Miller <davem@davemloft.net>
20545
20546 * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): If size_cells
20547 is larger than address_cells, use that value for address_cells too.
20548
4e8269da 20549 * include/grub/ieee1275/ieee1275.h (IEEE1275_MAX_PROP_LEN,
20550 IEEE1275_MAX_PATH_LEN): Define.
20551 * kern/ieee1275/openfw.c (grub_children_iterate): Dynamically
20552 allocate 'childtype', 'childpath', 'childname', and 'fullname'.
20553 (grub_devalias_iterate): Dynamically allocate 'aliasname' and
20554 'devtype'. Explicitly NULL terminate devalias expansion.
20555
a1447506 20556 * util/sparc64/ieee1275/misc.c: New file.
20557 * util/sparc64/ieee1275/grub-setup.c: New file.
20558 * util/sparc64/ieee1275/grub-ofpathname.c: New file.
20559 * util/sparc64/ieee1275/grub-mkimage.c: New file.
20560 * util/sparc64/ieee1275/grub-install.in: New file.
20561 * util/ieee1275/ofpath.c: New file.
20562 * util/ieee1275/devicemap.c: New file.
20563 * util/devicemap.c: New file.
20564 * util/deviceiter.c: New file.
20565 * kern/sparc64/ieee1275/init.c: New file.
20566 * include/grub/util/ofpath.h: New file.
20567 * include/grub/util/deviceiter.h: New file.
20568 * util/grub-mkdevicemap.c: Include deviceiter.h.
20569 Implement using grub_util_emit_devicemap_entry and
20570 grub_util_iterate_devices.
20571 * conf/i386-corebook.rmk: Build util/deviceiter.c and
20572 util/devicemap.c into grub-mkdevicemap
20573 * conf/i386-efi.rmk: Likewise.
20574 * conf/i386-ieee1275.rmk: Likewise.
20575 * conf/i386-pc.rmk: Likewise.
20576 * conf/powerpc-ieee1275.rmk: Likewise.
20577 * conf/sparc64-ieee1275.rmk: Add rules to build boot block
20578 images and installation utilities. Build kernel as image
20579 instead of as elf binary. Use common rules as much as possible.
20580
7dd4a573 205812009-04-19 Vladimir Serbinenko <phcoder@gmail.com>
0aefc632 20582
20583 Correct GPT definition
20584
7dd4a573 20585 * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
0aefc632 20586 of "attrib" member
20587
c6c5219f 205882009-04-19 Felix Zielcke <fzielcke@z-51.de>
20589
20590 * INSTALL: Replace `autogen.sh' with `./autogen.sh'.
20591
0552ff9f 205922009-04-19 David S. Miller <davem@davemloft.net>
20593
20594 * loader/sparc64/ieee1275/linux.c: Include grub/command.h
20595 (grub_rescue_cmd_linux): Rename to...
20596 (grub_cmd_linux): and fix prototype.
20597 (grub_rescue_cmd_initrd): Rename to...
20598 (grub_cmd_initrd): and fix prototype.
20599 (cmd_linux, cmd_initrd): New.
20600 (GRUB_MOD_INIT(linux)): Use grub_register_command().
20601 (GRUB_MOD_FINI(linux): Use grub_unregister_command().
20602
d1a282fc 206032009-04-17 Pavel Roskin <proski@gnu.org>
20604
07c5039f 20605 * bus/usb/ohci.c (grub_ohci_transaction): Fix incorrect printf
20606 format.
20607 (grub_ohci_transfer): Likewise.
20608
b012002d 20609 * bus/usb/usbtrans.c (grub_usb_control_msg): Warning fix.
20610
1bc09c35 20611 * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Fix
20612 return without a value. Fix inconsistent indentation.
20613
e0ff9126 20614 * fs/i386/pc/pxe.c (grub_pxefs_dir): Fix function prototype to
20615 match struct grub_fs.
20616
d1a282fc 20617 * disk/ata.c (grub_ata_pciinit): Use NESTED_FUNC_ATTR.
20618 * bus/usb/ohci.c (grub_ohci_pci_iter): Likewise.
20619 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
20620 * commands/lspci.c (grub_lspci_iter): Likewise.
20621
a96df3f2 206222009-04-16 Bean <bean123ch@gmail.com>
20623
20624 * commands/efi/loadbios.c (grub_cmd_fakebios): Add missing return
20625 value.
20626
41bb0fe9 206272009-04-15 Pavel Roskin <proski@gnu.org>
20628
20629 * include/grub/types.h: Rename ULONG_MAX to GRUB_ULONG_MAX and
20630 LONG_MAX to GRUB_LONG_MAX. Introduce GRUB_LONG_MIN. Update all
20631 users of ULONG_MAX, LONG_MAX and LONG_MIN to use the new
20632 definitions.
20633
596c6970 206342009-04-15 Felix Zielcke <fzielcke@z-51.de>
20635
20636 * disk/lvm.c (grub_lvm_scan_device): Add `LVM' to the error messages,
7dd4a573 20637 that no multiple data or metadata areas are supported and `Unknown
596c6970 20638 metadata header'.
20639
7dd4a573 206402009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
0d5d5653 20641
20642 Move loader out of the kernel
20643
20644 * kern/loader.c: moved to ...
20645 * commands/boot.c: ... moved here
20646 * commands/minicmd.c (grub_mini_cmd_boot): moved to ...
20647 * commands/boot.c (grub_cmd_boot): moved here. All users updated
20648 * include/grub/kernel.h (grub_machine_fini): export
20649 * include/grub/loader.h (grub_loader_is_loaded): update declaration
20650 (grub_loader_set): likewise
20651 (grub_loader_unset): likewise
20652 (grub_loader_boot): likewise
20653 * conf/common.rmk: new module boot.mod
20654 (pkglib_MODULES): add boot.mod
20655 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): remove kern/loader.c
20656 (grub_emu_SOURCES): likewise
20657 * conf/i386-efi.rmk (kernel_elf_SOURCES): likewise
20658 (grub_emu_SOURCES): likewise
20659 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): likewise
20660 (grub_emu_SOURCES): likewise
20661 * conf/i386-pc.rmk (kernel_elf_SOURCES): likewise
20662 (grub_emu_SOURCES): likewise
20663 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): likewise
20664 (grub_emu_SOURCES): likewise
7dd4a573 20665 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): likewise
20666 (grub_emu_SOURCES): likewise
0d5d5653 20667 * conf/x86_64-efi.rmk (kernel_elf_SOURCES): likewise
7dd4a573 20668 (grub_emu_SOURCES): likewise
0d5d5653 20669
7dd4a573 206702009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
5999d619 20671
20672 use grub_lltoa instead of grub_itoa and grub_ltoa for all purposes
7dd4a573 20673
5999d619 20674 * kern/misc.c (grub_itoa): Removed function
20675 (grub_ltoa): likewise
20676 (grub_vsprintf): use grub_lltoa
20677
7dd4a573 206782009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
13c00781 20679
20680 Restore grub-emu
20681
20682 * conf/i386-pc.rmk (grub_emu_SOURCES): add normal/handler.c
20683 * conf/i386-coreboot.rmk: likewise
20684 * conf/i386-ieee1275.rmk: likewise
20685 * conf/powerpc-ieee1275.rmk: likewise
7dd4a573 20686
20318222 206872009-04-15 Felix Zielcke <fzielcke@z-51.de>
20688
20689 * INSTALL: Add that `./autogen.sh' needs to be run before
20690 `./configure.'.
20691
d05f0df3 206922009-04-14 Bean <bean123ch@gmail.com>
20693
20694 * Makefile.in (pkglib_DATA): Add handler.lst.
20695 (handler.lst): New rule.
20696
20697 * conf/i386-pc.rmk (normal_mod_SOURCES): Add normal/handler.c.
20698 * conf/i386-coreboot.rmk: Likewise.
20699 * conf/i386-ieee1275.rmk: Likewise.
20700 * conf/i386-efi.rmk: Likewise.
20701 * conf/x86_64-efi.rmk: Likewise.
20702 * conf/powerpc-ieee1275.rmk: Likewise.
20703 * conf/sparc64-ieee1275.rmk: Likewise.
20704
20705 * genhandlerlist.sh: New file.
20706
20707 * genmk.rb: Add rules to generate handler.lst.
20708
20709 * include/grub/normal.h (grub_file_getline): New function definition.
20710 (read_handler_list): Likewise.
20711 (free_handler_list): Likewise.
20712
20713 * include/grub/term.h (grub_term_register_input): Add name parameter
20714 for auto generation of handler.lst.
20715 (grub_term_register_output): Likewise.
20716
20717 * normal/handler.c: New file.
20718
20719 * normal/main.c (get_line): Renamed to grub_file_getline.
20720 (read_config_file): Use the newly renamed grub_file_getline.
20721 (read_command_list): Likewise.
20722 (read_fs_list): Likewise.
20723 (grub_normal_execute): Call read_handler_list to parse handler.lst.
20724 (GRUB_MOD_FINI): Call free_handler_list to free handler list.
20725
20726 * term/efi/console.c (grub_console_init): Add name parameter for auto
20727 generation of handler.lst.
20728 * term/gfxterm.c: Likewise.
20729 * term/i386/pc/at_keyboard.c: Likewise.
20730 * term/i386/pc/console.c: Likewise.
20731 * term/i386/pc/serial.c: Likewise.
20732 * term/i386/pc/vesafb.c: Likewise.
20733 * term/i386/pc/vga.c: Likewise.
20734 * term/i386/pc/vga_text.c: Likewise.
20735 * term/ieee1275/ofconsole.c: Likewise.
20736 * term/usb_keyboard.c: Likewise.
20737
33c846be 207382009-04-14 Bean <bean123ch@gmail.com>
20739
20740 * util/grub-pe2elf.c (write_symbol_table): Terminate short name symbol
20741 properly with null character.
20742
4484e01e 207432009-04-14 Felix Zielcke <fzielcke@z-51.de>
20744
20745 * configure: Remove.
20746 * config.h.in: Likewise.
f93d668e 20747 * stamp-h.in: Likewise.
4484e01e 20748 * DISTLIST: Likewise.
20749 * conf/common.mk: Likewise.
20750 * conf/i386-coreboot.mk: Likewise.
20751 * conf/i386-efi.mk: Likewise.
20752 * conf/i386-ieee1275.mk: Likewise.
20753 * conf/i386.mk: Likewise.
20754 * conf/i386-pc.mk: Likewise.
20755 * conf/powerpc-ieee1275.mk: Likewise.
20756 * conf/sparc64-ieee1275.mk: Likewise.
20757 * conf/x86_64-efi.mk: Likewise.
20758
20759 * INSTALL: Remove the sentence that Ruby and autoconf are only required if you
20760 develop on GRUB.
20761
7dd4a573 207622009-04-14 John Stanley <jpsinthemix@verizon.net>
5c5bf96a 20763 David S. Miller <davem@davemloft.net>
20764
20765 * util/hostdisk.c (make_device_name): Fix buffer length
20766 calculations.
20767
e25b5a8c 207682009-04-14 Felix Zielcke <fzielcke@z-51.de>
20769
20770 * util/hostdisk.c [__FreeBSD__ || __FreeBSD_kernel__]: Include
20771 <sys/param.h> and <sys/sysctl.h>.
20772 (open_device) [__FreeBSD__ || __FreeBSD_kernel_]: Use sysctlgetbyname()
20773 to add 0x10 to `kern.geom.debugflags' if it's not already set, before
20774 opening the device and reset them afterwards.
20775
1f1f580c 207762009-04-13 Pavel Roskin <proski@gnu.org>
20777
20778 * conf/common.rmk (grub_fstest_SOURCES): Add normal/datetime.c.
20779 Reported by John Stanley <jpsinthemix@verizon.net>
20780
7ebc2d6b 207812009-04-13 Robert Millan <rmh@aybabtu.com>
20782
20783 * util/grub.d/10_freebsd.in: Detect Debian GNU/kFreeBSD and use
7dd4a573 20784 that name for menuentries when appropriate.
7ebc2d6b 20785
d8ba3667 207862009-04-13 Felix Zielcke <fzielcke@z-51.de>
20787
20788 * util/grub.d/10_freebsd.in: Add a missing `fi'.
20789
cba416eb 207902009-04-13 Robert Millan <rmh@aybabtu.com>
20791
20792 * loader/i386/linux.c (grub_cmd_linux): Don't pass `vga=ask' parameter
20793 to Linux, simply abort telling the user it's no longer supported.
20794
a547a745 207952009-04-13 Felix Zielcke <fzielcke@z-51.de>
20796
20797 * util/grub.d/10_freebsd.in: Don't exit if /boot/devices.hints
7dd4a573 20798 doesn't exist. Check also for /boot/kernel/kernel.gz. Print
a547a745 20799 `freebsd_loadenv' only when devices.hints exist.
20800
232a769c 208012009-04-13 Pavel Roskin <proski@gnu.org>
20802
20803 * term/usb_keyboard.c (grub_usb_keyboard_getkey): Warning fixes.
20804
c3012039 208052009-04-13 Felix Zielcke <fzielcke@z-51.de>
20806
20807 * util/i386/pc/grub-install.in (install_drive): Remove the BSD
20808 partition number.
20809 (grub_drive): Likewise.
20810
234022fe 208112009-04-13 David S. Miller <davem@davemloft.net>
20812
20813 * kern/sparc64/ieee1275/ieee1275.c: New file.
20814 * include/grub/sparc64/ieee1275/ieee1275.h (IEEE1275_MAP_WRITE,
20815 IEEE1275_MAP_READ, IEEE1275_MAP_EXEC, IEEE1275_MAP_LOCKED,
20816 IEEE1275_MAP_CACHED, IEEE1275_MAP_SE, IEEE1275_MAP_GLOBAL,
20817 IEEE1275_MAP_IE, IEEE1275_MAP_DEFAULT): Define.
20818 (grub_ieee1275_map_physical, grub_ieee1275_claim_vaddr,
20819 grub_ieee1275_alloc_physmem): Declare new exported functions.
20820
d8e1836c 20821 * include/grub/sparc64/ieee1275/loader.h: New file.
20822 * include/grub/sparc64/ieee1275/memory.h: Likewise.
20823 * include/grub/sparc64/kernel.h: Likewise.
20824 * loader/sparc64/ieee1275/linux.c: Likewise.
20825
96bd81ec 20826 * conf/common.rmk (grub_probe_SOURCES): Add Sun partition module.
20827 (grub_fstest_SOURCES): Likewise.
20828
6a4737e5 20829 * util/hostdisk.c (make_device_name): Do not make any assumptions
20830 about the length of drive names.
20831
1d7a72fd 20832 * kern/dl.c (grub_dl_load_file): Close file immediately when
20833 we are done using it.
20834
56bc2471 208352009-04-12 David S. Miller <davem@davemloft.net>
20836
20837 * kern/misc.c (grub_ltoa): Fix cast when handling negative
20838 values. Noticed by Pavel Roskin.
20839
df38d0bb 20840 * configure.ac: Check for __bswapsi2 and__bswapdi2 using
20841 target compiler.
7dd4a573 20842
e382e93a 20843 * genmk.rb: Add more flexible image type specification, also
20844 pass --strip-unneeded to objcopy.
20845 * conf/i386-pc.rmk: Use *_FORMAT.
20846 * conf/i386-pc.mk: Rebuilt.
20847
f5dbbca9 20848 * disk/ieee1275/ofdisk.c (struct ofdisk_hash_ent): New struct.
20849 (OFDISK_HASH_SZ): Define.
20850 (ofdisk_hash): New hash table.
20851 (ofdisk_hash_fn, ofdisk_hash_find, ofdisk_hash_add): New functions.
20852 (grub_ofdisk_open): Use ofdisk_hash_ent address as disk->id
20853 instead of device phandle which is not unique.
20854
91c88b12 20855 * kern/sparc64/ieee1275/init.c: Delete, replace with...
20856 * kern/sparc64/ieee1275/crt0.S: assembler implementation.
20857 * include/grub/sparc64/ieee1275/kernel.h: Declare grub_prefix[].
20858 (GRUB_MOD_ALIGN, GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_TOTAL_MODULE_SIZE,
20859 GRUB_KERNEL_MACHINE_KERNEL_IMAGE_SIZE,
20860 GRUB_KERNEL_MACHINE_COMPRESSED_SIZE, GRUB_KERNEL_MACHINE_PREFIX,
20861 GRUB_KERNEL_MACHINE_DATA_END): Define.
20862 (grub_kernel_image_size, grub_total_module_size): Declare.
20863
5b5d4aa5 208642009-04-12 Pavel Roskin <proski@gnu.org>
20865
7dd4a573 20866 * configure.ac: Change the logic when we check for target tools.
20867 Do it when the target is specified and it's different from the
20868 specified value of the host.
5b5d4aa5 20869
c91e1793 208702009-04-11 Felix Zielcke <fzielcke@z-51.de>
20871
20872 * util/hostdisk.c [__FreeBSD_kernel__]: Include sys/disk.h.
20873 (grub_util_biosdisk_open) [__FreeBSD_kernel__]: Add support for
20874 GNU/kFreeBSD. Check if a device is a character device. Use
20875 DIOCGMEDIASIZE to get the size.
20876 (convert_system_partition_to_system_disk) [__FreeBSD_kernel__]: Add
20877 support for GNU/kFreeBSD.
20878 (grub_util_biosdisk_get_grub_dev) [__FreeBSD_kernel__]: Check if OS_DEV
20879 is a character device instead of a block device. Add support for
20880 FreeBSD device names.
20881
20882 * util/getroot.c (find_root_device) [__FreeBSD_kernel__]: Check if ENT
20883 is a character device instead of a block device.
20884
20885 * util/grub-probe.c (probe) [__FreeBSD_kernel__]: Check if DEVICE_NAME
20886 is a character device instead of a block device.
20887
b1ac8644 208882009-04-11 Andrey Shuvikov <mr_hyro@yahoo.com>
20889
20890 * util/hostdisk.c [__FreeBSD__]: Include sys/disk.h.
20891 (grub_util_biosdisk_open) [__FreeBSD__]: Add support for
20892 FreeBSD. Check if a device is a character device. Use
20893 DIOCGMEDIASIZE to get the size.
20894 (convert_system_partition_to_system_disk) [__FreeBSD__]: Add
20895 support for FreeBSD.
20896 (grub_util_biosdisk_get_grub_dev) [__FreeBSD__]: Check if OS_DEV
20897 is a character device instead of a block device. Add support for
20898 FreeBSD device names.
20899
20900 * util/getroot.c (find_root_device) [__FreeBSD__]: Check if ENT is
20901 a character device instead of a block device.
20902 (grub_util_check_char_device): New function.
20903
20904 * util/grub-probe.c (probe) [__FreeBSD__]: Check if DEVICE_NAME is
20905 a character device instead of a block device.
20906
20907 * include/grub/util/getroot.h (grub_util_check_char_device): New
20908 prototype.
20909
a3f7515a 209102009-04-11 David S. Miller <davem@davemloft.net>
20911
20912 * conf/sparc64-ieee1275.rmk (kernel_img_LDFLAGS): Link with
20913 static libgcc.
20914 * configure.ac: Check for __bswapsi2 and __bswapdi2 presence.
20915 * include/grub/sparc64/libgcc.h (__bswapsi2): Export libgcc
20916 function, if present.
20917 (__bswapdi2): Likewise.
20918
0d44993d 20919 * include/grub/sparc64/ieee1275/boot.h: New file.
20920 * boot/sparc64/ieee1275/boot.S: Likewise.
20921 * boot/sparc64/ieee1275/diskboot.S: Likewise.
20922
ed3d2bc2 20923 * kern/misc.c (grub_ltoa): New function.
20924 (grub_vsprintf): Use it to format 'long' integers.
20925
d3bfb59c 209262009-04-10 David S. Miller <davem@davemloft.net>
20927
20928 * disk/ieee1275/nand.c (grub_nand_open): All ieee1275 call arg
20929 slots are of type grub_ieee1275_cell_t.
20930 (grub_nand_read): Likewise.
20931 * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_INVALID,
20932 IEEE1275_IHANDLE_INVALID): Use grub_ieee1275_cell_t since these
20933 macros are used to compare values in arg/ret block of the call.
20934 (grub_ieee1275_finddevice, grub_ieee1275_get_property,
20935 grub_ieee1275_next_property, grub_ieee1275_get_property_length,
20936 grub_ieee1275_instance_to_package, grub_ieee1275_package_to_path,
20937 grub_ieee1275_instance_to_path, grub_ieee1275_write,
20938 grub_ieee1275_read, grub_ieee1275_seek, grub_ieee1275_peer,
20939 grub_ieee1275_child, grub_ieee1275_parent, grub_ieee1275_open,
20940 grub_ieee1275_close, grub_ieee1275_set_property,
20941 grub_ieee1275_set_color): All ieee1275 call arg slots are of type
20942 grub_ieee1275_cell_t.
20943 * kern/ieee1275/openfw.c (grub_map): Likewise.
20944 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_ihandle_t,
20945 grub_ieee1275_phandle_t): Define as grub_unit32_t type.
20946
450e2238 20947 * kern/ieee1275/init.c (grub_machine_init): Make 'actual' grub_ssize_t.
20948 * kern/ieee1275/openfw.c (grub_children_iterate): Likewise.
20949 (grub_devalias_iterate): Likewise.
20950
7dd4a573 209512009-04-10 Vladimir Serbinenko <phcoder@gmail.com>
6df8cc76 20952
20953 UFS improvements
20954
20955 * fs/ufs.c (INODE_NBLOCKS): new definition
20956 (struct grub_ufs_dirent): added fields for non-BSD dirents
20957 (grub_ufs_get_file_block): fixed double indirect handling
20958 (grub_ufs_lookup_symlink): use more robust way to determine whether
20959 symlink is inline
20960 (grub_ufs_find_file): support for non-BSD dirents
20961 (grub_ufs_dir): support for non-BSD dirents
20962
e7e6862a 209632009-04-10 Bean <bean123ch@gnail.com>
20964
20965 * include/grub/efi/api.h (grub_efi_configuration_table): Add packed
20966 attribute, otherwise the size would be wrong for i386 platform.
20967
20968 * include/grub/pci.h (grub_pci_read_word): New inline function.
20969 (grub_pci_read_byte): Likewise.
20970 (grub_pci_write): Likewise.
20971 (grub_pci_write_word): Likewise.
20972 (grub_pci_write_byte): Likewise.
20973
20974 * include/grub/pci.h (grub_pci_iteratefunc_t): Add NESTED_FUNC_ATTR.
20975
20976 * loader/i386/efi/linux.c (fake_bios_data): Moved to loadbios module.
20977 (find_framebuf): Scan pci to locate the frame buffer address.
20978
20979 * commands/efi/fixvideo.c: New file.
20980
20981 * commands/efi/loadbios.c: Likewise.
20982
20983 * commands/memrw.c: Likewise.
20984
20985 * util/grub-dumpbios.in: Likewise.
20986
20987 * conf/common.rmk (grub-dumpbios): New utility.
20988 (pkglib_MODULES): New module memrw.mod.
20989 (memrw_mod_SOURCE): New macro.
20990 (memrw_mod_CFLAGS): Likewise.
20991 (memrw_mod_LDFLAGS): Likewise.
20992
7dd4a573 20993 * conf/i386-efi.rmk (pkglib_MODULES): New module loadbios.mod and
e7e6862a 20994 fixvideo.mod.
20995 (loadbios_mod_SOURCE): New macro.
20996 (loadbios_mod_CFLAGS): Likewise.
20997 (loadbios_mod_LDFLAGS): Likewise.
20998 (fixvideo_mod_SOURCE): Likewise.
20999 (fixvideo_mod_CFLAGS): Likewise.
21000 (fixvideo_mod_LDFLAGS): Likewise.
21001
7dd4a573 21002 * conf/x86_64.rmk (pkglib_MODULES): New module loadbios.mod and
e7e6862a 21003 fixvideo.mod.
21004 (loadbios_mod_SOURCE): New macro.
21005 (loadbios_mod_CFLAGS): Likewise.
21006 (loadbios_mod_LDFLAGS): Likewise.
21007 (fixvideo_mod_SOURCE): Likewise.
21008 (fixvideo_mod_CFLAGS): Likewise.
21009 (fixvideo_mod_LDFLAGS): Likewise.
21010
af63ada2 210112009-04-08 Felix Zielcke <fzielcke@z-51.de>
21012
21013 * disk/lvm.c (grub_lvm_scan_device): Add a missing NULL check.
21014
c2cdde70 210152009-04-07 David S. Miller <davem@davemloft.net>
21016
21017 * kern/sparc64/dl.c (grub_arch_dl_relocate_symbols): Add
21018 support for R_SPARC_OLO10 relocations. Fix compile warning for
21019 R_SPARC_WDISP30 case.
ea3f72cf 21020 * kern/sparc64/cache.S: Fix grub_arch_sync_caches implementation.
c2cdde70 21021
761319cf 210222009-04-06 Pavel Roskin <proski@gnu.org>
21023
1007d1f5 21024 * include/grub/misc.h (ARRAY_SIZE): New macro.
21025 * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START):
21026 New macro.
21027 * loader/i386/linux.c (allocate_pages): Use free_pages().
21028 (grub_linux_unload): Don't use free_pages().
21029 (grub_linux_boot): Prevent accessing linux_vesafb_modes with a
21030 wrong index. Treat all other modes as text modes.
21031 (grub_cmd_linux): Initialize vid_mode unconditionally to
21032 GRUB_LINUX_VID_MODE_NORMAL. Recognize and support "vga=ask".
21033
761319cf 21034 * commands/help.c (print_command_help): Use cmd->prio, not
21035 cmd->flags to check for GRUB_PRIO_LIST_FLAG_ACTIVE.
21036
ea761d40 210372009-04-06 Vladimir Serbinenko <phcoder@gmail.com>
7dd4a573 21038
ea761d40 21039 Parttool
21040
21041 * parttool/pcpart.c: new file
21042 * commands/parttool.c: likewise
21043 * conf/common.rmk (pkglib_MODULES): Added parttool.mod and pcpart.mod
21044 (parttool_mod_SOURCES): new variable
21045 (parttool_mod_CFLAGS): likewise
21046 (parttool_mod_LDFLAGS): likewise
21047 (pcpart_mod_SOURCES): likewise
21048 (pcpart_mod_CFLAGS): likewise
21049 (pcpart_mod_LDFLAGS): likewise
7dd4a573 21050 * conf/i386-coreboot.rmk (grub_emu_SOURCES): added commands/parttool.c
ea761d40 21051 and parttool/pcpart.c
21052 * conf/i386-efi.rmk: likewise
21053 * conf/i386-ieee1275.rmk: likewise
21054 * conf/i386-pc.rmk: likewise
21055 * conf/powerpc-ieee1275.rmk: likewise
21056 * conf/sparc64-ieee1275.rmk: likewise
21057 * conf/x86_64-ieee1275.rmk: likewise
21058
05aaebfb 210592009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
21060
21061 Support for mtime and further expandability of dir command
21062
21063 * include/grub/lib/datetime.h: moved to ...
7dd4a573 21064 * include/grub/datetime.h: ... moved here and added
05aaebfb 21065 declaration of grub_unixtime2datetime. All users updated
7dd4a573 21066 * include/grub/fs.h: new syntax for dir and mtime functions in
21067 struct grub_fs
05aaebfb 21068 * include/grub/fshelp.h: new declarations of GRUB_FSHELP_TYPE_MASK
21069 and GRUB_FSHELP_FLAGS_MASK
21070 * commands/ls.c (grub_ls_list_files): Write mtime in long format
21071 * fs/ext2.c (grub_ext2_dir): use new dir syntax and supply mtime
21072 (grub_ext2_mtime): new function
21073 * fs/hfsplus.c (grub_hfsplus_dir): use new dir syntax and supply mtime
21074 (grub_hfsplus_mtime): new function
21075 * fs/ufs.c (GRUB_UFS_ATTR_TYPE): new definition
21076 (GRUB_UFS_ATTR_FILE): likewise
21077 (GRUB_UFS_ATTR_LNK): likewise
21078 (struct grub_ufs_sblock): new fields mtime
21079 (grub_ufs_read_inode): new parameter to read inode to a separate buffer
21080 all users updated
21081 (grub_ufs_dir): mtime support
21082 (grub_ufs_mtime): new function
21083 * fs/affs.c (grub_affs_dir): use new dir syntax
21084 * fs/afs.c (grub_afs_dir): likewise
21085 * fs/cpio.c (grub_cpio_dir): likewise
21086 * fs/fat.c (grub_fat_find_dir): likewise
21087 * fs/hfs.c (grub_hfs_dir): likewise
21088 * fs/iso9660.c (grub_iso9660_dir): likewise
21089 * fs/jfs.c (grub_jfs_dir): likewise
21090 * fs/minix.c (grub_minix_dir): likewise
21091 * fs/ntfs.c (grub_ntfs_dir): likewise
21092 * fs/reiserfs.c (grub_reiserfs_dir): likewise
21093 * fs/sfs.c (grub_sfs_dir): likewise
21094 * fs/xfs.c (grub_xfs_dir): likewise
21095 * util/hostfs.c (grub_hostfs_dir): likewise
21096 * lib/datetime.c: moved to ...
21097 * normal/datetime.c: ... moved here
21098 (grub_unixtime2datetime): new function
21099 * kern/rescue.c (grub_rescue_print_files): use new dir syntax
7dd4a573 21100 * normal/completion.c (iterate_dir): use new dir syntax
21101 * normal/misc.c (grub_normal_print_device_info): tell the
05aaebfb 21102 last modification time of a volume
7dd4a573 21103 * kern/fs.c (grub_fs_probe): updated dummy function to use new syntax
05aaebfb 21104 * conf/common.rmk: added lib/datetime.c to ls.mod
7dd4a573 21105 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add normal/datetime.c
05aaebfb 21106 (normal_mod_SOURCES): likewise
21107 (datetime_mod_SOURCES): Removed lib/datetime.c
21108 * conf/i386-efi.rmk: likewise
7dd4a573 21109 * conf/i386-ieee1275.rmk: likewise
05aaebfb 21110 * conf/i386-pc.rmk: likewise
21111 * conf/powerpc-ieee1275.rmk: likewise
7dd4a573 21112 * conf/sparc64-ieee1275.rmk: likewise
21113 * conf/x86_64-efi.rmk: likewise
05aaebfb 21114
8a7e1a14 211152009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
21116
21117 Trim trailing spaces in FAT label and support mtools-like labels
7dd4a573 21118
21119 * fs/fat.c (grub_fat_iterate_dir): New function based
8a7e1a14 21120 on grub_fat_find_dir
21121 (grub_fat_find_dir): use grub_fat_iterate_dir
21122 (grub_fat_label): likewise
21123
04186a9c 211242009-04-04 Vladimir Serbinenko <phcoder@gmail.com>
21125
7dd4a573 21126 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): add list.h
04186a9c 21127 and command.h
21128 remove extraneous kernel_elf_HEADERS
21129
da4c0bb6 211302009-04-04 Bean <bean123ch@gnail.com>
21131
21132 * include/grub/util/misc.h: Add dummy function fsync for mingw.
21133
21134 * util/misc.c: Likewise.
21135
54ad9555 211362009-04-04 Yoshinori K. Okuji <okuji@enbug.org>
21137
21138 * loader/i386/efi/linux.c (fake_bios_data): Use grub_dprintf
21139 instead of grub_printf.
21140
7a6bf9f2 211412009-04-03 Robert Millan <rmh@aybabtu.com>
21142
21143 * loader/i386/linux.c (grub_linux_setup_video): Fill
21144 `params->{red,green,blue,reserved}_{mask_size,field_pos}' with
21145 values from `mode info' structure instead of hardcoded
21146 values.
21147
3fcc2083 211482009-04-01 Pavel Roskin <proski@gnu.org>
21149
21150 * Makefile.in: Remove all references to MODULE_LDFLAGS, it's
21151 unused now.
21152 * genmk.rb: Likewise.
21153 * configure.ac: Likewise.
21154
5ec9740b 211552009-04-01 Manoel Abranches <mrabran@linux.vnet.ibm.com>
21156
21157 * aclocal.m4: Move --build-id=none from MODULE_LDFLAGS to
21158 TARGET_LDFLAGS. This corrects a problem with grub-mkelfimage.
21159
5270cec8 211602009-04-01 David S. Miller <davem@davemloft.net>
21161
21162 * normal/sparc64/setjmp.S: Fix setjmp implementation.
7dd4a573 21163 * include/grub/sparc64/setjmp.h (grub_jmp_buf): Update.
5270cec8 21164 (grub_setjmp): Mark with 'returns_twice' attribute.
21165 * include/grub/i386/setjmp.h (grub_setjmp): Likewise
21166 * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise.
21167 * include/grub/x86_64/setjmp.h (grub_setjmp): Likewise.
21168
9c3dd854 211692009-04-01 Robert Millan <rmh@aybabtu.com>
21170
21171 Reapply fix from 2008-07-28 which was accidentally reverted; also
21172 perform the same fix to a similar check in same function.
21173
21174 * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
21175 with the same number are found, just use issue a warning with
21176 grub_dprintf(), as this error has been reported to be non-fatal.
21177
0d818b7e 211782009-03-31 Pavel Roskin <proski@gnu.org>
21179
21180 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Provide safe default
21181 for cross-compilation.
21182
95646d92 211832009-03-30 Robert Millan <rmh@aybabtu.com>
21184
21185 Fix i386-ieee1275 build.
21186
21187 * include/grub/i386/ieee1275/loader.h (grub_multiboot2_real_boot):
21188 Remove declaration.
21189
6a003ed1 211902009-03-30 Pavel Roskin <proski@gnu.org>
21191
21192 * fs/hfs.c (grub_hfs_strncasecmp): Integrate into ...
21193 (grub_hfs_cmp_catkeys): ... this. Don't assume strings to be
21194 zero-terminated, rely only on the strlen value. Fix comparison
21195 of strings differing in length.
21196
92f33540 211972009-03-30 Robert Millan <rmh@aybabtu.com>
21198
21199 * loader/i386/linux.c (grub_cmd_linux): Check for zImage before
21200 checking for abi version. Improve error messages on BIOS to notify
21201 user about `linux16' command.
21202
a8c48fd5 212032009-03-29 Vladimir Serbinenko <phcoder@gmail.com>
21204
f968172e 21205 Leak fixes
a8c48fd5 21206
f968172e 21207 * kern/disk.c (grub_disk_cache_store): Invalidate previous cache
21208 in case of collision
21209 * disk/scsi.c (grub_scsi_open): free scsi in case of error
a8c48fd5 21210
9c323f09 212112009-03-29 Robert Millan <rmh@aybabtu.com>
21212
21213 * loader/i386/linux.c (grub_cmd_linux): Parse "vga=" parameter and
21214 set `vid_mode' accordingly.
21215 (grub_linux_boot): Process `vid_mode' and set video mode.
21216
ae68f423 212172009-03-29 Robert Millan <rmh@aybabtu.com>
21218
21219 * util/grub.d/10_linux.in (linux_entry): New function.
21220 Factorize generation of Linux boot entries.
21221
5709cfc4 212222009-03-29 Yoshinori K. Okuji <okuji@enbug.org>
21223
21224 Make the format of Environment Block plain text. The boot loader
21225 part is not tested well yet.
7dd4a573 21226
5709cfc4 21227 * util/grub-editenv.c (DEFAULT_ENVBLK_SIZE): New macro.
21228 (buffer): Removed.
21229 (envblk): Likewise.
21230 (usage): Remove "info" and "clear". Add "unset". Update the
21231 description of "set", as this does not delete variables any
21232 longer.
21233 (create_envblk_file): Complete rewrite.
21234 (open_envblk_file): Likewise.
21235 (cmd_info): Removed.
21236 (cmd_list): Likewise.
21237 (cmd_set): Likewise.
21238 (cmd_clear): Likewise.
21239 (list_variables): New function.
21240 (write_envblk): Likewise.
21241 (set_variables): Likewise.
21242 (unset_variables): Likewise.
21243 (main): Complete rewrite.
21244
21245 * commands/loadenv.c (buffer): Removed.
21246 (envblk): Likewise.
21247 (open_envblk_file): New function.
21248 (read_envblk_file): Complete rewrite.
21249 (grub_cmd_load_env): Likewise.
21250 (grub_cmd_list_env): Likewise.
21251 (struct blocklist): New struct.
21252 (free_blocklists): New function.
21253 (check_blocklists): Likewise.
21254 (write_blocklists): Likewise.
21255 (grub_cmd_save_env): Complete rewrite.
21256
21257 * include/grub/lib/envblk.h (GRUB_ENVBLK_SIGNATURE): Replaced with
21258 a plain text signature.
21259 (GRUB_ENVBLK_MAXLEN): Removed.
21260 (struct grub_envblk): Complete rewrite.
21261 (grub_envblk_find): Removed.
21262 (grub_envblk_insert): Likewise.
21263 (grub_envblk_open): New prototype.
21264 (grub_envblk_set): Likewise.
21265 (grub_envblk_delete): Put const to VALUE.
21266 (grub_envblk_iterate): Put const to NAME and VALUE.
21267 (grub_envblk_close): New prototype.
21268 (grub_envblk_buffer): New inline function.
21269 (grub_envblk_size): Likewise.
21270
21271 * lib/envblk.c: Include grub/mm.h.
21272 (grub_env_find): Removed.
21273 (grub_envblk_open): New function.
21274 (grub_envblk_close): Likewise.
21275 (escaped_value_len): Likewise.
21276 (find_next_line): Likewise.
21277 (grub_envblk_insert): Removed.
21278 (grub_envblk_set): New function.
21279 (grub_envblk_delete): Complete rewrite.
21280 (grub_envblk_iterate): Likewise.
21281
a9368fd3 212822009-03-28 Robert Millan <rmh@aybabtu.com>
21283
21284 * conf/i386-pc.rmk (pkglib_MODULES): Add `linux16.mod'.
21285 (linux16_mod_SOURCES, linux16_mod_CFLAGS, linux16_mod_LDFLAGS): New
21286 variables. Use 16-bit loader.
21287 (linux_mod_SOURCES, linux_mod_CFLAGS, linux_mod_LDFLAGS): Use 32-bit
21288 loader.
21289 * kern/i386/loader.S (grub_linux_boot): Rename to ...
21290 (grub_linux16_boot): ... this. Update all users.
21291 * loader/i386/linux.c (grub_linux32_boot): Rename to ...
21292 (grub_linux_boot): ... this. Update all users.
21293
21294 * loader/i386/pc/linux.c (GRUB_MOD_INIT(linux)): Rename to ...
21295 (GRUB_MOD_INIT(linux16)): ... this. Rename `linux' and `initrd'
21296 commands to `linux16' and `initrd16'.
21297 (GRUB_MOD_FINI(linux)): Rename to ...
21298 (GRUB_MOD_FINI(linux16)): ... this.
21299
e4dd5a7e 213002009-03-24 Pavel Roskin <proski@gnu.org>
21301
21302 * genmk.rb: Define ASM_FILE for *.S files for *.lst generation,
21303 not just for compilation.
21304
c04d6e05 213052009-03-22 Vladimir Serbinenko <phcoder@gmail.com>
21306
21307 Move multiboot helper out of kernel
21308
21309 * conf/i386-pc.rmk (multiboot_mod_SOURCES): Add
21310 `loader/i386/multiboot_helper.S'.
21311 * conf/i386-coreboot.rmk: Likewise
21312 * conf/i386-ieee1275.rmk: Likewise
21313
21314 * kern/i386/loader.S: Move multiboot helpers from here...
21315 * loader/i386/multiboot_helper.S: ...moved here
21316 * include/grub/i386/loader.h: Move declarations of multiboot
21317 helpers from here...
21318 * include/grub/i386/multiboot.h: ...moved here
21319 * loader/i386/multiboot.c: Added include of grub/cpu/multiboot.h
21320
42a5b3fc 213212009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
21322
21323 * kern/env.c (grub_env_context_open): Added an argument to specify
21324 whether a new context inherits exported variables from current
21325 one. This is useful when making a sandbox to interpret a config
21326 file.
21327 All callers updated.
21328
21329 * include/grub/env.h (grub_env_context_open): Updated the prototype.
21330
b28bbc4e 213312009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
21332
21333 * kern/env.c (grub_env_context_close): Fix memory leaks.
21334
f04f02e4 213352009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
21336
21337 * normal/main.c (grub_normal_execute): Added an argument
21338 BATCH to specify if an interactive interface should be provided
21339 after reading a config file.
21340 All callers updated.
21341 (read_command_list): Prevent being executed twice.
21342 (read_fs_list): Likewise.
21343
42a5b3fc 21344 * include/grub/normal.h (grub_normal_execute): Updated the
21345 prototype.
f04f02e4 21346
41473ac2 213472009-03-22 Pavel Roskin <proski@gno.org>
21348
fbc00b0c 21349 * kern/powerpc/ieee1275/startup.S: Replace EXT_C(start) with
21350 _start.
21351 * kern/i386/pc/startup.S: Likewise.
21352 * kern/i386/efi/startup.S: Likewise.
21353 * kern/i386/ieee1275/startup.S: Likewise.
21354 * kern/i386/coreboot/startup.S: Likewise.
21355 * kern/x86_64/efi/startup.S: Likewise.
21356
41473ac2 21357 * aclocal.m4 (grub_CHECK_START_SYMBOL): Remove.
21358 * configure.ac: Don't call grub_CHECK_START_SYMBOL.
21359 * kern/i386/pc/startup.S: Use _start instead of START_SYMBOL.
21360
2274cc8f 213612009-03-21 Vladimir Serbinenko <phcoder@gmail.com>
21362
21363 Bugfixes in multiboot for bugs uncovered by solaris kernel.
21364
21365 * loader/i386/multiboot_elfxx.c (grub_multiboot_load_elf): Corrected
21366 limit detection.
21367 Use vaddr of correct segment for entry_point.
21368
b1b797cb 213692009-03-21 Bean <bean123ch@gmail.com>
21370
21371 * commands/blocklist.c: Add include file <grub/command.h>, remove
21372 <grub/normal.h> and <grub/arg.h>.
21373 (grub_cmd_blocklist): Use the new command interface.
21374 (GRUB_MOD_INIT): Likewise.
21375 (GRUB_MOD_FINI): Likewise.
21376 * commands/boot.c: Likewise.
21377 * commands/cat.c: Likewise.
21378 * commands/cmp.c: Likewise.
21379 * commands/configfile.c: Likewise.
21380 * commands/crc.c: Likewise.
21381 * commands/echo.c: Likewise.
21382 * commands/halt.c: Likewise.
21383 * commands/handler.c: Likewise.
21384 * commands/hdparm.c: Likewise.
21385 * commands/help.c: Likewise.
21386 * commands/hexdump.c: Likewise.
21387 * commands/loadenv.c: Likewise.
21388 * commands/ls.c: Likewise.
21389 * commands/lsmmap.c: Likewise.
21390 * commands/lspci.c: Likewise.
21391 * commands/loadenv.c: Likewise.
21392 * commands/read.c: Likewise.
21393 * commands/reboot.c: Likewise.
21394 * commands/search.c: Likewise.
21395 * commands/sleep.c: Likewise.
21396 * commands/test.c: Likewise.
21397 * commands/usbtest.c: Likewise.
21398 * commands/videotest.c: Likewise.
21399 * commands/i386/cpuid.c: Likewise.
21400 * commands/i386/pc/halt.c: Likewise.
21401 * commands/i386/pc/play.c: Likewise.
21402 * commands/i386/pc/pxecmd.c: Likewise.
21403 * commands/i386/pc/vbeinfo.c: Likewise.
21404 * commands/i386/pc/vbetest.c: Likewise.
21405 * commands/ieee1275/suspend.c: Likewise.
21406 * disk/loopback.c: Likewise.
21407 * font/font_cmd.c: Likewise.
21408 * hello/hello.c: Likewise.
21409 * loader/efi/appleloader.c: Likewise.
21410 * loader/efi/chainloader.c: Likewise.
21411 * loader/i386/bsd.c: Likewise.
21412 * loader/i386/efi/linux.c: Likewise.
21413 * loader/i386/ieee1275/linux.c: Likewise.
21414 * loader/i386/linux.c: Likewise.
21415 * loader/i386/pc/chainloader.c: Likewise.
21416 * loader/i386/pc/linux.c: Likewise.
21417 * loader/powerpc/ieee1275/linux.c: Likewise.
21418 * loader/multiboot_loader.c: Likewise.
21419 * term/gfxterm.c: Likewise.
21420 * term/i386/pc/serial.c: Likewise.
21421 * term/terminfo.c: Likewise.
21422
21423 * term/i386/pc/vesafb.c: Removed <grub/arg.h>.
21424 * term/i386/pc/vga.c: Likewise.
21425 * video/readers/jpeg.c: Likewise.
21426 * video/readers/png.c: Likewise.
21427 * video/readers/tga.c: Likewise.
21428
21429 * util/grub-fstest (cmd_loopback): Removed.
21430 (cmd_blocklist): Likewise.
21431 (cmd_ls): Likewise.
21432 (grub_register_command): Likewise.
21433 (grub_unregister_command): Likewise.
21434 (execute_command): Use grub_command_find to locate command and execute
21435 it.
21436
21437 * include/grub/efi/chainloader.h: Removed.
21438 * loader/efi/chainloader_normal.c: Likewise.
21439 * loader/i386/bsd_normal.c: Likewise.
21440 * loader/i386/pc/chainloader_normal.c: Likewise.
21441 * loader/i386/pc/multiboot_normal.c: Likewise.
21442 * loader/linux_normal.c: Likewise.
21443 * loader/multiboot_loader_normal.c: Likewise.
21444 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
21445
21446 * gencmdlist.sh: Scan new registration command grub_register_extcmd
21447 and grub_register_command_p1.
21448
21449 * conf/common.rmk (grub_fstest_SOURCES): Add kern/list.c,
21450 kern/command.c, lib/arg.c and commands/extcmd.c.
21451 (pkglib_MODULES): Remove boot.mod, and minicmd.mod and extcmd.mod.
21452 (minicmd_mod_SOURCES): New variable.
21453 (minicmd_mod_CFLAGS): Likewise.
21454 (minicmd_mod_LDFLAGS): Likewise.
21455 (extcmd_mod_SOURCES): Likewise.
21456 (extcmd_mod_CFLAGS): Likewise.
21457 (extcmd_mod_LDFLAGS): Likewise.
21458 (boot_mod_SOURCES): Removed.
21459 (boot_mod_CFLAGS): Likewise.
21460 (boot_mod_LDFLAGS): Likewise.
21461
21462 * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/command.c and
21463 kern/corecmd.c.
21464 (kernel_img_HEADERS): Add command.h.
21465 (grub_emu_SOURCES): Remove commands/boot.c and normal/arg.c, add
21466 commands/minicmd.c, kern/command.c, kern/corecmd.c, commands/extcmd.c
21467 and lib/arg.c.
21468 (pkglib_MODULES): Change _linux.mod, _chain.mod, _bsd.mod and
21469 _multiboot.mod as linux.mod, chain.mod, bsd.mod and multiboot.mod,
21470 remove the corresponding normal mode command.
21471 (normal_mod_SOURCES): Remove normal/arg.c.
21472 * conf/i386-coreboot.rmk: Likewise.
21473 * conf/i386-efi.rmk: Likewise.
21474 * conf/i386-ieee1275.rmk: Likewise.
21475 * conf/powerpc-ieee1275.rmk: Likewise.
21476 * conf/x86_64-efi.rmk: Likewise.
21477
21478 * include/grub/arg.h: Move from here ...
21479 * include/grub/lib/arg.h: ... to here.
21480
21481 * normal/arg.c: Move from here ...
21482 * lib/arg.c: ... to here.
21483
21484 * commands/extcmd.c: New file.
21485 * commands/minicmd.c: Likewise.
21486 * include/grub/command.h: Likewise.
21487 * include/grub/extcmd.h: Likewise.
21488 * kern/command.c: Likewise.
21489 * kern/corecmd.c: Likewise.
21490
21491 * kern/list.c (grub_list_iterate): Return int instead of void.
21492 (grub_list_insert): New function.
21493 (grub_prio_list_insert): Likewise.
21494
21495 * kern/rescue.c (grub_rescue_command): Removed.
21496 (grub_rescue_command_list): Likewise.
21497 (grub_rescue_register_command): Likewise.
21498 (grub_rescue_unregister_command): Likewise.
21499 (grub_rescue_cmd_boot): Move to minicmd.c
21500 (grub_rescue_cmd_help): Likewise.
21501 (grub_rescue_cmd_info): Likewise.
21502 (grub_rescue_cmd_boot): Likewise.
21503 (grub_rescue_cmd_testload): Likewise.
21504 (grub_rescue_cmd_dump): Likewise.
21505 (grub_rescue_cmd_rmmod): Likewise.
21506 (grub_rescue_cmd_lsmod): Likewise.
21507 (grub_rescue_cmd_exit): Likewise.
21508 (grub_rescue_print_devices): Moved to corecmd.c.
21509 (grub_rescue_print_files): Likewise.
21510 (grub_rescue_cmd_ls): Likewise.
21511 (grub_rescue_cmd_insmod): Likewise.
21512 (grub_rescue_cmd_set): Likewise.
21513 (grub_rescue_cmd_unset): Likewise.
7d074e3c 21514 (attempt_normal_mode): Use grub_command_find to get normal module.
b1b797cb 21515 (grub_enter_rescue_mode): Use grub_register_core_commands to register
7d074e3c 21516 commands, remove grub_rescue_register_command calls.
b1b797cb 21517
7d074e3c 21518 * normal/command.c (grub_register_command): Removed.
b1b797cb 21519 (grub_unregister_command): Likewise.
21520 (grub_command_find): Likewise.
21521 (grub_iterate_commands): Likewise.
21522 (rescue_command): Likewise.
21523 (export_command): Moved to corecmd.c.
21524 (set_command): Removed.
21525 (unset_command): Likewise.
21526 (insmod_command): Likewise.
21527 (rmmod_command): Likewise.
21528 (lsmod_command): Likewise.
21529 (grub_command_init): Likewise.
21530
21531 * normal/completion.c (iterate_command): Use cmd->prio to check for
21532 active command.
21533 (complete_arguments): Use grub_extcmd_t structure to find options.
21534 (grub_normal_do_completion): Change function grub_iterate_commands to
21535 grub_command_iterate.
21536
21537 * normal/execute.c (grub_script_execute_cmd): No need to parse
21538 argument here.
21539
21540 * normal/main.c (grub_dyncmd_dispatcher): New function.
21541 (read_command_list): Register unload commands as dyncmd.
21542 (grub_cmd_normal): Use new command interface, register rescue,
21543 unregister normal at entry, register normal, unregister rescue at exit.
21544
21545 * include/grub/list.h (grub_list_test_t): New type.
21546 (grub_list_iterate): Return int instead of void.
21547 (grub_list_insert): New function.
21548 (GRUB_AS_NAMED_LIST_P): New macro.
21549 (GRUB_AS_PRIO_LIST): Likewise.
21550 (GRUB_AS_PRIO_LIST_P): Likewise.
21551 (GRUB_PRIO_LIST_PRIO_MASK): New constant.
21552 (GRUB_PRIO_LIST_FLAG_ACTIVE): Likewise.
21553 (grub_prio_list): New structure.
21554 (grub_prio_list_insert): New function.
21555 (grub_prio_list_remove): New inline function.
21556
21557 * include/grub/normal.h: Remove <grub/arg.h>, add <grub/command.h>.
21558 (GRUB_COMMAND_FLAG_CMDLINE): Moved to command.h.
21559 (GRUB_COMMAND_FLAG_MENU): Likewise.
21560 (GRUB_COMMAND_FLAG_BOTH): Likewise.
21561 (GRUB_COMMAND_FLAG_TITLE): Likewise.
21562 (GRUB_COMMAND_FLAG_NO_ECHO): Likewise.
21563 (GRUB_COMMAND_FLAG_NO_ARG_PARSE): Removed.
21564 (GRUB_COMMAND_FLAG_NOT_LOADED): Likewise.
21565 (grub_command): Likewise.
21566 (grub_register_command): Likewise.
21567 (grub_command_find): Likewise.
21568 (grub_iterate_commands): Likewise.
21569 (grub_command_init): Likewise.
21570 (grub_arg_parse): Likewise.
21571 (grub_arg_show_help): Likewise.
21572
21573 * include/grub/rescue.h (grub_rescue_register_command): Removed.
21574 (grub_rescue_unregister_command): Likewise.
21575
21576 * include/grub/i386/bsd.h: Remove grub_rescue_cmd_freebsd,
21577 grub_rescue_cmd_openbsd, grub_rescue_cmd_netbsd,
21578 grub_rescue_cmd_freebsd_loadenv and grub_rescue_cmd_freebsd_module.
21579
21580 * include/grub/i386/efi/loader.h: Remove grub_rescue_cmd_linux and
21581 grub_rescue_cmd_initrd.
21582 * include/grub/i386/loader.h: Likewise.
21583 * include/grub/x86_64/loader.h: Likewise.
21584
21585 * include/grub/i386/pc/chainloader.h: Remove grub_chainloader_cmd.
21586
1f4147aa 215872009-03-21 Bean <bean123ch@gmail.com>
21588
21589 * util/hostdisk.c (read_device_map): Use grub_util_get_disk_size
21590 instead of stat in mingw environment.
21591
21592 * util/misc.c (grub_millisleep): Use Sleep in mingw environment.
21593
21594 * aclocal.m4 (grub_CHECK_LINK_DIR): New function.
21595
21596 * configure.ac: Use grub_CHECK_LINK_DIR to determine whether to use
21597 AC_CONFIG_LINKS.
21598
2156d5ba 215992009-03-21 Bean <bean123ch@gmail.com>
21600
21601 * fs/ext2.c (grub_ext2_mount): Change errno to GRUB_ERR_BAD_FS for
21602 out of range error.
21603
177b82ca 216042009-03-18 Michel Dänzer <michel@daenzer.net>
21605
21606 * fs/ext2.c (grub_ext2_read_block): Take endianness into account when
21607 checking inode flags for EXT4_EXTENTS_FLAG.
21608
14aad807 216092009-03-18 Robert Millan <rmh@aybabtu.com>
21610
21611 * loader/i386/linux.c: Include `<grub/video.h>' and
21612 `<grub/i386/pc/vbe.h>'..
21613 (grub_linux_setup_video): New function. Loosely based on the EFI one.
21614 (grub_linux32_boot): Attempt to configure video settings with
21615 grub_linux_setup_video().
21616 (grub_rescue_cmd_linux): Set noreturn=0 in grub_loader_set, in order
21617 to avoid grub_console_fini() which would step out of graphical mode
21618 unconditionally.
21619
8cf83a27 216202009-03-14 Robert Millan <rmh@aybabtu.com>
21621
21622 Fix build on powerpc.
21623 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Add `handler.h'.
21624
40164e75 216252009-03-12 Vladimir Serbinenko <phcoder@gmail.com>
21626
21627 * term/gfxterm.c (GRUB_MOD_FINI(term_gfxterm)): Correct name of
21628 background image command.
21629
c58bc32a 216302009-03-12 Colin D Bennett <colin@gibibit.com>
21631
21632 * term/gfxterm.c (draw_cursor): Ensure character is redrawn.
21633 (grub_gfxterm_putchar): Extract pairs of identical calls to
21634 draw_cursor out of conditional blocks.
21635
5415144a 216362009-03-11 Pavel Roskin <proski@gnu.org>
21637
21638 * fs/hfs.c (grub_hfs_strncasecmp): New function.
21639 (grub_hfs_cmp_catkeys): Use HFS specific string comparison.
21640
6394042e 216412009-03-11 Robert Millan <rmh@aybabtu.com>
21642
21643 * loader/i386/multiboot_elfxx.c
21644 (CONCAT(grub_multiboot_load_elf, XX)): Do not reject ET_DYN files.
21645
b7b50e5f 216462009-03-11 Felix Zielcke <fzielcke@z-51.de>
21647
21648 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add `kern/list.c' and
21649 `kern/handler.c'.
21650
1ca7fc96 216512009-03-11 Robert Millan <rmh@aybabtu.com>
21652
21653 * loader/i386/multiboot.c (code_size): New variable.
21654 (grub_multiboot): Define offsets by adding to `code_size' rather
7d074e3c 21655 than subtracting from `grub_multiboot_payload_size'. Provide
1ca7fc96 21656 4-byte alignment to MBI and others by increasing
7d074e3c 21657 `boot_loader_name_length' appropriately.
1ca7fc96 21658
21659 * loader/i386/multiboot_elfxx.c
21660 (CONCAT(grub_multiboot_load_elf, XX)): Initialize `code_size'.
21661
a83ea1d2 216622009-03-09 Felix Zielcke <fzielcke@z-51.de>
21663
21664 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove duplicated
21665 `fs/ext2.c'.
21666
aa9f3bff 216672009-03-08 Robert Millan <rmh@aybabtu.com>
21668
21669 Make loader/i386/linux.c usable on i386-pc again.
21670
21671 * kern/i386/pc/init.c (grub_machine_init): Disable addition of low
21672 memory to heap.
21673 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (allocate_pages): Remove
21674 `#error' stanza.
21675
d8b3b60e 216762009-03-07 Bean <bean123ch@gmail.com>
21677
21678 * loader/i386/efi/linux.c (grub_rescue_cmd_initrd): Fix a bug in initrd
21679 allocation.
21680
b362c9e9 216812009-03-06 Robert Millan <rmh@aybabtu.com>
21682
21683 Fix display issue on terminals with screen size other than 80x25
21684 (e.g. gfxterm with resolution higher than 640x480).
21685
21686 * normal/main.c (grub_normal_init_page): Display title text in a
7d074e3c 21687 position relative to the center of the terminal instead of relying
b362c9e9 21688 on a hardcoded offset.
21689
9304eef1 216902009-03-04 Robert Millan <rmh@aybabtu.com>
21691
21692 Filter /etc/grub.d/10_* so that only add-ons for native kernels are
21693 installed.
21694
21695 * Makefile.in (host_kernel): New variable.
21696 * conf/common.rmk (grub-mkconfig_SCRIPTS): Conditionalize all 10_*.in
21697 scripts instead of just the windows one.
21698 * configure.ac: Initialize and AC_SUBST `host_kernel'.
21699
eabc95fb 217002009-03-04 Felix Zielcke <fzielcke@z-51.de>
2ba60b62 21701
21702 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `kern/list.c' and
21703 `kern/handler.c'.
21704 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
21705 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
21706 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
21707 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
21708 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
21709 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
21710
ceb1223c 217112009-03-04 Felix Zielcke <fzielcke@z-51.de>
21712
21713 * partmap/pc.c (pc_partition_map_iterate): Skip over invalid BSD partitions
21714 or if there's no space for the disk label and print the partition number on a
21715 invalid magic.
21716
4910684a 217172009-03-04 Felix Zielcke <fzielcke@z-51.de>
21718
21719 * util/misc.c: Include <time.h>.
21720 (grub_millisleep): New function.
21721
7e9ca17a 217222009-03-04 Bean <bean123ch@gmail.com>
21723
21724 * configure.ac: Only test -mcmodel=large option in x86_64-efi, also add
21725 another option -mno-red-zone.
21726
21727 * commands/handler.c: Change module description.
21728
21729 * kern/handler.c: Add missing space at the end of description line.
21730
21731 * kern/list.c: Likewise.
21732
f501677c 217332009-03-03 Robert Millan <rmh@aybabtu.com>
21734
21735 Move more components to the relocation area, and fix mbi pointer
21736 handling to use the destination rather than the origin (thanks to
21737 Vladimir Serbinenko for spotting).
21738
21739 * loader/i386/multiboot.c (mbi_dest): New variable.
21740 (grub_multiboot_boot): Use `mbi_dest' instead of `mbi'.
21741 (grub_multiboot): Put cmdline, boot_loader_name and mbi in the
21742 relocation area.
21743
9902d047 217442009-03-01 Bean <bean123ch@gmail.com>
21745
50fb7002 21746 * include/grub/efi/api.h (GRUB_EFI_MPS_TABLE_GUID): New constant.
9902d047 21747 (GRUB_EFI_ACPI_TABLE_GUID): Likewise.
21748 (GRUB_EFI_ACPI_20_TABLE_GUID): Likewise.
21749 (GRUB_EFI_SMBIOS_TABLE_GUID): Likewise.
21750
21751 * loader/i386/efi/linux.c (acpi_guid): New variable.
21752 (acpi_guid): Likewise.
21753 (EBDA_SEG_ADDR): New constant.
21754 (LOW_MEM_ADDR): Likewise.
21755 (FAKE_EBDA_SEG): Likewise.
21756 (fake_bios_data): New function.
21757 (grub_linux_boot): Call fake_bios_data.
21758
71b9f361 217592009-03-01 Bean <bean123ch@gmail.com>
21760
21761 * commands/terminal.c: Removed.
21762
21763 * commands/handler.c: New file.
21764
21765 * include/grub/list.h: Likewise.
21766
21767 * include/grub/handler.h: Likewise.
21768
21769 * kern/list.c: Likewise.
21770
21771 * kern/handler.c: Likewise.
21772
21773 * kern/term.h: Include header file <grub/handler.h>.
21774 (grub_term_input): Move next field to the beginning.
21775 (grub_term_output): Likewise.
21776 (grub_term_input_class): New variable.
21777 (grub_term_output_class): Likewise.
21778 (grub_term_register_input): Changed to inline function.
21779 (grub_term_register_output): Likewise.
21780 (grub_term_unregister_input): Likewise.
21781 (grub_term_unregister_output): Likewise.
21782 (grub_term_set_current_input): Likewise.
21783 (grub_term_set_current_output): Likewise.
21784 (grub_term_get_current_input): Likewise.
21785 (grub_term_get_current_output): Likewise.
21786 (grub_term_iterate_input): Removed.
21787 (grub_term_iterate_output): Likewise.
21788
21789 * kern/term.c (grub_term_list_input): Removed.
21790 (grub_term_list_output): Likewise.
21791 (grub_term_input_class): New variable.
21792 (grub_term_output_class): Likewise.
50fb7002 21793 (grub_cur_term_input): Change variable as macro.
71b9f361 21794 (grub_cur_term_output): Likewise.
21795 (grub_term_register_input): Removed.
21796 (grub_term_register_output): Likewise.
21797 (grub_term_unregister_input): Likewise.
21798 (grub_term_unregister_output): Likewise.
21799 (grub_term_set_current_input): Likewise.
21800 (grub_term_set_current_output): Likewise.
21801 (grub_term_iterate_input): Likewise.
21802 (grub_term_iterate_output): Likewise.
21803 (grub_term_get_current_input): Likewise.
21804 (grub_term_get_current_output): Likewise.
21805
21806 * util/grub-editenv.c: Include header file <grub/handler.h>.
21807 (grub_term_get_current_input): Removed.
21808 (grub_term_get_current_output): Likewise.
21809 (grub_term_input_class): New variable.
50fb7002 21810 (grub_term_output_class): Likewise.
71b9f361 21811
21812 * util/grub-fstest.c (grub_term_get_current_input): Removed.
21813 (grub_term_get_current_output): Likewise.
21814 (grub_term_input_class): New variable.
50fb7002 21815 (grub_term_output_class): Likewise.
71b9f361 21816
21817 * util/grub-probe.c (grub_term_get_current_input): Removed.
21818 (grub_term_get_current_output): Likewise.
21819 (grub_term_input_class): New variable.
50fb7002 21820 (grub_term_output_class): Likewise.
71b9f361 21821
21822 * util/i386/pc/grub-setup.c (grub_term_get_current_input): Removed.
21823 (grub_term_get_current_output): Likewise.
21824 (grub_term_input_class): New variable.
50fb7002 21825 (grub_term_output_class): Likewise.
71b9f361 21826
21827 * conf/common.rmk (pkglib_MODULES): Replace terminal with handler.
21828 (terminal_mod_SOURCES): Likewise.
21829 (terminal_mod_CFLAGS): Likewise.
21830 (terminal_mod_LDFLAGS): Likewise.
21831
21832 * conf/i386-pc.rmk (grub_emu_SOURCES): Replace terminal.c with
21833 handler.c.
21834 (kernel_img_SOURCES): Add list.c and handler.c.
21835 (kernel_img_HEADERS): Add list.h and handler.h.
21836
21837 * conf/i386-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
21838 handler.c.
21839 (kernel_mod_SOURCES): Add list.c and handler.c.
21840 (kernel_mod_HEADERS): Add list.h and handler.h.
21841
21842 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Replace terminal.c with
21843 handler.c.
21844 (kernel_elf_SOURCES): Add list.c and handler.c.
21845 (kernel_elf_HEADERS): Add list.h and handler.h.
21846
21847 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
21848 handler.c.
21849 (kernel_elf_SOURCES): Add list.c and handler.c.
21850 (kernel_elf_HEADERS): Add list.h and handler.h.
21851
21852 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
21853 handler.c.
21854 (kernel_mod_SOURCES): Add list.c and handler.c.
21855 (kernel_mod_HEADERS): Add list.h and handler.h.
21856
21857 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
21858 handler.c.
21859 (kernel_elf_SOURCES): Add list.c and handler.c.
21860 (kernel_elf_HEADERS): Add list.h and handler.h.
21861
8a31787f 218622009-02-27 Robert Millan <rmh@aybabtu.com>
21863
21864 Factorize elf32 / elf64 code in Multiboot loader. This will
21865 prevent it from getting out of sync again.
21866
21867 * loader/i386/multiboot.c (grub_multiboot_is_elf32,
21868 grub_multiboot_load_elf32, grub_multiboot_is_elf64,
21869 grub_multiboot_load_elf64): Move from here ...
21870 * loader/i386/multiboot_elfxx.c (grub_multiboot_is_elf,
21871 grub_multiboot_load_elf): ... to here (new file).
21872
51cd3dfc 218732009-02-27 Robert Millan <rmh@aybabtu.com>
21874
21875 * util/grub.d/10_linux.in: Rename "single-user mode" to
21876 "recovery mode".
21877
6e8c9c3a 218782009-02-27 Vladimir Serbinenko <phcoder@gmail.com>
21879
21880 Don't leak in SCSI code.
21881 * disk/scsi.c (grub_scsi_close): free `scsi'.
21882
4b6bf4f9 218832009-02-27 Robert Millan <rmh@aybabtu.com>
21884
21885 * loader/i386/pc/multiboot.c: Move from here ...
21886 * loader/i386/multiboot.c: ... to here. Update all users.
21887
b9413424 218882009-02-27 Robert Millan <rmh@aybabtu.com>
21889
21890 Patch from Alexandre Bique <bique.alexandre@gmail.com>
21891 * util/i386/pc/grub-setup.c (setup): Fix directory path.
21892
50fb7002 218932009-02-27 Krzysztof Smiechowicz <deadwood@wp.pl>
34519c3f 21894
21895 * fs/sfs.c (grub_sfs_read_extent): Correction to traversing extent
21896 b-tree.
21897
8cc50345 218982009-02-27 Robert Millan <rmh@aybabtu.com>
21899
21900 * kern/misc.c (grub_strtoull): Fix bug (it mistakenly parsed the
21901 `0x' qualifier as 0 when base is specified as parameter).
21902
6e09b8b7 219032009-02-24 Bean <bean123ch@gmail.com>
21904
21905 * configure.ac: Check for -mcmodel=large in x86_64 target.
21906
21907 * include/grub/efi/api.h (efi_call_10): New macro.
21908 (efi_wrap_10): New function.
21909
21910 * include/grub/efi/pe32.h (GRUB_PE32_REL_BASE_HIGH): New macro.
21911 (GRUB_PE32_REL_BASED_HIGH): Likewise.
21912 (GRUB_PE32_REL_BASED_LOW): Likewise.
21913 (GRUB_PE32_REL_BASED_HIGHLOW): Likewise.
21914 (GRUB_PE32_REL_BASED_HIGHADJ): Likewise.
21915 (GRUB_PE32_REL_BASED_MIPS_JMPADDR): Likewise.
21916 (GRUB_PE32_REL_BASED_SECTION): Likewise.
21917 (GRUB_PE32_REL_BASED_REL): Likewise.
21918 (GRUB_PE32_REL_BASED_IA64_IMM64): Likewise.
21919 (GRUB_PE32_REL_BASED_DIR64): Likewise.
21920 (GRUB_PE32_REL_BASED_HIGH3ADJ): Likewise.
21921
21922 * kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Fixed relocation
21923 issue.
21924
21925 * kern/x86_64/efi/callwrap.S (efi_wrap_6): Bug fix.
21926 (efi_wrap_10): New function.
21927
21928 * kern/x86_64/efi/startup.S (codestart): Use relative addressing.
21929
21930 * loader/efi/appleloader.c (devpath_5): Add support for late 2008
21931 MB/MBP model (NV chipset).
21932 (devdata_devs): Add devpath_5 to the list.
21933
21934 * load/i386/efi/linux.c (video_base): Remove variable.
21935 (RGB_MASK): New macro.
21936 (RGB_MAGIC): Likewise.
21937 (LINE_MIN): Likewise.
21938 (LINE_MAX): Likewise.
21939 (FBTEST_STEP): Likewise.
21940 (FBTEST_COUNT): Likewise.
21941 (fb_list): New variable.
21942 (grub_find_video_card): Remove function.
21943 (find_framebuf): New function.
21944 (grub_linux_setup_video): Use find_framebuf to get frame buffer and
21945 line length.
21946
21947 * util/i386/efi/grub-mkimage.c (grub_reloc_section): Fix relocation
21948 problem for x86_64.
21949
74b21bee 219502009-02-22 Vesa Jääskeläinen <chaac@nic.fi>
21951
21952 Patch #25624 by Kevin Lacquement <kevin@lacqui>.
21953
21954 * util/grub-mkconfig.in: Use ${grub_mkdevicemap} instead of hard
21955 coding tool name.
21956
a455f472 219572009-02-22 Robert Millan <rmh@aybabtu.com>
21958
21959 * include/multiboot.h (MULTIBOOT_INFO_ALIGN): New macro.
21960 * loader/i386/pc/multiboot.c (grub_multiboot): Include the MBI
21961 in our relocation, instead of using it directly from heap. Also
21962 use `MULTIBOOT_INFO_ALIGN' to ensure it is aligned.
21963
6374daf3 219642009-02-21 Robert Millan <rmh@aybabtu.com>
21965
21966 Implement USB keyboard support (based on patch by Marco Gerards)
21967
21968 * conf/i386-pc.rmk (pkglib_MODULES): Add `usb_keyboard.mod'.
21969 (usb_keyboard_mod_SOURCES, usb_keyboard_mod_CFLAGS)
21970 (usb_keyboard_mod_LDFLAGS): New variables.
21971
21972 * term/usb_keyboard.c: New file.
21973
8fa4ea70 219742009-02-14 Vladimir Serbinenko <phcoder@gmail.com>
21975
21976 Corrected wrong declaration
21977
21978 * kern/disk.c: corrected declaration of grub_disk_ata_pass_through.
21979
353976ac 219802009-02-14 Christian Franke <franke@computer.org>
21981
21982 * commands/lspci.c (grub_pci_classes): Add `SATA Controller'.
21983 (grub_lspci_iter): Print class code and programming interface byte.
21984
6aa1169b 219852009-02-14 Christian Franke <franke@computer.org>
21986
21987 * gendistlist.sh: Ignore `.svn' directories.
21988
265372ca 219892009-02-14 Felix Zielcke <fzielcke@z-51.de>
21990
21991 * fs/fat.c: Add 2009 to Copyright line.
21992
9ff516f3 219932009-02-14 Christian Franke <franke@computer.org>
21994
21995 * commands/hdparm.c: New file. Provides `hdparm' command
21996 which sends ATA commands via grub_disk_ata_pass_through ().
21997
21998 * conf/i386-pc.rmk: Add ata_pthru.mod and hdparm.mod.
21999
22000 * disk/ata.c: Include <grub/ata.h>. Move <grub/misc.h>
22001 and <grub/cpu/io.h> to include/grub/ata.h.
22002 (enum grub_ata_addressing_t): Move to include/grub/ata.h.
22003 (GRUB_CDROM_SECTOR_SIZE): Remove.
22004 (GRUB_ATA_*): Move to include/grub/ata.h.
22005 (GRUB_ATAPI_*): Likewise.
22006 (enum grub_ata_commands): Likewise.
22007 (enum grub_ata_timeout_milliseconds): Likewise.
22008 (struct grub_ata_device): Likewise.
22009 (grub_ata_regset): Likewise.
22010 (grub_ata_regget): Likewise.
22011 (grub_ata_regset2): Likewise.
22012 (grub_ata_regget2): Likewise.
22013 (grub_ata_check_ready): Likewise.
22014 (grub_ata_wait_not_busy): Remove static, exported in
22015 include/grub/ata.h.
22016 (grub_ata_wait_drq): Likewise.
22017 (grub_ata_pio_read): Likewise.
22018
22019 * disk/ata_pthru.c: New file. Provides grub_ata_pass_through ()
22020 function for hdparm.mod.
22021
22022 * include/grub/ata.h: New file, contains declarations from
22023 disk/ata.c.
22024 (enum grub_ata_commands): Add new commands for commands/hdparm.c.
22025
22026 * include/grub/disk.h (grub_disk_ata_pass_through_parms): New struct.
22027 (grub_disk_ata_pass_through): New exported variable.
22028
22029 * kern/disk.c (grub_disk_ata_pass_through): New variable.
22030
772e23da 220312009-02-13 Colin D Bennett <colin@gibibit.com>
22032
22033 Support multiple fallback entries, and provide an API to support
22034 executing default+fallback menu entries. Renamed the `terminal' menu
22035 viewer to `text'.
22036
22037 * include/grub/normal.h (grub_normal_text_menu_viewer): New global
22038 variable declaration.
22039 (grub_menu_execute_callback): New structure declaration.
22040 (grub_menu_execute_callback_t): New typedef.
22041 (grub_menu_execute_with_fallback): New function declaration.
22042 (grub_menu_get_entry): Likewise.
22043 (grub_menu_get_timeout): Likewise.
22044 (grub_menu_set_timeout): Likewise.
22045
22046 * normal/main.c (GRUB_MOD_INIT(normal)): Refer to new variable name.
22047
22048 * normal/menu.c (grub_wait_after_message): Moved to
22049 `normal/menu_text.c'.
22050 (draw_border): Likewise.
22051 (print_message): Likewise.
22052 (print_entry): Likewise.
22053 (print_entries): Likewise.
22054 (grub_menu_init_page): Likewise.
22055 (get_entry_number): Likewise.
22056 (print_timeout): Likewise.
22057 (run_menu): Likewise.
22058 (grub_menu_execute_entry): Likewise.
22059 (show_text_menu): Likewise.
22060 (get_and_remove_first_entry_number): New function.
22061 (grub_menu_execute_with_fallback): Likewise.
22062 (get_entry): Renamed to ...
22063 (grub_menu_get_entry): .. this and made it global.
22064 (get_timeout): Renamed to ...
22065 (grub_menu_get_timeout): ... this and made it global.
22066 (set_timeout): Renamed to ...
22067 (grub_menu_set_timeout): ... this and made it global.
22068 (grub_normal_terminal_menu_viewer): Renamed to ...
22069 (grub_normal_text_menu_viewer): ... this.
22070
22071 * normal/menu_text.c: New file. Extracted text-menu-specific code
22072 from normal/menu.c.
22073
22074 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add `normal/menu_text.c'.
22075 (normal_mod_SOURCES): Likewise.
22076
22077 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
22078 (normal_mod_SOURCES): Likewise.
22079
22080 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
22081 (normal_mod_SOURCES): Likewise.
22082
22083 * conf/i386-pc.rmk, (grub_emu_SOURCES): Likewise.
22084 (normal_mod_SOURCES): Likewise.
22085
22086 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
22087 (normal_mod_SOURCES): Likewise.
22088
22089 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
22090 (normal_mod_SOURCES): Likewise.
22091
22092 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
22093 (normal_mod_SOURCES): Likewise.
22094
16ac430e 220952009-02-11 Robert Millan <rmh@aybabtu.com>
22096
22097 * util/grub.d/00_header.in: Update old reference to `font' command.
22098
06ff20fc 220992009-02-10 Felix Zielcke <fzielcke@z-51.de>
22100
22101 * fs/fat.c (grub_fat_mount): Fix wrong comparison.
22102
22103 Based on patch from Javier Martín.
22104
96da9407 221052009-02-09 Felix Zielcke <fzielcke@z-51.de>
22106
22107 * conf/common.rmk (grub_probe_SOURCES): Move fs/ext2.c before fs/fat.c
50fb7002 22108 to avoid false positives with FAT.
96da9407 22109 (grub_fstest_SOURCES): Likewise.
22110 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
22111 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
22112 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
22113 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
22114 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
22115 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
22116
6dca6fe4 221172009-02-09 Felix Zielcke <fzielcke@z-51.de>
22118
06ff20fc 22119 * fs/fat.c (grub_fat_mount): Try to avoid false positives by checking
6dca6fe4 22120 bpb.version_specific.fat12_or_fat16.fstype and
22121 bpb.version_specific.fat32.fstype.
22122
2550c62f 221232009-02-08 Robert Millan <rmh@aybabtu.com>
22124
be110b30 22125 * fs/tar.c: Replace "fs/cpio.c" with "cpio.c".
2550c62f 22126
56978920 221272009-02-08 Robert Millan <rmh@aybabtu.com>
22128
22129 * Makefile.in (host_os, host_cpu): New variables.
22130 (target_os): Remove. Update all users.
22131
d64399b5 221322009-02-08 Marco Gerards <marco@gnu.org>
22133
22134 * Makefile.in (enable_grub_emu_usb): New variable.
22135 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/scsi.c'.
22136 (grub_emu_SOURCES) [grub_emu_SOURCES]: Add `disk/usbms.c',
22137 `util/usb.c', `bus/usb/usb.c' and `commands/usbtest.c'.
22138 (grub_emu_LDFLAGS): Add `$(LIBUSB)'.
22139 (pkglib_MODULES): Add `usb.mod', `uhci.mod', `ohci.mod',
22140 `usbtest.mod' and `usbms.mod'.
22141 (usb_mod_SOURCES, usb_mod_CFLAGS, usb_mod_LDFLAGS)
22142 (usbtest_mod_SOURCES, usbtest_mod_CFLAGS, usbtest_mod_LDFLAGS)
22143 (uhci_mod_SOURCES, uhci_mod_CFLAGS, uhci_mod_LDFLAGS,
22144 (ohci_mod_SOURCES, ohci_mod_CFLAGS, ohci_mod_LDFLAGS)
22145 (usbms_mod_SOURCES, usbms_mod_CFLAGS, usbms_mod_LDFLAGS): New
22146 variables.
22147
22148 * disk/usbms.c: New file.
22149
22150 * include/grub/usb.h: Likewise.
22151
22152 * include/grub/usbtrans.h: Likewise.
22153
22154 * include/grub/usbdesc.h: Likewise.
22155
22156 * bus/usb/usbtrans.c: Likewise.
22157
22158 * bus/usb/ohci.c: Likewise.
22159
22160 * bus/usb/uhci.c: Likewise.
22161
22162 * bus/usb/usbhub.c: Likewise.
22163
22164 * bus/usb/usb.c: Likewise.
22165
22166 * commands/usbtest.c: Likewise.
22167
22168 * util/usb.c: Likewise.
50fb7002 22169
d64399b5 22170 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_IO'.
22171
22172 * configure.ac: Test for libusb presence.
50fb7002 22173
d64399b5 22174 * util/grub-emu.c (main) [HAVE_LIBUSB_H]: Call `grub_libusb_init'.
22175
2b40d6bb 221762009-02-08 Vesa Jääskeläinen <chaac@nic.fi>
22177
22178 * kern/mm.c: Add more comments.
22179
73a4ce81 221802009-02-08 Robert Millan <rmh@aybabtu.com>
22181
22182 Patch from Javier Martín.
22183 * fs/ext2.c (EXT2_DRIVER_SUPPORTED_INCOMPAT): Add
22184 `EXT4_FEATURE_INCOMPAT_FLEX_BG'.
22185
f821ce59 221862009-02-08 Robert Millan <rmh@aybabtu.com>
22187
22188 * fs/cpio.c: Split tar functionality to ...
22189 * fs/tar.c: ... here (new file). Update all users.
22190
aebfc4b0 221912009-02-07 Robert Millan <rmh@aybabtu.com>
22192
22193 * fs/ext2.c (grub_ext2_mount): Avoid mounting filesystems with
22194 backward-incompatible features.
22195
22196 Based on patch from Javier Martín, with some adjustments.
22197
50fb7002 221982009-02-07 Michael Scherer <misc@mandriva.org>
cea15bca 22199
22200 * fs/hfs.c (grub_hfsplus_iterate_dir): Treat hfs+ as case insensitive.
22201
0bb5115e 222022009-02-07 Robert Millan <rmh@aybabtu.com>
22203
22204 * conf/common.rmk (grub_probe_SOURCES, grub_fstest_SOURCES): Move
22205 position of `disk/lvm.c' to ensure grub_init_all() always picks it
22206 after the RAID stuff.
22207
38a0f8e7 222082009-02-05 Vesa Jääskeläinen <chaac@nic.fi>
22209
50fb7002 22210 Fixes problem when running vbetest command as reported by
38a0f8e7 22211 Vladimir Serbinenko <phcoder@gmail.com>.
22212
22213 * (grub_vbe_set_video_mode): Fixed problem with text modes.
22214
3143cc1c 222152009-02-04 Felix Zielcke <fzielcke@z-51.de>
22216
22217 util/getroot.c (grub_util_get_grub_dev): Add support for /dev/mdNpN and
22218 /dev/md/NpN style mdraid devices.
22219
9cba6fce 222202009-02-03 Felix Zielcke <fzielcke@z-51.de>
22221
22222 * util/unifont2pff.rb: Remove.
22223
e507a2c1 222242009-02-03 Felix Zielcke <fzielcke@z-51.de>
22225
22226 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add a missing trailing
22227 `#'.
22228
d2c2b4cd 222292009-02-03 Felix Zielcke <fzielcke@z-51.de>
22230
22231 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/menu_viewer.c'.
22232 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
22233 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
22234 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
22235 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
22236 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
22237 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
22238
b4315fb0 222392009-02-02 Christian Franke <franke@computer.org>
22240
22241 * lib/hexdump.c (hexdump): Print at most 3 lines if data is identical.
22242
de3aa260 222432009-02-01 Felix Zielcke <fzielcke@z-51.de>
22244
7c3ff286 22245 * INSTALL: Note that we now require at least autoconf 2.59 and
22246 that LZO is optional.
de3aa260 22247
825a182b 222482009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
22249
22250 Base on patch on bug #24154 created by Tomas Tintera
22251 <trosos@seznam.cz>.
22252
22253 * video/i386/pc/vbe.c (grub_video_vbe_scroll): Fix downward scrolling.
22254
a69ef770 222552009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
22256
7c3ff286 22257 Based on patch on bug #25318 created by Bernhard Rosenkraenzer
a69ef770 22258 <bero@arklinux.org>.
22259
22260 * normal/parser.y (script_init): Add missing semicolon.
22261
6fa42fa6 222622009-01-31 Colin D Bennett <colin@gibibit.com>
22263
7c3ff286 22264 * normal/main.c: Add include to grub/menu_viewer.h.
6fa42fa6 22265 (free_menu_entry_classes): Added.
22266 (grub_normal_menu_addentry): Added class property handling.
22267 (grub_normal_execute): Changed to use new menu viewer for menu viewing.
22268 (GRUB_MOD_INIT(normal)): Added register for text based menu viewer.
22269
22270 * normal/menu_viewer.c: New file.
22271
22272 * normal/menu.c (run_menu_entry): Renamed to ...
22273 (grub_menu_execute_entry): ... this and made it as global.
22274 (grub_menu_run): Renamed to ...
22275 (show_text_menu): ... this and made it local.
22276 (show_text_menu): Adapt to new function names.
22277 (grub_normal_terminal_menu_viewer): New global variable.
22278
22279 * include/grub/menu.h: New file.
22280
22281 * include/grub/menu_viewer.h: New file.
22282
22283 * include/grub/normal.h: Added include to grub/menu.h.
22284 (grub_menu_entry): Moved to include/grub/menu.h.
22285 (grub_menu_entry_t): Likewise.
22286 (grub_menu): Likewise.
22287 (grub_menu_t): Likewise.
22288 (grub_normal_terminal_menu_viewer): Added.
22289 (grub_menu_execute_entry): Likewise.
22290 (grub_menu_run): Removed.
22291
22292 * DISTLIST: Added include/grub/menu.h.
22293 Added include/grub/menu_viewer.h.
22294 Added normal/menu_viewer.c.
22295
222962009-01-31 Vesa Jääskeläinen <chaac@nic.fi>
22297
22298 * normal/execute.c (grub_script_execute_menuentry): Changed to use
22299 arglist for menutitle arguments.
22300
22301 * normal/main.c (grub_normal_menu_addentry): Likewise.
22302
22303 * normal/parser.y (menuentry): Likewise.
22304
22305 * normal/script.c (grub_script_create_cmdmenu): Likewise.
22306
22307 * include/grub/script.h (grub_script_cmd_menuentry): Likewise.
22308 (grub_script_create_cmdmenu): Likewise.
22309
22310 * include/grub/normal.h (grub_normal_menu_addentry): Likewise.
22311
22312 * conf/i386-pc.rmk (normal_mod_SOURCES): Adapt Colin D Bennett's
22313 changes.
22314
22315 * conf/x86_64-efi.rmk (normal_mod_SOURCES): Likewise.
22316
22317 * conf/i386-coreboot.rmk (normal_mod_SOURCES): Likewise.
22318
22319 * conf/i386-efi.rmk (normal_mod_SOURCES): Likewise.
22320
22321 * conf/i386-ieee1275.rmk (normal_mod_SOURCES): Likewise.
22322
22323 * conf/powerpc-ieee1275.rmk (normal_mod_SOURCES): Likewise.
22324
22325 * conf/sparc64-ieee1275.rmk (normal_mod_SOURCES): Likewise.
22326
56192c23 223272009-01-30 Christian Franke <franke@computer.org>
22328
22329 * normal/arg.c (grub_arg_show_help): Add indentation if '\n' appears
22330 in option help text.
22331
d72521b3 223322009-01-27 Pavel Roskin <proski@gnu.org>
22333
22334 * disk/fs_uuid.c (search_fs_uuid): Ignore case of the UUID.
22335
994b5e84 223362009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
22337
22338 * commands/lsmmap.c: Add include to grub/machine/memory.h.
22339
22340 * fs/i386/pc/pxe.c (grub_pxefs_open): Fix sign problem.
22341
22342 * term/i386/pc/at_keyboard.c (GRUB_MOD_FINI(at_keyboard)): Use proper
22343 unregister function.
22344
6a7eab2c 223452009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
22346
22347 * disk/scsi.c (grub_scsi_read): Fix sign problem.
22348
22349 * term/i386/pc/vga_text.c (grub_vga_text_init_fini). Fix declaration.
22350
22351 * util/grub-mkfont.c (usage): Fix typo.
22352
22353 * util/elf/grub-mkimage.c (load_modules): Fix warning.
22354
1806b56e 223552009-01-26 Daniel Mierswa <impulze@impulze.org>
22356
3fb18f09 22357 * fs/fat.c (grub_fat_uuid): Fix shift of the first two bytes.
22358
336e1fb9 22359 * commands/search.c (search_fs_uuid): Ignore case of the UUID.
22360
1806b56e 22361 * kern/misc.c (grub_strcasecmp): New function.
22362 (grub_strcasecmp): Use grub_size_t instead of int for length.
22363 Fix return value.
22364 * include/grub/misc.h: Update function prototypes.
22365
580b2a0f 223662009-01-26 Robert Millan <rmh@aybabtu.com>
22367
22368 * configure.ac: Fix cross-compilation check.
ef257b36 22369
d31c24f1 223702009-01-22 Christian Franke <franke@computer.org>
22371
22372 * kern/misc.c (grub_vsprintf): Fix size and termination of `format2'
22373 (precision) digit string. Allow `.format2' without `format1' (width).
22374 Limit input chars for `%s' output to `format2' if specified. This is
22375 compatible with standard printf ().
22376
3138b44c 223772009-01-22 Christian Franke <franke@computer.org>
22378
22379 * disk/ata.c (grub_ata_wait_status): Replace by ...
22380 (grub_ata_wait_not_busy): ... this function. Checks only BSY bit,
22381 other status bits may be invalid while BSY is asserted.
22382 (grub_ata_check_ready): New function.
22383 (grub_ata_cmd): Removed.
22384 (grub_ata_wait_drq): New function.
22385 (grub_ata_strncpy): Remove inline.
22386 (grub_ata_pio_read): Reduce to actual block transfer. BSY wait
22387 and error check now done by grub_ata_wait_drq ().
22388 (grub_ata_pio_write): Likewise.
22389 (grub_atapi_identify): Set DEV before check for !BSY. Use
22390 grub_ata_wait_drq () to wait for data.
22391 (grub_ata_device_initialize): Add status register check to
22392 detect missing SATA slave devices. Add debug messages.
22393 (grub_atapi_wait_drq): Use grub_ata_wait_not_busy ().
22394 (grub_atapi_packet): Set DEV before check for !BSY. Replace
22395 transfer loop by grub_ata_pio_write ().
22396 (grub_ata_identify): Set DEV before check for !BSY. Use
22397 grub_ata_wait_drq () to wait for data.
ef257b36 22398 (grub_ata_setaddress): Set DEV before check for !BSY.
3138b44c 22399 (grub_ata_readwrite): Remove duplicate code, handle batch/rest and
22400 read/write in one loop. Fix invalid command on write. Fix incomplete
22401 command on (size % batch) == 0. Add missing error check after write of
22402 last block. Add debug messages.
22403 (grub_atapi_read): Replace transfer loop by grub_ata_pio_read ().
22404
59a64ef6 224052009-01-19 Christian Franke <franke@computer.org>
22406
22407 * disk/ata.c (GRUB_ATAPI_REG_*): New defines.
22408 (GRUB_ATAPI_IREASON_*): Likewise.
22409 (grub_ata_pio_write): Fix timeout error return.
22410 (grub_atapi_identify): Add grub_ata_wait () after cmd.
22411 (grub_atapi_wait_drq): New function.
22412 (grub_atapi_packet): New parameter `size'.
22413 Use grub_atapi_wait_drq () and direct write instead of
22414 grub_ata_pio_write ().
22415 (grub_atapi_read): Replace grub_ata_pio_read () by a loop which
22416 reads the number of bytes requested by the device for each DRQ
22417 assertion.
22418 (grub_atapi_write): Remove old implementation, return not
22419 implemented instead.
22420
1cfe20b3 224212009-01-19 Christian Franke <franke@computer.org>
22422
22423 * disk/scsi.c (grub_scsi_read10): Use scsi->blocksize instead
22424 of 512 to calculate data size.
22425 (grub_scsi_read12): Likewise.
22426 (grub_scsi_write10): Likewise.
22427 (grub_scsi_write12): Likewise.
22428 (grub_scsi_read): Adjust size according to blocksize.
22429 Add checks for invalid blocksize and unaligned transfer.
22430
bee5fe5d 224312009-01-19 Vesa Jääskeläinen <chaac@nic.fi>
22432
22433 * font/font.c (grub_font_loader_init): Re-position unknown glyph.
22434
ef257b36 22435 * term/gfxterm.c (write_char): Fix background rendering for wide
bee5fe5d 22436 width glyphs.
22437
3e643f8c 224382009-01-19 Robert Millan <rmh@aybabtu.com>
22439
22440 * config.guess: Update to latest version from config git.
22441 * config.sub: Likewise.
22442
4fa80998 224432009-01-17 Felix Zielcke <fzielcke@z-51.de>
22444
22445 * Makefile.in: Change font compilation to use new grub-mkfont instead
22446 of java version.
22447
22448 * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: Remove.
22449 * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
22450 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
22451 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
22452 * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
22453 * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
22454 * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
22455 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
22456 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
22457
7086085b 224582009-01-16 Christian Franke <franke@computer.org>
22459
22460 * disk/ata.c (enum grub_ata_commands): Remove EXEC_DEV_DIAGNOSTICS.
22461 (enum grub_ata_timeout_milliseconds): New enum.
22462 (grub_ata_wait_status): Add parameter milliseconds.
22463 (grub_ata_cmd): Remove variable `err'. Remove wait for !DRQ to allow
22464 recovery from timed-out commands.
22465 (grub_ata_pio_read): Add parameter milliseconds. Fix error return,
22466 return grub_errno instead of REG_ERROR.
22467 (grub_ata_pio_write): Add parameter milliseconds.
22468 (grub_atapi_identify): Fix size of ATAPI IDENTIFY sector.
22469 Pass milliseconds to grub_ata_wait_status () and
22470 grub_ata_pio_read ().
22471 (grub_atapi_packet): Pass milliseconds to grub_ata_pio_write ().
22472 (grub_ata_identify): Remove variable `ataerr'. Pass milliseconds to
22473 grub_ata_wait_status (). Fix IDENTIFY timeout check.
22474 (grub_ata_device_initialize): Remove EXECUTE DEVICE DIAGNOSTICS.
22475 It is not suitable for device detection, because DEV bit is ignored,
22476 the command may run too long, and not all devices set the signature
22477 properly.
22478 (grub_ata_pciinit): Clear grub_errno before grub_ata_device_initialize ().
22479 (grub_ata_setaddress): Pass milliseconds to grub_ata_wait_status ().
22480 Fix device selection, DEV bit must be set first to address the registers
22481 of the correct device.
22482 (grub_ata_readwrite): Pass milliseconds to grub_ata_wait_status () and
22483 grub_ata_pio_read/write ().
22484 (grub_atapi_read): Pass milliseconds to grub_ata_pio_read ().
22485 (grub_atapi_write): Pass milliseconds to grub_ata_pio_write ().
22486
4a412913 224872009-01-13 Carles Pina i Estany <carles@pina.cat>
22488
22489 * util/grub-editenv.c (main): Use fseeko(), not fseek().
22490
7795c55e 224912009-01-13 Bean <bean123ch@gmail.com>
d913988c 22492
22493 * util/grub-mkfont.c (write_font): forget to remove some debug code.
22494
7795c55e 224952009-01-13 Bean <bean123ch@gmail.com>
e52db1f7 22496
22497 * Makefile.in: (enable_grub_mkfont): New variable.
22498 (freetype_cflags): Likewise.
22499 (freetype_libs): Likewise.
22500
22501 * common.rmk (bin_UTILITIES): Add `grub-mkfont' if requested.
22502 (grub_mkfont_SOURCES): New variable.
22503 (grub_mkfont_CFLAGS): Likewise.
22504 (grub_mkfont_LDFLAGS): Likewise.
22505
22506 * configure.ac (--enable-grub-mkfont): New option. Check for freetype2
22507 library if `--enable-grub-mkfont' is requested.
22508 (enable_grub_mkfont): New variable.
22509 (freetype_cflags): Likewise.
22510 (freetype_libs): Likewise.
22511
22512 * util/grub-mkfont.c: New file.
22513
093af1fe 225142009-01-12 Christian Franke <franke@computer.org>
22515
22516 * disk/ata.c (grub_ata_pciinit): Fix bit numbers of compatibility
22517 mode check. Fix setting of compat_use[].
22518
f36cc108 225192009-01-10 Robert Millan <rmh@aybabtu.com>
22520
22521 Update a few copyright years which we forgot to do in 2008 (only for
22522 files whose changes made in 2008 were copyright-significant)
22523
22524 * Makefile.in: Add 2008 to Copyright line.
22525 * disk/ieee1275/ofdisk.c: Likewise.
22526 * disk/efi/efidisk.c: Likewise.
22527 * kern/dl.c: Likewise.
22528 * kern/sparc64/ieee1275/init.c: Likewise.
22529 * kern/mm.c: Likewise.
22530 * kern/efi/mm.c: Likewise.
22531 * boot/i386/pc/boot.S: Likewise.
22532 * genfslist.sh: Likewise.
22533 * fs/iso9660.c: Likewise.
22534 * fs/hfs.c: Likewise.
22535 * fs/jfs.c: Likewise.
22536 * fs/minix.c: Likewise.
22537 * fs/ufs.c: Likewise.
22538 * gensymlist.sh.in: Likewise.
22539 * genkernsyms.sh.in: Likewise.
22540 * include/grub/misc.h: Likewise.
22541 * include/grub/types.h: Likewise.
22542 * include/grub/symbol.h: Likewise.
22543 * include/grub/elf.h: Likewise.
22544 * include/grub/kernel.h: Likewise.
22545 * include/grub/disk.h: Likewise.
22546 * include/grub/dl.h: Likewise.
22547 * include/grub/i386/linux.h: Likewise.
22548 * include/grub/i386/pc/biosdisk.h: Likewise.
22549 * include/grub/efi/api.h: Likewise.
22550 * include/grub/efi/pe32.h: Likewise.
22551 * include/grub/util/misc.h: Likewise.
22552 * normal/execute.c: Likewise.
22553 * normal/arg.c: Likewise.
22554 * normal/completion.c: Likewise.
22555 * normal/lexer.c: Likewise.
22556 * normal/parser.y: Likewise.
22557 * normal/misc.c: Likewise.
22558 * commands/i386/pc/vbeinfo.c: Likewise.
22559 * commands/hexdump.c: Likewise.
22560 * commands/terminal.c: Likewise.
22561 * commands/ls.c: Likewise.
22562 * commands/help.c: Likewise.
22563 * partmap/pc.c: Likewise.
22564 * loader/efi/chainloader.c: Likewise.
22565 * loader/multiboot_loader.c: Likewise.
22566 * loader/i386/pc/multiboot2.c: Likewise.
22567 * term/efi/console.c: Likewise.
22568 * term/i386/pc/serial.c: Likewise.
22569 * util/lvm.c: Likewise.
22570 * util/console.c: Likewise.
22571 * util/i386/efi/grub-mkimage.c: Likewise.
22572 * util/raid.c: Likewise.
22573
7f02114b 225742009-01-06 Vesa Jääskeläinen <chaac@nic.fi>
22575
22576 * commands/videotest.c: Removed include to grub/machine/memory.h.
22577
22578 * conf/i386-pc.rmk (pkglib_MODULES): Removed video.mod, gfxterm.mod,
22579 videotest.mod, bitmap.mod, tga.mod, jpeg.mod, png.mod.
22580 (video_mod_SOURCES): Removed.
22581 (video_mod_CFLAGS): Likewise.
22582 (video_mod_LDFLAGS): Likewise.
22583 (gfxterm_mod_SOURCES): Likewise.
22584 (gfxterm_mod_CFLAGS): Likewise.
22585 (gfxterm_mod_LDFLAGS): Likewise.
22586 (videotest_mod_SOURCES): Likewise.
22587 (videotest_mod_CFLAGS): Likewise.
22588 (videotest_mod_LDFLAGS): Likewise.
22589 (bitmap_mod_SOURCES): Likewise.
22590 (bitmap_mod_CFLAGS): Likewise.
22591 (bitmap_mod_LDFLAGS): Likewise.
22592 (tga_mod_SOURCES): Likewise.
22593 (tga_mod_CFLAGS): Likewise.
22594 (tga_mod_LDFLAGS): Likewise.
22595 (jpeg_mod_SOURCES): Likewise.
22596 (jpeg_mod_CFLAGS): Likewise.
22597 (jpeg_mod_LDFLAGS): Likewise.
22598 (png_mod_SOURCES): Likewise.
22599 (png_mod_CFLAGS): Likewise.
22600 (png_mod_LDFLAGS): Likewise.
22601
22602 * conf/common.rmk (pkglib_MODULES): Added video.mod, videotest.mod,
22603 bitmap.mod, tga.mod, jpeg.mod, png.mod, font.mod, gfxterm.mod
22604 (video_mod_SOURCES): Added.
22605 (video_mod_CFLAGS): Likewise.
22606 (video_mod_LDFLAGS): Likewise.
22607 (videotest_mod_SOURCES): Likewise.
22608 (videotest_mod_CFLAGS): Likewise.
22609 (videotest_mod_LDFLAGS): Likewise.
22610 (bitmap_mod_SOURCES): Likewise.
22611 (bitmap_mod_CFLAGS): Likewise.
22612 (bitmap_mod_LDFLAGS): Likewise.
22613 (tga_mod_SOURCES): Likewise.
22614 (tga_mod_CFLAGS): Likewise.
22615 (tga_mod_LDFLAGS): Likewise.
22616 (jpeg_mod_SOURCES): Likewise.
22617 (jpeg_mod_CFLAGS): Likewise.
22618 (jpeg_mod_LDFLAGS): Likewise.
22619 (png_mod_SOURCES): Likewise.
22620 (png_mod_CFLAGS): Likewise.
22621 (png_mod_LDFLAGS): Likewise.
22622 (gfxterm_mod_SOURCES): Likewise.
22623 (gfxterm_mod_CFLAGS): Likewise.
7795c55e 22624 (gfxterm_mod_LDFLAGS): Likewise.
7f02114b 22625
22626 * term/gfxterm.c: Removed include to grub/machine/memory.h,
22627 grub/machine/console.h.
22628
644fff97 226292009-01-04 Jerone Young <jerone@gmail.com>
22630
22631 Make on screen instructions clearer
22632
22633 Based on patch created by Jidanni <jidanni@jidanni.org>
22634
22635 * normal/menu.c: print clearer instructions on the screen
22636
1e901a75 226372009-01-02 Colin D Bennett <colin@gibibit.com>
22638
22639 New font engine.
34c44600 22640
1e901a75 22641 Additional changes by Vesa Jääskeläinen <chaac@nic.fi> to adapt to
22642 build system and fixed gfxterm.c to work with different sized fonts.
22643
22644 * configure.ac: Changed UNIFONT_HEX to UNIFONT_BDF.
34c44600 22645
1e901a75 22646 * configure: Re-generated.
34c44600 22647
1e901a75 22648 * DISTLIST: Removed font/manager.c.
22649 Added font/font.c.
22650 Added font/font_cmd.c.
34c44600 22651
1e901a75 22652 * Makefile.in: Changed UNIFONT_HEX to UNIFONT_BDF. Added Font tool
22653 compilation.
34c44600 22654
1e901a75 22655 * include/grub/misc.h (grub_utf8_to_ucs4): Changed prototype. Changed users.
34c44600 22656
22657 * kern/misc.c (grub_utf8_to_ucs4): Changed prototype.
1e901a75 22658
22659 * kern/term.c: Changed users of grub_utf8_to_ucs4.
34c44600 22660
1e901a75 22661 * normal/menu.c: Likewise.
34c44600 22662
1e901a75 22663 * conf/common.rmk (font_mod_SOURCES): Removed font/manager.c.
22664 (font_mod_SOURCES): Added font/font_cmd.c, font/font.c.
34c44600 22665
1e901a75 22666 * include/grub/font.h: Replaced with new file.
34c44600 22667
1e901a75 22668 * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_ALPHA): Changed value.
22669 (GRUB_VIDEO_MODE_TYPE_DOUBLE_BUFFERED): Likewise.
22670 (GRUB_VIDEO_MODE_TYPE_COLOR_MASK): Likewise.
22671 (GRUB_VIDEO_MODE_TYPE_1BIT_BITMAP): Added.
22672 (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED.
34c44600 22673 (grub_video_mode_info): Added bg_red, bg_green, bg_blue, bg_alpha,
1e901a75 22674 fg_red, fg_green, fg_blue, fg_alpha.
22675 (grub_video_adapter): Removed blit_glyph.
34c44600 22676 (grub_video_blit_glyph): Removed.
22677
1e901a75 22678 * font/manager.c: Removed file.
34c44600 22679
22680 * font/font.c: New file.
22681
1e901a75 22682 * font/font_cmd.c: Likewise.
34c44600 22683
1e901a75 22684 * video/video.c (grub_video_blit_glyph): Removed.
34c44600 22685
1e901a75 22686 * video/i386/pc/vbe.c (grub_video_vbe_map_rgb): Added 1-bit support.
22687 (grub_video_vbe_map_rgba): Likewise.
22688 (grub_video_vbe_unmap_color_int): Likewise.
22689 (grub_video_vbe_blit_glyph): Removed.
22690 (grub_video_vbe_adapter): Removed blit_glyph.
34c44600 22691
1e901a75 22692 * video/i386/pc/vbeutil.c (get_data_ptr): Added 1-bit support.
22693 (get_pixel): Likewise.
34c44600 22694 (set_pixel): Likewise.
22695
1e901a75 22696 * commands/videotest.c (grub_cmd_videotest): Added more tests for fonts.
34c44600 22697
1e901a75 22698 * term/gfxterm.c: Adapted to new font engine.
34c44600 22699
1e901a75 22700 * term/i386/pc/vesafb.c: Marked as deprecated. Made it compile.
34c44600 22701
1e901a75 22702 * term/i386/pc/vga.c: Likewise.
34c44600 22703
1e901a75 22704 * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: New file.
34c44600 22705
1e901a75 22706 * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
34c44600 22707
1e901a75 22708 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
34c44600 22709
1e901a75 22710 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
34c44600 22711
1e901a75 22712 * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
34c44600 22713
1e901a75 22714 * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
34c44600 22715
1e901a75 22716 * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
34c44600 22717
1e901a75 22718 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
34c44600 22719
1e901a75 22720 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
22721
22722 * util/grub.d/00_header.in: Changed to use new loadfont command.
34c44600 22723
1e901a75 22724 * util/grub-mkconfig_lib.in: Changed font extension.
22725
278922e8 227262008-12-28 Felix Zielcke <fzielcke@z-51.de>
22727
22728 * util/getroot.c (grub_util_get_grub_dev): Add support for
22729 /dev/md/dNNpNN style partitionable mdraid devices.
22730
3ced05cf 227312008-12-12 Alex Smith <alex@alex-smith.me.uk>
22732
22733 * fs/i386/pc/pxe.c (grub_pxefs_open): Handle the one open connection
22734 at a time limit of the PXE TFTP API correctly.
22735 (grub_pxefs_close): Likewise.
22736
7fd0ee30 227372008-11-29 Robert Millan <rmh@aybabtu.com>
22738
34c44600 22739 * disk/ata.c (grub_ata_pciinit): Handle errors raised by
7fd0ee30 22740 grub_ata_device_initialize() calls.
22741
34c44600 227422008-11-28 Krzysztof Smiechowicz <deadwood@wp.pl>
0c5e79ab 22743
22744 * fs/affs.c (grub_affs_iterate_dir): Return failure when directory
22745 iteration failed.
22746 * fs/sfs.c (grub_sfs_iterate_dir): Likewise.
22747
89313780 227482008-11-28 Robert Millan <rmh@aybabtu.com>
22749
22750 Fix build on powerpc-ieee1275. Based on patch created by
22751 Manoel Abranches <mrabran@linux.vnet.ibm.com>.
22752 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
22753 `kern/ieee1275/mmap.c'.
22754 * include/grub/powerpc/ieee1275/memory.h: New file.
22755
15257703 22756 Provide grub-install on coreboot.
22757 * conf/i386-coreboot.rmk (sbin_SCRIPTS): Add `grub-install'.
22758 (grub_install_SOURCES): New variable.
22759 * util/i386/pc/grub-install.in: Add a few condition checks to make it
22760 usable on coreboot.
22761
9fc5388a 227622008-11-25 Felix Zielcke <fzielcke@z-51.de>
22763
22764 * util/grub-fstest.c (grub_term_get_current_input): Change return type
22765 to `grub_term_input_t'.
22766 (grub_term_get_current_output): Change return type to
22767 `grub_term_output_t'.
22768
bc3a2f31 227692008-11-22 Robert Millan <rmh@aybabtu.com>
22770
34c44600 22771 Fix breakage on coreboot due to declaration mismatch.
bc3a2f31 22772 * term/i386/pc/vga_text.c (grub_vga_text_init_fini): New function.
22773 (grub_vga_text_term): Use grub_vga_text_init_fini() instead of
22774 grub_vga_text_cls().
22775
80fc88f2 22776 * kern/i386/loader.S (grub_multiboot_backward_relocator): Improve
34c44600 22777 comments. Avoid copying one more byte than necessary (just in case).
80fc88f2 22778
cbf36fd3 22779 * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Change link address
22780 to 0x200000 (avoids trouble with some OFW implementations, and matches
22781 with the one in Yaboot).
22782 Reported by Manoel Abranches
22783
73e8e268 227842008-11-20 Robert Millan <rmh@aybabtu.com>
3cf6ac19 22785
22786 * kern/i386/coreboot/init.c (grub_time_tics): Remove variable.
22787 (grub_get_rtc, grub_exit): Abort with grub_fatal() if called.
22788
73e8e268 22789 * util/grub-mkconfig_lib.in (grub_warn): New function.
22790 (convert_system_path_to_grub_path): Use grub_warn() when issuing
22791 warnings, to obtain consistent formatting.
22792 * util/grub.d/00_header.in: Likewise.
22793 * util/update-grub_lib.in: Likewise.
22794
e94045a1 22795 * loader/i386/linux.c (allocate_pages): Fix a warning.
40f9faa4 22796 Move comment text to `#error' stanza.
e94045a1 22797
79d29fd7 22798 Harmonize ieee1275's grub_available_iterate() with the generic
22799 grub_machine_mmap_iterate() interface (fixes a recently-introduced
22800 build problem on i386-ieee1275):
22801 * kern/ieee1275/openfw.c (grub_available_iterate): Moved from here ...
22802 * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): ... here. Add third
22803 parameter `type'. Update all users of this function.
22804 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
22805 `kern/ieee1275/mmap.c'.
22806 * kern/ieee1275/init.c
22807 * include/grub/ieee1275/ieee1275.h (grub_available_iterate): Replace
22808 with ...
22809 (grub_machine_mmap_iterate): ... this.
22810 * include/grub/i386/pc/memory.h (grub_machine_mmap_iterate): Change
22811 return type to `grub_err_t'. Update all implementations of this
22812 function prototype.
22813 * include/grub/i386/coreboot/memory.h (grub_machine_mmap_iterate):
22814 Likewise.
22815
60d6b16e 22816 Add `lsmmap' command (lists firmware-provided memory map):
22817 * commands/lsmmap.c: New file.
22818 * conf/i386-pc.rmk (pkglib_MODULES): Add `lsmmap.mod'.
22819 (lsmmap_mod_SOURCES, lsmmap_mod_CFLAGS, lsmmap_mod_LDFLAGS): New
22820 variables.
22821 * conf/powerpc-ieee1275.rmk: Likewise.
22822 * conf/i386-coreboot.rmk: Likewise.
22823 * conf/i386-ieee1275.rmk: Likewise.
22824
ebaaf49b 228252008-11-19 Robert Millan <rmh@aybabtu.com>
22826
22827 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Fix a typo.
92907110 22828 * loader/i386/linux.c (grub_rescue_cmd_initrd): Implement a few needed
22829 constraints to initrd allocation (based on code from
22830 loader/i386/pc/linux.c). Without them, initrd was allocated too high
22831 for Linux to find it.
ebaaf49b 22832
dfab719f 228332008-11-14 Robert Millan <rmh@aybabtu.com>
22834
22835 * fs/cpio.c (grub_cpio_open): Compare `name' and `fn' by hand in
22836 order to cope with duplicate slashes.
22837
10fc3eb9 228382008-11-14 Robert Millan <rmh@aybabtu.com>
22839
22840 * include/grub/i386/coreboot/memory.h (GRUB_MEMORY_MACHINE_LOWER_SIZE):
22841 Redefine to match with GRUB_MEMORY_MACHINE_UPPER_START (0x100000). We
22842 don't want to mess with lower memory, because it is used in the Linux
22843 loader.
22844
22845 * loader/i386/linux.c (allocate_pages): Allocate `real_mode_mem' in
34c44600 22846 an appropriate place in lower memory, between 0x10000 and 0x90000,
10fc3eb9 22847 like loader/i386/efi/linux.c does. Linux often panics if real_mode_mem
22848 is in our heap (probably as a result of it being corrupted during
2f2a3442 22849 decompression). Add #error instance with comment to explain why this
22850 loader isn't currently usable on PC/BIOS.
10fc3eb9 22851
e2e07847 228522008-11-14 Robert Millan <rmh@aybabtu.com>
22853
22854 * term/i386/pc/serial.c [! GRUB_MACHINE_PCBIOS]
34c44600 22855 (GRUB_SERIAL_PORT_NUM): Fix miscalculation.
e2e07847 22856
fe8e8d69 228572008-11-12 Robert Millan <rmh@aybabtu.com>
22858
22859 Make loader/i386/linux.c buildable on i386-pc (although disabled).
22860
22861 * include/grub/i386/pc/init.h: Include `<grub/machine/memory.h>'.
22862 (struct grub_machine_mmap_entry, grub_machine_mmap_iterate): Move
22863 from here ...
22864 * include/grub/i386/pc/memory.h: ... to here.
22865
976b07d0 228662008-11-12 Robert Millan <rmh@aybabtu.com>
22867
22868 Fix build problems on i386-ieee1275 and *-efi (introduced by vga_text
22869 split).
22870
22871 * include/grub/i386/pc/console.h: Include `<grub/i386/vga_common.h>'.
22872 (grub_console_cur_color, grub_console_real_putchar)
22873 (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
22874 (grub_console_setcolorstate, grub_console_setcolor)
22875 (grub_console_getcolor): Move from here ...
22876 * include/grub/i386/vga_common.h: ... to here (new file).
22877
22878 * term/i386/pc/vga_text.c: Replace `<grub/machine/console.h>' with
22879 `<grub/i386/vga_common.h>' and `<grub/cpu/io.h>' with
22880 `<grub/i386/io.h>'.
22881 * term/i386/vga_common.c: Replace `<grub/machine/console.h>' with
22882 `<grub/i386/vga_common.h>'.
22883
76679cd3 228842008-11-12 Robert Millan <rmh@aybabtu.com>
22885
22886 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `term/i386/vga_common.c'.
22887 * conf/i386.rmk (pkglib_MODULES): Add `vga_text.mod'.
22888 (vga_text_mod_SOURCES, vga_text_mod_CFLAGS, vga_text_mod_LDFLAGS): New
22889 variables.
22890 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
22891 `term/i386/pc/console.c' with `term/i386/vga_common.c'.
22892
22893 * kern/i386/coreboot/init.c (grub_machine_init): Replace call to
22894 grub_console_init() with call to grub_vga_text_init().
22895 (grub_machine_fini): Replace call to
22896 grub_console_fini() with call to grub_vga_text_fini() and
22897 grub_at_keyboard_fini().
22898
22899 * include/grub/i386/pc/console.h: Include `<grub/term.h>'.
22900 (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
22901 (grub_console_setcolorstate, grub_console_setcolor)
22902 (grub_console_getcolor): New function prototypes.
22903
22904 * term/i386/pc/vga_text.c: Include `<grub/dl.h>'.
22905 (grub_vga_text_getxy, grub_vga_text_gotoxy, grub_vga_text_cls)
22906 (grub_vga_text_setcursor): Static-ize.
22907 (grub_vga_text_term): New structure.
22908 (GRUB_MOD_INIT(vga_text), GRUB_MOD_FINI(vga_text)): New functions.
22909
22910 * term/i386/pc/console.c: Remove `<grub/machine/machine.h>'.
22911 (grub_console_cur_color, grub_console_standard_color)
22912 (grub_console_normal_color, grub_console_highlight_color)
22913 (map_char, grub_console_putchar, grub_console_getcharwidth)
22914 (grub_console_getwh, grub_console_setcolorstate, grub_console_setcolor)
22915 (grub_console_getcolor): Move from here ...
22916 * term/i386/vga_common.c: ... to here (same function names).
22917
95b841d3 229182008-11-12 Robert Millan <rmh@aybabtu.com>
22919
22920 Use newly-added Multiboot support in coreboot.
22921
22922 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
22923 `kern/i386/coreboot/mmap.c' with `kern/i386/multiboot_mmap.c'.
22924
22925 * kern/i386/coreboot/startup.S: Enable Multiboot header, fix its
22926 alignment, set `MULTIBOOT_MEMORY_INFO' flag.
22927 (codestart): Store the MBI in `startup_multiboot_info' when we're
22928 being loaded using Multiboot.
22929
22930 * kern/i386/coreboot/init.c (grub_machine_init): Move
22931 grub_at_keyboard_init() call to beginning of function (useful for
22932 debugging). Call grub_machine_mmap_init() before attempting to use
22933 grub_machine_mmap_iterate().
22934 (grub_lower_mem, grub_upper_mem): Move from here ...
22935 * kern/i386/multiboot_mmap.c (grub_lower_mem, grub_upper_mem): ... to
22936 here (new file).
22937
22938 * include/grub/i386/coreboot/memory.h (grub_machine_mmap_init): New
22939 function prototype.
22940
761ca975 229412008-11-12 Robert Millan <rmh@aybabtu.com>
22942
22943 Fix a regression introduced by the at_keyboard.mod split. Because
22944 some terminals are default on some platforms and non-default on
22945 others, the first terminal being registered determines which is
22946 going to be default.
22947
22948 * kern/term.c (grub_term_register_input): If this is the first
22949 terminal being registered, set it as the current one.
22950 (grub_term_register_output): Likewise.
22951
22952 * term/efi/console.c (grub_console_init): Do not call
22953 grub_term_set_current_output() or grub_term_set_current_input().
22954 * term/ieee1275/ofconsole.c (grub_console_init): Likewise.
22955 * term/i386/pc/console.c (grub_console_init): Likewise.
22956 (grub_console_fini): Do not call grub_term_set_current_input()
22957 (but leave grub_term_set_current_output() to restore text mode).
22958
6c529df7 229592008-11-10 Robert Millan <rmh@aybabtu.com>
22960
22961 * util/grub.d/00_header.in: Add backward compatibility check for
22962 versions of terminal.mod that don't understand `terminal_input' or
22963 `terminal_output'.
22964
132e4113 229652008-11-09 Robert Millan <rmh@aybabtu.com>
22966
22967 * commands/terminal.c (GRUB_MOD_FINI(terminal)): Unregister
22968 `terminal_input' / `terminal_output', not `terminal'.
22969
ac293d50 229702008-11-08 Robert Millan <rmh@aybabtu.com>
22971
22972 * Makefile.in (include_DATA): Fix srcdir=. assumption.
2a9c5940 22973 (DISTCLEANFILES): Add `build_env.mk'.
ac293d50 22974
0025933a 229752008-11-08 Robert Millan <rmh@aybabtu.com>
22976
22977 * term/i386/pc/vesafb.c (grub_vesafb_term): Change type to
dba3f844 22978 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
0025933a 22979 members. Update all users.
22980 * util/console.c (grub_ncurses_term): Split in ...
22981 (grub_ncurses_term_input): ... this, and ...
22982 (grub_ncurses_term_output): ... this. Update all users.
dcb6fa0a 22983 * term/ieee1275/ofconsole.c: Remove stale `#endif'.
0025933a 22984
37c86336 229852008-11-08 Robert Millan <rmh@aybabtu.com>
22986
22987 * Makefile.in (PKGLIB): Add $(pkglib_BUILDDIR).
22988 (PKGDATA): Add $(pkgdata_SRCDIR).
22989 (pkglib_BUILDDIR): New variable.
22990 (pkgdata_SRCDIR): New variable.
22991 (build_env.mk): New target.
22992 (include_DATA): New variable.
22993 (install-local): Install $(include_DATA) files in $(includedir).
22994
b6c15a2d 229952008-11-07 Pavel Roskin <proski@gnu.org>
22996
d99d46f1 22997 * gendistlist.sh: Use C locale for sorting to ensure consistent
22998 output on all systems.
22999
b6c15a2d 23000 * util/grub.d/00_header.in: Remove incorrect space before
23001 "serial".
23002
c32ee8c9 230032008-11-07 Robert Millan <rmh@aybabtu.com>
23004
23005 * include/multiboot2.h (struct multiboot_header): Add `flags' member as
23006 per specification.
23007 * loader/multiboot2.c (grub_multiboot2): Fix Multiboot2 header check.
23008 * loader/multiboot_loader.c (find_multi_boot2_header): New function
23009 (based on find_multi_boot1_header).
23010 (grub_rescue_cmd_multiboot_loader): Check for Multiboot2 header,
23011 using find_multi_boot2_header(), and abort if neither Multiboot or
23012 Multiboot headers were found.
23013
651c29b7 230142008-11-07 Robert Millan <rmh@aybabtu.com>
23015
23016 Modularize at_keyboard.mod:
23017
23018 * conf/i386.rmk (pkglib_MODULES): Add `at_keyboard.mod'.
23019 (at_keyboard_mod_SOURCES, at_keyboard_mod_CFLAGS)
23020 (at_keyboard_mod_LDFLAGS): New variables.
23021
23022 Actual terminal split:
23023
23024 * include/grub/term.h (struct grub_term): Split in ...
23025 (struct grub_term_input): ... this, and ...
23026 (struct grub_term_output): ... this. Update all users.
23027 (grub_term_set_current): Split in ...
23028 (grub_term_set_current_input): ... this, and ...
23029 (grub_term_set_current_output): ... this.
23030 (grub_term_get_current): Split in ...
23031 (grub_term_get_current_input): ... this, and ...
23032 (grub_term_get_current_output): ... this.
23033 (grub_term_register): Split in ...
23034 (grub_term_register_input): ... this, and ...
23035 (grub_term_register_output): ... this.
23036 (grub_term_unregister): Split in ...
23037 (grub_term_unregister_input): ... this, and ...
23038 (grub_term_unregister_output): ... this.
23039 (grub_term_iterate): Split in ...
23040 (grub_term_iterate_input): ... this, and ...
23041 (grub_term_iterate_output): ... this.
23042
23043 * kern/term.c (grub_term_list): Split in ...
23044 (grub_term_list_input): ... this, and ...
23045 (grub_term_list_output): ... this. Update all users.
23046 (grub_cur_term): Split in ...
23047 (grub_cur_term_input): ... this, and ...
23048 (grub_cur_term_output): ... this. Update all users.
23049 (grub_term_set_current): Split in ...
23050 (grub_term_set_current_input): ... this, and ...
23051 (grub_term_set_current_output): ... this.
23052 (grub_term_get_current): Split in ...
23053 (grub_term_get_current_input): ... this, and ...
23054 (grub_term_get_current_output): ... this.
23055 (grub_term_register): Split in ...
23056 (grub_term_register_input): ... this, and ...
23057 (grub_term_register_output): ... this.
23058 (grub_term_unregister): Split in ...
23059 (grub_term_unregister_input): ... this, and ...
23060 (grub_term_unregister_output): ... this.
23061 (grub_term_iterate): Split in ...
23062 (grub_term_iterate_input): ... this, and ...
23063 (grub_term_iterate_output): ... this.
23064
23065 * kern/misc.c (grub_abort): Split use of grub_term_get_current() into
23066 a check for input and one for output (and only attempt to get keys
23067 from user when input works).
23068
23069 * util/grub-probe.c (grub_term_get_current): Split in ...
23070 (grub_term_get_current_input): ... this, and ...
23071 (grub_term_get_current_output): ... this.
23072 * util/grub-fstest.c: Likewise.
23073 * util/i386/pc/grub-setup.c: Likewise.
23074 * util/grub-editenv.c: Likewise.
23075
23076 Portability adjustments:
23077
23078 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Remove
23079 `term/i386/pc/at_keyboard.c'.
23080 * kern/ieee1275/init.c [__i386__] (grub_machine_init): Remove call to
23081 grub_keyboard_controller_init() (now handled by terminal .init).
23082 * kern/i386/coreboot/init.c (grub_machine_init): Add call to
23083 grub_at_keyboard_init().
23084 * include/grub/i386/ieee1275/console.h (grub_keyboard_controller_init)
23085 (grub_console_checkkey, grub_console_getkey): Remove (now provided by
23086 at_keyboard.mod via input terminal interface).
23087 * include/grub/i386/coreboot/console.h: Convert into a stub for
23088 `<grub/i386/pc/console.h>'.
23089
23090 Migrate full terminals to new API:
23091
23092 * term/efi/console.c (grub_console_term): Split into ...
23093 (grub_console_term_input): ... this, and ...
23094 (grub_console_term_output): ... this. Update all users.
23095 * term/ieee1275/ofconsole.c: Remove __i386__ hack.
23096 (grub_ofconsole_init): Split into ...
23097 (grub_ofconsole_init_input): ... this, and ...
23098 (grub_ofconsole_init_output): ... this.
23099 (grub_ofconsole_term): Split into ...
23100 (grub_ofconsole_term_input): ... this, and ...
23101 (grub_ofconsole_term_output): ... this. Update all users.
23102 * term/i386/pc/serial.c (grub_serial_term): Split into ...
23103 (grub_serial_term_input): ... this, and ...
23104 (grub_serial_term_output): ... this. Update all users.
23105 * term/i386/pc/console.c (grub_console_term): Split into ...
23106 (grub_console_term_input): ... this, and ...
23107 (grub_console_term_output): ... this. Update all users.
23108 (grub_console_term_input): Only enable it on PC/BIOS platform.
23109 (grub_console_init): Remove grub_keyboard_controller_init() call.
23110
23111 Migrate input terminals to new API:
23112
23113 * term/i386/pc/at_keyboard.c: Replace `cpu' and `machine' with
23114 `i386' and `i386/pc' to enable build on x86_64 (this driver is
23115 i386-specific anyway).
23116 (grub_console_checkkey): Rename to ...
23117 (grub_at_keyboard_checkkey): ... this. Static-ize. Update all
23118 users.
23119 (grub_keyboard_controller_orig): New variable.
23120 (grub_console_getkey): Rename to ...
23121 (grub_at_keyboard_getkey): ... this. Static-ize. Update all
23122 users.
23123 (grub_keyboard_controller_init): Static-ize. Save original
23124 controller value so that it can be restored ...
23125 (grub_keyboard_controller_fini): ... here (new function).
23126 (grub_at_keyboard_term): New structure.
23127 (GRUB_MOD_INIT(at_keyboard), GRUB_MOD_FINI(at_keyboard)): New
23128 functions.
23129
23130 Migrate output terminals to new API:
23131
23132 * term/i386/pc/vga.c (grub_vga_term): Change type to
23133 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
23134 members. Update all users.
23135 * term/gfxterm.c (grub_video_term): Change type to
23136 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
23137 members. Update all users.
23138 * include/grub/i386/pc/console.h (grub_console_checkkey)
23139 (grub_console_getkey): Do not export (no longer needed by gfxterm,
23140 etc).
23141
23142 Migrate `terminal' command and userland tools to new API:
23143
23144 * commands/terminal.c (grub_cmd_terminal): Split into ...
23145 (grub_cmd_terminal_input): ... this, and ...
23146 (grub_cmd_terminal_output): ... this.
23147 (GRUB_MOD_INIT(terminal)): Split `terminal' command in two commands:
23148 `terminal_input' and `terminal_output'.
23149 * util/grub.d/00_header.in: Adjust `terminal' calls to new
23150 `terminal_input' / `terminal_output' API.
23151 * util/grub-mkconfig.in: Export ${GRUB_TERMINAL_INPUT} and
23152 ${GRUB_TERMINAL_OUTPUT} instead of ${GRUB_TERMINAL} (and if user
23153 provided ${GRUB_TERMINAL}, convert it).
23154
96e5d876 231552008-11-04 Robert Millan <rmh@aybabtu.com>
23156
23157 * util/grub.d/10_freebsd.in: New file. Generate grub configuration
23158 for FreeBSD.
23159 * conf/common.rmk (grub-mkconfig_SCRIPTS): Add 10_freebsd.
23160
556f3775 231612008-11-03 Bean <bean123ch@gmail.com>
23162
23163 * kern/elf.c (grub_elf32_load): Revert to previous code.
23164 (grub_elf64_load): Likewise.
23165
23166 * loader/i386/bsd.c (grub_bsd_elf32_hook): Change return address.
23167
926b9823 231682008-11-01 Robert Millan <rmh@aybabtu.com>
23169
23170 * Makefile.in (CPPFLAGS): Fix builddir=. assumption.
23171 (TARGET_CPPFLAGS): Likewise.
23172 * genmk.rb (mod_src): Fix builddir=. and srcdir=. assumptions.
23173
1432e958 231742008-11-01 Carles Pina i Estany <carles@pina.cat>
23175
23176 * normal/menu.c (run_menu): Add Previous and Next Page keys in menu.
23177
dba3f844 231782008-10-29 Guillem Jover <guillem.jover@nokia.com>
de4fa71c 23179
23180 * disk/lvm.c (grub_lvm_scan_device): Fix error recovery by delaying the
23181 addition of objects until the code is not going to be able to fail.
23182
dba3f844 231832008-10-29 Guillem Jover <guillem.jover@nokia.com>
b7279447 23184
23185 * disk/lvm.c (grub_lvm_scan_device): Fix possible NULL value handling
23186 (add a missing NULL check, and correct them by moving the pointer
23187 operations after the actual check).
23188
7ab28c21 231892008-10-29 Robert Millan <rmh@aybabtu.com>
23190
23191 * util/i386/pc/grub-install.in: Handle empty string as output from
23192 make_system_path_relative_to_its_root().
23193
1b7748eb 231942008-10-05 Hans Lambermont <hans@lambermont.dyndns.org>
23195
23196 * disk/lvm.c (grub_lvm_scan_device): Allocate buffer space for the
23197 circular metadata worst case scenario. If the metadata is circular
23198 then copy the wrap in place.
23199 * include/grub/lvm.h: Add GRUB_LVM_MDA_HEADER_SIZE, from the LVM2
23200 project lib/format_text/layout.h
23201 Circular metadata bug found and patch debugged by Jan Derk Gerlings.
23202
c9618ab2 232032008-10-03 Felix Zielcke <fzielcke@z-51.de>
23204
7a36edca 23205 * util/i386/pc/grub-install.in: Source grub-mkconfig_lib instead of update-grub_lib.
c9618ab2 23206
bf981c62 232072008-10-03 Felix Zielcke <fzielcke@z-51.de>
23208
23209 * util/update-grub_lib.in: Mention filename in warning message.
23210
6d994591 232112008-09-29 Felix Zielcke <fzielcke@z-51.de>
23212
23213 * NEWS: Update for rename of update-grub to grub-mkconfig.
23214
18ade780 232152008-09-29 Felix Zielcke <fzielcke@z-51.de>
23216
23217 * util/update-grub_lib.in: Copy to ...
23218 * util/grub-mkconfig_lib.in: ... this. Update all users.
7c3ff286 23219 * util/update-grub_lib.in: Make it a stub to `grub-mkconfig_lib.in'.
18ade780 23220 * util/update-grub.in: Rename to ...
23221 * util/grub-mkconfig.in: ... this. Update all users. Remove `-y'
23222 option. Add `--output' option to allow users to specify the generated
23223 configuration file. Default to stdout.
23224 (update_grub_dir): Rename to ...
23225 (grub_mkconfig_dir): ... this.
23226 (grub_cfg): Default to an empty string.
23227 * conf/common.rmk (update-grub): Rename to ...
23228 (grub-mkconfig): ... this.
23229 (update-grub_lib): Copy to ...
23230 (grub-mkconfig_lib): ... this.
23231 (update-grub_SCRIPTS): Copy to ...
23232 (grub-mkconfig_SCRIPTS): ... this. Update all users.
23233 (update-grub_DATA): Rename to ...
23234 (grub-mkconfig_DATA): ... this.
23235
556ce6ac 232362008-09-28 Robert Millan <rmh@aybabtu.com>
23237
23238 * fs/iso9660.c (struct grub_iso9660_primary_voldesc): Rename `created'
23239 to `modified'. Add the real `created' field.
23240 (grub_iso9660_uuid): Use `modified' rather than `created' for
23241 constructing the UUID.
23242
232432008-09-28 Felix Zielcke <fzielcke@z-51.de>
eb079ba9 23244
23245 fs/jfs.c (grub_jfs_find_file): Treat multiple slashes like one.
23246 Based on code from Tomas Ebenlendr <ebik@ucw.cz>.
23247
92274e85 232482008-09-28 Bean <bean123ch@gmail.com>
23249
23250 * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a bug in the previous patch.
23251 Thanks to Christian Franke for finding this bug.
23252
add6f17a 232532008-09-25 Robert Millan <rmh@aybabtu.com>
23254
23255 * util/grub-mkdevicemap.c (make_device_map): Actually replace all
23256 instances of grub_util_get_disk_name() (see previous commit).
23257
d2a367b8 232582008-09-25 Robert Millan <rmh@aybabtu.com>
23259
23260 * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Remove
23261 `util/i386/get_disk_name.c'.
23262 * conf/i386-efi.rmk: Likewise.
23263 * conf/x86_64-efi.rmk: Likewise.
23264 * conf/i386-coreboot.rmk: Likewise.
23265 * conf/i386-ieee1275.rmk: Likewise.
23266 * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Remove
23267 `util/ieee1275/get_disk_name.c'.
23268 * include/grub/util/misc.h (grub_util_get_disk_name): Remove.
23269 * util/ieee1275/get_disk_name.c: Remove file.
23270 * util/i386/get_disk_name.c: Remove file.
23271 * util/grub-mkdevicemap.c (make_device_map): Back to hardcoding
23272 "hd%d" for device.map entries, rather than using
23273 grub_util_get_disk_name().
23274
81a06771 232752008-09-24 Carles Pina i Estany <carles@pina.cat>
b0c301f7 23276
23277 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Fix `unused parameter'
23278 warning.
23279 * commands/i386/pc/pxecmd.c (dmraid_nvidia): Likewise.
23280
5a004279 232812008-09-24 Carles Pina i Estany <carles@pina.cat>
23282
23283 * include/grub/i386/pc/console.h (GRUB_TERM_NPAGE):
23284 Changed to 0x5100.
23285 (GRUB_TERM_PPAGE): Changed to 0x4900.
23286
397093d3 232872008-09-24 Robert Millan <rmh@aybabtu.com>
23288
23289 * include/grub/powerpc/ieee1275/console.h (GRUB_CONSOLE_KEY_*): Remove
23290 macros (they were i386-pc specific).
23291 * include/grub/sparc64/ieee1275/console.h: Likewise.
23292 * include/grub/efi/console.h: Likewise.
23293
a91b6c7c 232942008-09-22 Bean <bean123ch@gmail.com>
23295
23296 * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a rare case where $BITMAP is
23297 resident and in attribute list.
23298
23299 * include/grub/ntfs.h (BMP_LEN): Removed.
23300
c40fd116 233012008-09-22 Bean <bean123ch@gmail.com>
23302
81a06771 23303 * disk/ata.c (grub_atapi_open): Initialize devfnd, no need to set
c40fd116 23304 scsi->name and scsi->luns, as they will be set in grub_scsi_open.
23305
23306 * disk/scsi.c (grub_scsi_open): Don't call p->close (scsi) here when
23307 error occurs, as grub_disk_open will call grub_disk_close, which will
23308 call p->close (scsi).
23309
81a06771 233102008-09-21 Felix Zielcke <fzielcke@z-51.de>
eb73121d 23311
23312 * configure.ac (AC_INIT): Quote `GRUB' string and version number.
23313 (AC_PREREQ): Bumped to 2.59.
23314 (AC_TRY_COMPILE): Replace obsolete macro with ...
23315 (AC_COMPILE_IFELSE): ... this.
23316 * aclocal.m4 (AC_TRY_LINK): Replace obsolete macro with ...
23317 (AC_LINK_IFELSE): ... this.
23318
5dc43410 233192008-09-21 Felix Zielcke <fzielcke@z-51.de>
23320
23321 * autogen.sh: Add a call to `gendistlist.sh'.
23322
9035dce4 233232008-09-19 Christian Franke <franke@computer.org>
23324
23325 * aclocal.m4 (grub_CHECK_ENABLE_EXECUTE_STACK): New function.
23326 * configure.ac: Call grub_CHECK_ENABLE_EXECUTE_STACK.
23327 * include/grub/misc.h [NEED_ENABLE_EXECUTE_STACK]:
23328 Export __enable_execute_stack() to modules.
23329 * kern/misc.c [NEED_ENABLE_EXECUTE_STACK] (__enable_execute_stack):
23330 New function.
23331
7fd75377 233322008-09-09 Felix Zielcke <fzielcke@z-51.de>
23333
040030b3 23334 * Makefile.in (RMKFILES): Add `i386.rmk' and `x86_64-efi.rmk'.
23335 Sort the list.
23336
233372008-09-09 Felix Zielcke <fzielcke@z-51.de>
23338
23339 * util/hostdisk.c: Replace #include <grub/util/biosdisk.h> with
7fd75377 23340 #include <grub/util/hostdisk.h>.
23341
89d5ffcf 233422008-09-08 Robert Millan <rmh@aybabtu.com>
23343
23344 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Skip
23345 segments when their filesz is zero (grub_file_read() interprets
81a06771 23346 zero-size as "read until EOF", which results in memory corruption).
89d5ffcf 23347 Use `lowest_segment' rather than 0 for calculating the current
23348 segment load address.
23349
40da438f 233502008-09-08 Robert Millan <rmh@aybabtu.com>
23351
23352 * util/hostdisk.c (open_device): Replace a grub_util_info() call
23353 with grub_dprintf("hostdisk", ...), as it was so verbose that it
23354 clobbered useful information.
23355
ddbf5556 233562008-09-08 Robert Millan <rmh@aybabtu.com>
23357
23358 * include/grub/util/biosdisk.h: Move to ...
23359 * include/grub/util/hostdisk.h: ... here. Update all users.
23360 * util/biosdisk.c: Move to ...
23361 * util/hostdisk.c: ... here. Update all users.
23362
783d0f48 233632008-09-07 Robert Millan <rmh@aybabtu.com>
23364
23365 * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): Remove
23366 variables.
23367 (grub_multiboot): Move `mbi' allocation upwards, so that mmap address
23368 and length can be stored directly in the `mbi->mmap_addr' and
23369 `mbi->mmap_length' struct fields.
23370
548e2ea5 233712008-09-07 Robert Millan <rmh@aybabtu.com>
23372
23373 * conf/i386.rmk: New file. Provides declaration for building
23374 `cpuid.mod'.
23375 * conf/i386-pc.rmk (pkglib_MODULES): Remove `cpuid.mod'.
23376 (cpuid_mod_SOURCES, cpuid_mod_CFLAGS, cpuid_mod_LDFLAGS): Remove
23377 variables.
23378 Include `conf/i386.mk'.
23379 * conf/i386-efi.rmk: Likewise.
23380 * conf/x86_64-efi.rmk: Likewise.
23381 * conf/i386-coreboot.rmk: Likewise.
23382 * conf/i386-ieee1275.rmk: Likewise.
23383
0ea85a37 233842008-09-07 Vesa Jääskeläinen <chaac@nic.fi>
23385
23386 Based on patch created by Colin D Bennett <colin@gibibit.com>.
23387 Adds optimization support for BGR based modes.
23388
23389 * include/grub/i386/pc/vbeblit.h (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8) Removed.
23390 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
23391 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
23392 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
23393 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
23394 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
23395 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
23396 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
23397 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
23398 (grub_video_i386_vbeblit_index_index): Likewise.
23399 (grub_video_i386_vbeblit_replace_directN): Added.
23400 (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
23401 (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
23402 (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
23403 (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
23404 (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
23405 (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
81a06771 23406 (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
0ea85a37 23407 (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
23408 (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
23409 (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
23410 (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
23411 (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
23412 (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
23413
23414 * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8) Removed.
23415 (grub_video_i386_vbefill_R8G8B8): Likewise.
23416 (grub_video_i386_vbefill_index): Likewise.
23417 (grub_video_i386_vbefill_direct32): Added.
23418 (grub_video_i386_vbefill_direct24): Likewise.
23419 (grub_video_i386_vbefill_direct16): Likewise.
23420 (grub_video_i386_vbefill_direct8): Likewise.
23421
81a06771 23422 * include/grub/video.h (grub_video_blit_format): Removed
0ea85a37 23423 GRUB_VIDEO_BLIT_FORMAT_R8G8B8A8, GRUB_VIDEO_BLIT_FORMAT_R8G8B8.
23424 (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_RGBA_8888,
23425 GRUB_VIDEO_BLIT_FORMAT_BGRA_8888, GRUB_VIDEO_BLIT_FORMAT_RGB_888,
23426 GRUB_VIDEO_BLIT_FORMAT_BGR_888, GRUB_VIDEO_BLIT_FORMAT_RGB_565,
23427 GRUB_VIDEO_BLIT_FORMAT_BGR_565.
81a06771 23428
0ea85a37 23429 * video/video.c (grub_video_get_blit_format): Updated to use new
23430 blit formats. Added handling for 16 bit color modes.
81a06771 23431
23432 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Updated to use new
0ea85a37 23433 fillers.
23434 (common_blitter): Updated to use new blitters.
23435
23436 * video/i386/pc/vbeblit.c (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8):
23437 Removed.
23438 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
23439 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
23440 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
23441 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
23442 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
23443 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
23444 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
23445 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
23446 (grub_video_i386_vbeblit_index_index): Likewise.
23447 (grub_video_i386_vbeblit_replace_directN): Added.
23448 (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
23449 (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
23450 (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
23451 (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
23452 (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
23453 (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
23454 (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
23455 (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
23456 (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
23457 (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
23458 (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
23459 (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
23460 (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
81a06771 23461
0ea85a37 23462 * video/i386/pc/vbefill.c (grub_video_i386_vbefill_R8G8B8A8): Removed.
23463 (grub_video_i386_vbefill_R8G8B8): Likewise.
23464 (grub_video_i386_vbefill_index): Likewise.
23465 (grub_video_i386_vbefill_direct32): Added.
23466 (grub_video_i386_vbefill_direct24): Likewise.
23467 (grub_video_i386_vbefill_direct16): Likewise.
23468 (grub_video_i386_vbefill_direct8): Likewise.
81a06771 23469
0ea85a37 23470 * video/readers/jpeg.c (grub_jpeg_decode_sos): Adapt to new blitter
23471 types.
81a06771 23472
0ea85a37 23473 * video/readers/tga.c (grub_video_reader_tga): Adapt to new blitter
23474 types.
81a06771 23475
0ea85a37 23476 * video/readers/png.c (grub_png_decode_image_header): Adapt to new
23477 blitter types.
81a06771 23478
0ea85a37 23479 * video/bitmap.c (grub_video_bitmap_create): Adapt to new blitter
23480 types.
23481
e8a83df6 234822008-09-06 Felix Zielcke <fzielcke@z-51.de>
23483
23484 * disk/raid.c (insert_array): Set `array->chunk_size' to 64 for
23485 RAID level 1.
23486
6bcd8ee5 234872008-09-06 Felix Zielcke <fzielcke@z-51.de>
c375ae58 23488
6bcd8ee5 23489 * fs/iso9660.c (grub_iso9660_date): New structure.
23490 (grub_iso9660_primary_voldesc): Add `grub_iso9660_date' member.
23491 (grub_iso9660_uuid): New function.
c375ae58 23492
59261157 234932008-09-05 Bean <bean123ch@gmail.com>
23494
23495 * fs/fshelp.c (grub_fshelp_find_file): Handle case insensitive names.
23496
23497 * fs/ntfs.c (list_file): Ignore names in DOS namespace, set the case
23498 insensitive bit for names in Win32 and Win32 & DOS namespace.
23499
23500 * include/grub/fshelp.h (GRUB_FSHELP_CASE_INSENSITIVE): New macro.
23501
23502 * include/grub/types.h (LONG_MAX): Likewise.
23503
58b6645a 235042008-09-04 Felix Zielcke <fzielcke@z-51.de>
23505
4ee55921 23506 * util/getroot.c: Include <config.h>.
23507 (grub_util_get_grub_dev): Rewrite to use asprintf for mdraid devices,
23508 add support for /dev/md/N devices and handle LVM double dash escaping.
23509
235102008-09-04 Felix Zielcke <fzielcke@z-51.de>
23511
23512 * config.guess: Update to latest version from config git.
23513 * config.sub: Likewise.
58b6645a 23514
9124f65d 235152008-09-03 Robert Millan <rmh@aybabtu.com>
23516
23517 * disk/scsi.c (grub_scsi_open): Remove size limit when printing
23518 `disk->total_sectors'.
23519
81a06771 235202008-09-01 Colin D Bennett <colin@gibibit.com>
a0224a4e 23521
23522 * include/grub/normal.h: Fixed incorrect comment for
23523 GRUB_COMMAND_FLAG_NO_ARG_PARSE.
23524
81a06771 235252008-09-01 Colin D Bennett <colin@gibibit.com>
f0619958 23526
23527 * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Replaced constant
23528 values with defines.
23529
23530 * include/grub/i386/pc/vbe.h (GRUB_VBE_MODEATTR_SUPPORTED): Added.
23531 (GRUB_VBE_MODEATTR_RESERVED_1): Likewise.
23532 (GRUB_VBE_MODEATTR_BIOS_TTY_OUTPUT_SUPPORT): Likewise.
23533 (GRUB_VBE_MODEATTR_COLOR): Likewise.
23534 (GRUB_VBE_MODEATTR_GRAPHICS): Likewise.
23535 (GRUB_VBE_MODEATTR_VGA_COMPATIBLE): Likewise.
23536 (GRUB_VBE_MODEATTR_VGA_WINDOWED_AVAIL): Likewise.
23537 (GRUB_VBE_MODEATTR_LFB_AVAIL): Likewise.
23538 (GRUB_VBE_MODEATTR_DOUBLE_SCAN_AVAIL): Likewise.
23539 (GRUB_VBE_MODEATTR_INTERLACED_AVAIL): Likewise.
23540 (GRUB_VBE_MODEATTR_TRIPLE_BUF_AVAIL): Likewise.
23541 (GRUB_VBE_MODEATTR_STEREO_AVAIL): Likewise.
23542 (GRUB_VBE_MODEATTR_DUAL_DISPLAY_START): Likewise.
23543 (GRUB_VBE_MEMORY_MODEL_TEXT): Likewise.
23544 (GRUB_VBE_MEMORY_MODEL_CGA): Likewise.
23545 (GRUB_VBE_MEMORY_MODEL_HERCULES): Likewise.
23546 (GRUB_VBE_MEMORY_MODEL_PLANAR): Likewise.
23547 (GRUB_VBE_MEMORY_MODEL_NONCHAIN4_256): Likewise.
23548 (GRUB_VBE_MEMORY_MODEL_YUV): Likewise.
23549
93d5cbf8 235502008-08-31 Robert Millan <rmh@aybabtu.com>
23551
23552 * loader/i386/pc/multiboot.c (grub_get_multiboot_mmap_len): Fix
23553 declaration.
23554 (grub_multiboot): Fix a few warnings.
23555
21751d50 235562008-08-31 Robert Millan <rmh@aybabtu.com>
23557
23558 * loader/i386/pc/multiboot.c: Update comment not to say that
23559 boot_device support is unimplemented.
23560
e27a75c5 235612008-08-31 Robert Millan <rmh@aybabtu.com>
23562
23563 * loader/i386/pc/multiboot.c: Update comment not to say that a.out
23564 or memory map support are unimplemented.
23565
81a06771 235662008-08-31 Colin D Bennett <colin@gibibit.com>
64d2d53c 23567
23568 * util/i386/pc/grub-mkrescue.in: Support multiple overlay directories.
23569
81a06771 235702008-08-31 Colin D Bennett <colin@gibibit.com>
c08a6c18 23571
23572 * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Show VBE version and
23573 total video memory in 'vbeinfo' output; show color format details for
23574 each video mode.
23575
7c5d8d95 235762008-08-30 Pavel Roskin <proski@gnu.org>
23577
23578 * util/genmoddep.c: Remove for real this time.
23579 * DISTLIST: Remove util/genmoddep.c.
23580
4cebd25a 235812008-08-30 Robert Millan <rmh@aybabtu.com>
23582
23583 * kern/i386/pc/startup.S (multiboot_header): Force 4-byte alignment
23584 as required by Multiboot spec (it was already 4-byte aligned, but
23585 only by chance).
23586
b497a269 235872008-08-29 Pavel Roskin <proski@gnu.org>
23588
e3925185 23589 * kern/powerpc/ieee1275/crt0.S: Rename to ...
23590 * kern/powerpc/ieee1275/startup.S: ... this.
23591 * conf/powerpc-ieee1275.rmk: Adjust for the above.
23592 * DISTLIST: Likewise.
23593
b497a269 23594 * kern/powerpc/ieee1275/crt0.S: Include grub/symbol.h and
23595 grub/cpu/kernel.h. Add start label for consistency with other
23596 platforms. Add grub_prefix immediately after start. Add jump
23597 to the code after grub_prefix.
23598 * include/grub/powerpc/kernel.h: Provide valid values for
23599 GRUB_KERNEL_CPU_PREFIX and GRUB_KERNEL_CPU_DATA_END.
23600
6e5a42fe 236012008-08-29 Bean <bean123ch@gmail.com>
23602
23603 * configure.ac: Change host_os to cygwin for mingw.
23604 (asprintf): New check for function.
23605
23606 * include/grub/symbol.h: Replace #ifndef __CYGWIN__ with
23607 #if ! defined (__CYGWIN__) && ! defined (__MINGW32__).
23608
23609 * include/grub/util/misc.h: #include <config.h> and <grub/types.h>,
81a06771 23610 declare asprintf if HAVE_ASPRINTF is not set, declare fseeko, ftello,
6e5a42fe 23611 sync, sleep and grub_util_get_disk_size for mingw.
23612
23613 * util/biosdisk.c (grub_util_biosdisk_open): Use grub_util_get_disk_size
23614 to get size in mingw.
23615 (open_device): Use flag O_BINARY if it's defined.
23616 (find_root_device): Add dummy code for mingw.
23617
23618 * util/grub-mkdevicemap.c (get_floppy_disk_name): Return 0 for mingw.
23619 (get_ide_disk_name): Return //./PHYSICALDRIVE%d for mingw.
23620 (get_scsi_disk_name): Return 0 for mingw.
23621
23622 * util/hostfs.c: #include <grub/util/misc.h>.
23623 (grub_hostfs_open): Use "rb" flag to open file, use
23624 grub_util_get_disk_size to get disk size for mingw.
23625
23626 * util/misc.c: #include <windows.h> and <winioctl.h> in mingw.
23627 (asprintf): New function if HAVE_ASPRINTF is not set.
23628 (sync): New function for mingw.
23629 (sleep): Likewise.
23630 (grub_util_get_disk_size): Likewise.
23631
ab3f2673 236322008-08-28 Pavel Roskin <proski@gnu.org>
23633
23634 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
23635 kern/time.c.
23636
1c282483 236372008-08-28 Robert Millan <rmh@aybabtu.com>
23638
23639 * util/biosdisk.c (find_grub_drive): Declare missing `i' variable.
23640
678e849c 236412008-08-28 Robert Millan <rmh@aybabtu.com>
23642
23643 Change find_grub_drive() syntax so it doesn't prevent it from
23644 detecting NULL names as errors.
23645
23646 * util/biosdisk.c (find_grub_drive): Move free slot search code
23647 from here ...
23648 (find_free_slot): ... to here.
23649 (read_device_map): Use find_free_slot() to search for free slots.
23650
965c75ca 236512008-08-27 Marco Gerards <marco@gnu.org>
23652
23653 * conf/common.rmk (pkglib_MODULES): Add scsi.mod.
23654 (scsi_mod_SOURCES): New variable.
23655 (scsi_mod_CFLAGS): Likewise
23656 (scsi_mod_LDFLAGS): Likewise.
23657
23658 * disk/scsi.c: New file.
23659
23660 * include/grub/scsi.h: Likewise.
23661
23662 * include/grub/scsicmd.h: Likewise.
23663
23664 * disk/ata.c: Include <grub/scsi.h>.
23665 (grub_atapi_packet): Do not use grub_ata_cmd, use registers
23666 instead.
23667 (grub_ata_iterate): Skip ATAPI devices.
23668 (grub_ata_open): Only handle ATAPI devices.
23669 (struct grub_atapi_read): Removed.
23670 (grub_atapi_readsector): Likewise.
23671 (grub_ata_read): No longer handle ATAPI devices.
23672 (grub_ata_write): Likewise.
23673 (grub_atapi_iterate): New function.
23674 (grub_atapi_read): Likewise.
23675 (grub_atapi_write): Likewise.
23676 (grub_atapi_open): Likewise.
23677 (grub_atapi_close): Likewise.
23678 (grub_atapi_dev): New variable.
23679 (GRUB_MOD_INIT(ata)): Register ATAPI as SCSI device.
23680 (GRUB_MOD_FINI(ata)): Unregister ATAPI.
23681
23682 * include/grub/disk.h (enum grub_disk_dev_id): Add
23683 `GRUB_DISK_DEVICE_SCSI_ID'.
23684
c07ae501 236852008-08-26 Robert Millan <rmh@aybabtu.com>
23686
23687 * util/biosdisk.c (grub_util_biosdisk_open, open_device)
23688 (grub_util_biosdisk_get_grub_dev): Make error messages a bit more
23689 descriptive.
23690
5ed20adc 236912008-08-23 Bean <bean123ch@gmail.com>
23692
23693 * conf/common.rmk (grub_probe_SOURCES): Add disk/mdraid_linux.c.
23694 (grub_fstest_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
23695 disk/mdraid_linux.c and disk/dmraid_nvidia.c and lib/crc.c.
23696 (pkglib_MODULES): Add raid5rec.mod, raid6rec.mod, mdraid.mod and
23697 dm_nv.mod.
23698 (raid5rec_mod_SOURCES): New macro.
23699 (raid5rec_mod_CFLAGS): Likewise.
23700 (raid5rec_mod_LDFLAGS): Likewise.
23701 (raid6rec_mod_SOURCES): Likewise.
23702 (raid6rec_mod_CFLAGS): Likewise.
23703 (raid6rec_mod_LDFLAGS): Likewise.
23704 (mdraid_mod_SOURCES): Likewise.
23705 (mdraid_mod_CFLAGS): Likewise.
23706 (mdraid_mod_LDFLAGS): Likewise.
23707 (dm_nv_mod_SOURCES): Likewise.
23708 (dm_nv_mod_CFLAGS): Likewise.
23709 (dm_nv_mod_LDFLAGS): Likewise.
23710
23711 * conf/i386-pc.rmk (grub_setup_SOURCES): Add disk/mdraid_linux.c.
23712 (grub_emu_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
23713 disk/mdraid_linux.c and disk/dmraid_nvidia.c.
23714
23715 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add disk/raid5_recover.c,
23716 disk/raid6_recover.c, disk/mdraid_linux.c and disk/dmraid_nvidia.c.
23717
23718 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
23719
23720 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
23721
23722 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
23723
23724 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
23725
23726 * disk/raid5_recover.c: New file.
23727
23728 * disk/raid6_recover.c: Likewise.
23729
23730 * disk/mdraid_linux.c: Likewise.
23731
23732 * disk/dmraid_nvidia.c: Likewise.
23733
23734 * disk/i386/pc/biosdisk.c: Set total_sectors of cdrom device to
23735 ULONG_MAX.
23736
23737 * disk/raid.c (grub_raid_open): Use the size of the smallest disk to
23738 calculate the size of raid device.
23739 (grub_raid_read): Simplify raid0 code. Support raid4, raid6 and four
23740 different layout of raid5.
23741 (grub_raid_scan_device): Remove code specific to mdraid.
23742 (grub_raid_list): New variable.
23743 (free_array): New function.
23744 (grub_raid_register): Likewise.
23745 (grub_raid_unregister): Likewise.
23746 (grub_raid_rescan): Likewise.
23747 (GRUB_MOD_INIT): Don't iterate device here.
23748 (GRUB_MOD_FINI): Use free_array to release resource.
23749
23750 * include/grub/raid.h: Remove macro and structure specific to mdraid.
23751 (grub_raid5_recover_func_t): New function variable type.
23752 (grub_raid6_recover_func_t): Likewise.
23753 (grub_raid5_recover_func): New variable.
23754 (grub_raid6_recover_func): Likewise.
23755 (grub_raid_register): New function.
23756 (grub_raid_unregister): Likewise.
23757 (grub_raid_rescan): Likewise.
23758 (grub_raid_block_xor): Likewise.
23759
23760 * util/grub-fstest.c: Add #include <grub/raid.h> and <grub/lib/crc.h>.
23761 (CMD_CRC): New macro.
23762 (part): Removed.
23763 (read_file): Handle device as well as file.
23764 (cmd_crc): New function.
23765 (fstest): Handle multiple disks.
23766 (options): Remove part, raw and long, add root and diskcount.
23767 (usage): Add crc, remove -p, -r, -l, add -r and -c.
dba3f844 23768 (main): Find the first non option entry and ignore subsequent options,
5ed20adc 23769 add handling for the new options, support multiple disks.
23770
23771 * util/grub-probe.c (probe): Add mdraid to abstraction_name.
23772
29c18915 237732008-08-23 Bean <bean123ch@gmail.com>
23774
23775 * normal/x86_64/setjmp.S (grub_longjmp): Return 1 when val = 0.
23776
23777 * genfslist.sh: Ignore kernel.mod.
23778
23779 * genpartmaplist.sh: Likewise.
23780
8415f261 237812008-08-23 Robert Millan <rmh@aybabtu.com>
23782
23783 * util/getroot.c (find_root_device): Skip anything that starts with
23784 a dot, not just directories. This avoids things like /dev/.tmp.md0.
23785
d5a7dc5b 237862008-08-22 Felix Zielcke <fzielcke@z-51.de>
81a06771 23787
d5a7dc5b 23788 * util/update-grub.in (GRUB_GFXMODE): Export variable.
23789 * util/grub.d/00_header.in: Allow the administrator to change default
23790 gfxmode via ${GRUB_GFXMODE}.
23791
380cfbb4 237922008-08-21 Felix Zielcke <fzielcke@z-51.de>
23793
23794 * fs/ntfs.c (grub_ntfs_mount): Fix a memory leak.
23795
c9baafe7 237962008-08-21 Robert Millan <rmh@aybabtu.com>
23797
23798 * loader/i386/linux.c: New file. Implements generic 32-bit Linux
23799 loader.
23800 * conf/i386-coreboot.rmk (_linux_mod_SOURCES): Replace
23801 `loader/i386/pc/linux.c' with `loader/i386/linux.c'.
23802
e290bef2 238032008-08-20 Carles Pina i Estany <carles@pina.cat>
23804
23805 * menu/normal.c (run_menu): Replace hardcoded numbers with macros
23806 (16 for GRUB_TERM_UP and 14 for GRUB_TERM_DOWN)
23807
f9dbfc96 238082008-08-19 Robert Millan <rmh@aybabtu.com>
23809
23810 * term/gfxterm.c (DEFAULT_CURSOR_COLOR): Remove.
23811 (struct grub_virtual_screen): Remove `cursor_color'.
23812 (grub_virtual_screen_setup): Remove `virtual_screen.cursor_color'
23813 initialization.
23814 (write_cursor): Use `virtual_screen.fg_color' to draw cursor.
23815
dd6bd6ab 238162008-08-18 Robert Millan <rmh@aybabtu.com>
23817
23818 Unify (identical) linux_normal.c files.
23819 * loader/i386/efi/linux_normal.c: Move from here ...
23820 * loader/linux_normal.c: ... to here. Update all users.
23821 * loader/i386/pc/linux_normal.c: Delete. Update all users.
23822 * loader/i386/ieee1275/linux_normal.c: Likewise.
23823
7f42f83e 238242008-08-18 Robert Millan <rmh@aybabtu.com>
23825
23826 * include/grub/i386/linux.h (LINUX_LOADER_ID_LILO)
23827 (LINUX_LOADER_ID_LOADLIN, LINUX_LOADER_ID_BOOTSECT)
23828 (LINUX_LOADER_ID_SYSLINUX, LINUX_LOADER_ID_ETHERBOOT)
23829 (LINUX_LOADER_ID_ELILO, LINUX_LOADER_ID_GRUB, LINUX_LOADER_ID_UBOOT)
23830 (LINUX_LOADER_ID_XEN, LINUX_LOADER_ID_GUJIN, LINUX_LOADER_ID_QEMU):
23831 New macros.
23832 (GRUB_LINUX_CL_OFFSET, GRUB_LINUX_CL_END_OFFSET): Move from here ...
23833 * loader/i386/pc/linux.c (GRUB_LINUX_CL_OFFSET)
23834 (GRUB_LINUX_CL_END_OFFSET): ... to here.
23835 * loader/i386/efi/linux.c (GRUB_EFI_CL_OFFSET): Rename to ...
23836 (GRUB_LINUX_CL_OFFSET): ... this. Update all users.
23837 (GRUB_EFI_CL_END_OFFSET): Rename to ...
23838 (GRUB_LINUX_CL_END_OFFSET): ... this. Update all users.
23839 (grub_rescue_cmd_linux): Macroify `type_of_loader' initialization.
23840 Initialize `params->video_cursor_x' and `params->video_cursor_y'
23841 portably using grub_getxy().
23842 Replace `-EFI' with `-bzImage' in boot message.
23843
38487ddb 238442008-08-17 Robert Millan <rmh@aybabtu.com>
23845
23846 * include/grub/x86_64/kernel.h: New file (<grub/i386/kernel.h> stub).
23847
deceb3ec 238482008-08-17 Robert Millan <rmh@aybabtu.com>
23849
23850 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pc/mmap.c'.
23851
23852 * include/grub/i386/pc/init.h (GRUB_MACHINE_MEMORY_AVAILABLE)
23853 (GRUB_MACHINE_MEMORY_RESERVED): New macros.
23854 (grub_machine_mmap_iterate): New function declaration.
23855 * include/grub/multiboot.h (struct grub_multiboot_mmap_entry): New
23856 structure.
23857 (GRUB_MMAP_MEMORY_AVAILABLE, GRUB_MMAP_MEMORY_RESERVED): New
23858 macros.
23859
23860 * kern/i386/pc/init.c (grub_machine_init): Replace hardcoded region
23861 type check value with `GRUB_MACHINE_MEMORY_AVAILABLE'.
23862 Move e820 parsing from here ...
23863 * kern/i386/pc/mmap.c: New file.
23864 (grub_machine_mmap_iterate): ... to here.
23865
23866 * include/grub/i386/coreboot/memory.h: Remove `<grub/err.h>'.
23867 (GRUB_LINUXBIOS_MEMORY_AVAILABLE): Rename (for consistency) to ...
23868 (GRUB_MACHINE_MEMORY_AVAILABLE): ... this. Update all users.
23869 (grub_available_iterate): Redeclare to return `void', and redeclare
23870 its hook to use grub_uint64_t as addr and size parameters, and rename
23871 to ...
23872 (grub_machine_mmap_iterate): ... this. Update all users.
23873
23874 * kern/i386/coreboot/mmap.c (grub_mmap_iterate): Simplify parser loop
23875 to make it more readable. Rename to ...
23876 (grub_machine_mmap_iterate): ... this.
23877
23878 * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): New variables.
23879 (grub_get_multiboot_mmap_len, grub_fill_multiboot_mmap): New functions.
23880 (grub_multiboot): Allocate an extra region after the payload, and fill
23881 it with a Multiboot memory map. Adjust a.out loader to calculate size
23882 with the extra space.
23883 (grub_multiboot_load_elf32): Adjust elf32 loader to calculate size
23884 with the extra space.
23885
f8aa0f43 238862008-08-17 Carles Pina i Estany <carles@pina.cat>
23887
9807deb9 23888 * menu/normal.c (run_menu): Add Home and End keys in grub-menu.
f8aa0f43 23889
605f5bb6 238902008-08-17 Felix Zielcke <fzielcke@z-51.de>
23891
23892 * gendistlist.sh: Add *.y, *.tex, *.texi, grub.cfg, README, *.sc,
23893 mdate-sh to the list `find' searches for.
23894 * DISTLIST: Regenerated.
23895
210db6c6 238962008-08-16 Felix Zielcke <fzielcke@z-51.de>
23897
23898 * gendistlist.sh (EXTRA_DISTFILES): Remove gensymlist.sh,
23899 genkernsyms.sh. Add geninit.sh, geninitheader.sh, genkernsyms.sh.in,
48cdbfd4 23900 genmoddep.awk, gensymlist.sh.in.
23901 (DISTDIRS): Add bus, docs, hook, lib.
210db6c6 23902 * DISTLIST: Regenerated.
48cdbfd4 23903 * NEWS: Add cygwin support and change the `os-prober' entry a bit.
210db6c6 23904
1082b929 239052008-08-16 Robert Millan <rmh@aybabtu.com>
23906
23907 * disk/raid.c (grub_raid_init): Handle/report errors set by
23908 grub_device_iterate().
23909 * disk/lvm.c (grub_lvm_init): Likewise.
23910
42ce5170 239112008-08-15 Bean <bean123ch@gmail.com>
23912
23913 * conf/i386-pc.rmk (pkglib_MODULES): Add datetime.mod, date.mod
23914 and datehook.mod.
23915 (datetime_mod_SOURCES): New macro.
23916 (datetime_mod_CFLAGS): Likewise.
23917 (datetime_mod_LDFLAGS): Likewise.
23918 (date_mod_SOURCES): Likewise.
23919 (date_mod_CFLAGS): Likewise.
23920 (date_mod_LDFLAGS): Likewise.
23921 (datehook_mod_SOURCES): Likewise.
23922 (datehook_mod_CFLAGS): Likewise.
23923 (datehook_mod_LDFLAGS): Likewise.
23924
23925 * conf/i386-coreboot.rmk (pkglib_MODULES): Add datetime.mod, date.mod
23926 and datehook.mod.
23927 (datetime_mod_SOURCES): New macro.
23928 (datetime_mod_CFLAGS): Likewise.
23929 (datetime_mod_LDFLAGS): Likewise.
23930 (date_mod_SOURCES): Likewise.
23931 (date_mod_CFLAGS): Likewise.
23932 (date_mod_LDFLAGS): Likewise.
23933 (datehook_mod_SOURCES): Likewise.
23934 (datehook_mod_CFLAGS): Likewise.
23935 (datehook_mod_LDFLAGS): Likewise.
23936
23937 * conf/i386-ieee1275.rmk (pkglib_MODULES): Add datetime.mod, date.mod
23938 and datehook.mod.
23939 (datetime_mod_SOURCES): New macro.
23940 (datetime_mod_CFLAGS): Likewise.
23941 (datetime_mod_LDFLAGS): Likewise.
23942 (date_mod_SOURCES): Likewise.
23943 (date_mod_CFLAGS): Likewise.
23944 (date_mod_LDFLAGS): Likewise.
23945 (datehook_mod_SOURCES): Likewise.
23946 (datehook_mod_CFLAGS): Likewise.
23947 (datehook_mod_LDFLAGS): Likewise.
23948
23949 * conf/i386-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
23950 and datehook.mod.
23951 (datetime_mod_SOURCES): New macro.
23952 (datetime_mod_CFLAGS): Likewise.
23953 (datetime_mod_LDFLAGS): Likewise.
23954 (date_mod_SOURCES): Likewise.
23955 (date_mod_CFLAGS): Likewise.
23956 (date_mod_LDFLAGS): Likewise.
23957 (datehook_mod_SOURCES): Likewise.
23958 (datehook_mod_CFLAGS): Likewise.
23959 (datehook_mod_LDFLAGS): Likewise.
23960
23961 * conf/x86_64-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
23962 and datehook.mod.
23963 (datetime_mod_SOURCES): New macro.
23964 (datetime_mod_CFLAGS): Likewise.
23965 (datetime_mod_LDFLAGS): Likewise.
23966 (date_mod_SOURCES): Likewise.
23967 (date_mod_CFLAGS): Likewise.
23968 (date_mod_LDFLAGS): Likewise.
23969 (datehook_mod_SOURCES): Likewise.
23970 (datehook_mod_CFLAGS): Likewise.
23971 (datehook_mod_LDFLAGS): Likewise.
23972
23973 * kern/env.c (grub_env_insert): Fix a bug in prevp pointer.
23974
23975 * commands/date.c: New file.
23976
23977 * hook/datehook.c: Likewise.
23978
23979 * include/grub/lib/datetime.h: Likewise.
23980
23981 * include/grub/i386/cmos.h: Likewise.
23982
23983 * lib/datetime.c: Likewise.
23984
23985 * lib/i386/datetime.c: Likewise.
23986
23987 * lib/efi/datetime.c: Likewise.
23988
0e9242da 239892008-08-14 Robert Millan <rmh@aybabtu.com>
23990
23991 * conf/common.rmk (bin_UTILITIES): Add `grub-mkelfimage'.
23992 (grub_mkelfimage_SOURCES): New variable.
23993 (util/elf/grub-mkimage.c_DEPENDENCIES): Likewise.
23994
23995 * conf/i386-coreboot.rmk (bin_UTILITIES, grub_mkimage_SOURCES)
23996 (grub_mkimage_LDFLAGS, util/elf/grub-mkimage.c_DEPENDENCIES): Remove.
23997 * conf/powerpc-ieee1275.rmk: Likewise.
23998 * conf/i386-ieee1275.rmk: Likewise.
23999
24000 * kern/ieee1275/init.c: Include `<grub/cpu/kernel.h>'.
24001 * kern/i386/coreboot/init.c: Likewise.
24002
24003 * kern/i386/ieee1275/startup.S: Replace `<grub/machine/kernel.h>'
24004 with `<grub/cpu/kernel.h>'.
24005 (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Renamed
24006 to ...
24007 (GRUB_KERNEL_CPU_PREFIX, GRUB_KERNEL_CPU_DATA_END): ... this.
24008 * kern/i386/coreboot/startup.S: Likewise.
24009
24010 * include/grub/powerpc/ieee1275/kernel.h (GRUB_MOD_ALIGN)
24011 (GRUB_MOD_GAP): Remove.
24012 * include/grub/powerpc/kernel.h: New file.
24013 * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX)
24014 (GRUB_KERNEL_MACHINE_DATA_END): Remove.
24015 * include/grub/i386/kernel.h: New file.
24016 * include/grub/i386/coreboot/kernel.h (GRUB_MOD_ALIGN)
24017 (GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_PREFIX)
24018 (GRUB_KERNEL_MACHINE_DATA_END): Remove.
24019
24020 * util/ieee1275/grub-install.in (grub_mkimage): Initialize to use
24021 `grub-mkelfimage'.
24022 Use --directory when invoking grub_mkimage.
24023
24024 * util/elf/grub-mkimage.c: Include `<grub/cpu/kernel.h>'.
24025 (add_segments): Replace GRUB_KERNEL_MACHINE_DATA_END and
24026 GRUB_KERNEL_MACHINE_PREFIX with GRUB_KERNEL_CPU_DATA_END
24027 and GRUB_KERNEL_CPU_PREFIX.
24028
b86408f8 240292008-08-14 Felix Zielcke <fzielcke@z-51.de>
24030
d5e619ca 24031 * include/grub/err.h (grub_err_printf): New function prototype.
24032 * util/misc.c (grub_err_printf): New function.
24033 * kern/misc.c [! GRUB_UTIL] (grub_err_printf): New alias for
24034 grub_printf.
24035 * kern/err.c (grub_print_error): Use grub_err_printf.
b86408f8 24036
7161f0e0 240372008-08-13 Robert Millan <rmh@aybabtu.com>
24038
24039 * docs/grub.cfg: Remove `/dev/' prefix in GNU/Hurd boot entry.
24040
a1967522 240412008-08-13 Robert Millan <rmh@aybabtu.com>
24042
24043 * docs/grub.cfg: Use the native device name for the example GNU/Hurd
24044 boot entry.
24045
371458b5 240462008-08-12 Robert Millan <rmh@aybabtu.com>
24047
24048 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Move part
24049 of the relocation code from here ...
24050 (grub_multiboot): ... to here.
24051 (forward_relocator, backward_relocator): Move from here ...
24052 * kern/i386/loader.S (grub_multiboot_forward_relocator)
24053 (grub_multiboot_backward_relocator): ... to here.
24054 (grub_multiboot_real_boot): Use %edx for entry offset. Put Multiboot
24055 magic in %eax. Use %ebp for jumping (so %edx is not trashed).
24056 * include/grub/i386/loader.h (grub_multiboot_forward_relocator)
24057 (grub_multiboot_forward_relocator_end)
24058 (grub_multiboot_backward_relocator)
24059 (grub_multiboot_backward_relocator_end): New variables.
24060
05f9452b 240612008-08-12 Bean <bean123ch@gmail.com>
24062
24063 * disk/raid.c (grub_raid_read): Fix a bug in raid0 code.
24064
20024ab0 240652008-08-11 Robert Millan <rmh@aybabtu.com>
24066
24067 * kern/i386/linuxbios/startup.S: Move from here ...
24068 * kern/i386/coreboot/startup.S: ... to here.
24069
24070 * kern/i386/linuxbios/init.c: Move from here ...
24071 * kern/i386/coreboot/init.c: ... to here.
24072
24073 * kern/i386/linuxbios/table.c: Move from here ...
24074 * kern/i386/coreboot/mmap.c: ... to here.
24075
24076 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Update moved files.
24077
e352e9cd 240782008-08-11 Robert Millan <rmh@aybabtu.com>
24079
24080 * kern/device.c (grub_device_open): Do not handle grub_disk_open()
24081 errors. Leave it to the upper layer to handle them.
24082
2d05bc6a 240832008-08-09 Christian Franke <franke@computer.org>
24084
24085 * Makefile.in: Add `target_os' and `enable_grub_pe2elf'.
24086 * conf/common.rmk: Install `grub-pe2elf' only if requested.
24087 Install `grub.d/10_windows' only on Cygwin.
24088 * configure.ac: Add subst of `target_os'.
24089 Check `target_os' also before setting TARGET_OBJ2ELF.
24090 Add `--enable-grub-pe2elf'.
24091
042bd419 240922008-08-08 Robert Millan <rmh@aybabtu.com>
24093
24094 * kern/disk.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
24095 (grub_last_time): Change type to grub_uint64_t.
24096 (grub_disk_open): Migrate code from to using grub_get_time_ms().
24097 (grub_disk_close): Likewise.
24098
24099 * normal/menu.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
24100 (run_menu): Migrate code from to using grub_get_time_ms().
24101
24102 * util/misc.c (grub_get_time_ms): New function.
24103
7f280db5 241042008-08-08 Marco Gerards <marco@gnu.org>
24105
24106 * disk/ata.c (grub_ata_regget): Change return type to
24107 `grub_uint8_t'.
24108 (grub_ata_regget2): Likewise.
24109 (grub_ata_wait_status): New function.
24110 (grub_ata_wait_busy): Removed function, updated all users to use
24111 `grub_ata_wait_status'.
24112 (grub_ata_wait_drq): Likewise.
24113 (grub_ata_cmd): New function.
24114 (grub_ata_pio_read): Change return type to `grub_uint8_t'. Add
24115 error handling.
24116 (grub_ata_pio_write): Add error handling.
24117 (grub_atapi_identify): Likewise.
24118 (grub_atapi_packet): Use `grub_ata_cmd' and improve error
24119 handling.
24120 (grub_ata_identify): Use `grub_ata_cmd' and improve error
24121 handling. Actually use the detected registers. Reorder the
24122 detection logic such that it is easier to read.
24123 (grub_ata_pciinit): Do not assign the same ID to each controller.
24124 (grub_ata_setaddress): Use `grub_ata_cmd' and improve error
24125 handling.
24126 (grub_atapi_readsector): Check the result of `grub_ata_pio_read'.
24127
24128 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TIMEOUT'.
24129
1fbc5e66 241302008-08-08 Marco Gerards <marco@gnu.org>
24131
24132 * NEWS: Update.
24133
819ce6c0 241342008-08-07 Bean <bean123ch@gmail.com>
24135
24136 * include/grub/x86_64/pci.h: New file.
24137
5c41d44d 241382008-08-07 Christian Franke <franke@computer.org>
24139
24140 * kern/i386/pit.c (TIMER2_SPEAKER): New define.
24141 (TIMER2_GATE): Likewise.
24142 (grub_pit_wait): Add enable/disable of the timer2 gate
24143 bit of port 0x61. This fixes a possible infinite loop.
24144
5ebc275d 241452008-08-07 Bean <bean123ch@gmail.com>
24146
24147 * conf/x86_64-efi.rmk (kernel_mod_SOURCES): Add kern/time.c,
24148 kern/i386/tsc.c and kern/i386/pit.c.
24149
24150 * include/grub/i386/tsc.h (grub_cpu_is_cpuid_supported): Handle
24151 x86_64 platform.
24152
24153 * kern/i386/efi/init.c: Replace <grub/cpu/tsc.h> with
24154 <grub/i386/tsc.h>.
24155
24156 * kern/i386/pit.c: Replace <grub/cpu/io.h> with <grub/i386/io.h>.
24157
e383b3d0 241582008-08-07 Bean <bean123ch@gmail.com>
24159
24160 * conf/i386-efi.rmk (kernel_mod_SOURCES): Add kern/time.c.
24161
24162 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add kern/time.c,
24163
24164 * include/grub/i386/pit.h: Use macro KERNEL_CPU_PIT_HEADER to avoid
24165 multiple inclusion. Add #include <grub/types.h>.
24166
1cbb58ac 241672008-08-06 Christian Franke <franke@computer.org>
24168
24169 * conf/common.rmk: Build and install `10_windows'.
24170 * util/grub.d/10_windows.in: New script.
24171
337f5a1e 241722008-08-06 Pavel Roskin <proski@gnu.org>
24173
24174 * kern/i386/pit.c: Include `<grub/i386/pit.h>'.
24175
057bc4ac 241762008-08-06 Robert Millan <rmh@aybabtu.com>
24177
24178 * conf/i386-coreboot.rmk (kernel_elf_ASFLAGS): New variable.
24179 * kern/i386/tsc.c: Include `<grub/i386/pit.h>'.
24180
2b99f123 241812008-08-06 Bean <bean123ch@gmail.com>
24182
24183 * fs/i386/pc/pxe.c (grub_pxe_data): New member block_size.
24184 (grub_pxefs_fs_int): Remove dummy definition.
24185 (grub_pxefs_open): Use data->block_size to store the current block
24186 size setting.
24187 (grub_pxefs_read): Use block size stored in data->block_size. As the
24188 value of grub_pxe_blksize can be changed after the file is opened.
24189
9f0234cb 241902008-08-06 Bean <bean123ch@gmail.com>
24191
24192 * fs/i386/pc/pxe.c (curr_file): new variable.
24193 (grub_pxefs_open): Simply the handling of pxe file system. Don't
24194 require the dummy internal file system anymore.
24195 (grub_pxefs_read): Removed.
24196 (grub_pxefs_close): Likewise.
24197 (grub_pxefs_fs_int): Likewise.
24198 (grub_pxefs_read_int): Renamed to grub_pxefs_read. Reinitialize tftp
24199 connection when we switch file.
24200 (grub_pxefs_close_int): Renamed to grub_pxefs_close.
24201
a55d42e0 242022008-08-06 Robert Millan <rmh@aybabtu.com>
24203
24204 * conf/i386-coreboot.rmk (pkglib_MODULES): Add `reboot.mod' and
24205 `halt.mod'.
24206 (reboot_mod_SOURCES, reboot_mod_CFLAGS, reboot_mod_LDFLAGS)
24207 (halt_mod_SOURCES, halt_mod_CFLAGS, halt_mod_LDFLAGS): New variables.
24208
24209 * kern/i386/halt.c: New file.
24210 * kern/i386/reboot.c: Likewise.
24211 * include/grub/i386/reboot.h: Likewise.
24212 * include/grub/i386/halt.h: Likewise.
24213
24214 * commands/halt.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]:
24215 Include `<grub/cpu/halt.h>'.
24216 * commands/reboot.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]
24217 [! GRUB_MACHINE_PCBIOS]: Include `<grub/cpu/reboot.h>'.
24218
24219 * term/i386/pc/at_keyboard.c: Include `<grub/cpu/at_keyboard.h>'.
24220 (SHIFT_L, SHIFT_R, CTRL, ALT, CAPS_LOCK, KEYBOARD_REG_DATA)
24221 (KEYBOARD_REG_STATUS, KEYBOARD_COMMAND_ISREADY, KEYBOARD_COMMAND_READ)
24222 (KEYBOARD_COMMAND_WRITE, KEYBOARD_COMMAND_REBOOT)
24223 (KEYBOARD_SCANCODE_SET1, KEYBOARD_ISMAKE, KEYBOARD_ISREADY)
24224 (KEYBOARD_SCANCODE, OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): Move
24225 from here ...
24226 * include/grub/i386/at_keyboard.h: ... to here.
24227
24371d26 242282008-08-05 Robert Millan <rmh@aybabtu.com>
24229
24230 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pit.c'.
24231 * conf/i386-efi.rmk (kernel_mod_SOURCES): Likewise.
24232 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Likewise. Also add
24233 `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
24234 `kern/generic/millisleep.c'.
24235
24236 * kern/i386/tsc.c (calibrate_tsc): Rewrite using grub_pit_wait()
24237 instead of grub_get_rtc().
24238 (grub_tsc_init): Initialize `tsc_boot_time'.
24239
24240 * kern/i386/linuxbios/init.c (grub_millisleep): Remove stub.
24241 (grub_machine_init): Use grub_tsc_init() rather than
24242 installing an RTC-based handler via grub_install_get_time_ms().
24243
24244 * kern/i386/pit.c: New file.
24245 * include/grub/i386/pit.h: Likewise.
24246
9e7007b3 242472008-08-05 Bean <bean123ch@gmail.com>
24248
24249 * boot/i386/pc/pxeboot.S (_start): Use drive number 0x7F for pxe.
24250
24251 * conf/i386-pc.rmk (kernel_img_HEADERS): Add machine/pxe.h.
24252 (pkglib_MODULES): Add pxe.mod and pxecmd.mod.
24253 (pxe_mod_SOURCES): New macro.
24254 (pxe_mod_CFLAGS): Likewise.
24255 (pxe_mod_LDFLAGS): Likewise.
24256 (pxecmd_mod_SOURCES): Likewise.
24257 (pxecmd_mod_CFLAGS): Likewise.
24258 (pxecmd_mod_LDFLAGS): Likewise.
24259
24260 * kern/i386/pc/startup.S (grub_pxe_scan): New function.
24261 (grub_pxe_call): Likewise.
24262
24263 * include/grub/disk.h (grub_disk_dev_id): Add GRUB_DISK_DEVICE_PXE_ID.
24264
24265 * commands/i386/pc/pxecmd.c: New file.
24266
9f0234cb 24267 * fs/i386/pc/pxe.c: Likewise.
9e7007b3 24268
24269 * include/grub/i386/pc/pxe.h: Likewise.
24270
6977d49f 242712008-08-05 Bean <bean123ch@gmail.com>
24272
24273 * util/console.c (grub_console_cur_color): New variable.
24274 (grub_console_standard_color): Likewise.
24275 (grub_console_normal_color): Likewise.
24276 (grub_console_highlight_color): Likewise.
24277 (color_map): Likewise.
24278 (use_color): Likewise.
24279 (NUM_COLORS): New macro.
24280 (grub_ncurses_setcolorstate): Handle color properly.
24281 (grub_ncurses_setcolor): Don't change color here, just remember the
24282 settings, color will be set in grub_ncurses_setcolorstate.
24283 (grub_ncurses_getcolor): New function.
24284 (grub_ncurses_init): Initialize color pairs.
24285 (grub_ncurses_term): New member grub_ncurses_getcolor.
24286
9c2ff3ee 242872008-08-05 Colin D Bennett <colin@gibibit.com>
337f5a1e 24288
9c2ff3ee 24289 High resolution timer support. Implemented for x86 CPUs using TSC.
24290 Extracted generic grub_millisleep() so it's linked in only as needed.
24291 This requires a Pentium compatible CPU; if the RDTSC instruction is
24292 not supported, then it falls back on the generic grub_get_time_ms()
24293 implementation that uses the machine's RTC.
24294
24295 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/time.c',
24296 `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
24297 `kern/generic/millisleep.c'.
24298
24299 * conf/i386-efi.rmk (kernel_mod_SOURCES): Add `kern/i386/tsc.c',
24300 `kern/generic/rtc_get_time_ms.c' and `kern/generic/millisleep.c'.
24301
24302 * conf/x86_64-efi.rml (kernel_mod_SOURCES): Add
24303 `kern/generic/millisleep.c' and `kern/generic/rtc_get_time_ms.c'.
24304
24305 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
24306
24307 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
24308 `kern/generic/millisleep.c'.
24309
24310 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
24311
24312 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Add `kern/time.c'.
24313
24314 * kern/generic/rtc_get_time_ms.c: New file.
24315
24316 * kern/generic/millisleep.c: New file.
337f5a1e 24317
9c2ff3ee 24318 * kern/misc.c: Don't include
24319 <kern/time.h> anymore.
24320 (grub_millisleep_generic): Removed.
24321
24322 * commands/sleep.c (grub_interruptible_millisleep): Uses
24323 grub_get_time_ms() instead of grub_get_rtc().
24324
24325 * include/grub/i386/tsc.h (grub_get_tsc): New file. New inline
24326 function.
24327 (grub_cpu_is_cpuid_supported): New inline function.
24328 (grub_cpu_is_tsc_supported): New inline function.
24329 (grub_tsc_init): New function prototype.
24330 (grub_tsc_get_time_ms): New function prototype.
24331
24332 * kern/i386/tsc.c (grub_get_time_ms): New file.
24333
24334 * include/grub/time.h: Include <grub/types.h.
24335 (grub_millisleep_generic): Removed.
24336 (grub_get_time_ms): New prototype.
24337 (grub_install_get_time_ms): New prototype.
24338 (grub_rtc_get_time_ms): New prototype.
24339
24340 * kern/time.c (grub_get_time_ms): New function.
24341 (grub_install_get_time_ms): New function.
24342
24343 * kern/i386/efi/init.c: Include <grub/cpu/tsc.h>. Don't include
24344 <grub/time.h> anymore.
24345 (grub_millisleep): Removed.
24346 (grub_machine_init): Call grub_tsc_init.
24347
24348 * kern/i386/linuxbios/init.c (grub_machine_init): Install the RTC
24349 get_time_ms() implementation.
24350
24351 * kern/sparc64/ieee1275/init.c (grub_millisleep): Removed.
24352 (ieee1275_get_time_ms): New function.
24353 (grub_machine_init): Install get_time_ms() implementation.
24354
24355 * kern/i386/pc/init.c: Include <grub/cpu/tsc.h>.
24356 (grub_machine_init): Call grub_tsc_init().
24357 (grub_millisleep): Removed.
bf06a93f 24358
9c2ff3ee 24359 * kern/ieee1275/init.c (grub_millisleep): Removed.
24360 (grub_machine_init): Install ieee1275_get_time_ms()
24361 implementation.
24362 (ieee1275_get_time_ms): New function.
24363 (grub_get_rtc): Now calls ieee1275_get_time_ms(), which does the
24364 real work.
24365
9ec92aaf 243662008-08-05 Marco Gerards <marco@gnu.org>
24367
24368 * disk/ata.c: Include <grub/pci.h>.
24369 (enum grub_ata_commands): Add `GRUB_ATA_CMD_EXEC_DEV_DIAGNOSTICS'.
24370 (grub_ata_initialize): Rewritten.
24371 (grub_ata_device_initialize): New function.
24372
8d23f507 243732008-08-04 Pavel Roskin <proski@gnu.org>
24374
24375 * kern/main.c: Include grub/mm.h.
24376
5e15ee3d 243772008-08-04 Robert Millan <rmh@aybabtu.com>
24378
24379 * conf/i386-coreboot.rmk (COMMON_ASFLAGS, COMMON_CFLAGS)
24380 (COMMON_LDFLAGS): Harmonize with i386-pc version (fixes a code
24381 corruption problem).
24382
a9053f8f 243832008-08-04 Robert Millan <rmh@aybabtu.com>
24384
24385 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Fix misc
24386 warnings introduced in my last commit.
24387
dd19c7d7 243882008-08-03 Robert Millan <rmh@aybabtu.com>
24389
24390 Make PCI available on all i386 architectures.
24391
24392 * include/grub/i386/pc/pci.h: Move from here ...
24393 * include/grub/i386/pci.h: ... to here.
24394
24395 * include/grub/i386/pc/pci.h: Remove.
24396 * include/grub/i386/efi/pci.h: Remove.
24397 * include/grub/x86_64/efi/pci.h: Remove.
24398
24399 * include/grub/pci.h: Replace `<grub/machine/pci.h>' with
24400 `<grub/cpu/pci.h>'.
24401
24402 * conf/i386-coreboot.rmk (pkglib_MODULES): Add `pci' and `lspci'.
24403 (pci_mod_SOURCES, pci_mod_CFLAGS, pci_mod_LDFLAGS, lspci_mod_SOURCES)
24404 (lspci_mod_CFLAGS, lspci_mod_LDFLAGS): New variables.
24405
24406 * conf/i386-ieee1275.rmk: Likewise.
24407
e14a6184 244082008-08-03 Robert Millan <rmh@aybabtu.com>
24409
24410 * term/i386/pc/vga_text.c (CRTC_CURSOR_DISABLE): New macro.
24411 (grub_console_setcursor): Make it possible to set cursor off.
24412
52768e37 244132008-08-03 Robert Millan <rmh@aybabtu.com>
24414
24415 * util/grub.d/00_header.in: Be platform-agnostic. Probe for existence
24416 of modules instead of assuming which platform provides what.
24417 * util/update-grub.in: Likewise.
24418
2d52f57f 244192008-08-03 Robert Millan <rmh@aybabtu.com>
24420
24421 * kern/i386/pc/init.c (make_install_device): Check for `grub_prefix'
24422 instead of `grub_install_dos_part' to determine whether a drive needs
24423 to be prepended to prefix (`grub_install_dos_part' is not reliable,
825aa57a 24424 because it can be overridden when loading GRUB via Multiboot).
2d52f57f 24425
2a5cd121 244262008-08-02 Robert Millan <rmh@aybabtu.com>
24427
24428 * util/i386/pc/grub-install.in: Remove trailing slash from prefix.
24429
93808428 244302008-08-02 Robert Millan <rmh@aybabtu.com>
24431
24432 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Add a pair
24433 of informational grub_dprintf() calls.
24434
3bd0a12a 244352008-08-02 Robert Millan <rmh@aybabtu.com>
24436
24437 * disk/memdisk.c (memdisk_size): Don't initialize.
24438 (GRUB_MOD_INIT(memdisk)): Find memdisk using grub_module_iterate().
24439
24440 * include/grub/i386/pc/kernel.h
24441 (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): Remove macro.
24442 (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Shift.
24443 (grub_memdisk_image_size, grub_arch_memdisk_addr)
24444 (grub_arch_memdisk_size): Remove.
24445
24446 * include/grub/kernel.h (struct grub_module_header): Remove `offset'
24447 field (was only used to transfer a constant). Add `type' field to
24448 support multiple module types.
24449 (grub_module_iterate): New function.
24450
24451 * kern/device.c (grub_device_open): Do not hide error messages
24452 when grub_disk_open() fails. Use grub_print_error() instead.
24453
24454 * kern/i386/pc/init.c (grub_arch_modules_addr)
24455 (grub_arch_memdisk_size): Remove functions.
24456 (grub_arch_modules_addr): Return the module address in high memory
24457 (now that it isn't copied anymore).
24458
24459 * kern/i386/pc/startup.S (grub_memdisk_image_size): Remove variable.
24460 (codestart): Don't add grub_memdisk_image_size to %ecx in LZMA
24461 decompression routine (grub_total_module_size already includes that
24462 now). Don't copy modules back to low memory.
24463
24464 * kern/main.c: Include `<grub/mm.h>'.
24465 (grub_load_modules): Split out (and use) ...
24466 (grub_module_iterate): ... this function, which iterates through
24467 module objects and runs a hook.
24468 Comment out grub_mm_init_region() call, as it would cause non-ELF
24469 modules to be overwritten.
24470
24471 * util/i386/pc/grub-mkimage.c (generate_image): Instead of appending
24472 the memdisk image in its own region, make it part of the module list.
24473 * util/elf/grub-mkimage.c (options): Add "memdisk"|'m' option.
24474 (main): Parse --memdisk|-m option, and pass user-provided path as
24475 parameter to generate_image().
24476 (add_segments): Pass `memdisk_path' down to load_modules().
24477 (load_modules): Embed memdisk image in module section when requested.
24478 * util/i386/efi/grub-mkimage.c (make_mods_section): Initialize
24479 `header.type' instead of `header.offset'.
24480
24481 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add `memdisk.mod'.
24482 (memdisk_mod_SOURCES, memdisk_mod_CFLAGS)
24483 (memdisk_mod_LDFLAGS): New variables.
24484 * conf/i386-coreboot.rmk: Likewise.
24485 * conf/i386-ieee1275.rmk: Likewise.
24486
a927cc73 244872008-08-02 Robert Millan <rmh@aybabtu.com>
24488
24489 * loader/i386/pc/multiboot.c (playground, forward_relocator)
24490 (backward_relocator): New variables. Used to allocate and relocate
24491 the payload, respectively.
24492 (grub_multiboot_load_elf32): Load into heap instead of requested
825aa57a 24493 address, install the appropriate relocator code in each bound of
a927cc73 24494 the payload, and set the entry point such that
24495 grub_multiboot_real_boot() will jump to one of them.
24496
24497 * kern/i386/loader.S (grub_multiboot_payload_size)
24498 (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
24499 (grub_multiboot_payload_entry_offset): New variables.
24500 (grub_multiboot_real_boot): Set cpu context to what the relocator
24501 expects, and jump to the relocator instead of the payload.
24502
24503 * include/grub/i386/loader.h (grub_multiboot_payload_size)
24504 (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
24505 (grub_multiboot_payload_entry_offset): Export.
24506
b15d8a0c 245072008-08-01 Bean <bean123ch@gmail.com>
24508
24509 * normal/menu_entry.c (editor_getline): Don't return the original
24510 string as result, as it will be released by lexer once it has done
24511 using it.
24512
cdfb3d22 245132008-08-01 Robert Millan <rmh@aybabtu.com>
24514
24515 * util/grub.d/10_linux.in: Use prepare_grub_to_access_device() from
24516 within menuentries, not before them.
24517 util/grub.d/10_hurd.in: Likewise.
24518
9175e93d 245192008-08-01 Bean <bean123ch@gmail.com>
24520
24521 * conf/common.rmk (pkglib_MODULES): Add bufio.mod.
24522 (bufio_mod_SOURCES): New macro.
24523 (bufio_mod_CFLAGS): Likewise.
24524 (bufio_mod_LDFLAGS): Likewise.
24525
24526 * include/grub/bufio.h: New file.
24527
24528 * io/bufio.c: Likewise.
24529
24530 * video/png.c: Replace <grub/file.h> with <grub/bufio.h>.
24531 (grub_video_reader_png): Use grub_buffile_open to open file.
24532
24533 * video/jpeg.c: Replace <grub/file.h> with <grub/bufio.h>.
24534 (grub_video_reader_jpeg): Use grub_buffile_open to open file.
24535
24536 * video/tga.c: Replace <grub/file.h> with <grub/bufio.h>.
24537 (grub_video_reader_tga): Use grub_buffile_open to open file.
24538
24539 * font/manager.c: Include <grub/bufio.h>.
24540 (add_font): Use grub_buffile_open to open file.
24541
3d8383e7 245422008-07-31 Robert Millan <rmh@aybabtu.com>
24543
24544 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): When loading
24545 ELF segments, use a macro for arbitrarily accessing any of them instead
24546 of preparing a pointer that allows access to one at a time.
24547 (grub_multiboot_load_elf64): Likewise.
24548
16e641b6 245492008-07-31 Bean <bean123ch@gmail.com>
24550
24551 * boot/i386/pc/lnxboot.S (real_code_2): Replace 0x50 with
24552 GRUB_KERNEL_MACHINE_DATA_END.
24553
59198b72 245542008-07-30 Robert Millan <rmh@aybabtu.com>
24555
24556 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_DATA_END):
24557 Increase from 0x50 to 0x60.
24558 * util/i386/pc/grub-install.in: Detect cross-disk installs, and
24559 use UUIDs to identify the root drive for them. If that's not
24560 possible, abort.
24561 * util/i386/pc/grub-setup.c (setup): Do not special-case, or even
24562 check, for cross-disk installs.
24563
ae88bca3 245642008-07-30 Robert Millan <rmh@aybabtu.com>
24565
24566 * kern/ieee1275/init.c (grub_machine_set_prefix): If `grub_prefix'
24567 is non-empty, use it to set the `prefix' environment variable instead
24568 of the usual approach.
24569 * kern/i386/linuxbios/init.c (make_install_device): Remove function.
24570 (grub_machine_set_prefix): Use `grub_prefix' to set the `prefix'
24571 environment variable instead of dummy make_install_device().
24572
24573 * kern/i386/ieee1275/startup.S: Include `<grub/machine/kernel.h>'.
24574 (start): Insert a data section, with `grub_prefix' variable.
825aa57a 24575 * kern/i386/linuxbios/startup.S: Likewise.
ae88bca3 24576
24577 * include/grub/powerpc/ieee1275/kernel.h [!ASM_FILE] (grub_prefix):
24578 New variable reference.
24579 * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX):
24580 New macro. Defines offset of `grub_prefix' within startup.S (relative
24581 to `start').
24582 (GRUB_KERNEL_MACHINE_DATA_END): New macro. Defines the end of data
24583 section within startup.S (relative to `start').
24584 * include/grub/i386/coreboot/kernel.h: Likewise.
24585
24586 * util/elf/grub-mkimage.c (add_segments): Receive `prefix' parameter.
24587 Overwrite grub_prefix with its contents, at the beginning of the
24588 first segment.
24589 (main): Understand -p|--prefix.
24590
14f41dd1 245912008-07-30 Robert Millan <rmh@aybabtu.com>
24592
24593 * util/grub.d/10_hurd.in: Source ${libdir}/grub/update-grub_lib.
24594
4ca049a3 245952008-07-30 Robert Millan <rmh@aybabtu.com>
24596
24597 * term/i386/pc/vga_text.c (grub_console_cls): Use
24598 grub_console_gotoxy() to go back to beginning of the screen.
24599 Found by Patrick Georgi <patrick.georgi@coresystems.de>
24600
2921d337 246012008-07-29 Christian Franke <franke@computer.org>
24602
24603 * util/update-grub_lib.in (make_system_path_relative_to_its_root):
24604 Add conversion of emulated mount points on Cygwin.
24605
b609876d 246062008-07-29 Christian Franke <franke@computer.org>
24607
24608 * util/update-grub.in: Add a check for admin
24609 group on Cygwin.
24610 Remove old `grub.cfg.new' before creation.
24611 Add `-f' to `mv' to handle the different filesystem
24612 semantics of Windows.
24613
e93e4679 246142008-07-29 Bean <bean123ch@gmail.com>
24615
24616 * normal/main.c (get_line): Fix buffer overflow bug.
24617
41694fd0 246182008-07-28 Robert Millan <rmh@aybabtu.com>
24619
24620 * partmap/apple.c (GRUB_APPLE_HEADER_MAGIC): New macro.
24621 (struct grub_apple_header): New struct. Describes the layout of
24622 the partmap header.
24623 (apple_partition_map_iterate): Check the header magic as well as the
24624 partition magic (which was already being checked).
24625
cfd0b4e6 246262008-07-28 Pavel Roskin <proski@gnu.org>
24627
24628 * genmk.rb: Add a warning to the beginning of the output that
24629 it's a generated file and should not be edited.
24630
93cce016 246312008-07-28 Robert Millan <rmh@aybabtu.com>
24632
24633 * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
24634 with the same number are found, just use issue a warning with
24635 grub_dprintf(), as this error has been reported to be non-fatal.
c298def0 24636
cd1df915 246372008-07-27 Robert Millan <rmh@aybabtu.com>
24638
24639 * disk/ata.c (grub_ata_dumpinfo): Use grub_dprintf() for debugging
24640 information.
24641
b70a8427 246422008-07-27 Bean <bean123ch@gmail.com>
24643
24644 * fs/fat.c (GRUB_FAT_MAXFILE): New constant.
24645 (grub_fat_find_dir): Ignore case when comparing filename.
24646
8f5e379f 246472008-07-27 Bean <bean123ch@gmail.com>
24648
24649 * fs/xfs.c (grub_xfs_dir_header): Change field i8count back to
24650 smallino, as it's more descriptive, and i8count can be confused with
24651 the other field count.
24652 (grub_xfs_iterate_dir): Adjust grub_xfs_dir_entry pointer for small
24653 inode type.
24654
a85cd5a0 246552008-07-27 Bean <bean123ch@gmail.com>
24656
24657 * commands/crc.c: New file.
24658
24659 * lib/crc.c: Likewise.
24660
24661 * include/grub/lib/crc.h: Likewise.
24662
24663 * util/grub-fstest.c: grub/hexdump.h => grub/lib/hexdump.h.
24664
24665 * commands/hexdump.c: grub/hexdump.h => grub/lib/hexdump.h.
24666 (hexdump): Move this function to ...
24667
24668 * lib/hexdump.c: ... here.
24669
24670 * include/grub/hexdump.h: Renamed to ...
24671
24672 * include/grub/lib/hexdump.h: ... this.
24673
24674 * commands/loadenv.c: grub/envblk.h => grub/lib/envblk.h
24675
24676 * util/grub-editenv.c: Likewise.
24677
24678 * include/envblk.h: Renamed to ...
24679
24680 * include/lib/envblk.h: ... this.
24681
24682 * util/envblk.c: Renamed to ...
24683
24684 * lib/envblk.c: ... this.
24685
24686 * conf/common.rmk (grub_fstest_SOURCES): commands/hexdump.c =>
24687 lib/hexdump.c.
24688 (grub_editenv_SOURCES): util/envblk.c => lib/envblk.c
24689 (pkglib_MODULES): Add crc.mod.
24690 (hexdump_mod_SOURCES): Add lib/hexdump.c.
24691 (loadenv_mod_SOURCES): util/envblk.c => lib/envblk.c.
24692 (crc_mod_SOURCES): New macro.
24693 (crc_mod_CFLAGS): Likewise.
24694 (crc_mod_LDFLAGS): Likewise.
24695
24696 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add lib/hexdump.c.
24697
24698 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
24699
24700 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
24701
24702 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
24703
24704 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
24705
c298def0 247062008-07-27 Felix Zielcke <fzielcke@z-51.de>
8749e9e5 24707
24708 * commands/help.c: Include <grub/term.h>.
24709 (TERM_WIDTH): Removed. Updated all users.
24710
cc349fb3 247112008-07-27 Pavel Roskin <proski@gnu.org>
24712
24713 * util/getroot.c (find_root_device): Rephrase a comment to avoid
24714 spurious warnings about a comment within a comment.
24715
9051607e 247162008-07-25 Robert Millan <rmh@aybabtu.com>
24717
24718 * util/getroot.c (find_root_device): Skip devices that match
24719 /dev/dm-[0-9]. This lets the real device be found for any type of
24720 abstraction (LVM, EVMS, RAID..).
24721 (grub_guess_root_device): Do not traverse /dev/mapper (for LVM)
24722 and /dev/evms (for EVMS) before traversing /dev. If a /dev/dm-[0-9]
24723 device is found first, find_root_device() will now skip it.
24724
01453bfc 247252008-07-24 Pavel Roskin <proski@gnu.org>
24726
24727 * include/grub/types.h: Use __builtin_bswap32() and
24728 __builtin_bswap64() with gcc 4.3 and newer.
24729
6af9849f 247302008-07-24 Christian Franke <franke@computer.org>
24731
3a0fa256 24732 * util/i386/pc/grub-install.in: If `--debug' is specified,
24733 pass `--verbose' to grub-setup.
24734 Abort script if make_system_path_relative_to_its_root() fails.
24735
7810e747 247362008-07-24 Bean <bean123ch@gmail.com>
24737
24738 * configure.ac: Fixed a bug caused by the previous cygwin patch,
24739 variable `target_platform' should be `platform'.
24740
42290e17 247412008-07-24 Bean <bean123ch@gmail.com>
24742
51cc5193 24743 * video/reader/png.c (DEFLATE_HLIT_MAX): Change value.
42290e17 24744 (grub_png_init_fixed_block): New function.
24745 (grub_png_decode_image_data): Handle fixed huffman code compression.
24746
2a8a80e4 247472008-07-24 Bean <bean123ch@gmail.com>
24748
24749 * common.rmk (bin_UTILITIES): Add grub-pe2elf.
24750 (grub_pe2elf_SOURCES): New macro.
24751 (CLEANFILES): Add grub-pe2elf.
24752
24753 * include/grub/efi/pe32.h (GRUB_PE32_SCN_ALIGN_1BYTES): New constant.
24754 (GRUB_PE32_SCN_ALIGN_2BYTES): Likewise.
24755 (GRUB_PE32_SCN_ALIGN_4BYTES): Likewise.
24756 (GRUB_PE32_SCN_ALIGN_8BYTES): Likewise.
24757 (GRUB_PE32_SCN_ALIGN_16BYTES): Likewise.
24758 (GRUB_PE32_SCN_ALIGN_32BYTES): Likewise.
24759 (GRUB_PE32_SCN_ALIGN_64BYTES): Likewise.
24760 (GRUB_PE32_SCN_ALIGN_SHIFT): Likewise.
24761 (GRUB_PE32_SCN_ALIGN_MASK): Likewise.
24762 (GRUB_PE32_SYM_CLASS_EXTERNAL): Likewise.
24763 (GRUB_PE32_SYM_CLASS_STATIC): Likewise.
24764 (GRUB_PE32_SYM_CLASS_FILE): Likewise.
24765 (GRUB_PE32_DT_FUNCTION): Likewise.
24766 (GRUB_PE32_REL_I386_DIR32): Likewise.
24767 (GRUB_PE32_REL_I386_REL32): Likewise.
24768 (grub_pe32_symbol): New structure.
24769 (grub_pe32_reloc): Likewise.
24770
24771 * util/grub-pe2elf.c: New file.
24772
24773 * configure.ac: Set TARGET_OBJ2ELF if host os is cygwin. Don't test for
24774 start symbol in non pc platform.
24775
24776 * genmk.rb: Use TARGET_OBJ2ELF to convert native object format to elf.
24777
24778 The following patches are from Christian Franke.
24779
24780 * include/grub/dl.h: Remove .previous, gas supports this only
24781 for ELF format.
24782
24783 * include/grub/symbol.h [__CYGWIN__] (#define FUNCTION/VARIABLE):
24784 Remove .type, gas supports this only for ELF format.
24785
24786 * kern/dl.c (grub_dl_resolve_dependencies): Add check for trailing
24787 nullbytes in symbol table. This fixes an infinite loop if table is
24788 zero filled.
24789
24790 * Makefile.in: Add autoconf replacements TARGET_IMG_LDSCRIPT,
24791 TARGET_IMG_LDFLAGS and EXEEXT.
24792
24793 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Replace -Wl,-N by
24794 TARGET_IMG_LDFLAGS_AC.
24795 (grub_CHECK_STACK_ARG_PROBE): New function.
24796
24797 * conf/i386-pc.rmk: Replace -Wl,-N by TARGET_IMG_LDFLAGS.
24798
24799 * conf/i386-pc-cygwin-ld-img.sc: New linker script.
24800
24801 * configure.ac: Add check for linker script "conf/${target}-img-ld.c"
24802 to set TARGET_IMG_LD* accordingly.
24803 Add check for Cygwin to set TARGET_MOD_OBJCOPY accordingly.
24804 Add call to grub_CHECK_STACK_ARG_PROBE.
24805 Use TARGET_IMG_LDFLAGS to check start, bss_start, end symbols.
24806
24807 * genkernsyms.sh.in: Handle HAVE_ASM_USCORE case.
24808
24809 * genmk.rb: Add EXEEXT to CLEANFILES.
24810
12ccdb75 248112008-07-23 Robert Millan <rmh@aybabtu.com>
24812
24813 * Makefile.in (UNICODE_ARROWS, UNICODE_LINES): New variables (they
24814 define the codes for arrows and lines used for the menu).
24815 (ascii.pff): Generate fonts for $(UNICODE_ARROWS) and $(UNICODE_LINES)
24816 as well.
24817
24818 * util/update-grub_lib.in (font_path): Prefer ascii.pff over complete
24819 fonts, because the latter are too slow.
24820
18eeaf04 248212008-07-21 Bean <bean123ch@gmail.com>
24822
24823 * kern/i386/pc/startup.S (gate_a20_try_bios): Change test order for
24824 a20. Run keyboard test last, as it will cause macbook to halt.
24825
b095e2ad 248262008-07-18 Pavel Roskin <proski@gnu.org>
24827
24828 * kern/dl.c: Go back to using GRUB_CPU_SIZEOF_VOID_P. We cannot
24829 load foreign architecture modules correctly anyway. Keep
24830 support for loading host architecture modules, whether we
24831 compile them or not.
24832
737feb35 248332008-07-17 Pavel Roskin <proski@gnu.org>
24834
3f4ce737 24835 * configure.ac: Use -m32 or -m64 regardless of whether we had to
24836 change target_cpu. The compiler default can mismatch target_cpu
24837 in any case.
24838
4ad2d049 24839 * disk/efi/efidisk.c: Fix format warnings on x86_64.
24840 * kern/efi/efi.c: Likewise.
24841
f6130a12 24842 * aclocal.m4 (grub_PROG_TARGET_CC): New macro. Check if the
24843 target compiler is functional.
24844 * configure.ac: Call grub_PROG_TARGET_CC once all target flags
24845 are set up.
24846
58393a2d 24847 * configure.ac: Default to efi platform for x86_64-apple. Allow
24848 powerpc64 CPU, default to ieee1275 platform for it. Split CPU
24849 adjustments from the rest, only do them if target is not
24850 explicitly given. Merge other adjustments with the final sanity
24851 check. Remove an extraneous check for supported CPU. Be
24852 specific which CPU and which platform is not supported.
24853
737feb35 24854 * configure.ac: Default to pc platform for x86_64.
24855
546f966a 248562008-07-17 Robert Millan <rmh@aybabtu.com>
24857
24858 Partial LinuxBIOS -> Coreboot rename.
24859
24860 * conf/i386-linuxbios.rmk: Renamed to ...
24861 * conf/i386-coreboot.rmk: ... this.
24862 * Makefile.in (RMKFILES): s/i386-linuxbios.rmk/i386-coreboot.rmk/g.
24863 * configure.ac: Accept "coreboot" as input platform (but maintain
24864 compatibility with "linuxbios").
24865 * include/grub/i386/linuxbios: Renamed to ...
24866 * include/grub/i386/coreboot: ... this.
24867
20011694 248682008-07-17 Bean <bean123ch@gmail.com>
24869
24870 * conf/i386/efi.rmk (pkglib_MODULES): add pci.mod and lspci.mod.
c11f6d16 24871 (appleldr_mod_SOURCE): New variable.
20011694 24872 (appleldr_mod_CFLAGS): Likewise.
24873 (appleldr_mod_LDFLAGS): Likewise.
24874 (pci_mod_SOURCES): Likewise.
24875 (pci_mod_CFLAGS): Likewise.
24876 (pci_mod_LDFLAGS): Likewise.
24877 (lspci_mod_SOURCES): Likewise.
24878 (lspci_mod_CFLAGS): Likewise.
24879 (lspci_mod_LDFLAGS): Likewise.
24880
24881 * conf/x86_64-efi.rmk: New file.
24882
24883 * disk/efi/efidisk.c (grub_efidisk_read): Wrap efi calls with efi_call_N
24884 macro.
24885 (grub_efidisk_write): Likewise.
24886
24887 * include/efi/api.h (efi_call_0): New macro.
24888 (efi_call_1): Likewise.
24889 (efi_call_2): Likewise.
24890 (efi_call_3): Likewise.
24891 (efi_call_4): Likewise.
24892 (efi_call_5): Likewise.
24893 (efi_call_6): Likewise.
24894
24895 * include/grub/efi/chainloader.h (grub_chainloader_cmd): Rename to
24896 grub_rescue_cmd_chainloader.
24897
24898 * include/grub/efi/pe32.h (GRUB_PE32_MACHINE_X86_64): New macro.
24899 (grub_pe32_optional_header): Change some fields based on i386 or
24900 x86_64 platform.
24901 (GRUB_PE32_PE32_MAGIC): Likewise.
24902
24903 * include/grub/efi/uga_draw.h: New file.
24904
24905 * include/grub/elf.h (STN_ABS): New constant.
24906 (R_X86_64_NONE): Relocation constant for x86_64.
24907 (R_X86_64_64): Likewise.
24908 (R_X86_64_PC32): Likewise.
24909 (R_X86_64_GOT32): Likewise.
24910 (R_X86_64_PLT32): Likewise.
24911 (R_X86_64_COPY): Likewise.
24912 (R_X86_64_GLOB_DAT): Likewise.
24913 (R_X86_64_JUMP_SLOT): Likewise.
24914 (R_X86_64_RELATIVE): Likewise.
24915 (R_X86_64_GOTPCREL): Likewise.
24916 (R_X86_64_32): Likewise.
24917 (R_X86_64_32S): Likewise.
24918 (R_X86_64_16): Likewise.
24919 (R_X86_64_PC16): Likewise.
24920 (R_X86_64_8): Likewise.
24921 (R_X86_64_PC8): Likewise.
24922
24923 * include/grub/i386/efi/pci.h: New file.
24924
24925 * include/grub/i386/linux.h (GRUB_LINUX_EFI_SIGNATURE):
24926 Change it value based on platform.
24927 (GRUB_LINUX_EFI_SIGNATURE_0204): New constant.
24928 (GRUB_E820_RAM): Likewise.
24929 (GRUB_E820_RESERVED): Likewise.
24930 (GRUB_E820_ACPI): Likewise.
24931 (GRUB_E820_NVS): Likewise.
24932 (GRUB_E820_EXEC_CODE): Likewise.
24933 (GRUB_E820_MAX_ENTRY): Likewise.
24934 (grub_e820_mmap): New structure.
24935 (linux_kernel_header): Change the efi field according to different
24936 kernel version, also field from linux_kernel_header.
24937
24938 * include/grub/kernel.h (grub_module_info): Add padding for x86_64.
24939
24940 * include/grub/pci.h (GRUB_PCI_ADDR_SPACE_MASK): New constant.
24941 (GRUB_PCI_ADDR_SPACE_MEMORY): Likewise.
24942 (GRUB_PCI_ADDR_SPACE_IO): Likewise.
24943 (GRUB_PCI_ADDR_MEM_TYPE_MASK): Likewise.
24944 (GRUB_PCI_ADDR_MEM_TYPE_32): Likewise.
24945 (GRUB_PCI_ADDR_MEM_TYPE_1M): Likewise.
24946 (GRUB_PCI_ADDR_MEM_TYPE_64): Likewise.
24947 (GRUB_PCI_ADDR_MEM_PREFETCH): Likewise.
24948 (GRUB_PCI_ADDR_MEM_MASK): Likewise.
24949 (GRUB_PCI_ADDR_IO_MASK): Likewise.
24950
24951 * include/grub/x86_64/efi/kernel.h: New file.
24952
24953 * include/grub/x86_64/efi/loader.h: Likewise.
24954
24955 * include/grub/x86_64/efi/machine.h: Likewise.
24956
24957 * include/grub/x86_64/efi/pci.h: Likewise.
24958
24959 * include/grub/x86_64/efi/time.h: Likewise.
24960
24961 * include/grub/x86_64/linux.h: Likewise.
24962
24963 * include/grub/x86_64/setjmp.h: Likewise.
24964
24965 * include/grub/x86_64/time.h: Likewise.
24966
24967 * include/grub/x86_64/types.h: Likewise.
24968
24969 * kern/dl.c (GRUB_CPU_SIZEOF_VOID_P): Changed to
24970 GRUB_TARGET_SIZEOF_VOID_P.
24971
24972 * kern/efi/efi.c (grub_efi_locate_protocol): Wrap efi calls.
24973 (grub_efi_locate_handle): Likewise.
24974 (grub_efi_open_protocol): Likewise.
24975 (grub_efi_set_text_mode): Likewise.
24976 (grub_efi_stall): Likewise.
24977 (grub_exit): Likewise.
24978 (grub_reboot): Likewise.
24979 (grub_halt): Likewise.
24980 (grub_efi_exit_boot_services): Likewise.
24981 (grub_get_rtc): Likewise.
24982
24983 * kern/efi/mm.c (MEMORY_MAP_SIZE): Change to 0x3000 for new models.
24984 (GRUB_CPU_SIZEOF_VOID_P): Changed to GRUB_TARGET_SIZEOF_VOID_P.
24985 (grub_efi_allocate_pages): Wrap efi calls.
24986 (grub_efi_free_pages): Wrap efi calls.
24987 (grub_efi_get_memory_map): Wrap efi calls.
24988
24989 * kern/x86_64/dl.c: New file.
24990
24991 * kern/x86_64/efi/callwrap.S: Likewise.
24992
24993 * kern/x86_64/efi/startup.S: Likewise.
24994
24995 * loader/efi/appleloader.c: Likewise.
24996
24997 * loader/efi/chainloader.c (cmdline): New variable.
24998 (grub_chainloader_unload): Wrap efi calls.
24999 (grub_chainloader_boot): Likewise.
25000 (grub_rescue_cmd_chainloader): Wrap efi calls, handle
25001 command line.
25002
25003 * loader/efi/chainloader_normal.c (chainloader_command):
25004 Change grub_chainloader_cmd to grub_rescue_cmd_chainloader, pass
25005 command line.
25006
25007 * loader/i386/efi/linux.c (allocate_pages): Change allocation
25008 method.
25009 (grub_e820_add_region): New function.
25010 (grub_linux_boot): Construct e820 map from efi map, handle x86_64
25011 booting.
25012 (grub_find_video_card): New function.
25013 (grub_linux_setup_video): New function.
25014 (grub_rescue_cmd_linux): Probe for video information.
25015
25016 * normal/x86_64/setjmp.S: New file.
25017
25018 * term/efi/console.c (map_char): New function.
25019 (grub_console_putchar): Map unicode char.
25020 (grub_console_checkkey): Wrap efi calls.
25021 (grub_console_getkey): Likewise.
25022 (grub_console_getwh): Likewise.
25023 (grub_console_gotoxy): Likewise.
25024 (grub_console_cls): Likewise.
25025 (grub_console_setcolorstate): Likewise.
25026 (grub_console_setcursor): Likewise.
25027
25028 * util/i386/efi/grub-mkimage.c: Add support for x86_64.
25029
59652a20 250302008-07-16 Pavel Roskin <proski@gnu.org>
25031
ef294055 25032 * loader/i386/efi/linux.c (allocate_pages): Fix warnings in
25033 format strings.
25034
59652a20 25035 * util/i386/efi/grub-mkimage.c (get_target_address): Return a
25036 pointer, not an integer. This fixes a warning and prevents
25037 precision loss on 64-bit systems.
25038 (relocate_addresses): Remove unneeded cast.
25039
afc3b5d7 250402008-07-15 Pavel Roskin <proski@gnu.org>
25041
506b2b3e 25042 * kern/i386/ieee1275/init.c: Include grub/cache.h.
25043
62ead89c 25044 * term/ieee1275/ofconsole.c: Disable code unused on i386.
25045
c4cd51d7 25046 * kern/ieee1275/ieee1275.c (grub_ieee1275_get_integer_property):
25047 Fix comparison between signed and unsigned.
25048
0d3d8f28 25049 * include/grub/i386/ieee1275/console.h: Declare
25050 grub_console_init() and grub_console_fini().
25051
8804b286 25052 * loader/i386/ieee1275/linux.c (grub_set_bootpath): Remove.
25053 It's empty and unused.
25054
ee01cf35 25055 * fs/ext2.c (grub_ext2_read_block): Initialize blknr in the
25056 beginning to avoid warnings with some compilers.
25057
afc3b5d7 25058 * loader/ieee1275/multiboot2.c: Include grub/machine/loader.h.
25059 [__i386__] (grub_mb2_arch_boot): Avoid unnecessary cast.
25060
e4e8eaa5 250612008-07-14 Pavel Roskin <proski@gnu.org>
25062
407aceb4 25063 * kern/env.c (grub_register_variable_hook): Don't copy empty
25064 string, it leaks memory. Pass "" to grub_env_set(), it should
25065 handle constant strings.
25066
e4e8eaa5 25067 * commands/blocklist.c (grub_cmd_blocklist): Fix format warning.
25068 * commands/cmp.c (grub_cmd_cmp): Likewise.
25069 * kern/dl.c (grub_dl_flush_cache): Likewise.
25070 (grub_dl_load_core): Likewise.
25071 * kern/elf.c (grub_elf32_load_phdrs): Likewise.
25072 (grub_elf64_load_phdrs): Likewise.
25073
d4e2dad3 250742008-07-13 Pavel Roskin <proski@gnu.org>
25075
25076 * lib/LzmaEnc.c (LzmaEnc_SetProps): Fix warning about comparison
25077 between signed and unsigned.
25078 (LzmaEnc_Finish): Fix warning about an unused parameter.
25079
aa24b516 250802008-07-13 Bean <bean123ch@gmail.com>
25081
25082 * Makefile.in (enable_lzo): New rule.
25083
25084 * conf/i386-pc.rmk (grub_mkimage_SOURCES): New test with enable_lzo.
25085
25086 * configure.ac (ENABLE_LZO): New option --enable-lzo.
25087
25088 * boot/i386/pc/lnxboot.S: #include <config.h>.
25089
25090 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE): Change
fe987087 25091 its value according to the compression algorithm used, lzo or lzma.
aa24b516 25092
25093 * util/i386/pc/grub-mkimage.c (compress_kernel): Use different
25094 compression algorithm according to configure macro.
25095
25096 * kern/i386/pc/startup.S (codestart): Likewise.
25097
25098 * kern/i386/pc/lzma_decode.S: New file.
25099
25100 * include/grub/lib/LzFind.h: Likewise.
25101
25102 * include/grub/lib/LzHash.h: Likewise.
25103
25104 * include/grub/lib/LzmaDec.h: Likewise.
25105
25106 * include/grub/lib/LzmaEnc.h: Likewise.
25107
25108 * include/grub/lib/LzmaTypes.h: Likewise.
25109
25110 * lib/LzFind.c: Likewise.
25111
25112 * lib/LzmaDec.c: Likewise.
25113
25114 * lib/LzmaEnc.c: Likewise.
25115
4ae821ac 251162008-07-13 Bean <bean123ch@gmail.com>
25117
25118 * fs/ext2.c (EXT4_EXTENTS_FLAG): New macro.
25119 (grub_ext4_extent_header): New structure.
25120 (grub_ext4_extent): Likewise.
25121 (grub_ext4_extent_idx): Likewise.
25122 (grub_ext4_find_leaf): New function.
25123 (grub_ext2_read_block): Handle extents.
25124
9a745147 251252008-07-12 Robert Millan <rmh@aybabtu.com>
25126
25127 * util/i386/pc/grub-mkrescue.in: s/grub-install/grub-mkrescue/g.
25128
d49a4cf6 251292008-07-11 Robert Millan <rmh@aybabtu.com>
25130
25131 * util/grub.d/40_custom.in: New file. Example on how to add custom
25132 entries to /etc/grub.d.
25133 * conf/common.rmk (%, update-grub_SCRIPTS, CLEANFILES): Install
25134 40_custom (implicitly, by merging all the grub.d rules).
25135
947414b4 251362008-07-11 Pavel Roskin <proski@gnu.org>
25137
0059cf6f 25138 * commands/read.c (grub_getline): Fix invalid memory access.
25139 Don't add newline to the variable value.
25140
947414b4 25141 * term/i386/pc/serial.c (GRUB_SERIAL_PORT_NUM): New constant.
25142 [!GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Add COM2 and COM3.
25143 (serial_hw_get_port): Check validity of the port number.
25144 (grub_cmd_serial): Check return value of serial_hw_get_port().
25145
62a02d00 251462008-07-07 Pavel Roskin <proski@gnu.org>
25147
25148 * boot/i386/pc/diskboot.S (notification_string): Replace
25149 "Loading kernel" with just "loading". This is shorter, less
25150 confusing and saves a few bytes for possible future changes.
25151
3e5581b0 251522008-07-05 Pavel Roskin <proski@gnu.org>
25153
ea387a48 25154 * disk/ata.c (grub_ata_dumpinfo): Don't output addressing and
25155 size for ATAPI devices, they are undefined. Output sector
25156 number in decimal form.
25157
3e5581b0 25158 * disk/ata.c: Use named constants for status bits.
25159
fdecb8fd 251602008-07-04 Pavel Roskin <proski@gnu.org>
25161
bcd35b90 25162 * kern/i386/linuxbios/init.c (grub_machine_init): Cast addr to
25163 grub_addr_t before casting it to the void pointer to fix a
25164 warning. Non-addressable regions are discarded earlier.
25165 (grub_arch_modules_addr): Cast _end to grub_addr_t.
25166 * kern/i386/linuxbios/table.c: Include grub/misc.h.
25167 (check_signature): Don't shadow table_header.
25168 (grub_linuxbios_table_iterate): Cast numeric constants to
25169 grub_linuxbios_table_header_t.
25170 * include/grub/i386/linuxbios/init.h: Add noreturn attribute to
25171 grub_stop().
25172
af58ab3d 25173 * kern/ieee1275/init.c: Cast _start and _end to grub_addr_t to
25174 prevent warnings.
25175
1759aa57 25176 * include/grub/misc.h (ALIGN_UP): Avoid unnecessary cast to a
25177 pointer, which can cause warnings. Support 64-bit addresses.
25178
fdecb8fd 25179 * util/elf/grub-mkimage.c: Use GRUB_TARGET_SIZEOF_LONG instead
25180 of sizeof(long). This fixes PowerPC image generation on x86_64.
25181
8516d2a8 251822008-07-04 Robert Millan <rmh@aybabtu.com>
25183
25184 This fixes a performance issue when pc & gpt partmap iterators
25185 didn't abort iteration even after our hook found what it was
fe987087 25186 looking for (often causing expensive probes of non-existent drives).
8516d2a8 25187
25188 Some callers relied on previous buggy behaviour, since they would
34c44600 25189 raise an error when their own hooks caused early abortion of its
8516d2a8 25190 iteration.
25191
25192 * kern/device.c (grub_device_open): Improve error message.
25193 * disk/lvm.c (grub_lvm_open): Likewise.
25194 * disk/raid.c (grub_raid_open): Likewise.
25195
25196 * partmap/pc.c (pc_partition_map_iterate): Abort parent iteration
25197 when hook requests it, independently of grub_errno.
25198 (pc_partition_map_probe): Do not fail when find_func() caused
25199 early abortion of pc_partition_map_iterate().
25200
25201 * partmap/gpt.c (gpt_partition_map_iterate): Abort parent iteration
25202 when hook requests it, independently of grub_errno.
25203 (gpt_partition_map_probe): Do not fail when find_func() caused
25204 early abortion of gpt_partition_map_iterate().
25205
25206 * kern/partition.c (grub_partition_iterate): Abort parent iteration
25207 when hook requests it, independently of grub_errno. Do not fail when
25208 part_map_iterate_hook() caused early abortion of p->iterate().
25209
25210 * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Do not fail
25211 when grub_partition_iterate() returned with non-zero.
25212
277d0de9 252132008-07-03 Pavel Roskin <proski@gnu.org>
25214
25215 * disk/ata.c (grub_ata_pio_write): Check status before writing,
25216 like we do in grub_ata_pio_read().
25217 (grub_ata_readwrite): Always write individual sectors. Fix the
25218 sector count for the remainder.
25219 (grub_ata_write): Enable writing to ATA devices. Correctly
25220 report error for ATAPI devices.
25221
d4c9b428 252222008-07-02 Pavel Roskin <proski@gnu.org>
25223
e43fc690 25224 * boot/i386/pc/cdboot.S: Add _start entry to fix a linker
25225 warning.
25226
f707af42 25227 * disk/ata.c (grub_ata_readwrite): Don't increment sector number
25228 for every read sector, we already increment it for the whole
25229 batch. This fixes reading more than 256 sectors at once.
25230
11e16b15 25231 * util/grub-editenv.c (cmd_info): Cast argument to long
25232 explicitly. ptrdiff_t reduces to int on i386.
25233
cbabfdd4 25234 * util/grub-editenv.c (main): Be specific which parameter is
25235 missing.
25236
b8fbce0a 25237 * disk/memdisk.c (memdisk_addr): Make a pointer to fix warnings.
25238 (memdisk): Make memdisk_orig_addr a pointer.
25239
c9c8e606 25240 * fs/reiserfs.c (grub_reiserfs_read): Fix misuse of grub_size_t
25241 for file offsets, use grub_off_t instead. Fix printf format
25242 warnings.
25243
ca62e598 25244 * fs/reiserfs.c: Remove #warning, TODO list items don't belong
25245 there. Real unexpected warnings should not drown in the noise
25246 about known problems.
25247
ce8d1766 25248 * commands/hexdump.c (grub_cmd_hexdump): Fix misuse of
25249 grub_disk_addr_t for memory addresses.
25250
00c7a56a 25251 * loader/aout.c (grub_aout_load): Cast load_addr to pointer
25252 explicitly to fix a warning.
25253
08d3ef09 25254 * util/grub-editenv.c (cmd_info): Fix warning in printf format.
25255
cb71ba20 25256 * Makefile.in (MODULE_LDFLAGS): New variable.
25257 * aclocal.m4 (grub_PROG_LD_BUILD_ID_NONE): New macro. Check if
25258 the linker accepts --build-id=none.
25259 * configure.ac: Call grub_PROG_LD_BUILD_ID_NONE. Substitute
25260 MODULE_LDFLAGS.
25261 * genmk.rb: Use MODULE_LDFLAGS when linking modules.
25262
d4c9b428 25263 * fs/xfs.c (struct grub_xfs_dir_header): Use names similar to
25264 those in Linux XFS code. Provide a way to access 64-bit parent
25265 inode.
25266 (grub_xfs_iterate_dir): Use the new names. Avoid reading past
25267 the end of struct grub_xfs_dir_header.
25268
d4156eee 252692008-07-02 Bean <bean123ch@gmail.com>
25270
25271 * include/grub/ieee1275.h (grub_ieee1275_flag): New constant
25272 GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
25273 and GRUB_IEEE1275_FLAG_NO_ANSI.
25274
25275 * kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set flag
25276 GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
25277 and GRUB_IEEE1275_FLAG_NO_ANSI for Open Hackware.
25278
25279 * kern/ieee1275/ieee1275.c (grub_ieee1275_interpret): Return
25280 immediately if GRUB_IEEE1275_FLAG_CANNOT_INTERPRET is set.
25281
25282 * kern/ieee1275/init.c (grub_claim_heap): Claim memory directly if
25283 GRUB_IEEE1275_FLAG_FORCE_CLAIM is set.
25284
25285 * term/ieee1275/ofconsole.c (grub_ofconsole_writeesc): Don't output
25286 esc sequence on non ANSI terminal.
25287 (grub_ofconsole_gotoxy): Emulate backspace key on non ANSI terminal.
25288
25289 * util/elf/grub-mkimage.c (add_segments): Move ELF header to the
25290 beginning of file.
25291
2270f77b 252922008-07-02 Bean <bean123ch@gmail.com>
25293
25294 * conf/common.rmk (bin_UTILITIES): Add grub-editenv.
25295 (grub_editenv_SOURCES): New variable.
25296 (pkglib_MODULES): Add loadenv.mod.
25297 (loadenv_mod_SOURCES): New variable.
25298 (loadenv_mod_CFLAGS): Likewise.
25299 (loadenv_mod_LDFLAGS): Likewise.
25300
25301 * include/grub/envblk.h: New file.
25302
25303 * util/envblk.c: New file.
25304
25305 * util/grub-editenv.c: New file.
25306
25307 * commands/loadenv.c: New file.
25308
0e9e51ec 253092008-07-01 Pavel Roskin <proski@gnu.org>
25310
d89b7634 25311 * include/multiboot2.h (struct multiboot_tag_module): Use char,
25312 not unsigned char. This fixes warnings and is consistent with
25313 other tags.
25314
bf1835b1 25315 * disk/fs_uuid.c (search_fs_uuid): Correctly increment count.
25316
8222a04b 25317 * normal/parser.y: Define YYENABLE_NLS as 0 to fix warnings.
25318
6a42d99d 25319 * term/tparm.c (analyze): Always set *popcount.
25320
10b159d1 25321 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Remove useless
25322 cast to fix a warning.
25323
b8789f6c 25324 * loader/i386/pc/multiboot2.c (grub_mb2_arch_module_alloc): Use
25325 cast to suppress a warning.
25326
29d7e38a 25327 * fs/afs.c (grub_afs_read_block): Return grub_disk_addr_t, as
25328 grub_fshelp_read_file() expects.
25329
f341f669 25330 * fs/fat.c: Fix UUID calculation on big-endian systems. We
25331 write uuid as a 32-bit value in CPU byte order, so declare and
25332 use it as such.
25333
0e9e51ec 25334 * disk/raid.c: Cast grub_dprintf() arguments to unsigned long
25335 long if the format specifier expects it.
25336 * partmap/gpt.c (gpt_partition_map_iterate): Likewise.
25337 * partmap/pc.c (pc_partition_map_iterate): Likewise.
25338 * fs/ntfs.c (grub_ntfs_uuid): Cast data->uuid to unsigned long
25339 long to fix a warning.
25340 * fs/reiserfs.c (grub_reiserfs_read): Change casts in
25341 grub_dprintf() arguments to fix warnings.
25342
3aefa857 253432008-06-30 Pavel Roskin <proski@gnu.org>
25344
56c7668b 25345 * util/i386/pc/grub-setup.c (setup): Write install_dos_part and
25346 install_bsd_part immediately before core.img is embedded or
25347 modified on disk. This fixes core.img verification if core.img
25348 cannot be embedded.
25349
3aefa857 25350 * util/i386/pc/grub-setup.c (setup): Use core_path_dev, not
25351 core_path to calculate the blocklist.
25352 Patch from Javier Martín <lordhabbit@gmail.com>
25353
5444088d 253542008-06-29 Robert Millan <rmh@aybabtu.com>
25355
25356 * fs/xfs.c (GRUB_XFS_FSB_TO_BLOCK): New macro. Maps filesystem
25357 block to disk block.
25358 (grub_xfs_read_block): Use GRUB_XFS_FSB_TO_BLOCK() on result.
25359 Patch from Niels Böhm <bitbucket@arcor.de>
25360
674835c8 253612008-06-29 Robert Millan <rmh@aybabtu.com>
25362
25363 * util/update-grub_lib.in (font_path): Search for fonts in
25364 /boot/grub first, which is more likely to be readable (we aren't
25365 deciding where fonts live, just looking for them).
25366
f527dbc8 253672008-06-26 Pavel Roskin <proski@gnu.org>
25368
6c2d8df6 25369 * util/biosdisk.c (read_device_map): Don't leave dead map
25370 entries for devices failing stat() check.
25371
f527dbc8 25372 * util/i386/pc/grub-setup.c (setup): Don't reuse core_path, use
25373 core_path_dev for the core.img path on the target device.
25374
aebe3d13 253752008-06-26 Robert Millan <rmh@aybabtu.com>
25376
25377 * disk/fs_uuid.c: New file.
25378 * conf/common.rmk (pkglib_MODULES): Add `fs_uuid.mod'.
25379 (fs_uuid_mod_SOURCES, fs_uuid_mod_CFLAGS)
25380 (fs_uuid_mod_LDFLAGS): New variables.
25381 * include/grub/disk.h (grub_disk_dev_id): Add
25382 `GRUB_DISK_DEVICE_UUID_ID'.
25383 * kern/disk.c (grub_disk_dev_iterate): Allow disk devices not to
25384 implement iterate().
25385
37aaf354 253862008-06-26 Robert Millan <rmh@aybabtu.com>
25387
25388 * util/grub.d/10_linux.in: Avoid passing UUIDs to Linux when either
25389 "/dev/disk/by-uuid/${GRUB_DEVICE_UUID}" does not exist, or when a
25390 Linux image includes no initrd.
25391
25ff262a 253922008-06-21 Javier Martín <lordhabbit@gmail.com>
25393
25394 * util/i386/pc/grub-setup.c (setup): Remove literal "core.img" in a
25395 call to resolve the core image location that effectively appended the
25396 name twice.
25397
76a2bd44 253982008-06-21 Robert Millan <rmh@aybabtu.com>
25399
25400 * util/grub.d/00_header.in: Move last prepare_grub_to_access_device()
25401 call from here ...
25402
25403 * util/grub.d/10_hurd.in: ... to here ...
25404 * util/grub.d/10_linux.in: ... and here.
25405
650e1c79 254062008-06-19 Robert Millan <rmh@aybabtu.com>
25407
fe987087 25408 * kern/main.c (grub_main): Export `prefix' variable immediately
650e1c79 25409 after it has been set by grub_machine_set_prefix().
25410
6ce63911 254112008-06-19 Robert Millan <rmh@aybabtu.com>
25412
25413 * commands/search.c (search_label, search_fs_uuid, search_file): Print
25414 search result when not saving to variable, not the other way around.
25415 When saving to variable, abort iteration as soon as a match is found.
25416
73940cec 254172008-06-19 Robert Millan <rmh@aybabtu.com>
25418
25419 * util/update-grub_lib.in (prepare_grub_to_access_device): Remove
25420 check for partition that provides /boot/grub. Its logic is flawed,
25421 as it prevents prepare_grub_to_access_device() from being called
25422 multiple times.
25423
3c62a39d 254242008-06-19 Robert Millan <rmh@aybabtu.com>
25425
25426 * util/update-grub_lib.in (prepare_grub_to_access_device): Issue
25427 "insmod" command directly when abstraction modules are needed,
fe987087 25428 instead of relying on GRUB_PRELOAD_MODULES (which had no effect
3c62a39d 25429 since it had already been processed).
25430
47395a42 254312008-06-19 Pavel Roskin <proski@gnu.org>
25432
25433 * conf/i386-efi.rmk: Recompile grub-mkimage.c if Makefile has
25434 changed. This is needed in case GRUB_LIBDIR changes.
25435 * conf/i386-ieee1275.rmk: Likewise.
25436 * conf/i386-linuxbios.rmk: Likewise.
25437 * conf/i386-pc.rmk: Likewise.
25438 * conf/powerpc-ieee1275.rmk: Likewise.
25439
a145ac2d 254402008-06-18 Pavel Roskin <proski@gnu.org>
25441
25442 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Rename
25443 kernel_elf_symlist.c to symlist.c for consistency with other
25444 architectures. Update all users.
25445 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
25446
7847c51e 254472008-06-18 Robert Millan <rmh@aybabtu.com>
25448
25449 * util/i386/pc/grub-install.in: If the drive is LVM or RAID, prepend
25450 it in prefix.
25451
25452 * util/i386/pc/grub-setup.c (main): Don't handle prefix at all. Set
25453 `must_embed' to 1 when root_dev is a RAID device. When dest_dev is
25454 a RAID device, run setup() for all members independently on whether
25455 LVM abstraction is being used.
25456 (setup): Don't handle prefix at all; let grub-mkimage take care of it.
25457 If grub-mkimage has set `*install_dos_part == -2', don't override this
25458 value.
25459 Perform *install_dos_part adjustments independently on whether
25460 we're embedding or not.
25461 Clarify error message when image is too big for embedding.
25462 Remove duplicate *install_dos_part stanza.
25463
b23e5644 254642008-06-17 Robert Millan <rmh@aybabtu.com>
25465
25466 * term/ieee1275/ofconsole.c (fgcolor, bgcolor): Remove variables.
25467 (grub_ofconsole_normal_color, grub_ofconsole_highlight_color): New
25468 variables.
25469 (grub_ofconsole_setcolor, grub_ofconsole_getcolor): Load/store
25470 values in grub_ofconsole_normal_color and
25471 grub_ofconsole_highlight_color (they're not directly related to
25472 background and foreground).
25473 (grub_ofconsole_setcolorstate): Extract background and foreground
25474 from grub_ofconsole_normal_color and grub_ofconsole_highlight_color.
25475
0aac2f79 254762008-06-17 Robert Millan <rmh@aybabtu.com>
25477
25478 * util/update-grub_lib.in (prepare_grub_to_access_device): Use
25479 /boot/grub for the check in last commit, not /boot (they could be
25480 different partitions).
25481
3cca7ef3 254822008-06-16 Robert Millan <rmh@aybabtu.com>
25483
25484 * util/update-grub_lib.in (prepare_grub_to_access_device): If we were
25485 asked to setup access for the same partition that provides /boot,
25486 don't bother using UUIDs since our root already has the value we
25487 want.
25488
347396d8 254892008-06-16 Robert Millan <rmh@aybabtu.com>
25490
25491 * util/biosdisk.c (convert_system_partition_to_system_disk): Detect
25492 I2O devices.
25493 Patch from Sven Mueller <sven@debian.org>.
25494
991477f8 254952008-06-16 Robert Millan <rmh@aybabtu.com>
25496
25497 * util/update-grub.in: Check for $EUID instead of $UID.
25498 Reported by Vincent Zweije.
25499
d31a32a1 255002008-06-16 Bean <bean123ch@gmail.com>
25501
fe987087 25502 * fs/ext2.c (grub_ext2_blockgroup): Revert to pre-journal state.
d31a32a1 25503 (grub_ext2_read_block): Likewise.
25504 (grub_ext2_read_inode): Likewise.
25505 (grub_ext2_mount): Likewise.
25506 (grub_ext2_close): Likewise.
25507 (grub_ext3_get_journal): Removed.
25508
fe987087 25509 * fs/reiserfs.c (grub_reiserfs_get_item): Revert to pre-journal state.
d31a32a1 25510 (grub_reiserfs_read_symlink): Likewise.
25511 (grub_reiserfs_mount): Likewise.
25512 (grub_reiserfs_open): Likewise.
25513 (grub_reiserfs_read): Likewise.
25514 (grub_reiserfs_close): Likewise.
25515 (grub_reiserfs_get_journal): Removed.
25516
25517 * fs/fshelp.c (grub_fshelp_read): Removed.
25518 (grub_fshelp_map_block): Likewise.
25519
25520 * include/grub/fshelp.h (grub_fshelp_journal_type): Removed.
25521 (grub_fshelp_journal): Likewise.
25522 (grub_fshelp_read): Likewise.
25523 (grub_fshelp_map_block): Likewise.
25524
3540a760 255252008-06-16 Pavel Roskin <proski@gnu.org>
25526
25527 * conf/powerpc-ieee1275.rmk: Remove -msoft-float, we don't use
25528 floating point anymore.
25529 * include/grub/powerpc/libgcc.h: Leave only necessary exports.
25530
95614c84 255312008-06-15 Pavel Roskin <proski@gnu.org>
25532
25533 * commands/ls.c (grub_ls_list_files): Use integer calculations
25534 for human readable format, avoid floating point use.
25535 * kern/misc.c (grub_ftoa): Remove.
25536 (grub_vsprintf): Remove floating point support.
25537
50465dd6 255382008-06-15 Robert Millan <rmh@aybabtu.com>
25539
fe6b695a 25540 * util/grub.d/10_linux.in: Use the underlying device for loop-AES
50465dd6 25541 devices.
25542 Reported by Max Vozeler.
25543
a9207284 255442008-06-15 Robert Millan <rmh@aybabtu.com>
25545
25546 * util/i386/pc/grub-mkimage.c (generate_image): If we included a drive
25547 in our prefix, set install_{dos,bsd}_part = -2 to indicate this can be
25548 skipped later.
25549 (main): If a memdisk was requested, add "(memdisk)" drive explicitly to
25550 the beginning of the prefix.
25551
25552 * kern/i386/pc/init.c (make_install_device): Remove memdisk check.
25553 It is assumed that if we have a memdisk, grub-mkimage has set
25554 grub_prefix to include the "(memdisk)" drive in it.
25555
a7cbd45a 255562008-06-15 Robert Millan <rmh@aybabtu.com>
25557
25558 * term/i386/pc/console.c [GRUB_MACHINE_LINUXBIOS] (grub_console_init):
25559 Initialize keyboard controller after registering the terminal, so that
25560 grub_printf() can be called from grub_keyboard_controller_init().
25561
21cf716a 255622008-06-15 Robert Millan <rmh@aybabtu.com>
25563
25564 * fs/sfs.c (grub_sfs_read_extent): Fix the count of nodes in
25565 extent-btree which is written as big endian on disk.
25566 Reported by Alain Greppin <al@chilibi.org>.
25567
23a64d8e 255682008-06-14 Robert Millan <rmh@aybabtu.com>
25569
25570 * util/i386/efi/grub-install.in (modules): Remove `_chain'.
25571 * util/i386/pc/grub-install.in (modules): Likewise.
25572
d687651c 255732008-06-13 Pavel Roskin <proski@gnu.org>
25574
25575 * commands/ls.c (grub_ls_list_files): Fix format warnings.
25576
dfe9ddd4 255772008-06-13 Bean <bean123ch@gmail.com>
25578
25579 * commands/hexdump.c (grub_cmd_hexdump): Adjust offset for partition.
25580
25581 * fs/ext2.c (grub_ext3_get_journal): Fix revoke block handling.
25582
25583 * fs/fshelp.c (grub_fshelp_map_block): Don't map block 0 as it's used
25584 to indicate sparse block.
25585
16ae7781 255862008-06-12 Pavel Roskin <proski@gnu.org>
25587
e6d1a308 25588 * fs/ext2.c (grub_ext2_read_inode): Don't normalize block
25589 number, grub_fshelp_read() does it for us.
25590
16ae7781 25591 * fs/fshelp.c (grub_fshelp_read): New function. Implement
25592 linear disk read with journal translation.
25593 * fs/ext2.c: Use grub_fshelp_read() instead of grub_disk_read().
25594 * include/grub/fshelp.h: Declare grub_fshelp_read().
25595
40fd3a2b 255962008-06-09 Pavel Roskin <proski@gnu.org>
25597
25598 * fs/minix.c (grub_minix_mount): Handle error reading
25599 superblock.
25600
f5679726 256012008-06-08 Robert Millan <rmh@aybabtu.com>
25602
25603 * util/i386/pc/grub-setup.c (main): If install drive is an LVM,
25604 don't append the RAID prefix afterwards.
25605 Reported by Clint Adams.
25606
ce525529 256072008-06-08 Robert Millan <rmh@aybabtu.com>
25608
25609 Based on description from Pavel:
25610 * kern/disk.c (grub_disk_check_range): Rename to ...
25611 (grub_disk_adjust_range): ... this. Add a comment explaining the
25612 tasks performed by this function.
25613
ad4936a0 256142008-06-08 Robert Millan <rmh@aybabtu.com>
25615
25616 * include/grub/ntfs.h (struct grub_ntfs_bpb): Rename `serial_number' to
25617 `num_serial' (for consistency with other variables).
25618 (struct grub_ntfs_data): Add `uuid' member.
25619 * fs/ntfs.c (grub_ntfs_mount): Initialize `data->uuid'.
25620 (grub_ntfs_uuid): New function.
25621 (grub_ntfs_fs): Reference grub_ntfs_uuid() in `uuid' struct member.
25622
dc20b0f9 256232008-06-07 Pavel Roskin <proski@gnu.org>
25624
25625 * util/biosdisk.c (open_device): Revert last change to the
25626 function, it broke installation. The sector needs to be
25627 different dependent on which device is opened.
25628
c5e3cfba 256292008-06-06 Robert Millan <rmh@aybabtu.com>
25630
25631 Ensure GRUB_KERNEL_MACHINE_DATA_END is always consistent with the
25632 rest of GRUB, and breakage doesn't happen if its value were modified.
25633
25634 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
25635 Redefine as an offset from `GRUB_KERNEL_MACHINE_DATA_END' instead of
25636 a constant (same value).
25637 * kern/i386/pc/startup.S: Replace hardcoded `0x50' with
25638 `GRUB_KERNEL_MACHINE_DATA_END' (same value).
25639
26a1f8c4 256402008-06-06 Robert Millan <rmh@aybabtu.com>
25641
25642 * util/biosdisk.c (open_device): Do not modify sector offset when
25643 accessing a partition. kern/disk.c already handles this for us.
25644
25d6b327 256452008-06-06 Robert Millan <rmh@aybabtu.com>
25646
25647 * util/grub-emu.c (grub_machine_init): Move code in this function from
25648 here ...
25649 (main): ... to here (before grub_util_biosdisk_init() call, to prevent
25650 segfault in case grub_printf() is called).
25651
25652 * util/i386/pc/grub-install.in: Append `--device-map=${device_map}' to
25653 grub_probe. Update all users not to explicitly add it again.
25654 (grub_device): New variable; contains corresponding device for grubdir.
25655 (fs_module, partmap_module, devabstraction_module): Pass
25656 `--device ${grub_device}' to grub_probe to avoid traversing /dev
25657 every time.
25658
9ece62fb 256592008-06-05 Robert Millan <rmh@aybabtu.com>
25660
25661 * normal/misc.c (grub_normal_print_device_info): When a filesystem UUID
25662 is found, print it (same layout as with labels).
25663
1ad36d37 256642008-06-04 Robert Millan <rmh@aybabtu.com>
25665
25666 * util/biosdisk.c (get_drive): Rename to ...
25667 (find_grub_drive): ... this. Update all users.
25668
25669 (get_os_disk): Rename to ...
25670 (convert_system_partition_to_system_disk): ... this. Update all users.
25671
25672 (find_drive): Rename to ...
25673 (find_system_device): ... this. Update all users.
25674
e6a30859 256752008-06-04 Robert Millan <rmh@aybabtu.com>
25676
25677 * util/biosdisk.c (get_os_disk): Handle IDA devices.
25678 * util/grub-mkdevicemap.c (get_mmc_disk_name)
25679 (make_device_map): Likewise.
25680
00c108a4 256812008-06-01 Robert Millan <rmh@aybabtu.com>
25682
25683 * util/biosdisk.c (get_drive): Verify that `map[i].drive' is non-NULL
25684 before dereferencing it.
25685
25686 * fs/fat.c (struct grub_fat_bpb): Move fat32-specific fields into a
25687 union with fat12/fat16-specific ones. Add some new fields, including
25688 `num_serial' for both versions.
25689 (struct grub_fat_data): Add `uuid' member.
25690 (grub_fat_mount): Refer to fat32-specific fields in `bpb' by their new
25691 names. Initialize `data->uuid' using `num_serial'.
25692 (grub_fat_uuid): New function.
25693 (grub_fat_fs): Reference grub_fat_uuid() in `uuid' struct member.
25694
25695 * fs/reiserfs.c (grub_reiserfs_superblock): Add `uuid' field.
25696 (grub_reiserfs_uuid): New function.
25697 (grub_reiserfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct
25698 member.
25699
25700 * fs/xfs.c (grub_xfs_sblock): Add `uuid' field.
25701 (grub_xfs_uuid): New function.
25702 (grub_xfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct member.
25703
1385c5bb 257042008-06-01 Robert Millan <rmh@aybabtu.com>
25705
25706 * util/update-grub_lib.in (prepare_grub_to_access_device): Generate
25707 code that is backward compatible with pre-uuid search command.
25708
c682dfd7 257092008-05-31 Robert Millan <rmh@aybabtu.com>
25710
25711 * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Iterate through
25712 floppies after everything else, to ensure floppy drive isn't accessed
25713 unnecessarily (patch from Bean).
25714
b7db5d47 257152008-05-31 Robert Millan <rmh@aybabtu.com>
25716
25717 * commands/search.c (search_label, search_fs_uuid, search_file): Do
25718 not print device names when we were asked to set a variable.
25719
6e037aa9 257202008-05-31 Robert Millan <rmh@aybabtu.com>
25721
25722 * term/ieee1275/ofconsole.c (grub_ofconsole_setcursor): Implement
25723 using "cursor-on" and "cursor-off" commands (understood at least by
25724 the Open Firmware flavour on OLPC).
25725
41305bc8 257262008-05-31 Michael Gorven <michael@gorven.za.net>
25727
25728 * term/terminfo.c (grub_terminfo_set_current): Correct vt100 cursor
25729 on and off sequences.
25730
69ba137e 257312008-05-31 Robert Millan <rmh@aybabtu.com>
25732
25733 * util/update-grub_lib.in: Replace `grub-probe' with `${grub_probe}'.
25734 * util/update-grub.in: Likewise.
25735
520ae21b 257362008-05-30 Pavel Roskin <proski@gnu.org>
25737
25738 * util/biosdisk.c (linux_find_partition): Simplify logic and
25739 make the code more universal. Keep special processing for
25740 devfs, but use a simple rule for all other devices. If the
25741 device ends with a number, append 'p' and the partition number.
25742 Otherwise, append only the partition number.
25743
5786569b 257442008-05-30 Robert Millan <rmh@aybabtu.com>
25745
25746 * util/update-grub.in (GRUB_DISABLE_LINUX_UUID): Export variable.
25747 * util/grub.d/10_linux.in: If GRUB_DEVICE_UUID is set, and
25748 GRUB_DISABLE_LINUX_UUID isn't true, use the filesystem UUIDs as
25749 the `root' parameter to Linux.
25750
51500452 257512008-05-30 Robert Millan <rmh@aybabtu.com>
25752
25753 * commands/search.c (options): Rename --fs_uuid to --fs-uuid.
25754 * util/update-grub_lib.in (prepare_grub_to_access_device): Replace
25755 --fs_uuid with --fs-uuid.
25756 * util/update-grub.in: Allow filesystem UUID probes to fail (since not
25757 all filesystems support them).
25758
811d3878 257592008-05-30 Robert Millan <rmh@aybabtu.com>
25760
25761 * fs/ext2.c (grub_ext2_uuid): Use `04x' instead of '02x' as
f19dbdb7 25762 grub_printf() flags, since we're printing in units of 2 bytes.
811d3878 25763
cab63c95 257642008-05-30 Robert Millan <rmh@aybabtu.com>
25765
25766 * util/grub.d/00_header.in: Remove obsolete comment referencing
25767 convert_system_path_to_grub_path().
25768 * util/update-grub.in: Likewise.
25769 * util/update-grub_lib.in (is_path_readable_by_grub): New function.
25770 (convert_system_path_to_grub_path): Add a warning message explaining
25771 that this function is deprecated. Rely on is_path_readable_by_grub()
25772 for the readability checks.
25773 (font_path): Use is_path_readable_by_grub() for the readability
25774 check rather than convert_system_path_to_grub_path().
25775
972e2f7a 257762008-05-30 Robert Millan <rmh@aybabtu.com>
25777
25778 * util/update-grub_lib.in (prepare_grub_to_access_device): New function.
25779 * util/update-grub.in: Set `GRUB_FONT_PATH' to the system path, without
25780 converting it first.
25781 * util/grub.d/00_header.in: Use prepare_grub_to_access_device() to setup
25782 grub.cfg for access to font file, and afterwards call it again to set
25783 the root device.
25784
62191274 257852008-05-30 Robert Millan <rmh@aybabtu.com>
25786
25787 * commands/search.c (options): Add --fs_uuid option.
25788 (search_fs_uuid): New function.
25789 (grub_cmd_search): Fix --set argument passing.
25790 Use search_fs_uuid() when requested via --fs_uuid.
25791 (grub_search_init): Update help message.
25792 * fs/ext2.c (struct grub_ext2_sblock): Rename `unique_id' to `uuid'
25793 and redeclare it as an array of 16-bit words.
25794 (grub_ext2_uuid): New function.
25795 (grub_ext2_fs): Reference grub_ext2_uuid() in `uuid' struct member.
25796 * include/grub/fs.h (struct grub_fs): Add `uuid' struct member.
25797 * util/update-grub.in (GRUB_DEVICE_UUID, GRUB_DEVICE_BOOT)
25798 (GRUB_DEVICE_BOOT_UUID): New variables.
25799 (GRUB_DRIVE. GRUB_DRIVE_BOOT. GRUB_DRIVE_BOOT_GRUB): Remove.
25800 * util/grub.d/00_header.in: Set root using `search --fs_uuid' command
25801 whenever possible.
25802 * util/grub.d/10_hurd.in: Avoid explicit use of root drive. Instead,
25803 just assume `root' variable has the right value.
25804 * util/grub.d/10_linux.in: Likewise.
25805 * util/grub-probe.c (probe): Probe for filesystem UUID when requested
25806 via PRINT_FS_UUID.
25807 (main): Recognise `-t fs_uuid' argument.
25808
01b73ec8 258092008-05-30 Robert Millan <rmh@aybabtu.com>
25810
25811 * util/biosdisk.c (map): Redefine structure to hold information
25812 about GRUB drive name.
fe6b695a 25813 (get_drive): Reimplement without assuming (and verifying) BIOS-like
01b73ec8 25814 drive names.
25815 (call_hook): Remove.
25816 (grub_util_biosdisk_iterate): Access drive names via `.drive' struct
25817 member. Assume drive has partitions.
25818 (grub_util_biosdisk_open): Access device names via `.device' struct
25819 member.
25820 (open_device): Likewise.
25821 (find_drive): Likewise.
25822 (read_device_map): Adjust map[] usage to match the new struct
25823 definition. Don't check for duplicates (still possible, but not cheap
25824 anymore).
25825 (grub_util_biosdisk_fini): Free malloced buffers referenced by map[].
25826 (make_device_name): Remove assumption of BIOS-like drive names.
25827
22f16596 258282008-05-30 Pavel Roskin <proski@gnu.org>
25829
25830 * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Remove, as
25831 compiling execute.c doesn't need grub_script.tab.h anymore.
25832 (normal/command.c_DEPENDENCIES): Likewise.
25833 (normal/function.c_DEPENDENCIES): Likewise.
25834 * conf/i386-ieee1275.rmk: Likewise.
25835 * conf/i386-linuxbios.rmk: Likewise.
25836 * conf/i386-pc.rmk: Likewise.
25837 * conf/powerpc-ieee1275.rmk: Likewise.
25838 * conf/sparc64-ieee1275.rmk: Likewise.
25839
528ad8f2 258402008-05-29 Pavel Roskin <proski@gnu.org>
25841
d1dff95d 25842 * disk/lvm.c (grub_lvm_scan_device): Check for the buffer end
25843 when scanning metadata for volume group name.
25844
528ad8f2 25845 * include/grub/script.h: Don't include grub_script.tab.h. It's
25846 a generated file, which may only be included from the files with
25847 DEPENDENCIES rules in the makefile. Don't use typedef YYSTYPE,
25848 use union YYSTYPE, as the later allows forward declaration.
25849 * normal/lexer.c: Don't use typedef YYSTYPE, use union YYSTYPE.
25850
47248e08 258512008-05-29 Robert Millan <rmh@aybabtu.com>
25852
25853 * term/i386/pc/at_keyboard.c: Include `grub/machine/machine.h'.
25854 (OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): New macros.
25855 [GRUB_MACHINE_IEEE1275] (keyboard_map): Add OLPC scan codes
25856 (grub_console_checkkey): Add grub_dprintf() call to report unknown
25857 scan codes.
25858
ee632529 258592008-05-29 Robert Millan <rmh@aybabtu.com>
25860
25861 * term/i386/pc/at_keyboard.c (grub_console_checkkey): Add support for
25862 control key combinations.
25863
eee96e08 258642008-05-29 Robert Millan <rmh@aybabtu.com>
25865
25866 * util/powerpc/ieee1275/grub-install.in: Move from here ...
25867 * util/ieee1275/grub-install.in: ... to here.
25868 * powerpc-ieee1275.rmk (grub_install_SOURCES): Update location.
25869 * i386-ieee1275.rmk (sbin_SCRIPTS): New variable.
25870 (grub_install_SOURCES): Likewise.
25871
da9a6a94 258722008-05-29 Robert Millan <rmh@aybabtu.com>
25873
25874 * fs/affs.c: Update copyright year.
25875 * fs/ext2.c: Likewise.
25876 * fs/fshelp.c: Likewise.
25877 * fs/hfsplus.c: Likewise.
25878 * fs/ntfs.c: Likewise.
25879 * fs/xfs.c: Likewise.
25880 * include/grub/fshelp.h: Likewise.
25881 * util/grub-mkdevicemap.c: Likewise.
25882
12e65f3a 258832008-05-28 Robert Millan <rmh@aybabtu.com>
25884
25885 * util/update-grub.in: Allow chmod call to fail, since /boot/grub/
25886 might need to be fatfs to support some firmware implementations
25887 (e.g. OFW or EFI).
25888
23023641 258892008-05-28 Robert Millan <rmh@aybabtu.com>
25890
25891 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle MMC
25892 devices.
25893 * util/grub-mkdevicemap.c (get_mmc_disk_name)
25894 (make_device_map): Likewise.
25895
887d2619 258962008-05-20 Bean <bean123ch@gmail.com>
25897
25898 * fs/fshelp.c (grub_fshelp_map_block): New function.
25899 (grub_fshelp_find_file): Use 64-bit type for pos and block address.
25900 Use `>>' and `&' operator to avoid 64-bit divide and modulo.
25901
25902 * include/grub/fshelp.h (grub_fshelp_journal_type): New enum.
25903 (GRUB_FSHELP_JOURNAL_UNUSED_MAPPING): New macro.
25904 (grub_fshelp_journal): New structure.
25905 (grub_fshelp_map_block): New function prototype.
25906 (grub_fshelp_read_file): Use grub_disk_addr_t as block type.
25907 (grub_fshelp_map_block): Likewise.
25908
25909 * fs/ext2.c (EXT3_FEATURE_COMPAT_HAS_JOURNAL): New macro.
25910 (EXT3_JOURNAL_MAGIC_NUMBER): Likewise.
25911 (EXT3_JOURNAL_DESCRIPTOR_BLOCK): Likewise.
25912 (EXT3_JOURNAL_COMMIT_BLOCK): Likewise.
25913 (EXT3_JOURNAL_SUPERBLOCK_V1): Likewise.
25914 (EXT3_JOURNAL_SUPERBLOCK_V2): Likewise.
25915 (EXT3_JOURNAL_REVOKE_BLOCK): Likewise.
25916 (EXT3_JOURNAL_FLAG_ESCAPE): Likewise.
25917 (EXT3_JOURNAL_FLAG_SAME_UUID): Likewise.
25918 (EXT3_JOURNAL_FLAG_DELETED): Likewise.
25919 (EXT3_JOURNAL_FLAG_LAST_TAG): Likewise.
25920 (grub_ext2_sblock): New members for journal support.
25921 (grub_ext3_journal_header): New structure.
25922 (grub_ext3_journal_revoke_header): Likewise.
25923 (grub_ext3_journal_block_tag): Likewise.
25924 (grub_ext3_journal_sblock): Likewise.
25925 (grub_fshelp_node): New members logfile and journal.
25926 (grub_ext2_read_block): Change block type to grub_disk_addr_t. Use
25927 grub_fshelp_map_block to get real block number.
25928 (grub_ext2_blockgroup): Use grub_fshelp_map_block to get real block
25929 number.
25930 (grub_ext2_read_inode): Likewise.
25931 (grub_ext3_get_journal): New function.
25932 (grub_read_inode): Initialize journal using grub_ext3_get_journal.
25933 (grub_ext2_close): Release memory used by journal.
25934
25935 * fs/reiserfs.c (REISERFS_MAGIC_STRING): Changed to "ReIsEr".
25936 (REISERFS_MAGIC_DESC_BLOCK): New macro.
25937 (grub_reiserfs_transaction_header): Renamed to
25938 grub_reiserfs_description_block, replace field data with real_blocks.
25939 (grub_reiserfs_commit_block): New structure.
25940 (grub_reiserfs_data): New member journal.
25941 (grub_reiserfs_get_item): Use grub_fshelp_map_block to get real block
25942 number.
25943 (grub_reiserfs_read_symlink): Likewise.
25944 (grub_reiserfs_iterate_dir): Likewise.
25945 (grub_reiserfs_open): Likewise.
25946 (grub_reiserfs_read): Likewise.
25947 (grub_reiserfs_get_journal): New function.
25948 (grub_reiserfs_mount): Use "ReIsEr" as super block magic, as there are
25949 three varieties ReIsErFs, ReIsEr2Fs and ReIsEr3Fs. Initialize journal
25950 using grub_reiserfs_get_journal.
25951 (grub_reiserfs_close): Release memory used by journal.
25952
25953 * fs/affs.c (grub_affs_read_block): Change block type to
25954 grub_disk_addr_t. Use grub_divmod64 to do 64-bit division.
25955
25956 * fs/afs.c (grub_afs_read_block): Change block type to grub_disk_addr_t.
25957
25958 * fs/hfsplus.c (grub_hfsplus_read_block): Likewise.
25959
25960 * fs/ntfs.c (grub_ntfs_read_block): Likewise.
25961
25962 * fs/udf.c (grub_udf_read_block): Change block type to
25963 grub_disk_addr_t. Use type cast to avoid warning.
25964
25965 * fs/xfs.c (grub_xfs_read_block): Likewise.
25966
b7c6bed5 259672008-05-16 Christian Franke <franke@computer.org>
25968
25969 * commands/cat.c (grub_cmd_cat): Remove non-ESC keys from keyboard queue
25970 to ensure that break with ESC will always work.
25971 * commands/sleep.c (grub_interruptible_millisleep): Likewise.
25972 Remove ESC from keyboard queue.
25973
eedf167f 259742008-05-16 Christian Franke <franke@computer.org>
25975
25976 * util/biosdisk.c: [__CYGWIN__] Add includes.
25977 (grub_util_biosdisk_open): Use Linux code also for Cygwin.
25978 (get_os_disk): Move variable declarations to OS specific
25979 parts to avoid warning.
25980 [__GNU__] (get_os_disk): Fix /dev/sdXsN case.
25981 [__CYGWIN__] (get_os_disk): Add Cygwin /dev/sdXN device names.
25982 (grub_util_biosdisk_get_grub_dev): Use Linux code also for
25983 Cygwin.
25984 * util/getroot.c: [__CYGWIN__] Add includes.
25985 (strip_extra_slashes): Fix "/" case.
25986 [__CYGWIN__] (get_win32_path): New function.
25987 [__CYGWIN__] (grub_get_prefix): Add conversion to win32 path.
25988 [__CYGWIN__] (find_root_device): Disable.
25989 [__CYGWIN__] (get_bootsec_serial): New function.
25990 [__CYGWIN__] (find_cygwin_root_device): Likewise.
25991 [__linux__] (grub_guess_root_device): Add early returns to simplify
25992 structure.
25993 [__CYGWIN__] (grub_guess_root_device): Call find_cygwin_root_device.
25994 [__linux__] (grub_util_get_dev_abstraction): Enable LVM and RAID
25995 check for Linux only.
25996
a079699e 259972008-05-15 Bean <bean123ch@gmail.com>
25998
25999 * kern/i386/pc/startup.S (grub_console_getkey): Workaround for the
26000 keyboard hang problem in apple's intel mac.
26001
1cf4059a 260022008-05-09 Robert Millan <rmh@aybabtu.com>
26003
26004 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle Virtio
26005 devices.
26006 * util/grub-mkdevicemap.c (get_virtio_disk_name)
26007 (make_device_map): Likewise.
26008 Reported by Aurelien Jarno <aurel32@debian.org>
26009
ed759390 260102008-05-07 Ian Campbell <ijc@hellion.org.uk>
26011
26012 * util/biosdisk.c (get_os_disk): Recognise xvd type disks.
26013 * util/grub-mkdevicemap.c (get_xvd_disk_name): New function.
26014 (make_device_map): Output entries for xvd type disks.
26015
b56c4eaa 260162008-05-07 Robert Millan <rmh@aybabtu.com>
26017
26018 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle CCISS
26019 devices.
26020 * util/grub-mkdevicemap.c (get_cciss_disk_name)
26021 (make_device_map): Likewise.
26022 Reported by Roland Dreier <rdreier@cisco.com>
26023
7f8866ed 260242008-05-07 Robert Millan <rmh@aybabtu.com>
26025
26026 * disk/lvm.c (grub_lvm_scan_device): Detect errors in an additional
26027 grub_strstr() call. Correct a few mistakes in failure path handling.
26028
b0346e0f 260292008-05-06 Robert Millan <rmh@aybabtu.com>
26030
26031 * util/update-grub_lib.in (make_system_path_relative_to_its_root):
26032 Do not print a trailing slash (therefore, the root directory is an
26033 empty string).
26034 (convert_system_path_to_grub_path): Do not remove trailing slash
26035 from make_system_path_relative_to_its_root() output.
26036
26037 * util/i386/pc/grub-install.in: Add trailing slash to output from
26038 make_system_path_relative_to_its_root().
26039
6cf12cbd 260402008-05-06 Robert Millan <rmh@aybabtu.com>
26041
26042 * util/grub-fstest.c (grub_refresh): Call `fflush (stdout)'. This
26043 ensures that output lines aren't intermangled with those sent to
26044 stderr (via grub_util_info()).
26045 * util/grub-probe.c (grub_refresh): Likewise.
26046 * util/i386/pc/grub-setup.c (grub_refresh): Likewise.
26047
0fbb3117 260482008-05-05 Christian Franke <franke@computer.org>
26049
26050 * util/grub-mkdevicemap.c (get_floppy_disk_name) [__CYGWIN__]:
26051 Add Cygwin device names.
26052 (get_ide_disk_name) [__CYGWIN__]: Likewise.
26053 (get_scsi_disk_name) [__CYGWIN__]: Likewise.
26054 (check_device): Return error instead of success on empty name.
26055 (make_device_map): Move label inside linux specific code to
26056 prevent compiler warning.
26057
8124cdb7 260582008-04-30 Robert Millan <rmh@aybabtu.com>
26059
26060 Based on patch from Fabian Greffrath <greffrath@leat.rub.de>
26061 * util/grub.d/10_linux.in: Add ${GRUB_CMDLINE_LINUX_DEFAULT} to the
26062 first boot option.
26063 * util/update-grub.in: Export GRUB_CMDLINE_LINUX_DEFAULT.
26064
094c01d0 260652008-04-29 Robert Millan <rmh@aybabtu.com>
26066
26067 * docs/grub.cfg: New file (example GRUB configuration).
26068
f4b1fc02 260692008-04-26 Robert Millan <rmh@aybabtu.com>
26070
329ce2a5 26071 * DISTLIST: Sort (sort -u < DISTLIST | sponge DISTLIST). Add
26072 `loader/i386/ieee1275/linux.c', `loader/i386/ieee1275/linux_normal.c'
26073 and `disk/ieee1275/nand.c'.
f4b1fc02 26074
25f16ec1 260752008-04-25 Bean <bean123ch@gmail.com>
f19dbdb7 26076
25f16ec1 26077 * Makefile.in (RMKFILES): Add missing arch i386-ieee1275 and
26078 i386-linuxbios.
26079
26080 * commands/hexdump.c (grub_cmd_hexdump): Support dumping of device,
26081 change the buffer size to 4096 for cdrom device.
26082
26083 * conf/i386-ieee1275.rmk (pkglib_MODULES): Add _linux.mod, linux.mod
26084 and nand.mod.
26085 (_linux_mod_SOURCES): New variable.
26086 (_linux_mod_CFLAGS): Likewise.
26087 (_linux_mod_LDFLAGS): Likewise.
26088 (linux_mod_SOURCES): Likewise.
26089 (linux_mod_CFLAGS): Likewise.
26090 (linux_mod_LDFLAGS): Likewise.
26091 (nand_mod_SOURCES): Likewise.
26092 (nand_mod_CFLAGS): Likewise.
26093 (nand_mod_LDFLAGS): Likewise.
26094
26095 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Return
26096 GRUB_ERR_UNKNOWN_DEVICE instead of GRUB_ERR_BAD_DEVICE if no device
26097 type property. (nand device in olpc don't have this property)
26098
26099 * include/grub/disk.h (grub_disk_dev_id): New macro
26100 GRUB_DISK_DEVICE_NAND_ID.
26101
26102 * include/grub/i386/ieee1275/loader.h (grub_rescue_cmd_linux): New
26103 function prototype.
26104 (grub_rescue_cmd_initrd): Likewise.
26105
26106 * include/grub/i386/linux.h (GRUB_LINUX_OFW_SIGNATURE): New macro.
26107 (linux_kernel_params): Add new member ofw_signature, ofw_num_items,
26108 ofw_cif_handler and ofw_idt, adjust padding number.
f19dbdb7 26109
25f16ec1 26110 * include/grub/i386/pc/memory.h (grub_upper_mem): Export it if
26111 GRUB_MACHINE_IEEE1275 is defined.
26112
26113 * include/grub/ieee1275/ieee1275.h (grub_available_iterate):
26114 Use NESTED_FUNC_ATTR attribute on the hook parameter.
26115
26116 * kern/powerpc/ieee1275/init.c (grub_claim_heap): Use NESTED_FUNC_ATTR
26117 on nested function heap_init.
26118 (grub_upper_mem): New variable for i386-ieee1275.
26119 (grub_get_extended_memory): New function for i386-ieee1275.
26120 (grub_machine_init): Call grub_get_extended_memory for i386-ieee1275.
26121
26122 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Use
26123 NESTED_FUNC_ATTR on the hook parameter. Don't quit if no device type
26124 property.
f19dbdb7 26125
25f16ec1 26126 * loader/i386/ieee1275/linux.c: New file.
26127
26128 * loader/i386/ieee1275/linux_normal.c: New file.
26129
26130 * disk/ieee1275/nand.c: New file.
26131
e89d61e9 261322008-04-18 Thomas Schwinge <tschwinge@gnu.org>
26133
26134 * util/i386/pc/grub-mkrescue.in (grub_mkimage): Don't overwrite correct
26135 value.
26136 * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Likewise.
26137
602566f6 261382008-04-18 Robert Millan <rmh@aybabtu.com>
26139
26140 Restructures early code path on ieee1275 to unify grub_main() as
26141 the first C function that is executed in every platform.
26142
26143 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_init): New prototype.
26144 * kern/i386/ieee1275/startup.S (_start): Jump to grub_main() instead of
26145 cmain().
26146 * kern/powerpc/ieee1275/crt0.S (_start): Likewise.
26147 * kern/ieee1275/cmain.c (cmain): Rename to ...
26148 * kern/ieee1275/cmain.c (grub_ieee1275_init): ... this.
26149 * kern/ieee1275/init.c (grub_machine_init): Call grub_ieee1275_init()
26150 at the beginning.
26151
57490c2b 261522008-04-18 Robert Millan <rmh@aybabtu.com>
26153
26154 * util/update-grub.in: Fix syntax error when setting
26155 `GRUB_PRELOAD_MODULES'.
26156 Reported by Stephane Chazelas <stephane@artesyncp.com>
26157
1977517d 261582008-04-17 Lubomir Kundrak <lkundrak@redhat.com>
26159
26160 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): take only .text
26161 section into account, newer toolchains generate unique build ids
26162 * configure.ac: remove the test for --build-id=none acceptance,
e0c5dacb 26163 we want build ids to be preserved
1977517d 26164 * genmk.rb: add -R .note.gnu.build-id to objcopy, so build id
26165 far from other sections don't cause the raw binary images grow
26166 size
26167
bfb1f1a2 261682008-04-15 Robert Millan <rmh@aybabtu.com>
26169
26170 * disk/lvm.c: Update copyright year.
26171 * kern/misc.c: Likewise.
26172
01979850 261732008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
26174
26175 * disk/lvm.c (grub_lvm_scan_device): Add forgotten failure path when
f19dbdb7 26176 there is no memory left for physical volume name.
01979850 26177
0a1150e2 261782008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
26179
26180 * disk/lvm.c (grub_lvm_scan_device): Fix logical volume's physical
26181 volume name mapping to support bigger than 9 character names properly.
26182
82ead3fe 261832008-04-13 Robert Millan <rmh@aybabtu.com>
26184
26185 * disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Fix CHS limit check,
26186 as per http://www.allensmith.net/Storage/HDDlimit/Int13h.htm
26187
e54a72f5 261882008-04-13 Christian Franke <franke@computer.org>
26189
26190 * util/i386/pc/grub-mkrescue.in: Add --emulation=floppy
26191 to create a floppy emulation boot CD when non emulation mode
26192 does not work.
26193 Enable Joliet CD filesystem extension.
26194
9fe86034 261952008-04-13 Robert Millan <rmh@aybabtu.com>
26196
26197 * kern/misc.c (grub_strncat): Fix off-by-one error.
26198 Reported by Zhang Huan <zhanghuan@nrchpc.ac.cn>
26199
26200 * kern/env.c (grub_env_context_close): Clear current context, not
26201 previous one.
26202 Patch from Zhang Huan <zhanghuan@nrchpc.ac.cn>
26203
26204 * kern/misc.c (grub_strcat): Minor speed optimization (same code size).
26205
7ceeee39 262062008-04-13 Robert Millan <rmh@aybabtu.com>
26207
26208 Improve robustness when handling LVM.
26209
26210 * disk/lvm.c (grub_lvm_getvalue): Return 0 when `*p' is NULL
f19dbdb7 26211 (and leave `*p' unmodified).
7ceeee39 26212 (grub_lvm_iterate): Don't assume `vg->lvs != NULL' when iterating
26213 through it.
26214 (grub_lvm_memberlist): Don't assume `lv->vg->pvs != NULL' when
26215 iterating through it.
26216 (grub_lvm_open): Don't assume `vg->lvs != NULL' when iterating
26217 through it.
fe6b695a 26218 (grub_lvm_scan_device): Check the return value (and fail gracefully
7ceeee39 26219 when due) on each grub_lvm_getvalue() or grub_strstr() call.
26220 Don't assume `vg->pvs != NULL' when iterating through it.
26221
58cd3d85 262222008-04-13 Robert Millan <rmh@aybabtu.com>
26223
26224 * gendistlist.sh (EXTRA_DISTFILES): Add `genpartmaplist.sh'.
26225 * genmk.rb (partmap): New variable.
26226 (CLEANFILES, PARTMAPFILES): Add #{partmap}.
26227 (#{partmap}): New target rule.
26228 * genpartmaplist.sh: New file.
26229 * Makefile.in (pkglib_DATA): Add partmap.lst.
26230 (partmap.lst): New target rule.
26231 * util/i386/pc/grub-mkrescue.in: Generate grub.cfg that loads needed
26232 modules (including all partition maps), instead of preloading them.
26233
78b51059 262342007-04-13 Fabian Greffrath <fabian.greffrath@web.de>
26235
26236 * util/grub.d/30_os-prober.in: New script. Use `os-prober' and
26237 `linux-boot-prober' (if installed) to detect other operating
26238 systems which are installed on the computer and add them to
26239 the boot menu.
26240 * conf/common.rmk: Build and install 30_os-prober.
26241
a91627b4 262422008-04-12 Robert Millan <rmh@aybabtu.com>
26243
26244 * kern/powerpc/ieee1275/init.c: Move from here ...
26245 * kern/ieee1275/init.c: ... to here. Update all users.
26246
26247 * kern/powerpc/ieee1275/cmain.c: Move from here ...
26248 * kern/ieee1275/cmain.c: ... to here. Update all users.
26249
26250 * kern/powerpc/ieee1275/openfw.c: Move from here ...
26251 * kern/ieee1275/openfw.c: ... to here. Update all users.
26252
26253 * loader/powerpc/ieee1275/multiboot2.c: Move from here ...
26254 * loader/ieee1275/multiboot2.c: ... to here. Update all users.
26255
322562ea 262562008-04-10 Pavel Roskin <proski@gnu.org>
26257
26258 * configure.ac: Always use "_cv_" in cache variables for
26259 compatibility with Autoconf 2.62.
26260
a02a73c5 262612008-04-07 Robert Millan <rmh@aybabtu.com>
26262
26263 Revert grub/machine/init.h addition by Pavel (since it breaks on
26264 i386-ieee1275 and others):
26265 * util/i386/pc/misc.c: Remove grub/machine/init.h.
26266 * util/powerpc/ieee1275/misc.c: Likewise.
26267
25c024b1 262682008-04-07 Robert Millan <rmh@aybabtu.com>
26269
26270 * util/grub-probe.c (probe): Improve error message.
26271
3cbd2f98 262722008-04-07 Robert Millan <rmh@aybabtu.com>
26273
26274 * util/biosdisk.c (read_device_map): Skip devices that don't exist
26275 (this prevents the presence of a bogus entry from ruining the whole
26276 thing).
26277
87a297bf 262782008-04-06 Pavel Roskin <proski@gnu.org>
26279
36747a62 26280 * util/biosdisk.c: Include grub/util/biosdisk.h.
26281 * util/grub-fstest.c (execute_command): Make static.
26282 * util/grub-mkdevicemap.c (check_device): Likewise.
26283 * util/i386/pc/misc.c: Include grub/machine/init.h.
26284 * util/powerpc/ieee1275/misc.c: Likewise.
26285 * util/lvm.c: Include grub/util/lvm.h.
26286 * util/misc.c: Include grub/kernel.h, grub/misc.h and
26287 grub/cache.h.
26288 * util/raid.c: Include grub/util/raid.h.
26289 (grub_util_getdiskname): Make static.
26290
87a297bf 26291 * util/grub-emu.c (main): Remove calls to grub_hostfs_init() and
26292 grub_hostfs_fini(), as they are called from grub_init_all() and
26293 grub_fini_all() respectively. This fixes an infinite loop in
26294 grub-fstest due to double registration of hostfs.
26295 Reported by Christian Franke <Christian.Franke@t-online.de>
26296
f6ce7629 262972008-04-05 Pavel Roskin <proski@gnu.org>
26298
26299 * bus/pci.c (grub_pci_iterate): For multifunction devices, probe
26300 all 8 functions. Otherwise, probe function 0 only.
26301
070e49e4 263022008-04-04 Pavel Roskin <proski@gnu.org>
26303
8b088a4c 26304 * commands/lspci.c (grub_lspci_iter): Print the bus number
26305 correctly.
26306
4f657021 26307 * commands/lspci.c (grub_pci_classes): Fix typos.
26308 (grub_lspci_iter): Don't print func twice. Print vendor ID
26309 before device ID, as it's normally done.
26310
070e49e4 26311 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
26312 Fix signedness warnings.
26313 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate):
26314 Likewise.
26315 * util/ieee1275/get_disk_name.c: Include config.h so that
26316 _GNU_SOURCE is defined and getline() is declared. Mark an
26317 unused argument as such. Fix a signedness warning.
26318
ba7328dc 263192008-04-02 Pavel Roskin <proski@gnu.org>
26320
26887f22 26321 * genkernsyms.sh.in: Use more robust assignments for CC and
26322 srcdir. Quote srcdir.
26323 * gensymlist.sh.in: Likewise. Assert at the compile time that
26324 the symbol table is not empty.
26325
ba7328dc 26326 * disk/raid.c (grub_raid_memberlist): Fix a signedness warning.
26327 * fs/cpio.c (grub_cpio_read): Likewise.
26328
0f582c6b 263292008-04-01 Pavel Roskin <proski@gnu.org>
26330
4b6e1995 26331 * disk/ata.c (grub_ata_open): Don't lose precision in disk->id.
26332 * disk/host.c (grub_host_open): Likewise.
26333 * disk/loopback.c (grub_loopback_open): Likewise.
26334 * disk/memdisk.c (grub_memdisk_open): Use a string pointer for
26335 disk->id as in disk/host.c, not a multi-character constant.
26336
828a2768 26337 * util/grub-fstest.c (cmd_cmp): Use fseeko(), not fseek(). The
26338 later is obsolete, potentially dangerous and sets a bad example.
26339 * util/i386/efi/grub-mkimage.c (make_header): Likewise.
26340 * util/misc.c (grub_util_get_image_size): Likewise.
26341
2bb4fb47 26342 * disk/loopback.c (options): Improve help for "--partitions".
26343
0f582c6b 26344 * normal/arg.c (grub_arg_show_help): Fix spacing of the long
26345 options to align them with the short options, e.g. "echo -e".
26346
a33224e0 263472008-03-31 Bean <bean123ch@gmail.com>
26348
26349 * video/reader/png.c (grub_png_data): New member is_16bit and
26350 image_data.
26351 (grub_png_decode_image_header): Detect 16 bit png image.
26352 (grub_png_convert_image): New function to convert 16 bit image to 8 bit.
26353 (grub_png_decode_png): Call grub_png_convert_image for 16 bit image.
26354 (grub_video_reader_png): Release memory occupied by image_data.
26355
26356 * fs/ntfs.c (find_attr): Handle non-resident attribute list larger than
26357 4096 bytes.
26358 (grub_nfs_mount): Skip the test for sector per cluster.
26359
26360 * include/grub/ntfs.h (MAX_SPC): Removed.
26361
86cb4f54 263622008-03-31 Bean <bean123ch@gmail.com>
26363
26364 * conf/common.rmk (pkgdata_MODULES): Add afs.mod.
26365 (grub_probe_SOURCES): Add fs/afs.c.
26366 (grub_fstest_SOURCES): Likewise.
26367 (afs_mod_SOURCES): New variable.
26368 (afs_mod_CFLAGS): Likewise.
26369 (afs_mod_LDFLAGS): Likewise.
26370
26371 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/afs.c.
26372 (grub_emu_SOURCES): Likewise.
26373
26374 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
26375
26376 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
26377
26378 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
26379
26380 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
26381
26382 * fs/afs.c: New file.
26383
17c74c21 263842008-03-30 Pavel Roskin <proski@gnu.org>
26385
4cb68e89 26386 * disk/host.c: Include grub/misc.h to fix a warning.
26387 * util/hostfs.c: Use GRUB_MOD_INIT and GRUB_MOD_FINI to fix
26388 warnings about implicit declarations.
26389
8790bb04 26390 * fs/udf.c (grub_udf_mount): Fix warning about a shadowing a
26391 variable.
26392 * include/grub/i386/loader.h: Change declaration of
26393 grub_linux_boot() to match what grub_loader_set() expects.
26394 * util/getroot.c (grub_guess_root_device): Return const char* to
26395 fix a warning.
26396 * util/grub-probe.c (probe): Fix a warning about uninitialized
26397 abstraction_name variable.
26398 * util/i386/get_disk_name.c (grub_util_get_disk_name): Mark
26399 second argument as unused to fix a warning.
26400
9a3f3296 26401 * loader/i386/pc/multiboot2.c (grub_mb2_arch_elf64_hook): Add
26402 missing grub_error() call.
26403
0ecef90d 26404 * util/update-grub_lib.in: Define datarootdir, since Autoconf
26405 2.60 and newer uses it to define datadir.
26406
0bf6d401 26407 * commands/sleep.c: Fix warning about implicit declaration.
26408 * disk/memdisk.c: Likewise.
26409 * loader/aout.c: Likewise.
26410 * loader/i386/bsd_normal.c: Likewise.
26411 * util/grub-probe.c: Likewise.
26412
7cdacf97 26413 * commands/i386/cpuid.c (has_longmode): Make static.
26414 * disk/i386/pc/biosdisk.c (cd_drive): Likewise.
26415 * include/grub/i386/bsd.h (bios_memmap_t): Remove, it's unused.
26416
17c74c21 26417 * kern/i386/pc/startup.S (real_to_prot): Use %cs prefix to load
26418 GDT. This is more robust, as %ds can change.
26419 (grub_biosdisk_rw_int13_extensions): Don't clear %ds before
26420 calling real_to_prot().
26421 (grub_biosdisk_get_diskinfo_int13_extensions): Likewise.
26422
80a3e68b 264232008-03-28 Pavel Roskin <proski@gnu.org>
26424
26425 * kern/i386/pc/startup.S: Assert that uncompressed functions
26426 don't spill beyond GRUB_KERNEL_MACHINE_RAW_SIZE.
26427 * kern/i386/pc/lzo1x.S: Remove all .align directives in the
26428 code, as they push parts of the code (error handlers) beyond
26429 GRUB_KERNEL_MACHINE_RAW_SIZE. Speed is not as important in this
26430 code as correctness and size.
26431
77bcd272 264322008-03-28 Pavel Roskin <proski@gnu.org>
26433
26434 * kern/i386/pc/startup.S
26435 (grub_biosdisk_get_diskinfo_int13_extensions): When converting
26436 data block address to the real mode, keep offset minimal. This
26437 works around a bug in AWARD BIOS on old Athlon systems, which
26438 makes CD detection hang.
26439
c5dfd43b 264402008-03-26 Pavel Roskin <proski@gnu.org>
26441
26442 * normal/color.c (grub_parse_color_name_pair): Make `name' a
26443 const.
26444 * include/grub/normal.h: Add grub_parse_color_name_pair()
26445 declaration.
26446
bf962df2 264472008-03-24 Bean <bean123ch@gmail.com>
26448
26449 * disk/i386/pc/biosdisk.c (cd_start): Removed.
26450 (cd_count): Removed.
26451 (cd_drive): New variable.
26452 (grub_biosdisk_get_drive): Don't check for (cdN) device.
26453 (grub_biosdisk_call_hook): Likewise.
26454 (grub_biosdisk_iterate): Change cdrom detection method.
26455 (grub_biosdisk_open): Replace cd_start with cd_drive.
26456 (GRUB_MOD_INIT): Use grub_biosdisk_get_cdinfo_int13_extension to
26457 detect cdrom device.
26458
26459 * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_MACHINE_CDROM_START):
26460 Removed.
26461 (GRUB_BIOSDISK_MACHINE_CDROM_END): Removed.
26462 (GRUB_BIOSDISK_CDTYPE_NO_EMUL): New macro.
26463 (GRUB_BIOSDISK_CDTYPE_1_2_M): Likewise.
26464 (GRUB_BIOSDISK_CDTYPE_1_44_M): Likewise.
26465 (GRUB_BIOSDISK_CDTYPE_2_88_M): Likewise.
26466 (GRUB_BIOSDISK_CDTYPE_HARDDISK): Likewise.
26467 (GRUB_BIOSDISK_CDTYPE_MASK): Likewise.
26468 (grub_biosdisk_cdrp): New structure.
26469 (grub_biosdisk_get_cdinfo_int13_extensions): New function.
26470
26471 * include/grub/i386/pc/kernel.h (grub_boot_drive): Export this variable.
26472
26473 * kern/i386/pc/init.c (make_install_device): Don't use (cdN) as root
26474 device.
26475
26476 * kern/i386/pc/startup.S (grub_biosdisk_get_cdinfo_int13_extensions):
26477 New function.
26478
68e7fc7a 264792008-03-20 Robert Millan <rmh@aybabtu.com>
26480
26481 Remove 2 TiB limit in ata.mod.
26482 * disk/ata.c (grub_ata_device): Promote `size' to grub_uint64_t.
26483 (grub_ata_dumpinfo): Print sector count with 0x%llx.
26484 (grub_ata_identify): Interpret `&info16[100]' as a pointer to
26485 grub_uint64_t instead of grub_uint32_t.
26486
38ad2cf5 264872008-03-05 Bean <bean123ch@gmail.com>
26488
26489 * loader/i386/pc/multiboot.c (grub_multiboot_get_bootdev): New function.
26490 (grub_multiboot): Set boot device.
26491
26492 * boot/i386/pc/lnxboot.S (real_code_2): Set %dh to 0xFF.
26493
2b89344e 264942008-03-02 Bean <bean123ch@gmail.com>
26495
26496 * fs/reiserfs.c (grub_reiserfs_read_symlink): Add 0 at the end of
26497 symlink_buffer.
26498
87a95d1f 264992008-03-01 Yoshinori K. Okuji <okuji@enbug.org>
26500
26501 * DISTLIST: Added docs/fdl.texi, docs/grub.texi, docs/mdate-sh and
26502 texinfo.tex.
26503
26504 * docs/grub.texi: New file. Copied from GRUB Legacy, and slightly
26505 modified.
26506
26507 * docs/fdl.texi: New file.
f19dbdb7 26508
87a95d1f 26509 * docs/mdate-sh: New file. Copied from gnulib.
26510 * docs/texinfo.tex: Likewise.
26511
26512 * config.guess: Updated from gnulib.
26513 * install-sh: Likewise.
26514
7dc15d8e 265152008-02-28 Robert Millan <rmh@aybabtu.com>
26516
26517 * conf/i386-linuxbios.rmk (pkglib_MODULES): Add aout.mod.
26518 (aout_mod_SOURCES): New variable.
26519 (aout_mod_CFLAGS): Likewise.
26520 (aout_mod_LDFLAGS): Likewise.
26521
26522 * conf/i386-ieee1275.rmk: Likewise.
26523
b00ab696 265242008-02-28 Robert Millan <rmh@aybabtu.com>
26525
26526 * util/update-grub.in: Reorganise terminal validity check. Accept
26527 `ieee1275:console' (OLPC) and `*:gfxterm' as valid too.
26528 Based on suggestion by Franklin PIAT.
26529
79ca2d78 265302008-02-28 Fabian Greffrath <greffrath@leat.rub.de>
26531
26532 * include/grub/util/getroot.h (grub_util_check_block_device): Export new
26533 function.
26534 * util/getroot.c (grub_util_check_block_device): New function that
26535 returns the given argument if it is a block device and returns NULL else.
26536 * util/grub-probe.c (argument_is_device): New variable.
26537 (probe): Promote device_name from a variable to an argument. Receive
26538 device_name from grub_util_check_block_device() if path is NULL and from
26539 grub_guess_root_device() else. Do not free() device_name anymore.
f19dbdb7 26540 (options): Introduce new parameter '-d, --device'.
79ca2d78 26541 (main): Add description of the new parameter to the help screen.
26542 Rename path variable to argument. Set argument_is_device if the '-d'
26543 option is given. Pass argument to probe() depending on
26544 argument_is_device.
26545
0d16e571 265462008-02-24 Bean <bean123ch@gmail.com>
26547
26548 * fs/iso9660.c (GRUB_ISO9660_VOLDESC_BOOT): New macro.
26549 (GRUB_ISO9660_VOLDESC_PRIMARY): Likewise.
26550 (GRUB_ISO9660_VOLDESC_SUPP): Likewise.
26551 (GRUB_ISO9660_VOLDESC_PART): Likewise.
26552 (GRUB_ISO9660_VOLDESC_END): Likewise.
26553 (grub_iso9660_primary_voldesc): New member escape.
26554 (grub_iso9660_data): New member joliet.
26555 (grub_iso9660_convert_string): New function.
26556 (grub_iso9660_mount): Detect joliet extension.
26557 (grub_iso9660_iterate_dir): Convert filename when joliet is detected.
26558 (grub_iso9660_iso9660_label): Likewise.
26559
26560 * conf/common.rmk (pkgdata_MODULES): Add udf.mod.
26561 (grub_setup_SOURCES): Add fs/udf.c.
26562 (grub_fstest_SOURCES): Likewise.
26563 (udf_mod_SOURCES): New variable.
26564 (udf_mod_CFLAGS): Likewise.
26565 (udf_mod_LDFLAGS): Likewise.
26566
26567 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/udf.c.
26568 (grub_emu_SOURCES): Likewise.
26569
26570 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
26571
26572 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
26573
26574 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
26575
26576 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
26577
26578 * fs/udf.c: New file.
26579
8a594a17 265802008-02-24 Robert Millan <rmh@aybabtu.com>
26581
26582 * conf/i386-efi.rmk (normal/function.c_DEPENDENCIES)
26583 (normal/lexer.c_DEPENDENCIES): New variables.
26584 * conf/i386-ieee1275.rmk (normal/function.c_DEPENDENCIES)
26585 (normal/lexer.c_DEPENDENCIES): Likewise.
26586 * conf/i386-linuxbios.rmk (normal/function.c_DEPENDENCIES)
26587 (normal/lexer.c_DEPENDENCIES): Likewise.
26588 * conf/i386-pc.rmk (normal/function.c_DEPENDENCIES)
26589 (normal/lexer.c_DEPENDENCIES): Likewise.
26590 * conf/powerpc-ieee1275.rmk (normal/function.c_DEPENDENCIES)
26591 (normal/lexer.c_DEPENDENCIES): Likewise.
26592 * conf/sparc64-ieee1275.rmk (normal/function.c_DEPENDENCIES)
26593 (normal/lexer.c_DEPENDENCIES): Likewise.
26594
2dc33c03 265952008-02-23 Robert Millan <rmh@aybabtu.com>
26596
26597 * partmap/gpt.c (grub_gpt_magic): Add `0x' qualifier to each member,
26598 since they were intended to be in hex. This didn't break previously
26599 because of a bug in gpt_partition_map_iterate() (see below).
26600
26601 (gpt_partition_map_iterate): Replace `grub_memcmp' with `! grub_memcmp'
26602 when checking the validity of GPT header.
26603 Remove `partno', since it always provides the same information as `i'.
26604
f6f4cfb0 266052008-02-21 Yoshinori K. Okuji <okuji@enbug.org>
26606
26607 * include/grub/efi/time.h: Fix a wrong comment.
26608
79ff665f 266092008-02-19 Pavel Roskin <proski@gnu.org>
26610
26611 * kern/rescue.c (grub_enter_rescue_mode): Improve initial
26612 message.
26613
d38e24c2 266142008-02-19 Bean <bean123ch@gmail.com>
26615
26616 * conf/i386-pc.rmk (pkglib_MODULES): Add aout.mod _bsd.mod and bsd.mod.
26617 (aout_mod_SOURCES): New variable.
26618 (aout_mod_CFLAGS): Likewise.
26619 (aout_mod_LDFLAGS): Likewise.
26620 (_bsd_mod_SOURCES): New variable.
26621 (_bsd_mod_CFLAGS): Likewise.
26622 (_bsd_mod_LDFLAGS): Likewise.
26623 (bsd_mod_SOURCES): New variable.
26624 (bsd_mod_CFLAGS): Likewise.
26625 (bsd_mod_LDFLAGS): Likewise.
26626
26627 * include/grub/aout.h: New file.
26628
26629 * include/grub/i386/loader.h (grub_unix_real_boot): New function.
26630
26631 * include/grub/i386/bsd.h: New file.
26632
26633 * include/grub/i386/pc/init.h (grub_get_mmap_entry): Use EXPORT_FUNC
26634 to make it public.
26635
26636 * kern/elf.c (grub_elf32_load): Get the physical address after the hook
26637 function is called, so that it's possible to change it inside the hook.
26638 (grub_elf64_load): Likewise.
26639 (grub_elf_file): Don't close the file if elf header is not found.
26640 (grub_elf_close): Close the file if grub_elf_file fails (The new
26641 grub_elf_file won't close it).
26642 (grub_elf32_size): Use NESTED_FUNC_ATTR for nested function calcsize.
26643 (grub_elf64_size): Likewise.
26644
26645 * kern/i386/loader.S (grub_unix_real_boot): New function.
26646
26647 * loader/aout.c: New file.
26648
26649 * loader/i386/bsd.c: New file.
26650
26651 * loader/i386/bsd_normal.c: New file.
26652
26653 * loader/i386/pc/multiboot.c (grub_multiboot): Handle a.out format.
26654
26655 * loader/multiboot2.c (grub_multiboot2): Reset grub_errno so that it
fe987087 26656 can test other formats.
d38e24c2 26657
b93bdb0f 266582008-02-19 Robert Millan <rmh@aybabtu.com>
26659
26660 * partmap/gpt.c: Include `<grub/gpt_partition.h>'.
26661 (grub_gpt_partition_type_empty): Redefine with macro from
26662 `<grub/gpt_partition.h>'.
26663 (gpt_partition_map_iterate): Adjust partition type comparison.
26664
26665 Export `entry' as partmap-specific `part.data' struct.
26666 (grub_gpt_header, grub_gpt_partentry): Move from here ...
26667
26668 * include/grub/gpt_partition.h (grub_gpt_header)
26669 (grub_gpt_partentry): ... to here (new file).
26670
26671 * util/i386/pc/grub-setup.c: Include `<grub/gpt_partition.h>'.
26672
26673 (grub_gpt_partition_type_bios_boot): New const variable, defined
26674 with macro from `<grub/gpt_partition.h>'.
26675
26676 (setup): Replace `first_start' with `embed_region', which keeps
26677 track of the embed region (and is partmap-agnostic).
26678
26679 Replace find_first_partition_start() with find_usable_region(),
26680 which finds a usable region for embedding using partmap-specific
26681 knowledge (supports PC/MSDOS and GPT).
26682
26683 Fix all assumptions that the embed region start at sector 1, using
26684 `embed_region.start' from now on. Similarly, use `embed_region.end'
26685 rather than `first_start' to calculate available size.
26686
26687 In grub_util_info() message, replace "into after the MBR" with an
26688 indication of the specific sector our embed region starts at.
26689
66cb40f6 266902008-02-19 Robert Millan <rmh@aybabtu.com>
26691
26692 * DISTLIST: Replace `commands/ieee1275/halt.c' and
26693 `commands/ieee1275/reboot.c' with `commands/halt.c' and
26694 `commands/reboot.c'.
26695 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
26696 (halt_mod_SOURCES): Likewise.
26697 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
26698 (halt_mod_SOURCES): Likewise.
26699
b7202015 267002008-02-17 Christian Franke <franke@computer.org>
26701
26702 * commands/cat.c (grub_cmd_cat): Add break on GRUB_TERM_ESC key.
26703
32b0fc49 267042008-02-17 Robert Millan <rmh@aybabtu.com>
26705
26706 * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
26707 set `first_start' to 0 for non-PC/MSDOS partition maps.
26708
aca63502 267092008-02-16 Robert Millan <rmh@aybabtu.com>
26710
26711 * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
26712 do not assume partition map is PC/MSDOS before performing checks that
26713 are specific to that layout.
26714
0de8be86 267152008-02-13 Robert Millan <rmh@aybabtu.com>
26716
26717 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Remove
26718 `commands/i386/pc/halt.c' and `commands/i386/pc/reboot.c'.
26719 * kern/i386/linuxbios/init.c (grub_halt, grub_reboot): Remove stubs.
26720
c3db8364 267212008-02-13 Yoshinori K. Okuji <okuji@enbug.org>
26722
26723 * configure.ac: Only a cosmetic change on the handling of
26724 -fno-stack-protector.
26725
f714229e 267262008-02-12 Alexandre Boeglin <alex@boeglin.org>
26727
c3db8364 26728 * conf/i386-efi.rmk (grub_emu_SOURCES): Replace
26729 commands/i386/pc/halt.c and reboot.c by commands/halt.c and
26730 reboot.c.
f714229e 26731 (grub_install_SOURCES): Add halt.mod and reboot.mod.
26732 (halt_mod_SOURCES): New variable.
26733 (halt_mod_CFLAGS): Likewise.
26734 (halt_mod_LDFLAGS): Likewise.
26735 (reboot_mod_SOURCES): Likewise.
26736 (reboot_mod_CFLAGS): Likewise.
26737 (reboot_mod_LDFLAGS): Likewise.
26738
c3db8364 26739 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace
26740 commands/ieee1275/halt.c and reboot.c by commands/halt.c and
26741 reboot.c.
f714229e 26742 (halt_mod_SOURCES): Likewise.
26743 (reboot_mod_SOURCES): Likewise.
26744
c3db8364 26745 * conf/i386-pc.rmk (grub_emu_SOURCES): Replace
26746 commands/i386/pc/reboot.c by commands/reboot.c.
f714229e 26747 (reboot_mod_SOURCES): Likewise.
26748
26749 * commands/i386/pc/reboot.c: merge this file ...
26750
26751 * commands/ieee1275/reboot.c: ... and this file ...
26752
26753 * commands/reboot.c: ... to this file.
c3db8364 26754 Add some precompiler directive to include the correct header for
26755 each machine.
f714229e 26756
26757 * commands/ieee1275/halt.c: move this file ...
26758
26759 * commands/halt.c: ... to here.
c3db8364 26760 Add some precompiler directive to include the correct header for
26761 each machine.
f714229e 26762
26763 * include/grub/efi/efi.h (grub_reboot): New function declaration.
26764 (grub_halt): Likewise.
26765
26766 * kern/efi/efi.c (grub_reboot): New function.
26767 (grub_halt): Likewise.
26768
c74493e0 267692008-02-12 Robert Millan <rmh@aybabtu.com>
26770
26771 * util/getroot.c (grub_guess_root_device): Inspect /dev/evms before
26772 /dev (like it is done for /dev/mapper). This doesn't provide support
26773 for EVMS, but at least it is now easy to identify the problem when it
26774 arises.
26775
d0db4b04 267762008-02-11 Robert Millan <rmh@aybabtu.com>
26777
26778 * util/biosdisk.c (grub_util_biosdisk_open, linux_find_partition)
26779 (grub_util_biosdisk_get_grub_dev): Check open() exit status by
26780 comparing it with -1, not 0.
26781
bf748642 267822008-02-10 Robert Millan <rmh@aybabtu.com>
26783
26784 * conf/i386-efi.rmk (grub_emu_SOURCES): Add `disk/raid.c' and
26785 `disk/lvm.c'.
26786 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
26787 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
26788
26789 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Move `disk/raid.c' and
26790 `disk/lvm.c' to the end of the list.
26791 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
26792 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
26793
b5db202a 267942008-02-10 Robert Millan <rmh@aybabtu.com>
26795
26796 * kern/main.c (grub_load_normal_mode): Do not reset `grub_errno'. Call
26797 grub_print_error() instead. This will let user know why we're entering
26798 rescue mode.
26799 Based on suggestions from Sam Morris.
26800
83abee31 268012008-02-10 Alexandre Boeglin <alex@boeglin.org>
26802
26803 * normal/arg.c (grub_arg_parse): If one of the args is "--", call add_arg()
26804 on remaining N args, instead of "--" arg N times.
26805
78d5a08b 268062008-02-09 Vesa Jaaskelainen <chaac@nic.fi>
26807
26808 * font/manager.c (unknown_glyph): Added variable for unknown glyph.
26809 (fill_with_default_glyph): Changed to use unknown_glyph for fill
26810 pattern for unknown glyphs.
26811
68807e5f 268122008-02-09 Robert Millan <rmh@aybabtu.com>
26813
26814 * configure.ac: Probe for `help2man'.
26815 * Makefile.in (builddir): New variable.
26816 (HELP2MAN): Likewise. Set to `true' when @HELP2MAN@ doesn't provide it,
26817 or otherwise add a few flags/options to it.
26818 (install-local): For every executable utility or script that is
26819 installed, invoke $(HELP2MAN) to install a manpage based on --help
26820 output.
26821
26822 * util/i386/pc/grub-install.in: Move down `update-grub_lib' sourcing, so
26823 that it doesn't prevent --help from working in build tree.
26824
26825 * util/i386/pc/grub-mkrescue.in (usage): Replace `grub-devel@gnu.org'
26826 with `bug-grub@gnu.org'.
26827 * util/powerpc/ieee1275/grub-mkrescue.in (usage): Likewise.
26828 * util/update-grub.in (usage): New function.
26829 Implement proper argument check, with support for --help and --version
26830 (as well as existing -y).
26831
268322008-02-09 Christian Franke <franke@computer.org>
0d9ff7f0 26833
26834 * commands/cat.c (grub_cmd_cat): Print '\r' as hex to
26835 avoid overwriting previous output.
26836 * kern/rescue.c (grub_rescue_cmd_cat): Likewise.
26837
c1962162 268382008-02-09 Robert Millan <rmh@aybabtu.com>
26839
26840 * normal/menu.c (run_menu): If timeout is set to zero, don't bother
26841 drawing the menu.
26842
3dac2e3f 268432008-02-09 Robert Millan <rmh@aybabtu.com>
26844
26845 * commands/sleep.c: New file.
26846 * conf/common.rmk (pkglib_MODULES): Add `commands/sleep.c'.
26847 (sleep_mod_SOURCES): New variable.
26848 (sleep_mod_CFLAGS): Likewise.
26849 (sleep_mod_LDFLAGS): Likewise.
26850
7a634e08 268512008-02-09 Robert Millan <rmh@aybabtu.com>
26852
26853 * disk/raid.c (grub_raid_scan_device): Add a pair of sanity checks for
26854 situations in which we can deduce the RAID size and the superblock
26855 doesn't match it.
26856
b92f0c18 268572008-02-09 Robert Millan <rmh@aybabtu.com>
26858
26859 * disk/lvm.c [GRUB_UTIL] (grub_lvm_memberlist): New function. Construct
26860 and return a grub_diskmemberlist_t composed of LVM physical volumes.
26861 [GRUB_UTIL] (grub_lvm_dev): Add `memberlist' member.
26862
26863 * disk/raid.c [GRUB_UTIL] (grub_raid_memberlist): New function. Construct
26864 and return a grub_diskmemberlist_t composed of physical array members.
26865 [GRUB_UTIL] (grub_raid_dev): Add `memberlist' member.
26866
26867 * include/grub/disk.h [GRUB_UTIL] (grub_disk_memberlist): New struct
26868 prototype.
26869 [GRUB_UTIL] (struct grub_disk_dev): Add `memberlist' function pointer.
26870 [GRUB_UTIL] (struct grub_disk_memberlist): New struct declaration.
26871 [GRUB_UTIL] (grub_disk_memberlist_t): New typedef.
26872
26873 * util/grub-probe.c (probe): Move partmap probing code from here ...
26874 (probe_partmap): ... to here.
26875 (probe): Use probe_partmap() once for the disk we're probing, and
26876 additionally, when such disk contains a memberlist() struct member,
26877 once for each disk that is contained in the structure returned by
26878 memberlist().
26879
91a4bf68 268802008-02-09 Robert Millan <rmh@aybabtu.com>
26881
26882 * util/grub-probe.c (main): When `verbosity > 1', set `debug'
26883 environment variable to 'all' in order to obtain debug output from
26884 non-util/ code.
26885 * util/i386/pc/grub-setup.c (main): Likewise.
26886
a96f9caa 268872008-02-08 Robert Millan <rmh@aybabtu.com>
26888
26889 * disk/raid.c (grub_raid_scan_device): Check for
26890 `array->device[sb.this_disk.number]' rather than for
26891 `array->device[sb.this_disk.number]->name', since the latter is not
fe6b695a 26892 guaranteed to be accessible.
a96f9caa 26893
b37a9222 268942008-02-08 Robert Millan <rmh@aybabtu.com>
26895
26896 * disk/raid.c: Update copyright.
26897 * fs/cpio.c: Likewise.
26898 * include/grub/raid.h: Likewise.
26899 * loader/i386/pc/multiboot.c: Likewise.
26900 * util/hostfs.c: Likewise.
26901
5626aee1 269022008-02-08 Robert Millan <rmh@aybabtu.com>
26903
26904 * include/grub/raid.h (struct grub_raid_array): Change type of `device'
26905 to a grub_disk_t array.
26906 * disk/raid.c (grub_raid_read): Replace `device[x].disk' accesses with
26907 `device[x]'.
26908 (grub_raid_scan_device): Replace `device[x].name' accesses with
26909 `device[x]->name'. Simplify initialization of `array->device[x]'.
26910
554f0187 269112008-02-08 Robert Millan <rmh@aybabtu.com>
26912
26913 * disk/raid.c (grub_raid_open, grub_raid_scan_device): Add a few
26914 grub_dprintf() calls.
26915 * kern/disk.c (grub_disk_read): Include grub_errmsg in out of range
26916 error message.
26917
1ec8425d 269182008-02-07 Christian Franke <franke@computer.org>
26919
26920 * util/hostfs.c (grub_hostfs_open): Use fseeko and ftello
26921 instead of fseek and ftell to support large files.
26922 (grub_hostfs_read): Likewise.
26923
f2156fda 269242008-02-07 Robert Millan <rmh@aybabtu.com>
26925
26926 Patch from Jeroen Dekkers.
26927 * disk/raid.c (grub_raid_scan_device): Reset `grub_errno' on disk
fe6b695a 26928 failure, since successfully reading all array members might not be
f2156fda 26929 required.
26930
9216e0e7 269312008-02-06 Robert Millan <rmh@aybabtu.com>
26932
26933 * util/grub-probe.c (probe): Simplify partmap probing (with the
26934 assumption that the first word up to the underscore equals to
26935 the module name).
26936
b0dfd29a 269372008-02-06 Christian Franke <franke@computer.org>
26938
26939 * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_NONE
26940 (and set *ofs = 0) instead of GRUB_ERR_FILE_NOT_FOUND on
26941 last block of a cpio or tar stream.
26942 Check for "TRAILER!!!" instead of any empty data
26943 block to detect last block of a cpio stream.
26944 (grub_cpio_dir): Fix constness of variable np.
26945 (grub_cpio_open): Return GRUB_ERR_FILE_NOT_FOUND if
26946 cpio or tar trailer is detected. This fixes a crash
26947 on open of a non existing file.
26948
c32865bf 269492008-02-05 Bean <bean123ch@gmail.com>
26950
26951 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Get physical
26952 address of entry.
26953 (grub_multiboot_load_elf64): Likewise.
26954 (grub_multiboot): Initialize mbi structure.
26955
26956 * util/grub-fstest.c: Don't include unused header file script.h.
26957
fe6b695a 26958 * conf/common.rmk (grub-fstest.c_DEPENDENCIES): Move to the beginning
c32865bf 26959 of file.
26960 (grub_fstest_SOURCES): Likewise.
26961
409480b7 269622008-02-05 Robert Millan <rmh@aybabtu.com>
26963
26964 * include/grub/term.h (GRUB_TERM_LEFT, GRUB_TERM_RIGHT)
26965 (GRUB_TERM_UP, GRUB_TERM_DOWN, GRUB_TERM_HOME, GRUB_TERM_END)
26966 (GRUB_TERM_DC, GRUB_TERM_PPAGE, GRUB_TERM_NPAGE, GRUB_TERM_ESC)
26967 (GRUB_TERM_TAB, GRUB_TERM_BACKSPACE): New macros.
26968
26969 * kern/i386/pc/startup.S: Include `<grub/term.h>'.
26970 (translation_table): Replace hardcoded values with macros
26971 provided by `<grub/term.h>'.
26972
26973 * term/i386/pc/at_keyboard.c: Include `<grub/term.h>'.
26974 (keyboard_map): Correct/add a few values, with macros provided
26975 by `<grub/term.h>'.
26976 (keyboard_map_shift): Zero values that don't differ from their
26977 `keyboard_map' equivalents.
26978 (grub_console_checkkey): Optimize KEYBOARD_STATUS_CAPS_LOCK toggling.
26979 Discard the second scan code that is always sent by Caps lock.
26980 Only use `keyboard_map_shift' when it provides a non-zero value,
26981 otherwise fallback to `keyboard_map'.
26982
99fadbaa 269832008-02-04 Bean <bean123ch@gmail.com>
26984
26985 * Makefile.in (enable_grub_fstest): New variable.
26986
26987 * conf/common.rmk (grub_fstest_init.lst): New rule.
26988 (grub_fstest_init.h): Likewise.
26989 (grub_fstest_init.c): Likewise.
26990 (util/grub-fstest.c_DEPENDENCIES): New variable.
26991 (grub_fstest_SOURCES): Likewise.
26992
26993 * configure.ac (enable_grub_fstest): Check for --enable-grub-fstest.
26994
26995 * util/grub-fstest.c: New file.
26996
bf567c50 269972008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
26998
26999 Make grub-setup handle a separate root device.
f19dbdb7 27000
bf567c50 27001 * util/i386/pc/grub-setup.c (setup): Always open the root device,
27002 so that the root device can be compared with the destination
27003 device.
27004 When embedding the core image, if the root and destination devices
27005 are different, set ROOT_DRIVE to ROOT_DEV->DISK->ID. Otherwise, to
27006 0xFF.
27007 When not embedding, set ROOT_DRIVE to 0xFF.
f19dbdb7 27008
9be6b98b 270092008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
27010
27011 Add support for having a grub directory in a different drive. This
27012 is still only the data handling part.
f19dbdb7 27013
9be6b98b 27014 * kern/i386/pc/startup.S (multiboot_trampoline): Set %dh to 0xFF.
27015 (codestart): Save %dh in GRUB_ROOT_DRIVE.
27016 (grub_root_drive): New variable.
27017
27018 * kern/i386/pc/init.c (make_install_device): Use GRUB_ROOT_DRIVE
27019 instead of GRUB_BOOT_DRIVE to construct a device name. Set
27020 GRUB_ROOT_DRIVE to GRUB_BOOT_DRIVE if it is 0xFF, otherwise use it
27021 as it was.
27022
27023 * include/grub/i386/pc/kernel.h (grub_root_drive): New prototype.
27024
27025 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_ROOT_DRIVE): New
27026 macro.
27027 (GRUB_BOOT_MACHINE_DRIVE_CHECK): Set to 0x4f.
27028
27029 * boot/i386/pc/pxeboot.S (_start): Set %dh to 0xFF. For now, this
27030 is bogus, because PXE booting does not specify any drive
27031 correctly.
27032
27033 * boot/i386/pc/lnxboot.S (reg_edx): Set the second byte to 0xFF. I
27034 am not sure if this is really correct.
27035
27036 * boot/i386/pc/cdboot.S: Set %dh to 0xFF, because the root drive
27037 is always identical to the boot drive when booting from a CD.
27038
27039 * boot/i386/pc/boot.S (MOV_MEM_TO_AL): Removed. Not needed any
27040 longer.
27041 (root_drive): New variable.
27042 (real_start): Unconditionally set %dh to ROOT_DRIVE.
27043 (setup_sectors): Push %dx right after popping it, because %dh will
27044 be modified later.
27045 (copy_buffer): Restore %dx.
27046
e0ca0677 270472008-02-03 Robert Millan <rmh@aybabtu.com>
27048
27049 * util/i386/pc/grub-mkrescue.in: Rewrite most of image generation to
27050 use `cdboot.img' for cdrom images.
27051
3b3f6629 270522008-02-03 Robert Millan <rmh@aybabtu.com>
27053
27054 * util/grub.d/00_header.in: Issue scripting commands for GRUB to
27055 only setup gfxterm when `font' command has succeeded.
27056
d42b3672 270572008-02-03 Robert Millan <rmh@aybabtu.com>
27058
27059 * loader/multiboot_loader.c [GRUB_MACHINE_LINUXBIOS]
27060 (grub_rescue_cmd_multiboot_loader)
27061 (grub_rescue_cmd_module_loader): Enable multiboot1 calls.
27062
fa370ea6 270632008-02-03 Pavel Roskin <proski@gnu.org>
27064
e0c5dacb 27065 * kern/i386/pc/startup.S (grub_chainloader_real_boot): Pop
fa370ea6 27066 %edx and %esi from stack only after grub_gate_a20() is called.
27067 grub_gate_a20() clobbers %edx.
27068
f2a76e1d 270692008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
27070
27071 * configure.ac (AC_INIT): Bumped to 1.96.
27072
27073 * DISTLIST: Added boot/i386/pc/cdboot.S, bus/pci.c,
27074 commands/lspci.c,disk/memdisk.c, include/grub/pci.h,
27075 include/grub/i386/pc/pci.h, video/readers/jpeg.c, and
27076 video/readers/png.c.
27077
90fd32d1 270782008-02-03 Bean <bean123ch@gmail.com>
9be665dd 27079
27080 * conf/i386-pc.rmk (pkglib_IMAGES): Add cdboot.img.
27081 (cdboot_img_SOURCES): New variable.
27082 (cdboot_img_ASFLAGS): New variable.
27083 (cdboot_img_LDFLAGS): New variable.
27084
27085 * boot/i386/pc/cdboot.S: New file.
27086
27087 * disk/i386/pc/biosdisk.c (cd_start): New variable.
27088 (cd_count): Likewise.
27089 (grub_biosdisk_get_drive): Add support for cd device.
27090 (grub_biosdisk_call_hook): Likewise.
27091 (grub_biosdisk_iterate): Likewise.
27092 (grub_biosdisk_open): Likewise.
27093 (GRUB_BIOSDISK_CDROM_RETRY_COUNT): New macro.
27094 (grub_biosdisk_rw): Support reading from cd device.
27095 (GRUB_MOD_INIT): Iterate cd devices.
27096
27097 * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_FLAG_CDROM): New macro.
27098 (GRUB_BIOSDISK_MACHINE_CDROM_START): Likewise.
27099 (GRUB_BIOSDISK_MACHINE_CDROM_END): Likewise.
27100
27101 * kern/i386/pc/init.c (make_install_device): Check for cd device.
27102
4020aa53 271032008-02-02 Robert Millan <rmh@aybabtu.com>
27104
27105 * commands/read.c: New file.
27106 * conf/common.rmk (pkglib_MODULES): Add `commands/read.c'.
27107 (read_mod_SOURCES): New variable.
27108 (read_mod_CFLAGS): Likewise.
27109 (read_mod_LDFLAGS): Likewise.
27110
e03a1132 271112008-02-02 Robert Millan <rmh@aybabtu.com>
27112
27113 * normal/main.c (grub_normal_execute): Check for `menu->size' when
27114 determining whether menu has to be displayed.
27115
58c69220 271162008-02-02 Marco Gerards <marco@gnu.org>
27117
27118 * bus/pci.c: New file.
27119
27120 * include/grub/pci.h: Likewise.
27121
27122 * include/grub/i386/pc/pci.h: Likewise.
27123
27124 * commands/lspci.c: Likewise.
27125
27126 * conf/i386-pc.rmk (pkglib_MODULES): Add `pci.mod' and
27127 `lspci.mod'.
27128 (pci_mod_SOURCES): New variable.
27129 (pci_mod_CFLAGS): Likewise.
27130 (pci_mod_LDFLAGS): Likewise.
27131 (lspci_mod_SOURCES): Likewise.
27132 (lspci_mod_CFLAGS): Likewise.
f19dbdb7 27133 (lspci_mod_LDFLAGS): Likewise.
58c69220 27134
c004e1b4 271352008-02-02 Bean <bean123ch@gmail.com>
27136
27137 * fs/ufs.c (INODE_BLKSZ): Fix incorrect value.
27138 (grub_ufs_get_file_block): Fix indirect block calculation problem.
27139
27140 * fs/xfs.c (grub_xfs_sblock): New member log2_dirblk.
27141 (grub_xfs_btree_node): New structure.
27142 (grub_xfs_btree_root): New structure.
27143 (grub_xfs_inode): New members nblocks, extsize, nextents and btree.
27144 (GRUB_XFS_EXTENT_OFFSET): Use exts instead of inode->data.extents.
27145 (GRUB_XFS_EXTENT_BLOCK): Likewise.
27146 (GRUB_XFS_EXTENT_SIZE): Likewise.
27147 (grub_xfs_read_block): Support btree format type.
27148 (grub_xfs_iterate_dir): Use NESTED_FUNC_ATTR in call_hook.
27149 Use directory block as basic unit.
27150
27151 * fs/fshelp.c (grub_fshelp_read_file): Bug fix for sparse block.
27152
27153 * aclocal.m4 (grub_i386_CHECK_REGPARM_BUG): Define NESTED_FUNC_ATTR as
27154 __attribute__ ((__regparm__ (1))).
27155
f95562bf 271562008-02-01 Robert Millan <rmh@aybabtu.com>
27157
27158 Correct a mistake in previous commit.
27159
27160 * conf/i386-pc.rmk (normal/execute.c_DEPENDENCIES): Move to the
27161 top.
27162 (normal/command.c_DEPENDENCIES): New variable.
27163
7d31f41f 271642008-02-01 Robert Millan <rmh@aybabtu.com>
27165
27166 * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Move to the
27167 top.
27168 (normal/command.c_DEPENDENCIES): New variable.
27169 (grub-emu_DEPENDENCIES, normal_mod_DEPENDENCIES): Remove variables.
27170 * conf/i386-ieee1275.rmk: Likewise.
27171 * conf/i386-linuxbios.rmk: Likewise.
27172 * conf/i386-pc.rmk: Likewise.
27173 * conf/sparc64-ieee1275.rmk: Likewise.
27174 * conf/powerpc-ieee1275.rmk: Likewise.
27175 (grub_emu_SOURCES): Add `fs/fshelp.c'.
27176
27177 * genmk.rb: Add `$(#{src}_DEPENDENCIES)' in targets that require it.
27178
60b6be74 271792008-02-01 Robert Millan <rmh@aybabtu.com>
27180
27181 * kern/disk.c (grub_disk_read, grub_disk_write): Add grub_dprintf()
27182 call at beginning of function.
27183
078522ab 271842008-01-31 Pavel Roskin <proski@gnu.org>
27185
27186 * util/powerpc/ieee1275/grub-mkrescue.in: New file.
d2c11005 27187 * conf/powerpc-ieee1275.rmk (bin_SCRIPTS): New variable.
27188 (grub_mkrescue_SOURCES): Likewise.
078522ab 27189 * DISTLIST: Add util/powerpc/ieee1275/grub-mkrescue.in.
27190
ccaa8a5f 271912008-01-30 Robert Millan <rmh@aybabtu.com>
27192
27193 * conf/i386-pc.rmk (sbin_UTILITIES): Remove `grub-probe'.
27194 (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Moved from here ...
27195 * conf/common.rmk (util/grub-probe.c_DEPENDENCIES)
27196 (grub_probe_SOURCES): ... to here.
27197
27198 * conf/i386-efi.rmk (sbin_UTILITIES): Remove `grub-probe'.
27199 (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Remove.
27200 * conf/i386-ieee1275.rmk: Likewise.
27201 * conf/i386-linuxbios.rmk: Likewise.
27202 * conf/powerpc-ieee1275.rmk: Likewise.
27203
ae5a9cd7 272042008-01-30 Tristan Gingold <gingold@free.fr>
27205
27206 * kern/rescue.c: Silently accept empty lines.
27207
70bc2ef2 272082008-01-29 Bean <bean123ch@gmail.com>
27209
27210 * boot/i386/pc/lnxboot.S (data_start): Code cleanup.
27211 (real_code_2): Code cleanup and change comment style.
27212 (move_memory): Avoid using 32-bit address mode.
27213
6a4d50ea 272142008-01-29 Bean <bean123ch@gmail.com>
27215
27216 * conf/i386-pc.rmk (pkglib_MODULES): Add `png.mod'.
27217 (png_mod_SOURCES): New variable.
27218 (png_mod_CFLAGS): Likewise.
27219 (png_mod_LDFLAGS): Likewise.
27220
27221 * video/readers/png.c: New file.
27222
11cc30ac 272232008-01-28 Robert Millan <rmh@aybabtu.com>
27224
27225 * include/grub/i386/linuxbios/kernel.h (GRUB_MOD_GAP): New macro.
27226 * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Remove
27227 `ifndef GRUB_MOD_GAP' hack.
27228 * util/elf/grub-mkimage.c (add_segments): Likewise.
27229
3abc589f 272302008-01-27 Robert Millan <rmh@aybabtu.com>
27231
27232 * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Skip
27233 `GRUB_MOD_GAP' for platforms in which it's not defined.
962ca133 27234 * util/elf/grub-mkimage.c (add_segments): Likewise.
3abc589f 27235
e1907778 272362008-01-27 Robert Millan <rmh@aybabtu.com>
27237
27238 Get grub-emu to build again (including parallel builds).
27239
27240 * conf/i386-pc.rmk (util/grub-emu.c_DEPENDENCIES): Remove variable.
27241 Split into ...
27242 (util/grub-emu.c_DEPENDENCIES): ... this, ...
27243 (normal/execute.c_DEPENDENCIES): ... this, ...
27244 (grub-emu_DEPENDENCIES): ... and this.
27245
27246 * conf/i386-efi.rmk: Likewise.
27247 * conf/i386-linuxbios.rmk: Likewise.
27248 * conf/i386-ieee1275.rmk: Likewise.
27249 * conf/powerpc-ieee1275.rmk: Likewise.
27250 (grub_emu_SOURCES): Remove duplicated `kern/file.c'.
27251
2216b101 272522008-01-27 Robert Millan <rmh@aybabtu.com>
27253
27254 * NEWS: Add a few items.
27255
f75172d9 272562008-01-27 Robert Millan <rmh@aybabtu.com>
27257
27258 Fix parallel builds with grub-emu. Based on earlier commit for
27259 grub-probe and grub-setup.
27260
27261 * conf/i386-pc.rmk (grub-emu_DEPENDENCIES): Renamed to ...
27262 (util/grub-emu.c_DEPENDENCIES): ... this.
27263 * conf/i386-efi.rmk (grub-emu_DEPENDENCIES): Renamed to ...
27264 (util/grub-emu.c_DEPENDENCIES): ... this.
27265 * conf/i386-linuxbios.rmk (grub-emu_DEPENDENCIES): Renamed to ...
27266 (util/grub-emu.c_DEPENDENCIES): ... this.
27267 * conf/i386-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
27268 (util/grub-emu.c_DEPENDENCIES): ... this.
27269 * conf/powerpc-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
27270 (util/grub-emu.c_DEPENDENCIES): ... this.
27271
3f51de77 272722008-01-27 Pavel Roskin <proski@gnu.org>
27273
27274 * include/grub/powerpc/ieee1275/kernel.h: Introduce GRUB_MOD_GAP
27275 to create a gap between _end and the modules added to the image
27276 with grub-mkrescue. That fixes "CLAIM failed" on PowerMAC.
27277 * kern/powerpc/ieee1275/init.c: Use GRUB_MOD_GAP.
27278 * util/elf/grub-mkimage.c (add_segments): Likewise.
27279
2033f53e 272802008-01-26 Pavel Roskin <proski@gnu.org>
27281
27282 * kern/dl.c (grub_dl_load): Don't abort if prefix is not set,
27283 just return an error.
27284
22da1f6f 272852008-01-26 Bean <bean123ch@gmail.com>
27286
27287 * fs/reiserfs.c (grub_fshelp_node): New member next_offset.
27288 (grub_reiserfs_get_item): Save offset of the next item.
27289 (grub_reiserfs_iterate_dir): Use next_offset to find next item.
27290
2a9525e6 272912008-01-25 Robert Millan <rmh@aybabtu.com>
27292
27293 * conf/i386-pc.rmk (grub_setup_SOURCES, grub_emu_SOURCES): Regroup to
27294 make all filesystem sources appear together (possibly fixing omissions
27295 while at it).
27296 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
27297 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
27298 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
27299 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
27300
27301 * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise. Additionally,
27302 add `kern/file.c'.
27303 * conf/i386-efi.rmk (grub_probe_SOURCES): Likewise.
27304 * conf/i386-ieee1275.rmk (grub_probe_SOURCES): Likewise.
27305 * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Likewise.
27306 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Likewise.
27307
27308 * util/grub-probe.c: Include `<grub/file.h>' and `<sys/stat.h>'.
27309 (probe): Add a sanity check to make sure of our ability to read
27310 requested files when probing for filesystem type.
27311
27312 * genmk.rb: Update copyright year (2007).
27313
27314 * include/grub/fs.h (grub_fat_init, grub_fat_fini, grub_ext2_init)
27315 (grub_ext2_fini, grub_ufs_init, grub_ufs_fini, grub_minix_init)
27316 (grub_minix_fini, grub_hfs_init, grub_hfs_fini, grub_jfs_init)
27317 (grub_jfs_fini, grub_xfs_init, grub_xfs_fini, grub_affs_init)
27318 (grub_affs_fini, grub_sfs_init, grub_sfs_fini, grub_iso9660_init)
27319 : Remove function prototypes.
27320
b95f71b5 273212008-01-25 Robert Millan <rmh@aybabtu.com>
27322
27323 Revert my previous commits (based on wrong assumption of how grub_errno
27324 works).
27325
fe6b695a 27326 * kern/disk.c (grub_disk_open): Stop resetting grub_errno.
b95f71b5 27327 * kern/file.c (grub_file_open): Likewise.
27328
d08bbb49 273292008-01-24 Pavel Roskin <proski@gnu.org>
27330
27331 * include/grub/ieee1275/ieee1275.h: Introduce flag for firmwares
27332 that hang if GRUB tries to setup colors.
27333 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Don't set
27334 colors for firmwares that don't support it.
27335 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag):
27336 Recognize Open Hack'Ware, set flags to work around its
27337 limitations.
27338
605e36ed 273392008-01-24 Robert Millan <rmh@aybabtu.com>
27340
27341 * kern/file.c (grub_file_open): Do not account previous failures of
27342 unrelated functions when grub_errno is checked for.
27343 Reported by Oleg Strikov.
27344
bac332a1 273452008-01-24 Bean <bean123ch@gmail.com>
27346
27347 * fs/ufs.c (GRUB_UFS_VOLNAME_LEN): New macro.
27348 (grub_ufs_sblock): New member volume name.
27349 (grub_ufs_find_file): Fix string copy bug.
27350 (grub_ufs_label): Implement this function properly.
27351
27352 * fs/hfs.c (grub_hfs_cnid_type): New enum.
27353 (grub_hfs_iterate_records): Use the correct file number for extents
27354 and catalog file. Fix problem in next index calculation.
27355 (grub_hfs_find_node): Replace recursive function call with loop.
27356 (grub_hfs_iterate_dir): Replace recursive function call with loop.
27357
15c80c09 273582008-01-23 Robert Millan <rmh@aybabtu.com>
27359
27360 * include/grub/i386/ieee1275/loader.h: Include `<grub/types.h>',
27361 `<grub/symbol.h>' and `<grub/multiboot.h>'.
27362 (grub_multiboot2_real_boot): New function prototype.
27363
27364 * include/grub/i386/pc/memory.h: Include `<grub/machine/machine.h>'.
27365 [!GRUB_MACHINE_IEEE1275] (grub_lower_mem, grub_upper_mem): Disable.
27366
27367 * kern/i386/ieee1275/init.c (grub_os_area_addr)
27368 (grub_os_area_size, grub_lower_mem, grub_upper_mem): Remove variables.
27369
305338fd 273702008-01-23 Robert Millan <rmh@aybabtu.com>
27371
27372 * kern/mm.c (grub_mm_init_region): Replace grub_dprintf() call with
27373 #ifdef'ed out grub_printf().
27374
3ea52685 273752008-01-23 Robert Millan <rmh@aybabtu.com>
27376
27377 * term/i386/pc/at_keyboard.c (grub_keyboard_isr): #ifdef out
27378 grub_dprintf calls, since they make "debug=all" mode unusable.
27379 (grub_console_checkkey): Likewise.
27380
5882ae4b 273812008-01-23 Robert Millan <rmh@aybabtu.com>
27382
27383 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
27384 `term/i386/pc/at_keyboard.c'.
27385 (pkglib_MODULES): Add `serial.mod'.
27386 (serial_mod_SOURCES): New variable.
27387 (serial_mod_CFLAGS): Likewise.
27388 (serial_mod_LDFLAGS): Likewise.
27389
27390 * include/grub/i386/ieee1275/console.h: Add `<grub/symbol.h>'. Remove
27391 `<grub/powerpc/ieee1275/console.h>'.
27392 (grub_keyboard_controller_init): New function prototype.
27393 (grub_console_checkkey): Likewise.
27394 (grub_console_getkey): Likewise.
27395
27396 * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize AT
27397 keyboard on i386.
27398
27399 * term/ieee1275/ofconsole.c (grub_ofconsole_term): On i386, use
27400 grub_ofconsole_checkkey() and grub_ofconsole_getkey() for input.
27401
06ab5303 274022008-01-23 Robert Millan <rmh@aybabtu.com>
27403
27404 * kern/i386/pc/init.c (make_install_device): When memdisk image is
27405 present, "(memdisk)/boot/grub" becomes the default prefix.
27406
27407 * util/i386/pc/grub-mkrescue.in: Switch to a minimal core.img plus
27408 a memdisk tarball with all the modules. Add --overlay=DIR option that
27409 allows users to overlay additional files into the image.
27410
dbb475a4 274112008-01-23 Robert Millan <rmh@aybabtu.com>
27412
27413 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add `machine/loader.h'
27414 and `machine/memory.h'.
27415 (pkglib_MODULES): Add `multiboot.mod' and `_multiboot.mod'.
27416 (_multiboot_mod_SOURCES): New variable.
27417 (_multiboot_mod_CFLAGS): Likewise.
27418 (_multiboot_mod_LDFLAGS): Likewise.
27419 (multiboot_mod_SOURCES): Likewise.
27420 (multiboot_mod_CFLAGS): Likewise.
27421 (multiboot_mod_LDFLAGS): Likewise.
27422
27423 * include/grub/i386/ieee1275/loader.h: New file.
27424
27425 * include/grub/i386/ieee1275/machine.h: Likewise.
27426
27427 * include/grub/i386/ieee1275/memory.h: Likewise.
27428
27429 * include/grub/i386/pc/init.h (grub_os_area_addr): Remove (redundant)
27430 variable declaration.
27431 (grub_os_area_size): Likewise.
27432
27433 * kern/i386/ieee1275/init.c (grub_os_area_addr, grub_os_area_size)
27434 (grub_lower_mem, grub_upper_mem): New variables.
27435 (grub_stop_floppy): New function (just to make
27436 grub_multiboot2_real_boot() happy).
27437
27438 * kern/i386/ieee1275/startup.S: Include `<grub/machine/memory.h>',
27439 `<grub/cpu/linux.h>', `<multiboot.h>' and `<multiboot2.h>'.
27440 (grub_stop): New function.
27441 Include `"../realmode.S"' and `"../loader.S"'.
27442
27443 * loader/multiboot_loader.c: Include `<grub/machine/machine.h>'.
27444 Replace `__i386__' #ifdefs with `GRUB_MACHINE_PCBIOS'.
27445
27446 * loader/powerpc/ieee1275/multiboot2.c (grub_mb2_arch_boot): On i386,
27447 rely on grub_multiboot2_real_boot() for final boot.
27448
25638629 274492008-01-22 Robert Millan <rmh@aybabtu.com>
27450
27451 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): When
27452 `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag is set, skip any
27453 device that doesn't look like an SD card.
27454 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
27455 `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag.
27456 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag): Detect
27457 OLPC laptop, and set `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' when
27458 found.
27459
9dad816d 274602008-01-22 Robert Millan <rmh@aybabtu.com>
27461
27462 * kern/powerpc/ieee1275/init.c (grub_claim_heap): Add sanity check to
27463 avoid claiming over our own code.
27464
34842f2d 274652008-01-22 Bean <bean123ch@gmail.com>
27466
27467 * conf/i386-pc.rmk (pkglib_MODULES): Add `jpeg.mod'.
27468 (jpeg_mod_SOURCES): New variable.
27469 (jpeg_mod_CFLAGS): Likewise.
27470 (jpeg_mod_LDFLAGS): Likewise.
27471
27472 * video/readers/jpeg.c : New file.
27473
44023a28 274742008-01-22 Bean <bean123ch@gmail.com>
27475
27476 * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_FILE_NOT_FOUND when
27477 there are no more items.
27478
bc2d8ac6 274792008-01-21 Robert Millan <rmh@aybabtu.com>
27480
27481 * kern/mm.c (grub_mm_init_region): Improve debug message.
27482
261bd4bc 274832008-01-21 Robert Millan <rmh@aybabtu.com>
27484
27485 * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): New variable.
27486 (kernel_img_LDFLAGS): Use `GRUB_MEMORY_MACHINE_LINK_ADDR' as link
27487 address.
27488 (grub_mkimage_CFLAGS): Propagate `GRUB_MEMORY_MACHINE_LINK_ADDR' as
27489 a C macro.
27490 * include/grub/i386/pc/memory.h (GRUB_MEMORY_MACHINE_UPPER): New macro.
27491 Indicates start of upper memory.
27492 * util/i386/pc/grub-mkimage.c: Include `<grub/machine/memory.h>'.
27493 (generate_image): Abort when image size is big enough to corrupt
27494 upper memory.
27495
27496 * include/grub/i386/pc/vga.h: Include `<grub/machine/memory.h>'.
27497 (GRUB_MEMORY_MACHINE_VGA_ADDR): Alias for `GRUB_MEMORY_MACHINE_UPPER'.
27498 * term/i386/pc/vga.c (VGA_MEM): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
27499 instead of hardcoding 0xA0000.
27500 * video/i386/pc/vbe.c: Include `<grub/machine/vga.h>'.
27501 (grub_vbe_set_video_mode): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
27502 instead of hardcoding 0xA0000.
27503
f970b55e 275042008-01-21 Robert Millan <rmh@aybabtu.com>
27505
27506 * disk/memdisk.c (memdisk_size): New variable.
27507 (grub_memdisk_open): Replace grub_arch_memdisk_size() call with
27508 `memdisk_size'.
27509 (grub_memdisk_init): Initialize `memdisk_size'. Reallocate memdisk
27510 image to dynamic memory.
27511 (grub_memdisk_fini): Replace grub_arch_memdisk_size() call with
27512 `memdisk_size'. Free memdisk block.
27513
1a8b0526 275142008-01-21 Robert Millan <rmh@aybabtu.com>
27515
27516 Fix detection of very small filesystems (like tar).
27517
27518 * fs/reiserfs.c (grub_reiserfs_mount): When disk is too small to
27519 contain a ReiserFS, abort with GRUB_ERR_BAD_FS rather than
27520 GRUB_ERR_OUT_OF_RANGE (which made the upper layer think there's
27521 a problem with this disk).
27522
6e9b4aab 275232008-01-21 Robert Millan <rmh@aybabtu.com>
27524
27525 * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Add debug message
27526 on grub_biosdisk_rw_standard() error.
27527
0d8837b2 275282008-01-21 Robert Millan <rmh@aybabtu.com>
27529
27530 * include/grub/ieee1275/ieee1275.h: Add 2008 to Copyright line for
27531 recent changes.
27532 * kern/elf.c: Likewise.
27533 * kern/ieee1275/ieee1275.c: Likewise.
27534 * kern/powerpc/ieee1275/openfw.c: Likewise.
27535 * term/ieee1275/ofconsole.c: Likewise.
27536
ffd36e34 275372008-01-21 Robert Millan <rmh@aybabtu.com>
27538
27539 * include/grub/i386/pc/kernel.h: Include `<grub/symbol.h>'.
27540
3f0093d0 27541 * include/grub/kernel.h (grub_arch_memdisk_addr)
27542 (grub_arch_memdisk_size): Moved from here ...
ffd36e34 27543
3f0093d0 27544 * include/grub/i386/pc/kernel.h (grub_arch_memdisk_addr)
27545 (grub_arch_memdisk_size): ... to here.
ffd36e34 27546
6c391b21 275472008-01-21 Robert Millan <rmh@aybabtu.com>
27548
27549 Mostly based on bugfix from Bean.
27550
27551 * kern/elf.c (grub_elf32_phdr_iterate): Use `NESTED_FUNC_ATTR'
27552 attribute with hook() parameter.
27553 (grub_elf32_load): Use `NESTED_FUNC_ATTR' with grub_elf32_load_segment()
27554 declaration.
27555 (grub_elf64_phdr_iterate): Use `NESTED_FUNC_ATTR'
27556 attribute with hook() parameter.
27557 (grub_elf64_load): Use `NESTED_FUNC_ATTR' with grub_elf64_load_segment()
27558 declaration.
27559
55a581dc 275602008-01-21 Robert Millan <rmh@aybabtu.com>
27561
27562 * conf/i386-pc.rmk (kernel_img_HEADERS): Add `machine/kernel.h'.
27563 (pkglib_MODULES): Add `memdisk.mod'.
27564 (memdisk_mod_SOURCES): New variable.
27565 (memdisk_mod_CFLAGS): Likewise.
27566 (memdisk_mod_LDFLAGS): Likewise.
27567
27568 * disk/memdisk.c: New file.
27569
27570 * include/grub/disk.h (grub_disk_dev_id): Add
27571 `GRUB_DISK_DEVICE_MEMDISK_ID'.
27572
27573 * include/grub/i386/pc/kernel.h
27574 (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): New macro.
27575 (GRUB_KERNEL_MACHINE_PREFIX): Increment by 4.
27576 (grub_kernel_image_size): New variable declaration.
27577 (grub_total_module_size): Likewise.
27578 (grub_memdisk_image_size): Likewise.
27579
27580 * include/grub/i386/pc/memory.h
27581 (GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR): New macro.
27582
27583 * include/grub/kernel.h: Include `<grub/symbol.h>'.
27584 (grub_arch_memdisk_addr): New variable declaration.
27585 (grub_arch_memdisk_size): Likewise.
27586
27587 * kern/i386/pc/init.c (grub_arch_memdisk_addr): New function.
27588 (grub_arch_memdisk_size): Likewise.
27589
27590 * kern/i386/pc/startup.S (grub_memdisk_image_size): New variable.
27591 (codestart): Replace hardcoded `0x100000' with
27592 `GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR' macro.
27593
27594 * util/i386/pc/grub-mkimage.c: Include `<grub/misc.h>'.
27595 (generate_image): Add `memdisk_path' parameter. When `memdisk_path' is
27596 not NULL, append the contents of the file it refers to, at the end of
27597 the compressed kernel image. Initialize `grub_memdisk_image_size'
27598 variable (at `GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE' offset).
27599 (options): Add "memdisk"|'m' option.
27600 (main): Parse --memdisk|-m option, and pass user-provided path as
27601 parameter to generate_image().
27602
3d7f54c9 276032008-01-20 Robert Millan <rmh@aybabtu.com>
27604
27605 * kern/sparc64/ieee1275/openfw.c (grub_devalias_iterate): Copy debug
27606 grub_dprintf() calls from here ...
27607 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): ... to here.
27608
0bf74728 276092008-01-20 Robert Millan <rmh@aybabtu.com>
27610
27611 Fix detection of "real mode" when /options/real-mode? doesn't exist.
27612
27613 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_mmu): New variable
27614 declaration.
27615 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_mmu): New variable.
27616 (grub_ieee1275_find_options): If `grub_ieee1275_mmu' is 0, set
27617 `GRUB_IEEE1275_FLAG_REAL_MODE'.
fe6b695a 27618 (cmain): Initialize `grub_ieee1275_mmu' (using /chosen/mmu integer
0bf74728 27619 property).
27620 * kern/powerpc/ieee1275/openfw.c (grub_map): Rely on pre-initialized
27621 `grub_ieee1275_mmu' rather than obtaining a handler on every call.
27622
33bf70a7 276232008-01-19 Robert Millan <rmh@aybabtu.com>
27624
fe6b695a 27625 Get rid of confusing function (superseded by
33bf70a7 27626 `grub_ieee1275_get_integer_property')
27627 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_decode_int_4): Remove
27628 prototype.
27629 * kern/ieee1275/ieee1275.c (grub_ieee1275_decode_int_4): Remove
27630 function.
27631 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid use of
27632 grub_ieee1275_decode_int_4(), by obtaining integer properties directly
fe987087 27633 in native endianness from grub_ieee1275_get_integer_property().
33bf70a7 27634
e2da7d26 276352008-01-19 Robert Millan <rmh@aybabtu.com>
27636
27637 * kern/powerpc/ieee1275/openfw.c (grub_halt): Issue "power-off"
27638 command after "shut-down", since implementations differ on which
27639 the command for halt is.
27640
59f1fd8d 276412008-01-19 Robert Millan <rmh@aybabtu.com>
27642
27643 * include/grub/i386/linuxbios/console.h: Add header protection.
27644 (grub_keyboard_controller_init): New function prototype.
27645 * term/i386/pc/at_keyboard.c (KEYBOARD_COMMAND_ISREADY): New macro.
27646 (KEYBOARD_COMMAND_READ): Likewise.
27647 (KEYBOARD_COMMAND_WRITE): Likewise.
27648 (KEYBOARD_SCANCODE_SET1): Likewise.
27649 (grub_keyboard_controller_write): New function.
27650 (grub_keyboard_controller_read): Likewise.
27651 (grub_keyboard_controller_init): Likewise.
27652
27653 * term/i386/pc/console.c: Include `<grub/machine/machine.h>'.
27654 (grub_console_init): On coreboot/LinuxBIOS, call
27655 grub_keyboard_controller_init().
27656
5f5a7c15 276572008-01-19 Robert Millan <rmh@aybabtu.com>
27658
27659 PowerPC changes provided by Pavel Roskin.
27660
27661 * kern/powerpc/ieee1275/cmain.c (cmain): Don't take any arguments.
27662 * kern/powerpc/ieee1275/crt0.S: Store r5 in grub_ieee1275_entry_fn,
27663 don't rely on cmain() doing it.
27664 * kern/i386/ieee1275/startup.S (_start): Store %eax in
27665 grub_ieee1275_entry_fn, don't rely on cmain() doing it.
27666
1210e168 276672008-01-16 Robert Millan <rmh@aybabtu.com>
27668
27669 * include/grub/i386/linuxbios/memory.h
27670 (GRUB_MEMORY_MACHINE_LINUXBIOS_TABLE_ADDR): Remove macro.
27671 * kern/i386/linuxbios/table.c (grub_linuxbios_table_iterate): Do not
27672 receive `table_header' as argument. Instead, probe for it in the
27673 known memory ranges where it can be present.
27674 (grub_available_iterate): Do not pass a fixed `table_header' address
27675 to grub_linuxbios_table_iterate().
27676
3d04eab8 276772008-01-15 Robert Millan <rmh@aybabtu.com>
27678
27679 * configure.ac: Add `i386-ieee1275' to the list of supported targets.
27680 * conf/i386-ieee1275.rmk: New file.
27681 * include/grub/i386/ieee1275/console.h: Likewise.
27682 * include/grub/i386/ieee1275/ieee1275.h: Likewise.
27683 * include/grub/i386/ieee1275/kernel.h: Likewise.
27684 * include/grub/i386/ieee1275/time.h: Likewise.
27685 * kern/i386/ieee1275/init.c: Likewise.
27686 * kern/i386/ieee1275/startup.S: Likewise.
27687
d1bc1b73 276882008-01-15 Robert Millan <rmh@aybabtu.com>
27689
27690 * kern/misc.c (grub_vsprintf): Do not reset `longlongfmt' to zero
27691 when pointers are 32-bit (but still do set it to one when they are
27692 64-bit).
27693
66a65807 276942008-01-15 Robert Millan <rmh@aybabtu.com>
27695
27696 * include/grub/ieee1275/ieee1275.h
27697 (grub_ieee1275_get_integer_property): New function prototype.
27698
27699 * kern/ieee1275/ieee1275.c: Include `<grub/types.h>'.
27700 (grub_ieee1275_get_integer_property): New function. Wraps around
fe987087 27701 grub_ieee1275_get_property() to handle endianness.
66a65807 27702
27703 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Replace
27704 grub_ieee1275_get_property() with grub_ieee1275_get_integer_property()
fe6b695a 27705 where appropriate.
66a65807 27706 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Likewise.
27707 (grub_map): Likewise.
27708 * kern/sparc64/ieee1275/openfw.c (grub_map): Likewise.
27709
a83ccafd 277102008-01-15 Bean <bean123ch@gmail.com>
27711
27712 * normal/execute.c (grub_script_exec_argument_to_string): Check for undefined variable.
27713 (grub_script_execute_cmdline): Reset grub_errno.
27714
27715 * normal/main.c (read_config_file): Reset grub_errno.
27716
27717 * normal/parse.y (script_init): New.
27718 (script): Move function and menuentry here.
27719 (delimiter): New.
27720 (command): Add delimiter at the end of command.
27721 (commands): Adjust to match the new command.
27722 (commandblock): Remove grub_script_lexer_record_start.
f19dbdb7 27723 (menuentry): Add grub_script_lexer_record_start, use the new commands.
a83ccafd 27724 (if): Use the new commands.
27725
27726 * conf/common.rmk (pkgdata_MODULES): Add echo.mod.
27727
df6ecfc6 277282008-01-15 Robert Millan <rmh@aybabtu.com>
27729
27730 * normal/menu.c (run_menu): Move timeout message from here ...
27731 (print_timeout): ... to here.
27732 (run_menu): Use print_timeout() once during initial draw to print
27733 the whole message, and again in every clock tick to update only
27734 the number of seconds.
27735
87ae25eb 277362008-01-15 Robert Millan <rmh@aybabtu.com>
27737
27738 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Obtain
27739 actual size of `available' from grub_ieee1275_get_property(), and
27740 restrict parsing to that bound.
27741
47bf09a4 277422008-01-15 Christian Franke <franke@computer.org>
27743
27744 * util/grub-emu.c: Replace <argp.h> by <getopt.h>.
27745 (argp_program_version): Remove variable.
27746 (argp_program_bug_address): Likewise.
27747 (options): Convert from struct argp_option to struct option.
27748 (struct arguments): Remove.
27749 (parse_opt): Remove.
27750 (usage): New function.
27751 (main): Replace struct args members by simple variables.
27752 Replace argp_parse() by getopt_long().
27753 Add switch to evaluate options.
27754 Add missing "(...)" around root_dev in prefix string.
27755
c86f1469 277562008-01-14 Robert Millan <rmh@aybabtu.com>
27757
27758 * kern/powerpc/ieee1275/init.c (grub_exit): Reimplement as a wrapper
27759 for grub_ieee1275_exit(), in order to improve portability.
27760
e622c559 277612008-01-14 Robert Millan <rmh@aybabtu.com>
27762
27763 * util/grub.d/10_linux.in (prefix): Define.
27764 (exec_prefix): Likewise. Both definitions are later used by `libdir'.
27765
44cb1ec8 277662008-01-13 Pavel Roskin <proski@gnu.org>
27767
27768 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Don't use
27769 grub_errno if no errors have been detected.
27770
1eb8c802 277712008-01-12 Robert Millan <rmh@aybabtu.com>
27772
27773 * include/grub/util/getroot.h (grub_dev_abstraction_types): New enum.
27774 (grub_util_get_dev_abstraction): New function prototype.
27775
27776 * util/getroot.c: Include `<grub/util/getroot.h>'
27777 (grub_util_get_grub_dev): Move detection of abstraction type to ...
27778 (grub_util_get_dev_abstraction): ... here (new function).
27779
27780 * util/grub-probe.c: Convert PRINT_* to an enum. Add
27781 `PRINT_ABSTRACTION'.
27782 (probe): Probe for abstraction type when requested.
27783 (main): Understand `--target=abstraction'.
27784
27785 * util/i386/efi/grub-install.in: Add abstraction module to core
27786 image when it is found to be necessary.
27787 * util/i386/pc/grub-install.in: Likewise.
27788 * util/powerpc/ieee1275/grub-install.in: Likewise.
27789
27790 * util/update-grub_lib.in (font_path): Return system path without
27791 converting to GRUB path.
27792 * util/update-grub.in: Convert system path returned by font_path()
27793 to a GRUB path. Use `grub-probe -t abstraction' to determine what
27794 abstraction module is needed for loading fonts (if any). Export
27795 that as `GRUB_PRELOAD_MODULES'.
27796 * util/grub.d/00_header.in: Process `GRUB_PRELOAD_MODULES' (print
27797 insmod commands).
27798
52bd3de9 277992008-01-12 Yoshinori K. Okuji <okuji@enbug.org>
27800
27801 Remove some unused code from reiserfs.
f19dbdb7 27802
52bd3de9 27803 * fs/reiserfs.c (struct grub_reiserfs_key)
27804 [GRUB_REISERFS_KEYV2_BITFIELD]: Removed offset and type.
27805 (struct grub_reiserfs_node_body): Removed.
27806 (grub_reiserfs_get_key_v2_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
27807 Likewise.
27808 (grub_reiserfs_get_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
27809 Likewise.
27810 (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
27811 Likewise.
27812 (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
27813 Likewise.
27814 (grub_reiserfs_set_key_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
27815 Likewise.
27816 (grub_reiserfs_iterate_dir) [GRUB_REISERFS_KEYV2_BITFIELD]:
27817 Likewise.
27818 (grub_reiserfs_open) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
27819 (grub_reiserfs_read) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
27820 (grub_reiserfs_dir) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
27821
2f80039d 278222008-01-10 Robert Millan <rmh@aybabtu.com>
27823
27824 * util/update-grub_lib.in (grub_file_is_not_garbage): New function.
27825 Determines if a file is garbage left by packaging systems, etc.
27826 * util/update-grub.in: Use grub_file_is_not_garbage() as a condition
27827 for processing /etc/grub.d scripts.
27828 * util/grub.d/10_hurd.in: Fix `GRUB_DISTRIBUTOR' comparison.
27829 * util/grub.d/10_linux.in: Likewise. Use grub_file_is_not_garbage()
27830 as a condition for processing Linux images.
27831
87888032 278322008-01-10 Pavel Roskin <proski@gnu.org>
27833
27834 * include/grub/powerpc/libgcc.h (__ucmpdi2): New export. Needed
27835 to compile reiserfs.c on PowerPC.
27836
7e54fced 278372008-01-10 Robert Millan <rmh@aybabtu.com>
de9993e0 27838
27839 * kern/device.c (grub_device_iterate): Do not abort device iteration
27840 when one of the devices cannot be opened.
27841 * kern/disk.c (grub_disk_open): Do not account previous failures of
27842 unrelated functions when grub_errno is checked for.
27843
5aa541e6 278442008-01-08 Robert Millan <rmh@aybabtu.com>
27845
27846 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): For
27847 `! grub_linux_is_bzimage', change order of address comparison to make
27848 it more intuitive, and improve "too big zImage" error message.
27849
7076340d 278502008-01-08 Robert Millan <rmh@aybabtu.com>
27851
27852 * Makefile.in (uninstall): Handle `$(update-grub_SCRIPTS)' and
27853 `$(update-grub_DATA)'.
27854 (distcheck): Fix race condition when invoking `$(MAKE)' on multiple
27855 targets.
27856
9ca70333 278572008-01-07 Robert Millan <rmh@aybabtu.com>
27858
27859 * boot/i386/pc/boot.S (boot_drive_check): Add a comment indicating
27860 which instruction is modified by grub-setup during installation
27861 (since it wasn't obvious by only looking at this file).
27862
38ccf575 278632008-01-07 Robert Millan <rmh@aybabtu.com>
27864
27865 * TODO: Rewrite. Just refer to the wiki and the BTS instead of
27866 listing actual TODO items.
27867
f5db4291 278682008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
27869
868967cf 27870 * fs/reiserfs.c (grub_reiserfs_get_key_v2_type): Handle endianness
27871 correctly.
27872 (grub_reiserfs_get_key_offset): Likewise.
27873 (grub_reiserfs_set_key_offset): Likewise.
27874 (grub_reiserfs_set_key_type): Likewise.
fe6b695a 27875 (grub_reiserfs_iterate_dir): Return 1 if found, otherwise 0.
868967cf 27876
27877 (GRUB_REISERFS_KEYV2_BITFIELD): Undefined. Probably it would be
27878 better to remove the bitfield version completely.
f19dbdb7 27879
868967cf 278802008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
f19dbdb7 27881
f5db4291 27882 * fs/reiserfs.c (grub_reiserfs_iterate_dir): ENTRY_ITEM must be
27883 allocated from the heap, due to the fshelp implementation.
27884 (grub_reiserfs_dir): Free NODE, due to the same reason.
27885
492e6d9d 278862008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
27887
27888 Mostly from Vincent Pelletier:
f19dbdb7 27889
492e6d9d 27890 * fs/reiserfs.c: New file.
f19dbdb7 27891
492e6d9d 27892 * conf/common.rmk (pkglib_MODULES): Added reiserfs.mod.
27893 (reiserfs_mod_SOURCES): New variable.
27894 (reiserfs_mod_CFLAGS): Likewise.
27895 (reiserfs_mod_LDFLAGS): Likewise.
27896
27897 * DISTLIST: Added boot/i386/pc/lnxboot.S, commands/hexdump.c,
27898 disk/ata.c, fs/cpio.c, fs/ntfscomp.c, fs/reiserfs.c,
27899 include/grub/ntfs.h, include/grub/i386/pc/machine.h, and
27900 normal/color.c.
27901
9ce3e7c1 279022008-01-06 Robert Millan <rmh@aybabtu.com>
27903
27904 * normal/color.c: Remove `<grub/env.h>'.
27905
f3b58148 279062008-01-05 Jeroen Dekkers <jeroen@dekkers.cx>
27907
27908 * include/grub/normal.h: Include <grub/env.h>.
27909
7ac3bcfa 279102008-01-05 Robert Millan <rmh@aybabtu.com>
27911
27912 * util/i386/pc/grub-setup.c (usage): Replace obsolete `(hd0,0)' in
27913 usage example with `(hd0,1)'.
fb358190 27914 Reported by Samuel Thibault.
7ac3bcfa 27915
c8ee99d7 279162008-01-05 Robert Millan <rmh@aybabtu.com>
27917
27918 * kern/i386/loader.S (grub_linux_is_bzimage): New variable.
27919 (grub_linux_boot_zimage): Rename to ...
27920 (grub_linux_boot): ... this.
27921 (grub_linux_boot_bzimage): Merge with `grub_linux_boot_zimage'.
27922 (grub_linux_boot_zimage): Conditionalize zImage copy.
27923
27924 * include/grub/i386/loader.h (grub_linux_is_bzimage): Add prototype.
27925 (grub_linux_boot_bzimage): Remove prototype.
27926 (grub_linux_boot_zimage): Rename to ...
27927 (grub_linux_boot): ... this.
27928
27929 * loader/i386/pc/linux.c (big_linux): Replace with `grub_linux_is_bzimage'.
27930 (grub_linux_boot): Remove function.
27931
0ece25b1 279322008-01-05 Robert Millan <rmh@aybabtu.com>
27933
27934 * include/grub/normal.h (grub_env_write_color_normal): New prototype.
27935 (grub_env_write_color_highlight): Likewise.
27936 (grub_wait_after_message): Likewise.
27937
27938 * normal/color.c: New file.
27939
27940 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/color.c'.
27941 (normal_mod_DEPENDENCIES): Likewise.
27942
27943 * conf/i386-efi.rmk (grub_emu_SOURCES): Add `normal/color.c'.
27944 (normal_mod_DEPENDENCIES): Likewise.
27945
27946 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add `normal/color.c'.
27947 (normal_mod_DEPENDENCIES): Likewise.
27948
27949 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `normal/color.c'.
27950 (normal_mod_DEPENDENCIES): Likewise.
27951
27952 * normal/menu_entry.c (run): Rely on grub_wait_after_message()
27953 for waiting after a message is printed.
27954 * normal/main.c (read_config_file): Likewise.
27955 (grub_normal_init): Register grub_env_write_color_normal() and
27956 grub_env_write_color_highlight() hooks. Mark `color_normal' and
27957 `color_highlight' variables as global.
27958
27959 * normal/menu.c (grub_wait_after_message): New function.
27960 (grub_color_menu_normal): New variable. Replaces ...
27961 (GRUB_COLOR_MENU_NORMAL): ... this macro.
27962 (grub_color_menu_highlight): New variable. Replaces ...
27963 (GRUB_COLOR_MENU_HIGHLIGHT): ... this macro.
27964 (draw_border): Set color state to `GRUB_TERM_COLOR_NORMAL' instead of
27965 `GRUB_TERM_COLOR_STANDARD'.
27966 (print_message): Use `grub_setcolorstate' to reload colors. Rename
27967 `normal_code' and `highlight_code' to `old_color_normal' and
27968 `old_color_highlight', respectively.
27969 (grub_menu_init_page): Update colors when drawing the menu, based on
27970 `menu_color_normal' and `menu_color_highlight' variables.
27971 (grub_menu_run): Rely on grub_wait_after_message() for waiting after
27972 a message is printed.
27973
182dd4e5 279742008-01-05 Robert Millan <rmh@aybabtu.com>
27975
27976 * kern/env.c (grub_env_context_open): Propagate hooks for global
27977 variables to new context.
27978
27979 * kern/main.c (grub_set_root_dev): Export `root' variable.
27980
ddf8f6ad 279812008-01-05 Robert Millan <rmh@aybabtu.com>
27982
27983 * util/biosdisk.c (get_os_disk): Check for devfs-style IDE and SCSI
fe6b695a 27984 discs unconditionally, since udev and others have options to provide
ddf8f6ad 27985 them.
27986
d8b43d9b 279872008-01-05 Robert Millan <rmh@aybabtu.com>
27988
27989 * normal/completion.c (iterate_dir): Skip `.' and `..' directories.
27990
2bff2de3 279912008-01-04 Christian Franke <franke@computer.org>
27992
27993 * kern/i386/pc/init.c (grub_machine_init): Fix evaluation
27994 of eisa_mmap.
27995
97eab917 279962008-01-03 Pavel Roskin <proski@gnu.org>
27997
27998 * kern/i386/linuxbios/init.c: Put "void" to all function
27999 declarations with no arguments.
28000 * kern/powerpc/ieee1275/init.c: Likewise.
28001 * term/i386/pc/at_keyboard.c: Likewise.
28002 * term/i386/pc/vga_text.c: Likewise.
28003 * util/grub-mkdevicemap.c: Likewise.
28004
b9416d00 280052008-01-02 Robert Millan <rmh@aybabtu.com>
28006
28007 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Improve error
28008 message when loaded image is out of bounds.
28009 (grub_multiboot_load_elf64): Likewise.
28010
92695df9 280112008-01-02 Pavel Roskin <proski@gnu.org>
28012
28013 * util/grub.d/10_linux.in: Try version without ".old" when
28014 looking for initrd. It's better to use initrd from the newer
28015 kernel of the same version than no initrd at all.
28016
d98d9cad 280172008-01-01 Robert Millan <rmh@aybabtu.com>
28018
28019 * util/biosdisk.c (get_os_disk): Fix check for IDE or SCSI discs.
28020
dbfdce36 280212008-01-01 Vesa Jaaskelainen <chaac@nic.fi>
28022
f19dbdb7 28023 * include/grub/video.h: Added grub_video_unmap_color and
dbfdce36 28024 grub_video_get_active_render_target.
28025 (grub_video_adapter): Added unmap_color and get_active_render_target.
28026
f19dbdb7 28027 * video/video.c: Added grub_video_unmap_color and
dbfdce36 28028 grub_video_get_active_render_target.
28029 (grub_video_get_info): Changed method to accept NULL pointer as an
28030 argument to allow detection of active video adapter.
28031
28032 * video/i386/pc/vbe.c: Renamed grub_video_vbe_unmap_color as
28033 grub_video_vbe_unmap_color_int.
28034 Added grub_video_vbe_unmap_color and
28035 grub_video_vbe_get_active_render_target.
28036 (grub_video_vbe_adapter): Added unmap_color and
28037 get_active_render_target.
28038
f19dbdb7 28039 * video/i386/pc/vbeblit.c: Replaced grub_video_vbe_unmap_color usage
dbfdce36 28040 with grub_video_vbe_unmap_color_int.
28041
28042 * term/gfxterm.c (DEFAULT_STANDARD_COLOR): Added.
28043 (DEFAULT_NORMAL_COLOR): Likewise.
28044 (DEFAULT_HIGHLIGHT_COLOR) Likewise.
28045 (DEFAULT_FG_COLOR): Removed.
28046 (DEFAULT_BG_COLOR): Likewise.
28047 (DEFAULT_CURSOR_COLOR): Changed value.
28048 (grub_virtual_screen): Added standard_color_setting,
28049 normal_color_setting, highlight_color_setting and term_color.
28050 (grub_virtual_screen): Removed fg_color_setting and bg_color_setting.
28051 (bitmap_width): Added.
28052 (bitmap_height): Likewise.
28053 (bitmap): Likewise.
28054 (set_term_color): Likewise.
28055 (grub_virtual_screen_setup): Changed to use new terminal coloring
28056 settings.
28057 (grub_gfxterm_init): Added init for bitmap.
28058 (grub_gfxterm_fini): Added destroy for bitmap.
28059 (redraw_screen_rect): Updated to use background bitmap and new
28060 terminal coloring.
28061 (scroll_up): Added optimization for case when there is no bitmap.
28062 (grub_gfxterm_cls): Fixed to use correct background color.
28063 (grub_virtual_screen_setcolorstate): Changed to use new terminal
28064 coloring.
28065 (grub_virtual_screen_setcolor): Likewise.
28066 (grub_virtual_screen_getcolor): Added.
28067 (grub_gfxterm_background_image_cmd): Likewise.
28068 (grub_video_term): Added setcolor and getcolor.
28069 (MOD_INIT): Added registration of background_image command.
28070 (MOD_TERM): Added unregistration for background_image command.
28071
c3c20931 280722007-12-30 Pavel Roskin <proski@gnu.org>
28073
28074 * loader/multiboot_loader.c: Fix multiboot command
28075 unregistration. Fix all typos in the word "multiboot".
28076
df266716 280772007-12-29 Pavel Roskin <proski@gnu.org>
94239199 28078
28079 * util/grub.d/10_linux.in: Refactor search for initrd. Add
28080 support for initrd names used in Fedora.
28081
fc6e896c 280822007-12-26 Bean <bean123ch@gmail.com>
28083
28084 * conf/common.rmk (pkgdata_MODULES): Add cpio.mod.
28085 (cpio_mod_SOURCES): New variable.
28086 (cpio_mod_CFLAGS): Likewise.
28087 (cpio_mod_LDFLAGS): Likewise.
28088
28089 * fs/cpio.c: New file.
28090
28091 * conf/i386-pc.rmk (grub_emu_SOURCES): Add cpio.c.
28092
28093 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
28094
28095 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
28096
28097 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
28098
533110ad 280992007-12-25 Robert Millan <rmh@aybabtu.com>
28100
28101 * include/grub/term.h (struct grub_term): Add `getcolor' function.
28102 (grub_getcolor): New function.
28103
28104 * kern/term.c (grub_getcolor): New function.
28105 * normal/menu.c (GRUB_COLOR_MENU_NORMAL): New macro.
28106 (GRUB_COLOR_MENU_HIGHLIGHT): New macro.
28107 (print_entry): Set normal and highlight colors to
28108 `GRUB_COLOR_MENU_NORMAL' and `GRUB_COLOR_MENU_HIGHLIGHT',
28109 respectively, before printing and restore them to old
28110 values afterwards.
28111 (grub_menu_init_page): Likewise. Fill an additional colored space
28112 that would otherwise be left blank.
28113
28114 * term/efi/console.c (grub_console_getcolor): New function.
28115 (struct grub_console_term.getcolor): New variable.
28116 * term/i386/pc/console.c (grub_console_getcolor): New function.
28117 (struct grub_console_term.getcolor): New variable.
28118 * term/ieee1275/ofconsole.c (grub_ofconsole_getcolor): New function.
28119 (struct grub_console_term.getcolor): New variable.
28120
28121 * term/i386/pc/serial.c (grub_serial_setcolor): Remove function.
28122 (struct grub_console_term.setcolor): Remove variable.
28123 * term/i386/pc/vesafb.c (grub_virtual_screen_setcolor): Remove function.
28124 (struct grub_console_term.setcolor): Remove variable.
28125 * term/i386/pc/vga.c (grub_vga_setcolor): Remove function.
28126 (struct grub_console_term.setcolor): Remove variable.
28127 * term/gfxterm.c (grub_virtual_screen_setcolor): Remove function.
28128 (struct grub_console_term.setcolor): Remove variable.
28129
4931827f 281302007-12-25 Robert Millan <rmh@aybabtu.com>
28131
28132 * configure.ac: Search for possible unifont.hex locations, and
28133 define UNIFONT_HEX if found.
28134
28135 * Makefile.in (UNIFONT_HEX): Define variable.
28136 (DATA): Rename to ...
28137 (PKGLIB): ... this. Update all users.
28138 (PKGDATA): New variable.
28139 (pkgdata_IMAGES): Rename to ...
28140 (pkglib_IMAGES): ... this. Update all users.
28141 (pkgdata_MODULES): Rename to ...
28142 (pkglib_MODULES): ... this. Update all users.
28143 (pkgdata_PROGRAMS): Rename to ...
28144 (pkglib_PROGRAMS): ... this. Update all users.
28145 (pkgdata_DATA): Rename to ...
28146 (pkglib_DATA): ... this. Update all users.
28147 (CLEANFILES): Redefine to `$(pkglib_DATA) $(pkgdata_DATA)'.
28148 (unicode.pff, ascii.pff): New rules.
28149 (all-local): Add `$(PKGDATA)' dependency.
28150 (install-local): Process `$(PKGDATA)'.
28151
28152 * util/update-grub_lib.in (font_path): Search for *.pff files in
28153 a few more locations, including `${pkgdata}'.
28154
57e57e31 281552007-12-23 Robert Millan <rmh@aybabtu.com>
28156
28157 Patch from Bean <bean123ch@gmail.com>:
28158 * disk/loopback.c (grub_loopback_read): Add missing bit shift to
28159 `size'.
28160
4bc72aa9 281612007-12-21 Bean <bean123ch@gmail.com>
28162
28163 * conf/common.rmk (pkgdata_MODULES): Add ntfscomp.mod.
28164 (ntfscomp_mod_SOURCES): New variable.
28165 (ntfscomp_mod_CFLAGS): Likewise.
28166 (ntfscomp_mod_LDFLAGS): Likewise.
28167
28168 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfscomp.c.
28169 (grub_probe_SOURCES): Likewise.
28170 (grub_emu_SOURCES): Likewise.
28171
28172 * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
28173 (grub_emu_SOURCES): Likewise.
28174
28175 * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
28176 (grub_emu_SOURCES): Likewise.
28177
28178 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
28179 (grub_emu_SOURCES): Likewise.
28180
28181 * fs/ntfs.c (grub_ntfscomp_func): New variable.
28182 (read_run_list): Renamed to grub_ntfs_read_run_list.
28183 (decomp_nextvcn): Moved to ntfscomp.c.
28184 (decomp_getch): Likewise.
28185 (decomp_get16): Likewise.
28186 (decomp_block): Likewise.
28187 (read_block): Likewise.
28188 (read_data): Partially moved to ntfscomp.c.
28189 (fixup): Change unsigned to grub_uint16_t.
28190 (read_mft): Change unsigned long to grub_uint32_t.
28191 (read_attr): Likewise.
28192 (read_data): Likewise.
28193 (read_run_data): Likewise.
28194 (read_run_list): Likewise.
28195 (read_mft): Likewise.
28196
28197 * fs/ntfscomp.c: New file.
28198
28199 * include/grub/ntfs.h: New file.
28200
af680a87 282012007-12-16 Robert Millan <rmh@aybabtu.com>
28202
28203 * util/grub-mkdevicemap.c (make_device_map): Iterate up to 20 for
28204 IDE disk check, since Linux is known to support 20 IDE disks.
28205 Reported by Colin Watson.
28206
84be7599 282072007-12-15 Bean <bean123ch@gmail.com>
28208
28209 * conf/i386-pc.rmk (pkgdata_IMAGES): Add lnxboot.img.
28210 (lnxboot_img_SOURCES): New variable.
28211 (lnxboot_img_ASFLAGS): Likewise.
28212 (lnxboot_img_LDFLAGS): Likewise.
28213
28214 * boot/i386/pc/lnxboot.S: New file.
28215
6af9db01 282162007-11-24 Pavel Roskin <proski@gnu.org>
28217
28218 * configure.ac: Test if '--build-id=none' is supported by the
28219 linker. If yes, add it to TARGET_LDFLAGS. Build ID causes
28220 objcopy to generate incorrect binary files (binutils
28221 2.17.50.0.18-1 as shipped by Fedora 8).
28222 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Use LDFLAGS when
28223 linking, so that build ID doesn't break the test.
28224
7361cfe6 282252007-11-24 Pavel Roskin <proski@gnu.org>
28226
28227 * include/grub/i386/time.h: use "void" in the argument list
28228 of grub_cpu_idle().
28229 * include/grub/powerpc/time.h: Likewise.
28230 * include/grub/sparc64/time.h: Likewise.
28231
1593e10c 282322007-11-18 Christian Franke <franke@computer.org>
28233
28234 * util/console.c (grub_ncurses_getkey): Change curses KEY_* mapping,
28235 now return control chars instead of GRUB_CONSOLE_KEY_* constants.
28236 This fixes the problem that function keys did not work in grub-emu.
28237
3b8db1a8 282382007-11-18 Christian Franke <franke@computer.org>
28239
28240 * disk/host.c (grub_host_open): Remove attribute unused from
28241 name parameter. Add check for "host". This fixes the problem
28242 that grub-emu does not find partitions.
28243
2e29408d 282442007-11-18 Christian Franke <franke@computer.org>
28245
28246 * util/hostfs.c (is_dir): New function.
28247 (grub_hostfs_dir): Handle missing dirent.d_type case.
28248 (grub_hostfs_read): Add missing fseek().
28249 (grub_hostfs_label): Clear label pointer. This fixes a crash
28250 of grub-emu on "ls (host)".
28251
398cd047 282522007-11-18 Christian Franke <franke@computer.org>
28253
28254 * include/grub/i386/pc/init.h (struct grub_machine_mmap_entry):
28255 Add attribute packed, gcc 3.4.4 on Cygwin aligns this
28256 to 64 bit boundary by default.
28257
c405c391 282582007-11-18 Bean <bean123ch@gmail.com>
28259
28260 * conf/common.rmk (pkgdata_MODULES): Add hexdump.mod.
28261 (hexdump_mod_SOURCES): New variable.
28262 (hexdump_mod_CFLAGS): Likewise.
28263 (hexdump_mod_LDFLAGS): Likewise.
f19dbdb7 28264
c405c391 28265 * conf/i386-pc.rmk (grub_emu_SOURCES): Add command/hexdump.c.
28266
28267 * conf/i386-efi.rmk (grub_emu_SOURCES): Add command/hexdump.c.
28268
28269 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add command/hexdump.c.
28270
28271 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add command/hexdump.c.
28272
28273 * include/grub/hexdump.h: New file.
28274
28275 * commands/hexdump.c: New file.
28276
5cced7fd 282772007-11-10 Robert Millan <rmh@aybabtu.com>
28278
28279 * commands/i386/pc/play.c (beep_off): Switch order of arguments
28280 in grub_outb() calls.
28281 (beep_on): Likewise.
28282
8b714eb0 282832007-11-10 Christian Franke <franke@computer.org>
28284
28285 * normal/menu.c (run_menu): Check for empty menu to avoid crash.
28286 (grub_menu_run): Likewise.
28287
ce0f1839 282882007-11-10 Robert Millan <rmh@aybabtu.com>
28289
28290 * include/grub/i386/efi/machine.h: New file.
28291 * include/grub/i386/linuxbios/machine.h: Likewise.
28292 * include/grub/i386/pc/machine.h: Likewise.
28293 * include/grub/powerpc/ieee1275/machine.h: Likewise.
28294 * include/grub/sparc64/ieee1275/machine.h: Likewise.
28295
28296 * term/i386/pc/serial.c: Include <grub/machine/machine.h>.
28297 (serial_hw_io_addr): New variable.
28298 (serial_hw_get_port): Obtain port address from `serial_hw_io_addr'
28299 instead of `(unsigned short *) 0x400'.
28300
270c237d 283012007-11-10 Bean <bean123ch@gmail.com>
28302
28303 * fs/ntfs.c (read_block): Fix a bug caused by adjacent blocks.
28304
a87783bf 283052007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
28306
28307 * conf/i386-pc.rmk (pkgdata_MODULES): Added vga.mod.
28308 (vga_mod_SOURCES): Added.
28309 (vga_mod_CFLAGS): Likewise.
28310 (vga_mod_LDFLAGS): Likewise.
28311
28312 * term/i386/pc/vga.c (get_map_mask): Switch order of arguments in
28313 grub_outb() calls.
28314 (set_map_mask): Likewise.
28315 (set_read_map): Likewise.
28316 (set_read_address): Likewise.
28317 (vga_font): Removed variable.
28318 (get_vga_glyph): Removed function.
28319 (invalidate_char): Likewise.
28320 (write_char): Changed to use grub_font_get_glyph() for font
28321 information.
28322 (grub_vga_putchar): Likewise.
28323 (grub_vga_getcharwidth): Likewise.
28324
6433b448 283252007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
28326
28327 * conf/i386-pc.rmk (boot_img_LDFLAGS): Use COMMON_LDFLAGS for target
28328 flags.
28329 (pxeboot_img_LDFLAGS): Likewise.
28330 (diskboot_img_LDFLAGS): Likewise.
28331 (kernel_img_LDFLAGS): Likewise.
28332
49178511 283332007-11-06 Robert Millan <rmh@aybabtu.com>
28334
28335 * term/i386/pc/serial.c (serial_hw_put): Switch order of arguments
28336 in grub_outb() calls.
28337 (serial_hw_init): Likewise.
28338
53b052de 283392007-11-05 Robert Millan <rmh@aybabtu.com>
28340
28341 * util/update-grub.in: Allow files in ${update_grub_dir} to contain
28342 spaces. Skip non-regular files.
28343
5ab33bba 283442007-11-05 Robert Millan <rmh@aybabtu.com>
28345
28346 * kern/disk.c (grub_disk_firmware_fini)
28347 (grub_disk_firmware_is_tainted): New variables.
28348
28349 * include/grub/disk.h (grub_disk_firmware_fini)
28350 (grub_disk_firmware_is_tainted): Likewise.
28351
28352 * disk/i386/pc/biosdisk.c (GRUB_MOD_FINI(biosdisk)): Moved from here ...
28353 (grub_disk_biosdisk_fini): ... to here.
28354 (GRUB_MOD_FINI(biosdisk)): Implement using grub_disk_biosdisk_fini().
28355 (GRUB_MOD_INIT(biosdisk)): Abort when `grub_disk_firmware_is_tainted'
28356 is set. Register grub_disk_biosdisk_fini() in
28357 `grub_disk_firmware_fini'.
28358
28359 * disk/ata.c: Remove `<grub/machine/biosdisk.h>'.
28360 (GRUB_MOD_INIT(ata)): Remove grub_biosdisk_fini() call.
28361 Use `grub_disk_firmware_is_tainted' and `grub_disk_firmware_fini'
28362 to finish existing firmware disk interface.
28363
28364 * conf/i386-linuxbios.rmk (pkgdata_MODULES): Add `ata.mod'.
28365 (ata_mod_SOURCES): New variable.
28366 (ata_mod_CFLAGS): Likewise.
28367 (ata_mod_LDFLAGS): Likewise.
28368
0149ab7c 283692007-11-05 Robert Millan <rmh@aybabtu.com>
28370
28371 * disk/ata.c: Remove `<grub/machine/time.h>'. Include `<grub/time.h>'.
28372 (grub_ata_wait): Reimplement using grub_millisleep().
28373
28374 * include/grub/misc.h (grub_div_roundup): Fix parenthesization.
28375 * include/grub/i386/time.h (grub_cpu_idle): Disable `hlt' instruction.
28376
be7ac41e 283772007-11-03 Marco Gerards <marco@gnu.org>
28378
28379 * term/i386/pc/vga_text.c: Include <grub/cpu/io.h>.
28380 (CRTC_ADDR_PORT): New macro.
28381 (CRTC_DATA_PORT): Likewise.
28382 (CRTC_CURSOR): Likewise.
28383 (CRTC_CURSOR_ADDR_HIGH): Likewise.
28384 (CRTC_CURSOR_ADDR_LOW): Likewise.
28385 (update_cursor): New function.
28386 (grub_console_real_putchar): Call `update_cursor'.
28387 (grub_console_gotoxy): Likewise.
28388 (grub_console_cls): Set the default color when clearing the
28389 screen.
28390 (grub_console_setcursor): Implemented.
28391
bb06ab2e 283922007-11-03 Marco Gerards <marco@gnu.org>
28393
28394 * disk/ata.c (grub_ata_pio_read): Don't wait for the command to
28395 become activate.
28396 (grub_ata_pio_write): Likewise.
28397
28398 (grub_atapi_identify): Wait after issuing an ATA command.
28399 (grub_atapi_packet): Likewise.
28400 (grub_ata_identify): Likewise.
28401 (grub_ata_readwrite): Likewise.
28402
cf8f780b 284032007-11-03 Marco Gerards <marco@gnu.org>
28404
28405 * disk/ata.c (grub_ata_pio_read): Detect and return the error code.
28406 (grub_ata_pio_write): Likewise.
28407 (grub_ata_readwrite): Use `grub_error', instead of
28408 returning `grub_errno'.
28409
ed649e54 284102007-11-03 Marco Gerards <marco@gnu.org>
28411
28412 * disk/ata.c (grub_ata_readwrite): Call grub_ata_pio_read and
28413 grub_ata_pio_write once for every single sector, instead of for
28414 multiple sectors.
28415
ca25d8f0 284162007-10-31 Robert Millan <rmh@aybabtu.com>
28417
28418 * configure.ac: Add `i386-linuxbios' to the list of supported targets.
28419
28420 * conf/i386-linuxbios.rmk: New file.
28421
28422 * kern/i386/pc/hardware.c: Likewise.
28423 * term/i386/pc/at_keyboard.c: Likewise.
28424 * term/i386/pc/vga_text.c: Likewise.
28425
28426 * include/grub/i386/linuxbios/boot.h: Likewise.
28427 * include/grub/i386/linuxbios/console.h: Likewise.
28428 * include/grub/i386/linuxbios/init.h: Likewise.
28429 * include/grub/i386/linuxbios/kernel.h: Likewise.
28430 * include/grub/i386/linuxbios/loader.h: Likewise.
28431 * include/grub/i386/linuxbios/memory.h: Likewise.
28432 * include/grub/i386/linuxbios/serial.h: Likewise.
28433 * include/grub/i386/linuxbios/time.h: Likewise.
28434
28435 * kern/i386/linuxbios/init.c: Likewise.
28436 * kern/i386/linuxbios/startup.S: Likewise.
28437 * kern/i386/linuxbios/table.c: Likewise.
28438
e911ecc1 284392007-10-31 Marco Gerards <marco@gnu.org>
28440
28441 * conf/i386-pc.rmk (pkgdata_MODULES): Add `ata.mod'.
28442 (ata_mod_SOURCES): New variable.
28443 (ata_mod_CFLAGS): Likewise.
28444 (ata_mod_LDFLAGS): Likewise.
28445
28446 * disk/ata.c: New file.
28447
28448 * include/grub/disk.h (grub_disk_dev_id): Add
28449 `GRUB_DISK_DEV_ATA_ID'.
f19dbdb7 28450
7f66d0e0 284512007-10-31 Robert Millan <rmh@aybabtu.com>
28452
28453 * include/grub/i386/pc/init.h (grub_lower_mem): Moved from here ...
28454 * include/grub/i386/pc/memory.h (grub_lower_mem): ... to here.
28455
28456 * include/grub/i386/pc/init.h (grub_upper_mem): Moved from here ...
28457 * include/grub/i386/pc/memory.h (grub_upper_mem): ... to here.
28458
28459 * include/grub/i386/pc/memory.h: Include `<grub/symbol.h>' and
28460 `<grub/types.h>'.
28461
28462 * loader/i386/pc/multiboot.c: Include `<grub/machine/memory.h>'.
28463
5cd7dd46 284642007-10-27 Robert Millan <rmh@aybabtu.com>
28465
3236ca65 28466 * include/grub/types.h (ULONG_MAX): Define macro.
5cd7dd46 28467
2ebfc90f 284682007-10-22 Robert Millan <rmh@aybabtu.com>
28469
28470 * kern/i386/pc/startup.S: Remove `"kern/i386/realmode.S"'. Include
28471 `"../realmode.S"'.
28472 Remove `"kern/i386/loader.S"'. Include `"../loader.S"'.
28473
73fcb0f3 284742007-10-22 Robert Millan <rmh@aybabtu.com>
28475
28476 * conf/i386-pc.rmk (kernel_img_SOURCES): Remove `disk/i386/pc/biosdisk.c'.
28477 (pkgdata_MODULES): Add `biosdisk.mod'.
28478 (biosdisk_mod_SOURCES, biosdisk_mod_CFLAGS, biosdisk_mod_LDFLAGS): New
28479 variables.
28480
28481 * disk/i386/pc/biosdisk.c: Include `<grub/dl.h>'.
28482 (grub_biosdisk_init): Replace with ...
28483 (GRUB_MOD_INIT(biosdisk)): ... this.
28484 (grub_biosdisk_fini): Replace with ...
28485 (GRUB_MOD_FINI(biosdisk)): ... this.
28486
28487 * kern/i386/pc/init.c: Remove `<grub/machine/biosdisk.h>'.
28488 (grub_machine_init): Remove call to grub_biosdisk_init().
28489 (grub_machine_fini): Remove call to grub_machine_fini().
28490
28491 * util/i386/pc/grub-install.in (modules): Add `biosdisk'.
28492
3381d274 284932007-10-22 Robert Millan <rmh@aybabtu.com>
28494
28495 * include/grub/time.h: New file.
28496 * include/grub/i386/time.h: Likewise.
28497 * include/grub/powerpc/time.h: Likewise.
28498 * include/grub/sparc64/time.h: Likewise.
28499
28500 * include/grub/i386/pc/time.h (KERNEL_TIME_HEADER): Rename all
28501 instances to ...
28502 (KERNEL_MACHINE_TIME_HEADER): ... this.
28503 * include/grub/powerpc/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
28504 instances to ...
28505 (KERNEL_MACHINE_TIME_HEADER): ... this.
28506 * include/grub/sparc64/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
28507 instances to ...
28508 (KERNEL_MACHINE_TIME_HEADER): ... this.
28509
28510 * kern/i386/efi/init.c: Include `<grub/time.h>'.
28511 (grub_millisleep): New function.
28512 * kern/i386/pc/init.c: Include `<grub/time.h>'.
28513 (grub_millisleep): New function.
28514 * kern/powerpc/ieee1275/init.c: Include `<grub/time.h>'.
28515 Remove `grub/machine/time.h' include.
28516 (grub_millisleep): New function.
28517 * kern/sparc64/ieee1275/init.c: Include `<grub/time.h>'.
28518 Remove `grub/machine/time.h' include.
28519 (grub_millisleep): New function.
28520
28521 * include/grub/misc.h (grub_div_roundup): New function.
28522
28523 * kern/misc.c: Include `<grub/time.h>'.
28524 (grub_millisleep_generic): New function.
28525
28526 * conf/i386-efi.rmk (kernel_mod_HEADERS): Remove `i386/efi/time.h'.
28527 Add `time.h'.
28528 * conf/i386-pc.rmk (kernel_img_HEADERS): Remove `machine/time.h'.
28529 Add `time.h'.
28530 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Remove
28531 `machine/time.h'. Add `time.h'.
28532 * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
28533
a39a0312 285342007-10-21 Robert Millan <rmh@aybabtu.com>
28535
28536 * include/grub/misc.h (grub_max): New function.
28537
2aad70e2 285382007-10-21 Robert Millan <rmh@aybabtu.com>
28539
28540 * util/misc.c (grub_util_info): Call fflush() before returning.
28541
54b71c4b 285422007-10-20 Robert Millan <rmh@aybabtu.com>
28543
28544 * genmk.rb (Image): Copy `extra_flags' from here ...
28545 (PModule): ... to here. Use it in `#{obj}: #{src}' rule.
28546
28547 * commands/i386/cpuid.c (grub_cmd_cpuid): Add __attribute__ ((unused))
28548 to `argc' and `args' arguments.
28549
a979f513 285502007-10-17 Robert Millan <rmh@aybabtu.com>
28551
28552 * kern/i386/loader.S: New file.
28553
28554 * kern/i386/pc/startup.S (grub_linux_prot_size): Moved from here ...
28555 * kern/i386/loader.S (grub_linux_prot_size)... to here.
28556 * kern/i386/pc/startup.S (grub_linux_tmp_addr): Moved from here ...
28557 * kern/i386/loader.S (grub_linux_tmp_addr)... to here.
28558 * kern/i386/pc/startup.S (grub_linux_real_addr): Moved from here ...
28559 * kern/i386/loader.S (grub_linux_real_addr)... to here.
28560 * kern/i386/pc/startup.S (grub_linux_boot_zimage): Moved from here ...
28561 * kern/i386/loader.S (grub_linux_boot_zimage)... to here.
28562 * kern/i386/pc/startup.S (grub_linux_boot_bzimage): Moved from here ...
28563 * kern/i386/loader.S (grub_linux_boot_bzimage)... to here.
28564 * kern/i386/pc/startup.S (grub_multiboot_real_boot): Moved from here ...
28565 * kern/i386/loader.S (grub_multiboot_real_boot)... to here.
28566 * kern/i386/pc/startup.S (grub_multiboot2_real_boot): Moved from here ...
28567 * kern/i386/loader.S (grub_multiboot2_real_boot)... to here.
28568
28569 * kern/i386/realmode.S: New file.
28570
28571 * kern/i386/pc/startup.S (protstack): Moved from here ...
28572 * kern/i386/realmode.S (protstack)... to here.
28573 * kern/i386/pc/startup.S (gdt): Moved from here ...
28574 * kern/i386/realmode.S (gdt)... to here.
28575 * kern/i386/pc/startup.S (prot_to_real): Moved from here ...
28576 * kern/i386/realmode.S (prot_to_real)... to here.
28577
28578 * kern/i386/pc/startup.S: Include `kern/i386/loader.S' and
28579 `kern/i386/realmode.S'.
28580
825fc8fd 285812007-10-17 Robert Millan <rmh@aybabtu.com>
28582
28583 * include/grub/i386/loader.h: New file.
28584
28585 * include/grub/i386/pc/loader.h (grub_linux_prot_size)
28586 (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
28587 (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
28588 (grub_multiboot_real_boot, grub_multiboot2_real_boot)
28589 (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): Moved from here ...
28590 * include/grub/i386/loader.h (grub_linux_prot_size)
28591 (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
28592 (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
28593 (grub_multiboot_real_boot, grub_multiboot2_real_boot)
28594 (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): ... to here.
28595
28596 * include/grub/i386/pc/loader.h: Include `grub/cpu/loader.h'.
28597
e179b2f4 285982007-10-15 Robert Millan <rmh@aybabtu.com>
28599
28600 * normal/misc.c (grub_normal_print_device_info): Do not probe for
28601 filesystem when dev->disk is unset.
28602 Do probe for filesystem even when dev->disk->has_partitions is set.
28603 In case a filesystem is found, always report it.
28604 In case it isn't, if dev->disk->has_partitions is set, report that
28605 a partition table was found instead of reporting that no filesystem
28606 could be identified.
28607
5db82af6 286082007-10-12 Robert Millan <rmh@aybabtu.com>
28609
28610 * conf/powerpc-ieee1275.rmk (grub_mkimage_SOURCES): Replace reference
28611 to util/powerpc/ieee1275/grub-mkimage.c with util/elf/grub-mkimage.c.
28612
68f6ac74 28613 * include/grub/types.h (grub_host_to_target16): New macro.
28614 (grub_host_to_target32): Likewise.
28615 (grub_host_to_target64): Likewise.
28616 (grub_target_to_host16): Likewise.
28617 (grub_target_to_host32): Likewise.
28618 (grub_target_to_host64): Likewise.
5db82af6 28619
28620 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
28621 Renamed from to ...
28622 (GRUB_MOD_ALIGN): ...this. Update all users.
28623
68f6ac74 28624 * util/elf/grub-mkimage.c (load_note): Replace grub_cpu_to_be32 with
28625 grub_host_to_target32.
28626 Replace grub_be_to_cpu32 with grub_target_to_host32.
28627 (load_modules): Likewise.
28628 (add_segments): Replace grub_be_to_cpu16 with grub_target_to_host16.
28629 Replace grub_be_to_cpu32 with grub_target_to_host32.
28630 Replace grub_cpu_to_be16 with grub_host_to_target16.
28631 Replace grub_cpu_to_be32 grub_host_to_target32.
5db82af6 28632
3cf497cc 286332007-10-12 Robert Millan <rmh@aybabtu.com>
28634
28635 * util/powerpc/ieee1275/grub-mkimage.c: Moved to ...
28636 * util/elf/grub-mkimage.c: ... here.
28637
28638 * DISTLIST: Add `util/elf/grub-mkimage.c'. Remove
28639 `util/powerpc/ieee1275/grub-mkimage.c'.
28640
c8cc3692 286412007-10-07 Robert Millan <rmh@aybabtu.com>
adbc4c9d 28642
c8cc3692 28643 * kern/powerpc/ieee1275/init.c: Rename HEAP_LIMIT to HEAP_MAX_ADDR,
28644 and make it easier to figure out.
28645 Add HEAP_MIN_SIZE and HEAP_MAX_ADDR definitions.
28646 (grub_claim_heap): Use HEAP_MAX_ADDR rather than taking a parameter.
28647 Do not avoid claiming a region above HEAP_MAX_ADDR if that would
28648 leave us with less than HEAP_MIN_SIZE total heap.
28649 Avoid our total amount of heap to surpass HEAP_MAX_SIZE.
adbc4c9d 28650
5c58b791 286512007-10-03 Robert Millan <rmh@aybabtu.com>
28652
28653 * include/grub/i386/io.h: New file.
28654 * commands/i386/pc/play.c (inb): Removed.
28655 (outb): Removed.
28656 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
28657 with grub_outb().
afcd2ef8 28658 * term/i386/pc/serial.c (inb): Removed.
28659 (outb): Removed.
28660 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
28661 with grub_outb().
28662 * term/i386/pc/vga.c (inb): Removed.
28663 (outb): Removed.
28664 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
28665 with grub_outb().
5c58b791 28666
1a477ed6 286672007-10-02 Robert Millan <rmh@aybabtu.com>
28668
28669 * conf/i386-efi.rmk (grub_emu_SOURCES): Add util/hostfs.c.
28670 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
28671 Reported by Marcin Kurek.
28672
6b5d80fa 286732007-09-07 Robert Millan <rmh@aybabtu.com>
28674
28675 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_test_flag): Detect
28676 SmartFirmware version updates (as released by Sven Luther), and avoid
28677 setting GRUB_IEEE1275_FLAG_NO_PARTITION_0 or
28678 GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS unless the running version is
28679 known broken.
28680
5618afbf 286812007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
28682
28683 From Hitoshi Ozeki:
28684 * kern/i386/pc/init.c (compact_mem_regions): Decrease NUM_REGIONS
28685 when merging two regions.
28686
6139dcd9 286872007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
28688
508e39ee 28689 * kern/rescue.c (grub_enter_rescue_mode): Free ARGS.
28690 * normal/completion.c (grub_normal_do_completion): Likewise.
28691 Reported by Hitoshi Ozeki.
28692
286932007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
f19dbdb7 28694
6139dcd9 28695 Do not use devices at boot in chainloading.
f19dbdb7 28696
6139dcd9 28697 * loader/i386/pc/chainloader.c (boot_drive): New variable.
28698 (boot_part_addr): Likewise.
28699 (grub_chainloader_boot): Simply call grub_chainloader_real_boot
28700 with BOOT_DRIVE and BOOT_PART_ADDR.
28701 (grub_chainloader_cmd): Set BOOT_DRIVE and BOOT_PART_ADDR.
28702 Reported by Hitoshi Ozeki <h-ozeki@ck2.so-net.ne.jp>.
28703
38da6516 287042007-08-29 Robert Millan <rmh@aybabtu.com>
28705
28706 Patch from Simon Peter <dn.tlp@gmx.net>:
28707 * genmk.rb (Utility): Append $(#{src}_DEPENDENCIES) to #{obj} targets.
28708 * conf/i386-pc.rmk: Replace grub-probe_DEPENDENCIES with
28709 util/grub-probe.c_DEPENDENCIES. Replace grub-setup_DEPENDENCIES with
28710 util/i386/pc/grub-setup.c_DEPENDENCIES.
28711 * conf/i386-efi.rmk: Replace grub-probe_DEPENDENCIES with
28712 util/grub-probe.c_DEPENDENCIES.
28713 * conf/powerpc-ieee1275.rmk: Likewise.
28714
29d0928c 287152007-08-28 Robert Millan <rmh@aybabtu.com>
28716
28717 * util/i386/get_disk_name.c: New. Implement grub_util_get_disk_name()
28718 to tell grub-mkdevicemap how to name devices.
28719 * util/ieee1275/get_disk_name.c: Likewise (using "ofpathname -a"
28720 feature).
28721
28722 * conf/i386-efi.rmk (grub_mkdevicemap_SOURCES): Add
28723 util/i386/get_disk_name.c.
28724 * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Likewise.
28725 * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Add
28726 util/ieee1275/get_disk_name.c.
28727
28728 * include/grub/util/misc.h: grub_util_get_disk_name() declaration.
28729
28730 * DISTLIST: Add util/i386/get_disk_name.c and
28731 util/ieee1275/get_disk_name.c.
28732
28733 * util/grub-mkdevicemap.c: Replace device naming logic with
28734 grub_util_get_disk_name() calls.
28735
5a0d3cca 287362007-08-20 Robert Millan <rmh@aybabtu.com>
28737
28738 * normal/menu.c (run_menu): Refer to seconds as "s" not "seconds"
28739 (so that it works for both plural and singular quantities).
28740
8b72db2f 287412007-08-05 Robert Millan <rmh@aybabtu.com>
28742
28743 * util/grub.d/10_linux.in (test_gt): Strip out vmlinu[xz]- prefix
28744 so that [xz] isn't taken into account when determining order.
28745
352466bf 287462007-08-02 Marco Gerards <marco@gnu.org>
28747
28748 * DISTLIST: Add `disk/host.c', `fs/ntfs.c', `include/multiboot.h',
28749 `include/multiboot2.h', `include/grub/elfload.h',
28750 `include/multiboot.h', `include/grub/multiboot.h',
28751 `include/grub/multiboot_loader.h', `include/grub/multiboot2.h',
28752 `include/grub/i386/pc/biosdisk.h', `include/grub/util/biosdisk.h',
28753 `kern/elf.c', `loader/multiboot_loader.c',
28754 `loader/multiboot_loader_normal.c', `loader/multiboot2.c',
28755 `loader/i386/pc/multiboot2.c',
28756 `loader/powerpc/ieee1275/multiboot2.c', `util/hostfs.c' and
28757 `util/i386/pc/grub-mkrescue.in'. Remove
28758 `include/grub/biosdisk.h', `include/grub/i386/pc/multiboot.h',
28759 `include/grub/i386/pc/util/biosdisk.h' and
28760 `include/grub/powerpc/ieee1275/multiboot.h'.
28761
8f096014 287622007-08-02 Bean <bean123ch@gmail.com>
28763
28764 * conf/common.rmk (pkgdata_MODULES): Add ntfs.mod.
28765 (ntfs_mod_SOURCES): New variable.
28766 (ntfs_mod_CFLAGS): Likewise.
28767 (ntfs_mod_LDFLAGS): Likewise.
28768
28769 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfs.c.
28770 (grub_probe_SOURCES): Likewise.
28771 (grub_emu_SOURCES): Likewise.
28772
28773 * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
28774 (grub_emu_SOURCES): Likewise.
28775
28776 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
28777 (grub_emu_SOURCES): Likewise.
f19dbdb7 28778
8f096014 28779 * conf/misc.c (grub_utf16_to_utf8): Fix unicode conversion bug.
28780
28781 * fs/ntfs.c: New file.
28782
9959f7db 287832007-08-02 Bean <bean123ch@gmail.com>
28784
28785 * disk.h (grub_disk): Use NESTED_FUNC_ATTR.
28786
28787 * file.h (grub_file): Likewise.
28788
28789 * fshelp.h (grub_fshelp_read_file): Likewise.
28790
28791 * util/i386/pc/grub-setup.c (setup): Likewise.
28792 (save_first_sector): Likewise.
28793 (save_blocklists): Likewise.
f19dbdb7 28794
9959f7db 28795 * fs/affs.c (grub_affs_read_file): Likewise.
28796
28797 * fs/ext2.c (grub_ext2_read_file): Likewise.
28798
28799 * fs/fat.c (grub_fat_read_data): Likewise.
28800
28801 * fs/fshelp.c (grub_fshelp_read_file): Likewise.
28802
28803 * fs/hfs.c (grub_hfs_read_file): Likewise.
28804
28805 * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
28806
28807 * fs/jfs.c (grub_jfs_read_file): Likewise.
28808
28809 * fs/minix.c (grub_minix_read_file): Likewise.
28810
28811 * fs/sfs.c (grub_sfs_read_file): Likewise.
28812
28813 * fs/ufs.c (grub_ufs_read_file): Likewise.
f19dbdb7 28814
9959f7db 28815 * fs/xfs.c (grub_xfs_read_file): Likewise.
28816
28817 * command/blocklist.c (read_blocklist): Likewise.
28818 (print_blocklist): Likewise.
28819
0a203f83 288202007-08-02 Marco Gerards <marco@gnu.org>
28821
28822 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/host.c' and
28823 `util/hostfs.c'.
28824
28825 * disk/host.c: New file.
28826
28827 * util/hostfs.c: Likewise.
28828
28829 * fs/hfsplus.c (grub_hfsplus_mount): When reading out of disk,
28830 return `GRUB_ERR_BAD_FS'.
28831 * fs/sfs.c (grub_sfs_mount): Likewise.
28832 * fs/xfs.c (grub_xfs_mount): Likewise.
28833
28834 * include/grub/disk.h (enum grub_disk_dev_id): Add
28835 `GRUB_DISK_DEVICE_HOST_ID'.
28836
28837 * util/grub-emu.c (main): Initialize and de-initialize hostfs.
28838
e5dfe777 288392007-07-24 Jerone Young <jerone@gmail.com>
28840
f19dbdb7 28841 * conf/i386-pc.rmk: Add Multiboot loader and multiboot 2 to multiboot
e5dfe777 28842 modules for compilation.
28843 * conf/powerpc-ieee1275.rmk: Likewise.
28844
28845 * include/multiboot.h: Move multiboot definitions to one file. Rename
28846 many definitions to not get grub specific.
28847 * include/multiboot2.h: Create header with multiboot 2 definitions.
28848 * include/grub/multiboot.h: Header for grub specific function
28849 prototypes and definitions.
28850 * include/grub/multiboot2.h: Likewise.
28851 * include/grub/multiboot_loader.h: Likewise.
28852 * include/grub/i386/pc/multiboot.h: Removed.
28853 * include/grub/powerpc/ieee1275/multiboot.h: Removed.
28854
28855 * loader/multiboot_loader.c: Created to act as a proxy for multiboot 1
28856 and 2 to allow for one multiboot and module commands.
28857 * loader/multiboot2.c: Add multiboot2 functionality.
28858 * loader/i386/pc/multiboot.c: Modify for new multiboot header location
28859 and definition names.
28860 * loader/i386/pc/multiboot2.c: Created to add i386 specific multiboot
28861 2 functions.
28862 * loader/powerpc/ieee1275/multiboot2.c: Created to add powerpc
28863 ieee1275 specific multiboot2 code.
28864
28865 * kern/i386/pc/startup.S: Change headers and definition names for
28866 multiboot. Add function grub_multiboot2_real_boot for multiboot 2.
28867
daf0f0ba 288682007-07-22 Robert Millan <rmh@aybabtu.com>
28869
28870 * geninitheader.sh: Process file specified in first parameter rather
28871 than hardcoding grub_modules_init.lst.
fe6b695a 28872 * geninit.sh: Likewise. Also, construct header name dynamically rather
daf0f0ba 28873 than hardcoding grub_modules_init.h.
28874
28875 * conf/common.rmk: Rename grub_modules_init.[ch] files associated with
28876 grub-emu to grub_emu_init.[ch]. Add rules to build analogous
28877 grub_probe_init.[ch] and grub_setup_init.[ch].
28878
28879 * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Replace
28880 grub_modules_init.h with grub_emu_init.h.
28881 (grub_probe_DEPENDENCIES, grub_probe_SOURCES): Add new
28882 grub_probe_init.[ch] files.
28883 * conf/i386-efi.rmk: Likewise.
28884 * conf/i386-pc.rmk: Likewise.
28885 (grub_setup_DEPENDENCIES, grub_setup_SOURCES): Add new
28886 grub_setup_init.[ch] files.
28887
28888 * util/grub-emu.c: Replace grub_modules_init.h with grub_emu_init.h.
28889 * util/grub-probe.c: Include grub_probe_init.h. Use grub_init_all()
28890 to initialize modules rather than a list of hardcoded functions.
28891 * util/i386/pc/grub-setup.c: Include grub_setup_init.h. Use
28892 grub_init_all() to initialize modules rather than a list of hardcoded
28893 functions.
28894
54cdc1cc 288952007-07-22 Robert Millan <rmh@aybabtu.com>
28896
28897 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set
28898 GRUB_IEEE1275_FLAG_NO_PARTITION_0 flag when running on SmartFirmware.
28899
ad0686cc 289002007-07-22 Robert Millan <rmh@aybabtu.com>
28901
28902 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
28903 GRUB_IEEE1275_FLAG_BROKEN_OUTPUT flag.
28904 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set this
28905 flag when running on SmartFirmware.
28906 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid running
28907 "output-device output" command when GRUB_IEEE1275_FLAG_BROKEN_OUTPUT
28908 was set.
28909
28910 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
28911 Increase partno when GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS flag is set,
28912 rather than decreasing it.
28913
28914 * util/i386/pc/grub-setup.c (setup): When embedding is required, but
28915 there's not enough space to do it, fail in the same way as when it
28916 can't be done because there are no partitions.
28917
28918 * util/powerpc/ieee1275/grub-install.in: Improve error message shown
28919 when nvsetenv failed.
28920
969c02ec 289212007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
28922
28923 * conf/i386-pc.rmk (CLEANFILES): Removed for grub-mkrescue,
28924 because this rule is automatically generated.
28925 (grub-mkrescue): Removed for the same reason as above.
28926
5a79f472 289272007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
28928
28929 Migrate to GNU General Public License Version 3.
f19dbdb7 28930
5a79f472 28931 * COPYING: Replaced with the plain text version of GPLv3.
28932
28933 * config.guess: Updated from gnulib.
28934 * config.sub: Likewise.
28935
28936 * geninit.sh: Output a GPLv3 copyright notice.
28937 * geninitheader.sh: Likewise.
28938 * genmodsrc.sh: Likewise.
28939 * gensymlist.sh.in: Likewise.
28940
28941 * boot/i386/pc/boot.S: Upgraded to GPLv3.
28942 * boot/i386/pc/diskboot.S: Likewise.
28943 * boot/i386/pc/pxeboot.S: Likewise.
28944 * commands/blocklist.c: Likewise.
28945 * commands/boot.c: Likewise.
28946 * commands/cat.c: Likewise.
28947 * commands/cmp.c: Likewise.
28948 * commands/configfile.c: Likewise.
28949 * commands/echo.c: Likewise.
28950 * commands/help.c: Likewise.
28951 * commands/ls.c: Likewise.
28952 * commands/search.c: Likewise.
28953 * commands/terminal.c: Likewise.
28954 * commands/test.c: Likewise.
28955 * commands/videotest.c: Likewise.
28956 * commands/i386/cpuid.c: Likewise.
28957 * commands/i386/pc/halt.c: Likewise.
28958 * commands/i386/pc/play.c: Likewise.
28959 * commands/i386/pc/reboot.c: Likewise.
28960 * commands/i386/pc/vbeinfo.c: Likewise.
28961 * commands/i386/pc/vbetest.c: Likewise.
28962 * commands/ieee1275/halt.c: Likewise.
28963 * commands/ieee1275/reboot.c: Likewise.
28964 * commands/ieee1275/suspend.c: Likewise.
28965 * disk/loopback.c: Likewise.
28966 * disk/lvm.c: Likewise.
28967 * disk/raid.c: Likewise.
28968 * disk/efi/efidisk.c: Likewise.
28969 * disk/i386/pc/biosdisk.c: Likewise.
28970 * disk/ieee1275/ofdisk.c: Likewise.
28971 * font/manager.c: Likewise.
28972 * fs/affs.c: Likewise.
28973 * fs/ext2.c: Likewise.
28974 * fs/fat.c: Likewise.
28975 * fs/fshelp.c: Likewise.
28976 * fs/hfs.c: Likewise.
28977 * fs/hfsplus.c: Likewise.
28978 * fs/iso9660.c: Likewise.
28979 * fs/jfs.c: Likewise.
28980 * fs/minix.c: Likewise.
28981 * fs/sfs.c: Likewise.
28982 * fs/ufs.c: Likewise.
28983 * fs/xfs.c: Likewise.
28984 * hello/hello.c: Likewise.
28985 * include/grub/acorn_filecore.h: Likewise.
28986 * include/grub/arg.h: Likewise.
28987 * include/grub/bitmap.h: Likewise.
28988 * include/grub/boot.h: Likewise.
28989 * include/grub/cache.h: Likewise.
28990 * include/grub/device.h: Likewise.
28991 * include/grub/disk.h: Likewise.
28992 * include/grub/dl.h: Likewise.
28993 * include/grub/elfload.h: Likewise.
28994 * include/grub/env.h: Likewise.
28995 * include/grub/err.h: Likewise.
28996 * include/grub/file.h: Likewise.
28997 * include/grub/font.h: Likewise.
28998 * include/grub/fs.h: Likewise.
28999 * include/grub/fshelp.h: Likewise.
29000 * include/grub/gzio.h: Likewise.
29001 * include/grub/hfs.h: Likewise.
29002 * include/grub/kernel.h: Likewise.
29003 * include/grub/loader.h: Likewise.
29004 * include/grub/lvm.h: Likewise.
29005 * include/grub/misc.h: Likewise.
29006 * include/grub/mm.h: Likewise.
29007 * include/grub/net.h: Likewise.
29008 * include/grub/normal.h: Likewise.
29009 * include/grub/parser.h: Likewise.
29010 * include/grub/partition.h: Likewise.
29011 * include/grub/pc_partition.h: Likewise.
29012 * include/grub/raid.h: Likewise.
29013 * include/grub/rescue.h: Likewise.
29014 * include/grub/script.h: Likewise.
29015 * include/grub/setjmp.h: Likewise.
29016 * include/grub/symbol.h: Likewise.
29017 * include/grub/term.h: Likewise.
29018 * include/grub/terminfo.h: Likewise.
29019 * include/grub/tparm.h: Likewise.
29020 * include/grub/types.h: Likewise.
29021 * include/grub/video.h: Likewise.
29022 * include/grub/efi/api.h: Likewise.
29023 * include/grub/efi/chainloader.h: Likewise.
29024 * include/grub/efi/console.h: Likewise.
29025 * include/grub/efi/console_control.h: Likewise.
29026 * include/grub/efi/disk.h: Likewise.
29027 * include/grub/efi/efi.h: Likewise.
29028 * include/grub/efi/pe32.h: Likewise.
29029 * include/grub/efi/time.h: Likewise.
29030 * include/grub/i386/linux.h: Likewise.
29031 * include/grub/i386/setjmp.h: Likewise.
29032 * include/grub/i386/types.h: Likewise.
29033 * include/grub/i386/efi/kernel.h: Likewise.
29034 * include/grub/i386/efi/loader.h: Likewise.
29035 * include/grub/i386/efi/time.h: Likewise.
29036 * include/grub/i386/pc/biosdisk.h: Likewise.
29037 * include/grub/i386/pc/boot.h: Likewise.
29038 * include/grub/i386/pc/chainloader.h: Likewise.
29039 * include/grub/i386/pc/console.h: Likewise.
29040 * include/grub/i386/pc/init.h: Likewise.
29041 * include/grub/i386/pc/kernel.h: Likewise.
29042 * include/grub/i386/pc/loader.h: Likewise.
29043 * include/grub/i386/pc/memory.h: Likewise.
29044 * include/grub/i386/pc/multiboot.h: Likewise.
29045 * include/grub/i386/pc/serial.h: Likewise.
29046 * include/grub/i386/pc/time.h: Likewise.
29047 * include/grub/i386/pc/vbe.h: Likewise.
29048 * include/grub/i386/pc/vbeblit.h: Likewise.
29049 * include/grub/i386/pc/vbefill.h: Likewise.
29050 * include/grub/i386/pc/vbeutil.h: Likewise.
29051 * include/grub/i386/pc/vga.h: Likewise.
29052 * include/grub/ieee1275/ieee1275.h: Likewise.
29053 * include/grub/ieee1275/ofdisk.h: Likewise.
29054 * include/grub/powerpc/libgcc.h: Likewise.
29055 * include/grub/powerpc/setjmp.h: Likewise.
29056 * include/grub/powerpc/types.h: Likewise.
29057 * include/grub/powerpc/ieee1275/biosdisk.h: Likewise.
29058 * include/grub/powerpc/ieee1275/console.h: Likewise.
29059 * include/grub/powerpc/ieee1275/ieee1275.h: Likewise.
29060 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
29061 * include/grub/powerpc/ieee1275/loader.h: Likewise.
29062 * include/grub/powerpc/ieee1275/multiboot.h: Likewise.
29063 * include/grub/powerpc/ieee1275/time.h: Likewise.
29064 * include/grub/powerpc/ieee1275/util/biosdisk.h: Likewise.
29065 * include/grub/sparc64/libgcc.h: Likewise.
29066 * include/grub/sparc64/setjmp.h: Likewise.
29067 * include/grub/sparc64/types.h: Likewise.
29068 * include/grub/sparc64/ieee1275/console.h: Likewise.
29069 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
29070 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
29071 * include/grub/sparc64/ieee1275/time.h: Likewise.
29072 * include/grub/util/biosdisk.h: Likewise.
29073 * include/grub/util/getroot.h: Likewise.
29074 * include/grub/util/lvm.h: Likewise.
29075 * include/grub/util/misc.h: Likewise.
29076 * include/grub/util/raid.h: Likewise.
29077 * include/grub/util/resolve.h: Likewise.
29078 * io/gzio.c: Likewise.
29079 * kern/device.c: Likewise.
29080 * kern/disk.c: Likewise.
29081 * kern/dl.c: Likewise.
29082 * kern/elf.c: Likewise.
29083 * kern/env.c: Likewise.
29084 * kern/err.c: Likewise.
29085 * kern/file.c: Likewise.
29086 * kern/fs.c: Likewise.
29087 * kern/loader.c: Likewise.
29088 * kern/main.c: Likewise.
29089 * kern/misc.c: Likewise.
29090 * kern/mm.c: Likewise.
29091 * kern/parser.c: Likewise.
29092 * kern/partition.c: Likewise.
29093 * kern/rescue.c: Likewise.
29094 * kern/term.c: Likewise.
29095 * kern/efi/efi.c: Likewise.
29096 * kern/efi/init.c: Likewise.
29097 * kern/efi/mm.c: Likewise.
29098 * kern/i386/dl.c: Likewise.
29099 * kern/i386/efi/init.c: Likewise.
29100 * kern/i386/efi/startup.S: Likewise.
29101 * kern/i386/pc/init.c: Likewise.
29102 * kern/i386/pc/lzo1x.S: Likewise.
29103 * kern/i386/pc/startup.S: Likewise.
29104 * kern/ieee1275/ieee1275.c: Likewise.
29105 * kern/powerpc/cache.S: Likewise.
29106 * kern/powerpc/dl.c: Likewise.
29107 * kern/powerpc/ieee1275/cmain.c: Likewise.
29108 * kern/powerpc/ieee1275/crt0.S: Likewise.
29109 * kern/powerpc/ieee1275/init.c: Likewise.
29110 * kern/powerpc/ieee1275/openfw.c: Likewise.
29111 * kern/sparc64/cache.S: Likewise.
29112 * kern/sparc64/dl.c: Likewise.
29113 * kern/sparc64/ieee1275/init.c: Likewise.
29114 * kern/sparc64/ieee1275/openfw.c: Likewise.
29115 * loader/efi/chainloader.c: Likewise.
29116 * loader/efi/chainloader_normal.c: Likewise.
29117 * loader/i386/efi/linux.c: Likewise.
29118 * loader/i386/efi/linux_normal.c: Likewise.
29119 * loader/i386/pc/chainloader.c: Likewise.
29120 * loader/i386/pc/chainloader_normal.c: Likewise.
29121 * loader/i386/pc/linux.c: Likewise.
29122 * loader/i386/pc/linux_normal.c: Likewise.
29123 * loader/i386/pc/multiboot.c: Likewise.
29124 * loader/i386/pc/multiboot_normal.c: Likewise.
29125 * loader/powerpc/ieee1275/linux.c: Likewise.
29126 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
29127 * normal/arg.c: Likewise.
29128 * normal/cmdline.c: Likewise.
29129 * normal/command.c: Likewise.
29130 * normal/completion.c: Likewise.
29131 * normal/execute.c: Likewise.
29132 * normal/function.c: Likewise.
29133 * normal/lexer.c: Likewise.
29134 * normal/main.c: Likewise.
29135 * normal/menu.c: Likewise.
29136 * normal/menu_entry.c: Likewise.
29137 * normal/misc.c: Likewise.
29138 * normal/parser.y: Likewise.
29139 * normal/script.c: Likewise.
29140 * normal/i386/setjmp.S: Likewise.
29141 * normal/powerpc/setjmp.S: Likewise.
29142 * normal/sparc64/setjmp.S: Likewise.
29143 * partmap/acorn.c: Likewise.
29144 * partmap/amiga.c: Likewise.
29145 * partmap/apple.c: Likewise.
29146 * partmap/gpt.c: Likewise.
29147 * partmap/pc.c: Likewise.
29148 * partmap/sun.c: Likewise.
29149 * term/gfxterm.c: Likewise.
29150 * term/terminfo.c: Likewise.
29151 * term/efi/console.c: Likewise.
29152 * term/i386/pc/console.c: Likewise.
29153 * term/i386/pc/serial.c: Likewise.
29154 * term/i386/pc/vesafb.c: Likewise.
29155 * term/i386/pc/vga.c: Likewise.
29156 * term/ieee1275/ofconsole.c: Likewise.
29157 * util/biosdisk.c: Likewise.
29158 * util/console.c: Likewise.
29159 * util/genmoddep.c: Likewise.
29160 * util/getroot.c: Likewise.
29161 * util/grub-emu.c: Likewise.
29162 * util/grub-mkdevicemap.c: Likewise.
29163 * util/grub-probe.c: Likewise.
29164 * util/lvm.c: Likewise.
29165 * util/misc.c: Likewise.
29166 * util/raid.c: Likewise.
29167 * util/resolve.c: Likewise.
29168 * util/update-grub.in: Likewise.
29169 * util/update-grub_lib.in: Likewise.
29170 * util/grub.d/00_header.in: Likewise.
29171 * util/grub.d/10_hurd.in: Likewise.
29172 * util/grub.d/10_linux.in: Likewise.
29173 * util/i386/efi/grub-install.in: Likewise.
29174 * util/i386/efi/grub-mkimage.c: Likewise.
29175 * util/i386/pc/grub-install.in: Likewise.
29176 * util/i386/pc/grub-mkimage.c: Likewise.
29177 * util/i386/pc/grub-mkrescue.in: Likewise.
29178 * util/i386/pc/grub-setup.c: Likewise.
29179 * util/i386/pc/misc.c: Likewise.
29180 * util/powerpc/ieee1275/grub-install.in: Likewise.
29181 * util/powerpc/ieee1275/grub-mkimage.c: Likewise.
29182 * util/powerpc/ieee1275/misc.c: Likewise.
29183 * video/bitmap.c: Likewise.
29184 * video/video.c: Likewise.
29185 * video/i386/pc/vbe.c: Likewise.
29186 * video/i386/pc/vbeblit.c: Likewise.
29187 * video/i386/pc/vbefill.c: Likewise.
29188 * video/i386/pc/vbeutil.c: Likewise.
29189 * video/readers/tga.c: Likewise.
29190
3572d015 291912007-07-02 Robert Millan <rmh@aybabtu.com>
29192
29193 * conf/i386-efi.rmk: Replace obsolete reference to
29194 util/i386/pc/biosdisk.c with util/biosdisk.c, and util/i386/pc/getroot.c
29195 with util/getroot.c.
29196 * conf/powerpc-ieee1275.rmk: Likewise.
29197 * conf/sparc64-ieee1275.rmk: Likewise.
29198
29199 * util/grub-emu.c (main): Fix unchecked pointer handling.
29200
2c2a681b 292012007-07-02 Robert Millan <rmh@aybabtu.com>
29202
29203 * util/i386/efi/grub-install.in: Allow `grub_probe --target=partmap'
29204 invocation to fail, in order to support partition-less media.
29205
29206 * util/i386/pc/grub-install.in: Likewise.
29207
29208 * util/powerpc/ieee1275/grub-install.in: Use grub-probe to determine
29209 which fs or partmap modules are needed (akin to its sister scripts).
29210
29211 Also use grub-probe to get rid of unportable /proc/mounts check.
29212
29213 Print the same informational message that the other scripts do, before
fe6b695a 29214 exiting.
2c2a681b 29215
6193defe 292162007-06-23 Robert Millan <rmh@aybabtu.com>
29217
fe6b695a 29218 * util/update-grub_lib.in (font_path): New function. Determine whether
6193defe 29219 a font file can be found and, if so, echo the GRUB path to it.
29220
29221 * util/update-grub.in: Handle multiple terminals depending on user
29222 input, platform availability and font file presence. Propagate
29223 variables of our findings to /etc/grub.d/ children.
29224
29225 * util/grub.d/00_header.in: Handle multiple terminals, based on
29226 environment setup by update-grub.
29227
eface1dc 292282007-06-23 Robert Millan <rmh@aybabtu.com>
29229
ba50d28f 29230 * conf/i386-pc.rmk (pkgdata_MODULES): Add serial.mod.
eface1dc 29231
bf697e28 292322007-06-21 Robert Millan <rmh@aybabtu.com>
29233
29234 * include/grub/i386/pc/kernel.h: Define GRUB_KERNEL_MACHINE_DATA_END to
29235 indicate end of data section in kernel image.
29236 * include/grub/i386/efi/kernel.h: Define GRUB_KERNEL_MACHINE_PREFIX and
29237 GRUB_KERNEL_MACHINE_DATA_END.
29238
29239 * kern/i386/pc/startup.S: Do not initialize grub_prefix, only reserve
29240 space for it.
29241 * kern/i386/efi/startup.S: Likewise.
29242
29243 * util/i386/pc/grub-mkimage.c: Initialize grub_prefix to /boot/grub
29244 during image generation. Implement --prefix option to override this
29245 patch.
29246 * util/i386/efi/grub-mkimage.c: Likewise.
29247
29248 * util/update-grub_lib.in (convert_system_path_to_grub_path): Split
29249 code to make path relative to its root into a separate function.
29250
29251 * util/i386/pc/grub-install.in: Use newly provided
29252 make_system_path_relative_to_its_root() to convert ${grubdir}, then
29253 pass the result to grub-install --prefix.
29254
baa574b4 292552007-06-13 Robert Millan <rmh@aybabtu.com>
29256
29257 * include/grub/util/misc.h: Define DEFAULT_DIRECTORY and
29258 DEFAULT_DEVICE_MAP.
29259 * util/grub-emu.c: Use above definitions from misc.h instead of
29260 defining them.
29261 * util/grub-mkdevicemap.c: Likewise.
29262 * util/i386/pc/grub-setup.c: Likewise.
29263 * util/grub-probe.c: Likewise.
29264 (probe): Abort with grub_util_error() when either
29265 grub_guess_root_device or grub_util_get_grub_dev fails.
29266
0215dcbf 292672007-06-12 Robert Millan <rmh@aybabtu.com>
29268
29269 * normal/command.c (grub_command_execute): Use NULL rather than 0 for
29270 "pager" assignment.
29271 * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Likewise for
29272 "pcdata".
29273 * util/grub-probe.c (probe): Likewise for "drive_name".
29274
8af2ab7b 292752007-06-11 Robert Millan <rmh@aybabtu.com>
29276
29277 * util/i386/pc/grub-mkrescue.in: Pad both floppy images with zeroes,
29278 not just the cdrom one.
29279
59d31694 292802007-06-11 Robert Millan <rmh@aybabtu.com>
29281
29282 * util/i386/pc/grub-mkrescue.in: Add "set -e".
29283 Add --pkglibdir=DIR option to override pkglibdir.
29284 Mention --image-type=TYPE in help output.
29285 Fix --grub-mkimage (it was a no-op).
fe6b695a 29286 Abort gracefully when no parameter is given.
59d31694 29287
7ee367e4 292882007-06-11 Robert Millan <rmh@aybabtu.com>
29289
29290 * util/i386/pc/grub-mkrescue.in: New file.
29291 * conf/i386-pc.rmk: Add its build declarations. Put it in bin_SCRIPTS.
29292 * Makefile.in: Handle bin_SCRIPTS.
29293
29b0ed46 292942007-06-10 Vesa Jaaskelainen <chaac@nic.fi>
29295
29296 * term/gfxterm.c (grub_gfxterm_init): Added support for specifying
29297 list of video modes.
29298
c0f90770 292992007-06-06 Robert Millan <rmh@aybabtu.com>
29300
29301 * util/update-grub_lib.in (convert_system_path_to_grub_path): Abort if
29302 file doesn't exist, or if it is in a filesystem grub can't read.
29303
29304 * util/update-grub.in: Set fallback for GRUB_FS check to "unknown". Do
29305 not abort if GRUB_DRIVE could not be defined. Rearrange generated
29306 header comment to fit in 80 columns when the variables are resolved.
29307
29308 * util/grub.d/00_header.in: Only set root variable when GRUB_DRIVE
29309 could be identified by update-grub. Remove redundant check for
fe6b695a 29310 unifont.pff existence (since convert_system_path_to_grub_path now
c0f90770 29311 handles that).
29312
fb36dc26 293132007-06-04 Robert Millan <rmh@aybabtu.com>
29314
29315 * conf/i386-efi.rmk (grub_probe_SOURCES): Add partmap/apple.c.
29316
29317 * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise.
29318
29319 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add partmap/pc.c.
29320
0c68c93e 293212007-06-04 Robert Millan <rmh@aybabtu.com>
29322
29323 * conf/powerpc-ieee1275.rmk: Enable grub-mkdevicemap and grub-probe.
29324
29325 * include/grub/partition.h: Declare grub_apple_partition_map_init and
29326 grub_apple_partition_map_fini.
29327
29328 * util/biosdisk.c
29329 (grub_util_biosdisk_open): Replace BLKGETSIZE with BLKGETSIZE64 (needed
29330 to access >2 TiB disks).
29331
29332 Print disk->total_sectors with %llu instead of %lu, since this
29333 variable is always 64-bit (prevents wrong disk size from being displayed
29334 on either >2 TiB disk or big-endian CPU).
29335
29336 (grub_util_biosdisk_get_grub_dev): Convert gpt_partition_map handling
29337 into a generic case that supports all (sane) partition maps.
29338
29339 Stop using grub_cpu_to_le32() on dos_part / bsd_part since it actually
29340 breaks big-endian.
29341
29342 * util/grub-probe.c: Call grub_apple_partition_map_init() before probe()
29343 and grub_apple_partition_map_fini() after that.
29344
0f23eb74 293452007-06-01 Robert Millan <rmh@aybabtu.com>
29346
29347 * util/update-grub.in: Export GRUB_CMDLINE_LINUX.
29348
29349 * util/grub.d/00_header.in: Only enable gfxterm when
29350 convert_system_path_to_grub_path() succeeds.
29351
42c71976 293522007-05-20 Robert Millan <rmh@aybabtu.com>
29353
29354 * util/update-grub_lib.in: New file.
29355 * DISTLIST: Add update-grub_lib.in.
29356 * conf/common.rmk: Generate update-grub_lib and install it in
29357 $(lib_DATA).
29358 * Makefile.in: Add install routine for $(lib_DATA).
29359
29360 * util/grub.d/00_header.in: Use convert_system_path_to_grub_path()
29361 function provided by update-grub_lib to support arbitrary paths of
29362 unifont.pff.
29363 * util/update-grub.in: Use convert_system_path_to_grub_path() to
29364 initialize GRUB_DRIVE_BOOT and GRUB_DRIVE_BOOT_GRUB variables.
29365
5beb2291 293662007-05-19 Robert Millan <rmh@aybabtu.com>
29367
29368 * commands/i386/cpuid.c: New module.
29369 * DISTLIST: Add it.
29370 * conf/i386-efi.rmk: Enable cpuid.mod.
29371 * conf/i386-pc.rmk: Likewise.
29372
7262eca1 293732007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
29374
29375 * kern/disk.c (grub_disk_read): Check return value of
29376 grub_realloc().
29377
260ba823 293782007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
29379
29380 * util/getroot.c (grub_util_get_grub_dev): Support partitionable
29381 arrays.
29382 * disk/raid.c (grub_raid_open): Likewise.
29383
1ecb6cf2 293842007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
29385
29386 * util/biosdisk.c (linux_find_partition): Allocate real_dev on the
29387 stack instead of on the heap.
29388
29389 * kern/disk.c (grub_disk_read): Make sure tmp_buf is big enough
29390 before doing a read on it.
29391
29392 * configure.ac: Only use -fno-stack-protector for the target
29393 environment.
f19dbdb7 29394
21c8cbb1 293952007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
29396
29397 * video/i386/pc/vbe.c (grub_video_vbe_create_render_target): Add
29398 __attribute_ ((unused)) to mode_type argument.
29399
29400 * util/getroot.c (grub_guess_root_device): Fix #endif.
f19dbdb7 29401
21c8cbb1 29402 * kern/misc.c (memcmp): Fix prototype.
29403
29404 * include/grub/partition.h [GRUB_UTIL]
29405 (grub_gpt_partition_map_init): Add prototype.
29406 (grub_gpt_partition_map_fini): Likewise.
29407
29408 * fs/jfs.c (struct grub_jfs_inode): Put __attribute__ ((packed)
29409 at the right place.
29410
29411 * fs/fat.c (grub_fat_mount): Replace ~0UL with ~0U.
29412 (grub_fat_read_data): Likewise.
29413 (grub_fat_find_dir): Likewise.
29414
29415 * font/manager.c (find_glyph): Make table a const.
29416 (grub_font_get_glyph): Remove bitmap from if statement.
f19dbdb7 29417
849d55d3 294182007-05-16 Jeroen Dekkers <jeroen@dekkers.cx>
29419
29420 * util/getroot.c (grub_guess_root_device): Remove RAID and LVM
29421 code, first search for device in /dev/mapper, then in /dev.
29422 (grub_util_get_grub_dev): New function.
29423 * include/grub/util/getroot.h (grub_util_get_grub_dev): Add
29424 prototype.
29425 * util/grub-probe.c (probe): Remove check for RAID, call
29426 grub_util_get_grub_dev() instead of
29427 grub_util_biosdisk_get_grub_dev().
29428 * util/grub-emu.c (main): Call grub_util_get_grub_dev() instead of
29429 grub_util_biosdisk_get_grub_dev().
29430 * util/i386/pc/grub-setup.c (main): Likewise.
29431
8fff7c2f 294322007-05-16 Robert Millan <rmh@aybabtu.com>
29433
29434 * DISTLIST: Update for the latest changes.
29435 * conf/i386-pc.rmk: Use the new paths for util/getroot.c,
29436 util/grub-mkdevicemap.c, util/grub-probe.c and util/biosdisk.c.
29437 * util/grub-emu.c: Replace grub/i386/pc/util/biosdisk.h with
29438 grub/util/biosdisk.h.
29439 * util/i386/pc/grub-setup.c: Replace grub/machine/util/biosdisk.h with
29440 grub/util/biosdisk.h.
29441
48e12b52 294422007-05-16 Robert Millan <rmh@aybabtu.com>
29443
29444 * util/grub.d/00_header.in: Set default gfxmode to `640x480'.
29445
46b9d128 294462007-05-16 Robert Millan <rmh@aybabtu.com>
29447
29448 * util/i386/efi/grub-install.in: New.
29449 * conf/i386-efi.rmk: Enable grub-mkdevicemap, grub-probe and the
29450 newly added grub-install.
29451 * util/biosdisk.c: Remove unnecessary grub/machine/biosdisk.h
29452 include.
29453 * util/getroot.c: Replace grub/i386/pc/util/biosdisk.h with
29454 grub/util/biosdisk.h.
29455 * util/grub-probe.c: Replace grub/machine/util/biosdisk.h with
29456 grub/util/biosdisk.h.
29457
2d1a40a9 294582007-05-16 Robert Millan <rmh@aybabtu.com>
29459
29460 * include/grub/i386/pc/util/biosdisk.h: Moved to ...
29461 * include/grub/util/biosdisk.h: ... here.
29462 * util/i386/pc/biosdisk.c: Moved to ...
29463 * util/biosdisk.c: ... here.
29464 * util/i386/pc/getroot.c: Moved to ...
29465 * util/getroot.c: ... here.
29466 * util/i386/pc/grub-mkdevicemap.c: Moved to ...
29467 * util/grub-mkdevicemap.c: ... here.
29468 * util/i386/pc/grub-probe.c: Moved to ...
29469 * util/grub-probe.c: ... here.
29470
9e26e3bc 294712007-05-15 Robert Millan <rmh@aybabtu.com>
29472
29473 * util/update-grub.in: Remove duplicated line in grub.cfg header
29474 message.
29475
57f96397 294762007-05-13 Robert Millan <rmh@aybabtu.com>
29477
29478 * util/update-grub.in: Fix a few assumptions about the devices holding
29479 /, /boot and /boot/grub being the same.
29480 * util/grub.d/00_header.in: Likewise.
29481 * util/grub.d/10_hurd.in: Likewise.
29482 * util/grub.d/10_linux.in: Likewise.
29483
29484 * util/grub.d/10_linux.in: Implement Linux image sorting with arbitrary
29485 patterns. Use that to define the `.old' suffix as older than `'.
29486
29487 * util/grub.d/00_header.in: Set default gfxmode to `800x600x16'.
29488
29489 * util/update-grub.in: Add a reference to ${sysconfdir}/default/grub in
29490 the grub.cfg header message.
29491
2e610d62 294922007-05-11 Robert Millan <rmh@aybabtu.com>
29493
29494 * util/update-grub.in: Create device.map if it doesn't already exist,
29495 before attempting to run grub-probe.
29496 Check for grub-probe and grub-mkdevicemap with the same code
29497 grub-install is using.
29498 Remove test mode.
29499
3f6a10ef 295002007-05-09 Jeroen Dekkers <jeroen@dekkers.cx>
29501
29502 * Makefile.in: Add the datarootdir autoconf variable.
29503
02e7b75e 295042007-05-09 Robert Millan <rmh@aybabtu.com>
29505
29506 * util/i386/pc/grub-probe.c (probe): When detecting partition map,
f19dbdb7 29507 fail gracefully if dev->disk->partition == NULL.
02e7b75e 29508
75f396cc 295092007-05-07 Robert Millan <rmh@aybabtu.com>
29510
29511 * util/i386/pc/grub-probe.c: Add `grub-probe -t partmap' parameter to
29512 determine partition map module.
29513 * util/i386/pc/grub-install.in: Use this feature to decide which
29514 partition module to load, instead of hardcoding pc and gpt.
29515
da65cb36 295162007-05-07 Robert Millan <rmh@aybabtu.com>
29517
29518 * Makefile.in: Fix assumption that $(srcdir) has a trailing slash when
29519 source directory differs from build directory.
29520
b57d6a91 295212007-05-05 Robert Millan <rmh@aybabtu.com>
29522
29523 * util/powerpc/ieee1275/grub-install.in: Fix syntax error in pkglibdir
29524 initialisation.
29525
509d00f1 295262007-05-05 Robert Millan <rmh@aybabtu.com>
29527
29528 * util/update-grub.in: Create ${grub_prefix} if it doesn't exist.
29529
c48f23ef 295302007-05-05 Robert Millan <rmh@aybabtu.com>
29531
29532 * util/grub.d/10_linux.in: Allow the administrator to insert Linux
29533 command-line arguments via ${GRUB_CMDLINE_LINUX}.
29534
20b97658 295352007-05-05 Robert Millan <rmh@aybabtu.com>
29536
29537 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/gpt.c.
29538 (grub_probe_SOURCES): Likewise.
29539 * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): Detect
29540 GPT and initialize dos_part and bsd_part accordingly.
29541 * util/i386/pc/grub-setup.c (setup): Ditto for install_dos_part and
29542 install_bsd_part.
29543 (main): Activate gpt module for use during partition identification,
29544 and deactivate it afterwards.
29545 * util/i386/pc/grub-install.in: Add gpt module to core.img.
29546 * util/i386/pc/grub-probe.c (main): Activate gpt module for use during
29547 partition identification, and deactivate it afterwards.
29548
99123174 295492007-05-05 Robert Millan <rmh@aybabtu.com>
29550
29551 * term/i386/pc/console.c (grub_console_fini): Call
29552 grub_term_set_current() before grub_term_unregister().
29553
ebd97f6e 295542007-05-04 Robert Millan <rmh@aybabtu.com>
29555
29556 * DISTLIST: Add util/update-grub.in, util/grub.d/00_header.in,
29557 util/grub.d/10_hurd.in, util/grub.d/10_linux.in and util/grub.d/README.
29558 * Makefile.in: Build update-grub_SCRIPTS. Install update-grub_SCRIPTS
29559 and update-grub_DATA.
29560 * conf/common.rmk: Build and install update-grub components.
29561 * conf/common.mk: Regenerate.
29562 * util/update-grub.in: New. Core of update-grub.
29563 * util/grub.d/00_header.in: New. Generates grub.cfg header.
29564 * util/grub.d/10_hurd.in: New. Generates boot entries for the Hurd.
29565 * util/grub.d/10_linux.in: New. Generates boot entries for Linux.
29566 * util/grub.d/README: New. Document grub.d directory layout.
29567
b06a264d 295682007-05-01 Robert Millan <rmh@aybabtu.com>
29569
29570 * util/grub-emu.c: Move initialization functions
29571 grub_util_biosdisk_init() and grub_init_all() before
29572 grub_util_biosdisk_get_grub_dev(), which relies on them.
29573
41f0050e 295742007-04-19 Robert Millan <rmh@aybabtu.com>
29575
29576 * util/powerpc/ieee1275/grub-install.in: Initialize ${bindir}, since
29577 it is used later.
29578
04582bb3 295792007-04-18 Jerone Young <jerone@gmail.com>
29580
f19dbdb7 29581 * kernel/elf.c: Add missing parenthesis for conditional statement
04582bb3 29582 stanza.
29583
08db4632 295842007-04-10 Jerone Young <jerone@gmail.com>
49892fdf 29585
08db4632 29586 * util/i386/pc/getroot.c: Update so that if root device is /dev/root ,
29587 continue on and look for device node with real device name.
29588
801b76be 295892007-04-10 Jerone Young <jerone@gmail.com>
f19dbdb7 29590
fe6b695a 29591 * configure.ac: Add argument for autoconf to use transformation
1d543c3e 29592 ability.
29593 * Makefile.in: Add autoconf package transformation code.
29594 * util/i386/pc/grub-install.in: Likewise.
29595 * util/powerpc/ieee1275/grub-install.in: Likewise.
29596
6795c4e1 295972007-03-19 Yoshinori K. Okuji <okuji@enbug.org>
29598
29599 * fs/ext2.c (EXT2_GOOD_OLD_REVISION): New macro.
29600 (EXT2_GOOD_OLD_INODE_SIZE): Likewise.
29601 (EXT2_REVISION): Likewise.
29602 (EXT2_INODE_SIZE): Likewise.
29603 (struct grub_ext2_block_group): Added a missing member
29604 "used_dirs".
29605 (grub_ext2_read_inode): Divide by the inode size in a superblock
29606 instead of 128 to obtain INODES_PER_BLOCK.
29607 Use the macro EXT2_INODE_SIZE instead of directly using
29608 SBLOCK->INODE_SIZE.
29609
d70af616 296102007-03-18 Yoshinori K. Okuji <okuji@enbug.org>
29611
29612 * fs/ext2.c (grub_ext2_read_inode): Use the inode size in a
29613 superblock instead of the structure size to compute an
29614 offset. This fixes the problem that GRUB could not read a
29615 filesystem when inode size is different from 128-byte.
29616
3b801603 296172007-03-05 Marco Gerards <marco@gnu.org>
29618
29619 * normal/main.c (read_config_file): When "menu" is not set, create
29620 an initial context.
29621
4785bfe4 296222007-02-21 Hollis Blanchard <hollis@penguinppc.org>
29623
29624 * kern/powerpc/ieee1275/init.c (HEAP_SIZE): Removed.
29625 (HEAP_LIMIT): New macro.
29626 (grub_claim_heap): Claim memory up to `heaplimit'.
29627
a0cbb023 296282007-02-21 Hollis Blanchard <hollis@penguinppc.org>
29629
29630 * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Link at 64KB.
29631 * kern/powerpc/ieee1275/init.c (_end): Add declaration.
29632 (_start): Likewise.
29633 (grub_arch_modules_addr): Return address after `_end'.
29634 * util/powerpc/ieee1275/grub-mkimage.c: Include grub/misc.h.
29635 (load_modules): Use new parameter as `p_paddr' and `p_vaddr'.
29636 (add_segments): Calculate `_end' from phdr size and location.
29637 (ALIGN_UP): Moved to ...
29638 * include/grub/misc.h: here.
29639 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
29640 New macro.
29641 (GRUB_IEEE1275_MODULE_BASE): Removed.
29642
fd7d8eba 296432007-02-20 Hollis Blanchard <hollis@penguinppc.org>
29644
29645 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Correct
29646 loop boundary.
29647
9b09e6fc 296482007-02-20 Hollis Blanchard <hollis@penguinppc.org>
29649
29650 * include/grub/elfload.h (grub_elf32_load_hook_t): Return grub_err_t.
29651 All users updated.
29652 (grub_elf64_load_hook_t): Likewise.
29653 * kern/elf.c: Call `grub_error_push' before `grub_error'. Improve
29654 debug output.
29655
3ce27299 296562007-02-20 Hollis Blanchard <hollis@penguinppc.org>
29657
29658 * kern/mm.c: Update copyright.
29659 (grub_mm_debug): Correct syntax error.
29660 (grub_mm_dump_free): New function.
29661 (grub_debug_free): Call `grub_free'.
29662 * include/grub/mm.h: Update copyright.
29663 (grub_mm_dump_free): Add declaration.
29664
077d5fee 296652007-02-12 Hollis Blanchard <hollis@penguinppc.org>
29666
29667 * include/grub/ieee1275/ieee1275.h: Update copyright.
29668 * kern/powerpc/ieee1275/init.c: Likewise.
29669 * kern/powerpc/ieee1275/openfw.c: Likewise.
29670
29671 * loader/powerpc/ieee1275/linux.c: Likewise.
29672 * include/grub/elfload.h: Likewise.
29673 * kern/elf.c: Likewise.
29674 (grub_elf32_load): Pass `base' and `size' parameters. Update all
29675 callers.
29676 (grub_elf64_load): Likewise.
29677 (grub_elf32_load_segment): Move to a nested function.
29678 (grub_elf64_load_segment): Likewise.
29679
dc946850 296802007-02-12 Hollis Blanchard <hollis@penguinppc.org>
29681
29682 * include/grub/ieee1275/ieee1275.h (grub_available_iterate): New
29683 prototype.
29684 * kern/powerpc/ieee1275/init.c (grub_heap_start): Removed.
29685 (grub_heap_len): Likewise.
29686 (HEAP_SIZE): New macro.
29687 (grub_claim_heap): New function.
29688 (grub_machine_init): Don't claim heap directly. Call
29689 `grub_claim_heap'.
29690 * kern/powerpc/ieee1275/openfw.c: Include alloca.h.
29691 (grub_available_iterate): New function.
29692
baa2a121 296932007-02-03 Thomas Schwinge <tschwinge@gnu.org>
29694
29695 * aclocal.m4 (grub_CHECK_STACK_PROTECTOR): New definition.
29696 * configure.ac: Use it for testing the HOST and TARGET compilers.
29697
4fe9862e 296982006-12-13 Thomas Schwinge <tschwinge@gnu.org>
29699
29700 * Makefile.in (enable_grub_emu): New variable.
29701 * configure.ac (--enable-grub-emu): New option.
29702 Do the checks for (n)curses only if `--enable-grub-emu' is requested.
29703 * conf/i386-efi.rmk (sbin_UTILITIES): Add `grub-emu' only if requested.
29704 * conf/i386-pc.rmk: Likewise.
29705 * conf/powerpc-ieee1275.rmk: Likewise.
29706 * conf/sparc64-ieee1275.rmk (bin_UTILITIES): Likewise.
29707
a8aa5762 297082006-12-12 Marco Gerards <marco@gnu.org>
29709
29710 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_MENU'.
29711
29712 * kern/env.c (grub_env_unset): Don't free the member `value' when
29713 the type is GRUB_ENV_VAR_DATA, in this case it's a user defined
29714 pointer.
29715
29716 * normal/main.c (current_menu): Removed.
29717 (free_menu): Unset the `menu' environment variable.
29718 (grub_normal_menu_addentry): Make use of the environment variable
29719 `menu', instead of using the global `current_menu'. Allocate
29720 memory for the sourcecode of this entry.
29721 (read_config_file): New argument `nested', changed all callers.
29722 Only in the case of a new context, initialize a new menu. Set the
29723 `menu' environment variable.
29724 (grub_normal_execute): Don't set and unset the environment
29725 variable `menu' here anymore. Only free the menu when leaving the
29726 context.
29727
29728 * util/i386/pc/biosdisk.c (linux_find_partition): Fixed a memory
29729 leak.
29730
957b3a3e 297312006-12-11 Marco Gerards <marco@gnu.org>
29732
29733 * normal/menu_entry.c (run): Fix off by one bug so the last line
29734 is executed. Move the loader check to outside the loop.
29735
ef875714 297362006-12-08 Hollis Blanchard <hollis@penguinppc.org>
29737
29738 * kern/powerpc/ieee1275/cmain.c (cmain): Mark r3 and r4 as `UNUSED'.
29739
4e739985 297402006-11-25 Yoshinori K. Okuji <okuji@enbug.org>
29741
29742 * util/i386/pc/grub-mkimage.c (generate_image): Fix the offset of
29743 the number of sectors. Reported by Andrey Shuvikov
29744 <mr_hyro@yahoo.com>.
f19dbdb7 29745
790707f2 297462006-11-11 Jeroen Dekkers <jeroen@dekkers.cx>
29747
29748 * kern/disk.c (grub_disk_read): When there is a read error, always
29749 try to read only the necessary data.
f19dbdb7 29750
790707f2 29751 * conf/i386-pc.rmk (grub_probe_SOURCES): Add disk/lvm.c and
29752 disk/raid.c.
29753 * include/grub/disk.h [GRUB_UTIL] (grub_raid_init): New
29754 prototype.
29755 [GRUB_UTIL] (grub_raid_fini): Likewise.
29756 [GRUB_UTIL] (grub_lvm_init): Likewise.
f19dbdb7 29757 [GRUB_UTIL] (grub_lvm_fini): Likewise.
790707f2 29758 * util/i386/pc/grub-probe.c (probe): Check whether DEVICE_NAME is
29759 RAID device and copy DEVICE_NAME to DRIVE_NAME in that case.
29760 (main): Call grub_raid_init(), grub_lvm_init(), grub_lvm_fini()
29761 and grub_raid_fini().
f19dbdb7 29762
03e58196 297632006-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
29764
29765 * include/grub/types.h (__unused): Rename to UNUSED.
29766 * kern/elf.c (grub_elf32_size): Use UNUSED instead of __unused.
29767 (grub_elf64_size): Likewise.
f19dbdb7 29768
ae4f23bf 297692006-11-03 Hollis Blanchard <hollis@penguinppc.org>
29770
29771 * kern/elf.c (grub_elf_file): Call grub_file_seek. Call
29772 grub_error_push and grub_error_pop in the error-handling path.
29773 (grub_elf32_load_segment): Only call grub_file_read with non-zero
29774 length.
29775
2166cc83 297762006-11-03 Hollis Blanchard <hollis@penguinppc.org>
29777
29778 * conf/i386-efi.rmk (grub_emu_SOURCES): Add kern/elf.c.
29779 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
29780 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
29781 (kernel_elf_SOURCES): Likewise.
29782 * conf/i386-efi.rmk (kernel_mod_HEADERS): Add elfload.h and cache.h.
29783 * conf/i386-pc.rmk (kernel_mod_HEADERS): Likewise.
29784 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
29785 * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
29786 * conf/common.rmk (pkgdata_MODULES): Add elf.mod.
29787 (elf_mod_SOURCES): New variable.
29788 (elf_mod_CFLAGS): Likewise.
29789 (elf_mod_LDFLAGS): Likewise.
29790 * include/grub/types.h (__unused): New macro.
29791 * include/grub/elfload.h: New file.
29792 * kern/elf.c: Likewise.
29793 * loader/powerpc/ieee1275/linux.c: Include elfload.h.
29794 (ELF32_LOADMASK): New macro.
29795 (ELF64_LOADMASK): Likewise.
29796 (vmlinux): Removed.
29797 (grub_linux_load32): New function.
29798 (grub_linux_load64): Likewise.
29799 (grub_rescue_cmd_linux): Call grub_linux_load32 or grub_linux_load64.
29800 Use grub_elf_t instead of grub_file_t.
29801
a09d5aa5 298022006-11-02 Hollis Blanchard <hollis@penguinppc.org>
29803
29804 * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): Add
29805 `catch_result' to struct set_color_args.
29806
d976fc51 298072006-10-28 Yoshinori K. Okuji <okuji@enbug.org>
29808
29809 * normal/menu.c: Include grub/script.h.
29810 * normal/menu_entry.c: Likewise.
29811 * include/grub/normal.h: Do not include grub/script.h.
29812
67507549 298132006-10-27 Hollis Blanchard <hollis@penguinppc.org>
29814
29815 * kern/disk.c (grub_disk_read): Correct debug printf formatting.
29816
69203a99 298172006-10-27 Hollis Blanchard <hollis@penguinppc.org>
29818
29819 * kern/disk.c (grub_disk_open): Print debug messages when opening a
29820 disk.
29821 (grub_disk_close): Print debug messages when closing a disk.
29822 (grub_disk_read): Print debug messages when disk read fails.
29823 * kern/fs.c (grub_fs_probe): Print debug messages when detecting
29824 filesystem type.
29825 * kern/partition.c: Include misc.h.
29826 (grub_partition_iterate): Print debug messages when detecting
29827 partition type.
29828
e2b8278c 298292006-10-27 Hollis Blanchard <hollis@penguinppc.org>
29830
29831 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Return error if `status'
29832 is negative.
29833 * kern/ieee1275/ieee1275.c (IEEE1275_IHANDLE_INVALID): Change to 0.
29834
97b2f2ff 298352006-10-26 Hollis Blanchard <hollis@penguinppc.org>
29836
29837 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
29838 Reverse GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS test.
29839
6555d655 298402006-10-25 Jeroen Dekkers <jeroen@dekkers.cx>
29841
29842 * disk/lvm.c (grub_lvm_scan_device): Malloc sizeof(*lv) bytes
29843 instead of sizeof(lv). Patch by Michael Guntsche.
29844
4d42b77f 298452006-10-18 Jeroen Dekkers <jeroen@dekkers.cx>
29846
29847 * disk/lvm.c: Rename VGS to VG_LIST.
29848 (grub_lvm_iterate): Change VGS->LV to VG-LV.
29849 (grub_lvm_open): Likewise.
29850 Thanks to Michael Guntsche for finding this bug.
29851
5d74d927 298522006-10-15 Yoshinori K. Okuji <okuji@enbug.org>
29853
29854 * configure.ac (AC_INIT): Bumped to 1.95.
29855
a1bb27e4 298562006-10-14 Robert Millan <rmh@aybabtu.com>
29857
29858 * util/i386/pc/getroot.c (grub_guess_root_device): Don't compare os_dev
29859 with "/dev/.static/dev/md".
29860
e0994b8b 298612006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
29862
29863 * util/i386/pc/grub-probe.c (probe): Print DEVICE_NAME instead of
29864 DRIVE_NAME when grub_util_biosdisk_get_grub_dev fails. Open
29865 DRIVE_NAME instead of DEVICE_NAME. Make sure that DEVICE_NAME and
29866 DRIVE_NAME are always freed.
29867
29868 * util/i386/pc/biosdisk.c (make_device_name): Add one into
29869 DOS_PART, as a DOS partition is counted from one instead of zero
29870 now. Reported by Robert Millan.
29871
ddd5cee9 298722006-10-14 Robert Millan <rmh@aybabtu.com>
29873
29874 * util/i386/pc/getroot.c (grub_guess_root_device): Stop using
29875 grub_util_biosdisk_get_grub_dev to convert system device to GRUB device.
29876 * util/grub-emu.c (main): Use grub_util_biosdisk_get_grub_dev with the
29877 string returned by grub_guess_root_device.
29878 * util/i386/pc/grub-setup.c: Likewise.
29879 * util/i386/pc/grub-probefs.c: Likewise.
29880
29881 * util/i386/pc/grub-probefs.c: Rename to ...
29882 * util/i386/pc/grub-probe.c: ... this.
29883 * DISTLIST: Remove grub-probefs, add grub-probe.
29884 * conf/i386-efi.rmk: Likewise.
29885 * conf/i386-pc.rmk: Likewise.
29886 * util/i386/pc/grub-install.in: Likewise.
29887
29888 * util/i386/pc/grub-probe.c: Add --target=(fs|device|drive) option to
29889 choose which information we want to print.
29890
2b002173 298912006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
29892
29893 * DISTLIST: Added commands/echo.c, disk/lvm.c, disk/raid.c,
29894 include/grub/bitmap.h, include/grub/lvm.h, include/grub/raid.h,
29895 include/grub/i386/pc/vbeutil.h, include/grub/util/lvm.h,
29896 include/grub/util/raid.h, util/lvm.c, util/raid.c, video/bitmap.c,
29897 video/readers/tga.c and video/i386/pc/vbeutil.c.
29898
298992006-10-14 Jeroen Dekkers <jeroen@dekkers.cx>
29900
29901 Added support for RAID and LVM.
f19dbdb7 29902
2b002173 29903 * disk/lvm.c: New file.
29904 * disk/raid.c: Likewise.
29905 * include/grub/lvm.h: Likewise.
f19dbdb7 29906 * include/grub/raid.h: Likewise.
2b002173 29907 * include/grub/util/lvm.h: Likewise.
29908 * include/grub/util/raid.h: Likewise.
29909 * util/lvm.c: Likewise.
29910 * util/raid.c: Likewise.
29911
29912 * include/grub/disk.h (grub_disk_dev_id): Add
29913 GRUB_DISK_DEVICE_RAID_ID and GRUB_DISK_DEVICE_LVM_ID.
29914 (grub_disk_get_size): New prototype.
29915 * kern/disk.c (grub_disk_open): Check whether grub_partition_probe()
29916 returns a partition.
29917 (grub_disk_get_size): New function.
f19dbdb7 29918
2b002173 29919 * kern/i386/pc/init.c (make_install_device): Copy the prefix
29920 verbatim if grub_install_dos_part is -2.
29921
29922 * util/i386/pc/getroot.c (grub_guess_root_device): Support RAID
29923 and LVM devices.
29924
29925 * util/i386/pc/grub-setup.c (setup): New argument
29926 MUST_EMBED. Force embedding of GRUB when the argument is
29927 true. Close FILE before returning.
29928 (main): Add support for RAID and LVM.
f19dbdb7 29929
2b002173 29930 * conf/common.rmk: Add RAID and LVM modules.
29931 * conf/i386-pc.rmk (grub_setup_SOURCES): Add util/raid.c and
29932 util/lvm.c.
29933 (grub_emu_SOURCES): Add disk/raid.c and disk/lvm.c.
29934
29935 * kern/misc.c (grub_strstr): New function.
29936 * include/grub/misc.h (grub_strstr): New prototype.
29937
050548d0 299382006-10-10 Tristan Gingold <tristan.gingold@bull.net>
29939
29940 * include/grub/efi/api.h (GRUB_EFI_ERROR_CODE): Long constant.
29941
da849d2d 299422006-10-05 Tristan Gingold <tristan.gingold@bull.net>
29943
29944 * kern/misc.c (grub_strtoull): Guess the base only if not
29945 specified.
29946
97b2f2ff 299472006-10-01 Hollis Blanchard <hollis@penguinppc.org>
4f0acd39 29948
29949 * kern/powerpc/ieee1275/cmain.c (cmain): Remove incomplete Old World
29950 PowerMac support.
29951
97b2f2ff 299522006-10-01 Hollis Blanchard <hollis@penguinppc.org>
fba51f48 29953
29954 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Cast `size' to long.
29955
29956 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_next_property):
29957 Remove `flags' argument. All callers changed.
29958 * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_ROOT): Removed.
29959 (IEEE1275_IHANDLE_INVALID): New variable.
29960 (IEEE1275_CELL_INVALID): New variable.
29961 (grub_ieee1275_finddevice, grub_ieee1275_get_property,
29962 grub_ieee1275_get_property_length, grub_ieee1275_instance_to_package,
29963 grub_ieee1275_package_to_path, grub_ieee1275_instance_to_path,
29964 grub_ieee1275_peer, grub_ieee1275_child, grub_ieee1275_open,
29965 grub_ieee1275_claim, grub_ieee1275_set_property): Error-check return
29966 codes from Open Firmware. All callers updated.
29967 (grub_ieee1275_next_property): Directly return Open Firmware return
29968 code.
29969 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
29970 Standardize error checking from `grub_ieee1275_get_property'.
29971 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Rename
29972 `devalias' to `aliases'. Correct comments. Consolidate error paths.
29973
97b2f2ff 299742006-10-01 Hollis Blanchard <hollis@penguinppc.org>
cc6d3df3 29975
29976 * kern/ieee1275/ieee1275.c (grub_ieee1275_instance_to_path): Rename
29977 `instance_to_package_args' to `instance_to_path_args'.
29978
29979 * kern/powerpc/ieee1275/init.c (grub_machine_init): Use
29980 `grub_ieee1275_chosen'.
29981
29982 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Call
29983 `grub_ieee1275_interpret'.
29984
97b2f2ff 299852006-09-25 Hollis Blanchard <hollis@penguinppc.org>
02bb8acc 29986
29987 * util/powerpc/ieee1275/grub-mkimage.c: Include config.h.
29988
97b2f2ff 299892006-09-25 Hollis Blanchard <hollis@penguinppc.org>
663b72f0 29990
29991 * include/grub/powerpc/libgcc.h (__floatdisf): New prototype.
29992 (__cmpdi): Likewise.
29993
29994 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Pass 0 as
29995 `flags' to `grub_ieee1275_next_property'. Change `pathlen' to type
29996 `grub_ssize_t'.
29997
02bb8acc 29998 * kern/powerpc/ieee1275/cmain.c: Include grub/misc.h.
663b72f0 29999
30000 * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Change `actual'
30001 to type `grub_ssize_t'.
30002 (grub_rescue_cmd_linux): Cast -1 to `grub_off_t'.
30003
7f9a8531 300042006-09-22 Marco Gerards <marco@gnu.org>
30005
30006 * normal/script.c (grub_script_create_cmdmenu): Skip leading
30007 newlines.
30008
b5ef1102 300092006-09-22 Marco Gerards <marco@gnu.org>
30010
30011 * commands/echo.c: New file.
30012
30013 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/echo.c'.
30014
30015 * conf/common.rmk (echo_mod_SOURCES): New variable.
30016 (echo_mod_CFLAGS): Likewise.
30017 (echo_mod_LDFLAGS): Likewise.
30018
2cff3677 300192006-09-22 Marco Gerards <marco@gnu.org>
30020
30021 * normal/main.c (get_line): Malloc memory instead of using
30022 preallocated memory. Removed the arguments `cmdline' and
30023 `max_len'. Updated all callers.
30024
6ba4688b 300252006-09-22 Marco Gerards <marco@gnu.org>
30026
30027 * conf/i386-efi.rmk (grub_emu_DEPENDENCIES): New variable.
30028 (normal_mod_DEPENDENCIES): Likewise.
30029
30030 * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Likewise.
30031 (normal_mod_DEPENDENCIES): Likewise.
30032
30033 * conf/sparc64-ieee1275.rmk (normal_mod_DEPENDENCIES): Likewise.
30034
e02ac02c 300352006-09-22 Johan Rydberg <jrydberg@gnu.org>
30036
30037 * genmk.rb: Add DEPENDENCIES variables to modules, utilities, and
30038 programs.
30039 * conf/i386-pc.rmk (grub_emu_DEPENDENCIES): Declare.
30040 (normal_mod_DEPENDENCIES): Likewise.
30041 * conf/i386-pc.mk: Regenerate.
30042 * conf/i386-efi.mk: Likewise
30043 * conf/common.mk: Likewise.
30044 * conf/powerpc-ieee1275.mk: Likewise.
30045 * conf/sparc64-ieee1275.mk: Likewise.
f19dbdb7 30046
8d252e44 300472006-09-22 Robert Millan <rmh@aybabtu.com>
30048
30049 Sync with i386 version.
30050 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Remove grub-emu, add grub-mkimage.
30051 * conf/powerpc-ieee1275.rmk (sbin_UTILITIES): Remove grub-mkimage, add grub-emu.
30052
209bf7ac 300532006-09-21 Robert Millan <rmh@aybabtu.com>
30054
30055 Import from GRUB Legacy (lib/device.c):
30056 * util/i386/pc/grub-mkdevicemap.c (get_i2o_disk_name): New function.
30057 (init_device_map) [__linux__]: Add support for I2O devices.
30058
6b146090 300592006-09-14 Marco Gerards <marco@gnu.org>
30060
30061 * conf/i386-pc.rmk (COMMON_LDFLAGS): Use `-m32' instead of
30062 `-melf_i386'.
30063
e38600a8 300642006-09-14 Robert Millan <rmh@aybabtu.com>
2952da5d 30065
30066 * util/i386/pc/grub-install.in: Skip menu.lst when removing
30067 /boot/grub/*.lst.
78fa1790 30068
2952da5d 30069 * util/i386/pc/getroot.c: Don't recurse into dotdirs (e.g. ".static").
6b146090 30070
2952da5d 30071 * util/i386/pc/grub-mkdevicemap.c: Make sure the floppy device exists
30072 before adding it to device.map.
30073
01b82a64 300742006-08-15 Johan Rydberg <jrydberg@gnu.org>
30075
fe6b695a 30076 * genmk.rb: Let GCC generate dependencies the first time it
01b82a64 30077 compiles a file; using the -MD option.
30078 * conf/common.mk: Regenerate.
30079 * conf/i386-pc.mk: Likewise.
30080 * conf/i386-efi.mk: Likewise.
30081 * conf/powerpc-ieee1275.mk: Likewise.
30082 * conf/sparc64-ieee1275.mk: Likewise.
f19dbdb7 30083
1064790d 300842006-08-04 Yoshinori K. Okuji <okuji@enbug.org>
30085
30086 Move the prototypes of grub_setjmp and grub_longjmp to
30087 cpu/setjmp.h, so that each architecture may specify different
30088 attributes.
f19dbdb7 30089
1064790d 30090 * include/grub/i386/setjmp.h (grub_setjmp): New prototype.
30091 (grub_longjmp): Likewise.
30092 * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise..
30093 (grub_longjmp): Likewise.
30094 * include/grub/sparc64/setjmp.h (grub_setjmp): Likewise..
30095 (grub_longjmp): Likewise.
30096
30097 * include/grub/setjmp.h [!GRUB_UTIL] (grub_setjmp): Removed.
30098 [!GRUB_UTIL] (grub_longjmp): Removed.
30099
29dda3ed 301002006-08-01 Pelletier Vincent <subdino2004@yahoo.fr>
30101
30102 * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): IEEE1275
30103 "color!" method does not return any value.
30104
ad2a06ed 301052006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
30106
30107 * include/grub/bitmap.h: New file.
30108
30109 * include/grub/i386/pc/vbeutil.h: Likewise.
30110
30111 * video/bitmap.c: Likewise.
30112
30113 * video/readers/tga.c: Likewise.
30114
30115 * video/i386/pc/vbeutil.c: Likewise.
30116
30117 * commands/videotest.c: Code cleanup and updated to reflect to new
30118 video API.
30119
30120 * term/gfxterm.c: Likewise.
30121
30122 * video/video.c: Likewise.
30123
30124 * conf/i386-pc.rmk (pkgdata_MODULES): Added tga.mod and bitmap.mod.
30125 (vbe_mod_SOURCES): Added video/i386/pc/vbeutil.c.
30126 (bitmap_mod_SOURCES): New entry.
30127 (bitmap_mod_CFLAGS): Likewise.
30128 (bitmap_mod_LDFLAGS): Likewise.
30129 (tga_mod_SOURCES): Likewise.
30130 (tga_mod_CFLAGS): Likewise.
30131 (tga_mod_LDFLAGS): Likewise.
30132
30133 * include/grub/video.h (grub_video_blit_operators): New enum type.
30134 (grub_video_render_target): Changed as forward declaration and moved
30135 actual definition to be video driver specific.
30136 (grub_video_adapter.blit_bitmap): Added blitting operator.
30137 (grub_video_adapter.blit_render_target): Likewise.
30138 (grub_video_blit_bitmap): Likewise.
30139 (grub_video_blit_render_target): Likewise.
30140
30141 * include/grub/i386/pc/vbe.h (grub_video_render_target): Added
30142 driver specific render target definition.
30143 (grub_video_vbe_map_rgba): Added driver internal helper.
30144 (grub_video_vbe_unmap_color): Updated to use
30145 grub_video_i386_vbeblit_info.
30146 (grub_video_vbe_get_video_ptr): Likewise.
30147
30148 * include/grub/i386/pc/vbeblit.h
30149 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8): Updated to use
30150 grub_video_i386_vbeblit_info.
30151 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
30152 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
30153 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
30154 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
30155 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
30156 (grub_video_i386_vbeblit_index_index): Likewise.
30157 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): New blitter function.
30158 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
30159 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
30160 (grub_video_i386_vbeblit_blend): Added generic blitter for blend
30161 operator.
30162 (grub_video_i386_vbeblit_replace): Added generic blitter for replace
30163 operator.
30164
30165 * video/i386/pc/vbeblit.c: Updated to reflect changes on
30166 include/grub/i386/pc/vbeblit.h.
30167
30168 * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8):
30169 Updated to use grub_video_i386_vbeblit_info.
30170 (grub_video_i386_vbefill_R8G8B8): Likewise.
30171 (grub_video_i386_vbefill_index): Likewise.
30172 (grub_video_i386_vbefill): Added generic filler.
30173
30174 * video/i386/pc/vbefill.c: Updated to reflect changes on
30175 include/grub/i386/pc/vbefill.h.
30176
30177 * video/i386/pc/vbe.c (grub_video_vbe_get_video_ptr): Updated to use
30178 grub_video_i386_vbeblit_info.
30179 (grub_video_vbe_unmap_color): Likewise.
30180 (grub_video_vbe_blit_glyph): Likewise.
30181 (grub_video_vbe_scroll): Likewise.
30182 (grub_video_vbe_draw_pixel): Removed function.
30183 (grub_video_vbe_get_pixel): Likewise.
30184 (grub_video_vbe_fill_rect): Moved all blitters to vbefill.c and
30185 updated code to use it.
30186 (common_blitter): Added common blitter for render target and bitmap.
30187 (grub_video_vbe_blit_bitmap): Updated to use common_blitter.
30188 (grub_video_vbe_blit_render_target): Likewise.
30189
bc8c036d 301902006-07-30 Johan Rydberg <jrydberg@gnu.org>
30191
30192 * kern/efi/efi.c (grub_efi_set_text_mode): Assume console already
30193 is in text mode if there is no console control protocol instance
30194 available.
30195
684a8eff 301962006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
30197
30198 * include/grub/video.h: Code cleanup.
30199
30200 * include/grub/i386/pc/vbe.h: Likewise.
30201
30202 * video/i386/pc/vbe.c: Likewise.
30203
30204 * video/i386/pc/vbeblit.c: Likewise.
30205
30206 * video/i386/pc/vbefill.c: Likewise.
30207
30208 * video/video.c: Likewise. Also added more comments.
30209
5915059b 302102006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
30211
30212 * disk/i386/pc/biosdisk.c (struct grub_biosdisk_drp): Moved to ...
30213 (struct grub_biosdisk_dap): Likewise.
30214
30215 * include/grub/i386/pc/biosdisk.h: ... to here. Also corrected
30216 linkage settings for all functions.
30217
90ce5d56 302182006-07-12 Marco Gerards <marco@gnu.org>
30219
30220 * configure.ac (--enable-mm-debug): Fix typo.
30221
30222 * genkernsyms.sh.in: Use proper quoting for `CC'.
30223
43e7f879 302242006-07-02 Jeroen Dekkers <jeroen@dekkers.cx>
30225
30226 * conf/i386-pc.rmk (COMMON_ASFLAGS): Add "-m32".
30227 (normal_mod_ASFLAGS): Remove "-m32".
30228
4889bdec 302292006-06-14 Yoshinori K. Okuji <okuji@enbug.org>
30230
30231 * util/misc.c: Include config.h.
30232 [!HAVE_MEMALIGN]: Do not include malloc.h.
30233 (grub_memalign): Use posix_memalign, if present. Then, use
30234 memalign, if present. Otherwise, emit an error.
30235
30236 * util/grub-emu.c: Do not include malloc.h.
30237
30238 * include/grub/util/misc.h: Include unistd.h. This is required for
30239 FreeBSD, because off_t is defined in unistd.h. Reported by Harley
30240 D. Eades III <hde@foobar-qux.org>.
30241
30242 * configure.ac (AC_GNU_SOURCE): Added.
30243 (AC_CHECK_FUNCS): Check posix_memalign and memalign for the host
30244 type.
30245
fd39d4da 302462006-06-09 Yoshinori K. Okuji <okuji@enbug.org>
30247
30248 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Make sure that
30249 ADDR_MAX does not exceed GRUB_LINUX_INITRD_MAX_ADDRESS.
30250
b786f3b5 302512006-06-07 Jeroen Dekkers <jeroen@dekkers.cx>
30252
30253 * include/grub/types.h (grub_host_addr_t): Rename to
30254 grub_target_addr_t.
30255 (grub_host_off_t): Rename to grub_target_off_t.
30256 (grub_host_size_t): Rename to grub_target_size_t.
30257 (grub_host_ssize_t): Rename to grub_target_ssize_t.
30258 Refer to GRUB_TARGET_SIZEOF_VOID_P to define those variables.
30259
30260 * include/grub/kernel.h (struct grub_module_header): Change type
30261 of OFFSET to grub_target_off_t and type of SIZE to grub_target_size_t.
30262 (grub_module_info): Likewise.
f19dbdb7 30263
051988bb 302642006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
30265
30266 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): The conditional
30267 of checking LINUX_MEM_SIZE was reverse. Reported by Jesus
30268 Velazquez <jesus.velazquez@gmail.com>.
30269
deae281b 302702006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
30271
30272 Count partitions from 1 instead of 0 in the string representation
30273 of partitions. Still use 0-based internally.
f19dbdb7 30274
deae281b 30275 * partmap/sun.c (grub_sun_is_valid): A cosmetic change.
30276 (sun_partition_map_iterate): Use grub_partition_t instead of
30277 struct grub_partition *. Cast DESC->START_CYLINDER to
30278 grub_uint64_t after converting the endian.
30279 (sun_partition_map_probe): Subtract 1 for PARTNUM.
30280 (sun_partition_map_get_name): Add 1 to P->INDEX.
30281
30282 * partmap/pc.c (grub_partition_parse): Subtract 1 for
30283 PCDATA->DOS_PART.
30284 (pc_partition_map_get_name): Add 1 into PCDATA->DOS_PART.
30285
30286 * partmap/gpt.c (gpt_partition_map_iterate): Initialize PARTNO to
30287 zero instead of one.
30288 (gpt_partition_map_probe): Subtract 1 for PARTNUM.
30289 (gpt_partition_map_get_name): Add 1 into P->INDEX.
30290
30291 * partmap/apple.c (apple_partition_map_iterate): Change the type
30292 of POS to unsigned.
30293 (apple_partition_map_probe): Subtract 1 for PARTNUM.
30294 (apple_partition_map_get_name): Add 1 into P->INDEX.
30295
30296 * partmap/amiga.c (amiga_partition_map_iterate): Change the type
30297 of POS to unsigned.
30298 (amiga_partition_map_iterate): Cast NEXT to grub_off_t to
30299 calculate the offset of a partition.
30300 (amiga_partition_map_probe): Subtract 1 for PARTNUM.
30301 (amiga_partition_map_get_name): Add 1 into P->INDEX.
30302
30303 * partmap/acorn.c (acorn_partition_map_find): Change the type of
30304 SECTOR to grub_disk_addr_t.
30305 (acorn_partition_map_iterate): Likewise.
30306 (acorn_partition_map_probe): Subtract 1 for PARTNUM.
30307 Change the type of SECTOR to grub_disk_addr_t. Declare P on the
30308 top.
30309 (acorn_partition_map_get_name): Add 1 into P->INDEX.
30310
30311 * kern/i386/pc/init.c (make_install_device): Add 1 into
30312 GRUB_INSTALL_DOS_PART.
30313
30314 * fs/iso9660.c (grub_iso9660_mount): Fixed a reversed
30315 conditional.
30316
524a1e6a 303172006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
30318
30319 Clean up the code to support 64-bit addressing in disks and
30320 files. This change is not enough for filesystems yet.
f19dbdb7 30321
524a1e6a 30322 * util/i386/pc/grub-setup.c (struct boot_blocklist): Change the
30323 type of "start" to grub_uint64_t.
30324 (setup): Change the types of KERNEL_SECTOR and FIRST_SECTOR to
30325 grub_disk_addr_t * and grub_disk_addr_t. Fix the format string in
30326 save_first_sector and save_blocklists. Use grub_le_to_cpu64 to
30327 convert addresses.
30328
30329 * util/i386/pc/biosdisk.c (open_device): Change the type of SECTOR
30330 to grub_disk_addr_t.
30331
30332 * partmap/gpt.c (gpt_partition_map_iterate): Fix the format
30333 string.
30334
30335 * partmap/pc.c (pc_partition_map_iterate): Likewise.
30336
30337 * partmap/amiga.c (amiga_partition_map_iterate): Cast RDSK.MAGIC
30338 to char *.
30339
30340 * normal/script.c (grub_script_parse): Remove unused MEMFREE.
30341
30342 * normal/parser.y (YYLTYPE_IS_TRIVIAL): New macro.
30343
30344 * normal/lexer.c (grub_script_yyerror): Specify unused to LEX.
30345
30346 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf64): Cast -1
30347 to grub_off_t, to detect an error from grub_file_seek.
30348 (grub_multiboot_load_elf32): Likewise.
30349
30350 * kern/misc.c (grub_strtoul): Use grub_strtoull. Return the
30351 maximum unsigned long value when an overflow is detected.
30352 (grub_strtoull): New function.
30353 (grub_divmod64): Likewise.
30354 (grub_lltoa): use grub_divmod64.
30355
30356 * kern/fs.c (struct grub_fs_block): Change the type of "offset" to
30357 grub_disk_addr_t.
30358 (grub_fs_blocklist_open): Increase P if P is not NULL to advance
30359 the pointer to next character. Use grub_strtoull instead of
30360 grub_strtoul.
30361 (grub_fs_blocklist_read): Change the types of SECTOR, OFFSET and
30362 SIZE to grub_disk_addr_t, grub_off_t and grub_size_t,
30363 respectively.
30364
fe6b695a 30365 * kern/file.c (grub_file_read): Prevent an overflow of LEN, as the
524a1e6a 30366 return value is signed.
30367 (grub_file_seek): Change the type of OLD to grub_off_t. Do not
30368 test if OFFSET is less than zero, as OFFSET is unsigned now.
30369
30370 * kern/disk.c (struct grub_disk_cache): Change the type of
30371 "sector" to grub_disk_addr_t.
30372 (grub_disk_cache_get_index): Change the type of SECTOR to
30373 grub_disk_addr_t. Calculate the hash with SECTOR casted to
30374 unsigned after shifting.
30375 (grub_disk_cache_invalidate): Change the type of SECTOR to
30376 grub_disk_addr_t.
30377 (grub_disk_cache_unlock): Likewise.
30378 (grub_disk_cache_store): Likewise.
30379 (grub_disk_check_range): Change the types of SECTOR, OFFSET, SIZE,
30380 START and LEN to grub_disk_addr_t *, grub_off_t *, grub_size_t,
30381 grub_disk_addr_t and grub_uint64_t, respectively.
30382 (grub_disk_read): Use an unsigned variable REAL_OFFSET for the
30383 body, as the value of OFFSET is tweaked by
30384 grub_disk_check_range. Change the types of START_SECTOR, LEN and
30385 POS to grub_disk_addr_t, grub_size_t and grub_size_t,
30386 respectively.
30387 (grub_disk_write): Use an unsigned variable REAL_OFFSET for the
30388 body, as the value of OFFSET is tweaked by
30389 grub_disk_check_range. Change the types of LEN and N to
30390 grub_size_t.
30391
30392 * io/gzio.c (struct grub_gzio): Change the types of "data_offset"
30393 and "saved_offset" to grub_off_t.
30394 (test_header): Cast BUF to char *.
30395 (get_byte): Cast GZIO->DATA_OFFSET to grub_off_t. Cast GZIO->INBUF
30396 to char *.
30397 (grub_gzio_read): Change the types of OFFSET and SIZE to
30398 grub_off_t and grub_size_t, respectively.
30399
30400 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_FORCE_LBA):
30401 Removed.
30402 (GRUB_BOOT_MACHINE_BOOT_DRIVE): Changed to 0x4c.
30403 (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Changed to 0x40.
30404 (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Changed to 0x42.
30405 (GRUB_BOOT_MACHINE_DRIVE_CHECK): Changed to 0x4e.
30406 (GRUB_BOOT_MACHINE_LIST_SIZE): Increased to 12.
30407
30408 * include/grub/types.h (grub_off_t): Unconditionally set to
30409 grub_uint64_t.
30410 (grub_disk_addr_t): Changed to grub_uint64_t.
30411
30412 * include/grub/partition.h (struct grub_partition): Change the
30413 types of "start", "len" and "offset" to grub_disk_addr_t,
30414 grub_uint64_t and grub_disk_addr_t, respectively.
30415 (grub_partition_get_start): Return grub_disk_addr_t.
30416 (grub_partition_get_len): Return grub_uint64_t.
30417
30418 * include/grub/misc.h (grub_strtoull): New prototype.
30419 (grub_divmod64): Likewise.
30420
30421 * include/grub/fshelp.h (grub_fshelp_read_file): Change the types
30422 of SECTOR, LEN and FILESIZE to grub_disk_addr_t, grub_size_t and
30423 grub_off_t, respectively.
30424 All callers and references changed.
30425
30426 * include/grub/fs.h (struct grub_fs): Change the type of LEN to
30427 grub_size_t in "read".
30428 All callers and references changed.
30429
30430 * include/grub/file.h (struct grub_file): Change the types of
30431 "offset" and "size" to grub_off_t and grub_off_t,
30432 respectively. Change the type of SECTOR to grub_disk_addr_t in
30433 "read_hook".
30434 (grub_file_read): Change the type of LEN to grub_size_t.
30435 (grub_file_seek): Return grub_off_t. Change the type of OFFSET to
30436 grub_off_t.
30437 (grub_file_size): Return grub_off_t.
30438 (grub_file_tell): Likewise.
30439 All callers and references changed.
30440
30441 * include/grub/disk.h (struct grub_disk_dev): Change the types of
30442 SECTOR and SIZE to grub_disk_addr_t and grub_size_t in "read" and
30443 "write".
30444 (struct grub_disk): Change the type of "total_sectors" to
30445 grub_uint64_t. Change the type of SECTOR to grub_disk_addr_t in
f19dbdb7 30446 "read_hook".
524a1e6a 30447 (grub_disk_read): Change the types of SECTOR, OFFSET and SIZE to
30448 grub_disk_addr_t, grub_off_t and grub_size_t, respectively.
30449 (grub_disk_write): Likewise.
30450 All callers and references changed.
30451
30452 * fs/iso9660.c (grub_iso9660_susp_iterate): Cast parameters to
30453 char * for grub_strncmp to silence gcc.
30454 (grub_iso9660_mount): Likewise.
30455 (grub_iso9660_mount): Likewise.
30456 (grub_iso9660_read_symlink): Likewise. Also, remove the nonsense
30457 return statement.
30458 (grub_iso9660_iterate_dir): Likewise.
30459 (grub_iso9660_label): Cast DATA->VOLDESC.VOLNAME to char *.
30460
30461 * fs/hfs.c (grub_hfs_read_file): Change the types of SECTOR and
30462 LEN to grub_disk_addr_t and grub_size_t, respectively.
30463
30464 * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
30465
30466 * fs/jfs.c (grub_jfs_read_file): Likewise.
30467
30468 * fs/minix.c (grub_jfs_read_file): Likewise.
30469
30470 * fs/sfs.c (grub_jfs_read_file): Likewise.
30471
30472 * fs/ufs.c (grub_jfs_read_file): Likewise.
30473
30474 * fs/xfs.c (grub_jfs_read_file): Likewise.
30475
30476 * fs/fat.c (grub_fat_read_data): Change the types of SECTOR, LEN
30477 and SIZE to grub_disk_addr_t, grub_size_t and grub_size_t,
30478 respectively.
30479
30480 * fs/ext2.c (grub_ext2_read_block): When an error happens, set
30481 BLKNR to -1 instead of returning GRUB_ERRNO.
30482 (grub_ext2_read_file): Change the types of SECTOR and
30483 LEN to grub_disk_addr_t and grub_size_t, respectively.
30484
30485 * fs/affs.c (grub_affs_read_file): Change the types of SECTOR and
30486 LEN to grub_disk_addr_t and grub_size_t, respectively.
30487
30488 * font/manager.c (grub_font_get_glyph): Cast BITMAP to char * for
30489 grub_file_read.
30490
30491 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Fix the format
30492 string. Do not cast SECTOR explicitly.
30493
30494 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Change the type of
30495 TOTAL_SECTORS to grub_uint64_t. Do not mask DRP->TOTAL_SECTORS.
30496 (grub_biosdisk_rw): Change the types of SECTOR and SIZE to
30497 grub_disk_addr_t and grub_size_t, respectively. If the sector is
30498 over 2TB and LBA mode is not supported, raise an error.
30499 (get_safe_sectors): New function.
30500 (grub_biosdisk_read): Use get_safe_sectors.
30501 (grub_biosdisk_write): Likewise.
30502
30503 * disk/efi/efidisk.c (grub_efidisk_read): Fix the format string.
30504 (grub_efidisk_write): Likewise.
30505
30506 * disk/loopback.c (delete_loopback): Cosmetic changes.
30507 (grub_cmd_loopback): Likewise. Also, test NEWDEV->FILENAME
30508 correctly.
30509 (grub_loopback_open): Likewise.
30510 (grub_loopback_read): Likewise. Also, change the type of POS to
30511 grub_off_t, and fix the usage of grub_memset.
30512
30513 * commands/i386/pc/play.c: Include grub/machine/time.h.
30514
30515 * commands/ls.c (grub_ls_list_files): Use "llu" instead of "d" to
30516 print FILE->SIZE.
30517
30518 * commands/configfile.c: Include grub/env.h.
30519
30520 * commands/cmp.c (grub_cmd_cmp): Do not use ERR, but use
30521 GRUB_ERRNO directly instead. Change the type of POS to
30522 grub_off_t. Follow the coding standard.
30523
30524 * commands/blocklist.c: Include grub/partition.h.
30525 (grub_cmd_blocklist): Return an error if the underlying device is
30526 not a disk. Take the starting sector of a partition into account,
30527 if a partition is used.
30528
30529 * boot/i386/pc/diskboot.S (bootloop): Adapted to the new offset of
30530 a length field.
30531 (lba_mode): Support 64-bit addresses.
30532 (chs_mode): Likewise.
30533 (copy_buffer): Adapted to the new offsets of a length field and a
30534 segment field.
30535 (blocklist_default_start): Allocate 64-bit space.
30536
30537 * boot/i386/pc/boot.S (force_lba): Removed.
30538 (boot_drive): Moved to under KERNEL_SECTOR.
fe987087 30539 (kernel_sector): Moved to under KERNEL_SEGMENT. Allocate 64-bit
524a1e6a 30540 space.
30541 (real_start): Set %si earlier. Remove code for FORCE_LBA, since it
30542 is useless.
30543 (lba_mode): Refactored to support a 64-bit address. More size
30544 optimization.
30545 (setup_sectors): Likewise.
30546
53af98ad 305472006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
30548
30549 * DISTLIST: Added include/grub/i386/linux.h. Removed
30550 include/grub/i386/pc/linux.h
30551
30552 * configure.ac (AC_INIT): Bumped to 1.94.
30553
30554 * config.guess: Updated from gnulib.
30555 * config.sub: Likewise.
30556 * install-sh: Likewise.
30557 * mkinstalldirs: Likewise.
30558
b4c1940a 305592006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
30560
30561 * conf/common.rmk (grub_modules_init.lst): Depended on
30562 grub_emu_SOURCES, excluding grub_emu_init.c, instead of
30563 MODSRCFILES.
30564
30565 * genmk.rb (PModule::rule): Reverted the previous change.
30566
cfca1cfd 305672006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
30568
30569 * conf/common.rmk (grub_modules_init.lst): Depends on
30570 $(MODSRCFILES). Grep only the files in $(MODSRCFILES). Make sure
30571 that the target does not exist before producing.
30572 (grub_modules_init.h): Remove the target before generating.
30573 (grub_emu_init.c): Likewise.
30574
30575 * genmk.rb (PModule::rule): Add source files into MODSRCFILES.
30576
aa6d7826 305772006-05-31 Jeroen Dekkers <jeroen@dekkers.cx>
30578
30579 * configure.ac: Don't set host_m32 for x86_64. Also reset LIBS
30580 for the target-specific tests. Make sure that we also have the
30581 up-to-date target variables for those tests.
30582
26c607b9 305832006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
30584
30585 * genmk.rb (Image::rule): Prefix CFLAGS or ASFLAGS with TARGET_.
30586 (PModule::rule): Likewise.
30587
0162321a 305882006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
30589
30590 * genmk.rb (Image::rule): Set FLAG to CFLAGS or ASFLAGS instead of
30591 TARGET_CFLAGS or TARGET_ASFLAGS. There is no reason why
30592 target-specific flags should be prefixed.
30593 (PModule::rule): Likewise.
30594
6c826348 305952006-05-30 Yoshinori K. Okuji <okuji@enbug.org>
30596
30597 * configure.ac (CMP): Check if cmp is available explicitly.
30598
b977bf01 305992006-05-29 Yoshinori K. Okuji <okuji@enbug.org>
30600
30601 * util/powerpc/ieee1275/grub-install.in (host_cpu): Removed.
30602 (target_cpu): New variable.
30603 (pkglibdir): Use target_cpu instead of host_cpu.
f19dbdb7 30604
b977bf01 30605 * util/i386/pc/grub-install.in (host_cpu): Removed.
30606 (target_cpu): New variable.
30607 (pkglibdir): Use target_cpu instead of host_cpu.
30608
30609 * util/genmoddep.c: Removed.
f19dbdb7 30610
b977bf01 30611 * kern/efi/mm.c (filter_memory_map): Use GRUB_CPU_SIZEOF_VOID_P
30612 instead of GRUB_HOST_SIZEOF_VOID_P.
30613 * kern/dl.c: Likewise.
30614
30615 * include/grub/i386/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed to
30616 ...
30617 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
30618 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
30619 (GRUB_TARGET_SIZEOF_LONG): ... this.
30620 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
30621 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
30622 * include/grub/powerpc/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
30623 to ...
30624 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
30625 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
30626 (GRUB_TARGET_SIZEOF_LONG): ... this.
30627 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
30628 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
30629 * include/grub/sparc64/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
30630 to ...
30631 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
30632 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
30633 (GRUB_TARGET_SIZEOF_LONG): ... this.
30634 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
30635 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
30636
30637 * include/grub/types.h [!GRUB_UTIL] (GRUB_CPU_SIZEOF_VOID_P): Use
30638 GRUB_TARGET_SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P.
30639 [!GRUB_UTIL] (GRUB_CPU_SIZEOF_LONG): Use GRUB_TARGET_SIZEOF_LONG
30640 instead of GRUB_HOST_SIZEOF_LONG.
30641 [!GRUB_UTIL]: Refer to GRUB_TARGET_WORDS_BIGENDIAN instead of
30642 GRUB_HOST_WORDS_BIGENDIAN to define or undefine
30643 GRUB_CPU_WORDS_BIGENDIAN.
30644 Refer to SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P to
30645 define grub_host_addr_t, grub_host_off_t, grub_host_size_t and
30646 grub_host_ssize_t.
30647
30648 * conf/i386-efi.rmk (noinst_UTILITIES): Removed.
30649 (genmoddep_SOURCES): Likewise.
30650 * conf/i386-pc.rmk (noinst_UTILITIES): Likewise.
30651 (genmoddep_SOURCES): Likewise.
30652 * conf/conf/powerpc-ieee1275.rmk (noinst_UTILITIES): Likewise.
30653 (genmoddep_SOURCES): Likewise.
30654 * conf/conf/conf/sparc64-ieee1275.rmk (noinst_UTILITIES):
30655 Likewise.
30656 (genmoddep_SOURCES): Likewise.
30657
30658 * genmoddep.awk: New file.
30659
30660 * genmk.rb (Image::rule): Use TARGET_CC, TARGET_CPPFLAGS,
30661 TARGET_CFLAGS, TARGET_ASFLAGS and TARGET_LDFLAGS instead of CC,
30662 CPPFLAGS, CFLAGS, ASFLAGS and LDFLAGS, respectively.
30663 (PModule::rule): Likewise.
30664 (Program::rule): Likewise.
30665 (Utility::rule): Use CC, CPPFLAGS, CFLAGS and LDFLAGS instead of
30666 BUILD_CC, BUILD_CPPFLAGS, BUILD_CFLAGS and BUILD_LDFLAGS,
30667 respectively.
30668
30669 * configure.ac: Rewritten intensively to use host and target
30670 instead of build and host, respectively.
30671
30672 * Makefile.in (pkglibdir): Use target_cpu instead of host_cpu.
30673 (host_cpu): Removed.
30674 (target_cpu): New variable.
30675 (CPPFLAGS): Added @CPPFLAGS@ and -DGRUB_LIBDIR=\"$(pkglibdir)\".
30676 (BUILD_CC): Removed.
30677 (BUILD_CFLAGS): Likewise.
30678 (BUILD_CPPFLAGS): Likewise.
30679 (TARGET_CC): New variable.
30680 (TARGET_CFLAGS): Likewise.
30681 (TARGET_CPPFLAGS): Likewise.
30682 (TARGET_LDFLAGS): Likewise.
30683 (AWK): Likewise.
30684 (include): Use target_cpu instead of host_cpu.
30685 (moddep.lst:): Use genmoddep.awk instead of genmoddep.
f19dbdb7 30686
b977bf01 30687 * DISTLIST: Added genmoddep.awk. Removed util/genmoddep.c.
30688
f09771a1 306892006-05-29 Vesa Jaaskelainen <chaac@nic.fi>
30690
30691 * include/grub/script.h (grub_script_cmdif): Renamed field 'bool' to
30692 'exec_to_evaluate'. Renamed field 'true' to 'exec_on_true'. Renamed
30693 field 'false' to 'exec_on_false'.
30694 (grub_script_create_cmdif): Renamed argument names to reflect above
30695 changes.
30696
30697 * normal/execute.c (grub_script_execute_cmdif): Likewise.
30698
30699 * normal/script.c (grub_script_create_cmdif): Likewise.
30700
118f4fb3 307012006-05-28 Yoshinori K. Okuji <okuji@enbug.org>
30702
30703 * fs/hfsplus.c (grub_hfsplus_btree_recoffset): Moved to near the
30704 top.
30705 (grub_hfsplus_btree_recptr): Likewise.
30706 (grub_hfsplus_find_block): Do not take RETRY any longer. Use
30707 FILEBLOCK both to pass a block number and store next block
30708 number.
30709 (grub_hfsplus_read_block): Rewritten heavily to support an extent
30710 overflow file correctly. Specify errors appropriately, because
30711 fshelp expects that GRUB_ERRNO is set when fails. Reuse
30712 grub_hfsplus_btree_recptr to get the pointer to a found key.
30713 (grub_hfsplus_btree_search): Return 1 instead of 0 when no match
30714 is found.
30715
30716 * conf/i386-efi.rmk (pkgdata_MODULES): Added _linux.mod and
30717 linux.mod.
30718 (_linux_mod_SOURCES): New variable.
30719 (_linux_mod_CFLAGS): Likewise.
30720 (_linux_mod_LDFLAGS): Likewise.
30721 (linux_mod_SOURCES): Likewise.
30722 (linux_mod_CFLAGS): Likewise.
30723 (linux_mod_LDFLAGS): Likewise.
30724
30725 * DISTLIST: Added loader/i386/efi/linux.c,
30726 loader/i386/efi/linux_normal.c and
30727 include/grub/i386/efi/loader.h.
30728
30729 * loader/i386/efi/linux.c: New file.
30730 * loader/i386/efi/linux_normal.c: Likewise.
30731 * include/grub/i386/efi/loader.h: Likewise.
30732
89a7d726 307332006-05-27 Yoshinori K. Okuji <okuji@enbug.org>
30734
30735 * commands/blocklist.c: New file.
30736
30737 * DISTLIST: Added commands/blocklist.c.
30738
30739 * term/efi/console.c (grub_console_highlight_color): Use a lighter
43b553ad 30740 color for the background, and a darker color for the foreground.
89a7d726 30741 (grub_console_checkkey): Return READ_KEY.
30742 (grub_console_cls): Set the background to
30743 GRUB_EFI_BACKGROUND_BLACK temporarily to clean out the screen.
30744
30745 * kern/efi/efi.c (grub_efi_exit_boot_services): New function.
30746
30747 * include/grub/i386/linux.h (struct linux_kernel_params): Fixed
30748 the size of "padding5", "hd0_drive_info" and "hd1_drive_info".
30749
30750 * include/grub/efi/efi.h (grub_efi_exit_boot_services): New
30751 prototype.
30752
30753 * include/grub/efi/api.h (GRUB_EFI_TEXT_ATTR): Do not shift
30754 BG. The spec is wrong again.
30755
30756 * include/grub/normal.h [GRUB_UTIL] (grub_blocklist_init): New
30757 prototype.
30758 [GRUB_UTIL] (grub_blocklist_fini): Likewise.
30759
30760 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
30761 commands/blocklist.c.
30762 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
f19dbdb7 30763
89a7d726 30764 * conf/common.rmk (pkgdata_MODULES): Added blocklist.mod.
30765 (blocklist_mod_SOURCES): New variable.
30766 (blocklist_mod_CFLAGS): Likewise.
30767 (blocklist_mod_LDFLAGS): Likewise.
30768
75c8f258 307692006-05-20 Yoshinori K. Okuji <okuji@enbug.org>
30770
30771 * boot/i386/pc/boot.S (real_start): Set %si earlier to eliminate
30772 duplication.
30773 (lba_mode): Use %eax more intensively to reduce the code size.
30774
da2eb181 307752006-05-20 Marco Gerards <marco@gnu.org>
30776
30777 * normal/lexer.c (grub_script_yylex): Don't filter out newlines.
30778
30779 * normal/parser.y (commandblock): Defined as <cmd>. A subroutine
30780 for `menuentry'.
30781 (script): Accept leading newlines.
30782 (newlines): New rule to describe 0 or more newlines.
30783 (commands): Accept `command' with trailing newline. Fixed the
30784 order in which arguments were passed to `grub_script_add_cmd'.
30785 Accept commands separated by newlines.
30786 (function): Changed to accept newlines.
30787 (menuentry) Rewritten.
30788
30789 * normal/script.c (grub_script_create_cmdmenu): Add new entries in
30790 front of the list, instead of to the end.
30791
577b4050 307922006-05-19 Yoshinori K. Okuji <okuji@enbug.org>
30793
30794 * util/i386/pc/grub-install.in (bindir): New variable.
30795 (grub_mkimage): Use BINDIR instead of SBINDIR. Reported by Lee
30796 Shaver <lbgwjl@gmail.com>.
30797
0d6e1189 307982006-05-14 Yoshinori K. Okuji <okuji@enbug.org>
30799
30800 * kern/i386/pc/startup.S: Include grub/cpu/linux.h instead of
30801 grub/machine/linux.h
30802 * loader/i386/pc/linux.c: Likewise.
30803
30804 * include/grub/i386/pc/linux.h: Moved to ...
30805 * include/grub/i386/linux.h: ... here.
30806
30807 * include/grub/i386/linux.h (struct linux_kernel_params): New
30808 struct.
f19dbdb7 30809
31b86e9f 308102006-05-09 Vesa Jaaskelainen <chaac@nic.fi>
30811
30812 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Corrected bounds
30813 checking.
30814 (grub_video_vbe_blit_glyph): Likewise.
30815 (grub_video_vbe_blit_bitmap): Likewise.
30816 (grub_video_vbe_blit_render_target): Likewise.
30817
83b984de 308182006-05-09 Yoshinori K. Okuji <okuji@enbug.org>
30819
30820 * configure.ac (--with-platform): Properly quote the square
30821 brackets.
30822
5f0413bd 308232006-05-08 Marco Gerards <marco@gnu.org>
30824
30825 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Renamed from
30826 this...
30827 (kernel_elf_HEADERS): ...to this. Updated all users.
30828 (grubof_symlist.c): Renamed from this...
30829 (kernel_elf_symlist.c): ...to this. Updated all users.
30830 (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
30831 (grubof_SOURCES): Renamed from this...
30832 (kernel_elf_SOURCES): ...to this.
30833 (grubof_HEADERS): Renamed from this...
30834 (kernel_elf_HEADERS): ...to this.
30835 (grubof_CFLAGS): Renamed from this...
30836 (kernel_elf_CFLAGS): ...to this.
30837 (grubof_ASFLAGS): Renamed from this...
30838 (kernel_elf_ASFLAGS): ...to this.
30839 (grubof_LDFLAGS): Renamed from this...
30840 (kernel_elf_LDFLAGS): ...to this.
30841
30842 * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Renamed from
30843 this...
30844 (kernel_elf_HEADERS): ...to this. Updated all users.
30845 (grubof_symlist.c): Renamed from this...
30846 (kernel_elf_symlist.c): ...to this. Updated all users.
30847 (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
30848 (grubof_SOURCES): Renamed from this...
30849 (kernel_elf_SOURCES): ...to this.
30850 (grubof_HEADERS): Renamed from this...
30851 (kernel_elf_HEADERS): ...to this.
30852 (grubof_CFLAGS): Renamed from this...
30853 (kernel_elf_CFLAGS): ...to this.
30854 (grubof_ASFLAGS): Renamed from this...
30855 (kernel_elf_ASFLAGS): ...to this.
30856 (grubof_LDFLAGS): Renamed from this...
30857 (kernel_elf_LDFLAGS): ...to this.
30858
30859 * util/powerpc/ieee1275/grub-mkimage.c (add_segments): Use
30860 `kernel.elf' instead of `grubof'.
30861
05568c2e 308622006-05-08 Yoshinori K. Okuji <okuji@enbug.org>
30863
30864 Add --with-platform to configure. Use pkglibdir instead of
30865 pkgdatadir. This is reported by Roger Leigh.
30866
30867 * util/powerpc/ieee1275/grub-install.in (datadir): Removed.
30868 (host_vendor): Likewise.
30869 (host_os): Likewise.
30870 (pkgdatadir): Likewise.
30871 (platform): New variable.
30872 (pkglibdir): Likewise.
30873 Use PKGLIBDIR instead of PKGDATADIR.
f19dbdb7 30874
05568c2e 30875 * util/i386/pc/grub-install.in (datadir): Removed.
30876 (host_vendor): Likewise.
30877 (host_os): Likewise.
30878 (pkgdatadir): Likewise.
30879 (platform): New variable.
30880 (pkglibdir): Likewise.
30881 Use PKGLIBDIR instead of PKGDATADIR.
30882
30883 * util/powerpc/ieee1275/grub-mkimage.c (usage): Use GRUB_LIBDIR
30884 instead of GRUB_DATADIR.
30885 (main): Likewise.
30886 * util/i386/pc/grub-mkimage.c (usage): Likewise.
30887 (main): Likewise.
30888 * util/i386/efi/grub-mkimage.c (usage): Likewise.
30889 (main): Likewise.
30890
30891 * configure.ac (--with-platform): New option.
30892 Use PLATFORM instead of HOST_VENDOR to specify a platform.
30893
30894 * Makefile.in: Include a makefile based on PLATFORM instead of
30895 HOST_VENDOR.
30896 (pkgdatadir): Not appended by the machine type.
30897 (pkglibdir): Appended by the machine type.
30898 (host_vendor): Removed.
30899 (platform): New variable.
30900 (BUILD_CPPFLAGS): Specify GRUB_LIBDIR instead of GRUB_DATADIR.
30901 (install-local): Use PKGLIBDIR instead of PKGDATADIR.
30902 (uninstall): Likewise.
30903
4e93851c 309042006-05-07 Yoshinori K. Okuji <okuji@enbug.org>
30905
30906 Use the environment context in the menu. Remove the commands
30907 "default" and "timeout", and use variables instead.
f19dbdb7 30908
4e93851c 30909 * normal/menu.c: Include grub/env.h.
30910 (print_entry): Cast TITLE to silence gcc.
30911 (get_timeout): New function.
30912 (set_timeout): Likewise.
30913 (get_entry_number): Likewise.
30914 (run_menu): Use a default entry, a fallback entry and a timeout
30915 in the environment variables "default", "fallback" and
30916 "timeout". Also, tweak the default entry if it is not within the
30917 current menu entries.
30918 (grub_menu_run): Use a fallback entry in the environment variable
30919 "fallback".
30920
30921 * normal/main.c (read_config_file): Do not initialize
30922 NEWMENU->DEFAULT_ENTRY, NEWMENU->FALLBACK_ENTRY or
30923 NEWMENU->TIMEOUT.
30924 (grub_normal_execute): Use a data slot to store the menu.
30925
30926 * include/grub/normal.h (struct grub_menu): Removed default_entry,
30927 fallback_entry and timeout.
30928 (struct grub_menu_list): Removed.
30929 (grub_menu_list_t): Likewise.
30930 (struct grub_context): Likewise.
30931 (grub_context_t): Likewise.
30932 (grub_context_get): Likewise.
30933 (grub_context_get_current_menu): Likewise.
30934 (grub_context_push_menu): Likewise.
30935 (grub_context_pop_menu): Likewise.
30936 (grub_default_init): Likewise.
30937 (grub_default_fini): Likewise.
30938 (grub_timeout_init): Likewise.
30939 (grub_timeout_fini): Likewise.
30940
30941 * conf/sparc64-ieee1275.rmk (pkgdata_MODULES): Removed default.mod
30942 and timeout.mod.
30943 (normal_mod_SOURCES): Removed normal/context.c.
30944
30945 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Removed
30946 commands/default.c, commands/timeout.c and normal/context.c.
30947 (normal_mod_SOURCES): Removed normal/context.c.
30948
30949 * conf/i386-pc.rmk (grub_emu_SOURCES): Removed commands/default.c,
30950 commands/timeout.c and normal/context.c.
30951 (normal_mod_SOURCES): Removed normal/context.c.
30952
30953 * conf/i386-efi.rmk (grub_emu_SOURCES): Removed
30954 commands/default.c, commands/timeout.c and normal/context.c.
30955 (normal_mod_SOURCES): Removed normal/context.c.
30956
30957 * conf/common.rmk (pkgdata_MODULES): Removed default.mod and
30958 timeout.mod.
30959 (default_mod_SOURCES): Removed.
30960 (default_mod_CFLAGS): Likewise.
30961 (default_mod_LDFLAGS): Likewise.
30962 (timeout_mod_SOURCES): Removed.
30963 (timeout_mod_CFLAGS): Likewise.
30964 (timeout_mod_LDFLAGS): Likewise.
30965
30966 * DISTLIST: Removed commands/default.c, commands/timeout.c and
30967 normal/context.c.
30968
30969 * commands/default.c: Removed.
30970 * commands/timeout.c: Likewise.
30971 * normal/context.c: Likewise.
30972
1eb9cc1d 309732006-05-07 Vesa Jaaskelainen <chaac@nic.fi>
30974
30975 * kern/i386/pc/startup.S (grub_exit): Added missing .code32 tag.
30976
385bd9c1 309772006-05-02 Yoshinori K. Okuji <okuji@enbug.org>
30978
30979 * kern/env.c (struct grub_env_context): Removed "sorted". Renamed
30980 "next" to "prev" for readability.
30981 (struct grub_env_sorted_var): New struct.
30982 (grub_env_context): Renamed to ...
30983 (initial_context): ... this.
30984 (grub_env_var_context): Renamed to ...
30985 (current_context): ... this.
30986 (grub_env_find): Look only at CURRENT_CONTEXT.
30987 (grub_env_context_open): Rewritten to copy exported variables from
30988 previous context.
30989 (grub_env_context_close): Rewritten according to the new
30990 scheme. Also, add an assertion to prevent the initial context from
30991 removed.
30992 (grub_env_insert): Removed the code for the sorted list.
30993 (grub_env_remove): Likewise.
30994 (grub_env_export): Simply mark the variable with
30995 GRUB_ENV_VAR_GLOBAL.
30996 (grub_env_set): A cosmetic change for naming consistency.
30997 (grub_env_get): Likewise.
30998 (grub_env_unset): Likewise.
30999 (grub_env_iterate): Rewritten to sort variables within this
31000 function.
31001 (grub_register_variable_hook): Fixed for naming consistency. Call
31002 grub_env_find again, only if NAME is not found at the first time.
31003 (mangle_data_slot_name): New function.
31004 (grub_env_set_data_slot): Likewise.
31005 (grub_env_get_data_slot): Likewise.
31006 (grub_env_unset_data_slot): Likewise.
31007
31008 * include/grub/env.h (grub_env_var_type): New enum.
31009 (GRUB_ENV_VAR_LOCAL): New constant.
31010 (GRUB_ENV_VAR_GLOBAL): Likewise.
31011 (GRUB_ENV_VAR_DATA): Likewise.
31012 (struct grub_env_var): Removed "sort_next" and "sort_prevp". Added
31013 "type".
31014 (grub_env_set): Replace VAR with NAME for consistency.
31015 (grub_register_variable_hook): Likewise.
31016 (grub_env_export): Specify the name of the argument.
31017 (grub_env_set_data_slot): New prototype.
31018 (grub_env_get_data_slot): Likewise.
31019 (grub_env_unset_data_slot): Likewise.
31020
7f362539 310212006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
31022
31023 Extend the loader so that GRUB can accept a loader which comes
31024 back to GRUB when a loaded image exits. Also, this change adds
31025 support for a chainloader on EFI.
f19dbdb7 31026
7f362539 31027 * term/efi/console.c: Include grub/misc.h.
31028 (grub_console_checkkey): Display a scan code on the top for
31029 debugging. This will be removed once the EFI port gets stable.
31030 Correct the scan code mapping.
31031
31032 * kern/efi/mm.c (sort_memory_map): Sort in a descending order to
31033 allocate memory from larger regions, in order to reduce the number
31034 of allocated regions. Otherwise, the MacOSX loader panics.
31035 (filter_memory_map): Avoid less than 1MB for compatibility with
31036 other loaders.
31037 (add_memory_regions): Allocate from the tail of a region, if
31038 possible, to avoid allocating a region near to 1MB, for the MacOSX
31039 loader.
31040
31041 * kern/efi/init.c (grub_efi_set_prefix): Specify
31042 GRUB_EFI_IMAGE_HANDLE to grub_efi_get_loaded_image.
31043
31044 * kern/efi/efi.c (grub_efi_get_loaded_image): Accept a new
31045 argument IMAGE_HANDLE and specify it to get a loaded image.
31046 (grub_arch_modules_addr): Specify GRUB_EFI_IMAGE_HANDLE to
31047 grub_efi_get_loaded_image.
fe6b695a 31048 (grub_efi_get_filename): Divide the length by the size of
7f362539 31049 grub_efi_char16_t.
31050 (grub_efi_get_device_path): New function.
31051 (grub_efi_print_device_path): Print End Device Path nodes. Divide
31052 the length by the size of grub_efi_char16_t for a file path device
31053 path node.
31054
31055 * kern/loader.c (grub_loader_noreturn): New variable.
31056 (grub_loader_set): Accept a new argument NORETURN. Set
31057 GRUB_LOADER_NORETURN to NORETURN.
31058 All callers changed.
31059 (grub_loader_boot): If GRUB_LOADER_NORETURN is false, do not call
31060 grub_machine_fini.
31061
31062 * include/grub/efi/efi.h (grub_efi_get_device_path): New
31063 prototype.
31064 (grub_efi_get_loaded_image): Take an argument to specify an image
31065 handle.
31066
31067 * include/grub/loader.h (grub_loader_set): Added one more argument
31068 NORETURN.
31069
31070 * disk/efi/efidisk.c (make_devices): Use grub_efi_get_device_path
31071 instead of grub_efi_open_protocol.
31072 (grub_efidisk_get_device_name): Likewise.
31073 (grub_efidisk_close): Print a newline.
31074 (grub_efidisk_get_device_handle): Fixed to use
31075 GRUB_EFI_DEVICE_PATH_SUBTYPE instead of
31076 GRUB_EFI_DEVICE_PATH_TYPE.
31077
31078 * disk/efi/efidisk.c (device_path_guid): Moved to ...
31079 * kern/efi/efi.c (device_path_guid): ... here.
31080
31081 * conf/i386-efi.rmk (pkgdata_MODULES): Added _chain.mod and
31082 chain.mod.
31083 (kernel_mod_HEADERS): Added efi/disk.h.
31084 (_chain_mod_SOURCES): New variable.
31085 (_chain_mod_CFLAGS): Likewise.
31086 (_chain_mod_LDFLAGS): Likewise.
31087 (chain_mod_SOURCES): Likewise.
31088 (chain_mod_CFLAGS): Likewise.
31089 (chain_mod_LDFLAGS): Likewise.
31090
31091 * DISTLIST: Added include/grub/efi/chainloader.h,
31092 loader/efi/chainloader.c and loader/efi/chainloader_normal.c.
31093
31094 * include/grub/efi/chainloader.h: New file.
31095 * loader/efi/chainloader.c: Likewise.
31096 * loader/efi/chainloader_normal.c: Likewise.
31097
c0111d6e 310982006-04-30 Marco Gerards <marco@gnu.org>
31099
31100 * commands/configfile.c (grub_cmd_source): New function.
31101 (GRUB_MOD_INIT): Register the commands `source' and `.'.
31102 (GRUB_MOD_FINI): De-register the commands `source' and `.'.
31103
df5341da 311042006-04-30 Marco Gerards <marco@gnu.org>
31105
31106 * normal/execute.c (grub_script_execute_cmd): Change the return
31107 type to `grub_err_t'. Correctly return the error.
31108 (grub_script_execute_cmdline): In case a command line is not a
31109 command or a function, try to interpret it as an assignment.
31110
f85934bd 311112006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
31112
31113 * fs/hfsplus.c (grub_hfsplus_read_block): Fixed a memory leak.
31114 (grub_hfsplus_iterate_dir): Reordered to skip unknown nodes. Also,
31115 skip a node whose name is obviously invalid as UTF-16,
31116 i.e. contains a NUL character. Stop the iteration when the last
31117 directory entry is found. Instead of using the return value of
31118 grub_hfsplus_btree_iterate_node, store the value in RET and use
31119 it, because the iterator can be stopped by the last directory
31120 entry.
31121
8f8a2cf8 311222006-04-30 Marco Gerards <marco@gnu.org>
31123
31124 * include/grub/env.h (grub_env_export): New prototype. Reported
31125 by Jan C. Kleinsorge <jan.kleinsorge@udo.edu>.
31126
a27e84ce 311272006-04-30 Marco Gerards <marco@gnu.org>
31128
31129 * fs/hfsplus.c (grub_hfsplus_iterate_dir): Correctly calculate the
31130 size of the extents in a catalog file record.
31131
eaef0553 311322006-04-29 Marco Gerards <marco@gnu.org>
31133
31134 * commands/configfile.c (grub_cmd_configfile): Execute the
31135 configfile within its own context.
31136
31137 * include/grub/env.h (grub_env_context_open): New prototype.
31138 (grub_env_context_close): Likewise.
31139
31140 * kern/env.c (grub_env): Removed.
31141 (grub_env_sorted): Likewise.
31142 (grub_env_context): New variable.
31143 (grub_env_var_context): Likewise.
31144 (grub_env_find): Search both the active context and the global
31145 context.
31146 (grub_env_context_open): New function.
31147 (grub_env_context_close): Likewise.
31148 (grub_env_insert): Likewise.
31149 (grub_env_remove): Likewise.
31150 (grub_env_export): Likewise.
31151 (grub_env_set): Changed to use helper functions to avoid code
31152 duplication.
31153 (grub_env_iterate): Rewritten so both the current context and the
31154 global context are being used.
31155
31156 * normal/command.c (export_command): New function.
31157 (grub_command_init): Register the `export' function.
31158
7b455f4d 311592006-04-26 Yoshinori K. Okuji <okuji@enbug.org>
31160
31161 * util/i386/pc/grub-mkimage.c (compress_kernel): Cast arguments
31162 explicitly to suppress gcc's warnings.
31163 * fs/fat.c (grub_fat_find_dir): Likewise.
31164 (grub_fat_label): Likewise.
31165 * fs/xfs.c (grub_xfs_read_inode): Likewise.
31166 (grub_xfs_mount): Likewise.
31167 (grub_xfs_label): Likewise.
31168 * fs/affs.c (grub_affs_mount): Likewise.
31169 (grub_affs_label): Likewise.
31170 (grub_affs_iterate_dir): Likewise.
31171 * fs/sfs.c (grub_sfs_mount): Likewise.
31172 (grub_sfs_iterate_dir): Likewise.
31173 * fs/ufs.c (grub_ufs_lookup_symlink): Likewise.
31174 * fs/hfs.c (grub_hfs_mount): Likewise.
31175 (grub_hfs_cmp_catkeys): Likewise.
31176 (grub_hfs_find_dir): Likewise.
31177 (grub_hfs_dir): Likewise.
31178 (grub_hfs_label): Likewise.
31179 * fs/jfs.c (grub_jfs_mount): Likewise.
31180 (grub_jfs_opendir): Likewise.
31181 (grub_jfs_getent): Likewise.
31182 (grub_jfs_lookup_symlink): Likewise.
31183 (grub_jfs_label): Likewise.
31184 * fs/hfsplus.c (grub_hfsplus_cmp_catkey): Likewise.
31185 (grub_hfsplus_iterate_dir): Likewise.
31186 (grub_hfsplus_btree_iterate_node): Made static.
31187
31188 * util/grub-emu.c (prefix): New variable.
31189 (grub_machine_set_prefix): New function.
31190 (main): Do not set the environment variable "prefix" here. Only
31191 set PREFIX, which is used later by grub_machine_set_prefix.
31192
31193 * include/grub/video.h: Do not include grub/symbol.h.
31194 (grub_video_register): Not exported. This symbol is not defined in
31195 the kernel.
31196 (grub_video_unregister): Likewise.
31197 (grub_video_iterate): Likewise.
31198 (grub_video_setup): Likewise.
31199 (grub_video_restore): Likewise.
31200 (grub_video_get_info): Likewise.
31201 (grub_video_get_blit_format): Likewise.
31202 (grub_video_set_palette): Likewise.
31203 (grub_video_get_palette): Likewise.
31204 (grub_video_set_viewport): Likewise.
31205 (grub_video_get_viewport): Likewise.
31206 (grub_video_map_color): Likewise.
31207 (grub_video_map_rgb): Likewise.
31208 (grub_video_map_rgba): Likewise.
31209 (grub_video_fill_rect): Likewise.
31210 (grub_video_blit_glyph): Likewise.
31211 (grub_video_blit_bitmap): Likewise.
31212 (grub_video_blit_render_target): Likewise.
31213 (grub_video_scroll): Likewise.
31214 (grub_video_swap_buffers): Likewise.
31215 (grub_video_create_render_target): Likewise.
31216 (grub_video_delete_render_target): Likewise.
31217 (grub_video_set_active_render_target): Likewise.
31218
31219 * include/grub/symbol.h [GRUB_SYMBOL_GENERATOR] (EXPORT_FUNC):
31220 Undefined.
31221 [GRUB_SYMBOL_GENERATOR] (EXPORT_VAR): Likewise.
31222
31223 * conf/sparc64-ieee1275.rmk (grubof_symlist.c): Depended on
31224 config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh.
31225 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
31226 instead of $(srcdir)/genkernsyms.sh.
31227
31228 * conf/powerpc-ieee1275.rmk (grubof_symlist.c): Depended on
31229 config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh.
31230 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
31231 instead of $(srcdir)/genkernsyms.sh.
31232
31233 * conf/i386-pc.rmk (symlist.c): Depended on config.h. Use
31234 gensymlist.sh instead of $(srcdir)/gensymlist.sh.
31235 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
31236 instead of $(srcdir)/genkernsyms.sh.
31237
31238 * conf/i386-efi.rmk (symlist.c): Depended on config.h. Use
31239 gensymlist.sh instead of $(srcdir)/gensymlist.sh.
31240 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
31241 instead of $(srcdir)/genkernsyms.sh.
31242
31243 * configure.ac (AC_CONFIG_FILES): Added gensymlist.sh and
31244 genkernsyms.sh.
31245
31246 * Makefile.in (DISTCLEANFILES): Added gensymlist.sh and
31247 genkernsyms.sh.
31248 (gensymlist.sh): New target.
31249 (genkernsyms.sh): Likewise.
31250
31251 * DISTLIST: Removed genkernsyms.sh and gensymlist.sh. Added
31252 genkernsyms.sh.in and gensymlist.sh.in.
31253
31254 * genkernsyms.sh: Removed.
31255 * gensymlist.sh: Likewise.
f19dbdb7 31256
7b455f4d 31257 * genkernsyms.sh.in: New file.
31258 * gensymlist.sh.in: Likewise.
31259
1885bb27 312602006-04-25 Hollis Blanchard <hollis@penguinppc.org>
31261
31262 * kern/powerpc/ieee1275/init.c (grub_machine_set_prefix): Do not
31263 clobber "prefix", since we may have already set it manually.
31264
71538dff 312652006-04-25 Hollis Blanchard <hollis@penguinppc.org>
31266
31267 * kern/misc.c (abort): New alias for grub_abort.
31268
2965c7cc 312692006-04-25 Yoshinori K. Okuji <okuji@enbug.org>
31270
31271 A new machine-specific function "grub_machine_set_prefix" is
31272 defined. This is called after loading modules, so that a prefix
31273 initialization can use modules. Also, this change adds an
31274 intensive debugging feature for the memory manager via the
31275 configure option "--enable-mm-debug".
f19dbdb7 31276
2965c7cc 31277 * partmap/gpt.c (gpt_partition_map_iterate): Add one more into
31278 PART.LEN.
31279
31280 * kern/sparc64/ieee1275/init.c (abort): Removed.
31281 (grub_stop): Likewise.
31282 (grub_exit): New function.
31283 (grub_set_prefix): Renamed to ...
31284 (grub_machine_set_prefix): ... this.
31285 (grub_machine_init): Do not call grub_set_prefix.
31286
31287 * kern/powerpc/ieee1275/init.c (grub_set_prefix): Renamed to ...
31288 (grub_machine_set_prefix): ... this.
31289 (grub_machine_init): Do not call grub_set_prefix.
31290
31291 * kern/i386/pc/init.c (grub_machine_set_prefix): New function.
31292 (grub_machine_init): Do not set the prefix here.
31293
31294 * kern/i386/efi/init.c (grub_machine_set_prefix): New function.
31295
31296 * kern/efi/init.c: Include grub/mm.h.
31297 (grub_efi_set_prefix): New function.
31298
31299 * kern/efi/efi.c (grub_exit): Call grub_efi_fini.
31300 (grub_efi_get_filename): New function.
31301 (grub_print_device_path): Renamed to ...
31302 (grub_efi_print_device_path): ... this.
31303
31304 * kern/mm.c [MM_DEBUG] (grub_malloc): Undefined.
31305 [MM_DEBUG] (grub_realloc): Likewise.
31306 [MM_DEBUG] (grub_free): Likewise.
31307 [MM_DEBUG] (grub_memalign): Likewise.
31308 [MM_DEBUG] (grub_mm_debug): New variable.
31309 [MM_DEBUG] (grub_debug_malloc): New function.
31310 [MM_DEBUG] (grub_debug_free): New function.
31311 [MM_DEBUG] (grub_debug_realloc): New function.
31312 [MM_DEBUG] (grub_debug_memalign): New function.
31313
31314 * kern/misc.c (grub_abort): Print a newline to distinguish
31315 the message.
31316
31317 * kern/main.c (grub_main): Call grub_machine_set_prefix and
31318 grub_set_root_dev after loading modules. This is necessary when
31319 setting a prefix depends on modules.
31320
31321 * include/grub/efi/efi.h (grub_print_device_path): Renamed to ...
31322 (grub_efi_print_device_path): ... this.
31323 (grub_efi_get_filename): New prototype.
31324 (grub_efi_set_prefix): Likewise.
31325
31326 * include/grub/efi/disk.h: Include grub/efi/api.h, grub/symbol.h
31327 and grub/disk.h.
31328 (grub_efidisk_get_device_handle): New prototype.
31329 (grub_efidisk_get_device_name): Likewise.
31330
31331 * include/grub/mm.h: Include config.h.
31332 (MM_DEBUG): Removed.
31333 [MM_DEBUG && !GRUB_UTIL] (grub_mm_debug): New prototype.
31334 [MM_DEBUG && !GRUB_UTIL] (grub_malloc): New macro.
31335 [MM_DEBUG && !GRUB_UTIL] (grub_realloc): Likewise.
31336 [MM_DEBUG && !GRUB_UTIL] (grub_memalign): Likewise.
31337 [MM_DEBUG && !GRUB_UTIL] (grub_free): Likewise.
31338 [MM_DEBUG && !GRUB_UTIL] (grub_debug_malloc): New prototype.
31339 [MM_DEBUG && !GRUB_UTIL] (grub_debug_realloc): New prototype.
31340 [MM_DEBUG && !GRUB_UTIL] (grub_debug_memalign): New prototype.
31341 [MM_DEBUG && !GRUB_UTIL] (grub_debug_free): New prototype.
31342
31343 * include/grub/kernel.h (grub_machine_set_prefix): New prototype.
31344
31345 * disk/efi/efidisk.c: Include grub/partition.h.
31346 (iterate_child_devices): New function.
31347 (add_device): First, compare only last device path nodes, so that
31348 devices are sorted by the types.
31349 (grub_efidisk_get_device_handle): New function.
31350 (grub_efidisk_get_device_name): Likewise.
31351
31352 * configure.ac (--enable-mm-debug): New option to enable the
31353 memory manager debugging feature. This makes the binary much
31354 bigger, so is disabled by default.
31355
9cacaa17 313562006-04-23 Yoshinori K. Okuji <okuji@enbug.org>
31357
31358 Use grub_abort instead of grub_stop, and grub_exit must be
31359 define in each architecture now. Also, this change adds support
31360 for EFI disks.
f19dbdb7 31361
9cacaa17 31362 * util/i386/pc/grub-probefs.c: Include grub/term.h.
31363 (grub_getkey): New function.
31364 (grub_term_get_current): Likewise.
31365
31366 * util/i386/pc/grub-setup.c: Include grub/term.h.
31367 (grub_getkey): New function.
31368 (grub_term_get_current): Likewise.
31369
31370 * util/misc.c (grub_stop): Renamed to ...
31371 (grub_exit): ... this.
31372
31373 * kern/powerpc/ieee1275/init.c (abort): Renamed to ...
31374 (grub_exit): ... this.
31375 (grub_machine_init): Use grub_abort instead of abort.
31376 (grub_stop): Removed.
31377
31378 * kern/powerpc/ieee1275/cmain.c (cmain): Use grub_abort instead of
31379 abort.
31380
31381 * kern/i386/pc/startup.S (grub_exit): New function.
31382 (cold_reboot): New label.
31383
31384 * kern/efi/init.c: Include grub/efi/disk.h and grub/env.h.
31385 (grub_efi_init): Call grub_efidisk_init.
31386 (grub_efi_fini): Call grub_efidisk_fini.
31387
31388 * kern/efi/efi.c: Include grub/mm.h.
31389 (grub_efi_console_control_guid): Renamed to ...
31390 (console_control_guid): ... this.
31391 (grub_efi_loaded_image_guid): Renamed to ...
31392 (loaded_image_guid): ... this.
31393 (grub_efi_locate_handle): New function.
31394 (grub_efi_open_protocol): Likewise.
31395 (grub_efi_set_text_mode): Use CONSOLE_CONTROL_GUID instead of
31396 GRUB_EFI_CONSOLE_CONTROL_GUID.
31397 (grub_efi_exit): Removed.
31398 (grub_stop): Likewise.
31399 (grub_efi_get_loaded_image): Use grub_efi_open_protocol.
31400 (grub_exit): New function.
31401 (grub_print_device_path): Likewise.
31402
31403 * kern/rescue.c (grub_rescue_cmd_exit): New function.
31404 (grub_enter_rescue_mode): Register "exit".
31405
31406 * kern/misc.c (grub_real_dprintf): A cosmetic change.
31407 (grub_abort): New function.
31408
31409 * kern/err.c (grub_fatal): Use grub_abort instead of grub_stop.
31410
31411 * include/grub/sparc64/ieee1275/kernel.h (abort): Removed.
31412
31413 * include/grub/powerpc/ieee1275/kernel.h (abort): Removed.
31414
31415 * include/grub/efi/efi.h (grub_efi_exit): Removed.
31416 (grub_print_device_path): New prototype.
31417 (grub_efi_locate_handle): Likewise.
31418 (grub_efi_open_protocol): Likewise.
31419
31420 * include/grub/efi/disk.h (grub_efidisk_fini): New file.
31421 * disk/efi/efidisk.c: Likewise.
31422
31423 * DISTLIST: Added disk/efi/efidisk.c and include/grub/efi/disk.h.
31424
31425 * include/grub/efi/console_control.h
31426 (GRUB_EFI_CONSOLE_CONTROL_GUID): Use an array for the last 8 bytes.
31427
31428 * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): Specify the
31429 last 8 bytes as an array.
31430 (GRUB_EFI_DISK_IO_GUID): New macro.
31431 (GRUB_EFI_BLOCK_IO_GUID): Likewise.
31432 (GRUB_EFI_DEVICE_PATH_GUID): Likewise.
31433 (grub_efi_ipv6_address_t): Change the type to grub_uint16_t from
31434 grub_uint8_t.
31435 (struct grub_efi_guid): Use an array to specify the last 8 bytes.
31436 (struct grub_efi_device_path): Rename the member "sub_type" to
31437 "subtype".
31438 (GRUB_EFI_DEVICE_PATH_TYPE): New macro.
31439 (GRUB_EFI_DEVICE_PATH_SUBTYPE): Likewise.
31440 (GRUB_EFI_DEVICE_PATH_LENGTH): Likewise.
31441 (GRUB_EFI_END_DEVICE_PATH_TYPE): Likewise.
31442 (GRUB_EFI_END_ENTIRE_DEVICE_PATH_SUBTYPE): Likewise.
31443 (GRUB_EFI_END_THIS_DEVICE_PATH_SUBTYPE): Likewise.
31444 (GRUB_EFI_END_ENTIRE_DEVICE_PATH): Likewise.
31445 (GRUB_EFI_NEXT_DEVICE_PATH): Likewise.
31446 (GRUB_EFI_HARDWARE_DEVICE_PATH_TYPE): Likewise.
31447 (GRUB_EFI_PCI_DEVICE_PATH_SUBTYPE): Likewise.
31448 (struct grub_efi_pci_device_path): New structure.
31449 (grub_efi_pci_device_path_t): New type.
31450 (GRUB_EFI_PCCARD_DEVICE_PATH_SUBTYPE): New macro.
31451 (struct grub_efi_pccard_device_path): New structure.
31452 (grub_efi_pccard_device_path_t): New type.
31453 (GRUB_EFI_MEMORY_MAPPED_DEVICE_PATH_SUBTYPE): New macro.
31454 (struct grub_efi_memory_mapped_device_path): New structure.
31455 (grub_efi_memory_mapped_device_path_t): New type.
31456 (GRUB_EFI_VENDOR_DEVICE_PATH_SUBTYPE): New macro.
31457 (struct grub_efi_vendor_device_path): New structure.
31458 (grub_efi_vendor_device_path_t): New type.
31459 (GRUB_EFI_CONTROLLER_DEVICE_PATH_SUBTYPE): New macro.
31460 (struct grub_efi_controller_device_path): New structure.
31461 (grub_efi_controller_device_path_t): New type.
31462 (GRUB_EFI_ACPI_DEVICE_PATH_TYPE): New macro.
31463 (GRUB_EFI_ACPI_DEVICE_PATH_SUBTYPE): Likewise.
31464 (struct grub_efi_acpi_device_path): New structure.
31465 (grub_efi_acpi_device_path_t): New type.
31466 (GRUB_EFI_EXPANDED_ACPI_DEVICE_PATH_SUBTYPE): New macro.
31467 (struct grub_efi_expanded_acpi_device_path): New structure.
31468 (grub_efi_expanded_acpi_device_path_t): New type.
31469 (GRUB_EFI_EXPANDED_ACPI_HIDSTR): New macro.
31470 (GRUB_EFI_EXPANDED_ACPI_UIDSTR): Likewise.
31471 (GRUB_EFI_EXPANDED_ACPI_CIDSTR): Likewise.
31472 (GRUB_EFI_MESSAGING_DEVICE_PATH_TYPE): Likewise.
31473 (GRUB_EFI_ATAPI_DEVICE_PATH_SUBTYPE): Likewise.
31474 (struct grub_efi_atapi_device_path): New structure.
31475 (grub_efi_atapi_device_path_t): New type.
31476 (GRUB_EFI_FIBRE_CHANNEL_DEVICE_PATH_SUBTYPE): New macro.
31477 (struct grub_efi_fibre_channel_device_path): New structure.
31478 (grub_efi_fibre_channel_device_path_t): New type.
31479 (GRUB_EFI_1394_DEVICE_PATH_SUBTYPE): New macro.
31480 (struct grub_efi_1394_device_path): New structure.
31481 (grub_efi_1394_device_path_t): New type.
31482 (GRUB_EFI_USB_DEVICE_PATH_SUBTYPE): New macro.
31483 (struct grub_efi_usb_device_path): New structure.
31484 (grub_efi_usb_device_path_t): New type.
31485 (GRUB_EFI_USB_CLASS_DEVICE_PATH_SUBTYPE): New macro.
31486 (struct grub_efi_usb_class_device_path): New structure.
31487 (grub_efi_usb_class_device_path_t): New type.
31488 (GRUB_EFI_I2O_DEVICE_PATH_SUBTYPE): New macro.
31489 (struct grub_efi_i2o_device_path): New structure.
31490 (grub_efi_i2o_device_path_t): New type.
31491 (GRUB_EFI_MAC_ADDRESS_DEVICE_PATH_SUBTYPE): New macro.
31492 (struct grub_efi_mac_address_device_path): New structure.
31493 (grub_efi_mac_address_device_path_t): New type.
31494 (GRUB_EFI_IPV4_DEVICE_PATH_SUBTYPE): New macro.
31495 (struct grub_efi_ipv4_device_path): New structure.
31496 (grub_efi_ipv4_device_path_t): New type.
31497 (GRUB_EFI_IPV6_DEVICE_PATH_SUBTYPE): New macro.
31498 (struct grub_efi_ipv6_device_path): New structure.
31499 (grub_efi_ipv6_device_path_t): New type.
31500 (GRUB_EFI_INFINIBAND_DEVICE_PATH_SUBTYPE): New macro.
31501 (struct grub_efi_infiniband_device_path): New structure.
31502 (grub_efi_infiniband_device_path_t): New type.
31503 (GRUB_EFI_UART_DEVICE_PATH_SUBTYPE): New macro.
31504 (struct grub_efi_uart_device_path): New structure.
31505 (grub_efi_uart_device_path_t): New type.
31506 (GRUB_EFI_VENDOR_MESSAGING_DEVICE_PATH_SUBTYPE): New macro.
31507 (struct grub_efi_vendor_messaging_device_path): New structure.
31508 (grub_efi_vendor_messaging_device_path_t): New type.
31509 (GRUB_EFI_MEDIA_DEVICE_PATH_TYPE): New macro.
31510 (GRUB_EFI_HARD_DRIVE_DEVICE_PATH_SUBTYPE): Likewise.
31511 (struct grub_efi_hard_drive_device_path): New structure.
31512 (grub_efi_hard_drive_device_path_t): New type.
31513 (GRUB_EFI_CDROM_DEVICE_PATH_SUBTYPE): New macro.
31514 (struct grub_efi_cdrom_device_path): New structure.
31515 (grub_efi_cdrom_device_path_t): New type.
31516 (GRUB_EFI_VENDOR_MEDIA_DEVICE_PATH_SUBTYPE): New macro.
31517 (struct grub_efi_vendor_media_device_path): New structure.
31518 (grub_efi_vendor_media_device_path_t): New type.
31519 (GRUB_EFI_FILE_PATH_DEVICE_PATH_SUBTYPE): New macro.
31520 (struct grub_efi_file_path_device_path): New structure.
31521 (grub_efi_file_path_device_path_t): New type.
31522 (GRUB_EFI_PROTOCOL_DEVICE_PATH_SUBTYPE): New macro.
31523 (struct grub_efi_protocol_device_path): New structure.
31524 (grub_efi_protocol_device_path_t): New type.
31525 (GRUB_EFI_BIOS_DEVICE_PATH_TYPE): New macro.
31526 (GRUB_EFI_BIOS_DEVICE_PATH_SUBTYPE): Likewise.
31527 (struct grub_efi_bios_device_path): New structure.
31528 (grub_efi_bios_device_path_t): New type.
31529 (struct grub_efi_disk_io): New structure.
31530 (grub_efi_disk_io_t): New type.
31531 (struct grub_efi_block_io_media): New structure.
31532 (grub_efi_block_io_media_t): New type.
31533 (struct grub_efi_block_io): New structure.
31534 (grub_efi_block_io_t): New type.
31535
31536 * include/grub/misc.h (grub_stop): Removed.
31537 (grub_exit): New prototype.
31538 (grub_abort): Likewise.
31539
31540 * include/grub/disk.h (enum grub_disk_dev_id): Added
31541 GRUB_DISK_DEVICE_EFIDISK_ID.
31542
31543 * conf/i386-efi.rmk (kernel_mod_SOURCES): Added
31544 disk/efi/efidisk.c.
31545 (kernel_syms.lst): Remove the target if an error occurs.
31546
49986a9f 315472006-04-22 Yoshinori K. Okuji <okuji@enbug.org>
31548
31549 * kern/misc.c (grub_lltoa): Rewritten the decimal conversion part,
31550 as it was simply too buggy.
31551
970d3b8a 315522006-04-21 Yoshinori K. Okuji <okuji@enbug.org>
31553
31554 * kern/misc.c (grub_lltoa): New function.
31555 (grub_vsprintf): Added support for the long long suffix,
31556 i.e. "ll".
31557
ff04ec24 315582006-04-20 Hollis Blanchard <hollis@penguinppc.org>
31559
31560 * Makefile.in (LDFLAGS): Add variable.
31561 (LD): Remove variable.
31562 * configure.ac: Add -m32 to LDFLAGS.
31563 * genmk.rb (PModule#rule): Use $(CC) instead of $(LD).
31564 * conf/powerpc-ieee1275.rmk (COMMON_LDFLAGS): Add variable.
31565 (grubof_LDFLAGS): Use $(COMMON_LDFLAGS).
31566 (_linux_mod_LDFLAGS, linux_mod_LDFLAGS, normal_mod_LDFLAGS,
31567 suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS): New
31568 variables.
31569 * conf/sparc64-ieee1275.rmk (COMMON_LDFLAGS): Add -nostdlib.
31570 * conf/i386-pc.rmk (COMMON_LDFLAGS): Add -nostdlib.
31571 * conf/i386-efi.rmk (COMMON_LDFLAGS): Add -nostdlib.
31572
37e5e1a4 315732006-04-20 Vesa Jaaskelainen <chaac@nic.fi>
31574
31575 * term/gfxterm.c (grub_gfxterm_getcharwidth): Fixed character
31576 length for unknown glyph.
31577
c352d8dd 315782006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
31579
2eab1c0d 31580 Add support for pre-loaded modules into the EFI port.
f19dbdb7 31581
2eab1c0d 31582 * util/i386/efi/grub-mkimage.c (make_mods_section): Rewritten
31583 completely. Accept one more argument DIR. The caller has changed.
31584
31585 * kern/i386/efi/init.c (grub_arch_modules_addr): Removed.
31586
31587 * kern/efi/efi.c: Include grub/efi/pe32.h and grub/kernel.h.
31588 (grub_efi_loaded_image_guid): New variable.
31589 (grub_efi_get_loaded_image): New function.
31590 (grub_arch_modules_addr): Likewise.
31591
31592 * include/grub/efi/efi.h (grub_efi_get_loaded_image): New
31593 prototype.
31594
31595 * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): New macro.
31596 (struct grub_efi_loaded_image): New structure.
31597 (grub_efi_loaded_image_t): New type.
31598
315992006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
f19dbdb7 31600
c352d8dd 31601 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Compare the file
31602 size with GRUB_OS_AREA_SIZE as grub_size_t instead of
31603 grub_ssize_t. Reported by Jeff Chua <jeff84@silk.corp.fedex.com>.
31604
6d01d6b4 316052006-04-19 Roger Leigh <rleigh@whinlatter.ukfsn.org>
31606
31607 * DISTLIST: Added `util/powerpc/ieee1275/grub-install.in'.
31608
976a4ea0 316092006-04-19 Yoshinori K. Okuji <okuji@enbug.org>
31610
31611 * DISTLIST: Added include/grub/efi/console.h,
31612 include/grub/efi/time.h, include/grub/i386/efi/kernel.h,
31613 kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
31614
31615 * include/grub/efi/console.h: New file.
31616 * include/grub/efi/time.h: Likewise.
31617 * include/grub/i386/efi/kernel.h: Likewise.
31618 * kern/efi/init.c: Likewise.
31619 * kern/efi/mm.c: Likewise.
31620 * term/efi/console.c: Likewise.
f19dbdb7 31621
976a4ea0 31622 * kern/i386/efi/init.c: Do not include grub/machine/time.h.
31623 (grub_stop): Removed.
31624 (grub_get_rtc): Likewise.
31625 (grub_machine_init): Simply call grub_efi_init.
31626 (grub_machine_fini): Call grub_efi_fini.
31627
31628 * kern/efi/efi.c: Include grub/machine/time.h and grub/term.h.
31629 (grub_efi_output_string): Removed.
31630 (grub_efi_stall): New function.
31631 (grub_stop): Likewise.
31632 (grub_get_rtc): Likewise.
31633
31634 * include/grub/efi/efi.h (grub_efi_output_string): Removed.
31635 (grub_efi_stall): New prototype.
31636 (grub_efi_allocate_pages): Likewise.
31637 (grub_efi_free_pages): Likewise.
31638 (grub_efi_get_memory_map): Likewise.
31639 (grub_efi_mm_init): Likewise.
31640 (grub_efi_mm_fini): Likewise.
31641 (grub_efi_init): Likewise.
31642 (grub_efi_fini): Likewise.
31643
31644 * include/grub/i386/efi/time.h: Do not include
31645 grub/symbol.h. Include grub/efi/time.h.
31646 (GRUB_TICKS_PER_SECOND): Removed.
31647 (grub_get_rtc): Likewise.
31648
31649 * include/grub/efi/api.h (struct grub_efi_memory_descriptor):
31650 Added padding. The EFI spec is buggy.
31651 (GRUB_EFI_BLACK): New macro.
31652 (GRUB_EFI_BLUE): Likewise.
31653 (GRUB_EFI_GREEN): Likewise.
31654 (GRUB_EFI_CYAN): Likewise.
31655 (GRUB_EFI_RED): Likewise.
31656 (GRUB_EFI_MAGENTA): Likewise.
31657 (GRUB_EFI_BROWN): Likewise.
31658 (GRUB_EFI_LIGHTGRAY): Likewise.
31659 (GRUB_EFI_BRIGHT): Likewise.
31660 (GRUB_EFI_DARKGRAY): Likewise.
31661 (GRUB_EFI_LIGHTBLUE): Likewise.
31662 (GRUB_EFI_LIGHTGREEN): Likewise.
31663 (GRUB_EFI_LIGHTCYAN): Likewise.
31664 (GRUB_EFI_LIGHTRED): Likewise.
31665 (GRUB_EFI_LIGHTMAGENTA): Likewise.
31666 (GRUB_EFI_YELLOW): Likewise.
31667 (GRUB_EFI_WHITE): Likewise.
31668 (GRUB_EFI_BACKGROUND_BLACK): Likewise.
31669 (GRUB_EFI_BACKGROUND_BLUE): Likewise.
31670 (GRUB_EFI_BACKGROUND_GREEN): Likewise.
31671 (GRUB_EFI_BACKGROUND_CYAN): Likewise.
31672 (GRUB_EFI_BACKGROUND_RED): Likewise.
31673 (GRUB_EFI_BACKGROUND_MAGENTA): Likewise.
31674 (GRUB_EFI_BACKGROUND_BROWN): Likewise.
31675 (GRUB_EFI_BACKGROUND_LIGHTGRAY): Likewise.
31676 (GRUB_EFI_TEXT_ATTR): Likewise.
31677
31678 * conf/i386-efi.rmk (kernel_mod_SOURCES): Added kern/efi/efi.c,
31679 kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
31680 (kernel_mod_HEADERS): Added efi/time.h.
31681
83709125 316822006-04-18 Yoshinori K. Okuji <okuji@enbug.org>
31683
31684 * DISTLIST: Added conf/i386-efi.mk, conf/i386-efi.rmk,
31685 include/grub/efi/api.h, include/grub/efi/console_control.h,
31686 include/grub/efi/efi.h, include/grub/efi/pe32.h,
31687 include/grub/i386/efi/time.h, kern/efi/efi.c,
31688 kern/i386/efi/init.c, kern/i386/efi/startup.S,
31689 and util/i386/efi/grub-mkimage.c.
31690
31691 * Makefile.in (RMKFILES): Added i386-efi.rmk.
31692
31693 * genmk.rb (PModule#rule): Do not export symbols if
31694 #{prefix}_EXPORTS is set to "no".
31695
31696 * conf/i386-efi.mk: New file.
31697 * conf/i386-efi.rmk: Likewise.
31698 * include/grub/efi/api.h: Likewise.
31699 * include/grub/efi/console_control.h: Likewise.
31700 * include/grub/efi/efi.h: Likewise.
31701 * include/grub/efi/pe32.h: Likewise.
31702 * include/grub/i386/efi/time.h: Likewise.
31703 * kern/efi/efi.c: Likewise.
31704 * kern/i386/efi/init.c: Likewise.
31705 * kern/i386/efi/startup.S: Likewise.
31706 * util/i386/efi/grub-mkimage.c: Likewise.
31707
317082006-04-17 Marco Gerards <marco@gnu.org>
bfa2bd9e 31709
31710 * include/grub/script.h: Include <grub/parser.h> and
31711 "grub_script.tab.h".
31712 (struct grub_lexer_param): New struct.
31713 (struct grub_parser_param): Likewise.
31714 (grub_script_create_arglist): Pass the state in an argument.
31715 (grub_script_add_arglist): Likewise.
31716 (grub_script_create_cmdline): Likewise.
31717 (grub_script_create_cmdblock): Likewise.
31718 (grub_script_create_cmdif): Likewise.
31719 (grub_script_create_cmdmenu): Likewise.
31720 (grub_script_add_cmd): Likewise.
31721 (grub_script_arg_add): Likewise.
31722 (grub_script_lexer_ref): Likewise.
31723 (grub_script_lexer_deref): Likewise.
31724 (grub_script_lexer_record_start): Likewise.
31725 (grub_script_lexer_record_stop): Likewise.
31726 (grub_script_mem_record): Likewise.
31727 (grub_script_mem_record_stop): Likewise.
31728 (grub_script_malloc): Likewise.
31729 (grub_script_yylex): Likewise.
31730 (grub_script_yyparse): Likewise.
31731 (grub_script_yyerror): Likewise.
31732 (grub_script_yylex): Likewise.
31733 (grub_script_lexer_init): Return the state.
31734
31735 * normal/lexer.c (grub_script_lexer_state): Removed variable.
31736 (grub_script_lexer_done): Likewise.
31737 (grub_script_lexer_getline): Likewise.
31738 (grub_script_lexer_refs): Likewise.
31739 (script): Likewise.
31740 (newscript): Likewise.
31741 (record): Likewise.
31742 (recording): Likewise.
31743 (recordpos): Likewise.
31744 (recordlen): Likewise.
31745 (grub_script_lexer_init): Return the state instead of setting
31746 global variables.
31747 (grub_script_lexer_ref): Use the newly added argument for state
31748 instead of globals.
31749 (grub_script_lexer_deref): Likewise.
31750 (grub_script_lexer_record_start): Likewise.
31751 (grub_script_lexer_record_stop): Likewise.
31752 (recordchar): Likewise.
31753 (nextchar): Likewise.
31754 (grub_script_yylex2): Likewise.
31755 (grub_script_yylex): Likewise.
31756 (grub_script_yyerror): Likewise.
31757
31758 * normal/parser.y (func_mem): Removed variable.
31759 (menu_entry): Likewise.
31760 (err): Likewise.
31761 (%lex-param): New parser option.
31762 (%parse-param): Likewise.
31763 (script): Always return the AST.
31764 (argument): Pass the state around.
31765 (arguments): Likewise.
31766 (grubcmd): Likewise.
31767 (commands): Likewise.
31768 (function): Likewise.
31769 (menuentry): Likewise.
31770 (if_statement): Likewise.
31771 (if): Likewise.
31772
31773 * normal/script.c (grub_script_memused): Removed variable.
31774 (grub_script_parsed): Likewise.
31775 (grub_script_malloc): Added a state argument. Use that instead of
31776 global variables.
31777 (grub_script_mem_record): Likewise.
31778 (grub_script_mem_record_stop): Likewise.
31779 (grub_script_arg_add): Likewise.
31780 (grub_script_add_arglist): Likewise.
31781 (grub_script_create_cmdline): Likewise.
31782 (grub_script_create_cmdif): Likewise.
31783 (grub_script_create_cmdmenu): Likewise.
31784 (grub_script_add_cmd): Likewise.
31785 (grub_script_parse): Setup the state before calling the parser.
f19dbdb7 31786
e2a8c904 317872006-04-16 Marco Gerards <marco@gnu.org>
6de2ee99 31788
31789 * normal/command.c (grub_command_init): Remove the title command.
31790
31791 * normal/lexer.c (grub_script_yylex): Renamed from this...
31792 (grub_script_yylex2): ... to this.
31793 (grub_script_yylex): New function. Temporary
31794 introduced to filter some tokens.
31795 (grub_script_yyerror): Print a newline.
31796
31797 * normal/main.c (read_config_file): Output information about the
31798 lines that contain errors. Wait for a key after all lines have
31799 been processed. Don't return an empty menu.
31800
31801 * normal/parser.y (func_mem): Don't initialize.
31802 (menu_entry): Likewise.
31803 (err): New variable.
31804 (script): Don't return anything when an error was encountered.
31805 (ws, returns): Removed rules.
31806 (argument): Disabled concatenated variable support.
31807 (arguments): Remove explicit separators.
31808 (grubcmd): Likewise.
31809 (function): Likewise.
31810 (menuentry): Likewise.
31811 (if): Likewise.
31812 (commands): Likewise. Add error handling.
31813
31814 * normal/script.c (grub_script_create_cmdline): If
31815 `grub_script_parsed' is 0, assume the parser encountered an error.
31816
c9a86192 318172006-04-02 Yoshinori K. Okuji <okuji@enbug.org>
31818
31819 * configure.ac: Add support for EFI. Fix the typo
31820 BUILD_LDDFLAGS. Restore the LDFLAGS after testing.
31821
70f3b243 318222006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
31823
31824 * util/unifont2pff.rb: Removed unnecessary byte ordering. Now
31825 foreign multibyte characters should be shown correctly.
31826
65f201ad 318272006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
31828
31829 * normal/main.c (grub_normal_menu_addentry): Fixed menu size
31830 calculation.
31831 (read_config_file): Made it to close file before returning.
31832
b4b93674 318332006-03-31 Vesa Jaaskelainen <chaac@nic.fi>
31834
31835 * DISTLIST: Added include/grub/i386/pc/vbeblit.h,
31836 include/grub/i386/pc/vbefill.h, video/i386/pc/vbeblit.c,
31837 video/i386/pc/vbefill.c.
31838
31839 * conf/i386-pc.rmk (vbe_mod_SOURCES): Added video/i386/pc/vbeblit.c,
31840 video/i386/pc/vbefill.c.
31841
31842 * include/grub/video.h (grub_video_blit_format): New enum.
31843 (grub_video_mode_info): Added new member blit_format.
31844 (grub_video_get_blit_format): New function prototype.
31845
31846 * include/grub/i386/pc/vbe.h (grub_video_vbe_get_video_ptr): New
31847 function prototype.
31848 (grub_video_vbe_map_rgb): Likewise.
31849 (grub_video_vbe_unmap_color): Likewise.
31850
31851 * include/grub/i386/pc/vbeblit.h: New file.
31852
31853 * include/grub/i386/pc/vbefill.h: New file.
31854
31855 * video/video.c (grub_video_get_blit_format): New function.
31856 (grub_video_vbe_get_video_ptr): Re-declared as non-static.
31857 (grub_video_vbe_map_rgb): Likewise.
31858 (grub_video_vbe_unmap_color): Likewise.
31859
31860 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Changed to use more
31861 optimized fills.
31862 (grub_video_vbe_blit_render_target): Changed to use more optimized
31863 blits.
31864 (grub_video_vbe_setup): Added detection for optimized settings.
31865 (grub_video_vbe_create_render_target): Likewise.
31866
31867 * video/i386/pc/vbeblit.c: New file.
31868
31869 * video/i386/pc/vbefill.c: New file.
31870
c2379b9c 318712006-03-30 Vesa Jaaskelainen <chaac@nic.fi>
31872
31873 * font/manager.c (grub_font_get_glyph): Removed font fixup from
31874 here...
31875
31876 * util/unifont2pff.rb: ... and moved it to here. Improved argument
31877 parsing to support both hex and dec ranges. If filename was missing
31878 show usage information.
31879
bd0d7896 318802006-03-14 Vesa Jaaskelainen <chaac@nic.fi>
31881
31882 * DISTLIST: Added include/grub/video.h, term/gfxterm.c,
31883 video/video.c, commands/videotest.c. Removed term/i386/pc/vesafb.c.
31884
31885 * conf/i386-pc.rmk (pkgdata_MODULES): Added video.mod,
31886 gfxterm.mod, videotest.mod. Removed vga.mod, vesafb.mod.
31887 (video_mod_SOURCES): Added.
31888 (video_mod_CFLAGS): Likewise.
31889 (video_mod_LDFLAGS): Likewise.
31890 (gfxterm_mod_SOURCES): Likewise.
31891 (gfxterm_mod_CFLAGS): Likewise.
31892 (gfxterm_mod_LDFLAGS): Likewise.
31893 (videotest_mod_SOURCES): Likewise.
31894 (videotest_mod_CFLAGS): Likewise.
31895 (videotest_mod_LDFLAGS): Likewise.
31896 (vesafb_mod_SOURCES): Removed.
31897 (vesafb_mod_CFLAGS): Likewise.
31898 (vesafb_mod_LDFLAGS): Likewise.
31899 (vga_mod_SOURCES): Likewise.
31900 (vga_mod_CFLAGS): Likewise.
31901 (vga_mod_LDFLAGS): Likewise.
31902
31903 * commands/videotest.c: New file.
31904
31905 * font/manager.c (fill_with_default_glyph): Modified to use
31906 grub_font_glyph.
31907 (grub_font_get_glyph): Likewise.
31908 (fontmanager): Renamed from this...
31909 (font_manager): ... to this.
31910
31911 * include/grub/font.h (grub_font_glyph): Added new structure.
31912 (grub_font_get_glyph): Modified to use grub_font_glyph.
31913
31914 * include/grub/misc.h (grub_abs): Added as inline function.
31915
31916 * include/grub/video.h: New file.
31917
31918 * include/grub/i386/pc/vbe.h (GRUB_VBE_STATUS_OK): New macro.
31919 (GRUB_VBE_MEMORY_MODEL_PACKED_PIXEL): Likewise.
31920 (GRUB_VBE_MEMORY_MODEL_DIRECT_COLOR): Likewise.
31921 (grub_vbe_get_controller_info): Renamed from this...
31922 (grub_vbe_bios_get_controller_info): ... to this.
31923 (grub_vbe_get_mode_info): Renamed from this...
31924 (grub_vbe_bios_get_mode_info): ... to this.
31925 (grub_vbe_set_mode): Renamed from this...
31926 (grub_vbe_bios_set_mode): ... to this.
31927 (grub_vbe_get_mode): Renamed from this...
31928 (grub_vbe_bios_get_mode): ... to this.
31929 (grub_vbe_set_memory_window): Renamed from this...
31930 (grub_vbe_bios_set_memory_window): ... to this.
31931 (grub_vbe_get_memory_window): Renamed from this...
31932 (grub_vbe_bios_get_memory_window): ... to this.
31933 (grub_vbe_set_scanline_length): Renamed from this...
31934 (grub_vbe_set_scanline_length): ... to this.
31935 (grub_vbe_get_scanline_length): Renamed from this...
31936 (grub_vbe_bios_get_scanline_length): ... to this.
31937 (grub_vbe_set_display_start): Renamed from this...
31938 (grub_vbe_bios_set_display_start): ... to this.
31939 (grub_vbe_get_display_start): Renamed from this...
31940 (grub_vbe_bios_get_display_start): ... to this.
31941 (grub_vbe_set_palette_data): Renamed from this...
31942 (grub_vbe_bios_set_palette_data): ... to this.
31943 (grub_vbe_set_pixel_rgb): Removed.
31944 (grub_vbe_set_pixel_index): Likewise.
31945
31946 * kern/i386/pc/startup.S (grub_vbe_get_controller_info): Renamed
31947 from this...
31948 (grub_vbe_bios_get_controller_info): ... to this.
31949 (grub_vbe_get_mode_info): Renamed from this...
31950 (grub_vbe_bios_get_mode_info): ... to this.
31951 (grub_vbe_set_mode): Renamed from this...
31952 (grub_vbe_bios_set_mode): ... to this.
31953 (grub_vbe_get_mode): Renamed from this...
31954 (grub_vbe_bios_get_mode): ... to this.
31955 (grub_vbe_set_memory_window): Renamed from this...
31956 (grub_vbe_bios_set_memory_window): ... to this.
31957 (grub_vbe_get_memory_window): Renamed from this...
31958 (grub_vbe_bios_get_memory_window): ... to this.
31959 (grub_vbe_set_scanline_length): Renamed from this...
31960 (grub_vbe_set_scanline_length): ... to this.
31961 (grub_vbe_get_scanline_length): Renamed from this...
31962 (grub_vbe_bios_get_scanline_length): ... to this.
31963 (grub_vbe_set_display_start): Renamed from this...
31964 (grub_vbe_bios_set_display_start): ... to this.
31965 (grub_vbe_get_display_start): Renamed from this...
31966 (grub_vbe_bios_get_display_start): ... to this.
31967 (grub_vbe_set_palette_data): Renamed from this...
31968 (grub_vbe_bios_set_palette_data): ... to this.
31969 (grub_vbe_bios_get_controller_info): Fixed problem with registers
31970 getting corrupted after calling it. Added more pushes and pops.
31971 (grub_vbe_bios_set_mode): Likewise.
31972 (grub_vbe_bios_get_mode): Likewise.
31973 (grub_vbe_bios_get_memory_window): Likewise.
31974 (grub_vbe_bios_set_scanline_length): Likewise.
31975 (grub_vbe_bios_get_scanline_length): Likewise.
31976 (grub_vbe_bios_get_display_start): Likewise.
31977 (grub_vbe_bios_set_palette_data): Likewise.
31978
31979 * normal/cmdline.c (cl_set_pos): Refresh the screen.
31980 (cl_insert): Likewise.
31981 (cl_delete): Likewise.
31982
31983 * term/gfxterm.c: New file.
31984
31985 * term/i386/pc/vesafb.c: Removed file.
31986
31987 * video/video.c: New file.
31988
31989 * video/i386/pc/vbe.c (real2pm): Added new function.
31990 (grub_video_vbe_draw_pixel): Likewise.
31991 (grub_video_vbe_get_video_ptr): Likewise.
31992 (grub_video_vbe_get_pixel): Likewise
31993 (grub_video_vbe_init): Likewise.
31994 (grub_video_vbe_fini): Likewise.
31995 (grub_video_vbe_setup): Likewise.
31996 (grub_video_vbe_get_info): Likewise.
31997 (grub_video_vbe_set_palette): Likewise.
31998 (grub_video_vbe_get_palette): Likewise.
31999 (grub_video_vbe_set_viewport): Likewise.
32000 (grub_video_vbe_get_viewport): Likewise.
32001 (grub_video_vbe_map_color): Likewise.
32002 (grub_video_vbe_map_rgb): Likewise.
32003 (grub_video_vbe_map_rgba): Likewise.
32004 (grub_video_vbe_unmap_color): Likewise.
32005 (grub_video_vbe_fill_rect): Likewise.
32006 (grub_video_vbe_blit_glyph): Likewise.
32007 (grub_video_vbe_blit_bitmap): Likewise.
32008 (grub_video_vbe_blit_render_target): Likewise.
32009 (grub_video_vbe_scroll): Likewise.
32010 (grub_video_vbe_swap_buffers): Likewise.
32011 (grub_video_vbe_create_render_target): Likewise.
32012 (grub_video_vbe_delete_render_target): Likewise.
32013 (grub_video_vbe_set_active_render_target): Likewise.
32014 (grub_vbe_set_pixel_rgb): Remove function.
32015 (grub_vbe_set_pixel_index): Likewise.
32016 (index_color_mode): Remove static variable.
32017 (active_mode): Likewise.
32018 (framebuffer): Likewise.
32019 (bytes_per_scan_line): Likewise.
32020 (grub_video_vbe_adapter): Added new static variable.
32021 (framebuffer): Likewise.
32022 (render_target): Likewise.
32023 (initial_mode): Likewise.
32024 (mode_in_use): Likewise.
32025 (mode_list): Likewise.
32026
5f97350b 320272006-03-10 Marco Gerards <marco@gnu.org>
32028
32029 * configure.ac (AC_INIT): Bumped to 1.93.
32030
32031 * DISTLIST: Added `include/grub/hfs.h'.
32032
a3c5c6f8 320332006-02-01 Yoshinori K. Okuji <okuji@enbug.org>
32034
32035 * boot/i386/pc/boot.S (general_error): Before looping, try INT
32036 18H, which might help the BIOS falling back to next boot media.
32037
6de53d26 320382006-01-25 Yoshinori K. Okuji <okuji@enbug.org>
32039
32040 * util/i386/pc/grub-install.in: Escape a backslash. Reported by
32041 Poe Chen <poe.poechen@gmail.com>.
32042
77c4a393 320432006-01-17 Marco Gerards <marco@gnu.org>
32044
32045 * include/grub/normal.h: Include <grub/script.h>.
32046 (grub_command_list): Removed struct.
32047 (grub_command_list_t): Removed type.
32048 (grub_menu_entry): Remove members `num' and `command_list'. Add
32049 members `commands' and `sourcecode'.
32050 * include/grub/script.h: Add inclusion guards.
32051 (grub_script_cmd_menuentry): New struct.
32052 (grub_script_execute_menuentry): New prototype.
32053 (grub_script_lexer_record_start): Likewise.
32054 (grub_script_lexer_record_stop): Likewise.
32055 * normal/execute.c (grub_script_execute_menuentry): New function.
32056 * normal/lexer.c (record, recording, recordpos, recordlen): New
32057 variables.
32058 (grub_script_lexer_record_start): New function.
32059 (grub_script_lexer_record_stop): Likewise.
32060 (recordchar): Likewise.
32061 (nextchar): Likewise.
32062 (grub_script_yylex): Use `nextchar' to fetch new characters. Use
32063 2048 as the buffer size. Add the tokens `menuentry' and `@'.
32064 * normal/main.c: Include <grub/parser.h> and <grub/script.h>
32065 (current_menu): New variable.
32066 (free_menu): Mainly rewritten.
32067 (grub_normal_menu_addentry): New function.
32068 (read_config_file): Rewritten.
32069 * normal/menu.c (run_menu_entry): Mainly rewritten.
fe987087 32070 * normal/menu_entry.c (make_screen): Rewritten the code to insert
77c4a393 32071 the menu entry.
32072 (run): Mainly rewritten.
32073 * normal/parser.y (menu_entry): New variable.
32074 (GRUB_PARSER_TOKEN_MENUENTRY): New token.
32075 (menuentry): New rule.
32076 (command): Add `menuentry'.
32077 (if_statement): Allow additional returns before `fi'.
32078 * normal/script.c (grub_script_create_cmdmenu): New function.
32079
144f1f98 320802006-01-03 Marco Gerards <marco@gnu.org>
32081
32082 * INSTALL: GNU Bison is required.
32083 * configure.ac: Rewritten the test to detect Bison.
32084 * Makefile.in (YACC): New variable. Reported by Xun Sun
32085 <xun.sun.cn@gmail.com>.
32086
af4b2d89 320872006-01-03 Marco Gerards <marco@gnu.org>
32088
32089 * fs/hfsplus.c (grub_hfsplus_read_block): Convert the offset of
32090 the HFS+ filesystem to filesystem blocks.
32091 (grub_hfsplus_iterate_dir): Cast the `fileinfo' assignment so a
32092 GCC warning is silenced.
32093
15643b71 320942006-01-03 Marco Gerards <marco@gnu.org>
32095
32096 * partmap/apple.c (apple_partition_map_iterate): Convert the data
32097 read from disk from big endian to host byte order.
32098
00905879 320992006-01-03 Hollis Blanchard <hollis@penguinppc.org>
32100
32101 * fs/hfs.c: Include <grub/hfs.h>. Added reference to the official
32102 documentation.
32103 (GRUB_HFS_EMBED_HFSPLUS_SIG): New macro.
32104 (grub_hfs_mount): Grammar fix in error. Make sure this is not an
32105 embedded HFS+ filesystem.
32106 (GRUB_HFS_MAGIC, grub_hfs_extent, grub_hfs_datarecord_t)
32107 (grub_hfs_sblock): Move from here...
32108 * include/grub/hfs.h: To here... New file.
32109 * fs/hfsplus.c: Include <grub/hfs.h>. Added reference to the official
32110 documentation.
32111 (GRUB_HFSPLUS_MAGIC, GRUB_HFSPLUSX_MAGIC, GRUB_HFSPLUS_SBLOCK):
32112 New macros.
32113 (grub_hfsplus_volheader): Change type of member `magic' to
32114 `grub_uint16_t'.
32115 (grub_hfsplus_data): Add new member `embedded_offset'.
32116 (grub_hfsplus_read_block): Add the HFS+ wrapper offset to the
32117 returned block.
32118 (grub_hfsplus_mount): Read the HFS+ wrapper if it exists.
32119 Calculate the offset.
32120
8899bc3e 321212005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
32122
32123 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRP_ADDR):
32124 Removed.
32125 (GRUB_BOOT_MACHINE_DRP_SIZE): Likewise.
32126
ae8c0277 321272005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
32128
32129 * kern/env.c (grub_env_set): Check if ENV->VALUE instead of
32130 ENV->NAME is NULL after allocating ENV->VALUE.
32131
07084456 321322005-12-25 Marco Gerards <marco@gnu.org>
32133
32134 * kern/env.c (grub_env_set): Rewritten the error handling code.
32135
4750f5f1 321362005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
32137
32138 * geninit.sh: Made more robust, and more portable.
32139
50214199 321402005-12-25 Marco Gerards <marco@gnu.org>
32141
32142 Add support for Apple HFS+ filesystems.
f19dbdb7 32143
50214199 32144 * fs/hfsplus.c: New file.
32145
32146 * DISTLIST: Added `fs/hfsplus.c'.
32147
32148 * conf/common.rmk (pkgdata_MODULES): Add `hfsplus.mod'.
32149 (hfsplus_mod_SOURCES): New variable.
32150 (hfsplus_mod_CFLAGS): Likewise.
32151 (hfsplus_mod_LDFLAGS): Likewise.
32152 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/hfsplus.c'.
32153 (grub_setup_SOURCES): Likewise.
32154 (grub_mkdevicemap_SOURCES): Likewise.
32155 (grub_emu_SOURCES): Likewise.
32156 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
32157
32158 * fs/fshelp.c (grub_fshelp_log2blksize): New function.
32159
32160 * include/grub/fshelp.h (grub_fshelp_log2blksize): new prototype.
32161
befaed6c 321622005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
32163
32164 * DISTLIST: Added geninitheader.sh, geninit.sh, commands/test.c,
32165 commands/i386/pc/play.c, conf/common.mk, conf/common.rmk,
32166 include/grub/parser.h, include/grub/script.h, kern/parser.c,
32167 kern/sparc64/cache.S, normal/execute.c, normal/function.c,
32168 normal/lexer.c, normal/parser.y, normal/script.c, and
32169 partmap/gpt.c.
32170 Removed kern/sparc64/cache.c.
32171
32172 * conf/common.rmk (DISTCLEANFILES): Added grub_script.tab.c,
32173 grub_script.tab.h, grub_modules_init.lst, grub_modules_init.h,
32174 grub_emu_init.c.
32175
32176 * configure.ac (AC_INIT): Bumped to 1.92.
32177
6a124103 321782005-12-24 Vesa Jaaskelainen <chaac@nic.fi>
32179
32180 * kern/err.c (grub_error_push): Added new function to support error
32181 stacks.
32182 (grub_error_pop): Likewise.
32183 (grub_error_stack_items): New local variable to support error stacks.
32184 (grub_error_stack_pos): Likewise.
32185 (grub_error_stack_assert): Likewise.
32186 (GRUB_ERROR_STACK_SIZE): Added new define to configure maximum error
32187 stack depth.
32188 (grub_print_error): Added support to print errors from error stack.
32189
32190 * include/grub/err.h (grub_error_push): Added function prototype.
32191 (grub_error_pop): Likewise.
32192
be973c1b 321932005-12-09 Hollis Blanchard <hollis@penguinppc.org>
32194
32195 * configure.ac: Accept `powerpc64' as host_cpu.
32196 (amd64): Rename to `biarch32'.
32197
32198 * kern/powerpc/cache.S (grub_arch_sync_caches): Handle
32199 non-cacheline-aligned addresses.
32200
32201 * kern/dl.c (grub_dl_load_core): Add grub_dprintf messages.
32202 (grub_dl_flush_cache): Likewise. Only call `grub_arch_sync_caches'
32203 if `size' is non-zero.
32204
b04216ab 322052005-12-03 Marco Gerards <mgerards@xs4all.nl>
32206
32207 * conf/common.rmk (grub_modules_init.lst): Use `-printf "%P\n"'
32208 and `cd' to make sure the filename is not prefixed with a
32209 directory name.
32210 (pkgdata_MODULES): Add `gpt.mod'.
32211 (gpt_mod_SOURCES): New variable.
32212 (gpt_mod_CFLAGS): Likewise.
32213 (gpt_mod_LDFLAGS): Likewise.
32214
32215 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/gpt.c'.
32216
32217 * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_GPT_DISK):
32218 New macro.
32219
32220 * partmap/gpt.c: New file.
32221
32222 * partmap/pc.c (pc_partition_map_iterate): Don't continue when a
32223 GPT partition map is detected.
32224
41730ed9 322252005-12-03 Vincent Pelletier <subdino2004@yahoo.fr>
32226
32227 * commands/i386/pc/play.c: New file.
32228 * conf/i386-pc.rmk (pkgdata_MODULES): Added play.mod.
32229 (play_mod_SOURCES, play_mod_CFLAGS, play_mod_LDFLAGS): New
32230 macros.
f19dbdb7 32231
95dc3643 322322005-11-27 Marco Gerards <mgerards@xs4all.nl>
32233
32234 * include/grub/dl.h (GRUB_MOD_INIT): Use `__attribute__
32235 ((unused))' to silence gcc warning.
32236
1569ec51 322372005-11-26 Hollis Blanchard <hollis@penguinppc.org>
32238
32239 * configure.ac: Correct `AC_PROG_YACC' test.
32240
9abde152 322412005-11-22 Hollis Blanchard <hollis@penguinppc.org>
32242
32243 * util/powerpc/ieee1275/grub-install.in: Run the mount point
32244 check before installing files.
32245
44b83271 322462005-11-22 Mike Small <smallm@panix.com>
32247
32248 * util/powerpc/ieee1275/grub-install.in (grubdir): Fixed partition
32249 number regex so multidigit numbers are recognized correctly.
32250
322512005-11-22 Mike Small <smallm@panix.com>
32252
32253 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Add a
32254 debugging message before attempting to claim memory.
32255 (grub_rescue_cmd_initrd): Add a claim debugging message and try
32256 multiple addresses in case of failure.
32257
9c12956b 322582005-11-22 Hollis Blanchard <hollis@penguinppc.org>
32259
32260 * term/tparm.c (get_space): Remove empty `if' statement.
32261
32262 * fs/ufs.c (grub_ufs_find_file): Remove `grub_le_to_cpu32'.
32263
32264 * kern/parser.c (check_varstate): Rename `state' to 's'.
32265
aeaf81d9 322662005-11-22 Hollis Blanchard <hollis@penguinppc.org>
32267
32268 * partmap/acorn.c: Change `unsigned' to `unsigned int'. Move all
32269 variable definitions to the beginning of each function. Sort stack
32270 variables by size.
32271 (find): Rename to `acorn_partition_map_find'. Cast `grub_disk_read'
32272 `buf' argument to `char *'.
32273
79bbb63f 322742005-11-22 Hollis Blanchard <hollis@penguinppc.org>
32275
32276 * conf/powerpc-ieee1275.rmk: Include conf/common.mk.
32277 (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
fe6b695a 32278 minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
79bbb63f 32279 hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
32280 help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
32281 sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
32282 configfile.mod, search.mod, gzio.mod and test.mod.
32283 (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
32284 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
32285 (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
32286 (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
32287 (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
32288 (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
32289 (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
32290 (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
32291 (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
32292 (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
32293 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
32294 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
32295 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
32296 (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
32297 (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
32298 (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
32299 (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
32300 (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
32301 (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
32302 (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
32303 (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
32304 (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
32305 (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Removed.
32306
32307 * conf/common.mk (grub_modules_init.lst): Use `find' instead of
32308 `grep --include'.
32309 (pkgdata_MODULES): Add test.mod.
32310
233b1628 323112005-11-18 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
32312
32313 * genmk.rb: Fixed list rules moved to Makefile.in. Recognise
32314 appending to variables with "+=".
32315 (PModule): Use full pathname to generate *.lst filenames.
32316
32317 * Makefile.in: Fixed list rules moved from genmk.rb.
32318 (.DELETE_ON_ERROR): New special target.
32319 (RMKFILES): Add common.rmk and sparc64-ieee1275.rmk.
32320
32321 * conf/i386-pc.rmk: Include conf/common.mk.
32322 (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
fe6b695a 32323 minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
233b1628 32324 hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
32325 help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
32326 sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
32327 configfile.mod, search.mod, gzio.mod and test.mod.
32328 (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
32329 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
32330 (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
32331 (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
32332 (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
32333 (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
32334 (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
32335 (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
32336 (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
32337 (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
32338 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
32339 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
32340 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
32341 (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
32342 (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
32343 (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
32344 (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
32345 (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
32346 (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
32347 (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
32348 (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
32349 (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
32350 (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Move from
32351 here...
32352 * conf/common.rmk: ... to here. New file.
32353
32354 * conf/common.mk: New file.
32355
16f820c8 323562005-11-18 Yoshinori K. Okuji <okuji@enbug.org>
32357
32358 * conf/powerpc-ieee1275.rmk (grub_script.tab.h): Unified to ...
32359 (grub_script.tab.c): ... here.
32360
32361 * conf/sparc64-ieee1275.rmk (grub_script.tab.h): Unified to ...
32362 (grub_script.tab.c): ... here.
32363
32364 * conf/i386-pc.rmk (grub_script.tab.h): Unified to ...
32365 (grub_script.tab.c): ... here.
32366
32367 * normal/command.c (grub_command_find): Fixed a memory leak of
32368 MODULE_NAME. Reported by Mike Small <smallm@panix.com>.
32369
63ba1554 323702005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
32371
32372 * include/grub/symbol.h: (FUNCTION): Use double quotes instead of
32373 "@" which marks the start of a comment on ARM.
32374 (VARIABLE): Likewise.
32375
7f67dc13 323762005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
32377
79bbb63f 32378 Add support for Linux/ADFS partition tables.
7f67dc13 32379
32380 * partmap/acorn.c: New file.
32381
32382 * include/grub/acorn_filecore.h: Likewise.
32383
32384 * DISTLIST: Added `partmap/acorn.c' and
32385 `include/grub/acorn_filecore.h'.
f19dbdb7 32386
7f67dc13 32387 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
32388 `partmap/acorn.c'.
32389 (pkgdata_MODULES): Add `acorn.mod'.
32390 (acorn_mod_SOURCES): New variable.
32391 (acorn_mod_CFLAGS): Likewise.
32392
32393 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
32394 `partmap/acorn.c'.
32395 (pkgdata_MODULES): Add `acorn.mod'.
32396 (acorn_mod_SOURCES): New variable.
32397 (acorn_mod_CFLAGS): Likewise.
32398
32399 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/acorn.c'.
32400 (pkgdata_MODULES): Add `acorn.mod'.
32401 (acorn_mod_SOURCES): New variable.
32402 (acorn_mod_CFLAGS): Likewise.
32403 (acorn_mod_LDFLAGS): Likewise.
32404
32405 * include/types.h (grub_disk_addr_t): New typedef.
32406
6d099807 324072005-11-13 Marco Gerards <mgerards@xs4all.nl>
32408
32409 * geninit.sh: New file.
32410
32411 * geninitheader.sh: Likewise.
32412
32413 * commands/boot.c (grub_boot_init, grub_boot_fini): Removed.
32414 * commands/cat.c (grub_cat_init, grub_cat_fini): Likewise.
32415 * commands/cmp.c (grub_cmp_init, grub_cmp_fini): Likewise.
32416 * commands/configfile.c (grub_configfile_init)
32417 (grub_configfile_fini): Likewise.
32418 * commands/default.c (grub_default_init, grub_default_fini):
32419 Likewise.
32420 * commands/help.c (grub_help_init, grub_help_fini): Likewise.
32421 * commands/ls.c (grub_ls_init, grub_ls_fini): Likewise.
32422 * commands/search.c (grub_search_init, grub_search_fini): Likewise.
32423 * commands/terminal.c (grub_terminal_init, grub_terminal_fini):
32424 Likewise.
32425 * commands/test.c (grub_test_init, grub_test_fini): Likewise.
32426 * commands/timeout.c (grub_timeout_init, grub_timeout_fini):
32427 Likewise.
32428 * commands/i386/pc/halt.c (grub_halt_init, grub_halt_fini): Likewise.
fe6b695a 32429 * commands/ieee1275/halt.c (grub_halt_init, grub_halt_fini):
6d099807 32430 Likewise.
32431 * commands/i386/pc/reboot.c (grub_reboot_init, grub_reboot_fini):
32432 Likewise.
fe6b695a 32433 * commands/ieee1275/reboot.c (grub_reboot_init, grub_reboot_fini):
6d099807 32434 Likewise.
32435 * disk/loopback.c (grub_loop_init, grub_loop_fini): Likewise.
32436 * fs/affs.c (grub_affs_init, grub_affs_fini): Likewise.
32437 * fs/ext2.c (grub_ext2_init, grub_ext2_fini): Likewise.
32438 * fs/fat.c (grub_fat_init, grub_fat_fini): Likewise.
32439 * fs/hfs.c (grub_hfs_init, grub_hfs_fini): Likewise.
32440 * fs/iso9660.c (grub_iso9660_init, grub_iso9660_fini): Likewise.
32441 * fs/jfs.c (grub_jfs_init, grub_jfs_fini): Likewise.
32442 * fs/minix.c (grub_minix_init, grub_minix_fini): Likewise.
32443 * fs/sfs.c (grub_sfs_init, grub_sfs_fini): Likewise.
32444 * fs/ufs.c (grub_ufs_init, grub_ufs_fini): Likewise.
32445 * fs/xfs.c (grub_xfs_init, grub_xfs_fini): Likewise.
32446 * normal/main.c (grub_normal_init, grub_normal_fini): Likewise.
32447 * partmap/amiga.c (grub_amiga_partition_map_init)
32448 (grub_amiga_partition_map_fini): Likewise.
32449 * partmap/apple.c (grub_apple_partition_map_init)
32450 (grub_apple_partition_map_fini): Likewise.
32451 * partmap/pc.c (grub_pc_partition_map_init)
32452 (grub_pc_partition_map_fini): Likewise.
32453 * partmap/sun.c (grub_sun_partition_map_init,
32454 grub_sun_partition_map_fini): Likewise.
32455 * term/terminfo.c (grub_terminal_init, grub_terminal_fini):
32456 Likewise.
32457
32458 * util/grub-emu.c: Include <grub_modules_init.h>.
32459 (main): Don't initialize and de-initialize any modules directly,
32460 use `grub_init_all' and `grub_fini_all' instead.
32461
32462 * term/i386/pc/vesafb.c (grub_vesafb_init): Renamed to
32463 `grub_vesafb_mod_init'.
32464 (grub_vesafb_fini): Renamed to `grub_vesafb_mod_fini'. Updated
32465 all users.
32466 * term/i386/pc/vga.c (grub_vga_init): Renamed to
32467 `grub_vga_mod_init'. Updated all users.
32468 (grub_vga_fini): Renamed to `grub_vga_mod_fini'.
f19dbdb7 32469
6d099807 32470 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `grub_emu_init.c'.
32471 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c): New
32472 rules.
32473
32474 * include/grub/dl.h (GRUB_MOD_INIT): Add argument `name'.
32475 Generate a function to initialize the module in utilities.
32476 Updated all callers.
32477 (GRUB_MOD_FINI): Add argument `name'. Generate a function to
32478 initialize the module in utilities. Updated all callers.
32479
9046bcf0 324802005-11-09 Hollis Blanchard <hollis@penguinppc.org>
32481
32482 * term/ieee1275/ofconsole.c (grub_ofconsole_cls): Use both the ANSI
32483 escape sequence and a literal ^L to clear the screen.
32484
32485 * commands/ieee1275/suspend.c (grub_cmd_suspend): Clear the screen
32486 when returning from Open Firmware.
32487
d13ea639 324882005-11-09 Hollis Blanchard <hollis@penguinppc.org>
32489
32490 * term/ieee1275/ofconsole.c (grub_ofconsole_width): New variable.
32491 (grub_ofconsole_height): Likewise.
32492 (grub_ofconsole_putchar): If `grub_curr_x' exceeds console width,
32493 manually insert a '\n'.
32494 (grub_ofconsole_getwh): Set and return `grub_ofconsole_width' and
32495 `grub_ofconsole_height'. Return early if these are already set.
32496
a8fcf206 324972005-11-07 Vincent Pelletier <subdino2004@yahoo.fr>
32498
32499 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
32500 `commands/test.c', `fs/affs.c', `fs/sfs.c', `fs/xfs.c',
32501 `normal/execute.c', `normal/lexer.c', `io/gzio.c',
32502 `kern/parser.c', `grub_script.tab.c', `normal/function.c'
32503 and `normal/script.c'.
32504 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
32505 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
32506 (test_mod_SOURCES): New variable.
32507 (test_mod_CFLAGS): Likewise.
32508 (test_mod_LDFLAGS): Likewise.
32509 (pkgdata_MODULES): Add `test.mod'.
32510 (grub_script.tab.c): New rule.
32511 (grub_script.tab.h): Likewise.
32512
b6b32745 325132005-11-07 Marco Gerards <mgerards@xs4all.nl>
32514
32515 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
32516 `commands/test.c', `normal/execute.c', `normal/lexer.c',
32517 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
32518 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
32519 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
32520 (test_mod_SOURCES): New variable.
32521 (test_mod_CFLAGS): Likewise.
32522 (pkgdata_MODULES): Add `test.mod'.
32523 (grub_script.tab.c): New rule.
32524 (grub_script.tab.h): Likewise.
32525
daac212a 325262005-11-06 Marco Gerards <mgerards@xs4all.nl>
32527
32528 Add initial scripting support.
32529
32530 * commands/test.c: New file.
32531 * include/grub/script.h: Likewise.
32532 * normal/execute.c: Likewise.
32533 * normal/function.c: Likewise.
32534 * normal/lexer.c: Likewise.
32535 * normal/parser.y: Likewise.
32536 * normal/script.c: Likewise.
32537
32538 * configure.ac: Add `AC_PROG_YACC' test.
f19dbdb7 32539
daac212a 32540 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/test.c',
32541 `normal/execute.c', `normal/lexer.c', `grub_script.tab.c',
32542 `normal/function.c' and `normal/script.c'.
32543 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
32544 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
b6b32745 32545 (test_mod_SOURCES, test_mod_CFLAGS, test_mod_LDFLAGS): New
32546 variables.
daac212a 32547 (pkgdata_MODULES): Add `test.mod'.
32548 (grub_script.tab.c): New rule.
32549 (grub_script.tab.h): Likewise.
32550
32551 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TEST_FAILURE'.
32552
32553 * include/grub/normal.h (grub_test_init): New prototype.
32554 (grub_test_fini): Likewise.
f19dbdb7 32555
daac212a 32556 * normal/command.c: Include <grub/script.h>.
32557 (grub_command_execute): Rewritten.
f19dbdb7 32558
daac212a 32559 * util/grub-emu.c (main): Call `grub_test_init' and
32560 `grub_test_fini'.
32561
77500b2b 325622005-11-03 Hollis Blanchard <hollis@penguinppc.org>
32563
32564 * kern/powerpc/ieee1275/init.c (grub_get_rtc): Initialize `msecs'
32565 to 0.
32566 * term/ieee1275/ofconsole.c (grub_ofconsole_checkkey): Return -1 if
32567 there are no pending characters.
32568
e45deb9e 325692005-11-03 Hollis Blanchard <hollis@penguinppc.org>
32570
32571 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_get_devname): Use
32572 `grub_strndup' to drop device arguments. Replace unnecessary
32573 `grub_strndup' with `grub_strdup'.
32574
4ce32619 325752005-11-03 Hollis Blanchard <hollis@penguinppc.org>
32576
32577 * kern/term.c (grub_cls): Do not call grub_cur_term->cls() if the
32578 `debug' environment variable has been set.
32579
325802005-11-02 Hollis Blanchard <hollis@penguinppc.org>
f19dbdb7 32581
4ce32619 32582 * Makefile.in (install-local): Use $(DATA).
32583 (uninstall): Likewise.
32584 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Move grub-mkimage...
32585 (sbin_UTILITIES): ... to here.
32586 (sbin_SCRIPTS): New variable.
32587 (grub_install_SOURCES): New variable.
32588 * util/powerpc/ieee1275/grub-install.in: New file.
32589 * util/powerpc/ieee1275/grub-mkimage.c (kernel_path): Remove
32590 variable.
32591 (add_segments): Call `grub_util_get_path'.
32592
25fe6f03 325932005-10-28 Yoshinori K. Okuji <okuji@enbug.org>
32594
32595 From Timothy Baldwin:
32596 * commands/ls.c (grub_ls_list_files): Close FILE with
32597 grub_file_close.
32598 * kern/misc.c (grub_vsprintf): Terminate the string S with NUL.
32599
04ccf3ec 326002005-10-24 Marco Gerards <mgerards@xs4all.nl>
32601
32602 * include/grub/parser.h: New file.
32603
32604 * kern/parser.c: Likewise.
32605
32606 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/parser.c'.
32607 (grub_setup_SOURCES): Likewise.
32608 (grub_probefs_SOURCES): Likewise.
32609 (grub_emu_SOURCES): Likewise.
32610 (kernel_img_HEADERS): Add `parser.h'.
32611
32612 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
32613 (grub_emu_SOURCES): Add `kern/parser.c'.
32614 (grubof_SOURCES): Likewise.
32615
32616 * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
32617 (grubof_SOURCES): Add `kern/parser.c'.
32618
32619 * include/grub/misc.h (grub_split_cmdline): Removed prototype.
32620
32621 * kern/misc.c (grub_split_cmdline): Removed function.
32622
32623 * kern/rescue.c: Include <grub/parser.h>.
32624 (grub_enter_rescue_mode): Use `grub_parser_split_cmdline' instead
32625 of `grub_split_cmdline'.
32626
32627 * normal/command.c: Include <grub/parser.h>.
32628 (grub_command_execute): Use `grub_parser_split_cmdline' instead
32629 of `grub_split_cmdline'.
32630
32631 * normal/completion.c: Include <grub/parser.h>.
32632 (cmdline_state): New variable.
32633 (iterate_dir): End the filename with a quote depending on the
32634 command line state.
32635 (get_state): new function.
32636 (grub_normal_do_completion): Use `grub_parser_split_cmdline' to
32637 split the arguments and determine the current argument. When the
32638 argument string is not quoted, escape all spaces.
32639
6d8f4b0e 326402005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
32641
32642 * normal/sparc64/setjmp.S: New file.
32643
15cf03ed 326442005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
32645
32646 * include/grub/sparc64/libgcc.h: New file.
32647 * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Remove -Av9.
32648 (normal_mod_SOURCES): Use normal/sparc64/setjmp.S instead of
32649 normal/sparc64/setjmp.c.
32650
03e8661a 326512005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
32652
32653 * kern/sparc64/dl.c: Rewritten for SPARCV9 ELF.
32654 * kern/sparc64/cache.S: New file.
32655 * kern/sparc64/cache.c: Removed.
32656 * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Add -Av9.
32657 (COMMON_CFLAGS): Add -mno-app-regs. Remove -mcpu=v9 and
32658 -mtune=ultrasparc.
32659 (COMMON_LDFLAGS): Add -melf64_sparc.
32660 (grubof_HEADERS): Add sparc64/libgcc.h and machine/kernel.h.
32661 (grubof_SOURCES): Use cache.S instead of cache.c.
32662 (grubof_LDFLAGS): Add -mno-app-regs. Replace "-Xlinker
32663 --oformat -Xlinker elf64-sparc" by "-Bstatic,-melf64_sparc".
32664 (pkgdata_MODULES): Uncomment. Leave linux.mod and _linux.mod
32665 commented though.
32666 (normal_mod_SOURCES): Add normal/completion.c and normal/misc.c.
32667 (_linux_mod_SOURCES, _linux_mod_CFLAGS, linux_mod_SOURCES)
32668 (linux_mod_CFLAGS): Commented out.
32669 (_linux_mod_LDFLAGS, linux_mod_LDFLAGS): New macro, commented
32670 out because module isn't built.
32671 (fshelp_mod_LDFLAGS, fat_mod_LDFLAGS, ext2_mod_LDFLAGS)
32672 (ufs_mod_LDFLAGS, minix_mod_LDFLAGS, hfs_mod_LDFLAGS)
32673 (jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS, normal_mod_LDFLAGS)
32674 (hello_mod_LDFLAGS, boot_mod_LDFLAGS, terminal_mod_LDFLAGS)
32675 (ls_mod_LDFLAGS, cmp_mod_LDFLAGS, cat_mod_LDFLAGS)
32676 (font_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
32677 (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
32678 (suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS)
32679 (help_mod_LDFLAGS, default_mod_LDFLAGS, timeout_mod_LDFLAGS)
32680 (configfile_mod_LDFLAGS, search_mod_LDFLAGS, xfs_mod_SOURCES)
32681 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
32682 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
32683 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, gzio_mod_SOURCES)
32684 (gzio_mod_CFLAGS, gzio_mod_LDFLAGS): New macro.
32685
34eeec8a 326862005-10-20 Yoshinori K. Okuji <okuji@enbug.org>
32687
32688 * util/i386/pc/grub-probefs.c (main): Call grub_xfs_init and
32689 grub_xfs_fini. Do not call grub_hfs_init or grub_hfs_fini any
32690 longer, because HFS should not be used on PC.
32691
708367a3 326922005-10-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
32693
32694 * io/gzio.c (grub_gzio_read): Use OFFSET instead of FILE->OFFSET
32695 consistently within the loop.
32696
6fa1251a 326972005-10-15 Marco Gerards <mgerards@xs4all.nl>
32698
32699 * fs/xfs.c (grub_xfs_iterate_dir): Detect an error if part of a
32700 directory can not be read.
32701
4801580b 327022005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
32703
32704 * configure.ac (AC_INIT): Increase the version number to 1.91.
32705
32706 * DISTLIST: Added include/grub/terminfo.h, include/grub/tparm.h,
32707 include/grub/i386/pc/serial.h, term/terminfo.c, term/tparm.c and
32708 term/i386/pc/serial.c.
32709
219ad426 327102005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
32711
32712 * kern/file.c (grub_file_seek): Seeking to an offset equal to a
32713 file size must be permitted.
32714
32715 * kern/i386/pc/startup.S (multiboot_trampoline): Fix a mistake
32716 between %ah and %al.
32717
688e5699 327182005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
32719
32720 * fs/xfs.c (grub_xfs_iterate_dir): Change the type of BLK to
32721 grub_uint64_t.
32722 Call the hook with a NUL-terminated filename.
32723 (grub_xfs_mount): Use grub_be_to_cpu32 instead of
32724 grub_cpu_to_be32.
32725
32726 * kern/term.c (cursor_state): New variable.
32727 (grub_term_set_current): Reset the cursor state on a new
32728 terminal.
32729 (grub_setcursor): Rewritten to use CURSOR_STATE.
32730 (grub_getcursor): New function.
32731
32732 * include/grub/term.h (grub_getcursor): New prototype.
32733
32734 * io/gzio.c (test_header): Align BUF for accessing it as 32-bit
32735 integers on ARM. Reported by Timothy Baldwin
32736 <T.E.Baldwin99@members.leeds.ac.uk>.
32737
bb34586c 327382005-10-11 Marco Gerards <mgerards@xs4all.nl>
32739
32740 * fs/sfs.c (grub_sfs_open): Don't free `data->label' if it is not
32741 allocated.
32742 (grub_sfs_dir): Likewise.
32743
9a909877 327442005-10-09 Marco Gerards <mgerards@xs4all.nl>
32745
32746 Add support for the SFS filesystem.
32747
32748 * fs/sfs.c: New file.
32749
32750 * DISTLIST: Added `fs/sfs.c'.
32751
32752 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/sfs.c'.
32753 (grub_probefs_SOURCES): Likewise.
32754 (grub_emu_SOURCES): Likewise.
32755 (pkgdata_MODULES): Add `sfs.mod'.
32756 (sfs_mod_SOURCES): New variable.
32757 (sfs_mod_CFLAGS): Likewise.
32758 (sfs_mod_LDFLAGS): Likewise.
32759
32760 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/sfs.c'.
32761 (pkgdata_MODULES): Add `sfs.mod'.
32762 (sfs_mod_SOURCES): New variable.
32763 (sfs_mod_CFLAGS): Likewise.
32764
32765 * util/grub-emu.c (main): Call `grub_sfs_init' and
32766 `grub_sfs_fini'.
32767
32768 * include/grub/fs.h (grub_sfs_init): New prototype.
32769 (grub_sfs_fini): Likewise.
32770
57bdbde3 327712005-10-07 Marco Gerards <mgerards@xs4all.nl>
32772
32773 Add support for the AFFS filesystem.
32774
32775 * fs/affs.c: New file.
32776
32777 * DISTLIST: Added `fs/affs.c'.
32778
32779 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/affs.c'.
32780 (grub_probefs_SOURCES): Likewise.
32781 (grub_emu_SOURCES): Likewise.
32782 (pkgdata_MODULES): Add `affs.mod'.
32783 (affs_mod_SOURCES): New variable.
32784 (affs_mod_CFLAGS): Likewise.
32785 (affs_mod_LDFLAGS): Likewise.
32786
32787 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/affs.c'.
32788 (pkgdata_MODULES): Add `affs.mod'.
32789 (affs_mod_SOURCES): New variable.
32790 (affs_mod_CFLAGS): Likewise.
32791
32792 * util/grub-emu.c (main): Call `grub_affs_init' and
32793 `grub_affs_fini'.
32794
32795 * include/grub/fs.h (grub_affs_init): New prototype.
32796 (grub_affs_fini): Likewise.
32797
047b67e0 327982005-10-01 Marco Gerards <mgerards@xs4all.nl>
32799
32800 * fs/xfs.c (grub_xfs_iterate_dir): Add parentheses.
32801
59b8208a 328022005-10-01 Marco Gerards <mgerards@xs4all.nl>
32803
32804 * configure.ac: Accept `x86_64' as host_cpu. In that case add
32805 `-m32' to CFLAGS.
32806
32807 * genmk.rb (class PModule): Always use `$(#{prefix}_LDFLAGS)' when
32808 linking.
f19dbdb7 32809
59b8208a 32810 * conf/i386-pc.rmk (COMMON_CFLAGS): Add `-m32'.
32811 (COMMON_LDFLAGS): New variable.
32812 (kernel_img_LDFLAGS): Include `COMMON_FLAGS'.
32813 (_chain_mod_LDFLAGS, fshelp_mod_LDFLAGS, fat_mod_LDFLAGS)
32814 (ext2_mod_LDFLAGS, ufs_mod_LDFLAGS, minix_mod_LDFLAGS)
32815 (hfs_mod_LDFLAGS, jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS)
32816 (xfs_mod_LDFLAGS, _linux_mod_LDFLAGS, linux_mod_LDFLAGS)
32817 (normal_mod_LDFLAGS, hello_mod_LDFLAGS, boot_mod_LDFLAGS)
32818 (terminal_mod_LDFLAGS, ls_mod_LDFLAGS, cmp_mod_LDFLAGS)
32819 (cat_mod_LDFLAGS, help_mod_LDFLAGS, reboot_mod_LDFLAGS)
32820 (halt_mod_LDFLAGS, vga_mod_LDFLAGS, font_mod_LDFLAGS)
32821 (terminfo_mod_LDFLAGS, serial_mod_LDFLAGS, _multiboot_mod_LDFLAGS)
32822 (multiboot_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
32823 (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
32824 (default_mod_LDFLAGS, timeout_mod_LDFLAGS, configfile_mod_LDFLAGS)
32825 (vbe_mod_LDFLAGS, vesafb_mod_LDFLAGS, vbeinfo_mod_LDFLAGS)
32826 (vbetest_mod_LDFLAGS, search_mod_LDFLAGS, gzio_mod_LDFLAGS): New
32827 variables.
32828 (normal_mod_ASFLAGS): Add `-m32'.
32829
32830 * include/grub/types.h (grub_host_addr_t, grub_host_off_t)
32831 (grub_host_size_t, grub_host_ssize_t): New types.
32832 (grub_addr_t, grub_off_t, grub_size_t, grub_ssize_t): Make type
fe6b695a 32833 dependent of `GRUB_CPU_SIZEOF_VOID_P' instead on
59b8208a 32834 `GRUB_HOST_SIZEOF_VOID_P'.
32835
32836 * include/grub/kernel.h (struct grub_module_header): Type of
32837 member offset changed to `grub_host_off_t'. Type of member size
32838 changed to `grub_host_size_t'.
32839 (struct grub_module_info): Type of member offset changed to
32840 `grub_host_off_t'. Type of member size changed to
32841 `grub_host_size_t'.
32842
b4093103 328432005-09-29 Yoshinori K. Okuji <okuji@enbug.org>
32844
32845 Make GRUB's kernel compliant to Multiboot Specification.
f19dbdb7 32846
b4093103 32847 * kern/i386/pc/startup.S (multiboot_header): New label.
32848 (multiboot_entry): Likewise.
32849 (multiboot_trampoline): Likewise.
32850
32851 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
32852 Increased to 0x4A0.
32853
32854 * fs/xfs.c (grub_xfs_iterate_dir): Fix a syntax error. You may not
32855 put parentheses after a question mark.
32856 [!GRUB_UTIL] (my_mod): New variable.
32857
32858 * util/grub-emu.c (main): Call grub_xfs_init and grub_xfs_fini.
32859
b2499b29 328602005-09-28 Marco Gerards <mgerards@xs4all.nl>
32861
32862 Adds support for the XFS filesystem. Btrees are not supported
32863 yet.
32864
32865 * fs/xfs.c: New file.
32866
32867 * DISTLIST: Added `fs/xfs.c'.
32868
32869 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/xfs.c'.
32870 (grub_probefs_SOURCES): Likewise.
32871 (grub_emu_SOURCES): Likewise.
32872 (pkgdata_MODULES): Add `xfs.mod'.
32873 (xfs_mod_SOURCES): New variable.
32874 (xfs_mod_CFLAGS): Likewise.
32875
32876 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/xfs.c'.
32877 (pkgdata_MODULES): Add `xfs.mod'.
32878 (xfs_mod_SOURCES): New variable.
32879 (xfs_mod_CFLAGS): Likewise.
32880
32881 * util/grub-emu.c (main): Call `grub_xfs_init' and
32882 `grub_xfs_fini'.
32883
32884 * include/grub/fs.h (grub_xfs_init): New prototype.
32885 (grub_xfs_fini): Likewise.
32886
f19dbdb7 32887
83d37a62 328882005-09-18 Vesa Jaaskelainen <chaac@nic.fi>
32889
32890 * video/i386/pc/vbe.c (grub_vbe_set_video_mode): In indexed
32891 color modes, allow greater than 16 colors to be configured as
32892 a default palette.
32893
47d2d65e 328942005-09-03 Yoshinori K. Okuji <okuji@enbug.org>
32895
32896 * normal/completion.c (complete_arguments): Add the qualifier
32897 const into OPTIONS.
32898
32899 From Omniflux <omniflux+lists@omniflux.com>:
32900 * include/grub/terminfo.h: New file.
32901 * include/grub/tparm.h: Likewise.
32902 * include/grub/i386/pc/serial.h: Likewise.
32903 * term/terminfo.c: Likewise.
32904 * term/tparm.c: Likewise.
32905 * term/i386/pc/serial.c: Likewise.
32906 * conf/i386-pc.rmk (pkgdata_MODULES): Added terminfo.mod and
32907 serial.mod.
32908 (terminfo_mod_SOURCES): New variable.
32909 (terminfo_mod_CFLAGS): Likewise.
32910 (serial_mod_SOURCES): Likewise.
32911 (serial_mod_CFLAGS): Likewise.
32912
48b671ff 329132005-08-31 Yoshinori K. Okuji <okuji@enbug.org>
32914
32915 * DISTLIST: Replaced boot/powerpc/ieee1275/crt0.S and
32916 boot/powerpc/ieee1275/cmain.c with kern/powerpc/ieee1275/crt0.S
32917 and kern/powerpc/ieee1275/cmain.c, respectively.
32918
32919 * boot/powerpc/ieee1275/crt0.S: Moved to ...
32920 * kern/powerpc/ieee1275/crt0.S: ... here.
32921
32922 * boot/powerpc/ieee1275/cmain.c: Moved to ...
32923 * kern/powerpc/ieee1275/cmain.c: ... here.
f19dbdb7 32924
48b671ff 32925 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Use
32926 kern/powerpc/ieee1275/crt0.S and kern/powerpc/ieee1275/cmain.c
32927 instead of boot/powerpc/ieee1275/crt0.S and
32928 boot/powerpc/ieee1275/cmain.c, respectively.
32929
32930 * boot/i386/pc/boot.S (lba_mode): Do not store the total number of
32931 sectors. It was not used anyway.
32932
09fc77a7 329332005-08-30 Hollis Blanchard <hollis@penguinppc.org>
32934
32935 * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): Fix
32936 `unused parameter' warning.
32937
003789c7 329382005-08-30 Hollis Blanchard <hollis@penguinppc.org>
32939
32940 * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): New
32941 function.
32942 (grub_ofconsole_term): Specify grub_ofconsole_getcharwidth as
32943 getcharwidth.
32944
67f44c86 329452005-08-28 Marco Gerards <metgerards@student.han.nl>
32946
32947 * include/grub/normal.h (enum grub_completion_type): Added
32948 `GRUB_COMPLETION_TYPE_ARGUMENT'.
32949
32950 * normal/cmdline.c (print_completion): Handle
32951 the `GRUB_COMPLETION_TYPE_ARGUMENT' type.
32952 * normal/menu_entry.c (store_completion): Likewise.
32953
32954 * normal/completion.c (complete_arguments): New function.
32955 (grub_normal_do_completion): Call `complete_arguments' when the
32956 current words start with a dash.
32957
0b5abe02 329582005-08-27 Marco Gerards <metgerards@student.han.nl>
32959
32960 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Fix typo (use
32961 `gzio.mod' instead of `io.mod').
32962
d9864ee1 329632005-08-22 Yoshinori K. Okuji <okuji@enbug.org>
32964
32965 * gendistlist.sh (EXTRA_DISTFILES): Added genfslist.sh.
32966 (DISTDIRS): Added io and video.
32967 Rewrite the search routine to make an output consistently.
32968
32969 * DISTLIST: Added conf/sparc64-ieee1275.mk,
32970 conf/sparc64-ieee1275.rmk, include/grub/gzio.h,
32971 include/grub/ieee1275/ieee1275.h, include/grub/ieee1275/ofdisk.h,
32972 io/gzio.c, kern/sparc64/cache.c, kern/sparc64/dl.c,
32973 kern/sparc64/ieee1275/init.c, kern/sparc64/ieee1275/openfw.c and
32974 util/powerpc/ieee1275/misc.c.
f19dbdb7 32975
d9864ee1 32976 * include/grub/gzio.h: New file.
32977 * io/gzio.c: Likewise.
f19dbdb7 32978
d9864ee1 32979 * kern/file.c (grub_file_close): Call grub_device_close only if
32980 FILE->DEVICE is not NULL.
32981
32982 * include/grub/mm.h [!NULL] (NULL): New macro.
32983
32984 * include/grub/err.h (GRUB_ERR_BAD_GZIP_DATA): New constant.
32985
32986 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added io/gzip.c.
32987 (pkgdata_MODULES): Added gzio.mod.
32988 (gzio_mod_SOURCES): New variable.
32989 (gzio_mod_CFLAGS): Likewise.
32990
32991 * conf/i386-pc.rmk (grub_emu_SOURCES): Added io/gzip.c.
32992 (pkgdata_MODULES): Added gzio.mod.
32993 (gzio_mod_SOURCES): New variable.
32994 (gzio_mod_CFLAGS): Likewise.
32995
32996 * commands/cat.c: Include grub/gzio.h.
32997 (grub_cmd_cat): Use grub_gzfile_open instead of
32998 grub_file_open.
f19dbdb7 32999
d9864ee1 33000 * commands/cmp.c: Include grub/gzio.h.
33001 (grub_cmd_cmp): Use grub_gzfile_open instead of
33002 grub_file_open.
33003
33004 * loader/i386/pc/multiboot.c: Include grub/gzio.h.
33005 (grub_rescue_cmd_multiboot): Use grub_gzfile_open instead of
33006 grub_file_open.
33007 (grub_rescue_cmd_module): Likewise.
33008
fa46f4b5 330092005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
33010
33011 * conf/sparc64-ieee1275.rmk (grubof_SOURCES): The first file must be
33012 kern/sparc64/ieee1275/init.c because it contains _start.
33013 * conf/sparc64-ieee1275.mk: Generated from conf/sparc64-ieee1275.rmk.
33014
e9211b5d 330152005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
33016
33017 * configure.ac: Add support for sparc64 host with ieee1275
33018 firmware.
33019 * configure: Generated from configure.ac.
33020 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Use grub_ssize_t
33021 instead of int.
33022 (grub_ofdisk_read): Likewise.
33023 (grub_ofdisk_open): Use %p to print pointer values, and cast the
33024 pointers as (void *) to remove a warning.
33025 (grub_ofdisk_close): Likewise.
33026 (grub_ofdisk_read): Likewise.
33027 * kern/ieee1275/ieee1275.c (grub_ieee1275_exit): This never
33028 returns, so make it return void to remove a warning.
33029 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_exit):
33030 Corresponding prototype change.
33031 * kern/mm.c (grub_mm_init_region): Use %p to print pointer
33032 values, and cast the pointers as (void *) to remove a warning.
33033 (grub_mm_dump): Likewise.
33034 * conf/sparc64-ieee1275.mk: New file.
33035 * conf/sparc64-ieee1275.rmk: Likewise.
33036 * include/grub/sparc64/setjmp.h: Likewise.
33037 * include/grub/sparc64/types.h: Likewise.
33038 * include/grub/sparc64/ieee1275/console.h: Likewise.
33039 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
33040 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
33041 * include/grub/sparc64/ieee1275/time.h: Likewise.
33042 * kern/sparc64/cache.c: Likewise.
33043 * kern/sparc64/dl.c: Likewise.
33044 * kern/sparc64/ieee1275/init.c: Likewise.
33045 * kern/sparc64/ieee1275/openfw.c: Likewise.
33046
385c6a92 330472005-08-21 Yoshinori K. Okuji <okuji@enbug.org>
33048
33049 * util/console.c (grub_ncurses_putchar): If C is greater than
33050 0x7f, set C to a question mark.
33051 (grub_ncurses_getcharwidth): New function.
33052 (grub_ncurses_term): Specify grub_ncurses_getcharwidth as
33053 getcharwidth.
33054
33055 * normal/menu.c (print_entry): Made aware of Unicode. First,
33056 convert TITLE to UCS-4, and predict the cursor position by
33057 grub_getcharwidth.
33058
33059 * include/grub/misc.h (grub_utf8_to_ucs4): Specify the qualifier
33060 const to SRC.
33061 * kern/misc.c (grub_utf16_to_utf8): Likewise.
33062
16ccb8b1 330632005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
33064
33065 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Specify
33066 the boot file by the option BOOT_IMAGE. Use grub_stpcpy instead of
33067 grub_strcat.
33068
33069 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Specify the boot
33070 file by the option BOOT_IMAGE. Use grub_stpcpy instead of
33071 grub_strcpy and grub_strlen. Take it into account that a space
33072 character is inserted as a delimiter.
33073
6a85ce79 330742005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
33075
33076 * partmap/pc.c (pc_partition_map_iterate): Include the value of an
fe6b695a 33077 invalid magic in the error.
6a85ce79 33078
33079 * commands/search.c: New file.
f19dbdb7 33080
6a85ce79 33081 * util/grub-emu.c (main): Call grub_search_init and
33082 grub_search_fini.
33083
33084 * kern/rescue.c (grub_rescue_print_disks): Removed.
33085 (grub_rescue_print_devices): New function.
33086 (grub_rescue_cmd_ls): Use grub_device_iterate with
33087 grub_rescue_print_devices instead of grub_disk_dev_iterate with
33088 grub_rescue_print_disks.
33089
33090 * kern/partition.c (grub_partition_iterate): Return the result of
33091 PARTMAP->ITERATE instead of GRUB_ERRNO.
33092
33093 * kern/device.c: Include grub/partition.h.
33094 (grub_device_iterate): New function.
33095
33096 * include/grub/partition.h (grub_partition_iterate): Return int
33097 instead of grub_err_t.
33098
33099 * include/grub/normal.h [GRUB_UTIL] (grub_search_init): New
33100 prototype.
33101 [GRUB_UTIL] (grub_search_fini): Likewise.
33102
33103 * include/grub/device.h (grub_device_iterate): New prototype.
33104
33105 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
33106 commands/search.c.
33107 (pkgdata_MODULES): Added search.mod.
33108 (search_mod_SOURCES): New variable.
33109 (search_mod_CFLAGS): Likewise.
33110
33111 * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/search.c.
33112 (pkgdata_MODULES): Added search.mod.
33113 (search_mod_SOURCES): New variable.
33114 (search_mod_CFLAGS): Likewise.
33115
33116 * commands/ls.c (grub_ls_list_disks): Renamed to ...
33117 (grub_ls_list_devices): ... this, and use grub_device_iterate.
33118 All callers changed.
33119
33120 * DISTLIST: Added commands/search.c.
33121
ef095434 331222005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
33123
33124 * kern/term.c (grub_putchar): Use grub_utf8_to_ucs4 for the
33125 conversion.
33126 (grub_getcharwidth): New function.
33127
33128 * kern/misc.c (grub_utf8_to_ucs4): New function.
33129
33130 * include/grub/term.h (struct grub_term): Added a new member
33131 "getcharwidth".
33132 (grub_getcharwidth): New prototype.
33133
33134 * include/grub/misc.h (grub_utf8_to_ucs4): New prototype.
33135
33136 * term/i386/pc/console.c (map_char): New function. Segregated from
33137 grub_console_putchar.
33138 (grub_console_putchar): Use map_char.
33139 (grub_console_getcharwidth): New function.
33140 (grub_console_term): Specified grub_console_getcharwidth as
33141 getcharwidth.
33142
33143 * term/i386/pc/vga.c (grub_vga_getcharwidth): New function.
33144 (grub_vga_term): Specified grub_vga_getcharwidth as getcharwidth.
33145
33146 * term/i386/pc/vesafb.c (grub_virtual_screen_setup): Return
33147 GRUB_ERRNO.
33148 (grub_vesafb_init): Do not use RC. Instead, use GRUB_ERRNO. Rely
33149 on grub_strtoul completely.
33150 (write_char): Declare local variables in the beginning of the
33151 function.
33152 (grub_vesafb_getcharwidth): New function.
33153 (grub_vesafb_term): Specified grub_vesafb_getcharwidth as
33154 getcharwidth.
33155
1f0a95e4 331562005-08-19 Yoshinori K. Okuji <okuji@enbug.org>
33157
33158 * DISTLIST: Replace commands/i386/pc/vbe_list_modes.c and
33159 commands/i386/pc/vbe_test.c with commands/i386/pc/vbeinfo.c and
33160 commands/i386/pc/vbetest.c.
33161
33162 * video/i386/pc/vbe.c (grub_vbe_probe): If INFOBLOCK is not NULL,
33163 call grub_vbe_get_controller_info again, because the returned
33164 information is volatile.
33165 (grub_vbe_set_video_mode): Mostly rewritten.
33166 (grub_vbe_get_video_mode): Use grub_vbe_probe and use
33167 grub_vbe_status_t correctly.
33168 (grub_vbe_get_video_mode_info): Likewise.
33169 (grub_vbe_set_pixel_rgb): Use a switch statement rather than
33170 several if statements.
33171
33172 * commands/i386/pc/vbe_list_modes.c: Renamed to ...
33173 * commands/i386/pc/vbeinfo.c: ... this.
33174
33175 * commands/i386/pc/vbe_test.c: Renamed to ...
33176 * commands/i386/pc/vbetest.c: ... this.
33177
33178 * commands/i386/pc/vbeinfo.c (grub_cmd_vbe_list_modes): Renamed to
33179 ...
33180 (grub_cmd_vbeinfo): ... this. Save video modes before
33181 iterating. Skip a video mode, if it is not available, not enough
33182 information is given or it is monochrome. Show the memory
33183 model. Leave the interpretation of MODEVAR to grub_strtoul
33184 completely.
33185 (GRUB_MOD_INIT): Rename vbe_list_modes to vbeinfo.
33186 (GRUB_MOD_FINI): Likewise.
33187
33188 * commands/i386/pc/vbetest.c (grub_cmd_vbe_test): Renamed to ...
33189 (grub_cmd_vbetest): ... this. Don't print unnecessarily. Use
33190 grub_err_t instead of grub_uint32_t. Don't use SPTR. Remove a
33191 duplicated grub_env_get. Leave the interpretation of MODEVAR to
33192 grub_strtoul completely.
33193 (real2pm): Removed.
33194 (GRUB_MOD_INIT): Rename vbe_test to vbetest.
33195 (GRUB_MOD_FINI): Likewise.
33196
33197 * normal/misc.c: Include grub/mm.h.
33198
33199 * conf/i386-pc.rmk (pkgdata_MODULES): Replaced vbe_test.mod and
33200 vbe_list_modes with vbetest.mod and vbeinfo.mod.
33201 (vbe_list_modes_mod_SOURCES): Removed.
33202 (vbe_list_modes_mod_CFLAGS): Likewise.
33203 (vbe_test_mod_SOURCES): Likewise.
33204 (vbe_test_mod_CFLAGS): Likewise.
33205 (vbeinfo_mod_SOURCES): New variable.
33206 (vbeinfo_mod_CFLAGS): Likewise.
33207 (vbetest_mod_SOURCES): Likewise.
33208 (vbetest_mod_CFLAGS): Likewise.
33209
992ffbbe 332102005-08-18 Yoshinori K. Okuji <okuji@enbug.org>
33211
33212 * normal/misc.c: New file.
33213
33214 * DISTLIST: Added normal/misc.c.
f19dbdb7 33215
992ffbbe 33216 * partmap/amiga.c (amiga_partition_map_iterate): Add an argument
33217 DISK to HOOK. Call HOOK with DISK.
33218 * partmap/apple.c (apple_partition_map_iterate): Likewise.
33219 * partmap/pc.c (pc_partition_map_iterate): Likewise.
33220 * partmap/sun.c (sun_partition_map_iterate): Likewise.
33221
33222 * normal/menu_entry.c (struct screen): Added a new member
33223 "completion_shown".
33224 (completion_buffer): New global variable.
33225 (make_screen): Set SCREEN->COMPLETION_SHOWN to zero.
33226 (store_completion): New function.
33227 (complete): Likewise.
33228 (clear_completions): Likewise.
33229 (grub_menu_entry_run): If SCREEN->COMPLETION_SHOWN is non-zero,
33230 call clear_completions and reset SCREEN->COMPLETION_SHOWN. If C is
33231 a tab, call complete.
33232
33233 * normal/completion.c (disk_dev): Removed.
33234 (print_simple_completion): Likewise.
33235 (print_partition_completion): Likewise.
33236 (print_func): New global variable.
33237 (add_completion): Do not take the arguments WHAT or PRINT any
33238 longer. Added a new argument TYPE. Instead of printing directly,
33239 call PRINT_FUNC if not NULL.
33240 All callers changed.
33241 (complete_device): Use a local variable DEV instead of
33242 DISK_DEV. Do not move CURRENT_WORD to the end of a device name.
33243 (grub_normal_do_completion): Take a new argument HOOK. Do not
33244 initialize DISK_DEV. Initialize PRINT_FUNC to HOOK. If RET is an
33245 empty string, return NULL instead.
33246 All callers changed.
33247
33248 * normal/cmdline.c (print_completion): New function.
33249
33250 * kern/partition.c (grub_partition_iterate): Add an argument DISK
33251 to HOOK.
33252 All callers changed.
33253
33254 * kern/disk.c (grub_print_partinfo): Removed.
33255
33256 * include/grub/partition.h (struct grub_partition_map): Add a new
33257 argument DISK into HOOK of ITERATE.
33258 (grub_partition_iterate): Add a new argument DISK to HOOK.
33259
33260 * include/grub/normal.h (enum grub_completion_type): New enum.
33261 (grub_completion_type_t): New type.
33262 (GRUB_COMPLETION_TYPE_COMMAND): New constant.
33263 (GRUB_COMPLETION_TYPE_DEVICE): Likewise.
33264 (GRUB_COMPLETION_TYPE_PARTITION): Likewise.
33265 (GRUB_COMPLETION_TYPE_FILE): Likewise.
33266 (grub_normal_do_completion): Added a new argument HOOK.
33267 (grub_normal_print_device_info): New prototype.
33268
33269 * include/grub/disk.h (grub_print_partinfo): Removed.
33270
33271 * conf/i386-pc.rmk (grub_emu_SOURCES): Added normal/misc.c.
33272 (normal_mod_SOURCES): Likewise.
33273 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
33274 (normal_mod_SOURCES): Likewise.
33275
33276 * commands/ls.c (grub_ls_list_disks): Use
33277 grub_normal_print_device_info instead of grub_print_partinfo. Free
33278 PNAME.
33279 (grub_ls_list_files): Use grub_normal_print_device_info instead of
33280 duplicating the code.
33281
0bd41162 332822005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
33283
33284 * commands/i386/pc/vbe_list_modes.c: Update source formatting to
f19dbdb7 33285 follow GCS more precisely.
33286 * commands/i386/pc/vbe_test.c: Likewise.
33287 * include/grub/i386/pc/vbe.h: Likewise.
33288 * term/i386/pc/vesafb.c: Likewise.
33289 * video/i386/pc/vbe.c: Likewise.
0bd41162 33290
6323696a 332912005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
33292
33293 * DISTLIST: Added term/i386/pc/vesafb.c
33294 DISTLIST: Added video/i386/pc/vbe.c
33295 DISTLIST: Added commands/i386/pc/vbe_list_modes.c.
33296 DISTLIST: Added commands/i386/pc/vbe_test.c.
33297 * commands/i386/pc/vbe_list_modes.c: New file.
33298 * commands/i386/pc/vbe_test.c: Likewise.
33299 * term/i386/pc/vesafb.c: Likewise.
33300 * video/i386/pc/vbe.c: Likewise.
33301 * include/grub/i386/pc/vbe.h (GRUB_VBE_DEFAULT_VIDEO_MODE): Added define.
33302 (grub_vbe_probe) Added prototype.
33303 (grub_vbe_set_video_mode) Likewise.
33304 (grub_vbe_get_video_mode) Likewise.
33305 (grub_vbe_get_video_mode_info) Likewise.
33306 (grub_vbe_set_pixel_rgb) Likewise.
33307 (grub_vbe_set_pixel_index) Likewise.
33308 * conf/i386-pc.rmk (pkgdata_MODULES): Added vbe.mod.
33309 (pkgdata_MODULES): Added vesafb.mod.
33310 (pkgdata_MODULES): Added vbe_list_modes.mod.
33311 (pkgdata_MODULES): Added vbe_test.mod.
33312 (vbe_mod_SOURCES): Added.
33313 (vbe_mod_CFLAGS): Likewise.
33314 (vesafb_mod_SOURCES): Likewise.
33315 (vesafb_mod_CFLAGS): Likewise.
33316 (vbe_list_modes_mod_SOURCES): Likewise.
33317 (vbe_list_modes_mod_CFLAGS): Likewise.
33318 (vbe_test_mod_SOURCES): Likewise.
33319 (vbe_test_mod_CFLAGS): Likewise.
33320
0a74e62f 333212005-08-14 Yoshinori K. Okuji <okuji@enbug.org>
33322
0a74e62f 33323 * normal/command.c (grub_command_execute): If INTERACTIVE is
33324 false and GRUB_COMMAND_FLAG_NO_ECHO is not specified, print
33325 CMDLINE. Disable the pager if INTERACTIVE is true.
33326 All callers are changed.
33327
33328 * normal/main.c (grub_normal_execute): Read command.lst and fs.lst
33329 before reading a config file.
33330 * normal/main.c (read_config_file): Even if a command is not
33331 found, register it if it is within an entry.
33332
33333 * util/grub-emu.c: Include sys/types.h and unistd.h.
33334 (options): Added --hold.
33335 (struct arguments): Added a new member "hold".
33336 (parse_opt): If KEY is 'H', set ARGS->HOLD to ARG or -1 if ARG is
33337 missing.
33338 (main): Initialize ARGS.HOLD to zero. Wait until ARGS.HOLD is
33339 cleared by a debugger, if it is not zero.
33340
33341 * include/grub/normal.h (grub_command_execute): Add an argument
33342 INTERACTIVE.
33343
e51f85ae 333442005-08-14 Vesa Jaaskelainen <chaac@nic.fi>
33345
33346 * DISTLIST: Added include/grub/i386/pc/vbe.h.
33347
e9c6f39b 333482005-08-13 Yoshinori K. Okuji <okuji@enbug.org>
33349
33350 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Replace the test
33351 program with another one, because the old one didn't detect a bug
33352 in gcc-3.4. Always use regparm 2, because the new test is still
33353 not enough for gcc-4.0. Someone must investigate a simple test
33354 case which detects a bug in gcc-4.0.
33355
8de3495c 333562005-08-12 Yoshinori K. Okuji <okuji@enbug.org>
33357
33358 * DISTLIST: Added normal/completion.c.
33359
33360 * normal/completion.c: New file.
f19dbdb7 33361
8de3495c 33362 * term/i386/pc/console.c (grub_console_getwh): New function.
33363 (grub_console_term): Assign grub_console_getwh to getwh.
33364
33365 * normal/cmdline.c (grub_tab_complete): Removed. Now the same
33366 function is defined in normal/completion.c as
33367 grub_normal_do_completion.
33368 (grub_cmdline_get): Use grub_normal_do_completion instead of
33369 grub_tab_complete.
33370
33371 * kern/partition.c (grub_partition_map_iterate): Return 1 if HOOK
33372 returns non-zero, otherwise return 0.
33373 (grub_partition_iterate): First, probe the partition map. Then,
33374 call ITERATE only for this partition map.
33375
33376 * kern/misc.c (grub_strncmp): Rewritten.
33377
33378 * kern/disk.c (grub_disk_dev_iterate): Return 1 if P->ITERATE
33379 returns non-zero. Otherwise return 0.
33380
33381 * include/grub/partition.h (grub_partition_map_iterate): Return
33382 int instead of void.
33383
33384 * include/grub/normal.h (grub_normal_do_completion): New prototype.
33385
33386 * include/grub/misc.h (grub_strncmp): Change the type of N to
33387 grub_size_t.
33388
33389 * include/grub/disk.h (grub_disk_dev_iterate): Return int instead
33390 of void.
33391
33392 * normal/menu.c (draw_border): Cast GRUB_TERM_BORDER_WIDTH to
fe6b695a 33393 unsigned explicitly before comparing it with I.
8de3495c 33394
33395 * kern/main.c (grub_env_write_root): Add the attribute unused into
33396 VAR.
33397
33398 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
33399 normal/completion.c.
33400 (normal_mod_SOURCES): Likewise.
33401 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
33402 (normal_mod_SOURCES): Likewise.
33403
33404 * normal/command.c (grub_iterate_commands): If ITERATE returns
33405 non-zero, return one immediately.
33406
e85e144b 334072005-08-09 Vesa Jaaskelainen <chaac@nic.fi>
33408
33409 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vbe.h.
33410 * kern/i386/pc/startup.S: Updated Global Descriptor table's
33411 descriptions.
33412 (grub_vbe_get_controller_info): New function.
33413 (grub_vbe_get_mode_info): Likewise.
33414 (grub_vbe_set_mode): Likewise.
33415 (grub_vbe_get_mode): Likewise.
33416 (grub_vbe_set_memory_window): Likewise.
33417 (grub_vbe_get_memory_window): Likewise.
33418 (grub_vbe_set_scanline_length): Likewise.
33419 (grub_vbe_get_scanline_length): Likewise.
33420 (grub_vbe_set_display_start): Likewise.
33421 (grub_vbe_get_display_start): Likewise.
33422 (grub_vbe_set_palette_data): Likewise.
33423 * include/grub/i386/pc/vbe.h: New file.
33424
c46153d2 334252005-08-08 Hollis Blanchard <hollis@penguinppc.org>
33426
33427 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
33428 kern/ieee1275/of.c with kern/ieee1275/ieee1275.c.
33429 * DISTLIST: Likewise.
33430 * kern/ieee1275/of.c: Moved to ...
33431 * kern/ieee1275/ieee1275.c: ... here.
33432
0cb90c45 334332005-08-08 Hollis Blanchard <hollis@penguinppc.org>
33434
33435 * term/ieee1275/ofconsole.c: Include <grub/mm.h>.
33436 (grub_ofconsole_getwh): Cast -1 to type grub_ieee1275_ihandle_t.
33437 Pass 0 as `end' parameter to grub_strtoul().
33438
a19fb360 334392005-08-08 Hollis Blanchard <hollis@penguinppc.org>
33440
33441 * include/grub/powerpc/ieee1275/console.h: Do not include
33442 <grub/types.h>. Do not include <grub/symbol.h>. Remove ASM_FILE
33443 ifdef.
33444 (grub_console_cur_color): Remove i386-specific prototype.
33445 (grub_console_real_putchar): Likewise.
33446 (grub_console_checkkey): Likewise.
33447 (grub_console_getkey): Likewise.
33448 (grub_console_getxy): Likewise.
33449 (grub_console_gotoxy): Likewise.
33450 (grub_console_cls): Likewise.
33451 (grub_console_setcursor): Likewise.
33452 * kern/powerpc/ieee1275/init.c: Don't include <grub/console.h>.
33453 Include <grub/machine/console.h>.
33454 * term/ieee1275/ofconsole.c: Likewise.
33455
4ac9bd04 334562005-08-08 Yoshinori K. Okuji <okuji@enbug.org>
33457
33458 * Makefile.in (LIBLZO): New variable.
33459
33460 * configure.ac: Check for LZO version 2.
33461
33462 * util/i386/pc/grub-mkimage.c [HAVE_LZO_LZO1X_H]: Include
33463 lzo/lzo1x.h instead of lzo1x.h.
33464
33465 * conf/i386-pc.rmk (grub_mkimage_LDFLAGS): Use $(LIBLZO) instead
33466 of -llzo.
33467
33468 * util/i386/pc/grub-setup.c (main): Do not free PREFIX
33469 twice. Reported by Vladimir Serbinenko <phcoder@gmail.com>.
33470
33471 * partmap/pc.c (pc_partition_map_probe): Restore P->DATA after
33472 copying the data from PARTITION to P.
33473
f4917dfd 334742005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
33475
33476 * kern/rescue.c (grub_rescue_cmd_rmmod): If the reference count is
33477 negative, unload the module.
33478
33479 * util/i386/pc/grub-setup.c (setup): The name of the PC partition
33480 map is "pc_partition_map" but not "pc".
33481 (usage): Fix the description. The options are --boot-image and
33482 --core-image but not --boot-file or --core-file.
33483 (main): If not specified explicitly, make BOOT_FILE and CORE_FILE
33484 based on DEFAULT_BOOT_FILE and DEFAULT_CORE_FILE with DIR or
33485 DEFAULT_DIRECTORY.
33486
33487 * util/i386/pc/grub-install.in: Do not specify --boot-file or
33488 --core-file. Specify INSTALL_DEVICE as an argument.
33489
33490 * util/console.c: Include config.h.
33491 [HAVE_NCURSeS_CURSES_H]: Include ncurses/curses.h.
33492 [HAVE_NCURSES_H]: Include ncurses.h.
33493 [HAVE_CURSES_H]: Include curses.h.
33494 [!A_NORMAL] (A_NORMAL): Defined as zero.
33495 [!A_STANDOUT] (A_STANDOUT): Likewise.
33496
33497 * conf/i386-pc.rmk (grub_emu_LDFLAGS): Use $(LIBCURSES) instead of
33498 -lncurses.
33499 * conf/powerpc-ieee1275.rmk (grub_emu_LDFLAGS): Likewise.
33500
33501 * configure.ac: Check for curses libraries and headers.
33502
33503 * Makefile.in (LIBCURSES): New variable.
33504
33505 * genmk.rb (Script::rule): Set the executable bits.
33506
33507 * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): The
33508 name of the PC partition map is "pc_partition_map" but not "pc".
33509
0e143073 335102005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
33511
33512 * util/i386/pc/grub-install.in (grub_probefs): New variable.
33513 (modules): Likewise.
33514 (usage): Added descriptions for --modules and --grub-probefs.
33515 Handle --modules and --grub-probefs. Save the arguments in MODULES
33516 and GRUB_PROBEFS, respectively.
33517 Auto-detect a filesystem module against GRUBDIR. If the result is
33518 empty and modules are not specified explicitly, abort the
33519 installation. Add the result to MODULES.
33520
33521 * DISTLIST: Removed boot/powerpc/ieee1275/ieee1275.c,
33522 disk/powerpc/ieee1275/ofdisk.c,
33523 include/grub/powerpc/ieee1275/init.h and
33524 term/powerpc/ieee1275/ofconsole.c.
33525 Added disk/ieee1275/ofdisk.c, kern/ieee1275/of.c and
33526 term/ieee1275/ofconsole.c.
33527
33528 * include/grub/powerpc/ieee1275/console.h: Resurrected.
33529
33530 * COPYING: Upgraded to the latest version. Only the address of the
33531 FSF office has changed.
f19dbdb7 33532
efd6e6d5 335332005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
33534
33535 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
33536 kern/ieee1275.c with kern/ieee1275/of.c.
33537
33538 * kern/ieee1275.c: Moved to ...
33539 * kern/ieee1275/of.c: ... here.
33540
8ceafda2 335412005-08-06 Yoshinori K. Okuji <okuji@enbug.org>
33542
33543 * conf/i386-pc.rmk (kernel_img_HEADERS): Reordered for
fe6b695a 33544 readability.
8ceafda2 33545
33546 * config.guess: Updated to the latest version from gnulib.
33547 * config.sub: Likewise.
33548 * install.sh: Likewise.
33549 * mkinstalldirs: Likewise.
33550
33551 * include/grub/console.h: Removed. This file is arch-specific. Do
33552 not put this in include/grub.
33553
33554 * include/grub/i386/pc/console.h: Resurrected.
33555
33556 * util/console.c: Include grub/machine/console.h instead of
33557 grub/console.h.
33558 * util/grub-emu.c: Likewise.
33559
267f6cd9 335602005-08-04 Marco Gerards <metgerards@student.han.nl>
33561
33562 * kern/term.c (grub_putcode): Use `grub_getwh' instead of
33563 hardcoded value.
f19dbdb7 33564
267f6cd9 33565 From Vincent Pelletier <subdino2004@yahoo.fr>
33566 * include/grub/term.h (GRUB_TERM_WIDTH, GRUB_TERM_HEIGHT):
33567 Redefined to use grub_getwh.
33568 (grub_term): New member named getwh.
33569 (grub_getwh): New prototype.
33570 * kern/term.c (grub_getwh): New function.
33571 * term/i386/pc/console.c (grub_console_getwh): New function.
33572 (grub_console_term): New member `getwh'.
33573 * term/i386/pc/vga.c (grub_vga_getwh): New function.
33574 (grub_vga_term): New member `getwh'.
0b5abe02 33575 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Use
267f6cd9 33576 grub_ssize_t.
33577 (grub_ofconsole_getw): New function.
33578 (grub_ofconsole_init): Use grub_ssize_t and unsigned char.
33579 (grub_ofconsole_term): New field named getwh and new initial
33580 value.
33581
3be7266d 335822005-08-03 Hollis Blanchard <hollis@penguinppc.org>
33583
33584 * include/grub/powerpc/ieee1275/ieee1275.h: Move ...
33585 * include/grub/ieee1275/ieee1275.h: ... to here. All users updated.
33586 Move `abort', `grub_reboot', and `grub_halt' prototypes ...
33587 * include/grub/powerpc/ieee1275/kernel.h: ... to here.
33588 * commands/ieee1275/halt.c: Include <grub/machine/kernel.h> instead
33589 of <grub/machine/ieee1275.h>.
33590 * commands/ieee1275/reboot.c: Likewise.
33591 * boot/powerpc/ieee1275/ieee1275.c: Move ...
33592 * kern/ieee1275.c: ... to here. All users updated. Change all
33593 parameter structs to use new type `grub_ieee1275_cell_t'.
33594 * term/powerpc/ieee1275/ofconsole.c: Move ...
33595 * term/ieee1275/ofconsole.c: ... to here. All users updated.
33596 * disk/powerpc/ieee1275/ofdisk.c: Move ...
33597 * disk/ieee1275/ofdisk.c: ... to here. All users updated.
33598 * boot/powerpc/ieee1275/cmain.c: Change `grub_ieee1275_entry_fn' type
33599 to return int.
33600 * include/grub/i386/pc/console.h: Move to include/grub/console.h.
33601 Remove unused prototypes. All users updated.
33602 * include/grub/powerpc/ieee1275/console.h: Removed.
33603 * include/grub/powerpc/ieee1275/ieee1275.h: Define
33604 `grub_ieee1275_cell_t'.
33605 * kern/powerpc/ieee1275/openfw.c: Include <grub/machine/kernel.h>.
33606 Cast comparisons with -1 to the correct type.
33607 * loader/powerpc/ieee1275/linux.c (kernel_entry_t): Change parameter
33608 type to match `grub_ieee1275_entry_fn'.
33609
8b5f3938 336102005-08-01 Yoshinori K. Okuji <okuji@enbug.org>
33611
33612 * DISTLIST: Added util/i386/pc/grub-probefs.c.
33613
33614 * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-probefs.
33615 (grub_setup_SOURCES): Removed partmap/amiga.c, partmap/apple.c and
33616 partmap/sun.c.
33617 (grub_probefs_SOURCES): New variable.
33618
33619 * util/i386/pc/grub-probefs.c: New file.
33620
33621 * util/i386/pc/grub-setup.c (main): Call
33622 grub_pc_partition_map_init, grub_ufs_init, grub_minix_init,
33623 grub_hfs_init and grub_jfs_init to initialize the system. Call
33624 grub_ufs_fini, grub_minix_fini, grub_hfs_fini, grub_jfs_init and
33625 grub_pc_partition_map_fini to finish the system.
33626
ea409713 336272005-07-31 Yoshinori K. Okuji <okuji@enbug.org>
33628
33629 * loader/i386/pc/multiboot.c (grub_multiboot_is_elf32): New
33630 function.
33631 (grub_multiboot_load_elf32): Likewise.
33632 (grub_multiboot_is_elf64): Likewise.
33633 (grub_multiboot_load_elf64): Likewise.
33634 (grub_multiboot_load_elf): Likewise.
33635 (grub_rescue_cmd_multiboot): Call grub_multiboot_load_elf to load
33636 an ELF32 or ELF64 file.
33637 This is based on a patch from Ruslan Nikolaev <nruslan@mail.com>.
33638
33639 From Serbinenko Vladimir <serbinenko.vova@list.ru>:
33640 * kern/disk.c (grub_print_partinfo): Check if FS->LABEL is not
33641 NULL before calling FS->LABEL.
33642 * fs/fat.c (grub_fat_dir): Initialize DIRNAME to NULL.
33643 * commands/ls.c (grub_ls_list_files): Show labels, if possible.
33644 (grub_ls_list_disks): Check if FS and FS->LABEL are not NULL
33645 before calling FS->LABEL.
33646
141a288b 336472005-07-26 Yoshinori K. Okuji <okuji@enbug.org>
33648
33649 * util/i386/pc/grub-install.in (datadir): New variable.
33650 (libdir): Removed.
33651 (pkgdatadir): New variable.
33652 (pkglibdir): Removed.
33653
0d5f8a54 336542005-07-24 Yoshinori K. Okuji <okuji@enbug.org>
33655
33656 * DISTLIST: Added util/i386/pc/grub-install.in.
33657
33658 * util/i386/pc/grub-install.in: New file.
33659
33660 * conf/i386-pc.rmk (sbin_SCRIPTS): New variable.
33661 (grub_install_SOURCES): Likewise.
33662
33663 * genmk.rb: Added support for scripts.
33664 (Script): New class.
33665 (scripts): New variable.
33666
33667 * Makefile.in (install-local): Install sbin_SCRIPTS by
33668 INSTALL_SCRIPT.
33669 (uninstall): Remove sbin_SCRIPTS.
33670
33671 * util/i386/pc/grub-setup.c (main): If the argument is not a GRUB
33672 device, try to get a GRUB device by
33673 grub_util_biosdisk_get_grub_dev.
33674 Free DEST_DEV.
33675
33676 * util/i386/pc/grub-mkdevicemap.c (usage): Remove a duplicated
33677 description for --device-map.
33678
5f968e1e 336792005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
33680
33681 Change the semantics of variable hooks. They now return strings
33682 instead of error values.
f19dbdb7 33683
5f968e1e 33684 * util/i386/pc/grub-setup.c: Include grub/env.h.
33685 (setup): Use grub_device_set_root instead of grub_env_set.
33686
33687 * kern/rescue.c (grub_rescue_cmd_root): Use grub_env_set and
33688 grub_env_get instead of grub_device_set_root and
33689 grub_device_get_root, respectively.
33690
33691 * kern/main.c (grub_env_write_root): New function.
33692 (grub_set_root_dev): Register grub_env_write_hook for "root". Use
33693 grub_env_set instead of grub_device_set_root.
33694
33695 * kern/env.c (HASHSZ): Reduced to 13, because GRUB does not need
33696 many variables.
33697 (grub_env_set): Set ENV->VALUE to the result of ENV->WRITE_HOOK
33698 rather than calling ENV->WRITE_HOOK afterwards.
33699 (grub_env_get): Return the result of ENV->READ_HOOK rather than
33700 passing a pointer of a pointer.
33701 (grub_register_variable_hook): Change the types of "read_hook" and
33702 "write_hook" to grub_env_read_hook_t and grub_env_write_hook_t,
33703 respectively.
33704 Allocate the default empty string on the heap, because this string
33705 may be freed later.
33706
33707 * kern/device.c: Include grub/env.h.
33708 (grub_device_set_root): Removed.
33709 (grub_device_get_root): Likewise.
33710 (grub_device_open): Use grub_env_get instead of
33711 grub_device_get_root.
33712
33713 * include/grub/env.h (grub_env_read_hook_t): New type.
33714 (grub_env_write_hook_t): Likewise.
33715 (grub_env_var): Change the types of "read_hook" and "write_hook"
33716 to grub_env_read_hook_t and grub_env_write_hook_t, respectively.
33717 (grub_register_variable_hook): Likewise.
33718
33719 * include/grub/device.h (grub_device_set_root): Removed.
33720 (grub_device_set_root): Likewise.
33721
33722 * fs/fat.c (grub_fat_dir): Make a copy of PATH in DIRNAME, and
33723 make sure that DIRNAME terminates with '/', so that
33724 grub_fat_find_dir will fail if PATH is not a directory.
33725
33726 * commands/ls.c (grub_ls_list_files): Remove the qualifier const
33727 from DIRNAME.
33728 Use the qualifier auto for print_files and print_files_long.
33729 If FS->DIR sets GRUB_ERRNO to GRUB_ERR_BAD_FILE_TYPE, try DIRNAME
33730 as a regular file.
33731 Put a newline only if there is no error.
33732 (grub_cmd_ls): Remove grub_ls_print_files, because this is not
33733 used.
33734
896f0afd 337352005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
33736
33737 * kern/partition.c (grub_partition_probe): Initialize PART to
33738 NULL. Otherwise, when no partition map is registered, this returns
33739 a garbage.
33740
b28b81b2 337412005-07-19 Yoshinori K. Okuji <okuji@enbug.org>
33742
33743 * partmap/apple.c (apple_partition_map_iterate): Check if POS
33744 equals GRUB_DISK_SECTOR_SIZE to see if the partition table is
33745 valid.
33746
5f3607e0 337472005-07-18 Yoshinori K. Okuji <okuji@enbug.org>
33748
33749 * commands/ls.c (grub_ls_list_disks): Print the filesystem
33750 information on each device, if it does not have partitions. Print
33751 "Device" instead of "Disk", because this function is not specific
33752 to disk devices.
33753
33754 * normal/main.c (grub_rescue_cmd_normal): Make the variable CONFIG
33755 static to ensure that it is put on the memory rather than a
33756 register.
33757
502c87e8 337582005-07-17 Yoshinori Okuji <okuji@enbug.org>
33759
33760 * commands/cat.c (GRUB_MOD_INIT): Use better documentation.
33761 (grub_cat_init): Likewise.
33762 * loader/i386/pc/chainloader_normal.c (GRUB_MOD_INIT): Likewise.
33763 (options): Likewise.
33764 * commands/configfile.c (GRUB_MOD_INIT): Likewise.
33765 (grub_configfile_init): Likewise.
33766 * font/manager.c (GRUB_MOD_INIT): Likewise.
33767 * commands/help.c (GRUB_MOD_INIT): Likewise.
33768 (grub_help_init): Likewise.
33769 * normal/command.c (grub_command_init): Likewise.
33770 * loader/i386/pc/linux_normal.c (GRUB_MOD_INIT): Likewise.
33771 * disk/loopback.c (grub_loop_init): Likewise.
33772 (GRUB_MOD_INIT): Likewise.
33773 * commands/ls.c (grub_ls_init): Likewise.
33774 (GRUB_MOD_INIT): Likewise.
33775 (options): Likewise.
33776 * commands/boot.c (grub_boot_init): Likewise.
33777 (GRUB_MOD_INIT): Likewise.
33778 * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Likewise.
33779 * commands/i386/pc/reboot.c (grub_reboot_init): Likewise.
33780 (GRUB_MOD_INIT): Likewise.
33781 * commands/cmp.c (grub_cmp_init): Likewise.
33782 (GRUB_MOD_INIT): Likewise.
33783
33784 * normal/arg.c: Use <> instead of "" to include header files.
33785 (SHORT_ARG_HELP): New macro.
33786 (SHORT_ARG_USAGE): Likewise.
33787 (help_options): Specify SHORT_ARG_HELP and SHORT_ARG_USAGE instead
33788 of 'h' and 'u' for help and usage, respectively. Use more GNU-like
33789 descriptions.
33790 (find_short): Check if C is 'h' or 'u' explicitly.
33791 (grub_arg_show_help): Use space characters instead of tabs. Treat
33792 SHORT_ARG_HELP and SHORT_ARG_USAGE exceptionally so that -h and -u
33793 are shown with --help and --usage only if they are not used for
33794 the command itself.
33795 (parse_option): Use SHORT_ARG_HELP and SHORT_ARG_USAGE instead of
33796 'h' and 'u'.
33797
33798 * include/grub/arg.h (struct grub_arg_option): Add the qualifier
33799 const into "longarg". Change the type of "shortarg" to int.
33800
f806d18e 338012005-07-17 Yoshinori Okuji <okuji@enbug.org>
33802
33803 * boot/i386/pc/boot.S (boot_drive_check): New label.
33804
33805 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRIVE_CHECK): New
33806 macro.
33807
33808 * util/i386/pc/grub-setup.c (setup): Added a workaround for BIOSes
33809 which do not pass a boot drive correctly. Copied from GRUB Legacy.
33810
e293232b 338112005-07-17 Yoshinori Okuji <okuji@enbug.org>
33812
33813 * kern/i386/pc/startup.S (gate_a20_try_system_control_port_a):
33814 When turning off Gate A20, skip the check and return immediately,
33815 because this is not fatal usually.
33816
ebedfd00 338172005-07-17 Yoshinori Okuji <okuji@enbug.org>
33818
33819 * conf/i386-pc.rmk (pxeboot_img_LDFLAGS): The text address should
33820 be 0x7C00 instead of 0x8000.
33821
33822 * boot/i386/pc/pxeboot.S: Rewritten.
33823
33824 * kern/i386/pc/startup.S (gate_a20_try_bios): No need to specify
33825 EXT_C.
33826 (gate_a20_check_state): Read a byte from 0x108000. Invert the
33827 result.
33828
654fc59f 338292005-07-16 Yoshinori K. Okuji <okuji@enbug.org>
33830
33831 * kern/i386/pc/startup.S (grub_gate_a20): Rewritten for
33832 robustness. This routine now supports a BIOS call and System
33833 Control Port A to modify the gate A20.
33834
33835 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
33836 Increased to 0x440.
33837
09f9923f 338382005-07-12 Hollis Blanchard <hollis@penguinppc.org>
33839
33840 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): dprintf the
33841 device path and resulting ihandle.
33842 (grub_ofdisk_close): dprintf the ihandle being closed.
33843 (grub_ofdisk_read): dprintf function parameters.
33844 * kern/mm.c (grub_mm_init_region): Likewise.
33845 * loader/powerpc/ieee1275/linux.c: Remove extra whitespace.
33846 (grub_linux_boot): dprintf the Linux entry point, initrd address and
33847 size, and boot arguments.
33848 (grub_rescue_cmd_linux): dprintf each ELF segment's address and size
33849 before loading into memory.
33850 (grub_rescue_cmd_initrd): dprintf the initrd's address and size
33851 before loading into memory.
33852
7ef504d8 338532005-07-12 Yoshinori K. Okuji <okuji@enbug.org>
33854
33855 * kern/mm.c: Added much documentation.
33856 (GRUB_MM_ALIGN_LOG2): When GRUB_CPU_SIZEOF_VOID_P is
33857 8, set to 5 instead of 8.
33858
e0f050c2 338592005-07-10 Yoshinori Okuji <okuji@enbug.org>
33860
33861 * DISTLIST: Added util/i386/pc/grub-mkimage.c.
33862
33863 * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-mkdevicemap.
33864 (grub_mkdevicemap_SOURCES): New variable.
33865
33866 * util/i386/pc/grub-mkdevicemap.c: New file. Mostly copied from
33867 lib/device.c of GRUB Legacy.
33868
7224189a 338692005-07-10 Yoshinori Okuji <okuji@enbug.org>
33870
33871 * commands/ls.c (grub_ls_list_files): Check if *PATH is NUL
33872 instead of PATH is NULL.
33873
68c864eb 338742005-07-09 Vincent Pelletier <subdino2004@yahoo.fr>
33875
33876 * commands/cmp.c (BUFFER_SIZE): New macro.
33877 (grub_cmd_cmp): Close the right file at the right time. Compare
33878 only data just read. Don't report files of different size as
33879 identical. Dynamically allocate buffers. Move variable
33880 declarations at the beginning of function.
33881
e6f3e614 338822005-07-09 Yoshinori Okuji <okuji@enbug.org>
33883
33884 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): The return value was
33885 reverse.
33886
f8f1559a 338872004-07-04 Vincent Pelletier <subdino2004@yahoo.fr>
33888
33889 * normal/cmdline.c (grub_cmdline_get): Don't fallback on ctrl-d
33890 when backspace is pressed at beginning of line.
33891
39c9d41d 338922005-07-03 Yoshinori Okuji <okuji@enbug.org>
33893
33894 * DISTLIST: Added genfslist.sh.
33895
33896 * normal/main.c (fs_module_list): New variable.
33897 (autoload_fs_module): New function.
33898 (read_fs_list): Likewise.
33899 (grub_normal_execute): Call read_fs_list.
33900
33901 * kern/fs.c (grub_fs_autoload_hook): New variable.
33902 (grub_fs_probe): Added support for auto-loading.
33903
33904 * include/grub/normal.h (struct grub_fs_module_list): New struct.
33905 (grub_fs_module_list_t): New type.
33906
33907 * include/grub/fs.h (grub_fs_autoload_hook_t): New type.
33908 (grub_fs_autoload_hook): New prototype.
33909
33910 * genfslist.sh: New file.
f19dbdb7 33911
39c9d41d 33912 * genmk.rb: Added a rule to generate a filesystem list.
33913
121c1d83 339142005-06-30 Marco Gerards <metgerards@student.han.nl>
33915
33916 * configure.ac: Fix the test for cross-compiling.
33917
33918 * genmk.rb (Program): Use `$(CC)' instead of `$(BUILD_CC)'. Don't
33919 define GRUB_UTIL anymore.
33920
33921 * util/powerpc/ieee1275/grub-mkimage.c (load_note): Endian fixes
33922 so this function works on other systems than just big endian.
33923 (load_modules): Likewise.
33924 (add_segments): Likewise.
33925
e75d76e1 339262005-06-23 Hollis Blanchard <hollis@penguinppc.org>
33927
33928 * kern/misc.c (grub_vsprintf): Add `longfmt'. If format string
33929 contains `l' modifier, get a long from va_arg().
33930
50b5a0a7 339312005-06-23 Yoshinori K. Okuji <okuji@enbug.org>
33932
33933 * kern/mm.c (grub_free): If the next free block which is being
33934 merged is the first free block, set the first block to the block
33935 being freed.
33936 Reported by Vincent Guffens <guffens@inma.ucl.ac.be>.
33937
89371b20 339382005-05-08 Hollis Blanchard <hollis@penguinppc.org>
33939
33940 * boot/powerpc/ieee1275/cmain.c (cmain): Initialize
33941 `grub_ieee1275_chosen'.
33942
168d6e58 339432005-05-08 Hollis Blanchard <hollis@penguinppc.org>
33944
33945 * boot/powerpc/ieee1275/cmain.c (module_info): Remove definition.
33946 (grub_ieee1275_chosen): New variable.
33947 (cmain): Initialize and use `grub_ieee1275_chosen' instead of
33948 `chosen'.
33949 * boot/powerpc/ieee1275/crt0.S (init_stack): Remove stack space.
33950 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
33951 Rename first argument to `phandle' for consistency.
33952 (grub_ieee1275_get_property_length): Likewise.
33953 (grub_ieee1275_next_property): Likewise. Change type of first argument
33954 to grub_ieee1275_phandle_t.
33955 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_entry_fn):
33956 Move export next to declaration.
33957 (grub_ieee1275_chosen): New variable.
33958 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MODULE_BASE):
33959 Correct cosmetic typo.
33960 * kern/powerpc/ieee1275/init.c (grub_set_prefix): Use
33961 `grub_ieee1275_chosen'.
33962 * kern/powerpc/ieee1275/openfw.c (grub_map): Likewise.
33963 * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Likewise.
33964 (grub_rescue_cmd_linux): Set `initrd_addr' to 0.
33965 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_refresh): Use
33966 `grub_ieee1275_chosen'.
33967
ca5baa3f 339682005-05-10 Hollis Blanchard <hollis@penguinppc.org>
33969
33970 * boot/powerpc/ieee1275/cmain.c (cmain): Remove code to parse
33971 /chosen/bootargs.
33972 * kern/powerpc/ieee1275/init.c (grub_machine_init): Parse
33973 /chosen/bootargs as "variable=value" pairs.
33974
708b345f 339752005-05-08 Vincent Pelletier <subdino2004@yahoo.fr>
33976
33977 * include/grub/misc.h (grub_dprintf): New macro.
33978 (grub_real_dprintf): New prototype.
33979 (grub_strword): Likewise.
33980 (grub_iswordseparator): Likewise.
33981 * kern/misc.c (grub_real_dprintf): New function.
33982 (grub_strword): Likewise.
33983 (grub_iswordseparator): Likewise.
33984
f4c5e67c 339852005-04-30 Hollis Blanchard <hollis@penguinppc.org>
33986
33987 * boot/powerpc/ieee1275/cmain.c: Don't include grub/machine/init.h.
33988 (roundup): Remove macro.
33989 (grub_ieee1275_flags): Make static.
33990 (grub_ieee1275_realmode): Remove.
33991 (grub_ieee1275_test_flag): New function.
33992 (grub_ieee1275_set_flag): Likewise.
33993 (find_options): Rename to `grub_ieee1275_find_options'; update
33994 callers. Set GRUB_IEEE1275_FLAG_REAL_MODE and
33995 GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS.
33996 (cmain): New prototype.
33997 (cmain): Use `grub_ieee1275_set_flag' instead of accessing
33998 `grub_ieee1275_flags' directly.
33999 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Remove
34000 machine/biosdisk.h.
34001 * disk/powerpc/ieee1275/ofdisk.c: Include grub/machine/ofdisk.h.
34002 Don't include grub/machine/init.h.
34003 (grub_ofdisk_open): Call `grub_ieee1275_test_flag'.
34004 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
34005 Remove prototype.
34006 (grub_ieee1275_realmode): Likewise.
34007 (grub_ieee1275_flag): New enum.
34008 (grub_ieee1275_test_flag): New prototype.
34009 (grub_ieee1275_set_flag): New prototype.
34010 * include/grub/powerpc/ieee1275/init.h: Remove file.
34011 * include/grub/powerpc/ieee1275/ofdisk.h: New file.
34012 * kern/powerpc/ieee1275/init.c: Don't include grub/machine/init.h.
34013 Include grub/machine/console.h. Include grub/machine/ofdisk.h.
34014 (grub_machine_fini): Don't call `grub_ieee1275_release'. Remove
34015 comment.
34016 * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Call
34017 `grub_ieee1275_test_flag'.
34018 (grub_ieee1275_encode_devname): Likewise.
34019
ed16607e 340202005-04-21 Hollis Blanchard <hollis@penguinppc.org>
34021
34022 * include/grub/powerpc/ieee1275/ieee1275.h
34023 (grub_ieee1275_encode_devname): New prototype.
34024 (grub_ieee1275_get_filename): Likewise.
34025 * kern/powerpc/ieee1275/init.c (grub_translate_ieee175_path): New
34026 function.
34027 (grub_set_prefix): Likewise.
34028 (grub_machine_init): Call grub_set_prefix.
34029 * kern/powerpc/ieee1275/openfw.c: Fix typos.
34030 (grub_parse_type): New enum.
34031 (grub_ieee1275_get_devargs): New function.
34032 (grub_ieee1275_get_devname): Likewise.
34033 (grub_ieee1275_parse_args): Likewise.
34034 (grub_ieee1275_get_filename): Likewise.
34035 (grub_ieee1275_encode_devname): Likewise.
34036
be369920 340372005-03-30 Marco Gerards <metgerards@student.han.nl>
34038
34039 * kern/powerpc/ieee1275/init.c (grub_machine_fini): Don't call
34040 `grub_loader_unset'.
34041
a5ce3a4a 340422005-03-26 Hollis Blanchard <hollis@penguinppc.org>
34043
34044 * commands/ieee1275/halt.c (grub_cmd_halt): Call grub_halt
34045 instead of grub_ieee1275_interpret.
34046 (grub_halt_init): New function.
34047 (grub_halt_fini): Likewise.
34048 (GRUB_MOD_INIT): Correct message grammar.
34049 * commands/ieee1275/reboot.c (grub_cmd_reboot): Call grub_reboot
34050 instead of grub_ieee1275_interpret.
34051 (grub_reboot_init): New function.
34052 (grub_reboot_fini): Likewise.
34053 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace
34054 commands/i386/pc/halt.c, commands/i386/pc/reboot.c, and
34055 util/i386/pc/misc.c with commands/ieee1275/halt.c,
34056 commands/ieee1275/reboot.c, and util/powerpc/ieee1275/misc.c.
34057 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_fini): New
34058 function.
34059 * include/grub/powerpc/ieee1275/console.h (grub_console_fini):
34060 Add prototype.
34061 * include/grub/powerpc/ieee1275/ieee1275.h (grub_reboot): Add
34062 prototype.
34063 (grub_halt): Likewise.
34064 * include/grub/powerpc/ieee1275/init.h: Remove inaccurate comment.
34065 (cmain): Remove __attribute__((unused)).
34066 * kern/powerpc/ieee1275/init.c (grub_heap_start): New variable.
34067 (grub_heap_len): Likewise.
34068 (grub_machine_fini): New function.
34069 * kern/powerpc/ieee1275/openfw.c (grub_reboot): New function.
34070 (grub_halt): Likewise.
34071 * term/powerpc/ieee1275/ofconsole.c (grub_console_fini): New
34072 function.
34073 * util/powerpc/ieee1275/misc.c: New file.
34074
0058f771 340752005-03-19 Yoshinori K. Okuji <okuji@enbug.org>
34076
34077 * DISTLIST: New file.
34078 * gendistlist.sh: Likewise.
f19dbdb7 34079
0058f771 34080 * Makefile.in (COMMON_DISTFILES): Removed.
34081 (BOOT_DISTFILES): Likewise.
34082 (CONF_DISTFILES): Likewise.
34083 (DISK_DISTFILES): Likewise.
34084 (FS_DISTFILES): Likewise.
34085 (INCLUDE_DISTFILES): Likewise.
34086 (KERN_DISTFILES): Likewise.
34087 (LOADER_DISTFILES): Likewise.
34088 (TERM_DISTFILES): Likewise.
34089 (UTIL_DISTFILES): Likewise.
34090 (DISTFILES): Likewise.
34091 (uninstall): Uninstall files in $(pkgdata_DATA).
34092 (DISTLIST): New target.
34093 (distdir): Use the contents of the file DISTLIST to get a list of
34094 distributed files.
34095
46b3b8a5 340962005-03-18 Yoshinori K. Okuji <okuji@enbug.org>
34097
34098 * fs/fat.c (grub_fat_mount): Ignore the 3rd bit of a media
34099 descriptor. This is ported from GRUB Legacy.
34100
34101 * gencmdlist.sh: Added an extra semicolon to make it work with
34102 old sed versions. Reported by Robert Bihlmeyer
34103 <robbe@orcus.priv.at>.
34104
5822ff87 341052005-03-08 Yoshinori Okuji <okuji@enbug.org>
34106
34107 Automatic loading of commands is supported.
f19dbdb7 34108
5822ff87 34109 * normal/main.c (read_command_list): New function.
34110 (grub_normal_execute): Call read_command_list.
34111
34112 * normal/command.c (grub_register_command): Return zero or CMD.
34113 Allocate CMD->NAME from the heap.
34114 Initialize CMD->MODULE_NAME to zero.
34115 Find the same name as well. If the same command is found and it is
34116 a dummy command, overwrite members. If it is not a dummy command,
34117 return zero.
34118 (grub_unregister_command): Free Q->NAME and Q->MODULE_NAME.
34119 (grub_command_find): If a dummy command is found, load a module
34120 and retry to find a command only once.
34121
34122 * normal/cmdline.c (grub_tab_complete): Call grub_command_find to
34123 make sure that each command is loaded.
34124
34125 * include/grub/normal.h (GRUB_COMMAND_FLAG_NOT_LOADED): New
34126 macro.
34127 (struct grub_command): Remove const from the member `name'.
34128 Add a new member `module_name'.
34129 (grub_register_command): Return grub_command_t.
34130
34131 * commands/help.c (grub_cmd_help): Call grub_command_find to make
34132 sure that each command is loaded.
34133
34134 * genmk.rb (PModule::rule): Specify a module name without the
34135 suffix ".mod" to gencmdlist.sh.
34136
7b1f4b57 341372005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
34138
34139 * gencmdlist.sh: New file.
f19dbdb7 34140
7b1f4b57 34141 * genmk.rb (PModule::rule): Generate a rule for a command list.
34142 Clean command.lst.
34143 Generate command.lst from $(COMMANDFILES).
34144
34145 * Makefile.in (COMMON_DISTFILES): Added gencmdlist.sh.
34146 (DATA): Added $(pkgdata_DATA).
34147 (install-local): Install files in $(pkgdata_DATA).
34148
062aaf39 341492005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
34150
34151 * term/i386/pc/vga.c (debug_command): Removed.
34152 (GRUB_MOD_INIT): Do not register the command "debug".
34153
34154 From Hollis Blanchard:
34155 * commands/configfile.c: New file.
34156 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
34157 commands/configfile.c.
34158 (pkgdata_MODULES): Added configfile.mod.
34159 (configfile_mod_SOURCES): New variable.
34160 (configfile_mod_CFLAGS): Likewise.
34161 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
34162 commands/configfile.c.
34163 (pkgdata_MODULES): Added configfile.mod.
34164 (configfile_mod_SOURCES): New variable.
34165 (configfile_mod_CFLAGS): Likewise.
34166 * util/grub-emu.c (main): Call grub_configfile_init and
34167 grub_configfile_fini.
34168 * include/grub/normal.h [GRUB_UTIL] (grub_configfile_init): New
34169 prototype.
34170 [GRUB_UTIL] (grub_configfile_fini): Likewise.
f19dbdb7 34171
cee01aa6 341722005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
34173
34174 * normal/arg.c (grub_arg_show_help): Do not show the bug report
34175 address.
34176
34177 * commands/help.c (grub_cmd_help): Do not print newlines after
34178 the last command in print_command_help.
34179
93f3a1d8 341802005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
34181
34182 * commands/default.h: New file.
34183 * commands/timeout.h: Likewise.
34184 * normal/context.c: Likewise.
f19dbdb7 34185
93f3a1d8 34186 * util/misc.c: Do not include sys/times.h.
34187 Include sys/time.h and grub/machine/time.h.
34188 (grub_get_rtc): Rewritten with gettimeofday.
34189
34190 * util/grub-emu.c (main): Call grub_default_init and
34191 grub_timeout_init before grub_normal_init, and call
34192 grub_timeout_fini and grub_default_fini after grub_main.
34193
34194 * util/console.c (grub_ncurses_checkkey): Return the read
34195 character or -1.
34196
34197 * normal/menu.c (run_menu): Set MENU->TIMEOUT to -1 once it
34198 timeouts.
34199
34200 * normal/main.c (read_config_file): Push MENU. If this fails,
34201 print an error and wait for a user input.
34202 Print an error only if GRUB_ERRNO is not GRUB_ERR_NONE.
34203 If a menu is empty or an error occurs, pop MENU.
34204 (grub_normal_execute): Pop and free MENU after grub_menu_run
34205 returns.
34206
34207 * kern/loader.c (grub_loader_boot): Call grub_machine_fini.
34208
34209 * include/grub/powerpc/ieee1275/time.h [GRUB_UTIL]: Do not
34210 include time.h.
34211 [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
34212 without GRUB_UTIL.
34213 * include/grub/i386/pc/time.h [GRUB_UTIL]: Do not include
34214 time.h.
34215 [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
34216 without GRUB_UTIL.
34217
34218 * include/grub/normal.h (struct grub_menu_list): New struct.
34219 (grub_menu_list_t): New type.
34220 (struct grub_context): New struct.
34221 (grub_context_t): New type.
34222 (grub_register_command): Got rid of EXPORT_FUNC.
34223 (grub_unregister_command): Likewise.
34224 (grub_context_get): New prototype.
34225 (grub_context_get_current_menu): Likewise.
34226 (grub_context_push_menu): Likewise.
34227 (grub_context_pop_menu): Likewise.
34228 [GRUB_UTIL] (grub_default_init): Likewise.
34229 [GRUB_UTIL] (grub_default_fini): Likewise.
34230 [GRUB_UTIL] (grub_timeout_init): Likewise.
34231 [GRUB_UTIL] (grub_timeout_fini): Likewise.
34232
34233 * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/default.c,
34234 commands/timeout.c and normal/context.c.
34235 (pkgdata_MODULES): Added default.mod and timeout.mod.
34236 (normal_mod_SOURCES): Added normal/context.c.
34237 (default_mod_SOURCES): New variable.
34238 (default_mod_CFLAGS): Likewise.
34239 (timeout_mod_SOURCES): Likewise.
34240 (timeout_mod_CFLAGS): Likewise.
34241 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Copied from
34242 conf/i386-pc.rmk.
34243 (pkgdata_MODULES): Added default.mod and timeout.mod.
34244 (normal_mod_SOURCES): Added normal/context.c.
34245 (default_mod_SOURCES): New variable.
34246 (default_mod_CFLAGS): Likewise.
34247 (timeout_mod_SOURCES): Likewise.
34248 (timeout_mod_CFLAGS): Likewise.
34249
34250 * Makefile.in (all-local): Added $(MKFILES).
34251
4ed2e1dd 342522005-02-21 Vincent Pelletier <subdino2004@yahoo.fr>
34253
34254 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `partmap/sun.c'.
34255 (grub_emu_SOURCES): Likewise.
34256 (pkgdata_MODULES): Add `sun.mod'.
34257 (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
34258 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
34259 `partmap/sun.c'.
34260 (pkgdata_MODULES): Add `sun.mod'.
34261 (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
34262 * include/grub/partition.h (grub_sun_partition_map_init): New
34263 prototype.
34264 (grub_sun_partition_map_fini): Likewise.
34265 * partmap/sun.c: New file.
34266 * util/grub-emu.c (main): Initialize and de-initialize the sun
34267 partitionmap support.
34268
4d4e372e 342692005-02-19 Yoshinori K. Okuji <okuji@enbug.org>
34270
34271 This implements an Emacs-like menu entry editor.
f19dbdb7 34272
4d4e372e 34273 * normal/menu_entry.c: New file.
f19dbdb7 34274
4d4e372e 34275 * util/console.c (grub_ncurses_putchar): Translate some Unicode
34276 characters to ASCII.
34277 (saved_char): New variable.
34278 (grub_ncurses_checkkey): Rewritten completely.
34279 (grub_ncurses_getkey): Likewise.
34280 (grub_ncurses_init): Call raw instead of cbreak.
34281
34282 * normal/menu.c (print_entry): Do not put a space.
34283 (init_page): Renamed to ...
34284 (grub_menu_init_page): ... this. All callers changed.
34285 (edit_menu_entry): Removed.
34286 (run_menu): Call grub_menu_entry_run instead of edit_menu_entry.
34287
34288 * normal/cmdline.c (grub_cmdline_run): Call grub_setcursor.
34289
34290 * kern/misc.c (grub_vprintf): Call grub_refresh.
34291
34292 * normal/menu.c (DISP_LEFT): Renamed to ...
34293 * include/grub/term.h (GRUB_TERM_DISP_LEFT): ... this.
34294 * normal/menu.c (DISP_UP): Renamed to ...
34295 * include/grub/term.h (GRUB_TERM_DISP_UP): ... this.
34296 * normal/menu.c (DISP_RIGHT): Renamed to ...
34297 * include/grub/term.h (GRUB_TERM_DISP_RIGHT): ... this.
34298 * normal/menu.c (DISP_DOWN): Renamed to ...
34299 * include/grub/term.h (GRUB_TERM_DISP_DOWN): ... this.
34300 * normal/menu.c (DISP_HLINE): Renamed to ...
34301 * include/grub/term.h (GRUB_TERM_DISP_HLINE): ... this.
34302 * normal/menu.c (DISP_VLINE): Renamed to ...
34303 * include/grub/term.h (GRUB_TERM_DISP_VLINE): ... this.
34304 * normal/menu.c (DISP_UL): Renamed to ...
34305 * include/grub/term.h (GRUB_TERM_DISP_UL): ... this.
34306 * normal/menu.c (DISP_UR): Renamed to ...
34307 * include/grub/term.h (GRUB_TERM_DISP_UR): ... this.
34308 * normal/menu.c (DISP_LL): Renamed to ...
34309 * include/grub/term.h (GRUB_TERM_DISP_LL): ... this.
34310 * normal/menu.c (DISP_LR): Renamed to ...
34311 * include/grub/term.h (GRUB_TERM_DISP_LR): ... this.
34312 * normal/menu.c (TERM_WIDTH): Renamed to ...
34313 * include/grub/term.h (GRUB_TERM_WIDTH): ... this.
34314 * normal/menu.c (TERM_HEIGHT): Renamed to ...
34315 * include/grub/term.h (GRUB_TERM_HEIGHT): ... this.
34316 * normal/menu.c (TERM_INFO_HEIGHT): Renamed to ...
34317 * include/grub/term.h (GRUB_TERM_INFO_HEIGHT): ... this.
34318 * normal/menu.c (TERM_MARGIN): Renamed to ...
34319 * include/grub/term.h (GRUB_TERM_MARGIN): ... this.
34320 * normal/menu.c (TERM_SCROLL_WIDTH): Renamed to ...
34321 * include/grub/term.h (GRUB_TERM_SCROLL_WIDTH): ... this.
34322 * normal/menu.c (TERM_TOP_BORDER_Y): Renamed to ...
34323 * include/grub/term.h (GRUB_TERM_TOP_BORDER_Y): ... this.
34324 * normal/menu.c (TERM_LEFT_BORDER_X): Renamed to ...
34325 * include/grub/term.h (GRUB_TERM_LEFT_BORDER_X): ... this.
34326 * normal/menu.c (TERM_BORDER_WIDTH): Renamed to ...
34327 * include/grub/term.h (GRUB_TERM_BORDER_WIDTH): ... this.
34328 * normal/menu.c (TERM_MESSAGE_HEIGHT): Renamed to ...
34329 * include/grub/term.h (GRUB_TERM_MESSAGE_HEIGHT): ... this.
34330 * normal/menu.c (TERM_BORDER_HEIGHT): Renamed to ...
34331 * include/grub/term.h (GRUB_TERM_BORDER_HEIGHT): ... this.
34332 * normal/menu.c (TERM_NUM_ENTRIES): Renamed to ...
34333 * include/grub/term.h (GRUB_TERM_NUM_ENTRIES): ... this.
34334 * normal/menu.c (TERM_FIRST_ENTRY_Y): Renamed to ...
34335 * include/grub/term.h (GRUB_TERM_FIRST_ENTRY_Y): ... this.
34336 * normal/menu.c (TERM_ENTRY_WIDTH): Renamed to ...
34337 * include/grub/term.h (GRUB_TERM_ENTRY_WIDTH): ... this.
34338 * normal/menu.c (TERM_CURSOR_X): Renamed to ...
34339 * include/grub/term.h (GRUB_TERM_CURSOR_X): ... this.
34340 All callers changed.
34341
34342 * include/grub/normal.h: New prototype.
34343
34344 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
34345 normal/menu_entry.c.
34346 (normal_mod_SOURCES): Likewise.
34347 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
34348 (normal_mod_SOURCES): Likewise.
34349
e6b92c8a 343502005-02-15 Yoshinori K. Okuji <okuji@enbug.org>
34351
34352 * include/grub/normal.h (grub_halt_init): New prototype.
34353 (grub_halt_fini): Likewise.
34354 (grub_reboot_init): Likewise.
34355 (grub_reboot_fini): Likewise.
34356
34357 * util/grub-emu.c: Include signal.h.
34358 (main_env): New global variable.
34359 (grub_machine_init): Ignore SIGINT. Otherwise grub-emu cannot
34360 catch C-c.
34361 (grub_machine_fini): New function.
34362 (main): Call grub_halt_init and grub_reboot_init before
34363 grub_main, and grub_reboot_fini and grub_halt_fini after it.
34364 Call setjmp with MAIN_ENV to go back afterwards.
34365 Call grub_machine_fini right before return.
34366
34367 * include/grub/util/misc.h: Include setjmp.h.
34368 (main_env): New prototype.
34369
34370 * include/grub/kernel.h (grub_machine_fini): New prototype.
34371 * include/grub/i386/pc/biosdisk.h (grub_biosdisk_fini): Likewise.
34372 * include/grub/i386/pc/console.h (grub_console_fini): Likewise.
34373
34374 * disk/i386/pc/biosdisk.c (grub_biosdisk_fini): New function.
34375 * kern/i386/pc/init.c (grub_machine_fini): Likewise.
34376 * term/i386/pc/console.c (grub_console_fini): Likewise.
f19dbdb7 34377
e6b92c8a 34378 * util/i386/pc/misc.c: New file.
f19dbdb7 34379
e6b92c8a 34380 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
34381 util/i386/pc/misc.c, commands/i386/pc/halt.c and
34382 commands/i386/pc/reboot.c.
34383
c642636f 343842005-02-14 Guillem Jover <guillem@hadrons.org>
34385
34386 * include/grub/dl.h (grub_dl_check_header): New prototype.
34387 (grub_arch_dl_check_header): Change return type to grub_err_t,
34388 remove size parameter and export function. Update all callers.
34389 * kern/dl.c (grub_dl_check_header): New function.
34390 (grub_dl_load_core): Use `grub_dl_check_header' instead of
34391 `grub_arch_dl_check_header'. Check ELF type. Check if sections
34392 are inside the core.
34393 * kern/i386/dl.c (grub_arch_dl_check_header): Remove arch
34394 independent ELF header checks.
34395 * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
34396 * loader/i386/pc/multiboot.c (grub_rescue_cmd_multiboot): Use
34397 `grub_dl_check_header' instead of explicit checks. Check for the
34398 ELF type.
34399 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Use
34400 `grub_dl_check_header' instead of explicit checks. Remove arch
34401 specific ELF header checks.
34402
e6b92c8a 34403 * util/grub-emu.c (grub_arch_dl_check_header): Remove the
34404 argument SIZE.
34405
5eabe94b 344062005-02-13 Hollis Blanchard <hollis@penguinppc.org>
34407
34408 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add ls.mod.
34409 * include/grub/powerpc/libgcc.h (__mulsf3): New prototype.
34410
1b14a681 344112005-02-12 Hollis Blanchard <hollis@penguinppc.org>
34412
34413 * kern/partition.c (grub_partition_probe): Clear `grub_errno' and
f19dbdb7 34414 return 0 if `grub_errno' is GRUB_ERR_BAD_PART_TABLE.
1b14a681 34415 (part_map_iterate): Clear `grub_errno' and return 0 if
f19dbdb7 34416 `partmap->iterate' returns GRUB_ERR_BAD_PART_TABLE.
1b14a681 34417 * partmap/amiga.c (amiga_partition_map_iterate): Return
34418 GRUB_ERR_BAD_PART_TABLE if no partition map magic is found.
34419 * partmap/apple.c (apple_partition_map_iterate): Likewise.
34420
aca108aa 344212005-02-01 Guillem Jover <guillem@hadrons.org>
34422
34423 * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Fix module
34424 help info.
34425
c9f9c556 344262005-01-31 Marco Gerards <metgerards@student.han.nl>
34427
34428 * include/grub/powerpc/ieee1275/loader.h (grub_load_linux):
34429 Removed prototype.
34430 (grub_rescue_cmd_linux): New prototype.
34431 (grub_rescue_cmd_initrd): Likewise.
34432 * powerpc/ieee1275/linux.c (grub_linux_boot): Remove struct
34433 `bi_rec'.
34434 (grub_linux_release_mem): Release the memory for the initrd.
34435 (grub_load_linux): Renamed from this...
34436 (grub_rescue_cmd_linux): ...To this. Changed all callers.
34437 Changed `entry' not to be static. Loop over memory regions to
34438 find another one when the default fails.
34439 (grub_rescue_cmd_initrd): New function.
34440 (grub_linux_init): Remove function.
34441 (grub_linux_fini): Likewise.
34442 (GRUB_MOD_INIT): Register `initrd'.
34443 (GRUB_MOD_FINI): Unregister `initrd'.
34444 * powerpc/ieee1275/linux_normal.c (grub_linux_normal_init):
34445 Function removed.
34446 (grub_linux_normal_fini): Likewise.
34447 (GRUB_MOD_INIT): Register `initrd'.
34448 (GRUB_MOD_FINI): Unregister `initrd'.
34449
990cf3aa 344502005-01-31 Marco Gerards <metgerards@student.han.nl>
34451
34452 * commands/help.c: New file.
34453 * normal/arg.c (show_help): Renamed to...
34454 (grub_arg_show_help): ... this.
34455 * commands/i386/pc/halt.c: New file.
34456 * commands/i386/pc/reboot.c: Likewise.
34457 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/help.c'.
34458 (pkgdata_MODULES): Add `reboot.mod', `halt.mod' and `help.mod'.
34459 (help_mod_SOURCES, help_mod_CFLAGS, reboot_mod_SOURCES)
34460 (reboot_mod_CFLAGS, halt_mod_SOURCES, halt_mod_CFLAGS): New
34461 variables.
34462 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
34463 `commands/help.c'.
34464 (pkgdata_MODULES): Add `help.mod'.
34465 (help_mod_SOURCES, help_mod_CFLAGS): New variables.
34466 * grub/i386/pc/init.h (grub_reboot): New prototype.
34467 (grub_halt): Likewise.
34468 * include/grub/normal.h (grub_arg_show_help): New prototype.
34469 (grub_help_init): Likewise.
34470 (grub_help_fini): Likewise.
34471 * util/grub-emu.c (main): Initialize and deinitialize the help
34472 command.
34473
34474 * normal/cmdline.c (grub_cmdline_get): Doc fix.
34475
34476 * normal/command.c (grub_command_init): Fixed the description of
34477 the `set' and `unset' commands.
34478
344792005-01-31 Marco Gerards <metgerards@student.han.nl>
0f79cdc1 34480
34481 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_interpret): New
34482 function.
34483 * commands/ieee1275/halt.c: New file.
34484 * commands/ieee1275/reboot.c: Likewise.
34485 * commands/ieee1275/suspend.c (grub_cmd_suspend): Use
34486 `__attribute__ ((unused))'. Some GCS related fixed.
34487 (grub_suspend_init) [GRUB_UTIL]: Function removed.
34488 (grub_suspend_fini): Likewise.
34489 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add `reboot.mod'
34490 and `halt.mod'.
34491 (reboot_mod_SOURCES, reboot_mod_CFLAGS, halt_mod_SOURCES)
34492 (halt_mod_CFLAGS): New variables.
34493 * include/grub/powerpc/ieee1275/ieee1275.h
34494 (grub_ieee1275_interpret): New prototype.
34495
1ab09cc7 344962005-01-29 Yoshinori K. Okuji <okuji@enbug.org>
34497
34498 * include/grub/misc.h (memmove): New prototype.
34499 (memcpy): Likewise.
34500
8b8cbdb2 345012005-01-22 Hollis Blanchard <hollis@penguinppc.org>
34502
34503 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Don't initialize
34504 `devpath' to 0. Use `name' instead of `devpath' with `grub_strndup'.
34505
e3741a27 345062005-01-22 Marco Gerards <metgerards@student.han.nl>
34507
34508 * kern/misc.c (grub_strndup): Function rewritten.
34509
776bd780 345102005-01-22 Vincent Pelletier <subdino2004@yahoo.fr>
34511
34512 * normal/menu.c (TERM_WIDTH): Macro redefined.
34513 (TERM_TOP_BORDER_Y): Likewise.
34514 (draw_border): Replaced while-loop by a for-loop. Make the number
34515 of lines consistent with the number of lines displayed in
34516 print_entries. Added a margin below the rectangle.
34517 (print_entry): Make the entry fit in the rectangle.
34518 (print_entries): Display the scroll arrows next to the right
34519 border.
34520
78026bce 345212005-01-21 Marco Gerards <metgerards@student.han.nl>
34522
34523 * fs/minix.c (grub_minix_find_file): Reserve more space for
34524 `fpath' so the \0 can be stored. Use `grub_strcpy' instead of
34525 `grub_strncpy' to copy `path' into it.
34526
67bbaf0f 345272005-01-21 Marco Gerards <metgerards@student.han.nl>
34528
34529 Add the loopback device, a device via which files can be accessed
34530 as devices.
f19dbdb7 34531
67bbaf0f 34532 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/loopback.c'.
34533 (pkgdata_MODULES): Add loopback.mod.
34534 (loopback_mod_SOURCES): New variable.
34535 (loopback_mod_CFLAGS): Likewise.
34536 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
34537 `disk/loopback.c'.
34538 (pkgdata_MODULES): Add loopback.mod.
34539 (loopback_mod_SOURCES): New variable.
34540 (loopback_mod_CFLAGS): Likewise.
34541 * disk/loopback.c: new file.
34542 * include/grub/normal.h (grub_loop_init): New prototype.
34543 (grub_loop_fini): New prototype.
34544 * util/grub-emu.c (main): Initialize and de-initialize loopback
34545 support.
34546 * include/grub/disk.h (grub_disk_dev_id): Add
34547 `GRUB_DISK_DEVICE_LOOPBACK_ID'.
34548
6f1c18bd 345492005-01-20 Hollis Blanchard <hollis@penguinppc.org>
34550
34551 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_enter): New
34552 function.
34553 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add suspend.mod.
34554 (suspend_mod_SOURCES): New variable.
34555 (suspend_mod_CFLAGS): Likewise.
34556 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_enter):
34557 New prototype.
34558 * commands/ieee1275/suspend.c: New file.
34559
b38551da 345602005-01-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
34561
34562 * include/grub/dl.h (GRUB_MOD_INIT): Changed `__attribute__
f19dbdb7 34563 ((unused))' to `__attribute__ ((used))'.
b38551da 34564 (GRUB_MOD_FINI): Likewise.
34565 * kern/dl.c (grub_dl_load_file): Fix null pointer dereference.
34566 * genmk.rb (PModule): Assign space to common symbols when linking
34567 modules.
34568
777aff39 345692005-01-20 Marco Gerards <metgerards@student.han.nl>
34570
34571 * include/grub/mm.h (grub_mm_init_region): Change the type of the
34572 `unsigned' arguments to `grub_size_t'.
34573 (grub_malloc): Likewise.
34574 (grub_realloc): Likewise.
34575 (grub_memalign): Likewise.
34576 * kern/i386/dl.c (grub_arch_dl_check_header): Likewise.
34577 * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
34578 * util/misc.c (grub_malloc): Likewise.
34579 (grub_realloc): Likewise.
34580 * kern/mm.c (get_header_from_pointer): Change the casts to
34581 `unsigned' into a cast to `grub_size_t'.
34582
34583 * fs/fshelp.c (grub_fshelp_find_file): The `oldnode' should always
34584 point to `currnode' when `currnode' is changed.
34585
34586 * util/grub-emu.c (main): Initialize `progname'. Reported by Nico
34587 Schottelius <nico-linux@schottelius.org>.
34588
d0ff18e1 345892005-01-09 Hollis Blanchard <hollis@penguinppc.org>
34590
34591 * util/powerpc/ieee1275/grub-mkimage.c: Include <string.h>.
34592 (note_path): Remove variable.
34593 (GRUB_IEEE1275_NOTE_NAME): New macro.
34594 (GRUB_IEEE1275_NOTE_TYPE): Likewise.
34595 (grub_ieee1275_note_hdr): New structure.
34596 (grub_ieee1275_note_desc): Likewise.
34597 (grub_ieee1275_note): Likewise.
34598 (load_note): Remove `dir' argument. All callers updated. Remove
34599 `note_img' and `path'. Do not load a file from `note_path'.
34600 Initialize a struct grub_ieee1275_note and write that to `out'.
34601 Use GRUB_IEEE1275_MODULE_BASE instead of MODULE_BASE.
34602
4ca7004c 346032005-01-05 Marco Gerards <metgerards@student.han.nl>
34604
34605 * util/misc.c (grub_util_read_image): Revert last change. It
34606 called `grub_util_read_at', which seeks from the beginning of the
34607 file.
34608
0b412211 346092005-01-04 Hollis Blanchard <hollis@penguinppc.org>
34610
34611 * TODO: Add note about endianness in grub-mkimage.
34612 * boot/powerpc/ieee1275/crt0.S (note): Remove unused .note
34613 section.
34614 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Add grub-mkimage.
34615 (grub_mkimage_SOURCES): New target.
34616 * include/grub/kernel.h (grub_start_addr): Remove variable.
34617 (grub_end_addr): Likewise.
34618 (grub_total_module_size): Likewise.
34619 (grub_kernel_image_size): Likewise.
34620 (GRUB_MODULE_MAGIC): New constant.
34621 (grub_module_info): New structure.
34622 (grub_arch_modules_addr): New prototype.
34623 (grub_get_end_addr): Remove prototype.
34624 * include/grub/i386/pc/kernel.h (grub_end_addr): New prototype.
34625 * include/grub/powerpc/ieee1275/kernel.h: New file.
34626 * include/grub/util/misc.h (grub_util_get_fp_size): New
34627 prototype.
34628 (grub_util_read_at): Likewise.
34629 (grub_util_write_image_at): Likewise.
34630 * kern/main.c (grub_get_end_addr): Remove function.
34631 (grub_load_modules): Call grub_arch_modules_addr instead of using
34632 grub_end_addr. Look for a grub_module_info struct in memory. Use
34633 the grub_module_info fields instead of calling grub_get_end_addr
34634 as loop conditions. Move grub_add_unused_region code here.
34635 (grub_add_unused_region): Remove function.
34636 * kern/i386/pc/init.c: Include grub/cache.h.
34637 (grub_machine_init): Remove call to grub_get_end_addr. Remove
34638 one call to add_mem_region.
34639 (grub_arch_modules_addr): New function.
34640 * kern/powerpc/ieee1275/init.c (grub_end_addr): Remove variable.
34641 (grub_total_module_size): Likewise.
34642 Include grub/machine/kernel.h.
34643 (grub_arch_modules_addr): New function.
34644 * util/grub-emu.c (grub_end_addr): Remove variable.
34645 (grub_total_module_size): Likewise.
34646 (grub_arch_modules_addr): New function.
34647 * util/misc.c: Include unistd.h.
34648 (grub_util_get_fp_size): New function.
34649 (grub_util_read_at): Likewise.
34650 (grub_util_write_image_at): Likewise.
34651 (grub_util_read_image): Call grub_util_read_at.
34652 (grub_util_write_image): Call grub_util_write_image_at.
34653 * util/i386/pc/grub-mkimage.c (generate_image): Allocate
34654 additional memory in kernel_img for a struct grub_module_info.
34655 Fill in that grub_module_info.
34656 * util/powerpc/ieee1275/grub-mkimage.c: New file.
34657
458786f8 346582005-01-03 Hollis Blanchard <hollis@penguinppc.org>
34659
34660 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_milliseconds):
34661 New function.
34662 * include/grub/powerpc/ieee1275/ieee1275.h
34663 (grub_ieee1275_milliseconds): New prototype.
34664 * include/grub/powerpc/ieee1275/time.h (GRUB_TICKS_PER_SECOND):
34665 Change to 1000.
34666 * kern/powerpc/ieee1275/init.c (grub_get_rtc): Call
34667 grub_ieee1275_milliseconds.
34668
ac507d1b 346692005-01-03 Hollis Blanchard <hollis@penguinppc.org>
34670
34671 * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_realmode): New
34672 variable.
34673 (find_options): New function.
34674 (cmain): Call find_options.
34675 * include/grub/powerpc/ieee1275/ieee1275.h
34676 (grub_ieee1275_realmode): New extern variable.
34677 * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Only call
34678 grub_map if grub_ieee1275_realmode is false.
34679
6b8fd1c4 346802004-12-29 Marco Gerards <metgerards@student.han.nl>
34681
34682 * normal/cmdline.c (grub_cmdline_get): Redone logic so no empty
34683 lines are inserted and make it work like readline. Reported by
34684 Vincent Pelletier <subdino2004@yahoo.fr>.
34685
8514a1e0 346862004-12-28 Marco Gerards <metgerards@student.han.nl>
34687
34688 * boot/powerpc/ieee1275/crt0.S (_start): Don't set up the stack.
34689
34690 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCE): Remove
34691 `kern/powerpc/cache.S'.
34692
924b6140 346932004-12-27 Marco Gerards <metgerards@student.han.nl>
34694
34695 * genmk.rb: Handle the `Program' class in the main loop. Written
34696 by Johan Rydberg <jrydberg@gnu.org>.
34697 (Program): New class.
34698 (programs): New variable.
34699 * boot/powerpc/ieee1275/cmain.c: Include <grub/machine/ieee1275.h>
34700 instead of "grub/machine/ieee1275.h". Include <grub/kernel.h>
34701 instead of "grub/kernel.h". Include <grub/machine/init.h>.
34702 (help_arch): Function removed.
34703 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add
34704 `powerpc/libgcc.h' and `loader.h'.
34705 (pkgdata_PROGRAMS): New variable.
34706 (sbin_UTILITIES): Variable removed.
34707 (grub_emu_SOURCES): Added kern/powerpc/cache.S.
34708 (grubof_SOURCES): Variable re-defined so it only includes the
34709 core functionality.
34710 (grubof_CFLAGS): Remove `-DGRUBOF'.
34711 (pkgdata_MODULES, fshelp_mod_SOURCES, fshelp_mod_CFLAGS,
34712 (fat_mod_SOURCES, fat_mod_CFLAGS, ext2_mod_SOURCES)
34713 (ext2_mod_CFLAGS, ufs_mod_SOURCES, ufs_mod_CFLAGS)
34714 (minix_mod_SOURCES, minix_mod_CFLAGS, hfs_mod_SOURCES)
34715 (hfs_mod_CFLAGS, jfs_mod_SOURCES, jfs_mod_CFLAGS)
34716 (iso9660_mod_SOURCES, iso9660_mod_CFLAGS, _linux_mod_SOURCES)
34717 (_linux_mod_CFLAGS, linux_mod_SOURCES, linux_mod_CFLAGS)
34718 (normal_mod_SOURCES, normal_mod_CFLAGS, normal_mod_ASFLAGS)
34719 (hello_mod_SOURCES, hello_mod_CFLAGS, boot_mod_SOURCES)
34720 (boot_mod_CFLAGS, terminal_mod_SOURCES, terminal_mod_CFLAGS)
34721 (ls_mod_SOURCES, ls_mod_CFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
34722 (cat_mod_SOURCES, cat_mod_CFLAGS, font_mod_SOURCES)
34723 (font_mod_CFLAGS, amiga_mod_SOURCES, amiga_mod_CFLAGS)
34724 (apple_mod_SOURCES, apple_mod_CFLAGS, pc_mod_SOURCES)
34725 (pc_mod_CFLAGS): New variables.
34726 * disk/powerpc/ieee1275/ofdisk.c: Include <grub/machine/init.h>.
34727 (grub_ofdisk_iterate): Add a prototype for `dev_iterate'.
34728 * include/grub/dl.h (grub_arch_dl_sync_caches): New prototype.
34729 * include/grub/loader.h (grub_os_area_addr, grub_os_area_size):
34730 Moved from here...
34731 * include/grub/i386/pc/init.h (grub_os_area_addr)
34732 (rub_os_area_size): ... to here.
34733 * include/grub/powerpc/ieee1275/ieee1275.h
34734 (grub_ieee1275_entry_fn): Export symbol.
34735 * include/grub/powerpc/ieee1275/init.h: New file.
34736 * include/grub/powerpc/libgcc.h: Likewise.
34737 * include/grub/cache.h: Likewise.
34738 * kern/powerpc/cache.S: Likewise. Written by Hollis Blanchard
34739 <hollis@penguinppc.org>.
34740 * kern/dl.c: Include <grub/cache.h>.
34741 (grub_dl_flush_cache): New function.
34742 (grub_dl_load_core): Call `grub_dl_flush_cache' to flush the cache
34743 for this module.
34744 * kern/powerpc/ieee1275/init.c (grub_ofdisk_init)
34745 (grub_console_init): Removed prototypes.
34746 (grub_machine_init): Don't initialize the modules anymore.
34747 * kern/powerpc/ieee1275/openfw.c (grub_map): Make the function
34748 static.
34749 * include/grub/powerpc/types.h (GRUB_HOST_WORDS_LITTLEENDIAN):
34750 Macro undef removed.
34751 (GRUB_HOST_WORDS_BIGENDIAN): New macro.
34752 * kern/powerpc/dl.c (grub_arch_dl_relocate_symbols): Add
34753 relocation `R_PPC_REL32'. Return an error when the relocation is
34754 unknown.
34755 * Makefile.in (DATA): Add `$(pkgdata_PROGRAMS)'.
34756 * kern/i386/pc/init.c (grub_arch_sync_caches): New function.
34757 * util/misc.c (grub_arch_sync_caches): Likewise.
34758
e4b47e0c 347592004-12-19 Marco Gerards <metgerards@student.han.nl>
34760
34761 * conf/powerpc-ieee1275.rmk (MOSTLYCLEANFILES): Remove
34762 `symlist.c', add `grubof_symlist.c'.
34763 (symlist.c): Variable removed.
34764 (grubof_HEADERS): Variable added.
34765 (grubof_symlist.c): New target.
34766 (kernel_syms.lst): Use `grubof_HEADERS' instead of
34767 `kernel_img_HEADERS'.
34768 (grubof_SOURCES): Add `kern/powerpc/dl.c' and `grubof_symlist.c'.
34769 * kern/powerpc/dl.c: New file.
34770 * kern/powerpc/ieee1275/init.c (grub_arch_dl_check_header):
34771 Function removed.
34772 (grub_arch_dl_relocate_symbols): Likewise.
34773 (grub_register_exported_symbols): Likewise.
34774
4ceb3636 347752004-12-13 Marco Gerards <metgerards@student.han.nl>
34776
34777 * fs/ext2.c (grub_ext2_open): Don't use data after freeing it.
34778 (grub_ext2_dir): Likewise. Don't return in case of an error, jump
34779 to fail instead. Reported by Vincent Pelletier
34780 <subdino2004@yahoo.fr>.
34781
34782 * fs/fshelp.c (grub_fshelp_find_file): Don't free `oldnode' when
34783 it is not allocated. Reported by Vincent Pelletier
34784 <subdino2004@yahoo.fr>.
34785
34786 * normal/cmdline.c (grub_tab_complete): Add a blank line to the
34787 output so the output looks better.
f19dbdb7 34788
3f1578fe 347892004-12-04 Marco Gerards <metgerards@student.han.nl>
34790
34791 Modulize the partition map support and add support for the amiga
34792 partition map.
f19dbdb7 34793
3f1578fe 34794 * commands/ls.c: Include <grub/partition.h> instead of
34795 <grub/machine/partition.h>.
34796 * kern/disk.c: Likewise.
34797 * kern/rescue.c: Likewise.
34798 * loader/i386/pc/chainloader.c: Likewise.
34799 * normal/cmdline.c: Likewise.
34800 * kern/powerpc/ieee1275/init.c: Likewise.
34801 (grub_machine_init): Call `grub_pc_partition_map_init',
34802 `grub_amiga_partition_map_init' and
34803 `grub_apple_partition_map_init'.
34804 * conf/i386-pc.rmk (kernel_img_SOURCES): Remove
34805 `disk/i386/pc/partition.c'. Add `kern/partition.c'.
34806 (kernel_img_HEADERS): Remove `machine/partition.h'. Add
34807 `partition.h' and `pc_partition.h'.
34808 (grub_setup_SOURCES): Remove
34809 `disk/i386/pc/partition.c'. Add `kern/partition.c',
34810 `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
34811 (grub_emu_SOURCES): Likewise.
34812 (pkgdata_MODULES): Add `amiga.mod', `apple.mod' and `pc.mod'.
34813 (amiga_mod_SOURCES, amiga_mod_CFLAGS, apple_mod_SOURCES)
34814 (apple_mod_CFLAGS, pc_mod_SOURCES, pc_mod_CFLAGS): New variables.
34815 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
34816 `disk/powerpc/ieee1275/partition.c'. Add `kern/partition.c',
34817 `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
34818 (grubof_SOURCES): Likewise.
34819 * disk/i386/pc/partition.c: File removed.
34820 * disk/powerpc/ieee1275/partition.c: Likewise.
34821 * include/grub/powerpc/ieee1275/partition.h: Likewise.
34822 * include/grub/i386/pc/partition.h: Likewise.
34823 * kern/partition.c: New file.
34824 * partmap/amiga.c: Likewise.
34825 * partmap/apple.c: Likewise.
34826 * partmap/pc.c: Likewise.
34827 * include/grub/partition.h: Likewise..
34828 * include/grub/pc_partition.h: Likewise.
34829 * util/grub-emu.c: Include <grub/partition.h> instead of
34830 <grub/machine/partition.h>.
34831 (main): Call `grub_pc_partition_map_init',
34832 `grub_amiga_partition_map_init' and
34833 `grub_apple_partition_map_init' and deinitialize afterwards.
34834 * util/i386/pc/biosdisk.c: Include `#include
34835 <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
34836 `<grub/machine/partition.h>'.
34837 * util/i386/pc/grub-setup.c: Likewise.
34838 * util/i386/pc/biosdisk.c: Likewise.
34839 (grub_util_biosdisk_get_grub_dev): Only access the PC specific
34840 partition information in case of a PC partition.
34841 * util/i386/pc/grub-setup.c: Include `#include
34842 <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
34843 `<grub/machine/partition.h>'.
34844 (setup): Only access the PC specific partition information in case
34845 of a PC partition.
34846
0ef4ced9 348472004-11-17 Hollis Blanchard <hollis@penguinppc.org>
f19dbdb7 34848
0ef4ced9 34849 * kern/powerpc/ieee1275/init.c (grub_setjmp): Remove function.
34850 (grub_longjmp): Likewise.
34851 * include/grub/powerpc/setjmp.h (grub_jmp_buf): Set array size to
34852 20.
34853 * normal/powerpc/setjmp.S: New file.
34854 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
34855 `normal/powerpc/setjmp.S'.
34856 (grubof_CFLAGS): Add `-DGRUBOF'.
34857 * include/grub/setjmp.h [GRUB_UTIL]: Changed condition to
34858 [GRUB_UTIL && !GRUBOF].
f19dbdb7 34859
19950e29 348602004-11-16 Marco Gerards <metgerards@student.han.nl>
34861
34862 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Skip any
34863 property named `name'. Correctly handle the error returned by
34864 `grub_ieee1275_finddevice' if a device can not be opened.
34865
a2fea427 348662004-11-02 Hollis Blanchard <hollis@penguinppc.org>
34867
34868 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_readkey): Test
34869 `actual' for negativity.
34870 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
34871 kern/fshelp.c.
34872
41ea0ea3 348732004-11-01 Marco Gerards <metgerards@student.han.nl>
34874
34875 * term/i386/pc/vga.c (VGA_HEIGHT): Changed to 350.
34876 (PAGE_OFFSET): New macro.
34877 (CRTC_ADDR_PORT): Likewise.
34878 (CRTC_DATA_PORT): Likewise.
34879 (START_ADDR_HIGH_REGISTER): Likewise.
34880 (START_ADDR_LOW_REGISTER): Likewise.
34881 (GRAPHICS_ADDR_PORT): Likewise.
34882 (GRAPHICS_DATA_PORT): Likewise.
34883 (READ_MAP_REGISTER): Likewise.
34884 (INPUT_STATUS1_REGISTER): Likewise.
34885 (INPUT_STATUS1_VERTR_BIT): Likewise.
34886 (page): New variable.
34887 (wait_vretrace): New function.
34888 (set_read_map): Likewise.
34889 (set_start_address): Likewise.
34890 (grub_vga_init): Use mode 0x10 instead of mode 0x12. Switch to
34891 the right page.
34892 (check_vga_mem): Take the page into account.
34893 (write_char): Likewise.
34894 (write_cursor): Likewise.
34895 (scroll_up): Likewise. Copy the page to the page that is not
34896 shown and switch between both pages.
34897 (grub_vga_putchar): Fix off by one error.
34898 (grub_vga_cls): Wait for the vertical retrace. Take the page into
34899 account.
34900
ad0bd20b 349012004-11-01 Marco Gerards <metgerards@student.han.nl>
34902
34903 Add support for iso9660 (including rockridge).
f19dbdb7 34904
ad0bd20b 34905 * conf/i386-pc.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
34906 (iso9660_mod_SOURCES): New variable.
34907 (iso9660_mod_CFLAGS): Likewise.
34908 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
34909 * include/grub/fs.h (grub_iso9660_init): New prototype.
34910 * util/grub-emu.c (main): Call `grub_iso9660_init'.
34911 * fs/iso9660.c: New file.
34912
34913 * include/grub/misc.h (grub_strncat): New prototype.
34914 * kern/misc.c (grub_strncat): New function.
f19dbdb7 34915
ad0bd20b 34916 * fs/hfs.c (grub_hfs_mount): Translate the error
34917 `GRUB_ERR_OUT_OF_RANGE' to `GRUB_ERR_BAD_FS'.
34918 * fs/jfs.c (grub_jfs_mount): Likewise.
34919 * fs/ufs.c (grub_ufs_mount): Likewise.
34920
a5477a59 349212004-10-28 Hollis Blanchard <hollis@penguinppc.org>
34922
34923 * boot/powerpc/ieee1275/cmain.c (cmain): Remove asm statements
34924 which initialized BAT registers.
34925 * boot/powerpc/ieee1275/ieee1275.c (IEEE1275_CALL_ENTRY_FN,
34926 grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
34927 Move from here...
34928 * include/grub/powerpc/ieee1275/ieee1275.h (IEEE1275_CALL_ENTRY_FN,
34929 grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
34930 ... to here.
34931 * kern/powerpc/ieee1275/openfw.c (grub_map): New function.
34932 (grub_mapclaim): Likewise.
34933 * loader/powerpc/ieee1275/linux.c (grub_load_linux): Use
34934 grub_mapclaim instead of grub_ieee1275_claim. Assign linux_addr by
34935 hand.
34936
9304c1f8 349372004-10-19 Hollis Blanchard <hollis@penguinppc.org>
34938
34939 * conf/powerpc-ieee1275.rmk (COMMON_ASFLAGS): Remove -fno-builtin.
34940 (COMMON_CFLAGS): Remove -fno-builtin and -D__ASSEMBLY__. Add
34941 -ffreestanding and -msoft-float.
34942
86f4ae25 349432004-10-15 Hollis Blanchard <hollis@penguinppc.org>
34944
34945 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Do not
34946 append ":0" to devpath if the GRUB_IEEE1275_NO_PARTITION_0 flag is
34947 set in grub_ieee1275_flags.
34948
38912228 349492004-10-14 Hollis Blanchard <hollis@penguinppc.org>
34950
34951 * include/grub/powerpc/ieee1275/ieee1275.h (abort): Add function
34952 prototype.
34953 * kern/powerpc/ieee1275/init.c (grub_machine_init): Call
34954 grub_console_init first.
34955 Change the memory range used for grub_ieee1275_claim and
34956 grub_mm_init_region.
34957 Print an error message if the claim fails.
34958 Include <grub/misc.h>.
34959
d1923dc8 349602004-10-13 Hollis Blanchard <hollis@penguinppc.org>
34961
34962 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_iterate):
34963 Call grub_children_iterate for device nodes of type `scsi',
34964 `ide', or `ata'.
34965 (grub_ofdisk_open): Remove manual device alias resolution.
34966 Fix memory leak when device cannot be opened.
f19dbdb7 34967 * include/grub/powerpc/ieee1275/ieee1275.h
d1923dc8 34968 (grub_children_iterate): New prototype.
34969 * kern/powerpc/ieee1275/openfw.c (grub_children_iterate):
34970 New function.
34971 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
34972 Return -1 if args.size was -1.
34973
4512e4f3 349742004-10-11 Hollis Blanchard <hollis@penguinppc.org>
34975
34976 * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_flags): New global.
34977 (cmain): Accept 3 parameters. Test for 0xdeadbeef, indicating Old
34978 World Macintosh. If Old Wold, set flag in grub_ieee1275_flags; claim
34979 Open Firmware's memory for it; claim memory from _start to _end.
34980 * boot/powerpc/ieee1275/crt0.S (__bss_start): New extern.
34981 (_end): New extern.
34982 (_start): Zero BSS from __bss_start to _end.
34983 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
34984 New extern.
34985 (GRUB_IEEE1275_NO_PARTITION_0): New #define.
34986
4d61feb0 349872004-10-11 Hollis Blanchard <hollis@penguinppc.org>
34988
ad0bd20b 34989 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): Return
34990 -1 if args.base was -1.
4d61feb0 34991
026fa2f9 349922004-10-08 Hollis Blanchard <hollis@penguinppc.org>
34993
34994 * term/powerpc/ieee1275/ieee1275.c (grub_ofconsole_cls): Use an ANSI
34995 escape sequence instead of a literal ^L. Also call
34996 grub_ofconsole_gotoxy.
34997
9f2220ef 349982004-10-03 Hollis Blanchard <hollis@penguinppc.org>
34999
35000 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): change
35001 void * arguments to grub_addr_t. All callers updated. Also make
35002 the `result' argument optional.
35003 (grub_ieee1275_release): change void * arguments to grub_addr_t.
35004 All callers updated.
35005
8a572cd7 350062004-09-22 Hollis Blanchard <hollis@penguinppc.org>
35007
35008 * commands/ls.c (grub_ls_list_files): Use the string following the
35009 initial ')', if present, as the filesystem path.
35010 * kern/rescue.c (grub_rescue_cmd_ls): Likewise.
35011
35012 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): List crt0.S first.
35013
18aa81f2 350142004-09-18 Yoshinori K. Okuji <okuji@enbug.org>
35015
35016 Make the source code of the menu interface more readable.
f19dbdb7 35017
18aa81f2 35018 * normal/menu.c: Include grub/mm.h.
35019 (TERM_WIDTH): New macro.
35020 (TERM_HEIGHT): Likewise.
35021 (TERM_INFO_HEIGHT): Likewise.
35022 (TERM_MARGIN): Likewise.
35023 (TERM_SCROLL_WIDTH): Likewise.
35024 (TERM_TOP_BORDER_Y): Likewise.
35025 (TERM_LEFT_BORDER_X): Likewise.
35026 (TERM_BORDER_WIDTH): Likewise.
35027 (TERM_MESSAGE_HEIGHT): Likewise.
35028 (TERM_BORDER_HEIGHT): Likewise.
35029 (TERM_NUM_ENTRIES): Likewise.
35030 (TERM_FIRST_ENTRY_Y): Likewise.
35031 (TERM_ENTRY_WIDTH): Likewise.
35032 (TERM_CURSOR_X): Likewise.
35033 (draw_border): Use macros instead of magic numbers.
35034 (print_entry): Likewise.
35035 (print_entries): Likewise.
35036 (run_menu): Likewise. Also, handle the key 'e'.
35037 (run_menu_entry): Ignore empty command lines.
35038 (print_message): Added a new argument EDIT. If EDIT is true,
35039 print a different message.
35040 (init_page): Likewise.
35041 (edit_menu_entry): New function. Not implemented yet.
35042
b47efe30 350432004-09-17 Marco Gerards <metgerards@student.han.nl>
35044
35045 Add `linux.mod' and `multiboot.mod' so linux and multiboot kernels
35046 can be loaded from normal mode.
f19dbdb7 35047
b47efe30 35048 * conf/i386-pc.rmk (pkgdata_MODULES): Add `linux.mod' and
35049 `multiboot.mod'.
35050 (linux_mod_SOURCES, linux_mod_CFLAGS, multiboot_mod_SOURCES)
35051 (multiboot_mod_CFLAGS): New variables.
35052 * loader/i386/pc/linux_normal.c: New file.
f19dbdb7 35053 * loader/i386/pc/multiboot_normal.c: Likewise.
35054
b47efe30 35055 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Don't use the
35056 attribute `unused'.
f19dbdb7 35057
b47efe30 35058 * fs/ext2.c (grub_ext2_iterate_dir): Fix typos in inode type. Use
35059 `fdiro' to read the mode information from instead of `diro'.
35060
35061 * fs/fshelp.c (grub_fshelp_find_file): Set type to foundtype after
35062 looking up a symlink.
35063
35064 * include/grub/normal.h (GRUB_COMMAND_FLAG_NO_ARG_PARSE): New
35065 macro.
35066 * normal/command.c (grub_command_execute): Don't parse the
35067 arguments when `GRUB_COMMAND_FLAG_NO_ARG_PARSE' is set in the
35068 flags of the command.
35069
35070 * normal/menu.c (grub_menu_run): Fix typo.
35071
da75ac71 350722004-09-14 Hollis Blanchard <hollis@penguinppc.org>
35073
35074 * kern/powerpc/ieee1275/init.c (abort): Trap into Open Firmware.
35075
35076 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_gotoxy): Use
35077 `y + 1' instead of `y - 1'.
35078
35079 * conf/powerpc-ieee1275.rmk (grubof_LDFLAGS): Add `-N' and `-S'.
f19dbdb7 35080
062b24c2 350812004-09-14 Yoshinori K. Okuji <okuji@enbug.org>
35082
35083 From Hollis Blanchard <hollis@penguinppc.org>:
35084 * kern/misc.c (memmove): New alias for grub_memmove.
35085 (memcmp): New alias for grub_memcmp.
35086 (memset): New alias for grub_memset.
f19dbdb7 35087 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
062b24c2 35088 Change "int handle" to "grub_ieee1275_phandle_t handle".
f19dbdb7 35089 * include/grub/powerpc/ieee1275/ieee1275.h
062b24c2 35090 (grub_ieee1275_get_property): Likewise.
f19dbdb7 35091
8ddad845 350922004-09-12 Tomas Ebenlendr <ebik@ucw.cz>
35093
35094 Added normal mode command `chainloader' as module chain.mod, which
35095 depends on normal.mod and _chain.mod.
f19dbdb7 35096
8ddad845 35097 * conf/i386-pc.rmk (pkgdata_MODULES): Add `chain.mod'.
35098 (chain_mod_SOURCES, chain_mod_CFLAGS): Variables added.
35099 * include/grub/i386/pc/loader.h (grub_rescue_cmd_chainloader):
35100 Deleted prototype.
35101 * loader/i386/pc/chainloader.c (grub_rescue_cmd_chainloader): All
35102 but arguments parsing moved to ...
35103 (grub_chainloader_cmd): ... here. New function.
35104 * include/grub/i386/pc/chainloader.h: New file.
35105 * loader/i386/pc/chainloader_normal.c: Likewise.
35106
2c1f4ce3 351072004-09-11 Marco Gerards <metgerards@student.han.nl>
35108
35109 * conf/i386-pc.rmk (kernel_img_SOURCES): Added kern/fshelp.c.
35110 (grub_mkimage_LDFLAGS): Likewise.
35111 (grub_emu_SOURCES): Likewise.
35112 (kernel_img_HEADERS): Added fshelp.h.
35113 * fs/ext2.c: Include <grub/fshelp.h>.
35114 (FILETYPE_REG): New macro.
35115 (FILETYPE_INO_REG): Likewise.
35116 (grub_ext_sblock): Renamed to `grub_ext2_sblock'.
35117 Changed all users.
35118 (ext2_block_group): Renamed to `grub_ext2_block_group'. Changed
35119 all users.
35120 (grub_fshelp_node): New struct.
35121 (grub_ext2_data): Added member `diropen'. Changed member `inode'
35122 to a pointer.
35123 (grub_ext2_get_file_block): Removed function.
35124 (grub_ext2_read_block): New function.
35125 (grub_ext2_read_file): Replaced parameter `data' by `node'.
35126 This function was written.
35127 (grub_ext2_mount): Read the root inode. Create a diropen struct.
35128 (grub_ext2_find_file): Removed function.
35129 (grub_ext2_read_symlink): New function.
35130 (grub_ext2_iterate_dir): Likewise.
35131 (grub_ext2_open): Rewritten.
35132 (grub_ext2_dir): Rewritten.
35133 * include/grub/fshelp.h: New file.
35134 * fs/fshelp.c: Likewise.
35135
3c52136a 351362004-09-10 Yoshinori K. Okuji <okuji@enbug.org>
35137
35138 * normal/menu.c: Include grub/loader.h and grub/machine/time.h.
35139 (print_message): Add a missing newline.
35140 (run_menu): Added timeout support.
35141 (run_menu_entry): New local function.
35142 (grub_menu_run): Added support for booting.
35143
35144 * kern/loader.c (grub_loader_is_loaded): New function.
35145
35146 * include/grub/powerpc/ieee1275/time.h: Include grub/symbol.h.
35147 (grub_get_rtc): Exported.
35148
35149 * include/grub/i386/pc/time.h: Include grub/symbol.h.
35150 (grub_get_rtc): Exported.
35151
35152 * include/grub/normal.h (struct grub_command_list): Remove
35153 constant from the member `command'.
35154
35155 * include/grub/loader.h (grub_loader_is_loaded): Declared.
35156
35157 * include/grub/err.h (GRUB_ERR_INVALID_COMMAND): New constant.
35158
35159 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/time.h.
35160
aa033560 351612004-08-28 Marco Gerards <metgerards@student.han.nl>
35162
35163 Add support for the JFS filesystem.
35164
35165 * fs/jfs.c: New file.
35166 * include/grub/fs.h (grub_jfs_init): New prototype.
35167 (grub_jfs_fini): New prototype.
35168 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/jfs.c.
35169 (grub_emu_SOURCES): Likewise.
35170 (pkgdata_MODULES): Add jfs.mod.
35171 (jfs_mod_SOURCES): New variable.
35172 (jfs_mod_CFLAGS): Likewise.
35173 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs.jfs.c.
35174 (grubof_SOURCES): Likewise.
35175 * util/grub-emu.c (main): Initialize and deinitialize JFS support.
35176
35177 * fs/fat.c (grub_fat_find_dir): Convert the filename little
35178 endian to the host endian.
35179 (grub_fat_utf16_to_utf8): Move function from there...
35180 * kern/misc.c (grub_utf16_to_utf8): ...to here. Do not convert
fe987087 35181 the endianness of the source string anymore.
aa033560 35182 * include/grub/misc.h (grub_utf16_to_utf8): New prototype.
35183
94bc45af 351842004-08-24 Marco Gerards <metgerards@student.han.nl>
35185
35186 * commands/boot.c (grub_boot_init) [GRUB_UTIL]: Make conditional.
35187 (grub_boot_fini) [GRUB_UTIL]: Likewise.
35188 (GRUB_MOD_INIT) [!GRUB_UTIL]: Likewise.
35189 (GRUB_MOD_FINI) [!GRUB_UTIL]: Likewise.
f19dbdb7 35190
94bc45af 35191 * fs/hfs.c (grub_hfs_find_node): Add a prototype for `node_found'.
35192 (grub_hfs_iterate_dir): Make the function static. Add prototypes
35193 for `node_found' and `it_dir'.
35194 (grub_hfs_dir): Add prototype for `dir_hook'.
35195
35196 * fs/minix.c (grub_minix_get_file_block): Add prototype for
35197 `grub_get_indir'. Rename `indir' in two blocks to `indir16'
35198 and `indir32' to silence a gcc warning.
35199
35200 * include/grub/fs.h (grub_hfs_init): New prototype.
35201 (grub_hfs_fini): Likewise.
f19dbdb7 35202
35203
97543f08 352042004-08-21 Yoshinori K. Okuji <okuji@enbug.org>
35205
35206 Each disk device has its own id now. This is useful to make use
35207 of multiple disk devices.
f19dbdb7 35208
97543f08 35209 * include/grub/disk.h (grub_disk_dev_id): New enum.
35210 (GRUB_DISK_DEVICE_BIOSDISK_ID): New constant.
35211 (GRUB_DISK_DEVICE_OFDISK_ID): Likewise.
35212
35213 * disk/i386/pc/biosdisk.c (grub_biosdisk_dev): Specify
35214 GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
35215
35216 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_dev): Specify
35217 GRUB_DISK_DEVICE_OFDISK_ID as an id.
35218
35219 * util/i386/pc/biosdisk.c (grub_util_biosdisk_dev): Specify
35220 GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
35221
35222 * include/grub/disk.h (struct grub_disk_dev): Added a new member
35223 "id" which is used by the cache manager.
35224
35225 * normal/main.c (grub_normal_init_page): Use "GNU GRUB" instead
35226 of just "GRUB".
35227
64372eb4 352282004-08-18 Marco Gerards <metgerards@student.han.nl>
35229
35230 * fs/hfs.c: New file.
35231 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/hfs.c.
35232 (grub_emu_SOURCES): Likewise.
35233 (pkgdata_MODULES): Add hfs.mod.
35234 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/hfs.c.
35235 (grubof_SOURCES): Likewise.
35236 * util/grub-emu.c (main): Initialize and deinitialize HFS support.
35237
35238 * include/grub/misc.h (grub_strncasecmp): Add prototype.
35239 * kern/misc.c (grub_strncasecmp): Add function.
35240
cc61b58f 352412004-08-14 Marco Gerards <metgerards@student.han.nl>
35242
35243 * include/grub/arg.h (GRUB_ARG_OPTION_OPTIONAL): Surround macro
35244 with parentheses.
35245
35246 * fs/ext2.c (FILETYPE_UNKNOWN): New macro.
35247 (grub_ext2_dir): In case the directory entry type is unknown, read
35248 it from the inode.
35249
0ef123f6 352502004-08-02 Peter Bruin <pjbruin@dds.nl>
35251
35252 * loader/powerpc/ieee1275/linux.c (grub_linux_init): Pass
35253 grub_load_linux instead of grub_rescue_cmd_linux as second
35254 argument of grub_rescue_register_command.
35255
35256 * Makefile.in (RMKFILES): Add conf/powerpc-ieee1275.rmk.
35257
a447c5df 352582004-07-27 Marco Gerards <metgerards@student.han.nl>
35259
35260 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_release): New
35261 function.
35262 * commands/boot.c: Remove the check for `GRUB_UTIL'.
35263 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
35264 `loader/powerpc/ieee1275/linux.c',
35265 `loader/powerpc/ieee1275/linux_normal.c' and `commands/boot.c'.
35266 * include/grub/powerpc/ieee1275/ieee1275.h
35267 (grub_ieee1275_release): New prototype.
35268 * include/grub/powerpc/ieee1275/loader.h: Rewritten.
35269 * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize
35270 normal, boot, linux and linux_normal.
35271 * loader/powerpc/ieee1275/linux.c: New file.
35272 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
35273
5a9e3546 352742004-07-12 Marco Gerards <metgerards@student.han.nl>
35275
35276 * normal/arg.c (grub_arg_parse): Correct error handling after
35277 reallocating the argumentlist (check if `argl' is not null instead
35278 of checking if `args' is not null).
35279 * kern/mm.c (grub_realloc): Return the same pointer when using the
35280 same region, instead of returning the header address.
35281
e15199cb 352822004-07-11 Marco Gerards <metgerards@student.han.nl>
35283
35284 * disk/powerpc/ieee1275/partition.c (grub_partition_iterate): Skip
35285 one block instead of two when looking for the initial partition.
35286 (grub_partition_probe): Initialize the local variable `p' with 0.
35287 Use base 10 for the grub_strtoul call.
35288 * kern/misc.c (grub_strncpy): Fix off by one bug. Eliminated the
35289 need for one local variable.
35290 (grub_strtoul): Don't add the new value to `num', instead of that
35291 just assign it.
35292
020616c2 352932004-07-11 Marco Gerards <metgerards@student.han.nl>
35294
35295 * conf/i386-pc.rmk (pkgdata_IMAGE): Add pxeboot.img.
35296 (pxeboot_img_SOURCES): New variable.
35297 (pxeboot_img_ASFLAGS): Likewise.
35298 (pxeboot_img_LDFLAGS): Likewise.
35299 * boot/i386/pc/pxeboot.S: New file. Based on pxeloader.S from
35300 GRUB Legacy and boot.S. Adopted for GRUB 2 by lode leroy
35301 <lode_leroy@hotmail.com>.
35302
6c51eb64 353032004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
35304
35305 * kern/rescue.c (grub_enter_rescue_mode): Don't continue when
35306 there was no input.
35307
cfb12aff 353082004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
35309
35310 * normal/cmdline.c (grub_set_history): Fix off by one bug. Fixed
35311 the history buffer logic.
35312
6eabba74 353132004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
35314
35315 * fs/ext2.c (FILETYPE_INO_MASK, FILETYPE_INO_DIRECTORY)
35316 (FILETYPE_INO_SYMLINK): New macros.
35317 (grub_ext2_find_file): Check if the node is a directory using the
35318 inode stat information instead of using the filetype in the
35319 dirent. Exclude the first character of an absolute symlink.
35320 (grub_ext2_dir): Mask out the filetype part of the mode member of
35321 the inode.
35322
66e19ef8 353232004-05-24 Marco Gerards <metgerards@student.han.nl>
35324
35325 Add support for UFS version 1 and 2. Add support for the minix
35326 filesystem version 1 and 2, both the variants with 14 and 30 long
35327 filenames.
f19dbdb7 35328
66e19ef8 35329 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ufs.c and
35330 fs/minix.c.
35331 (grub_emu_SOURCES): Likewise.
35332 (pkgdata_MODULES): Add ufs.mod and minix.mod.
35333 (ufs_mod_SOURCES): New variable.
35334 (ufs_mod_CFLAGS): Likewise.
35335 (minix_mod_SOURCES): Likewise.
35336 (minix_mod_CFLAGS): Likewise.
35337 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/ufs.c and
35338 fs/minix.c.
35339 (grubof_SOURCES): Likewise.
35340 * fs/ufs.c: New file.
35341 * fs/minix.c: New file.
35342 * include/grub/fs.h (grub_ufs_init): New prototype.
35343 (grub_ufs_fini): Likewise.
35344 (grub_minix_init): Likewise.
35345 (grub_minix_fini): Likewise.
35346 * util/grub-emu.c (main): Initialize and deinitialize UFS and
35347 minix fs.
35348
cc2e748a 353492004-04-30 Jeroen Dekkers <jeroen@dekkers.cx>
35350
35351 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add normal/arg.c,
35352 commands/ls.c, commands/terminal.c, commands/boot.c,
35353 commands/cmp.c and commands/cat.c.
35354 (grubof_LDFLAGS): Add -nostdlib -static-libgcc -lgcc.
35355
35356 * kern/powerpc/ieee1275/init.c: Include "grub/env.h" instead of
35357 "env.h"
35358
4b13b216 353592004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
35360
35361 All symbols prefixed with PUPA_ and pupa_ are renamed to GRUB_
35362 and grub_, respectively. Because the conversion is trivial and
35363 mechanical, I omit the details here. Please refer to the CVS
35364 if you need more information.
35365
6a142551 353662004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
35367
35368 * include/pupa: Renamed to ...
35369 * include/grub: ... this.
35370 * util/i386/pc/pupa-mkimage.c: Renamed to ...
35371 * util/i386/pc/grub-mkimage.c: ... this.
35372 * util/i386/pc/pupa-setup.c: Renamed to ...
35373 * util/i386/pc/grub-setup.c: ... this.
35374 * util/pupa-emu.c: Renamed to ...
35375 * util/grub-emu.c: ... this.
35376
e56cdf21 353772004-03-29 Marco Gerards <metgerards@student.han.nl>
35378
35379 Add support for the newworld apple macintosh (PPC). This has been
35380 tested on the powerbook 2000 only. It only adds support for
35381 generic ieee1275 functions, console and disk support. This should
35382 be easy to port to other architectures with support for Open
35383 Firmware.
f19dbdb7 35384
e56cdf21 35385 * configure.ac: Accept the powerpc as host_cpu. In the case of
35386 the powerpc cpu set the host_vendor to ieee1275. Make sure the i386
35387 specific tests are only executed while building for the i386.
35388 Inverse test for crosscompile.
35389 * genmk.rb (Utility): Allow assembler files.
35390 * normal/cmdline.c (pupa_tab_complete): Reset pupa_errno.
35391 * conf/powerpc-ieee1275.rmk: New file.
35392 * disk/powerpc/ieee1275/ofdisk.c: Likewise.
35393 * disk/powerpc/ieee1275/partition.c: Likewise.
35394 * include/pupa/powerpc/ieee1275/biosdisk.h: Likewise.
35395 * include/pupa/powerpc/ieee1275/console.h: Likewise.
35396 * include/pupa/powerpc/ieee1275/partition.h: Likewise.
35397 * include/pupa/powerpc/ieee1275/time.h: Likewise.
35398 * include/pupa/powerpc/ieee1275/util/biosdisk.h: Likewise.
35399 * include/pupa/powerpc/ieee1275/multiboot.h: Likewise.
35400 * include/pupa/powerpc/ieee1275/loader.h
35401 * include/pupa/powerpc/setjmp.h: Likewise.
35402 * include/pupa/powerpc/types.h: Likewise.
35403 * kern/powerpc/ieee1275/init.c: Likewise.
35404 * kern/powerpc/ieee1275/openfw.c: Likewise.
35405 * term/powerpc/ieee1275/ofconsole.c: Likewise.
35406
35407 These files were written by Johan Rydberg
35408 (jrydberg@night.trouble.net) and I only modified them slightly.
f19dbdb7 35409
e56cdf21 35410 * boot/powerpc/ieee1275/cmain.c: New file.
35411 * boot/powerpc/ieee1275/crt0.S: Likewise.
35412 * boot/powerpc/ieee1275/ieee1275.c: Likewise.
35413 * include/pupa/powerpc/ieee1275/ieee1275.h: Likewise.
35414
8c8cc205 354152004-03-14 Jeroen Dekkers <jeroen@dekkers.cx>
35416
35417 * Makefile.in: Update copyright.
35418 * genmodsrc.sh: Likewise.
35419 * gensymlist.sh: Likewise.
35420 * term/i386/pc/vga.c: Indent correctly.
35421
35422 * util/i386/pc/pupa-mkimage.c (usage): Use PACKAGE_BUGREPORT as
35423 bugreporting address.
35424 * util/i386/pc/pupa-setup.c (usage): Likewise,
35425 (main): Call pupa_ext2_init and pupa_ext2_fini.
35426
f19dbdb7 35427 * fs/fat.c (log2): Renamed to ...
8c8cc205 35428 (fat_log2): ... this.
35429 All callers changed.
35430 * kern/misc.c (memcpy): Alias to pupa_memmove.
35431 * loader/i386/pc/multiboot.c (pupa_rescue_cmd_multiboot): Fix
35432 lvalue cast.
35433 * util/console.c (pupa_ncurses_fini): Return 0.
35434
35435 * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open)[__linux__]:
35436 Move fail label here.
35437 [__GNU__]: Don't warn when using stat.
35438 (open_device)[!__linux__]: Check if FD < 0 instead of !FD.
35439 (pupa_util_biosdisk_get_pupa_dev)[__GNU__]: Change type of N to
35440 long int. Use strtol instead of strtoul.
f19dbdb7 35441
db1771cf 354422004-03-14 Marco Gerards <metgerards@student.han.nl>
35443
35444 * commands/boot.c: New file.
35445 * commands/cat.c: Likewise.
35446 * commands/cmp.c: Likewise.
35447 * commands/ls.c: Likewise.
35448 * commands/terminal.c: Likewise.
35449 * normal/command.c: Include <pupa/env.h> and <pupa/dl.h>.
35450 (pupa_register_command): Changed interface to match the new
35451 argument parser.
35452 (pupa_command_execute): Changed (almost rewritten) so it uses
35453 pupa_split_command. Added support for setting variables using the
35454 syntax `foo=bar'.
35455 (rescue_command): Changed to work with the new argument parser.
35456 (terminal_command): Moved from here to commands/terminal.c.
35457 (set_command): New function.
35458 (unset_command): New function.
35459 (insmod_command): New function.
35460 (rmmod_command): New function.
35461 (lsmod_command): New function.
35462 (pupa_command_init): Don't initialize the command terminal
35463 anymore. Initialize the commands set, unset, insmod, rmmod and
35464 lsmod.
35465 * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/env.c.
35466 (kernel_img_HEADERS): Add arg.h and env.h.
35467 (pupa_mkimage_LDFLAGS): Add kern/env.c.
35468 (pupa_emu_SOURCES): Add kern/env.c, commands/ls.c,
35469 commands/terminal.c commands/boot.c commands/cmp.c commands/cat.c,
35470 normal/arg.c.
35471 (pkgdata_MODULES): Add ls.mod, boot.mod, cmp.mod, cat.mod and
35472 terminal.mod.
35473 (normal_mod_SOURCES): Add normal/arg.c and normal/arg.c.
35474 (boot_mod_SOURCES): New variable.
35475 (terminal_mod_SOURCES): Likewise.
35476 (ls_mod_SOURCES): Likewise.
35477 (cmp_mod_SOURCES): Likewise.
35478 (cat_mod_SOURCES): Likewise.
35479
35480 * normal/arg.c: New file.
35481 * kern/env.c: Likewise.
35482 * include/pupa/arg.h: Likewise.
35483 * include/pupa/env.h: Likewise.
35484 * font/manager.c (font_command): Changed to match argument parsing
35485 interface changes.
35486 (PUPA_MOD_INIT): Likewise.
35487 * hello/hello.c (pupa_cmd_hello): Likewise.
35488 (PUPA_MOD_INIT): Likewise.
35489 * include/pupa/disk.h: Include <pupa/device.h>.
35490 (pupa_print_partinfo): New prototype.
35491 * include/pupa/dl.h (pupa_dl_set_prefix): Prototype removed.
35492 (pupa_dl_get_prefix): Likewise.
35493 * include/pupa/misc.h: Include <pupa/err.h>.
35494 (pupa_isgraph): New prototype.
35495 (pupa_isdigit): Likewise.
35496 (pupa_split_cmdline): Likewise.
35497 * include/pupa/normal.h: Include <pupa/arg.h>.
35498 (pupa_command): Changed the prototype of the member `func' to
35499 match the argument parsing interface. Added member `options'.
35500 (pupa_register_command): Updated to match function.
35501 (pupa_arg_parse): New prototype.
35502 (pupa_hello_init) [PUPA_UTIL]: New prototype.
35503 (pupa_hello_fini) [PUPA_UTIL]: Likewise.
35504 (pupa_ls_init) [PUPA_UTIL]: Likewise.
35505 (pupa_ls_fini) [PUPA_UTIL]: Likewise.
35506 (pupa_cat_init) [PUPA_UTIL]: Likewise.
35507 (pupa_cat_fini) [PUPA_UTIL]: Likewise.
35508 (pupa_boot_init) [PUPA_UTIL]: Likewise.
35509 (pupa_boot_fini) [PUPA_UTIL]: Likewise.
35510 (pupa_cmp_init) [PUPA_UTIL]: Likewise.
35511 (pupa_cmp_fini) [PUPA_UTIL]: Likewise.
35512 (pupa_terminal_init) [PUPA_UTIL]: Likewise.
35513 (pupa_terminal_fini) [PUPA_UTIL]: Likewise.
35514 * kern/disk.c: Include <pupa/file.h>.
35515 (pupa_print_partinfo): New function.
35516 * kern/dl.c: Include <pupa/env.h>.
35517 (pupa_dl_dir): Variable removed.
35518 (pupa_dl_load): Use the environment variable `prefix' instead of
35519 the variable pupa_dl_dir.
35520 (pupa_dl_set_prefix): Function removed.
35521 (pupa_dl_get_prefix): Likewise.
35522 * kern/i386/pc/init.c: Include <pupa/env.h>.
35523 (pupa_machine_init): Use the environment variable `prefix' instead of
35524 using pupa_dl_set_prefix to set the prefix.
35525 * kern/main.c: Include <pupa/env.h>.
35526 (pupa_set_root_dev): Use the environment variable `prefix' instead of
35527 using pupa_dl_get_prefix to get the prefix.
35528 * kern/misc.c: Include <pupa/env.h>.
35529 (pupa_isdigit): New function.
35530 (pupa_isgraph): Likewise.
35531 (pupa_ftoa): Likewise.
35532 (pupa_vsprintf): Added support for printing values of the type
35533 `double'. Make it possible to format variable output when using
35534 formatting like `%1.2%f'.
35535 (pupa_split_cmdline): New function.
35536 * kern/rescue.c: Include <pupa/env.h>.
35537 (next_word): Removed function.
35538 (pupa_rescue_cmd_prefix): Likewise.
35539 (pupa_rescue_cmd_set): New function.
35540 (pupa_rescue_cmd_unset): New function.
35541 (pupa_enter_rescue_mode): Use the `pupa_split_cmdline' function to
35542 split the command line instead of splitting it here. Added
35543 support for setting variables using the syntax `foo=bar'. Don't
35544 initialize the prefix command anymore. Initialized the set and
35545 unset commands.
35546 * normal/cmdline.c: Include <pupa/env.h>.
35547 (pupa_tab_complete): Added prototypes for print_simple_completion,
35548 print_partition_completion, add_completion, iterate_commands,
35549 iterate_dev, iterate_part and iterate_dir. Moved code to print
35550 partition information from here to kern/disk.c.
fe6b695a 35551 (pupa_cmdline_run): Don't check if the function exists anymore.
db1771cf 35552 * normal/main.c: Include <pupa/env.h>.
35553 (pupa_rescue_cmd_normal): Use the environment variable `prefix'
35554 instead of using pupa_dl_get_prefix to get the prefix.
35555 * term/i386/pc/vga.c: Include <pupa/arg.h>.
35556 (check_vga_mem): Cast pointers to `void *' to silence a gcc
35557 warning.
35558 (pupa_vga_putchar) [! DEBUG_VGA]: Removed for this case.
35559 (pupa_vga_setcolor): Declare unused variables with `__attribute__
35560 ((unused))' to silence a gcc warning.
35561 (pupa_vga_setcolor): Likewise.
35562 (debug_command): Changed to match argument parsing
35563 interface changes.
35564 * util/pupa-emu.c: Include <pupa/env.h>.
35565 (options): Added 0's for unused fields to silence a gcc warning.
35566 (argp): Likewise.
35567 (main): Use the environment variable `prefix' instead of using
35568 pupa_dl_set_prefix to set the prefix. Initialize the commands ls,
35569 boot, cmp, cat and terminal. Finish the commands boot, cmp, cat
35570 and terminal.
35571
35572 * util/i386/pc/getroot.c: Include <pupa/i386/pc/util/biosdisk.h>.
35573 * util/misc.c: Include <malloc.h>.
35574 (pupa_malloc): Rewritten so errors are correctly reported.
35575 (pupa_realloc): Likewise.
35576 (pupa_memalign): Likewise.
35577 (pupa_mm_init_region): Declare unused variables with
35578 `__attribute__ ((unused))' to silence a gcc warning.
35579 * normal/i386/setjmp.S: Remove tab at the end of the file to
35580 silence a gcc warning.
35581 * loader/i386/pc/linux.c (pupa_rescue_cmd_initrd): Declare unused
35582 variables with `__attribute__ ((unused))' to silence a gcc
35583 warning.
35584 * loader/i386/pc/multiboot.c (pupa_multiboot_unload): Make the
35585 local variable i unsigned to silence a gcc warning.
35586
35587 * kern/term.c: Include <pupa/misc.h>.
35588 (pupa_more_lines): New variable.
35589 (pupa_more): Likewise.
35590 (pupa_putcode): When the pager is active pause at the end of every
35591 screen.
35592 (pupa_set_more): New function.
35593 * include/pupa/term.h (pupa_set_more): New prototype.
35594
35595
3b1139cb 355962004-03-07 Yoshinori K. Okuji <okuji@enbug.org>
35597
35598 Now this project is GRUB 2 rather than PUPA. The location of
35599 the CVS repository was moved to GRUB's.
f19dbdb7 35600
3b1139cb 35601 * configure.ac: Use bug-grub as the reporting address.
35602 Use GRUB instead of PUPA.
35603 Change the version number to 1.90.
35604
8367695c 356052004-02-24 Yoshinori K. Okuji <okuji@enbug.org>
35606
35607 * genkernsyms.sh: Updated copyright information.
35608 * genmk.rb: Likewise.
35609 * genmodsrc.sh: Likewise.
35610 * gensymlist.sh: Likewise.
35611 * boot/i386/pc/boot.S: Likewise.
35612 * boot/i386/pc/diskboot.S: Likewise.
35613 * disk/i386/pc/biosdisk.c: Likewise.
35614 * disk/i386/pc/partition.c: Likewise.
35615 * font/manager.c: Likewise.
35616 * fs/ext2.c: Likewise.
35617 * fs/fat.c: Likewise.
35618 * include/pupa/boot.h: Likewise.
35619 * include/pupa/device.h: Likewise.
35620 * include/pupa/disk.h: Likewise.
35621 * include/pupa/dl.h: Likewise.
35622 * include/pupa/elf.h: Likewise.
35623 * include/pupa/err.h: Likewise.
35624 * include/pupa/file.h: Likewise.
35625 * include/pupa/font.h: Likewise.
35626 * include/pupa/fs.h: Likewise.
35627 * include/pupa/kernel.h: Likewise.
35628 * include/pupa/loader.h: Likewise.
35629 * include/pupa/misc.h: Likewise.
35630 * include/pupa/mm.h: Likewise.
35631 * include/pupa/net.h: Likewise.
35632 * include/pupa/normal.h: Likewise.
35633 * include/pupa/rescue.h: Likewise.
35634 * include/pupa/setjmp.h: Likewise.
35635 * include/pupa/symbol.h: Likewise.
35636 * include/pupa/term.h: Likewise.
35637 * include/pupa/types.h: Likewise.
35638 * include/pupa/i386/setjmp.h: Likewise.
35639 * include/pupa/i386/types.h: Likewise.
35640 * include/pupa/i386/pc/biosdisk.h: Likewise.
35641 * include/pupa/i386/pc/boot.h: Likewise.
35642 * include/pupa/i386/pc/console.h: Likewise.
35643 * include/pupa/i386/pc/init.h: Likewise.
35644 * include/pupa/i386/pc/kernel.h: Likewise.
35645 * include/pupa/i386/pc/linux.h: Likewise.
35646 * include/pupa/i386/pc/loader.h: Likewise.
35647 * include/pupa/i386/pc/memory.h: Likewise.
35648 * include/pupa/i386/pc/multiboot.h: Likewise.
35649 * include/pupa/i386/pc/partition.h: Likewise.
35650 * include/pupa/i386/pc/time.h: Likewise.
35651 * include/pupa/i386/pc/vga.h: Likewise.
35652 * include/pupa/i386/pc/util/biosdisk.h: Likewise.
35653 * include/pupa/util/getroot.h: Likewise.
35654 * include/pupa/util/misc.h: Likewise.
35655 * include/pupa/util/resolve.h: Likewise.
35656 * kern/device.c: Likewise.
35657 * kern/disk.c: Likewise.
35658 * kern/dl.c: Likewise.
35659 * kern/err.c: Likewise.
35660 * kern/file.c: Likewise.
35661 * kern/fs.c: Likewise.
35662 * kern/loader.c: Likewise.
35663 * kern/main.c: Likewise.
35664 * kern/misc.c: Likewise.
35665 * kern/mm.c: Likewise.
35666 * kern/rescue.c: Likewise.
35667 * kern/term.c: Likewise.
35668 * kern/i386/dl.c: Likewise.
35669 * kern/i386/pc/init.c: Likewise.
35670 * kern/i386/pc/lzo1x.S: Likewise.
35671 * kern/i386/pc/startup.S: Likewise.
35672 * loader/i386/pc/chainloader.c: Likewise.
35673 * loader/i386/pc/linux.c: Likewise.
35674 * loader/i386/pc/multiboot.c: Likewise.
35675 * normal/cmdline.c: Likewise.
35676 * normal/command.c: Likewise.
35677 * normal/main.c: Likewise.
35678 * normal/menu.c: Likewise.
35679 * normal/i386/setjmp.S: Likewise.
35680 * term/i386/pc/console.c: Likewise.
35681 * term/i386/pc/vga.c: Likewise.
35682 * util/console.c: Likewise.
35683 * util/genmoddep.c: Likewise.
35684 * util/misc.c: Likewise.
35685 * util/pupa-emu.c: Likewise.
35686 * util/resolve.c: Likewise.
35687 * util/unifont2pff.rb: Likewise.
35688 * util/i386/pc/biosdisk.c: Likewise.
35689 * util/i386/pc/getroot.c: Likewise.
35690 * util/i386/pc/pupa-mkimage.c: Likewise.
35691 * util/i386/pc/pupa-setup.c: Likewise.
35692
e6eced71 356932004-02-15 Jeroen Dekkers <jeroen@dekkers.cx>
35694
35695 * fs/ext2.c (pupa_ext2_read_file): Correct the value of BLOCKEND
35696 when it is EXT2_BLOCK_SIZE (data). New argument READ_HOOK, all
35697 callers changed. Set DATA->DISK->READ_HOOK to READ_HOOK before
35698 reading and reset it after reading.
35699 (pupa_ext2_close): Return PUPA_ERR_NONE.
35700
35701 * include/pupa/i386/pc/linux.h (PUPA_LINUX_INITRD_MAX_ADDRESS):
35702 Correct value.
35703 (struct linux_kernel_header): Add kernel_version and
35704 initrd_addr_max.
35705 * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Check whether
35706 pupa_file_read succeeds.
35707 (pupa_rescue_cmd_initrd): Implement.
35708
5aded270 357092003-12-03 Marco Gerards <metgerards@student.han.nl>
35710
35711 * fs/ext2.c (pupa_ext2_label): New function.
35712 (pupa_ext2_fs): Added label.
35713 * fs/fat.c (pupa_fat_label): New function.
35714 (pupa_fat_fs): Added label.
35715 * include/pupa/fs.h (struct pupa_fs): Added prototype label.
35716
35717 * kern/misc.c (pupa_strndup): New function.
35718 * include/pupa/misc.h (pupa_strndup): New prototype.
35719
35720 * include/pupa/normal.h: Include <pupa/err.h>.
35721 (pupa_set_history): New prototype.
35722 (pupa_iterate_commands): New prototype.
35723 * normal/cmdline.c: Include <pupa/machine/partition.h>,
35724 <pupa/disk.h>, <pupa/file.h>.
35725 (hist_size): New variable.
35726 (hist_lines): Likewise.
35727 (hist_end): Likewise.
35728 (hist_used): Likewise.
35729 (pupa_set_history): New function.
35730 (pupa_history_get): Likewise.
35731 (pupa_history_add): Likewise.
35732 (pupa_history_replace): Likewise.
35733 (pupa_tab_complete): Likewise.
35734 (pupa_cmdline_run): Added tab completion and history buffer. Tab
35735 completion shows partitionnames while completing partitions, this
35736 feature was suggested by Jeff Bailey.
35737 * normal/command.c (pupa_iterate_commands): New function.
35738 * normal/main.c (PUPA_DEFAULT_HISTORY_SIZE): New macro.
35739 (pupa_normal_init): Initialize history buffer.
35740 (PUPA_MOD_INIT): Likewise.
35741 (pupa_normal_fini): Free the history buffer.
35742 (PUPA_MOD_FINI): Likewise.
35743
35744 * util/console.c (pupa_ncurses_getkey): Accept 127 as backspace
35745 key.
35746
35747 * aclocal.m4 (pupa_I386_CHECK_REGPARM_BUG): New DEFUN.
35748 * configure.ac [i386]: Check for regparam bug.
35749 (NESTED_FUNC_ATTR) [! i386]: Defined.
35750
1f7315a3 357512003-11-17 Marco Gerards <metgerards@student.han.nl>
35752
35753 * conf/i386-pc.rmk (sbin_UTILITIES): Added pupa-emu.
35754 (pupa_setup_SOURCES): Added util/i386/pc/getroot.c.
35755 (pupa_emu_SOURCES): New variable.
35756 (pupa_emu_LDFLAGS): Likewise.
35757 * include/pupa/fs.h (pupa_ext2_init) [PUPA_UTIL]: New prototype.
35758 (pupa_ext2_fini) [PUPA_UTIL]: Likewise.
35759 * include/pupa/normal.h (pupa_normal_init) [PUPA_UTIL]: Likewise.
35760 (pupa_normal_fini) [PUPA_UTIL]: Likewise.
35761 * include/pupa/setjmp.h [PUPA_UTIL]: Include <setjmp.h>.
35762 (pupa_jmp_buf): New typedef.
35763 (pupa_setjmp) [PUPA_UTIL]: New macro.
35764 (pupa_longjmp) [PUPA_UTIL]: Likewise.
35765 * include/pupa/term.h (struct pupa_term): New member `refresh'.
35766 (pupa_refresh): New prototype.
35767 * include/pupa/util/getroot.h: New file.
35768 * kern/misc.c (pupa_vsprintf): Refresh the screen after updating
35769 it.
35770 * kern/rescue.c (pupa_rescue_get_command_line): Likewise.
35771 (pupa_rescue_cmd_cat): Likewise.
35772 (pupa_rescue_cmd_ls): Likewise.
35773 (pupa_rescue_cmd_testload): Likewise.
35774 (pupa_rescue_cmd_lsmod): Likewise.
35775 * normal/cmdline.c (pupa_cmdline_get): Likewise.
35776 * normal/menu.c (run_menu): Likewise.
35777 * kern/term.c (pupa_cls): Likewise.
35778 (pupa_refresh): New function.
35779 * normal/normal.c (pupa_normal_init) [PUPA_UTIL]: New function.
35780 (pupa_normal_fini) [PUPA_UTIL]: Likewise.
35781 * util/console.c: New file.
f19dbdb7 35782
1f7315a3 35783 * util/i386/pc/getroot.c: New file.
35784 * util/i386/pc/pupa-setup.c: Include <pupa/util/getroot.h>.
35785 (pupa_putchar): New function.
35786 (pupa_refresh): Likewise.
35787 (xgetcwd): Function moved to ...
35788 (strip_extra_slashes): Likewise.
35789 (get_prefix): Likewise.
f19dbdb7 35790 * util/i386/pc/getroot.c: ... here.
1f7315a3 35791 (find_root_device): Function moved and renamed to...
35792 * util/i386/pc/getroot.c (pupa_find_root_device): ... here.
35793 Changed all callers.
35794 * util/i386/pc/pupa-setup.c (guess_root_device): Function moved
35795 and renamed to...
35796 * util/i386/pc/getroot.c (pupa_guess_root_device): ... here.
35797 Changed all callers.
35798 * util/misc.c (pupa_memalign): New function.
35799 (pupa_mm_init_region): Likewise.
35800 (pupa_register_exported_symbols): Likewise.
35801 (pupa_putchar): Function removed.
35802 * util/pupa-emu.c: New file.
35803
9a5c1ade 358042003-11-16 Jeroen Dekkers <jeroen@dekkers.cx>
35805
35806 * conf/i386-pc.rmk (pkgdata_MODULES): Add _multiboot.mod.
35807 (_multiboot_mod_SOURCES): New variable.
35808 (_multiboot_mod_CFLAGS): Likewise.
35809 * loader/i386/pc/multiboot.c: New file.
35810 * include/pupa/i386/pc/multiboot.h: Likewise.
35811 * kern/i386/pc/startup.S: Include pupa/machine/multiboot.h.
35812 (pupa_multiboot_real_boot): New function.
35813 * include/pupa/i386/pc/loader.h: Include pupa/machine/multiboot.h.
35814 (pupa_multiboot_real_boot): New prototype.
35815 (pupa_rescue_cmd_multiboot): Likewise
35816 (pupa_rescue_cmd_module): Likewise.
35817
35818 * kern/loader.c (pupa_loader_set): Continue when
35819 pupa_loader_unload_func() fails.
35820 (pupa_loader_unset): New function.
35821 * include/pupa/loader.h (pupa_loader_unset): New prototype.
35822
35823 * kern/misc.c (pupa_stpcpy): New function.
35824 * include/pupa/misc.h (pupa_stpcpy): New prototype.
35825
8e72a9c0 358262003-11-12 Marco Gerards <metgerards@student.han.nl>
35827
35828 * disk/i386/pc/biosdisk.c (pupa_biosdisk_open): Correctly check
35829 for available extensions.
35830
35831 * include/pupa/i386/pc/time.h: New file.
35832 * kern/disk.c: Include <pupa/machine/time.h>.
35833 (PUPA_CACHE_TIMEOUT): New macro.
35834 (pupa_last_time): New variable.
35835 (pupa_disk_open): Flush the cache when there was a timeout.
35836 (pupa_disk_close): Reset the timer.
35837 * kern/i386/pc/startup.S (pupa_get_rtc): Renamed from
35838 pupa_currticks.
35839 * util/misc.c: Include <sys/times.h>
35840 (pupa_get_rtc): New function.
35841
c4adbd32 358422003-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
35843
35844 * fs/ext2.c (struct pupa_ext2_inode): Declare struct datablocks
35845 as blocks.
35846 (pupa_ext2_get_file_block): Use blocks member.
35847
35848 * fs/ext2.c (pupa_ext2_read_file): Only set skipfirst for the
35849 first block. Return -1 instead of pupa_errno on error.
35850
bfd30f06 358512003-10-27 Marco Gerards <metgerards@student.han.nl>
35852
35853 * README: In the pupa-mkimage example use _chain instead of chain
35854 and ext2 instead of fat.
35855 * TODO: Replace ext2fs with jfs as an example. Add an item for
35856 adding journal playback for ext2fs.
35857 * conf/i386-pc.rmk (pupa_setup_SOURCES): Added fs/ext2.c.
35858 (pkgdata_MODULES): Added ext2.mod.
35859 (ext2_mod_SOURCES): New variable.
35860 (ext2_mod_CFLAGS): Likewise.
35861 * include/pupa/err.h (pupa_err_t): Added PUPA_ERR_SYMLINK_LOOP.
35862 * include/pupa/misc.h (pupa_strncpy): New prototype.
35863 (pupa_strcat): Likewise.
35864 (pupa_strncmp): Likewise.
35865 * kern/misc.c (pupa_strcat): Enable function.
35866 (pupa_strncpy): New function.
35867 (pupa_strncmp): Likewise.
35868 * fs/ext2.c: New file.
f19dbdb7 35869
bfd30f06 35870 * kern/disk.c (pupa_disk_read): Set pupa_errno to PUPA_ERR_NONE
35871 when the read failed before retrying.
35872 * util/i386/pc/biosdisk.c (_LARGEFILE_SOURCE): Removed.
35873 (_FILE_OFFSET_BITS): Likewise.
35874 * configure.ac: Added AC_SYS_LARGEFILE.
35875
98d15063 358762003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
35877
35878 * genmk.rb (PModule#rule): Make sure to get only symbol names
35879 from the output of nm.
59cad637 35880 Reported by Robert Millan <rmh.grub@aybabtu.com>.
98d15063 35881
18d9c7cd 358822003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
35883
35884 I forgot to check in these changes for a long time. This adds
35885 incomplete support for VGA console, and this is still very
35886 buggy. Also, a lot of consideration is required for I18N,
35887 UNICODE, and VGA font issues. Therefore, assume that this is
35888 such that "better than nothing".
f19dbdb7 35889
18d9c7cd 35890 * font/manager.c: New file.
35891 * include/pupa/font.h: Likewise.
35892 * include/pupa/i386/pc/vga.h: Likewise.
35893 * term/i386/pc/vga.c: Likewise.
35894 * util/unifont2pff.rb: Likewise.
35895
35896 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vga.h.
35897 (pkgdata_MODULES): Added vga.mod and font.mod.
35898 (vga_mod_SOURCES): New variables.
35899 (vga_mod_CFLAGS): Likewise.
35900 (font_mod_SOURCES): Likewise.
35901 (font_mod_CFLAGS): Likewise.
35902
35903 * include/pupa/err.h (PUPA_ERR_BAD_FONT): New constant.
35904
35905 * include/pupa/term.h: Include pupa/err.h.
f19dbdb7 35906 (struct pupa_term): Added init and fini.
18d9c7cd 35907 Changed the argument of putchar to pupa_uint32_t.
35908
35909 * include/pupa/i386/pc/console.h: Include pupa/symbol.h.
35910 (pupa_console_real_putchar): New prototype.
35911 (pupa_console_putchar): Removed.
35912 (pupa_console_checkkey): Exported.
35913 (pupa_console_getkey): Likewise.
35914
35915 * kern/misc.c (pupa_vsprintf): Add support for UNICODE
35916 characters.
35917
35918 * kern/term.c (pupa_term_set_current): Rewritten.
35919 (pupa_putchar): Likewise.
35920 (pupa_putcode): New function.
35921
35922 * kern/i386/pc/startup.S (pupa_console_putchar): Renamed to ...
35923 (pupa_console_real_putchar): ... this.
35924 (pupa_vga_set_mode): New function.
35925 (pupa_vga_get_font): Likewise.
35926
35927 * normal/command.c: Include pupa/term.h.
35928 (terminal_command): New function.
35929 (pupa_command_init): Register the command "terminal".
35930
35931 * normal/menu.c (DISP_LEFT): Changed to a UNICODE value.
35932 (DISP_UP): Likewise.
35933 (DISP_RIGHT): Likewise.
35934 (DISP_DOWN): Likewise.
35935 (DISP_HLINE): Likewise.
35936 (DISP_VLINE): Likewise.
35937 (DISP_UL): Likewise.
35938 (DISP_UR): Likewise.
35939 (DISP_LL): Likewise.
35940 (DISP_LR): Likewise.
35941
35942 * term/i386/pc/console.c (pupa_console_putchar): New function.
f19dbdb7 35943
977329f5 359442003-02-08 NIIBE Yutaka <gniibe@m17n.org>
35945
35946 * util/resolve.c (pupa_util_resolve_dependencies): BUG
35947 FIX. Reverse the path_list.
35948
35949 * include/pupa/normal.h: Export pupa_register_command and
35950 pupa_unregister_command.
35951
35952 * hello/hello.c (pupa_cmd_hello): New module.
35953 * conf/i386-pc.rmk: Added hello.mod.
35954
1f5ab428 359552003-01-31 Yoshinori K. Okuji <okuji@enbug.org>
35956
35957 * kern/i386/pc/lzo1x.S: New file.
f19dbdb7 35958
1f5ab428 35959 * util/i386/pc/pupa-mkimage.c: Include lzo1x.h.
35960 (compress_kernel): New variable.
35961 (generate_image): Heavily modified to support compressing a
35962 large part of the core image.
35963
35964 * util/misc.c (pupa_util_read_image): Fix a file descriptor
35965 leak.
35966 (pupa_util_load_image): New function.
35967
35968 * kern/i386/pc/startup.S: Include pupa/machine/kernel.h.
35969 (pupa_compressed_size): New variable.
35970 (codestart): Enable Gate A20 here.
35971 Decompress the compressed part of the core image.
35972 Rearrange the code to put functions and variables which are
35973 required for initialization in the non-compressed part.
35974 Include lzo1x.S.
35975
35976 * kern/i386/pc/init.c (pupa_machine_init): Don't enable Gate A20
35977 here.
35978
35979 * include/pupa/util/misc.h (pupa_util_write_image): Declared.
35980
f19dbdb7 35981 * include/pupa/i386/pc/kernel.h
1f5ab428 35982 (PUPA_KERNEL_MACHINE_COMPRESSED_SIZE): New macro.
35983 (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): Increased by 4.
35984 (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
35985 (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
35986 (PUPA_KERNEL_MACHINE_RAW_SIZE): New macro.
35987
35988 * conf/i386-pc.rmk (pupa_mkimage_LDFLAGS): New variable.
35989
35990 * genmk.rb (Image#rule): Put LDFLAGS at the end of a line.
35991 (Utility#rule): Likewise.
35992
35993 * configure.ac: Check if LZO is available.
35994
ce5bf700 359952003-01-20 Yoshinori K. Okuji <okuji@enbug.org>
35996
35997 * include/pupa/normal.h: New file.
35998 * include/pupa/setjmp.h: Likewise.
35999 * include/pupa/i386/setjmp.h: Likewise.
36000 * normal/cmdline.c: Likewise.
36001 * normal/command.c: Likewise.
36002 * normal/main.c: Likewise.
36003 * normal/menu.c: Likewise.
36004 * normal/i386/setjmp.S: Likewise.
f19dbdb7 36005
ce5bf700 36006 * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Made global.
36007 (pupa_rescue_cmd_initrd): Likewise.
36008
36009 * loader/i386/pc/chainloader.c (pupa_rescue_cmd_chainloader):
36010 Likewise.
36011
36012 * kern/i386/pc/startup.S (translation_table): New variable.
36013 (translate_keycode): New function.
36014 (pupa_console_getkey): Call translate_keycode.
36015
36016 * kern/rescue.c (attempt_normal_mode): New function.
36017 (pupa_enter_rescue_mode): Attempt to execute the normal mode. If
36018 it failed, print a message.
36019
36020 * kern/mm.c (pupa_real_malloc): Print more information when a
36021 free magic is broken.
36022 (pupa_free): If the first free header is not free actually, set
36023 it to P.
36024
36025 * kern/main.c (pupa_load_normal_mode): Just load the module
36026 "normal".
36027 (pupa_main): Don't print the message
36028 "Entering into rescue mode..." here.
36029
36030 * include/pupa/i386/pc/loader.h (pupa_rescue_cmd_initrd):
36031 Declared.
36032 (pupa_rescue_cmd_initrd): Likewise.
36033 (pupa_rescue_cmd_initrd): Likewise.
36034
36035 * include/pupa/symbol.h (FUNCTION): Specify the type.
36036 (VARIABLE): Likewise.
36037
36038 * include/pupa/err.h (pupa_err_t): Added
36039 PUPA_ERR_UNKNOWN_COMMAND.
36040
36041 * include/pupa/dl.h (pupa_dl_set_prefix): Exported.
36042 (pupa_dl_get_prefix): Likewise.
36043
36044 * conf/i386-pc.rmk (pkgdata_MODULES): Added normal.mod.
36045 Added _chain.mod and _linux.mod instead of chain.mod and
36046 linux.mod.
36047 (chain_mod_SOURCES): Renamed to ...
36048 (_chain_mod_SOURCES): ... this.
36049 (chain_mod_CFLAGS): Renamed to ...
36050 (_chain_mod_CFLAGS): ... this.
36051 (linux_mod_SOURCES): Renamed to ...
36052 (_linux_mod_SOURCES): ... this.
36053 (linux_mod_CFLAGS): Renamed to ...
36054 (_linux_mod_CFLAGS): ... this.
36055 (normal_mod_SOURCES): New variable.
36056 (normal_mod_CFLAGS): Likewise.
36057 (normal_mod_ASFLAGS): Likewise.
36058
360592003-01-18 Yoshinori K. Okuji <okuji@enbug.org>
36060
36061 * kern/rescue.c (pupa_rescue_cmd_rmmod): Call pupa_dl_unload, if
36062 possible.
36063
fe6b695a 36064 * kern/dl.c (pupa_dl_ref): Refer depending modules
ce5bf700 36065 recursively.
36066 (pupa_dl_unref): Unrefer depending modules recursively.
36067 Don't call pupa_dl_unload implicitly, because PUPA can crash if
36068 a module is unloaded before one depending on that module is
36069 unloaded.
36070 (pupa_dl_unload): Unload depending modules explicitly,
36071 if possible.
36072
c04da074 360732003-01-17 Yoshinori K. Okuji <okuji@enbug.org>
36074
36075 * include/pupa/i386/pc/linux.h: New file.
36076 * loader/i386/pc/linux.c: Likewise.
f19dbdb7 36077
c04da074 36078 * loader/i386/pc/chainloader.c (pupa_chainloader_boot_sector):
36079 Removed.
36080 (pupa_chainloader_unload): Return PUPA_ERR_NONE.
36081 (pupa_rescue_cmd_chainloader): Read the image to 0x7C00 instead
36082 of PUPA_CHAINLOADER_BOOT_SECTOR.
36083
36084 * kern/i386/pc/startup.S: Include pupa/machine/linux.h.
36085 (pupa_linux_prot_size): New variable.
36086 (pupa_linux_tmp_addr): Likewise.
36087 (pupa_linux_real_addr): Likewise.
36088 (pupa_linux_boot_zimage): New function.
36089 (pupa_linux_boot_bzimage): Likewise.
36090
36091 * kern/i386/pc/init.c (struct mem_region): New structure.
36092 (MAX_REGIONS): New macro.
36093 (mem_regions): New variable.
36094 (num_regions): Likewise.
36095 (pupa_os_area_addr): Likewise.
36096 (pupa_os_area_size): Likewise.
36097 (pupa_lower_mem): Likewise.
36098 (pupa_upper_mem): Likewise.
36099 (add_mem_region): New function.
36100 (compact_mem_regions): Likewise.
36101 (pupa_machine_init): Set PUPA_LOWER_MEM and PUPA_UPPER_MEM to
36102 the size of the conventional memory and that of so-called upper
36103 memory (before the first memory hole).
36104 Instead of adding each found region to free memory, use
36105 add_mem_region and add them after removing overlaps.
36106 Also, add only 1/4 of the upper memory to free memory. The rest
36107 is used for loading OS images. Maybe this is ad hoc, but this
36108 makes it much easier to relocate OS images when booting.
36109
36110 * kern/rescue.c (pupa_rescue_cmd_module): Removed.
36111 (pupa_enter_rescue_mode): Don't register initrd and module.
36112
36113 * kern/mm.c: Include pupa/dl.h.
36114
36115 * kern/main.c: Include pupa/file.h and pupa/device.h.
36116
36117 * kern/loader.c (pupa_loader_load_module_func): Removed.
36118 (pupa_loader_load_module): Likewise.
36119
36120 * kern/dl.c (pupa_dl_load): Use the suffix ``.mod'' instead of
36121 ``.o''.
36122
36123 * include/pupa/i386/pc/loader.h (pupa_linux_prot_size): Declared.
36124 (pupa_linux_tmp_addr): Likewise.
36125 (pupa_linux_real_addr): Likewise.
36126 (pupa_linux_boot_zimage): Likewise.
36127 (pupa_linux_boot_bzimage): Likewise.
36128
36129 * include/pupa/i386/pc/init.h (pupa_lower_mem): Declared.
36130 (pupa_upper_mem): Likewise.
36131 (pupa_gate_a20): Don't export, because turning off Gate A20 in a
36132 module is too dangerous.
36133
36134 * include/pupa/loader.h (pupa_os_area_addr): Declared.
36135 (pupa_os_area_size): Likewise.
36136 (pupa_loader_set): Remove the first argument. Loader doesn't
36137 manage modules or initrd any longer.
36138 (pupa_loader_load_module): Removed.
36139
36140 * conf/i386-pc.rmk (pkgdata_MODULES): Added linux.mod.
36141 (linux_mod_SOURCES): New variable.
36142 (linux_mod_CFLAGS): Likewise.
36143
a13f9237 361442003-01-07 Yoshinori K. Okuji <okuji@enbug.org>
36145
36146 * util/i386/pc/pupa-setup.c (setup): Convert the endianness of
36147 the length of a blocklist correctly.
36148
36149 * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open) [__linux__]:
36150 Use ioctl only if the OS file is a block device.
36151 (pupa_util_biosdisk_open): Don't use ST.ST_BLOCKS, because it is
36152 not very useful for normal files.
36153
36154 * kern/main.c (pupa_set_root_dev): New function.
36155 (pupa_load_normal_mode): Likewise.
36156 (pupa_main): Call those above.
36157
36158 * include/pupa/types.h (pupa_swap_bytes16): Cast the result to
36159 pupa_uint16_t.
36160
36161 * include/pupa/kernel.h (pupa_enter_normal_mode): Removed.
36162
a5ffe966 361632003-01-06 Yoshinori K. Okuji <okuji@enbug.org>
36164
36165 * util/i386/pc/pupa-setup.c: Include pupa/machine/kernel.h.
36166 (setup): Configure the installed partition information and the
36167 dl prefix.
36168
36169 * loader/i386/pc/chainloader.c (my_mod): New variable.
36170 (pupa_chainloader_unload): New function.
36171 (pupa_rescue_cmd_chainloader): Refer itself.
36172 (PUPA_MOD_INIT): Save its own module in MY_MOD.
36173
36174 * kern/i386/pc/startup.S (install_partition): Removed.
36175 (version_string): Likewise.
36176 (config_file): Likewise.
36177 (pupa_install_dos_part): New variable.
36178 (pupa_install_bsd_part): Likewise.
36179 (pupa_prefix): Likewise.
36180 (pupa_chainloader_real_boot): Call pupa_dl_unload_all.
36181
36182 * kern/i386/pc/init.c: Include pupa/machine/kernel.h, pupa/dl.h
36183 and pupa/misc.h.
36184 (make_install_device): New function.
36185 (pupa_machine_init): Set the dl prefix.
36186
36187 * kern/rescue.c: Include pupa/rescue.h and pupa/dl.h.
36188 (buf): Renamed to ...
36189 (linebuf): ... this.
36190 (pupa_rescue_cmd_prefix): New function.
36191 (pupa_rescue_cmd_insmod): Likewise.
36192 (pupa_rescue_cmd_rmmod): Likewise.
36193 (pupa_rescue_cmd_lsmod): Likewise.
36194 (pupa_enter_rescue_mode): Register new commands: prefix, insmod,
36195 rmmod and lsmod.
36196
36197 * kern/mm.c (pupa_memalign): If failed even after invalidating
36198 disk caches, unload unneeded modules and retry.
36199
36200 * kern/misc.c (pupa_memmove): New function.
36201 (pupa_memcpy): Removed.
36202 (pupa_strcpy): New function.
36203 (pupa_itoa): Made static.
36204
36205 * kern/dl.c (pupa_dl_iterate): New function.
36206 (pupa_dl_ref): Likewise.
36207 (pupa_dl_unref): Likewise.
36208 (pupa_dl_unload): Return if succeeded or not.
36209 (pupa_dl_unload_unneeded): New function.
36210 (pupa_dl_unload_all): Likewise.
36211 (pupa_dl_init): Renamed to ...
36212 (pupa_dl_set_prefix): ... this.
36213 (pupa_dl_get_prefix): New function.
36214
36215 * include/pupa/i386/pc/kernel.h: Include pupa/types.h.
36216 (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): New macro.
36217 (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
36218 (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
36219 (pupa_install_dos_part): Declared.
36220 (pupa_install_bsd_part): Likewise.
36221 (pupa_prefix): Likewise.
36222 (pupa_boot_drive): Likewise.
36223
36224 * include/pupa/types.h: Fix a typo.
36225
36226 * include/pupa/misc.h (pupa_memcpy): New macro. Just an alias to
36227 pupa_memmove.
36228 (pupa_memmove): Declared.
36229 (pupa_strcpy): Likewise.
36230
36231 * include/pupa/dl.h (PUPA_MOD_INIT): Change the prototype. Now
36232 pupa_mod_init takes one argument, its own module.
36233 (pupa_dl_unload_unneeded): Declared.
36234 (pupa_dl_unload_all): Likewise.
36235 (pupa_dl_ref): Likewise.
36236 (pupa_dl_unref): Likewise.
36237 (pupa_dl_iterate): Likewise.
36238 (pupa_dl_init): Renamed to ...
36239 (pupa_dl_set_prefix): ... this.
36240 (pupa_dl_get_prefix): Declared.
36241
36242 * fs/fat.c [!PUPA_UTIL] (my_mod): New variable.
f19dbdb7 36243 (pupa_fat_dir) [!PUPA_UTIL]: Prevent the fat module from being
a5ffe966 36244 unloaded.
36245 (pupa_fat_open) [!PUPA_UTIL]: Refer itself if succeeded.
36246 (pupa_fat_close) [!PUPA_UTIL]: Unrefer itself.
36247
36248 * configure.ac (tmp_CFLAGS): Added -Wshadow, -Wpointer-arith,
36249 -Wmissing-prototypes, -Wundef and -Wstrict-prototypes.
36250
012d7999 362512003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
36252
36253 * util/i386/pc/pupa-setup.c (setup): Define the internal
36254 function find_first_partition_start at the top level, because GCC
36255 3.0.x cannot compile internal functions in deeper scopes
36256 correctly.
36257 (find_root_device): Use lstat instead of stat.
36258 Don't follow symbolic links.
36259 Fix the path-constructing code.
36260
36261 * util/i386/pc/biosdisk.c [__linux__] (BLKFLSBUF): New macro.
36262 (pupa_util_biosdisk_open) [__linux__]: Get the size of a device
36263 by a BLKGETSIZE ioctl first, because block devices don't fill
36264 the member st_mode of the structure stat on Linux.
36265 [__linux__] (linux_find_partition): Use a temporary buffer
36266 REAL_DEV for the working space. Copy it to DEV before returning.
36267 (open_device) [__linux__]: Call ioctl with BLKFLSBUF to make the
36268 buffer cache consistent.
36269 (get_os_disk) [__linux__]: Use the length 5 instead of 4 for
36270 strncmp. The previous value was merely wrong.
36271 (pupa_util_biosdisk_get_pupa_dev): Use stat instead of lstat.
36272
36273 * fs/fat.c (pupa_fat_read_data): Shift 4 instead of 12 when the
36274 FAT size is 12. The previous value was merely wrong.
36275
36276 * kern/main.c (pupa_main): Don't split the starting message from
36277 newlines.
36278
36279 * kern/term.c (pupa_putchar): Put CR after LF instead of before
36280 LF, because BIOS goes crazy about character attributes in this
36281 case.
36282
1cc73a62 362832003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
36284
36285 * include/i386/pc/util/biosdisk.h: New file.
36286 * util/i386/pc/biosdisk.c: Likewise.
36287 * util/i386/pc/pupa-setup.c: Likewise.
f19dbdb7 36288
1cc73a62 36289 * Makefile.in (INCLUDE_DISTFILES): Added
36290 include/pupa/i386/pc/util/biosdisk.h.
36291 (UTIL_DISTFILES): Added biosdisk.c and pupa-setup.c under the
36292 directory util/i386/pc.
36293 (install-local): Added a rule for sbin_UTILITIES.
36294 (uninstall): Likewise.
36295
36296 * util/i386/pc/pupa-mkimage.c (usage): Fix a typo in the doc.
36297
36298 * util/misc.c (xrealloc): New function.
36299 (pupa_malloc): Likewise.
36300 (pupa_free): Likewise.
36301 (pupa_realloc): Likewise.
36302 (pupa_stop): Likewise.
36303 (pupa_putchar): Likewise.
36304
36305 * kern/disk.c (pupa_disk_read): Prevent L from underflowing.
36306
36307 * include/pupa/util/misc.h (xrealloc): Declared.
36308
36309 * include/pupa/i386/pc/boot.h (PUPA_BOOT_MACHINE_BPB_START): New
36310 macro.
36311 (PUPA_BOOT_MACHINE_BPBEND): Renamed to ...
36312 (PUPA_BOOT_MACHINE_BPB_END): ... this.
36313
36314 * include/pupa/fs.h [PUPA_UTIL] (pupa_fat_init): Declared.
36315 [PUPA_UTIL] (pupa_fat_fini): Likewise.
36316
36317 * fs/fat.c [PUPA_UTIL] (pupa_fat_init): Defined. Maybe a better
36318 way should be implemented.
36319 [PUPA_UTIL] (pupa_fat_fini): Likewise.
36320
36321 * disk/i386/pc/biosdisk.c (pupa_biosdisk_call_hook): Increase
36322 the size of NAME for safety.
36323 (pupa_biosdisk_iterate): Search hard disks to 0x90 instead of
36324 0x88.
36325
36326 * conf/i386-pc.rmk (sbin_UTILITIES): New variable.
36327 (pupa_setup_SOURCES): Likewise.
36328
36329 * genmk.rb (Utility#rule): Add $(BUILD_CFLAGS) into the rules.
36330
08b70fe8 363312002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
36332
36333 * kern/i386/pc/startup.S (push_get_mmap_entry): Revert to a
36334 bunch of pushl's from pusha, because this destroys the return
36335 value.
36336
62ddcc8f 363372002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
36338
36339 Use -mrtd and -mregparm=3 to reduce the generated code sizes.
36340 This means that any missing prototypes could be fatal. Also, you
36341 must take care when writing assembly code. See the comments at
36342 the beginning of startup.S, for more details.
f19dbdb7 36343
62ddcc8f 36344 * kern/i386/pc/startup.S (pupa_halt): Modified for the new
36345 compilation mechanism.
36346 (pupa_chainloader_real_boot): Likewise.
36347 (pupa_biosdisk_rw_int13_extensions): Likewise.
36348 (pupa_biosdisk_rw_standard): Likewise.
36349 (pupa_biosdisk_check_int13_extensions): Likewise.
36350 (pupa_biosdisk_get_diskinfo_int13_extensions): Likewise.
36351 (pupa_biosdisk_get_diskinfo_standard): Likewise.
36352 (pupa_get_memsize): Likewise.
36353 (pupa_get_mmap_entry): Likewise.
36354 (pupa_console_putchar): Likewise.
36355 (pupa_console_setcursor): Likewise.
36356 (pupa_getrtsecs): Use pushl instead of push.
36357
36358 * kern/i386/pc/init.c (pupa_machine_init): Use the scratch
36359 memory instead of the stack for a mmap entry, because some
36360 BIOSes may ignore the maximum size and overflow.
36361
36362 * conf/i386-pc.rmk (COMMON_CFLAGS): Added -mrtd and -mregparm=3.
36363
36364 * genmk.rb (PModule#rule): Compile automatically generated
36365 sources with module-specific CFLAGS as well as other sources.
36366
9962ed99 363672002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
36368
36369 * configure.ac: Check ld.
36370 Replace CFLAGS and CPPFLAGS with BUILD_CFLAGS and BUILD_CPPFLAGS
36371 respectively, before checking endianness and sizes.
36372
36373 * Makefile.in (LD): New variable.
f19dbdb7 36374
abdfc3c5 363752002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
36376
36377 * Makefile.in (BUILD_CC): CC -> BUILD_CC.
36378
6a161fa9 363792002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
36380
36381 * Changelog: New file.
36382