]> git.proxmox.com Git - grub2.git/blame - ChangeLog
* configure.ac: Check for __ctzdi2 and __ctzsi2.
[grub2.git] / ChangeLog
CommitLineData
2afb7f6c
VS
12011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
2
3 * configure.ac: Check for __ctzdi2 and __ctzsi2.
4 * include/grub/libgcc.h: Include __ctzdi2 and __ctzsi2 if present.
5
366e34fa
VS
62011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
7
8 Fix few obvious type discrepancies.
9
10 * grub-core/fs/affs.c (grub_affs_read_file): Use grub_off_t for offset.
11 * grub-core/fs/afs.c (grub_afs_read_file): Likewise.
12 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Remove leftover
13 variable.
14 * grub-core/fs/hfs.c (grub_hfs_read_file): Use grub_off_t for offset
15 and connected types.
16 * grub-core/fs/nilfs2.c (grub_nilfs2_read_file): Use grub_off_t for
17 offset.
18 (grub_nilfs2_iterate_dir): Use grub_off_t for fpos.
19 * grub-core/fs/sfs.c (grub_sfs_read_file): Use grub_off_t for offset.
20 * grub-core/fs/ufs.c (grub_ufs_read_file): Use grub_off_t for offset
21 and connected types.
22
177b960e
VS
232011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
24
25 Fix python 3.x incompatibilities.
26
27 * gentpl.py: Put brackets around print strings.
28 * util/import_gcry.py: Open explicitly as utf-8.
29 Use in instead of has_key.
30
3b619ae1
VS
312011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
32
33 * grub-core/fs/xfs.c (grub_xfs_inode): New field fork_offset.
34 (GRUB_XFS_INO_AGBITS): Make into inline function.
35 (GRUB_XFS_INO_INOINAG): Likewise.
36 (GRUB_XFS_INO_AG): Likewise.
37 (GRUB_XFS_FSB_TO_BLOCK): Likewise.
38 (GRUB_XFS_EXTENT_OFFSET): Likewise.
39 (GRUB_XFS_EXTENT_BLOCK): Likewise.
40 (GRUB_XFS_EXTENT_SIZE): Likewise.
41 (GRUB_XFS_ROUND_TO_DIRENT): Likewise.
42 (GRUB_XFS_NEXT_DIRENT): Likewise.
43 (grub_xfs_read_block): Rewrite the btree parsing. Fixes invalid BMAP.
44 (grub_xfs_read_file): Fix offset type.
45
8bcebcb8
RM
462011-10-15 Robert Millan <rmh@gnu.org>
47
48 * util/getroot.c (grub_util_get_grub_dev): Fix OS selection #ifdefs.
49
0017e5ef
RM
502011-10-15 Robert Millan <rmh@gnu.org>
51
52 Fix build problem on FreeBSD and GNU/kFreeBSD.
53
54 * util/getroot.c [__FreeBSD_kernel__]: Include `<sys/mount.h>'.
55
d8919552
VS
562011-10-14 Vladimir Serbinenko <phcoder@gmail.com>
57
58 Fix overflow with >2GiB file on HFS+. >4GiB wasn't tested.
59
60 * grub-core/fs/hfsplus.c (grub_hfsplus_btree): Use more appropriate
61 types.
62 (grub_hfsplus_btree_recoffset): Likewise.
63 (grub_hfsplus_btree_recptr): Likewise.
64 (grub_hfsplus_find_block): Likewise.
65 (grub_hfsplus_btree_search): Likewise.
66 (grub_hfsplus_read_block): Likewise.
67 (grub_hfsplus_read_file): Likewise.
68 (grub_hfsplus_mount): Likewise.
69 (grub_hfsplus_btree_iterate_node): Likewise.
70 (grub_hfsplus_btree_search): Likewise.
71 (grub_hfsplus_iterate_dir): Likewise.
72 (grub_hfsplus_read): A small code simplification.
73
c81296b6
VS
742011-10-14 Vladimir Serbinenko <phcoder@gmail.com>
75
76 * grub-core/kern/emu/hostdisk.c
77 (convert_system_partition_to_system_disk): Don't assume that children
78 of mapper nodes are mapper nodes.
79
0eb8ffb1
VS
802011-10-14 Vladimir Serbinenko <phcoder@gmail.com>
81
82 * grub-core/lib/posix_wrap/ctype.h (isxdigit): Use grub_isxdigit.
83 * include/grub/misc.h (grub_isxdigit): New function.
84 * grub-core/video/colors.c (my_isxdigit): Removed. All users
85 switched to grub_isxdigit.
86 * grub-core/term/serial.c (grub_serial_find): Fix in case of port
87 number starting with a letter.
88
a98f4a08
RM
892011-10-09 Robert Millan <rmh@gnu.org>
90
91 LVM support for FreeBSD and GNU/kFreeBSD.
92
93 * util/lvm.c (grub_util_lvm_isvolume): Enable on FreeBSD and
94 GNU/kFreeBSD.
95 (LVM_DEV_MAPPER_STRING): Move from here ...
96 * include/grub/util/lvm.h (LVM_DEV_MAPPER_STRING): ... to here.
97 * util/getroot.c: Include `<grub/util/lvm.h>'.
98 (grub_util_get_dev_abstraction): Enable
99 grub_util_biosdisk_is_present() on FreeBSD and GNU/kFreeBSD.
100 Check for LVM abstraction on FreeBSD and GNU/kFreeBSD.
101 (grub_util_get_grub_dev): Replace "/dev/mapper/" with
102 `LVM_DEV_MAPPER_STRING'. Enable LVM and mdRAID only on platforms that
103 support it.
104 * util/grub-setup.c (main): Check for LVM also on FreeBSD and
105 GNU/kFreeBSD.
106 * util/grub.d/10_kfreebsd.in: Load `geom_linux_lvm' kernel module
107 when LVM abstraction is required for ${GRUB_DEVICE}.
108
050e8e90
SJ
1092011-10-06 Szymon Janc <szymon@janc.net.pl>
110
111 Add support for LZO compression in GRUB:
112 - import of minilzo library,
113 - LZO decompression for btrfs,
114 - lzop files decompression.
115
116 * grub-core/io/lzopio.c: New file.
117 * grub-core/lib/adler32.c: Likewise.
118 * grub-core/lib/minilzo/lzoconf.h: Likewise.
119 * grub-core/lib/minilzo/lzodefs.h: Likewise.
120 * grub-core/lib/minilzo/minilzo.c: Likewise.
121 * grub-core/lib/minilzo/minilzo.h: Likewise.
122 * Makefile.util.def (libgrubmods.a): Add grub-core/io/lzopio.c,
123 grub-core/lib/adler32.c, grub-core/io/lzopio.c,
124 grub-core/lib/minilzo/minilzo.c to common.
125 * Makefile.util.def (libgrubmods.a): Add flags required by minilzo to
126 cflags in cppflags.
127 * grub-core/Makefile.core.def (btrfs): Likewise.
128 * grub-core/Makefile.core.def (lzopio): New module.
129 (adler32): Likewise.
130 * grub-core/fs/btrfs.c: Include minilzo.h.
131 (GRUB_BTRFS_COMPRESSION_LZO): New define.
132 (GRUB_BTRFS_LZO_BLOCK_SIZE): Likewise.
133 (GRUB_BTRFS_LZO_BLOCK_MAX_CSIZE): Likewise.
134 (grub_btrfs_lzo_decompress): New function.
135 (grub_btrfs_extent_read): Add support for LZO compression type.
136 * include/grub/types.h (GRUB_UCHAR_MAX): New define.
137 (GRUB_USHRT_MAX): Likewise.
138 (GRUB_UINT_MAX): Likewise.
139 * grub-core/lib/posix_wrap/limits.h (USHRT_MAX): Likewise.
140 (UINT_MAX): Likewise.
141 (CHAR_BIT): Likewise.
142 * grub-core/lib/posix_wrap/sys/types.h (ULONG_MAX): Moved to
143 grub-core/lib/posix_wrap/limits.h
144 (UCHAR_MAX): Likewise.
145 * include/grub/file.h (grub_file_filter_id): New compression filter
146 GRUB_FILE_FILTER_LZOPIO.
147 * include/grub/file.h (grub_file_filter_id): Set
148 GRUB_FILE_FILTER_LZOPIO as GRUB_FILE_FILTER_COMPRESSION_LAST.
149 * include/grub/types.h (grub_get_unaligned16): New function.
150 (grub_get_unaligned32): Likewise.
151 (grub_get_unaligned64): Likewise.
152 * util/import_gcry.py (cryptolist): Add adler32.
153
0eb8ffb1
VS
1542011-10-05 Vladimir Serbinenko <phcoder@gmail.com>
155
156 * grub-core/Makefile.core.def: Eliminate rarely used emu_condition. This
157 in perspective decreases the complexity of build system and fixes
158 compilation right now.
159
ce79cc99 1602011-10-01 Ales Nesrsta <starous@volny.cz>
161
162 * grub-core/bus/usb/uhci.c: Changes made by Rock Cui - thanks!
163 (fixed problem related to using UHCI with coreboot).
164
8667a314
BC
1652011-08-25 BVK Chaitanya <bvk.groups@gmail.com>
166
167 * gentpl.py: Use Autogen macros so that the output template file
168 (Makefile.tpl) size is reduced.
169
fc5efcc0
MK
1702011-09-29 Mads Kiilerich <mads@kiilerich.com>
171
172 * grub-core/Makefile.core.def (kernel): Add kern/i386/int.S to
173 extra_dist.
174
d1ab689d
ML
1752011-09-29 Mario Limonciello <mario_limonciello@dell.com>
176
177 * util/misc.c (grub_util_get_disk_size) [__MINGW32__]: Strip trailing
178 slashes on PHYSICALDRIVE%d paths when making Windows CreateFile calls.
179
c05de032
ML
1802011-09-29 Mario Limonciello <mario_limonciello@dell.com>
181
182 * grub-core/kern/emu/misc.c (canonicalize_file_name) [__MINGW32__]: Use
183 _fullpath.
184
cca7ccd8
ML
1852011-09-29 Mario Limonciello <mario_limonciello@dell.com>
186
187 Remove extra declaration of sleep for mingw32.
188
189 * util/misc.c (sleep) [__MINGW32__]: Removed.
190 * include/grub/util/misc.h (sleep) [__MINGW32__]: Likewise.
191
e0b0dc83
GS
1922011-09-28 Grégoire Sutre <gregoire.sutre@gmail.com>
193
194 * include/grub/bsdlabel.h (grub_partition_bsd_disk_label): Add fields
195 type and packname.
196 * include/grub/i386/netbsd_bootinfo.h (NETBSD_BTINFO_BOOTDISK):
197 Resurrected.
198 (NETBSD_BTINFO_BOOTWEDGE): New definition.
199 (grub_netbsd_btinfo_bootwedge): New struct.
200 * grub-core/loader/i386/bsd.c (grub_netbsd_add_boot_disk_and_wedge):
201 New function.
202 (grub_cmd_netbsd): Call grub_netbsd_add_boot_disk_and_wedge.
203
91a1a164
TH
2042011-09-28 Thomas Haller <thomas.haller@fen-net.de>
205
206 * grub-core/loader/multiboot_elfxx.c (Elf_Shdr): Set according to
207 loader.
208
2ded951e
AB
2092011-09-28 Andreas Born <futur.andy@googlemail.com>
210
211 Fix incorrect identifiers in bash-completion.
212
213 * util/bash-completion.d/grub-completion.bash.in
214 (_grub_mkpasswd-pbkdf2): Rename to ...
215 (_grub_mkpasswd_pbkdf2): ... this. All users updated.
216 (_grub_script-check): Rename to ...
217 (_grub_script_check): ... this. All users updated.
218
69915030
VS
2192011-09-28 Vladimir Serbinenko <phcoder@gmail.com>
220
221 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy):
222 Return 0 if disk isn't biosdisk.
223
20fd15f9
GS
2242011-09-17 Grégoire Sutre <gregoire.sutre@gmail.com>
225
226 * Makefile.util.def (grub-mkrelpath): Add LIBUTIL for getrawpartition(3)
227 on NetBSD.
228 * Makefile.util.def (grub-fstest): Likewise.
229
1a7d7db9
GS
2302011-09-17 Grégoire Sutre <gregoire.sutre@gmail.com>
231
232 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors) [__NetBSD__]:
233 Get sector size from disk label.
234
2221ab6c
CW
2352011-09-05 Colin Watson <cjwatson@ubuntu.com>
236
237 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Return 1 for
238 */README* as well as README*.
239 Reported by: Axel Beckert.
240
ca51c4a0
VS
2412011-08-23 Vladimir Serbinenko <phcoder@gmail.com>
242
243 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Handle the
244 case of less than 256 MiB of RAM.
245
ab80f326
VS
2462011-08-23 Vladimir Serbinenko <phcoder@gmail.com>
247
248 * grub-core/commands/wildcard.c (make_regex): Handle @.
249
4155e697
VS
2502011-08-23 Vladimir Serbinenko <phcoder@gmail.com>
251
252 * util/grub-install.in: Move cryptodisk logic to appropriate place.
253
ab178c08
SJ
2542011-08-21 Szymon Janc <szymon@janc.net.pl>
255
256 * acinclude.m4: Use AC_LANG_PROGRAM macro to generate source code for
257 AC_LANG_CONFTEST macros.
258
7dc3c686
SJ
2592011-08-20 Szymon Janc <szymon@janc.net.pl>
260
261 Add grub-fstest option to uncompress data for commands.
262
263 * util/grub-fstest.c (uncompress): New var.
264 (options): New option -u.
265
fe8d4a7b
SJ
2662011-08-20 Szymon Janc <szymon@janc.net.pl>
267
268 * grub-core/loader/i386/linux.c (grub_linux_setup_video): Add
269 GRUB_VIDEO_DRIVER_RADEON_FULOONG2E to switch case statement.
270
a5219af1
SJ
2712011-08-20 Szymon Janc <szymon@janc.net.pl>
272
273 * grub-core/io/gzio.c (grub_gzio_open): Always return original io if
274 file type was not recognized correctly (not gzip or corrupted).
275
f87abff5
VS
2762011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
277
278 * grub-core/kern/mips/loongson/init.c (grub_reboot): Reboot Fuloong.
279 * include/grub/cs5536.h (GRUB_CS5536_MSR_DIVIL_RESET): New definition.
280
d94497ea
VS
2812011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
282
283 * grub-core/Makefile.core.def (kernel): Add video/radeon_fuloong2e.c on
284 loongson.
285 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Init
286 video_radeon_fuloong2e.
287 * grub-core/video/radeon_fuloong2e.c: New file.
288 * include/grub/video.h (grub_video_id_t): Add new ID
289 GRUB_VIDEO_DRIVER_RADEON_FULOONG2E.
290
0d1fd011
VS
2912011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
292
293 * include/grub/mips/loongson.h (GRUB_CPU_LOONGSON_COP0_PRID): New
294 define.
295 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Check
296 that PRID matches the detected subplatform and reset the subplatform
297 if it doesn't.
298
84beb0ee
VS
2992011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
300
301 * grub-core/kern/misc.c (grub_vprintf): Fix a bug on malloc failure.
302
1227c133
VS
3032011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
304
305 Fix PCI iterating on functions >= 4.
306
307 * grub-core/bus/pci.c (grub_pci_iterate): Remove useless ghost skipping.
308 * include/grub/mips/loongson/pci.h (GRUB_LOONGSON_OHCI_GHOST_FUNCTION):
309 Removed.
310 (GRUB_LOONGSON_EHCI_GHOST_FUNCTION): Likewise.
311 (grub_pci_read): Fix bitmask.
312 (grub_pci_read_word): Likewise.
313 (grub_pci_read_byte): Likewise.
314 (grub_pci_write): Likewise.
315 (grub_pci_write_word): Likewise.
316 (grub_pci_write_byte): Likewise.
317
9594c689
VS
3182011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
319
320 * configure.ac: Don't impose march=loongson2f on loongson platform. (It
321 can still be specified in TARGET_CFLAGS)
322
14a2562c
VS
3232011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
324
325 Rename Fuloong into Fuloong 2F. Add new ID for Fuloong2E.
326
327 * grub-core/Makefile.core.def (fwstart_fuloong): Rename fwstart_fuloong
328 into fwstart_fuloong2f. Use boot/mips/loongson/fuloong2f.S.
329 * grub-core/boot/mips/loongson/fuloong.S: Rename to ...
330 * grub-core/boot/mips/loongson/fuloong2f.S: ... this.
331 (FULOONG): Rename to ...
332 (FULOONG2F): ... this. All users updated.
333 * grub-core/boot/mips/startup_raw.S (machtype_fuloong_str): Rename to
334 (machtype_fuloong2f_str): ... this.
335 (machtype_fuloong2e_str): New string.
336 Check for machtype_fuloong2e_str.
337 * grub-core/loader/mips/linux.c (loongson_machtypes)
338 [GRUB_MACHINE_MIPS_LOONGSON]: Add GRUB_ARCH_MACHINE_FULOONG2E.
339 * grub-core/term/serial.c (loongson_defserial)
340 [GRUB_MACHINE_MIPS_LOONGSON]: New array.
341 (grub_serial_register) [GRUB_MACHINE_MIPS_LOONGSON]: Use
342 loongson_defserial.
343 * include/grub/mips/loongson/kernel.h (GRUB_ARCH_MACHINE_FULOONG):
344 Rename to ...
345 (GRUB_ARCH_MACHINE_FULOONG2F): ... this.
346 (GRUB_ARCH_MACHINE_FULOONG2E): New const.
347 * util/grub-mkimage.c (image_target_desc): Rename IMAGE_FULOONG_FLASH
348 to IMAGE_FULOONG2F_FLASH. All users updated.
349 (image_targets): Rename images.
350 * util/grub-mkstandalone.in: Accept fuloong2f and fuloong2e.
351
b526cbb6
SJ
3522011-08-19 Szymon Janc <szymon@janc.net.pl>
353
354 Make enable of disk cache statistics code configurable.
355
356 * configure.ac: --enable-cache-stats added.
357 * config.h.in (DISK_CACHE_STATS): New define.
358 * grub-core/Makefile.core.def (cacheinfo): New command.
359 * include/grub/disk.h(grub_disk_cache_get_performance): New function.
360 * grub-core/commands/cacheinfo.c: New file.
361 * grub-core/commands/minicmd.c (grub_rescue_cmd_info): Updated and
362 moved to cacheinfo.c.
363 * grub-core/kern/disk.c: Use DISK_CACHE_STATS to disable disk cache
364 debug code.
365 * include/grub/disk.h: Likewise.
366
fb739ccd
SJ
3672011-08-19 Szymon Janc <szymon@janc.net.pl>
368
369 * Makefile.am (AUTOMAKE_OPTIONS): = Added -Wno-portability flag.
370 * grub-core/Makefile.am: Likewise.
371
2bba8cfd
VS
3722011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
373
374 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_iterate): Skip with
375 non-zero pull.
376
43526629
VS
3772011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
378
379 * grub-core/fs/jfs.c (grub_jfs_read_file): New parameter ino.
380 All users updated.
381 (grub_jfs_lookup_symlink): Use correct starting inode.
382
5c144cc8
VS
3832011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
384
385 * util/grub-setup.c (main): Add missing gcry initialisation.
386
b1257f65
VS
3872011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
388
389 Don't accept text modes on EFI when booting Linux.
390
391 * grub-core/loader/i386/linux.c (ACCEPTS_PURE_TEXT): New define.
392 (grub_linux_boot) [!ACCEPTS_PURE_TEXT]: Restrict to graphics modes.
393
828bc390
ML
3942011-08-15 Mario Limonciello <mario_limonciello@dell.com>
3952011-08-15 Colin Watson <cjwatson@ubuntu.com>
396
397 * util/grub-probe.c (probe): Canonicalise the path argument, fixing
398 use of "/path/.." as in grub-install for EFI as well as handling
399 symlinks correctly.
400 Fixes Debian bug #637768.
401
5f60ccac
CW
4022011-08-15 Colin Watson <cjwatson@ubuntu.com>
403
404 * util/grub-probe.c: Remove duplicate #include.
405
6dc212f9
RM
4062011-08-10 Robert Millan <rmh@gnu.org>
407
408 Detect LSI MegaRAID SAS (`mfi') devices on GNU/kFreeBSD.
409
410 * util/deviceiter.c [__FreeBSD_kernel__] (get_mfi_disk_name): New
411 function.
412 [__FreeBSD_kernel__] (grub_util_iterate_devices): Scan for mfi
413 (/dev/mfid[0-9]+) devices using get_mfi_disk_name().
414
66816d85
RM
4152011-08-03 Robert Millan <rmh@gnu.org>
416
417 * include/grub/zfs/zap_leaf.h (typedef union zap_leaf_chunk): Mark
418 la_array as packed.
419 Reported by: Zachary Bedell
420
20168fca
CW
4212011-07-26 Colin Watson <cjwatson@ubuntu.com>
422
423 * configure.ac: The Loongson port requires grub-mkfont due to its
424 use of -DUSE_ASCII_FAILBACK. Raise an error if it is not going to
425 be built.
426
303b6246
CW
4272011-07-26 Colin Watson <cjwatson@ubuntu.com>
428
429 * util/grub-install.in: Don't source grub-mkconfig_lib until after
430 processing arguments (otherwise help2man fails when GRUB has not yet
431 been installed).
432
6795300e
VS
4332011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
434
41aa28ea
VS
435 New script grub-mkstandalone.
436
437 * Makefile.util.def (grub-mkstandalone): New script.
438 * docs/man/grub-mkstandalone.h2m: New file.
439 * util/grub-mkstandalone.in: Likewise.
440
4412011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
442
443 Support ATA disks with 4K sectors.
6795300e
VS
444
445 * include/grub/ata.h (grub_ata): New member log_sector_size.
446 * grub-core/disk/ata.c (grub_ata_dumpinfo): Show sector size.
447 (grub_ata_identify): Read sector size.
448 (grub_ata_readwrite): Use log_sector_size rather than hardcoded value.
449
92227597
VS
4502011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
451
452 * util/grub-install.in: Don't use uhci outside of x86.
453
c77069f5
VS
4542011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
455
456 * util/grub-mkrescue.in: Add missing quotes.
457
4582011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
b70e4cb0
VS
459
460 * grub-core/normal/menu.c (grub_menu_execute_entry): Fix NULL
461 dereference.
462
583168a2
VS
4632011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
464
465 * grub-core/disk/pata.c (grub_pata_readwrite): Add missing wait.
466
6be1c01f
VS
4672011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
468
469 * include/grub/video.h: add missing EXPORT_FUND on
470 grub_video_edid_checksum and grub_video_edid_preferred_mode.
471
a1167439
VS
4722011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
473
474 * include/grub/mips/kernel.h: Fix define conflict.
475
bf66054f
VS
4762011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
477
478 * grub-core/kern/mips/cache_flush.S [GRUB_MACHINE_MIPS_LOONGSON]: Flush
479 all four ways.
480
8fc4fa45
CW
4812011-07-21 Colin Watson <cjwatson@ubuntu.com>
482
483 Preferred resolution detection for VBE.
484
485 * grub-core/video/video.c (grub_video_edid_checksum): New function.
486 (grub_video_edid_preferred_mode): Likewise. Try EDID followed by
487 the Flat Panel extension, in line with the X.org VESA driver.
488 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_flat_panel_info):
489 New function.
490 (grub_vbe_bios_get_ddc_capabilities): Likewise.
491 (grub_vbe_bios_read_edid): Likewise.
492 (grub_vbe_get_preferred_mode): Likewise.
493 (grub_video_vbe_setup): When the mode is "auto", try to get the
494 preferred mode from VBE, and use the largest mode that is no larger
495 than the preferred mode (some BIOSes expose a preferred mode that is
496 not in their mode list!). If this fails, fall back to 640x480 as a
497 safe conservative choice.
498 (grub_video_vbe_get_edid): New function.
499 (grub_video_vbe_adapter): Add get_edid.
500 * include/grub/video.h (struct grub_vbe_edid_info): New structure.
501 (struct grub_video_adapter): Add get_edid.
502 (grub_video_edid_checksum): Add prototype.
503 (grub_video_edid_preferred_mode): Likewise.
504 * include/grub/i386/pc/vbe.h (struct grub_vbe_flat_panel_info): New
505 structure.
506
507 * grub-core/commands/videoinfo.c (print_edid): New function.
508 (grub_cmd_videoinfo): Print EDID if available.
509
510 * util/grub.d/00_header.in (GRUB_GFXMODE): Default to "auto". This
511 is more appropriate on a wider range of platforms than 640x480.
512 * docs/grub.texi (Simple configuration): Update GRUB_GFXMODE
513 documentation.
514
ca5572a9
VS
5152011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
516
517 * util/grub-install.in: Recognize ESP mounted at /boot/EFI.
518
e4bcf625
VS
5192011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
520
521 * po/POTFILES.in: Regenerate.
522
c4edd548
VS
5232011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
524
525 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Fix
526 incorrect memory usage.
527
16a2bab0
VS
5282011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
529
530 * util/grub-install.in: Source grub-mkconfig_lib.
531
2e418de6
VS
5322011-07-08 Vladimir Serbinenko <phcoder@gmail.com>
533
534 Remove getroot.c from core on emu platform.
535
536 * grub-core/Makefile.core.def (kernel): Remove kern/emu/getroot.c and
537 kern/emu/raid.c.
538 * grub-core/kern/emu/main.c (main): Don't try to guess root device. It's
539 useless.
540 * grub-core/kern/emu/misc.c (get_win32_path): Moved from here...
541 * util/getroot.c (get_win32_path): ... here.
542 * grub-core/kern/emu/misc.c (fini_libzfs): Moved from here...
543 * util/getroot.c (fini_libzfs): ... here.
544 * grub-core/kern/emu/misc.c (grub_get_libzfs_handle): Moved from here...
545 * util/getroot.c (grub_get_libzfs_handle): ... here.
546 * grub-core/kern/emu/misc.c (grub_find_zpool_from_dir):
547 Moved from here...
548 * util/getroot.c (grub_find_zpool_from_dir): ... here.
549 * grub-core/kern/emu/misc.c
550 (grub_make_system_path_relative_to_its_root): Moved from here...
551 * util/getroot.c (grub_make_system_path_relative_to_its_root): ... here.
552 * grub-core/kern/emu/getroot.c: Moved from here ...
553 * util/getroot.c: ... here. All users updated.
554 * grub-core/kern/emu/raid.c: Moved from here ...
555 * util/raid.c: ... here. All users updated.
556
def9832a
VS
5572011-07-08 Vladimir Serbinenko <phcoder@gmail.com>
558
559 * po/POTFILES.in: Regenerate.
560
cd8fe79a
VS
5612011-07-07 Vladimir Serbinenko <phcoder@gmail.com>
562
563 Fix compilation on GNU/Linux.
564
565 * grub-core/kern/emu/getroot.c (grub_util_pull_device) [!FreeBSD]:
566 Disable geli.
567 (grub_util_get_grub_dev) [!FreeBSD]: Likewise.
568 (grub_util_pull_device) [HAVE_DEVICE_MAPPER]: Fix const and func name.
569 * grub-core/disk/cryptodisk.c (grub_cryptodisk_open): Fix proto.
570
a251b719
VS
5712011-07-07 Vladimir Serbinenko <phcoder@gmail.com>
5722011-07-07 Michael Gorven <michael@gorven.za.net>
5732011-07-07 Clemens Fruhwirth <clemens@endorphin.org>
574
575 LUKS and GELI support.
576
577 * Makefile.util.def (libgrubkern.a): Add grub-core/lib/crypto.c,
578 grub-core/disk/luks.c, grub-core/disk/geli.c,
579 grub-core/disk/cryptodisk.c, grub-core/disk/AFSplitter.c,
580 grub-core/lib/pbkdf2.c, grub-core/commands/extcmd.c,
581 grub-core/lib/arg.c.
582 (libgrubmods.a): Remove gcrypts cflags and cppflags.
583 Remove grub-core/commands/extcmd.c, grub-core/lib/arg.c,
584 grub-core/lib/crypto.c, grub-core/lib/libgcrypt-grub/cipher/sha512.c,
585 grub-core/lib/libgcrypt-grub/cipher/crc.c and grub-core/lib/pbkdf2.c.
586 (grub-bin2h): Add libgcry.a.
587 (grub-mkimage): Likewise.
588 (grub-mkrelpath): Likewise.
589 (grub-script-check): Likewise.
590 (grub-editenv): Likewise.
591 (grub-mkpasswd-pbkdf2): Likewise.
592 (grub-pe2elf): Likewise.
593 (grub-fstest): Likewise.
594 (grub-mkfont): Likewise.
595 (grub-mkdevicemap): Likewise.
596 (grub-probe): Likewise.
597 (grub-ofpath): Likewise.
598 (grub-mklayout): Likewise.
599 (example_unit_test): Likewise.
600 (grub-menulst2cfg): Likewise.
601 * autogen.sh (UTIL_DEFS): Add Makefile.utilgcry.def.
602 * grub-core/Makefile.core.def (cryptodisk): New module.
603 (luks): Likewise.
604 (geli): Likewise.
605 * grub-core/disk/AFSplitter.c: New file.
606 * grub-core/disk/cryptodisk.c: Likewise.
607 * grub-core/disk/geli.c: Likewise.
608 * grub-core/disk/luks.c: Likewise.
609 * grub-core/kern/emu/getroot.c (get_dm_uuid): New function based on
610 grub_util_is_lvm.
611 (grub_util_get_dm_abstraction): New function.
612 (grub_util_follow_gpart_up): Likewise.
613 (grub_util_get_geom_abstraction): Likewise.
614 (grub_util_get_dev_abstraction): Use new functions.
615 (grub_util_pull_device): Pull GELI and LUKS.
616 (grub_util_get_grub_dev): Handle LUKS and GELI.
617 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): New function.
618 (grub_util_biosdisk_open): Use grub_util_get_fd_sectors.
619 (follow_geom_up): Removed.
620 (grub_util_fd_seek): New function.
621 (open_device): Use grub_util_fd_seek.
622 (nread): Rename to ..
623 (grub_util_fd_read): ... this. All users updated.
624 * grub-core/lib/crypto.c (grub_crypto_ecb_decrypt): A better prototype.
625 (grub_crypto_cbc_decrypt): Likewise.
626 (grub_crypto_hmac_write): Likewise.
627 (grub_crypto_hmac_buffer): Likewise.
628 (grub_password_get): Extend to util.
629 * include/grub/crypto.h (gcry_cipher_spec) [GRUB_UTIL]:
630 New member modname.
631 (gcry_md_spec) [GRUB_UTIL]: Likewise.
632 * include/grub/cryptodisk.h: New file.
633 * include/grub/disk.h (grub_disk_dev_id): Rename LUKS to CRYPTODISK.
634 * include/grub/emu/getroot.h (grub_dev_abstraction_types): Add
635 LUKS and GELI.
636 (grub_util_follow_gpart_up): New proto.
637 * include/grub/emu/hostdisk.h (grub_util_fd_seek): Likewise.
638 (grub_util_fd_read): Likewise.
639 (grub_cryptodisk_cheat_mount): Likewise.
640 (grub_util_cryptodisk_print_uuid): Likewise.
641 (grub_util_get_fd_sectors): Likewise.
642 * util/grub-fstest.c (mount_crypt): New var.
643 (fstest): Mount crypto if requested.
644 (options): New option -C.
645 (argp_parser): Parse -C.
646 (main): Init and fini gcry.
647 * util/grub-install.in: Support cryptodisk install.
648 * util/grub-mkconfig.in: Export GRUB_ENABLE_CRYPTODISK.
649 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Support
650 cryptodisk.
651 (prepare_grub_to_access_device): Likewise.
652 * util/grub-mkpasswd-pbkdf2.c (main): Use grub_password_get.
653 * util/grub-probe.c (probe_partmap): Support cryptodisk UUID probe.
654 (probe_cryptodisk_uuid): New function.
655 (probe_abstraction): Likewise.
656 (probe): Use new functions.
657 * util/import_gcry.py: Create Makefile.utilgcry.def.
658 Add modname member.
659
9bfdcbbc
VS
6602011-07-07 Vladimir Serbinenko <phcoder@gmail.com>
661
662 Lazy device scanning.
663
664 * Makefile.util.def (libgrubkern.a): Add grub-core/kern/emu/raid.c.
665 (grub-setup): Remove util/raid.c.
666 * grub-core/Makefile.core.def (kernel): Add kern/emu/raid.c on emu.
667 * grub-core/disk/lvm.c (scan_depth): New variable.
668 (grub_lvm_iterate): Rescan if necessary.
669 (find_lv): New function based on grub_lvm_open.
670 (grub_lvm_open): Use find_lv. Rescan on error.
671 (is_node_readable): New function.
672 (is_lv_readable): Likewise.
673 (grub_lvm_scan_device): Skip already found disks.
674 (do_lvm_scan): New function. Move grub_lvm_scan_device inside of it.
675 Stop if searched device is found and readable.
676 * grub-core/disk/raid.c (inscnt): New variable.
677 (scan_depth): Likewise.
678 (scan_devices): New function based on grub_raid_register. Abort if
679 looked for device is found.
680 (grub_raid_iterate): Rescan if needed.
681 (find_array): NEw function based on -grub_raid_open.
682 (grub_raid_open): Use find_array and rescan.
683 (insert_array): Set became_readable_at.
684 * grub-core/kern/disk.c (grub_disk_dev_iterate): Iterate though "pull.
685 * grub-core/kern/emu/getroot.c (grub_util_open_dm) [HAVE_DEVICE_MAPPER]:
686 New function.
687 (grub_util_is_lvm) [HAVE_DEVICE_MAPPER]: Use grub_util_open_dm.
688 (grub_util_pull_device): New function.
689 (grub_util_get_grub_dev): Call grub_util_pull_device.
690 * util/raid.c: Moved to ..
691 * grub-core/kern/emu/raid.c: ... here.
692 (grub_util_raid_getmembers): New parameter "bootable".
693 All users updated. Support 1.x.
694 * include/grub/ata.h (grub_ata_dev): Change iterate prototype.
695 All users updated.
696 * include/grub/disk.h (grub_disk_pull_t): New enum.
697 (grub_disk_dev): Change iterate prototype.
698 All users updated.
699 * include/grub/emu/getroot.h (grub_util_raid_getmembers) [__linux__]:
700 New proto.
701 * include/grub/emu/hostdisk.h (grub_util_pull_device): Likewise.
702 * include/grub/lvm.h (grub_lvm_lv): New members fullname and compatname.
703 * include/grub/raid.h (grub_raid_array): New member became_readable_at.
704 * include/grub/scsi.h (grub_scsi_dev): Change iterate prototype.
705 All users updated.
706 * include/grub/util/raid.h: Removed.
707
1c358e59
VS
7082011-07-06 Vladimir Serbinenko <phcoder@gmail.com>
709
710 * po/POTFILES.in: Regenerate.
711
abee94ed
VS
7122011-07-06 Vladimir Serbinenko <phcoder@gmail.com>
713
714 Unify sparc init with other ieee1275.
715
716 * grub-core/Makefile.core.def (kernel): Use kern/ieee1275/init.c
717 instead of kern/sparc64/ieee1275/init.c.
718 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options)
719 [__sparc__]: Set GRUB_IEEE1275_FLAG_NO_PARTITION_0.
720 * grub-core/kern/ieee1275/init.c [__sparc__]: Include
721 grub/machine/kernel.h.
722 (grub_ieee1275_original_stack) [__sparc__]: New variable.
723 (grub_claim_heap) [__sparc__]: Use sparc version.
724 (grub_machine_init): Moved args parsing to
725 (grub_parse_cmdline): ...this.
726 * grub-core/kern/sparc64/ieee1275/init.c: Removed.
727 * include/grub/offsets.h (GRUB_KERNEL_SPARC64_IEEE1275_MOD_GAP):
728 New definition.
729 (GRUB_KERNEL_SPARC64_IEEE1275_MOD_ALIGN): Likewise.
730
731 Move BOOTP to separate file.
732
733 * grub-core/Makefile.core.def (net): Add net/bootp.c.
734 * grub-core/net/net.c: Move all BOOTP functions to
735 * grub-core/net/bootp.c: ... here.
736
737 Use frame interface on PXE.
738
739 * grub-core/Makefile.core.def (pxecmd): Removed.
740 (pxe): Use net/drivers/i386/pc/pxe.c rather than net/i386/pc/pxe.c.
741 * grub-core/commands/i386/pc/pxecmd.c: Removed.
742 * grub-core/i386/pc/pxe.c: Moved from here ...
743 * grub-core/net/i386/pc/pxe.c: ... here. Rewritten.
744 * grub-core/net/net.c (grub_net_open_real): Handle old pxe syntax.
745 * include/grub/i386/pc/pxe.h (grub_pxe_unload): Removed.
746
747 EFI network support.
748
749 * grub-core/Makefile.core.def (efinet): New module.
750 * grub-core/disk/efi/efidisk.c (compare_device_paths): Moved from
751 here...
752 * grub-core/kern/efi/efi.c (grub_efi_compare_device_paths): ... here.
753 All users updated.
754 * grub-core/kern/efi/init.c (grub_efi_net_config): New variable.
755 (grub_machine_get_bootlocation): Call grub_efi_net_config if needed.
756 * grub-core/kern/x86_64/efi/callwrap.S (efi_wrap_7): New function.
757 * grub-core/net/drivers/efi/efinet.c: New file.
758 * include/grub/efi/efi.h (grub_efi_compare_device_paths): New proto.
759 (grub_efi_net_config): New extern var.
760
761 Various cleanups and bugfixes.
762
763 * grub-core/disk/efi/efidisk.c (grub_efidisk_open): Fix off-by-one
764 error.
765 (grub_efidisk_get_device_name): Unify similar codepaths. Accept whole
766 disk declared as partition.
767 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_open): Fix memory
768 leak on failure.
769 * grub-core/kern/dl.c (grub_dl_load_file): Fix memory leak.
770 * grub-core/kern/mm.c (grub_debug_malloc): Don't use unsupported %zx.
771 (grub_debug_zalloc): Likewise.
772 (grub_debug_realloc): Likewise.
773 (grub_debug_memalign): Likewise.
774 * grub-core/net/arp.c (grub_net_arp_receive): IPv4 is 4-byte wide.
775 Check that target is IPv4.
776 * grub-core/net/drivers/ieee1275/ofnet.c (grub_ofnet_findcards): Use
777 local-mac-address as fallback.
778 * grub-core/net/ethernet.c (grub_net_recv_ethernet_packet): Prevent
779 memory leak.
780 * grub-core/net/ip.c (ipchksum): Rename to ...
781 (grub_net_ip_chksum): ... this. All users updated.
782 (grub_net_recv_ip_packets): Special handling for DHCP.
783 * util/grub-mkimage.c (generate_image): Zero-out aout header.
784
785 Unify prefix handling
786
787 * grub-core/kern/efi/init.c (grub_efi_set_prefix): Revamped into ...
788 (grub_machine_get_bootlocation): ... this.
789 * grub-core/kern/emu/main.c (grub_machine_set_prefix): Revamped into ...
790 (grub_machine_get_bootlocation): ... this.
791 (grub_prefix): New variable.
792 (prefix): Removed.
793 (root_dev): New variable.
794 (dir): Likewise.
795 (main): Use new variables.
796 * grub-core/kern/i386/coreboot/init.c (grub_machine_set_prefix):
797 Revamped into ...
798 (grub_machine_get_bootlocation): ... this.
799 * grub-core/kern/i386/efi/init.c (grub_machine_set_prefix): Removed.
800 * grub-core/kern/i386/pc/init.c (make_install_device): Revamped into ...
801 (grub_machine_get_bootlocation): ... this.
802 (grub_machine_set_prefix): Removed.
803 * grub-core/kern/ia64/efi/init.c (grub_machine_set_prefix): Removed.
804 * grub-core/kern/ieee1275/init.c (grub_machine_set_prefix):
805 Revamped into ...
806 (grub_machine_get_bootlocation): ... this.
807 * grub-core/kern/main.c (grub_set_root_dev): Revamped into ...
808 (grub_set_prefix_and_root): ... this. All users updated.
809 * grub-core/kern/mips/init.c (grub_machine_set_prefix):
810 Revamped into ...
811 (grub_machine_get_bootlocation): ... this.
812 * include/grub/kernel.h (grub_machine_set_prefix): Removed.
813 (grub_machine_get_bootlocation): New proto.
814 * include/grub/i386/pc/kernel.h (grub_pc_net_config): New var.
815
816 Less intrusive and more reliable seek on network implementation.
817
818 * grub-core/kern/file.c (grub_file_net_seek): Removed.
819 (grub_file_seek): Don't call grub_file_net_seek.
820 * grub-core/net/net.c (grub_net_fs_read): Renamed to ...
821 (grub_net_fs_read_real): .. this.
822 (grub_net_seek_real): Use net->offset.
823 (grub_net_fs_read): Seek if necessary.
824
825 Unify IEEE1275 netwotk config with the other platforms.
826
827 * grub-core/kern/ieee1275/init.c (grub_ieee1275_net_config):
828 New variable.
829 (grub_machine_get_bootlocation): Support network.
830 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args):
831 Support type and device parsing.
832 (grub_ieee1275_get_device_type): New function.
833 * grub-core/net/drivers/ieee1275/ofnet.c (grub_getbootp_real): Revamped
834 into ...
835 (grub_ieee1275_net_config_real): ... this.
836 (grub_ofnet_probecards): Removed.
837 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Remove ofnet.h.
838 * include/grub/ieee1275/ofnet.h: Removed.
839 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_net_config): NEw
840 extern var.
841 (grub_ieee1275_get_device_type): New function.
842
843 Unify network device closing across platforms and make more robust.
844
845 * grub-core/kern/ieee1275/init.c (grub_machine_fini): Don't call
846 grub_grubnet_fini.
847 * grub-core/net/ethernet.c (send_ethernet_packet): Open card if it isn't
848 already.
849 * grub-core/net/net.c (grub_net_network_level_interface_register):
850 Update num_ifaces.
851 (grub_net_card_unregister): Close all interfaces.
852 (receive_packets): Don't poll if no iterfaces are registered.
853 Open if necessary.
854 (grub_net_fini_hw): New function.
855 (grub_net_restore_hw): Likewise.
856 (fini_hnd): New variable.
857 (GRUB_MOD_INIT): Register preboot hook.
858 (GRUB_MOD_FINI): Run and unregister preboot hook.
859
860 Poll network cards when idle.
861
862 * grub-core/kern/term.c (grub_net_poll_cards_idle): New variable.
863 (grub_checkkey): Call grub_net_poll_cards_idle if it's not NULL.
864 * grub-core/net/net.c (receive_packets): Save last poll time.
865 (grub_net_poll_cards_idle_real): New function.
866 (GRUB_MOD_INIT): Register grub_net_poll_cards_idle.
867 (GRUB_MOD_FINI): Unregister grub_net_poll_cards_idle.
868 * include/grub/kernel.h (grub_poll_cards_idle): New extern variable.
869
870 Rename ofnet interfaces.
871
872 * grub-core/net/drivers/ieee1275/ofnet.c (find_alias): New function.
873 (grub_ofnet_findcards): Use ofnet_%s names.
874
875 * util/grub-mknetdir.in: Support for EFI and IEEE1275.
876
877 Cleanup socket opening.
878
879 * grub-core/net/net.c (grub_net_fs_open): Rewritten.
880 (grub_net_fs_close): Likewise.
881 (grub_net_fs_read_real): Use eof member.
882 * include/grub/net/udp.h (+grub_net_udp_open): New proto.
883 (+grub_net_udp_close): New inline function.
884
885 * include/grub/net/tftp.h: Moved to the top of ...
886 * grub-core/net/tftp.c: ... here.
887 * include/grub/net/ip.h: Moved mostly to the top of ...
888 * grub-core/net/ip.c: ... here.
889 * include/grub/net/ethernet.h: Moved mostly to the top of ...
890 * grub-core/net/ethernet.c: ... here.
891
892 * grub-core/kern/device.c (grub_device_close): Free device->net->server.
893
894 * grub-core/commands/probe.c (grub_cmd_probe): Use protocol name for
895 FS name.
896
897 * include/grub/net/ip.h (ipv4_ini): Removed.
898 (ipv4_fini): Likewise.
899
900 * include/grub/net/ip.h (grub_net_recv_ip_packets): New proto.
901 (grub_net_send_ip_packets): Likewise.
902
cf1337aa
VS
9032011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
904
905 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_init): Use new
906 grub_read_cmos prototype.
907
93c06ff9
VS
9082011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
909
910 VGA text support in qemu-mips
911
912 * grub-core/Makefile.core.def (kernel): Add term/i386/pc/vga_text.c,
913 term/i386/vga_common.c and kern/vga_init.c on qemu-mips.
914 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_init): Init vga
915 text.
916 * grub-core/kern/i386/qemu/init.c: Renamed to ...
917 * grub-core/kern/vga_init.c: ... this.
918 * grub-core/kern/vga_init.c (VGA_ADDR) [__mips__]: Adjust.
919 (grub_qemu_init_cirrus) [__mips__]: Skip PCI and adjust the I/O base.
920 * grub-core/term/i386/pc/vga_text.c (VGA_TEXT_SCREEN) [__mips__]:
921 Adjust.
922 * include/grub/vga.h [GRUB_MACHINE_MIPS_QEMU_MIPS]: Declare
923 GRUB_MACHINE_PCI_IO_BASE.
924
748ccabe
VS
9252011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
926
927 MIPS qemu flash support.
928
929 * grub-core/boot/mips/startup_raw.S [GRUB_MACHINE_MIPS_QEMU_MIPS]: Check
930 magic.
931 * grub-core/kern/mips/qemu_mips/init.c (probe_mem): New function.
932 (grub_machine_init): Probe memory if its size isn't known.
933 * util/grub-mkimage.c (image_targets): Add flash targets.
934 (generate_image): Handle flash targets.
935
d7345994
VS
9362011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
937
938 MIPS qemu at_keyboard support.
939
940 * gentpl.py (videoinkernel): Add qemu-mips.
941 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add necessary headers.
942 * grub-core/Makefile.core.def (kernel): Add at_keyboard and layout.
943 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_init): Init new
944 modules.
945 * grub-core/term/at_keyboard.c (grub_keyboard_controller_init)
946 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Don't consider original set.
947 * grub-core/term/serial.c (grub_serial_register)
948 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Make com0 explicitly active.
949
a07a81b3
VS
9502011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
951
952 CMOS support on sparc.
953
954 * gentpl.py (cmos): Add powerpc and sparc.
955 * grub-core/Makefile.core.def (datetime): Add lib/ieee1275/cmos.c on
956 powerpc and sparc.
957 * grub-core/lib/cmos_datetime.c (grub_get_datetime)
958 [__powerpc__ || __sparc__]: Rename to grub_get_datetime_cmos.
959 (grub_set_datetime) [__powerpc__ || __sparc__]: Likewise to
960 grub_set_datetime_cmos.
961 * grub-core/lib/ieee1275/cmos.c: New file.
962 * grub-core/lib/ieee1275/datetime.c (no_ieee1275_rtc): New vaiable.
963 (find_rtc): Set no_ieee1275_rtc on error.
964 (grub_get_datetime): Call grub_get_datetime_cmos on error.
965 (grub_set_datetime): Call grub_set_datetime_cmos on error.
966 * include/grub/cmos.h (grub_cmos_read): Return grub_err_t since it may
967 fail. Move value to argument. All users updated
968 (grub_cmos_write): Likewise.
969 (grub_cmos_read) [__powerpc__ || __sparc__]: Rewritten.
970 (grub_cmos_write) [__powerpc__ || __sparc__]: Likewise.
971 * include/grub/datetime.h [__powerpc__ || __sparc__]: Declare
972 grub_get_datetime_cmos and grub_set_datetime_cmos.
973
77546584
GS
9742011-07-02 Grégoire Sutre <gregoire.sutre@gmail.com>
975
976 * util/grub-mkconfig.in: Use @PACKAGE@ instead of hardcoded name when
977 sourcing grub-mkconfig_lib.
978 * util/update-grub_lib.in: Likewise.
979 * util/grub.d/00_header.in: Likewise.
980 * util/grub.d/10_hurd.in: Likewise.
981 * util/grub.d/10_kfreebsd.in: Likewise.
982 * util/grub.d/10_linux.in: Likewise.
983 * util/grub.d/10_netbsd.in: Likewise.
984 * util/grub.d/10_windows.in: Likewise.
985 * util/grub.d/20_linux_xen.in: Likewise.
986 * util/grub.d/30_os-prober.in: Likewise.
987
54894791
CW
9882011-06-28 Colin Watson <cjwatson@ubuntu.com>
989
990 * grub-core/term/gfxterm.c (grub_virtual_screen_setup): Use
991 default_bg_color rather than black.
992 (grub_gfxterm_fullscreen): Likewise.
993 (grub_gfxterm_background_color_cmd): Save new background color in
994 default_bg_color.
995
8d5d8444
VS
9962011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
997
998 * grub-core/Makefile.core.def (chain): Fix coreboot filename.
999
5afeb5bd
VS
10002011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
1001
1002 * grub-core/disk/pata.c (grub_pata_initialize) [QEMU_MIPS]: Fix a
1003 mismerge.
1004
ba7df45e
VS
10052011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
1006
1007 Chainloading on coreboot support.
1008
1009 * grub-core/Makefile.core.def (chain): Add coreboot.
1010 * grub-core/loader/i386/coreboot/chainloader.c: New file.
1011
d0b526b2
VS
10122011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
1013
1014 * grub-core/loader/i386/bsd.c (grub_bsd_load): Handle relocator failure
1015 if it happens.
1016
5ff1d945
VS
10172011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
1018
1019 Implement time command.
1020
1021 * grub-core/Makefile.core.def (time): New module.
1022 * grub-core/commands/time.c: New file.
1023 * grub-core/script/parser.y: Remove "time" keyword.
1024 * grub-core/script/yylex.l: Likewise.
1025
5ebaad7e
VS
10262011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
1027
1028 * include/grub/loader.h (grub_loader_unregister_preboot_hook): Export.
1029
bdea3798
VS
10302011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
1031
1032 * grub-core/lib/relocator.c (malloc_in_range): Fix a memory corruption
1033 when handling leftovers.
1034
b28c5655
VS
10352011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
1036
1037 * util/ieee1275/grub-ofpathname.c (main): Handle --help and --version
1038 so that help2man doesn't fail.
1039
b6f945dc
VS
10402011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
1041
1042 * grub-core/net/drivers/ieee1275/ofnet.c (send_card_buffer) Use right
1043 type in pointers on sparc64.
1044 (get_card_packet): Likewise.
1045
f9b75e8a
CW
10462011-06-27 Colin Watson <cjwatson@ubuntu.com>
1047
1048 * grub-core/commands/videoinfo.c (hook): Indicate current video mode
1049 with `*'.
1050 (grub_cmd_videoinfo): Fetch current video mode.
1051
1e3d9b86
VS
10522011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
1053
1054 * grub-core/disk/scsi.c (grub_scsi_read): Limit SCSI reads to 32K
1055 because of underlying system restrictions.
1056
efff4b1c
VS
10572011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
1058
1059 * util/grub-mkrescue.in: Rename "ata" to "pata" and add ahci when
1060 necessary.
1061
9fc9ce37
VS
10622011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
1063
1064 Coreboot video support.
1065
1066 * grub-core/Makefile.core.def (vga): Extend to coreboot and multiboot.
1067 (vbe): Likewise.
1068 * grub-core/kern/i386/coreboot/startup.S: Include int.S.
1069 * grub-core/kern/i386/pc/startup.S (grub_bios_interrupt): Moved from
1070 here ...
1071 * grub-core/kern/i386/int.S: ... here.
1072 * grub-core/video/i386/pc/vbe.c: Updated includes.
1073 * grub-core/video/i386/pc/vga.c: Likewise.
1074 * include/grub/i386/coreboot/memory.h
1075 (GRUB_MEMORY_MACHINE_SCRATCH_ADDR): New definition.
1076 (GRUB_MEMORY_MACHINE_SCRATCH_SEG): Likewise.
1077 (GRUB_MEMORY_MACHINE_SCRATCH_SIZE): Likewise.
1078 * include/grub/i386/pc/int.h (GRUB_CPU_INT_FLAGS_DEFAULT) [!PCBIOS]:
1079 Disable interrupts.
1080 * include/grub/i386/pc/vga.h: Removed. All users updated.
1081
41bec7fe
VS
10822011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
1083
1084 * grub-core/disk/ahci.c (grub_ahci_readwrite_real): Use proper
1085 definitions for dprintf.
1086 * grub-core/disk/pata.c (grub_pata_readwrite): Likewise.
1087
ca80309d
VS
10882011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
1089
1090 * grub-core/net/drivers/ieee1275/ofnet.c (send_card_buffer): Fix
1091 prototype.
1092 (get_card_packet): Likewise.
1093
9e322ce8
YB
10942011-06-26 Yves Blusseau <blusseau@zetam.org>
1095
1096 Display the path of the file when file is not found
1097
1098 * grub-core/fs/fat.c: Display the filename when file is not found.
1099 * grub-core/fs/fshelp.c: Likewise.
1100 * grub-core/fs/hfs.c: Likewise.
1101 * grub-core/fs/jfs.c: Likewise.
1102 * grub-core/fs/minix.c: Likewise.
1103 * grub-core/fs/ufs.c: Likewise.
1104 * grub-core/fs/btrfs.c: Likewise.
1105 * grub-core/commands/i386/pc/play.c: Likewise.
1106
cbf597af
SJ
11072011-06-26 Szymon Janc <szymon@janc.net.pl>
1108
1109 * grub-core/commands/cmp.c (grub_cmd_cmp): Remove unnecessary NULL
1110 pointer checks before calling grub_free().
1111 * grub-core/commands/wildcard.c (match_devices): Likewise.
1112 * grub-core/commands/wildcard.c (match_files): Likewise.
1113 * grub-core/fs/cpio.c (grub_cpio_dir): Likewise.
1114 * grub-core/fs/cpio.c (grub_cpio_open): Likewise.
1115 * grub-core/fs/udf.c (grub_udf_read_block): Likewise.
1116 * grub-core/fs/xfs.c (grub_xfs_read_block): Likewise.
1117 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Likewise.
1118 * grub-core/normal/cmdline.c (grub_cmdline_get): Likewise.
1119 * grub-core/script/yylex.l (grub_lexer_unput): Likewise.
1120 * grub-core/video/readers/jpeg.c (grub_video_reader_jpeg): Likewise.
1121 * grub-core/video/readers/png.c (grub_png_output_byte): Likewise.
1122
6295b32f
P
11232011-06-25 Patrick <p55@mailinator.com>
1124
1125 * grub-core/kern/main.c (grub_load_normal_mode): Correct the comment.
1126
77c0840b
VS
11272011-06-25 Vladimir Serbinenko <phcoder@gmail.com>
1128
1129 * grub-core/net/i386/pc/pxe.c (grub_pxe_recv): Fix declaration.
1130 (grub_pxe_send): Likewise.
1131 (GRUB_MOD_INIT): Fix types.
1132
40ea05de
SJ
11332011-06-24 Szymon Janc <szymon@janc.net.pl>
1134
1135 * grub-core/io/xzio.c: Fix code style issues
1136
90162423
MRA
11372011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
11382011-06-24 Manoel Rebelo Abranches <mrabran@gmail.com>
423a1849
MRA
1139
1140 Network infrastructure.
1141 The ARP protocol was made by Paulo Pinatti <ppinatti@br.ibm.com>
1142
1143 * include/grub/net/arp.h: New file.
90162423
MRA
1144 * include/grub/net/device.h: Likewise.
1145 * include/grub/net/ethernet.h: Likewise.
1146 * include/grub/net/ip.h: Likewise.
1147 * include/grub/net/netbuff.h: Likewise.
1148 * include/grub/net/tftp.h: Likewise.
1149 * include/grub/net/udp.h: Likewise.
1150 * include/grub/ieee1275/ofnet.h: Likewise.
1151 * include/grub/emu/export.h: Likewise.
1152 * include/grub/net.h: Likewise.
1153 * grub-core/net/arp.c: Likewise.
1154 * grub-core/net/ethernet.c: Likewise.
1155 * grub-core/net/ip.c: Likewise.
1156 * grub-core/net/udp.c: Likewise.
1157 * grub-core/net/tftp.c: Likewise.
1158 * grub-core/net/netbuff.c: Likewise.
1159 * grub-core/net/net.c: Likewise.
1160 * grub-core/net/drivers/emu/emunet.c: Likewise.
1161 * grub-core/net/drivers/ieee1275/ofnet.c: Likewise.
1162 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add net.h, ofnet.h and
1163 export.h.
1164 * grub-core/Makefile.core.def (net): New module.
1165 (tftp): Likewise.
1166 (ofnet): Likewise.
1167 (emunet): Likewise.
1168 * grub-core/commands/ls.c (grub_ls_list_devices) [!GRUB_UTIL]: List
1169 network protocols.
1170 * grub-core/kern/device.c (grub_net_open) : New variable.
1171 (grub_device_open): Handle network device.
1172 (grub_device_close): Likewise.
1173 * grub-core/kern/file.c (grub_file_net_seek) : New variable.
1174 (grub_grubnet_fini): Likewise.
1175 (grub_file_seek): Seek in network device.
1176 * grub-core/kern/fs.c (grub_fs_probe): Handle network devices.
1177 * grub-core/kern/ieee1275/init.c (grub_machine_set_prefix): Handle
1178 network root.
1179 (grub_machine_fini): Call grub_grubnet_fini.
1180 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args): Handle
1181 network.
1182 (grub_ieee1275_get_aliasdevname): New function.
1183 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
1184 Add unofficial Solaris network info.
1185 (grub_multiboot_make_mbi): Likewise.
1186 * grub-core/fs/i386/pc/pxe.c: Moved from here ...
1187 * grub-core/net/i386/pc/pxe.c: ...here. Adapted for new design.
1188 * include/grub/device.h (grub_fs): Removed.
1189 * include/grub/err.h (grub_err_t): Add network-related values.
1190 * include/grub/i386/pc/pxe.h: Removed bootp parts.
1191 * include/grub/ieee1275/ieee1275.h (grub_ofnetcard_data): New struct.
1192 (grub_ieee1275_get_aliasdevname): New proto.
1193 * include/grub/net.h: Rewritten.
423a1849 1194
031f22a0
VS
11952011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
1196
1197 * grub-core/disk/raid.c (insert_array): Ensure uniqueness of readable
1198 names.
1199
4388ca72
VS
12002011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
1201
1202 * grub-core/commands/wildcard.c (match_files): Add a useful dprintf.
1203 (wildcard_expand): Don't stop on nonregexp parts after regexp ones since
1204 it truncates the output.
1205 Reported by: Ximin Luo.
1206
98e2f506
VS
12072011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
1208
1209 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Skip . and ..
1210
2a5e94d8
VS
12112011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
1212
1213 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Load
1214 partmap before abstraction.
1215
535c1910
AK
12162011-06-24 Alexander Kurtz <kurtz.alex@googlemail.com>
1217
1218 * util/grub-mkconfig_lib.in: Add missing quotes.
1219
bc09e1a2
VS
12202011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
1221
1222 * grub-core/kern/emu/getroot.c (grub_guess_root_device): Revert to
1223 old method if mountinfo would return /dev/root and /dev/root doesn't
1224 exist.
1225
290766fb
VS
12262011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
1227
1228 ZFS zlib support
1229
1230 * grub-core/fs/zfs/zfs.c (zlib_decompress): New function.
1231 (decomp_table): Add zlib entries.
1232 (zio_read): USe 8 bits for compression function rather than 3.
1233 * include/grub/zfs/zio.h (zio_compress): Add zlib values.
1234
12352011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
1236
1237 * grub-core/disk/ahci.c: Add missing license statements.
1238 * grub-core/fs/romfs.c: Likewise.
1239 * grub-core/lib/ia64/setjmp.S: Likewise.
1240 * grub-core/loader/i386/pc/freedos.c: Likewise.
1241 * grub-core/loader/ia64/efi/linux.c: Likewise.
1242 * grub-core/video/colors.c: Likewise.
1243 * include/grub/dl.h (GRUB_MOD_DEP): New macro.
1244
5ab3f48a
VS
12452011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
1246
1247 AHCI support.
1248
1249 * grub-core/Makefile.core.def (ata_pthru): Removed.
1250 (ahci): New module.
1251 (pata): Likewise.
1252 * grub-core/bus/usb/ohci.c (GRUB_MOD_FINI): Unregister preboot hook
1253 on unload.
1254 * grub-core/commands/hdparm.c (grub_hdparm_do_ata_cmd): Use ATA
1255 readwrite.
1256 (grub_hdparm_do_check_powermode_cmd): Likewise.
1257 (grub_hdparm_do_smart_cmd): Likewise.
1258 (grub_hdparm_set_val_cmd): Likewise.
1259 (grub_cmd_hdparm): Likewise. Check thta we have an ATA device.
1260 * grub-core/disk/ahci.c: New file.
1261 * grub-core/disk/ata.c: Factor out the low-level part into ...
1262 * grub-core/disk/pata.c: ... here.
1263 * grub-core/disk/ata_pthru.c: Contents moved to ...
1264 * grub-core/disk/pata.c: ... here.
1265 * grub-core/disk/scsi.c (grub_scsi_names): New array.
1266 (grub_scsi_iterate): Use grub_scsi_names.
1267 (grub_scsi_open): Likewise.
1268 * grub-core/kern/disk.c (grub_disk_ata_pass_through): Removed.
1269 * include/grub/ata.h (grub_ata_commands): Add DMA commands.
1270 (grub_ata_regs_t): New struct.
1271 (grub_disk_ata_pass_through_parms): Likewise.
1272 (grub_ata_device): Renamed to ...
1273 (grub_ata): ... this.
1274 (grub_ata_dev): New struct.
1275 Removed all low-level inline functions.
1276 * include/grub/scsi.h: Add PATA and AHCI subsystems.
1277 (grub_scsi_dev): Removed 'name' and 'id'. Added 'id' parameter to
1278 iterate hooks and open. All users updated.
1279 * util/grub-install.in: Handle AHCI disk module.
1280
c31dc5f5
SJ
12812011-06-23 Szymon Janc <szymon@janc.net.pl>
1282
1283 Add support for DRI and RSTn markers in JPEG files.
1284
1285 * grub-core/video/readers/jpeg.c (JPEG_MARKER_DRI): New define.
1286 (JPEG_MARKER_RST0): Likewise.
1287 (JPEG_MARKER_RST1): Likewise.
1288 (JPEG_MARKER_RST2): Likewise.
1289 (JPEG_MARKER_RST3): Likewise.
1290 (JPEG_MARKER_RST4): Likewise.
1291 (JPEG_MARKER_RST5): Likewise.
1292 (JPEG_MARKER_RST6): Likewise.
1293 (JPEG_MARKER_RST7): Likewise.
1294 (grub_jpeg_data): New fields dri, r1, bitmap_ptr.
1295 (grub_jpeg_decode_dri): New function.
1296 (grub_jpeg_decode_sos): Move image data related part into
1297 grub_jpeg_decode_data function.
1298 (grub_jpeg_decode_data): New function.
1299 (grub_jpeg_reset): New function.
1300 (grub_jpeg_decode_jpeg): Handle new markers.
1301
fe12fd5b
VS
13022011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
1303
1304 * util/ieee1275/ofpath.c (check_sas): Close fd.
1305 (main): Free of_path.
1306 Reported by: David Volgyes <dvolgyes>.
1307
03147f46
VS
13082011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
1309
1310 * util/grub-mkpasswd-pbkdf2.c (main): Don't double-close.
1311 Reported by: David Volgyes <dvolgyes>.
1312
cad3237f
VS
13132011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
1314
1315 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): Close
1316 file after stat.
1317 Reported by: David Volgyes <dvolgyes>.
1318
13548d26
VS
13192011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
1320
1321 * util/raid.c (grub_util_raid_getmembers): Close fd before returning.
1322
1323 Reported by: David Volgyes <dvolgyes>.
1324
e061a1b5
VS
13252011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
1326
1327 * grub-core/lib/reed_solomon.c (rs_recover) [STANDALONE]:
1328 Prevent memory leak.
1329
1abe47dc
VS
13302011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
1331
1332 * grub-core/lib/reed_solomon.c (rs_recover): Prevent memory leak.
1333 (main): Close file.
e061a1b5 1334 Reported by: David Volgyes <dvolgyes>.
1abe47dc 1335
fbc62666
VS
13362011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
1337
1338 * grub-core/loader/i386/xnu.c (grub_cpu_xnu_fill_devprop): Don't attempt
1339 to continue if allocation is failed.
1340
1341 Reported by: David Volgyes <dvolgyes>.
1342
e98c83e9
DV
13432011-06-23 David Volgyes <dvolgyes>
1344
1345 * grub-core/bus/usb/ohci.c (grub_ohci_pci_iter): Avoid NULL-pointer
1346 dereference.
1347
a199a8cd
VS
13482011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
1349
1350 Fix spurious warning.
1351
1352 * grub-core/partmap/acorn.c (grub_acorn_boot_block): Make a union.
1353 (acorn_partition_map_find): Use .bin member.
1354
e2d1dba0
VS
13552011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
1356
1357 * grub-core/kern/emu/getroot.c (grub_guess_root_device): Don't accept
1358 /dev/root as a valid device.
1359
8a5d6919
JM
13602011-06-23 Jim Meyering <meyering@redhat.com>
1361
e2d1dba0
VS
1362 Avoid NULL deref in grub_device_open.
1363
8a5d6919
JM
1364 * grub-core/kern/device.c (grub_device_open): Don't dereference
1365 a NULL pointer upon failed grub_env_get.
1366
f7db6f4a
VS
13672011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
1368
1369 Support non-512B sectors and agglomerate reads.
1370
1371 * Makefile.util.def (libgrubmods.a): Add grub-core/commands/testload.c.
1372 * grub-core/disk/efi/efidisk.c (grub_efidisk_data): Remove disk_io.
1373 (disk_io_guid): Removed.
1374 (make_devices): Locate solely by BlockIO.
1375 (grub_efidisk_open): Fill log_sector_size and total_sectors.
1376 (grub_efidisk_read): Use read_blocks.
1377 (grub_efidisk_write): Use write_blocks.
1378 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_open): Fill
1379 log_sector_size.
1380 (get_safe_sectors): Handle non-512B sectors.
1381 (grub_biosdisk_read): Remove special CDROM handling. Handle non-512B
1382 sectors.
1383 (grub_biosdisk_write): Handle non-512B sectors.
1384 * grub-core/disk/scsi.c (grub_scsi_open): Fill log_sector_size.
1385 (grub_scsi_read): Remove special non-512B block handling (now handled
1386 one level up).
1387 * grub-core/kern/disk.c (grub_disk_open): Fill default log_sector_size
1388 and do sanity checks.
1389 (grub_disk_adjust_range): Handle non-512B sectors.
1390 (transform_sector): New function.
1391 (grub_disk_read_small): Likewise.
1392 (grub_disk_read): Rewritten.
1393 (grub_disk_write): Handle non-512B sectors.
1394 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_open): Fill
1395 log_sector_size.
1396 (open_device): Use log_sector_size.
1397 (grub_util_biosdisk_read): Likewise.
1398 (grub_util_biosdisk_write): Likewise.
1399 * grub-core/partmap/msdos.c (grub_partition_msdos_iterate): Handle
1400 non-512B sectors.
1401 (pc_partition_map_embed): Likewise.
1402 * include/grub/disk.h (grub_disk): New field log_sector_size.
1403 (GRUB_DISK_CACHE_SIZE): Redefined from GRUB_DISK_CACHE_BITS.
1404 (GRUB_DISK_CACHE_BITS): Increased to 6.
1405 * util/grub-fstest.c (fstest): New command testload.
1406 (argp_parser): Likewise.
1407
881ac815
RM
14082011-06-16 Robert Millan <rmh@gnu.org>
1409
1410 Detect `ataraid' devices on GNU/kFreeBSD. Fix for ATA devices using
1411 `ata' driver on kernel of FreeBSD 9.
1412
1413 * util/deviceiter.c [__FreeBSD_kernel__] (get_ada_disk_name)
1414 (get_ataraid_disk_name): New functions.
1415 [__FreeBSD_kernel__] (grub_util_iterate_devices): Scan for ataraid
1416 (/dev/ar[0-9]+) and ada (/dev/ada[0-9]+) devices using
1417 get_ataraid_disk_name() and get_ada_disk_name().
1418
1e9aef7d
CW
14192011-06-13 Colin Watson <cjwatson@ubuntu.com>
1420
1421 * docs/man/grub-mklayout.h2m (DESCRIPTION): Add a reference to the
1422 input format.
1423
351c7c8a
CW
14242011-05-29 Colin Watson <cjwatson@ubuntu.com>
1425
1426 * docs/grub.texi (Obtaining and Building GRUB): Substitute
1427 `ftp.gnu.org' for `alpha.gnu.org'.
1428
6b4e6430
CW
14292011-05-27 Colin Watson <cjwatson@ubuntu.com>
1430
1431 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Handle
1432 partitions under /dev/disk/by-id/.
1433
c64db050
CW
14342011-05-27 Colin Watson <cjwatson@ubuntu.com>
1435
1436 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Give up
1437 after ten consecutive open failures. Scanning all the way up to
1438 10000 is excessive and can cause serious performance problems in
1439 some configurations.
1440 Fixes Ubuntu bug #787461.
1441
245f4aba
VS
14422011-05-21 Vladimir Serbinenko <phcoder@gmail.com>
1443
1444 * grub-core/disk/arc/arcdisk.c (reopen): Close old handle before
1445 opening new one.
1446
f767c929
VS
14472011-05-21 Colin Watson <cjwatson@ubuntu.com>
14482011-05-21 Vladimir Serbinenko <phcoder@gmail.com>
1449
1450 Don't stat devices unless we have to.
1451
1452 * grub-core/kern/emu/getroot.c (grub_find_device): Recognize
1453 dir == /dev/mapper.
1454 (grub_guess_root_device): Use already known os_dev if possible.
1455 * grub-core/kern/emu/hostdisk.c
1456 (convert_system_partition_to_system_disk): Scan only in /dev/mapper
1457 if device is known to be a dm one.
1458
f35fa3a6
CW
14592011-05-20 Colin Watson <cjwatson@ubuntu.com>
1460
1461 * util/grub-mkconfig.in: Export GRUB_CMDLINE_LINUX_XEN_REPLACE and
1462 GRUB_CMDLINE_LINUX_XEN_REPLACE_DEFAULT.
1463 Reported by: Pawel Tecza.
1464
9a79fcf2
VS
14652011-05-19 Vladimir Serbinenko <phcoder@gmail.com>
1466
1467 * grub-core/Makefile.core.def (lsacpi): Fix ia64 mismerge.
1468 (lsefisystab): Likewise.
1469 (lssal): Likewise.
1470 (lsefimmap): Likewise.
1471 (hdparm): Enable on qemu-mips.
1472 (setjmp): Add ia64 nodist.
1473 (serial): Simplify tags.
1474
63e3eea9
CW
14752011-05-18 Colin Watson <cjwatson@ubuntu.com>
1476
1477 * Makefile.util.def (grub-ofpathname): Install manual page.
1478
09728256
CW
14792011-05-18 Colin Watson <cjwatson@ubuntu.com>
1480
1481 * grub-core/fs/squash4.c: Add missing GRUB_MOD_LICENSE.
1482
8b63a142
CW
14832011-05-18 Colin Watson <cjwatson@ubuntu.com>
1484
1485 * .bzrignore: Add grub-core/modinfo.sh and a number of test files.
1486
e775d8ed
VS
14872011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
1488
1489 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Downgrade a printf
1490 into dprintf.
1491
bf947d36
VS
14922011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
1493
1494 Use full 64-bit division.
1495
1496 * grub-core/kern/misc.c (grub_divmod64_full): Renamed to ...
1497 (grub_divmod64): ... this.
1498 * include/grub/misc.h (grub_divmod64): Removed. All users switch to full
1499 version.
1500
b84f26c5
CW
15012011-05-18 Colin Watson <cjwatson@ubuntu.com>
1502
1503 * util/grub-mkrescue.in: Use portable `.' rather than non-portable
1504 `source'.
1505
5626056f
CW
15062011-05-18 Colin Watson <cjwatson@ubuntu.com>
1507
1508 * grub-core/genmod.sh.in: Use 'set -e' rather than '#! /bin/sh -e',
1509 to avoid accidents when debugging with 'sh -x'.
1510 * grub-core/gensyminfo.sh.in: Likewise.
1511 * tests/example_scripted_test.in: Likewise.
1512 * tests/grub_cmd_regexp.in: Likewise.
1513 * tests/grub_script_blanklines.in: Likewise.
1514 * tests/grub_script_dollar.in: Likewise.
1515 * tests/grub_script_expansion.in: Likewise.
1516 * tests/grub_script_final_semicolon.in: Likewise.
1517 * tests/partmap_test.in: Likewise.
1518 * tests/util/grub-shell-tester.in: Likewise.
1519 * tests/util/grub-shell.in: Likewise.
1520
e2965f4a
CW
15212011-05-18 Colin Watson <cjwatson@ubuntu.com>
1522
1523 Move gfxmenu color handling to video, so that gfxterm can use it
1524 too.
1525
1526 * grub-core/gfxmenu/named_colors.c: Move to ...
1527 * grub-core/video/colors.c: ... here. Rename
1528 grub_gui_get_named_color to grub_video_get_named_color.
1529 * grub-core/gfxmenu/gui_string_util.c (my_isxdigit): Move to ...
1530 * grub-core/video/colors.c (my_isxdigit): ... here.
1531 * grub-core/gfxmenu/gui_string_util.c (parse_hex_color_component):
1532 Move to ...
1533 * grub-core/video/colors.c (parse_hex_color_component): ... here.
1534 * grub-core/gfxmenu/gui_string_util.c (grub_gui_parse_color): Move
1535 to ...
1536 * grub-core/video/colors.c (grub_video_parse_color): ... here.
1537
1538 * include/grub/gui.h (grub_gui_color_t): Move to ...
1539 * include/grub/video.h (grub_video_rgba_color_t): ... here.
1540 * include/grub/gui.h (grub_gui_color_rgb): Move to ...
1541 * include/grub/video.h (grub_video_rgba_color_rgb): ... here.
1542 * include/grub/gui.h (grub_gui_map_color): Move to ...
1543 * include/grub/video.h (grub_video_map_rgba_color): ... here.
1544 * include/grub/gui_string_util.h (grub_gui_get_named_color): Move
1545 to ...
1546 * include/grub/video.h (grub_video_get_named_color): ... here.
1547 * include/grub/gui_string_util.h (grub_gui_parse_color): Move to ...
1548 * include/grub/video.h (grub_video_parse_color): ... here.
1549
1550 * grub-core/Makefile.core.def (kernel) [videoinkernel]: Add
1551 video/colors.c.
1552 (gfxmenu): Remove gfxmenu/named_colors.c.
1553 (video) [videomodules]: Add video/colors.c.
1554
1555 Add a background_color command.
1556
1557 * grub-core/term/gfxterm.c (grub_gfxterm_background_color_cmd): New
1558 function.
1559 (GRUB_MOD_INIT): Register background_color command.
1560 (GRUB_MOD_FINI): Unregister background_color command.
1561 (redraw_screen_rect): Allow blend/replace of text layer to be
1562 controlled independently from whether there is a background bitmap.
1563 (grub_gfxterm_background_image_cmd): Change blend_text_bg when
1564 changing bitmap.
1565
1e4b4390
VS
15662011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
1567
26618ff0
VS
1568 Patch BPB in ntldr and chainloader --bpb.
1569
1e4b4390
VS
1570 * grub-core/fs/fat.c: Include grub/fat.h.
1571 (grub_fat_bpb): Moved to ...
1572 * include/grub/fat.h (grub_fat_bpb): ... here. New file.
1573 * grub-core/loader/i386/pc/chainloader.c: Include grub/fat.h and
1574 grub/ntfs.h.
1575 * include/grub/i386/pc/chainloader.h (grub_chainloader_flags_t):
1576 Moved from here...
1577 * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_flags_t): ...
1578 here.
1579 * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_patch_bpb):
1580 New function.
1581 (grub_chainloader_cmd): Patch BPB if --bpb is given.
1582 (GRUB_MOD_INIT): Show --bpb.
1583 * grub-core/loader/i386/pc/ntldr.c (grub_cmd_ntldr): Patch BPB.
1584 * grub-core/normal/main.c (features): New variable.
1585 (GRUB_MOD_INIT): Set feature_* variables.
1586 * include/grub/i386/pc/chainloader.h (grub_chainloader_patch_bpb): New
1587 proto.
1588 * include/grub/ntfs.h (grub_ntfs_bpb): New field bios_drive.
1589
cf02731e
VS
15902011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
1591
1592 * grub-core/Makefile.core.def (ieee1275_fb): Use enable=powerpc_ieee1275
1593 for cleanness.
1594
e3a1073f
VS
15952011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
1596
1597 FreeDOS direct loading support.
1598
1599 * docs/grub.texi (Supported OS): Add FreeDOS.
1600 * grub-core/Makefile.core.def (freedos): New module.
1601 * grub-core/lib/i386/relocator.c (grub_relocator16_ebx): New extern
1602 variable.
1603 (grub_relocator16_boot): Handle %ebx.
1604 * grub-core/lib/i386/relocator16.S: Likewise.
1605 * grub-core/loader/i386/pc/freedos.c: New file.
1606
05caa461
VS
16072011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
1608
1609 Long Linux command line support.
1610
1611 * grub-core/loader/i386/linux.c (GRUB_LINUX_CL_END_OFFSET): Removed.
1612 (maximal_cmdline_size): New variable.
1613 (allocate_pages): Use maximal_cmdline_size.
1614 (grub_cmd_linux): Set and use maximal_cmdline_size.
1615 * grub-core/loader/i386/pc/linux.c (GRUB_LINUX_CL_END_OFFSET): Removed.
1616 (allocate_pages): Use maximal_cmdline_size.
1617 (grub_cmd_linux): Set and use maximal_cmdline_size.
1618 * include/grub/i386/linux.h (GRUB_LINUX_SETUP_MOVE_SIZE): Removed.
1619 (linux_kernel_header): Add fields kernel_alignment, relocatable, pad
1620 and cmdline_size.
1621
a2491e23
VS
16222011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
16232011-05-18 Colin Watson <cjwatson@ubuntu.com>
1624
1625 Improve devmapper support
1626
1627 * grub-core/kern/emu/getroot.c (grub_util_is_dmraid): Removed.
1628 (grub_util_is_lvm): New function.
1629 (grub_util_get_dev_abstraction): Assume dmraid if not lvm rather
1630 than lvm if not dmraid.
1631 Handle mapped md nodes.
1632 * grub-core/kern/emu/hostdisk.c (device_is_mapped): Rename to ...
1633 (grub_util_device_is_mapped): ... this. Make always available. All users
1634 updated.
1635 (grub_util_get_dm_node_linear_info) [HAVE_DEVICE_MAPPER]: New function.
1636 (convert_system_partition_to_system_disk): Handle lvm, mpath and
1637 dmraid nodes.
1638 * include/grub/emu/misc.h (grub_util_device_is_mapped): New proto.
1639
6ad6223e
VS
16402011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
1641
1642 Unify grub-mkrescue (except powerpc) and grrub-mknetdir across platforms
1643
1644 * grub-core/Makefile.am (platform_DATA): Add modinfo.sh.
1645 * grub-core/modinfo.sh.in: New file.
1646 * grub-core/Makefile.core.def (modinfo.sh): New script.
1647 * util/grub-mknetdir.in: Use modinfo.sh.
1648 * util/grub-mkrescue.in: Likewise.
1649
543a8f6e
VS
16502011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
1651
1652 * grub-core/kern/ia64/dl_helper.c (grub_ia64_dl_get_tramp_got_size):
1653 Fix potential usage of Elf32 instead of Elf64 when compiling on
1654 32-bit architecture. Add endianness macros while on it.
1655
4959e111
VS
16562011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
1657
1658 Use mipsel- rather than mips- in directories involving mipsel ports to
1659 allow both endiannesses coexist.
1660
1661 * configure.ac: proparate target_cpu=mipsel rather than resetting to
1662 mips. All conditions adjusted.
1663 * tests/util/grub-shell-tester.in: Remove gratuitious target_cpu
1664 variable.
1665 * util/grub-install.in: Adjust conditions to take renaming into account.
1666 * util/grub-mkimage.c (image_targets): Likewise. New target
1667 mips-qemu_mips-elf for bigendian mips.
1668
35341bbc
VS
16692011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
1670
1671 Avoid unnecessary copying on MIPS.
1672
1673 * grub-core/boot/decompressor/none.c (grub_decompress_core): Exit
1674 early if src == dest.
1675 * util/grub-mkimage.c (generate_image): Arange for src == dest if
1676 compression is none.
1677
b772baed
VS
16782011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
1679
1680 Reduce memory footprint on SGI by putting modules before the kernel
1681 as opposed to after.
1682
1683 * grub-core/Makefile.core.def (kernel): Increase linking address.
1684 (none_decompress): Likewise.
1685 (xz_decompress): Likewise.
1686 * grub-core/boot/mips/startup_raw.S: Use prewritten uncompression
1687 address.
1688 * grub-core/kern/mips/arc/init.c (grub_machine_init): Handle memory
1689 layout change.
1690 (grub_arch_modules_addr): New function.
1691 * grub-core/kern/mips/init.c (grub_arch_modules_addr): Moved from here...
1692 * grub-core/kern/mips/loongson/init.c (grub_arch_modules_addr): .. here
1693 * grub-core/kern/mips/qemu_mips/init.c (grub_arch_modules_addr): ... and
1694 here.
1695 * grub-core/kern/mips/startup.S (total_size): Rename to ...
1696 (grub_total_modules_size): ... this. Make global.
1697 [GRUB_MACHINE_ARC]: Don't attempt to move modules out of the bss.
1698 * include/grub/offsets.h (GRUB_KERNEL_MIPS_LOONGSON_UNCOMPRESSED_ADDR):
1699 New definition.
1700 (GRUB_KERNEL_MIPS_QEMU_MIPS_UNCOMPRESSED_ADDR): Likewise.
1701 (GRUB_KERNEL_MIPS_ARC_UNCOMPRESSED_ADDR): Likewise.
1702 (GRUB_KERNEL_MACHINE_UNCOMPRESSED_ADDR): Likewise.
1703 (GRUB_KERNEL_MIPS_ARC_LINK_ADDR): Increased.
1704 * util/grub-mkimage.c (image_target_desc): New flag
1705 PLATFORM_FLAGS_MODULES_BEFORE_KERNEL.
1706 (image_targets): Set PLATFORM_FLAGS_MODULES_BEFORE_KERNEL on mips-arc.
1707 (generate_image): Handle images with modules before kernel.
1708
566a1917
VS
17092011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
1710
1711 Prevent potential loss of memory map by overwrite on qemu-mips.
1712
1713 * grub-core/boot/mips/startup_raw.S [GRUB_MACHINE_MIPS_QEMU_MIPS]:
1714 Save ram size in $s4.
1715 * grub-core/kern/mips/qemu_mips/init.c (RAMSIZE): Removed.
1716 All users changed to grub_arch_memsize.
1717 * grub-core/kern/mips/startup.S (grub_arch_machine): Restrict to
1718 Loongson.
1719 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Save grub_arch_memsize.
1720 * grub-core/loader/mips/linux.c (grub_linux_boot): Pass memory size.
1721 * include/grub/mips/qemu_mips/memory.h (grub_arch_memsize): New
1722 external variable.
1723
5d420cd9
CW
17242011-05-17 Colin Watson <cjwatson@ubuntu.com>
1725
1726 * .bzrignore: Remove grub-dumpbios.
1727
d064b830
CW
17282011-05-17 Colin Watson <cjwatson@ubuntu.com>
1729
1730 * util/grub.d/20_linux_xen.in: Honour GRUB_CMDLINE_LINUX_XEN_REPLACE
1731 and GRUB_CMDLINE_LINUX_XEN_REPLACE_DEFAULT, which replace
1732 GRUB_CMDLINE_LINUX and GRUB_CMDLINE_LINUX_DEFAULT (complementing the
1733 existing options which append).
1734 * docs/grub.texi (Simple configuration): Document new options.
1735 Reported by: Ian Jackson. Fixes Debian bug #617538.
1736
3ca2b466
CW
17372011-05-17 Colin Watson <cjwatson@ubuntu.com>
1738
1739 * util/grub-fstest.c (cmd_cat): New function.
1740 (fstest): Handle CMD_CAT.
1741 (options): Add cat.
1742 (argp_parser): Handle cat.
1743
24c9143a
CW
17442011-05-17 Colin Watson <cjwatson@ubuntu.com>
1745
1746 * Makefile.util.def (grub-bin2h): Don't install.
1747 * docs/man/grub-bin2h.h2m: Remove.
1748
90f7ac19
VS
17492011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
1750
1751 * grub-core/kern/mips/startup.S (grub_arch_cpuclock): Move to the right
1752 place.
1753
8d4a5178
VS
17542011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
1755
1756 Reenable qemu-mips port.
1757
1758 * configure.ac: Handle --target=qemu-mips and --target=qemu_mips.
1759 Fix small arc bug while on it.
1760 * gentpl.py: Handle qemu_mips.
1761 * grub-core/Makefile.am: Likewise.
1762 * grub-core/Makefile.core.def: Likewise.
1763 * grub-core/disk/ata.c [GRUB_MACHINE_MIPS_QEMU_MIPS]: Remove
1764 inappropriate includes.
1765 (grub_ata_pciinit) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Removed.
1766 (grub_ata_initialize): [GRUB_MACHINE_MIPS_QEMU_MIPS]: Rewritten.
1767 * grub-core/kern/main.c (grub_modules_get_end)
1768 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Enable.
1769 * grub-core/kern/mips/qemu-mips: Moved to ..
1770 * grub-core/kern/mips/qemu_mips: ... this.
1771 * grub-core/kern/mips/qemu_mips/init.c (grub_get_rtc): Removed.
1772 (grub_machine_init): Call terminfo_init and serial_init.
1773 * grub-core/kern/mips/startup.S: Change MIPS_LOONGSON to MACHINE.
1774 * grub-core/loader/mips/linux.c (params) [GRUB_MACHINE_MIPS_QEMU_MIPS]:
1775 New variable.
1776 (grub_linux_boot) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Handle the qemu-mips
1777 parameter passing.
1778 (grub_linux_unload) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Free params.
1779 (grub_cmd_linux) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Handle params.
1780 (grub_cmd_initrd) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Likewise.
1781 * include/grub/mips/qemu_mips/cmos.h: New file.
1782 * include/grub/mips/qemu-mips/kernel.h: Don't include cpu/kernel.h.
1783 * include/grub/mips/qemu-mips/memory.h (grub_machine_mmap_iterate):
1784 Removed.
1785 * include/grub/mips/qemu-mips/serial.h (GRUB_MACHINE_SERIAL_PORTS):
1786 Use correct mips-style address.
1787 * include/grub/mips/qemu-mips/time.h: Include cpu/time.h.
1788 (GRUB_TICKS_PER_SECOND): Removed.
1789 (grub_get_rtc): Likewise.
1790 (grub_cpu_idle): Likewise.
1791 * include/grub/offsets.h (GRUB_KERNEL_MIPS_QEMU_MIPS_LINK_ADDR):
1792 New definition.
1793 (GRUB_KERNEL_MIPS_QEMU_MIPS_LINK_ALIGN): Likewise.
1794 (GRUB_KERNEL_MIPS_QEMU_MIPS_COMPRESSED_SIZE): Likewise.
1795 (GRUB_KERNEL_MIPS_QEMU_MIPS_UNCOMPRESSED_SIZE): Likewise.
1796 (GRUB_KERNEL_MIPS_QEMU_MIPS_TOTAL_MODULE_SIZE): Likewise.
1797 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX): Likewise.
1798 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX_END): Likewise.
1799 (GRUB_KERNEL_MIPS_QEMU_MIPS_MOD_ALIGN): Likewise.
1800 * util/grub-mkimage.c (image_targets): Add mipsel-qemu_mips-elf.
1801
400b9371
VS
18022011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
1803
1804 SGI ARCS port.
1805
1806 * Makefile.util.def (libgrubmods.a): Add dvh.c.
1807 * conf/Makefile.common (CCASFLAGS_PLATFORM): Add -mips3 on all mips
1808 platforms.
1809 * configure.ac: New target mips-arc.
1810 * gentpl.py: Likewise.
1811 * grub-core/Makefile.am: Likewise.
1812 * grub-core/Makefile.core.def: Likewise.
1813 (xz_decompress): Remove -D GRUB_MACHINE_LINK_ADDR.
1814 (none_decompress): Likewise.
1815 (lsdev): New module.
1816 (datetime): Use lib/arc/datetime.c on ARC.
1817 (part_dvh): New module.
1818 * grub-core/commands/arc/lsdev.c: New file.
1819 * grub-core/disk/arc/arcdisk.c: Likewise.
1820 * grub-core/kern/mips/arc/init.c: Likewise.
1821 * grub-core/kern/mips/cache_flush.S: Don't flush non 4-byte
1822 aligned addresses.
1823 * grub-core/kern/mips/dl.c (grub_arch_dl_check_header): Fix bigendian
1824 support.
1825 (grub_arch_dl_relocate_symbols): Likewise.
1826 * grub-core/kern/mips/loongson/init.c (grub_get_rtc): Moved from here...
1827 * grub-core/kern/mips/init.c (grub_get_rtc): ... here.
1828 * grub-core/kern/mips/startup.S (grub_arch_cpuclock): Have on all
1829 platforms.
1830 * grub-core/lib/arc/datetime.c: New file.
1831 * grub-core/loader/mips/linux.c: Always include time.h. Don't include
1832 pci.h on non-loongson.
1833 (envp_off) [!GRUB_MACHINE_MIPS_LOONGSON]: Remove.
1834 (grub_linux_boot): Set unused registers to 0.
1835 (grub_cmd_linux) [!GRUB_MACHINE_MIPS_LOONGSON]: Remove envp.
1836 * grub-core/mmap/mips/loongson/uppermem.c: Moved from here ...
1837 * grub-core/mmap/mips/uppermem.c: ...here.
1838 * grub-core/partmap/dvh.c: New file.
1839 * grub-core/term/arc/console.c: Likewise.
1840 * grub-core/term/terminfo.c (ANSI_C0_STR): New const.
1841 (grub_terminfo_set_current): Add terminal "arc".
1842 (grub_terminfo_readkey): Support ARC sequences.
1843 * include/grub/arc/arc.h: New file.
1844 * include/grub/arc/console.h: Likewise.
1845 * include/grub/disk.h (grub_disk_dev_id): Add
1846 GRUB_DISK_DEVICE_ARCDISK_ID.
1847 * include/grub/mips/arc/kernel.h: New file.
1848 * include/grub/mips/arc/memory.h: Likewise.
1849 * include/grub/mips/arc/time.h: Likewise.
1850 * include/grub/mips/loongson/kernel.h (grub_halt): Moved from here ...
1851 * include/grub/mips/kernel.h (grub_halt): ... here.
1852 * include/grub/mips/loongson.h (GRUB_CPU_REGISTER_WRAP): Moved from
1853 here...
1854 * include/grub/mips/mips.h (GRUB_CPU_REGISTER_WRAP): ... here.
1855 (GRUB_CPU_LOONGSON_COP0_TIMER_COUNT): Moved from here ...
1856 * include/grub/mips/mips.h (GRUB_CPU_LOONGSON_COP0_TIMER_COUNT): .. here
1857 * include/grub/mips/loongson/kernel.h (grub_reboot): Removed redundant
1858 proto.
1859 * include/grub/mips/loongson/memory.h (GRUB_ARCH_LOWMEMVSTART): Moved
1860 from here ...
1861 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMVSTART): ... here.
1862 (GRUB_ARCH_LOWMEMPSTART): Moved from here ...
1863 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMPSTART): ... here.
1864 (GRUB_ARCH_LOWMEMMAXSIZE): Moved from here ...
1865 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMMAXSIZE): ... here.
1866 (GRUB_ARCH_HIGHMEMPSTART): Moved from here ...
1867 * include/grub/mips/memory.h (GRUB_ARCH_HIGHMEMPSTART): ... here.
1868 (grub_phys_addr_t): Moved from here ...
1869 * include/grub/mips/memory.h (grub_phys_addr_t): ... here.
1870 (grub_vtop): Moved from here ...
1871 * include/grub/mips/memory.h (grub_vtop): ... here.
1872 (grub_map_memory): Moved from here ...
1873 * include/grub/mips/memory.h (grub_map_memory): ... here.
1874 (grub_unmap_memory): Moved from here ...
1875 * include/grub/mips/memory.h (grub_unmap_memory): ... here.
1876 (grub_machine_mmap_iterate): Moved from here ...
1877 * include/grub/mips/memory.h (grub_machine_mmap_iterate): ... here.
1878 (grub_mmap_get_lower): Moved from here ...
1879 * include/grub/mips/memory.h (grub_mmap_get_lower): ... here.
1880 (grub_mmap_get_upper): Moved from here ...
1881 * include/grub/mips/memory.h (grub_mmap_get_upper): ... here.
1882 * include/grub/mips/loongson/time.h (grub_arch_cpuclock): Moved from
1883 here ...
1884 * include/grub/mips/time.h (grub_arch_cpuclock): ... here.
1885 * include/grub/mips/loongson/time.h (grub_get_rtc): Moved from
1886 here ...
1887 * include/grub/mips/time.h (grub_get_rtc): ... here.
1888 * include/grub/mips/loongson/time.h (grub_arch_cpuclock): Moved from
1889 here ...
1890 * include/grub/mips/time.h (grub_arch_cpuclock): ... here.
1891 * include/grub/mips/loongson/time.h (grub_cpu_idle): Moved from
1892 here ...
1893 * include/grub/mips/time.h (grub_cpu_idle): ... here.
1894 * include/grub/offsets.h (GRUB_KERNEL_MIPS_ARC_LINK_ADDR): New
1895 definition.
1896 (GRUB_KERNEL_MIPS_ARC_LINK_ALIGN): Likewise.
1897 (GRUB_KERNEL_MIPS_ARC_COMPRESSED_SIZE): Likewise.
1898 (GRUB_KERNEL_MIPS_ARC_UNCOMPRESSED_SIZE): Likewise.
1899 (GRUB_KERNEL_MIPS_ARC_TOTAL_MODULE_SIZE): Likewise.
1900 (GRUB_KERNEL_MIPS_ARC_PREFIX): Likewise.
1901 (GRUB_KERNEL_MIPS_ARC_PREFIX_END): Likewise.
1902 (GRUB_KERNEL_MIPS_ARC_MOD_ALIGN): Likewise.
1903 (GRUB_MACHINE_LINK_ADDR): Likewise.
1904 * include/grub/terminfo.h (GRUB_TERMINFO_READKEY_MAX_LEN): Increased
1905 to 6.
1906 * util/grub-install.in: Run dvhtool on ARC.
1907 * util/grub-mkimage.c (image_targets): Add mips-arc.
b6296b3f 1908 (generate_image): Handle ECOFF output for mips-arc.
400b9371 1909
c8ecc840
VS
19102011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
1911
1912 * grub-core/bus/pci.c (grub_memalign_dma32): Always allocate in 64-byte
1913 blocks.
1914
153a4b55
VS
19152011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
1916
1917 * grub-core/bus/usb/usbhub.c (attach_root_port): Wait 10ms
1918 after enabling port.
1919
ff44d107
VS
19202011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
1921
1922 Skip incorrect USB devices.
1923
1924 * grub-core/bus/usb/usb.c (grub_usb_device_initialize): Fail if
1925 configcnt == 0.
1926 * include/grub/usb.h (grub_usb_err_t): New enum value
1927 GRUB_USB_ERR_BADDEVICE.
1928
638dbe4f
VS
19292011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
1930
1931 Fuloong video init support.
1932
1933 * include/grub/vga.h (grub_vga_write_arx): inb monochrome address as
1934 well.
1935 (grub_vga_read_arx): New function.
1936 * grub-core/video/sis315pro.c (GRUB_SIS315PRO_MMIO_SPACE): New
1937 definition.
1938 (framebuffer): New members io, mmioptr and mmiobase.
1939 (read_sis_cmd): New function.
1940 (write_sis_cmd): Likewise.
1941 (grub_video_sis315pro_setup): Do the initialisation. Use 640x480
1942 rather than 640x400.
1943 * grub-core/video/sis315_init.c: New file.
1944
c3fc520c
VS
19452011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
1946
1947 * grub-core/bus/cs5536.c: Don't include grub/machine/kernel.h on
1948 non-loongson.
1949 * grub-core/kern/mips/dl.c (grub_arch_dl_init_linker): Fix argument
1950 to grub_dl_register_symbol.
1951
67b1e5c9
VS
19522011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
1953
1954 Fix compilation errors.
1955
1956 * grub-core/term/ns8250.c (serial_get_divisor): Declare 'port' as
1957 potentially unused.
1958 * grub-core/loader/i386/linux.c (grub_linux_setup_video):
1959 Handle GRUB_VIDEO_DRIVER_SIS315PRO.
1960 * grub-core/bus/cs5536.c (grub_cs5536_init_geode): Restrict DIVIL init
1961 to loongson machines.
1962
b756f75f
VS
19632011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
1964
1965 Several FS mtime support.
1966
1967 * grub-core/fs/affs.c (grub_affs_time): New struct.
1968 (grub_affs_file): New field mtime.
1969 (grub_fshelp_node): Changed 'block' and 'parent' to more appropriate
1970 type. Removed 'size'. New field 'di'. All users updated.
1971 (grub_affs_mount): Simplify checsum checking.
1972 (grub_affs_iterate_dir): New helper grub_affs_create_node.
1973 (grub_affs_dir): Handle mtime.
1974 * grub-core/fs/cpio.c (grub_cpio_find_file): Handle mtime.
1975 (grub_cpio_dir): Likewise.
1976 * grub-core/fs/hfs.c (grub_hfs_dirrec): New fields 'ctime' and 'mtime'.
1977 (grub_hfs_filerec): New field mtime.
1978 (grub_hfs_dir): Handle mtime.
1979 (grub_hfs_mtime): New function.
1980 (grub_hfs_fs): Register grub_hfs_mtime.
1981 * grub-core/fs/iso9660.c (grub_iso9660_date2): New struct.
1982 (grub_iso9660_dir): New field mtime.
1983 (grub_fshelp_node): New field dirent.
1984 (iso9660_to_unixtime): New function.
1985 (iso9660_to_unixtime2): Likewise.
1986 (grub_iso9660_read_symlink): Use node->dirent.
1987 (grub_iso9660_iterate_dir): Likewise.
1988 (grub_iso9660_dir): Set mtime.
1989 (grub_iso9660_mtime): New function.
1990 (grub_iso9660_fs): Register grub_iso9660_mtime.
1991 * grub-core/fs/jfs.c (grub_jfs_time): New struct.
1992 (grub_jfs_inode): New fields atime, ctime and mtime.
1993 (grub_jfs_dir): Set mtime.
1994 * grub-core/fs/minix.c (grub_minix_dir): Likewise.
1995 * grub-core/fs/ntfs.c (list_file): Set mtime.
1996 (grub_ntfs_dir): Likewise.
1997 * grub-core/fs/reiserfs.c (grub_fshelp_node): New field 'mtime'.
1998 (grub_reiserfs_iterate_dir): Set mtime.
1999 (grub_reiserfs_dir): Likewise.
2000 * grub-core/fs/sfs.c (grub_sfs_obj): New field mtime.
2001 (grub_fshelp_node): Likewise.
2002 (grub_sfs_iterate_dir): Set mtime.
2003 (grub_sfs_dir): Likewise.
2004 * grub-core/fs/udf.c (grub_udf_dir): Set mtime.
2005 * grub-core/fs/xfs.c (grub_xfs_time): New struct.
2006 (grub_xfs_inode): New fields atime, mtime, ctime.
2007 (grub_xfs_dir): Set mtime.
2008 * include/grub/datetime.h (grub_datetime2unixtime): New function.
2009 * include/grub/hfs.h (grub_hfs_sblock): New fields ctime and mtime.
2010 * include/grub/ntfs.h (grub_fshelp_node): New field mtime.
2011
2012 Support UDF symlinks.
2013
2014 * grub-core/fs/udf.c (grub_udf_iterate_dir): Handle symlinks.
2015 (grub_ufs_read_symlink): New function. All users updated.
2016
2017 Check amiga partmap checksum.
2018
2019 * grub-core/partmap/amiga.c (grub_amiga_rdsk): Pad to 128 bytes.
2020 (grub_amiga_partition): Likewise.
2021 (amiga_partition_map_checksum): New function.
2022 (amiga_partition_map_iterate): Check checksum.
2023
5470225d
VS
20242011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
2025
2026 ROMFS support.
2027
2028 * Makefile.util.def (libgrubmods.a): Add romfs.
2029 * grub-core/Makefile.core.def (romfs): New module.
2030 * grub-core/fs/romfs.c: New file.
2031
d4680a35
VS
20322011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
2033
2034 Squashfs v4 support.
2035
2036 * Makefile.util.def (libgrubmods.a): Add squash4.
2037 * grub-core/Makefile.core.def (squash4): New module.
2038 * grub-core/fs/squash4.c: New file.
2039 * grub-core/io/gzio.c (grub_gzio): New members disk_input_off,
2040 disk_input_start, disk_input.
2041 (get_byte): Handle disk_input.
2042 (grub_zlib_disk_read): New function.
2043 * include/grub/deflate.h (grub_zlib_disk_read): New proto.
2044
bcb18e74
FZ
20452011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
20462011-05-15 Feiran Zheng <famcool@gmail.com>
2047
2048 * Makefile.util.def (libgrubmods.a): Add minix3.
2049 * grub-core/Makefile.core.def (minix3): New module.
2050 * grub-core/fs/minix.c (GRUB_MINIX_MAGIC) [MODE_MINIX3]: New value.
2051 (GRUB_MINIX_BSIZE): Removed.
2052 (GRUB_MINIX_INODE_DIR_BLOCKS): New definition. All users updated.
2053 (grub_minix_ino_t): New type.
2054 (grub_minix_le_to_cpu_ino): New macro.
2055 (GRUB_MINIX_ZONE2SECT): New definition. All users updated.
2056 (grub_minix_sblock) [MODE_MINIX3]: Change for minix3.
2057 (grub_minix_data): New field block_size.
2058 (grub_minix_read_file): Handle 64-bit correctly.
2059 * grub-core/fs/minix3.c: New file.
2060
32297d5f
TG
20612011-05-15 Tristan Gingold <gingold@free.fr>
20622011-05-15 Robert Millan <rmh.grub@aybabtu.com>
20632011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
2064
2065 IA64 support.
2066
2067 * Makefile.util.def (libgrubmods.a): Add grub-core/kern/ia64/dl_helper.c
2068 * configure.ac: Add ia64-efi target.
2069 Probe for __ia64_trampoline, __udivsi3, __umoddi3, __udivdi3,
2070 __divsi3, __modsi3, __umodsi3, __moddi3 and __divdi3 symbols.
2071 * gentpl.py: Add ia64_efi platform.
2072 Rename x86_efi to efi and Add ia64-efi. All users updated.
2073 * grub-core/Makefile.am: Set KERNEL_HEADER_FILES for ia64-efi.
2074 * grub-core/Makefile.core.def (kernel.img): Add compile flags for ia64.
2075 Remove kern/generic/rtc_get_time_ms.c on EFI.
2076 Add kern/ia64/efi/startup.S, kern/ia64/efi/init.c, kern/ia64/dl.c,
2077 kern/ia64/dl_helper.c on ia64-efi.
2078 Add kern/emu/cache.c on emu.
2079 (linux): Use on loader/ia64/efi/linux.c on ia64.
2080 * grub-core/gensymlist.sh (grub_register_exported_symbols): Check
2081 whether symbol is a function.
2082 * grub-core/kern/dl.c [GRUB_MACHINE_EMU]: Include sys/mman.h.
2083 (grub_symbol): New field 'isfunc'.
2084 (grub_dl_resolve_symbol): Return whole symbol rather than just address.
2085 (grub_dl_register_symbol): New argument 'isfunc'. All users updated.
2086 (grub_dl_load_segments): Place all sections into the same region.
2087 [__ia64__]: Create trampolines and got.
2088 [GRUB_MACHINE_EMU]: Call mprotect.
2089 (grub_dl_resolve_symbols): Resolve symbol type as well.
2090 [__ia64__]: Create function descriptors.
2091 * grub-core/kern/efi/efi.c (grub_get_rtc): Renamed to ...
2092 (grub_rtc_get_time_ms): ... this. Expressions simplified.
2093 (grub_get_rtc): New function.
2094 * grub-core/kern/emu/cache.c [__ia64__]: New file.
2095 * grub-core/kern/emu/cache.S: Renamed to ...
2096 * grub-core/kern/emu/cache_s.S: ... this.
2097 [__ia64__]: Add a nop.
2098 * grub-core/kern/emu/full.c (grub_arch_dl_get_tramp_got_size)
2099 [__ia64__]: New function.
2100 * grub-core/kern/emu/lite.c [__ia64__]: Include ../ia64/dl.c.
2101 * grub-core/kern/ia64/dl.c: New file.
2102 * grub-core/kern/ia64/dl_helper.c: Likewise.
2103 * grub-core/kern/ia64/efi/init.c: New file.
2104 * grub-core/kern/ia64/efi/startup.S: Likewise.
2105 * grub-core/lib/efi/halt.c [__ia64__]: Don't try acpi.
2106 * grub-core/lib/ia64/longjmp.S: New file (from glibc).
2107 * grub-core/lib/ia64/setjmp.S: Likewise (from glibc).
2108 * grub-core/lib/setjmp.S [__ia64__]: Include ./ia64/setjmp.S.
2109 * grub-core/loader/ia64/efi/linux.c: New file.
2110 * include/grub/dl.h (GRUB_MOD_NAME): Redefined using C rather than asm.
2111 (GRUB_MOD_DEP): Likewise.
2112 (grub_dl) [__ia64__]: New fields got and tramp.
2113 (grub_dl): New field 'base'.
2114 (grub_dl_register_symbol): New argument isfunc. All users updated.
2115 (GRUB_IA64_DL_TRAMP_ALIGN): New definition.
2116 (GRUB_IA64_DL_TRAMP_SIZE): Likewise.
2117 (GRUB_IA64_DL_GOT_ALIGN): Likewise.
2118 (grub_ia64_dl_get_tramp_got_size): New proto.
2119 (GRUB_ARCH_DL_TRAMP_ALIGN) [__ia64__]: Likewise
2120 (GRUB_ARCH_DL_GOT_ALIGN) [__ia64__]: Likewise
2121 (grub_arch_dl_get_tramp_got_size) [__ia64__]: Likewise
2122 * include/grub/efi/api.h: Skip call wrappers on ia64.
2123 * include/grub/efi/pe32.h (GRUB_PE32_MACHINE_IA64): New definition.
2124 * include/grub/efi/time.h (GRUB_TICKS_PER_SECOND): Change to 1000.
2125 * include/grub/elf.h (ELF_ST_INFO): New definition.
2126 * include/grub/ia64/efi/kernel.h: New file.
2127 * include/grub/ia64/efi/memory.h: Likewise.
2128 * include/grub/ia64/efi/time.h: Likewise.
2129 * include/grub/ia64/kernel.h: Likewise.
2130 * include/grub/ia64/setjmp.h: Likewise (from glibc).
2131 * include/grub/ia64/time.h: New file.
2132 * include/grub/ia64/types.h: Likewise.
2133 * include/grub/libgcc.h (__udivsi3, __umodsi3, __umoddi3, __udivdi3,
2134 __moddi3, __divdi3, __divsi3, __modsi3, __ia64_trampoline):
2135 New protos.
2136 * include/grub/offsets.h (GRUB_KERNEL_IA64_EFI_PREFIX): New definition.
2137 (GRUB_KERNEL_IA64_EFI_PREFIX_END): Likewise.
2138 * include/grub/types.h (PRIxGRUB_ADDR): Likewise.
2139 * util/grub-mkimage.c (image_target_desc): New field pe_target.
2140 All users updated.
2141 (EFI64_HEADER_SIZE): New definition. All users updated.
2142 (image_targets): Add ia64-efi.
2143 * util/grub-mkimagexx.c (relocate_symbols): New arguments jumpers and
2144 jumpers_addr. All users updated.
2145 Create function descriptors.
2146 (count_funcs): New function.
2147 (unaligned_uint32): New struct.
2148 (MASK20): New definition.
2149 (MASK19): Likewise.
2150 (MASKF21): Likewise.
2151 (add_value_to_slot_20b): New function.
2152 (add_value_to_slot_21_real): Likewise.
2153 (add_value_to_slot_21): Likewise.
2154 (ia64_kernel_trampoline): New struct.
2155 (nopm): New variable.
2156 (jump): Likewise.
2157 (make_trampoline): New function.
2158 (relocate_addresses): Handle ia64.
2159 (make_reloc_section): Likewise.
2160 (load_image): Likewise.
2161
983b414d
VS
21622011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
2163
2164 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Silence spurious
2165 warning. Move variables before code while on it.
2166
5d063cdc
VS
21672011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
2168
2169 Fuloong support.
2170
2171 * configure.ac: Rename yeeloong platform to loongson. All users updated.
2172 * grub-core/Makefile.core.def (fwstart_fuloong): New image.
2173 * grub-core/boot/mips/loongson/fuloong.S: New file.
2174 * grub-core/boot/mips/loongson/fwstart.S: Wait for CS5536 to come up.
2175 Explicitly init CS5536.
2176 [FULOONG]: Don't use serial until CS5536 is available.
2177 Set GPIO based on dumps.
2178 (serial_hw_init) [FULOONG]: Handle CS5536 parts.
2179 [FULOONG]: Handle GPIO and memory controller differences.
2180 Parse machine type in $a2.
2181 * grub-core/boot/mips/startup_raw.S: Determine and save the
2182 architecture.
2183 * grub-core/bus/cs5536.c (gpiodump): Move to fwstart.S.
2184 (grub_cs5536_init_geode): Remove gpio part. Conditionalise DIVIL
2185 init on architecture type.
2186 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Init
2187 SIS315E. Don't init at_keyboard on fuloong.
2188 (grub_halt): Support Fuloong.
2189 * grub-core/kern/mips/startup.S [LOONGSON]: Save $s7.
2190 * grub-core/loader/mips/linux.c (LOONGSON_MACHTYPE): Removed.
2191 (loongson_machtypes): New array.
2192 (grub_cmd_linux) [GRUB_MACHINE_MIPS_LOONGSON]: Pass the right machine
2193 type.
2194 * grub-core/term/ns8250.c (serial_get_divisor): New parameter port and
2195 config. All users updated. Handle CS5536 serial.
2196 * grub-core/term/serial.c (grub_serial_register): Conditionalise
2197 default port on machine type. Register serial as inactive.
2198 * grub-core/video/sis315pro.c: New file.
2199 * include/grub/cs5536.h (GRUB_CS5536_MSR_MAILBOX_CONFIG_ENABLED): New
2200 definition.
2201 (GRUB_CS5536_MSR_MAILBOX_CONFIG): Likewise.
2202 (GRUB_CS5536_MSR_DIVIL_LEG_IO_UART1_COM1): Likewise.
2203 (GRUB_CS5536_MSR_DIVIL_LEG_IO_UART2_COM3): Likewise.
2204 (GRUB_CS5536_MSR_DIVIL_UART1_CONF): Likewise.
2205 (GRUB_CS5536_MSR_DIVIL_UART2_CONF): Likewise.
2206 * include/grub/mips/loongson.h (GRUB_CPU_LOONGSON_SHUTDOWN_GPIO): Rename
2207 to ...
2208 (GRUB_CPU_YEELOONG_SHUTDOWN_GPIO): ... this.
2209 * include/grub/mips/loongson/kernel.h (GRUB_ARCH_MACHINE_YEELOONG): New
2210 definition.
2211 (GRUB_ARCH_MACHINE_FULOONG): Likewise.
2212 (grub_arch_machine): New extern var.
2213 * include/grub/mips/loongson/serial.h
2214 (GRUB_MACHINE_SERIAL_DIVISOR_115200): Renamed to ...
2215 (GRUB_MACHINE_SERIAL_PORT0_DIVISOR_115200): ... this.
2216 (GRUB_MACHINE_SERIAL_PORT): Renamed to ...
2217 (GRUB_MACHINE_SERIAL_PORT0): ... this.
2218 (GRUB_MACHINE_SERIAL_PORT2_DIVISOR_115200): New definition.
2219 (GRUB_MACHINE_SERIAL_PORT1): Likewise.
2220 (GRUB_MACHINE_SERIAL_PORT2): Likewise.
2221 (GRUB_MACHINE_SERIAL_PORTS): Include ports 1 and 2.
2222 * include/grub/term.h (grub_term_register_input_inactive): New inline
2223 function.
2224 (grub_term_register_output_inactive): Likewise.
2225 * include/grub/video.h (grub_video_driver_id): New value
2226 GRUB_VIDEO_DRIVER_SIS315PRO.
2227 * util/grub-mkimage.c (image_target_desc): Rename name to dirname.
2228 New field "names". All users updated.
2229 New field value IMAGE_FULOONG_FLASH.
2230 (generate_image): USe separate fwstart hashes for yeeloong and fuloong.
2231
6ada82d1
JU
22322011-05-14 Jordan Uggla <jordan.uggla@gmail.com>
2233
2234 * docs/grub.texi (Invoking grub-install): Fix additional outdated claims
2235 and add some clarification.
2236
90c571a4
VS
22372011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
2238
2239 * util/grub.d/10_linux.in: Autoload gzio since it's needed on some
2240 platforms if kernel is compressed.
2241
de04eecf
VS
22422011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
2243
2244 * grub-core/kern/mm.c (grub_memalign): Disable auto-unloadding of
2245 unused modules since currently referrence counter isn't reliable and
2246 there isn't much memory to recover there anyway.
2247
57688121
VS
22482011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
2249
2250 * grub-core/kern/dl.c (grub_dl_load_file): Decrease ref counter
2251 rather than resetting it to allow modules to reference themselves
2252 in init.
2253
3d2c7e35
VS
22542011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
2255
2256 * grub-core/kern/dl.c (grub_dl_unload): Don't decrease reference
2257 counter on dependencies since grub_dl_unref already handles this.
2258
b25db218
VS
22592011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
2260
2261 * grub-core/font/font_cmd.c (loadfont_command): Set grub_errno
2262 on error if not already done.
2263
25a45338
VS
22642011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
2265
2266 Fix few potential memory misusage.
2267
2268 * grub-core/font/font.c (load_font_index): Don't free char_index to
2269 avoid double free.
b25db218
VS
2270 (grub_font_load): Zero-fill font at alloc for safety.
2271 Close file on error.
2272 (free_font): Free bmp_idx.
25a45338 2273
0cac83df
VS
22742011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
2275
2276 * docs/grub.texi (Installation): Fix several outdated claims.
2277
2217a143
VS
22782011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
2279
2280 Handle module_license on windows.
2281
2282 * util/grub-pe2elf.c (MODLICENSE_SECTION): New definition. All following
2283 sections shifted.
2284 (insert_string): Make argument const char * instead of char *.
2285 (write_section_data): Handle long section names.
2286 Handle module_license.
2287
d4de6b01
VS
22882011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
2289
2290 * grub-core/commands/menuentry.c (grub_cmd_menuentry): Correctly
2291 handle class-free menuentries.
2292 (grub_normal_add_menu_entry): Add a check to be sure.
2293
4c2a3b43
VS
22942011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
2295
2296 * grub-core/term/at_keyboard.c (set1_e0_mapping): Fix swap between
2297 PgUp and PgDown.
2298
85c6210f
VS
22992011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
2300
2301 * configure.ac: Bump version to 1.99.
2302
36084912
VS
23032011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
2304
2305 Give ATA device a bit more time on first try in order to allow disks
2306 to spin up.
2307
2308 * grub-core/disk/ata.c (grub_atapi_identify): Use GRUB_ATA_TOUT_DEV_INIT
2309 if dev->present is 1. Reset dev->present on failure.
2310 (grub_ata_device_initialize): Set dev->present to 1.
2311 * include/grub/ata.h (GRUB_ATA_TOUT_DEV_INIT): New value.
2312 (grub_ata_device): New member 'present'.
2313
bda0e219
VS
23142011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
2315
2316 * util/grub-mkimage.c (generate_image): Update hash.
2317
19e1c41b
VS
23182011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
2319
2320 Flush caches on DMA memory.
2321
2322 * grub-core/kern/mips/cache.S (grub_arch_sync_dma_caches): New function.
2323 * grub-core/bus/pci.c (grub_memalign_dma32): Flush caches.
2324 (grub_dma_free): Likewise.
2325 * include/grub/cache.h (grub_arch_sync_dma_caches): New declaration.
2326
91bbcc0c
VS
23272011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
2328
2329 * grub-core/boot/mips/yeeloong/fwstart.S: Add explicit set mips3
2330 to avoid asm treating ld and sd as macros.
2331
60ddfad3
VS
23322011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
2333
2334 * grub-core/boot/mips/startup_raw.S: Flush cache after loading
2335 decompressor.
2336
a298aa04
VS
23372011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
2338
2339 * grub-core/boot/mips/startup_raw.S: Use jalr rather than bal to call
2340 grub_decompress_core since later would fail if grub_decompress_core
2341 is too far.
2342
9b44feca
VS
23432011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
2344
2345 * grub-core/kern/mips/dl.c (grub_arch_dl_relocate_symbols): Handle
2346 R_MIPS_JALR since it's used by newer compiler.
2347
56dbe7b4
VS
23482011-05-10 Vladimir Serbinenko <phcoder@gmail.com>
2349
2350 * util/grub.d/10_linux.in: Correctly handle the Linux in root.
2351
52856af2
VS
23522011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
2353
2354 * grub-core/loader/efi/chainloader.c (grub_chainloader_unload): Set
2355 file_path to 0 for surety.
2356 (grub_chainloader_boot): Set exit_data to NULL.
2357 Unset the loader once done.
2358 (grub_cmd_chainloader): Fix confusing error message if file is empty.
2359
9c9bfc6d
VS
23602011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
2361
2362 * grub-core/term/at_keyboard.c (fetch_key): Make a printf on
2363 unknown key into a dprintf.
2364
dd94a3df
VS
23652011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
2366
2367 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Don't abort
2368 on first non-existant partition.
2369
fa68d99c
VS
23702011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
2371
2372 * grub-core/kern/emu/hostdisk.c (open_device): Set data->fd to -1 if
2373 openning fails.
2374 Reported by: Mark Korenberg.
2375
157effb7
VS
23762011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
2377
2378 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Prevent possible
2379 overflow.
2380
ea75312f
VS
23812011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
2382
2383 * util/grub-mkimage.c (main): Explicitely flush and sync the output
2384 before closing to ensure that it will be readable by grub-setup.
2385
072b5d31
VS
23862011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
2387
2388 * grub-core/loader/efi/appleloader.c (MAKE_PIWG_PATH): New macro.
2389 (devpath_1): Use MAKE_PIWG_PATH.
2390 (devpath_2): Likewise.
2391 (devpath_3): Likewise.
2392 (devpath_4): Likewise.
2393 (devpath_5): Likewise.
2394 (devpath_6): Likewise.
2395
2396 The appleldr.mod was checked that to be binary identical to previous
2397 version.
2398
7fae0051
Z
23992011-05-05 Zach <mikezackles>
2400
2401 Support 2010 Macbooks.
2402
2403 * grub-core/loader/efi/appleloader.c (devpath_6): New variable.
2404 (devs): Add devpath_6.
2405
7c515bee
VS
24062011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
2407
2408 * util/grub-mkpasswd-pbkdf2.c (main): Use /dev/urandom and not
2409 /dev/random. /dev/urandom is good enough for our purposes (salting).
2410
ed660bd8
VS
24112011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
2412
2413 * util/grub-mkrescue.in (process_input_dir): Include efiemu??.o.
2414
ee5614b7
VS
24152011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
2416
2417 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Correctly handle
2418 hexadecimal.
2419
664889a6
VS
24202011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
2421
2422 * grub-core/efiemu/main.c (grub_efiemu_load_file): Return grub_errno
2423 and not 0 on failure.
2424
bd405bbc
CW
24252011-05-03 Colin Watson <cjwatson@ubuntu.com>
2426
2427 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_dir): Return
2428 GRUB_ERR_BAD_FS rather than GRUB_ERR_IO if the disk is not a pxe
2429 disk; otherwise grub_fs_probe will not fall back to the next
2430 filesystem.
2431 (grub_pxefs_open): Likewise, for consistency.
2432 Reported and tested by: Ezekiel Grave.
2433
4ebff753
CW
24342011-05-03 Colin Watson <cjwatson@ubuntu.com>
2435
2436 * tests/partmap_test.in: Don't hardcode path to parted.
2437 Reported by: Peter Hjalmarsson. Fixes Savannah bug #33150.
2438
8f942553
CW
24392011-05-01 Colin Watson <cjwatson@ubuntu.com>
2440
2441 * docs/grub.texi (GRUB only offers a rescue shell): Suggest the use
2442 of `ls' to find out which devices are available.
2443
3c62402d
VS
24442011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
2445
2446 * grub-core/loader/i386/linux.c (grub_linux_boot): Supply target rather
2447 than source address for efi mmap buffer.
2448
723f63f2
VS
24492011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
2450
2451 * grub-core/partmap/amiga.c (amiga_partition_map_iterate): Fix a
2452 wrong action on non-detecting the magic.
2453
68797f92
VS
24542011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
2455
2456 * grub-core/gnulib/regex.c: Remove GRUB_MOD_LICENSE since it's
2457 already supplied by another part of the module (fixes compilation on
2458 FreeBSD).
2459
6be8715d
VS
24602011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
2461
2462 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Make mdraid UUID
2463 match the one used by mdadm.
2464
e91dba5b
CW
24652011-04-21 Colin Watson <cjwatson@ubuntu.com>
2466
2467 * po/README: Add instructions for creating po/LINGUAS.
2468
c85140b3
CW
24692011-04-21 Colin Watson <cjwatson@ubuntu.com>
2470
2471 Add "SEE ALSO" sections to most man pages. Fixes Debian bug
2472 #551428.
2473
2474 * docs/man/grub-editenv.h2m (SEE ALSO): New section.
2475 * docs/man/grub-emu.h2m (SEE ALSO): Likewise.
2476 * docs/man/grub-fstest.h2m (SEE ALSO): Likewise.
2477 * docs/man/grub-install.h2m (SEE ALSO): Likewise.
2478 * docs/man/grub-macho2img.h2m (SEE ALSO): Likewise.
2479 * docs/man/grub-menulst2cfg.h2m (SEE ALSO): Likewise.
2480 * docs/man/grub-mkconfig.h2m (SEE ALSO): Likewise.
2481 * docs/man/grub-mkdevicemap.h2m (SEE ALSO): Likewise.
2482 * docs/man/grub-mkfont.h2m (SEE ALSO): Likewise.
2483 * docs/man/grub-mkimage.h2m (SEE ALSO): Likewise.
2484 * docs/man/grub-mklayout.h2m (SEE ALSO): Likewise.
2485 * docs/man/grub-mknetdir.h2m (SEE ALSO): Likewise.
2486 * docs/man/grub-mkpasswd-pbkdf2.h2m (SEE ALSO): Likewise.
2487 * docs/man/grub-mkrelpath.h2m (SEE ALSO): Likewise.
2488 * docs/man/grub-mkrescue.h2m (SEE ALSO): Likewise.
2489 * docs/man/grub-ofpathname.h2m (SEE ALSO): Likewise.
2490 * docs/man/grub-pe2elf.h2m (SEE ALSO): Likewise.
2491 * docs/man/grub-probe.h2m (SEE ALSO): Likewise.
2492 * docs/man/grub-reboot.h2m (SEE ALSO): Likewise.
2493 * docs/man/grub-script-check.h2m (SEE ALSO): Likewise.
2494 * docs/man/grub-set-default.h2m (SEE ALSO): Likewise.
2495 * docs/man/grub-setup.h2m (SEE ALSO): Likewise.
2496
92051871
CW
24972011-04-21 Colin Watson <cjwatson@ubuntu.com>
2498
2499 * grub-core/kern/emu/getroot.c
2500 (grub_find_root_device_from_mountinfo): Remove non-virtual-device
2501 test that was incorrectly reintroduced in r3214.
2502 Reported by: Ian Dall. Fixes Savannah bug #33133.
2503
b13f79a4
CW
25042011-04-21 Colin Watson <cjwatson@ubuntu.com>
2505
2506 Fix stack pointer handling in 16-bit relocator.
2507
2508 * grub-core/lib/i386/relocator16.S (grub_relocator16_start): Move
2509 grub_relocator16_sp to %esp rather than %ss, and zero-extend it.
2510 Fixes Ubuntu bug #683904.
2511
9b710a88
VS
25122011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
2513
2514 * configure.ac: Bump version to 1.99~rc2.
2515
d97e7b59
VS
25162011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
2517
2518 * include/grub/dl.h [ASM_FILE]: Adapt for assembly.
2519 * grub-core/lib/i386/setjmp.S: Add missing GRUB_MOD_LICENSE.
2520 * grub-core/lib/x86_64/setjmp.S: Likewise.
2521 * grub-core/lib/mips/setjmp.S: Likewise.
2522 * grub-core/lib/powerpc/setjmp.S: Likewise.
2523 * grub-core/lib/sparc64/setjmp.S: Likewise.
2524
0624551c
VS
25252011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
2526
2527 * grub-core/lib/efi/datetime.c: Add missing GRUB_MOD_LICENSE.
2528 * grub-core/lib/efi/datetime.c: Likewise.
2529
e8f28d4c
VS
25302011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
2531
2532 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_flush):
2533 New function.
2534 (grub_util_biosdisk_close): Use grub_util_biosdisk_flush.
2535 * include/grub/emu/hostdisk.h (grub_util_biosdisk_flush): New proto.
2536 * util/grub-setup.c (setup): Use grub_util_biosdisk_flush.
2537
bba79a15
VS
25382011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
2539
2540 * grub-core/term/gfxterm.c (grub_gfxterm_fullscreen): Preserve previous
2541 bitmap.
2542 (grub_gfxterm_term_init): Likewise.
2543
abc474ef
VS
25442011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
2545
2546 Take into account the decorations the computing menu entry width.
2547
2548 * grub-core/gfxmenu/widget-box.c (get_border_width): New function.
2549 (grub_gfxmenu_create_box): Register get_border_width.
2550 * grub-core/gfxmenu/gui_list.c (draw_menu): Use get_border_width
2551 if available.
2552 * include/grub/gfxwidgets.h (grub_gfxmenu_box): New member
2553 get_border_width.
2554
e74b3947
EP
25552011-04-18 Endres Puschner <code@e7p.de>
2556
2557 * grub-core/gfxmenu/icon_manager.c (grub_gfxmenu_icon_manager_get_icon):
2558 Don't skip first class.
2559
34faa595
VS
25602011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
2561
2562 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Support huge
2563 chunks.
2564 * include/grub/err.h (grub_err_t): New enum value GRUB_ERR_BUG.
2565
93a777e3
VS
25662011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
2567
2568 Complete 64-bit division support.
2569
2570 * grub-core/kern/misc.c (grub_divmod64): Rename to ...
2571 (grub_divmod64_full): ... this. Support 64-bit divisor and reminder.
2572 * include/grub/misc.h (grub_divmod64): Rename to ...
2573 (grub_divmod64_full): ... this.
2574 (grub_divmod64): New inline function.
2575
a5102d94
VS
25762011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
2577
2578 * util/grub-mkimage.c (generate_image): Add forgotten comma.
2579
f3fb7b36
VS
25802011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
2581
2582 * util/grub-mkimage.c (generate_image): Update fwstart.img hash after
2583 performing the necessary test.
2584
9ac718b0
VS
25852011-04-17 Vladimir Serbinenko <phcoder@gmail.com>
2586
2587 * Makefile.am (multiboot.elf): Add -Wl,--build-id=none.
2588 (kfreebsd.elf): Likewise.
2589 (pc-chainloader.elf): Likewise.
2590 (ntldr.elf): Likewise.
2591
50d2cc5a
VS
25922011-04-17 Vladimir Serbinenko <phcoder@gmail.com>
2593
2594 Identify RAID by its UUID rather than (guessed) name.
2595
2596 * grub-core/disk/raid.c (ascii2hex): New function.
2597 (grub_raid_open): Accept mduuid/%s specification.
2598 * grub-core/kern/emu/getroot.c (get_mdadm_name): Revamped into ...
2599 (get_mdadm_uuid): ... this.
2600 (grub_util_get_grub_dev): Use mduuid/%s if UUID is available.
2601
e03f7bea
VS
26022011-04-16 Vladimir Serbinenko <phcoder@gmail.com>
2603
2604 * grub-core/gfxmenu/gui_image.c (rescale_image): Don't attempt to scale
2605 to negative size.
2606
e74c3112
CW
26072011-04-13 Colin Watson <cjwatson@ubuntu.com>
2608
2609 * util/grub.d/10_linux.in: Add rootflags=subvol=<name> if / is on a
2610 btrfs subvolume.
2611 * util/grub.d/20_linux_xen.in: Likewise.
2612
78fa584f
CW
26132011-04-13 Colin Watson <cjwatson@ubuntu.com>
2614
2615 Rewrite /proc/self/mountinfo handling to cope with bind-mounts and
2616 move-mounts appearing out of order. Fixes Ubuntu bug #738345.
2617
2618 * grub-core/kern/emu/getroot.c (find_root_device_from_mountinfo):
2619 Build a list of relevant visible mounts using the mnt_id and
2620 parent_mnt_id fields, and then scan that list at the end.
2621
9d5f8162
CW
26222011-04-12 Colin Watson <cjwatson@ubuntu.com>
2623
2624 * docs/grub.texi (normal): New section.
2625 (normal_exit): New section.
2626 (Embedded configuration): Add reference to normal.
2627 (GRUB only offers a rescue shell): Likewise.
2628 * docs/grub-dev.texi (Error Handling): Fix typo.
2629
09a9d66f
CW
26302011-04-12 Colin Watson <cjwatson@ubuntu.com>
2631
2632 * NEWS: Drop obsolete entry about probe-only btrfs support.
2633
0c676933
CW
26342011-04-12 Colin Watson <cjwatson@ubuntu.com>
2635
2636 * util/import_gcry.py: Fix typo.
2637
ec9f5e0d
VS
26382011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
2639
2640 * NEWS: Add btrfs support.
2641
fe6b2cba
VS
26422011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
26432011-04-11 Colin Watson <cjwatson@ubuntu.com>
2644
2645 BtrFS support. Written by me (Vladimir) with important bugfixes and
2646 even more important testing by Colin.
2647
2648 * Makefile.util.def (libgrubmods.a): Add crc.c and gzio.c
2649 * grub-core/Makefile.core.def (btrfs): Add crc.c.
2650 * grub-core/fs/btrfs.c: Stub replaced with real implementation.
2651 * grub-core/io/gzio.c (grub_gzio): New fields mem_input_size,
2652 mem_input_off and mem_input. All users updated to accept in-RAM input.
2653 (gzio_seek): New function.
2654 (test_zlib_header): Likewise.
2655 (grub_gzio_read): Likewise.
2656 (grub_zlib_decompress): Likewise.
2657 * grub-core/kern/emu/getroot.c (grub_find_root_device_from_mountinfo):
2658 Accept partial and non-virtual mounts.
2659 (grub_guess_root_device): Do rescanning after device_from_mountinfo to
2660 avoid receiving /dev/dm-X as device.
2661 * grub-core/kern/emu/misc.c (grub_make_system_path_relative_to_its_root):
2662 Handle bind and partial mounts.
2663 * grub-core/lib/crc.c: New file.
2664 * include/grub/deflate.h: Likewise.
2665 * include/grub/emu/misc.h (grub_find_root_device_from_mountinfo): New
2666 proto.
2667 * include/grub/lib/crc.h: New file.
2668
e745cf0c
VS
26692011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
2670
2671 Implement automatic module license checking according to new GNU
2672 guidelines.
2673
2674 * grub-core/kern/dl.c (grub_dl_check_license): New function.
2675 (grub_dl_load_core): Use grub_dl_check_license.
2676 * include/grub/dl.h (GRUB_MOD_SECTION): New macro.
2677 (GRUB_MOD_LICENSE): Likewise.
2678 (GRUB_MOD_DUAL_LICENSE): Likewise.
2679 All modules updated.
2680
2a9bc016
CW
26812011-04-11 Colin Watson <cjwatson@ubuntu.com>
2682
2683 * grub-core/fs/btrfs.c (grub_btrfs_fs) [GRUB_UTIL]: Set
2684 reserved_first_sector to 1. btrfs reserves plenty of space for boot
2685 loaders.
2686 Reported by: Gene Cumm. Fixes Ubuntu bug #757446.
2687
8a3bc88e
VS
26882011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
2689
2690 * util/grub-fstest.c (cmd_cmp): Check that sizes match.
2691
af869a4a
VS
26922011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
2693
2694 * util/grub-fstest.c (read_file): Report GRUB error if file opening
2695 failed.
2696
9ee8d94f
VS
26972011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
2698
2699 * grub-core/kern/file.c (grub_file_open): Don't take into account the
2700 parenthesis in the middle of the filename.
2701
b01abe3e
VS
27022011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
2703
2704 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Use correct limits
2705 rather than trying to put initrd way too high.
2706 Reported by: Ryan Lortie <desrt@desrt.ca>
2707
335bda1e
VS
27082011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
2709
2710 * grub-core/boot/mips/yeeloong/fwstart.S (no_cs5536): Put back
2711 improperly removed string.
2712
5ca1a64d
VS
27132011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
2714
2715 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_data): New member
2716 is_disk.
2717 (grub_util_biosdisk_open): Don't apply ioctl on non-disk devices.
2718 (open_device) Likewise.
2719 (grub_util_biosdisk_close): Likewise.
d8ce9995 2720 Reported by: Mark Korenberg.
5ca1a64d 2721
cbac5b1e
AK
27222011-04-10 Alexander Kurtz <kurtz.alex@googlemail.com>
2723
2724 * util/grub-mkconfig_lib.in: Add missing quotes.
2725
088cdb65
CW
27262011-04-10 Colin Watson <cjwatson@ubuntu.com>
2727
2728 * grub-core/gnulib/argp-parse.c (__argp_input): Don't crash if pstate
2729 is NULL.
2730
8b8a81fa
VS
27312011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
2732
2733 Dynamically count the number of lines for the lower banner.
2734
2735 * grub-core/normal/menu_entry.c (per_term_screen): New member
2736 num_entries.
2737 (print_down): Use num_entries.
2738 (update_screen): Likewise.
2739 (grub_menu_entry_run): Set num_entries.
2740 * grub-core/normal/menu_text.c (menu_viewer_data): New member
2741 num_entries.
2742 (grub_print_message_indented): Move real part to ...
2743 (grub_print_message_indented_real): ... here. Additional argument
2744 dry_run.
2745 (draw_border): Additional argument num_entries.
2746 (print_message): Additional argument dry_run.
2747 (print_entries): Receive menu viewer data.
2748 (grub_menu_init_page): New argment num_entries.
2749 (menu_text_set_chosen_entry): Use num_entries.
2750 (grub_menu_try_text): Likewise.
2751 * grub-core/normal/term.c (print_ucs4_terminal): New argument dry_run.
2752 All users updated.
2753 (grub_ucs4_count_lines): New function.
2754 * include/grub/term.h (grub_term_cursor_x): Moved from here ..
2755 * grub-core/normal/menu_text.c (grub_term_cursor_x): ... to here.
2756 * include/grub/term.h (GRUB_TERM_MESSAGE_HEIGHT): Removed.
2757 (grub_term_border_height): Likewise.
2758 (grub_term_num_entries): Likewise.
2759
277f955b
VS
27602011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
2761
2762 * grub-core/boot/mips/yeeloong/fwstart.S: Fix address to error message.
2763 Remove now unused string.
2764
536ce85a
CW
27652011-04-09 Colin Watson <cjwatson@ubuntu.com>
2766
2767 * docs/grub-dev.texi (Finding your way around): Update for 1.99
2768 build system.
2769 (Getting started): GRUB is developed in Bazaar now, not Subversion.
2770
2771 (Comment): Fix typo.
2772 (Getting started): General copy-editing.
2773 (Typical Development Experience): Likewise.
2774 (Error Handling): Likewise.
2775 (Video API): Likewise.
2776
2cf09e32
CW
27772011-04-09 Colin Watson <cjwatson@ubuntu.com>
2778
2779 * docs/grub-dev.texi: Replace MoinMoin syntax with Texinfo syntax
2780 throughout.
2781
1ec652f4
VS
27822011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
2783
2784 * util/grub-mkimage.c (main): Handle special naming of yeeloong
2785 directory.
2786
2c583728
CW
27872011-04-08 Colin Watson <cjwatson@ubuntu.com>
2788
2789 * docs/grub-dev.texi: Fix spelling of "developer" throughout.
2790 * grub-core/fs/i386/pc/pxe.c (parse_dhcp_vendor): Fix spelling of
2791 "development".
2792
d7a565e9
VS
27932011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
2794
2795 * grub-core/normal/menu_entry.c (run): Use grub_memcpy rather than
2796 grub_strcpy since the lines aren't necessarily 0-terminated.
2797
7c2e4909
VS
27982011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
2799
2800 * grub-core/lib/legacy_parse.c (legacy_commands): Find doesn't set
2801 root on legacy.
2802
34c09785
VS
28032011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
2804
2805 * grub-core/commands/probe.c (options): Argument to set isn't optional.
2806 (GRUB_MOD_INIT): DEVICE isn't optional.
2807
6a6f8058
VS
28082011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
2809
2810 * grub-core/normal/term.c (print_ucs4_terminal): Don't try to put the
2811 word on new line if it's too long anyway. Fixes a hang.
2812
2e335e90
VS
28132011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
2814
2815 * include/grub/util/raid.h (grub_util_raid_getmembers): Make argument
2816 const.
2817 * util/grub-setup.c (main): Reuse md device name if available.
2818 * util/raid.c (grub_util_raid_getmembers): Receive device name and
2819 not GRUB name as argument.
2820 Based on patch by: Florian Wagner <fwagner>.
2821
10a7a867
VS
28222011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
2823
2824 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
2825 Place mbi on low memory for better compatibility.
2826
7a3d6cd9
VS
28272011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
2828
2829 * include/grub/efiemu/efiemu.h: Use grub_memory_hook_t type.
2830
18dd6b47
VS
28312011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
28322011-04-08 Colin Watson <cjwatson@ubuntu.com>
2833
2834 * autogen.sh: Ensure that collate and ctype locale is C.
4ed4ce58 2835 * conf/Makefile.common: Likewise.
18dd6b47 2836
3c0e3f14
VS
28372011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
2838
f7148863
VS
2839 * grub-core/normal/menu.c: Add missing include.
2840
28412011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
2842
2843 * grub-core/disk/raid.c [GRUB_UTIL]: Add missing include.
3c0e3f14 2844
6d1fa41f
MZ
28452011-04-08 Martin Zuther <mzuther@mzuther.de>
2846
2847 * util/grub-mkconfig.in: Ignore emacsen backup.
2848
478182a8
VS
28492011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
2850
2851 * grub-core/kern/emu/hostdisk.c (open_device): Sync on close and not
2852 on open.
2853 (grub_util_biosdisk_close): Likewise.
2854
72a89a54
VS
28552011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
2856
2857 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev): Add missing
2858 const attribute and use grub_isdigit.
2859
b5ebecfa
A
28602011-04-06 Andrey <dev_null@ukr.net>
2861
2862 * grub-core/video/fb/video_fb.c (grub_video_fb_setup): Silence older
2863 gcc warning.
2864
7755f66e
VS
28652011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
2866
2867 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align): Add few
2868 useful grub_dprintf's.
2869
461121ff
VS
28702011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
2871
2872 * include/grub/fs.h (grub_dirhook_info): Use unsigned for 1-bit fields.
2873
2a961775
VS
28742011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
2875
2876 * util/grub.d/00_header.in: Don't use LANG unless unifont is available.
2877
adf594cc
VS
28782011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
2879
2880 Output errors if theme loading failed.
2881
2882 * grub-core/gfxmenu/gfxmenu.c (grub_gfxmenu_try): Move the call to
2883 grub_gfxterm_fullscreen on error paths to ...
2884 * grub-core/normal/menu.c (menu_init): ...here. Wait after showing
2885 theme loading error.
2886
665900a3
VS
28872011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
2888
2889 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): Let a bit more
2890 space for older compilers.
2891 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
2892
a562b479
VS
28932011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
2894
2895 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Detect spares
2896 and report them as not RAID members since they are useless for GRUB.
2897 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
2898
850e9373
VS
28992011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
2900
2901 Increase LVM implementation robustness in order not to crash on
2902 configurations like pvmove. Previously code assumed that in some places
2903 only lvs or only pvs are used whereas it seems that they are used
2904 interchangeably.
2905
2906 * grub-core/disk/lvm.c (read_node): New function.
2907 (read_lv): Use read_node.
2908 (grub_lvm_scan_device): Use only first mirror on pvmove'd lvs.
2909 Match volumes only at the end when all lvs are found. Take both
2910 pvs (first) and lvs (second) into account.
2911 * include/grub/lvm.h (grub_lvm_segment): Merge fields stripe_* and
2912 mirror_* into node_*. All users updated.
2913 (grub_lvm_stripe): Merge this ...
2914 (grub_lvm_mirror): ... and this ...
2915 (grub_lvm_node): ... into this. All users updated.
2916
6f332153
VS
29172011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
2918
2919 * grub-core/disk/lvm.c (grub_lvm_scan_device): Print errors on the end
2920 of function to allow further scanning for LVMs.
2921
829ea451
VS
29222011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
2923
2924 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_read): Don't close
2925 on failed seek as it breaks open fd reusage.
2926
09ceb9a5
VS
29272011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
2928
2929 * util/grub-install.in: Add a recommendation to use --recheck before
2930 reporting bugs.
2931
67e11623
VS
29322011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
2933
2934 * docs/grub.texi (Vendor power-on buttons): Explain how the numbers
2935 are obtained.
2936
caee5efd
VS
29372011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
2938
2939 GRUB developper manual based on existing Internals section and
2940 contributions by the various authors with active copyright assignment.
2941
2942 * docs/Makefile.am (info_TEXINFOS): Add grub-dev.texi.
2943 * docs/font_char_metrics.png: New file.
2944 * docs/font_char_metrics.txt: Likewise.
2945 * docs/grub-dev.texi: Likewise.
2946 * docs/grub.texi (Internals): Move from here ...
2947 * docs/grub-dev.texi: ... here.
2948
2cccc747
CW
29492011-04-01 Colin Watson <cjwatson@ubuntu.com>
2950
2951 Store the loopback device as data on loopback grub_disk structures,
2952 rather than the file it points to. This fixes use of freed memory
2953 if an existing loopback device is replaced.
2954
2955 * grub-core/disk/loopback.c (grub_loopback_open): Store dev in
2956 disk->data, not dev->file.
2957 (grub_loopback_read): Adjust file assignment to match.
2958 Fixes Ubuntu bug #742967.
2959
186ae367
CW
29602011-04-01 Colin Watson <cjwatson@ubuntu.com>
2961
2962 * grub-core/disk/loopback.c (grub_cmd_loopback): Fix a memory leak
2963 when replacing an existing device.
2964
cfed2ad0
VS
29652011-04-01 Vladimir Serbinenko <phcoder@gmail.com>
2966
2967 Fix incorrect types in jfs.c. This enables >2TiB disks and fixes some
2968 memory corruptions.
2969
2970 * grub-core/fs/jfs.c (struct grub_jfs_diropen): Interpret bytes as
2971 unsigned.
2972 (grub_jfs_lookup_symlink): Make ino a grub_uint32_t rather than int.
2973 (grub_jfs_blkno): Use 64-bit quantities for block sectors.
2974 (grub_jfs_read_inode): Likewise.
2975 (grub_jfs_opendir): Likewise. Remove now useless casts.
2976 (grub_jfs_getent): Likewise.
2977 Make ino a grub_uint32_t rather than int.
2978 (grub_jfs_mount): Ensure that blksize and log2_blksize are consistent.
2979 (grub_jfs_read_file): Use 64-bit quantities when necessary. Replace
2980 division and module with bit operations.
2981 (grub_jfs_find_file): Make ino a grub_uint32_t.
2982 (grub_jfs_lookup_symlink): Likewise. Use 64-bit quantities
2983
05d2ed32
CW
29842011-04-01 Colin Watson <cjwatson@ubuntu.com>
2985
2986 * grub-core/normal/menu_entry.c (run): Quieten uninitialised
2987 warning. (This was in fact always initialised before use, but GCC
2988 wasn't smart enough to prove that.)
2989 * grub-core/script/lexer.c (grub_script_lexer_yywrap): Likewise.
2990
91dc6073
VS
29912011-03-31 Vladimir Serbinenko <phcoder@gmail.com>
2992
2993 * grub-core/kern/x86_64/efi/callwrap.S (efi_wrap_0): Preserve 16-byte
2994 stack alignment.
2995 (efi_wrap_1): Likewise.
2996 (efi_wrap_2): Likewise.
2997 (efi_wrap_3): Likewise.
2998 (efi_wrap_4): Likewise.
2999 (efi_wrap_5): Likewise.
3000 (efi_wrap_6): Likewise.
3001 (efi_wrap_10): Likewise.
3002 Based on information by: Red Hat/Peter Jones.
3003
a8afc1d1
CW
30042011-03-31 Colin Watson <cjwatson@ubuntu.com>
3005
3006 * grub-core/mmap/efi/mmap.c (grub_mmap_unregister): Remove
3007 set-but-not-used variable.
3008
a826cc7d
CW
30092011-03-31 Colin Watson <cjwatson@ubuntu.com>
3010
3011 * docs/grub.texi (Simple configuration): Be more explicit about
3012 GRUB_DEFAULT, and add an example.
3013 Reported by: Leslie Rhorer.
3014
875b67ba
CW
30152011-03-30 Colin Watson <cjwatson@ubuntu.com>
3016
3017 * docs/grub.texi (Commands): Link to "GRUB only offers a rescue
3018 shell".
3019
fd7cd914
AS
30202011-03-30 Alexey Shvetsov <alexxy@gentoo.org>
3021
3022 * util/grub.d/10_linux.in: Add gentoo-specific config filename.
3023 * util/grub.d/20_linux_xen.in: Likewise.
3024
090b1b6a
VS
30252011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
3026
3027 * util/grub.d/10_linux.in: Try alternative config filenames where
3028 we parse config file.
3029 * util/grub.d/20_linux_xen.in: Likewise.
3030
baad885c
AS
30312011-03-30 Alexey Shvetsov <alexxy@gentoo.org>
3032
3033 * util/grub.d/10_linux.in: Add gentoo-specific Linux and initrd names.
3034 * util/grub.d/20_linux_xen.in: Likewise.
3035
241e41f5
VS
30362011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
3037
3038 * grub-core/disk/raid.c (insert_array): Add few potentially
3039 useful grub_util_info.
3040 (grub_raid_register): Likewise.
3041
56445fb2
VS
30422011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
3043
3044 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev) [__linux__]:
3045 Preserve partition number in mdadm code path.
3046
c871b1c6
VS
30472011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
3048
3049 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Add
3050 few potentially useful grub_util_info.
3051
5e631b4f
CW
30522011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
3053
3054 * grub-core/disk/lvm.c (grub_lvm_scan_device): Remove spurious \n.
3055
2d5d0333
CW
30562011-03-30 Colin Watson <cjwatson@ubuntu.com>
3057
3058 * docs/grub.texi (default): Use @example rather than nested
3059 itemized lists to avoid breaking gendocs.
3060
3d7ed04e
CW
30612011-03-30 Colin Watson <cjwatson@ubuntu.com>
3062
3063 * docs/grub.texi (Future): Update.
3064
abf04200 30652011-03-30 Colin Watson <cjwatson@ubuntu.com>
3066
3067 * docs/grub.texi (Environment): New chapter.
3068 (Changes from GRUB Legacy): Link to "Environment block" section for
3069 details of limitations.
3070 (Simple configuration): Likewise. Link to documentation of gfxmode
3071 and gfxpayload variables from GRUB_GFXMODE and GRUB_GFXPAYLOAD
3072 respectively.
3073 (Shell-like scripting): Note that normal variables are stored in the
3074 environment.
3075 (gettext): Link to documentation of lang and locale_dir.
3076 (list_env): New section.
3077 (load_env): New section.
3078 (save_env): New section.
3079
3080 (Reporting bugs): Fix typo.
3081
e1ad0edd
VS
30822011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
3083
3084 * docs/grub.texi: Correctly use "terminal_input" and not "terminal" in
3085 the example.
3086
5d803174
VS
30872011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
3088
3089 * grub-core/term/at_keyboard.c (set_scancodes)
3090 [!GRUB_MACHINE_MIPS_YEELOONG && !GRUB_MACHINE_QEMU]: Use scancode set 1.
3091
2a2da1d0
CW
30922011-03-30 Colin Watson <cjwatson@ubuntu.com>
3093
3094 * docs/grub.texi (Menu-specific commands): Remove some semantics
3095 that were true in GRUB Legacy but not in GRUB 2.
3096 (submenu): New section.
3097 (false): New section.
3098 (read): New section.
3099 (true): New section.
3100
a7527639
CW
31012011-03-30 Colin Watson <cjwatson@ubuntu.com>
3102
3103 * docs/grub.texi (Changes from GRUB Legacy): Minor proofreading.
3104
31052011-03-30 Colin Watson <cjwatson@ubuntu.com>
e30af029
CW
3106
3107 * docs/grub.texi (Simple configuration): Explain some of the
3108 current limitations of grub-mkconfig.
8a748df2 3109 Reported by: Leslie Rhorer.
e30af029 3110
fc858482
VS
31112011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
3112
3113 Old macs search for boot.efi rather than for bootia32.efi.
3114
3115 * util/grub-install.in: Copy bootia32.efi to boot.efi.
3116 * util/grub-mkrescue.in: Likewise.
3117 Suggested by: Peter Jones.
3118
e1eb511d
VS
31192011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
3120
3121 * util/grub.d/20_linux_xen.in: Accept old-style xen kernels.
3122
70e75364
VS
31232011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
3124
3125 * include/grub/lvm.h (grub_lvm_lv): New field 'visible'.
3126 (grub_lvm_segment): New fields 'type', 'mirror_count' and 'mirrors'.
3127 (grub_lvm_mirror): New struct.
3128 * grub-core/disk/lvm.c (grub_lvm_checkvalue): Commented out.
3129 (grub_lvm_iterate): Iterate only visible volumes.
3130 (grub_lvm_read): Factor out to ..
3131 (read_lv): ... this. Support mirrors.
3132 (grub_lvm_read): New wrapper function.
3133 (grub_lvm_scan_device): Parse mirrors. Skip everything that isn't
3134 stripped or mirrored.
3135
fc18f6a3
VS
31362011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
3137
3138 * util/grub.d/10_linux.in: Skip vmlinux-* on x86 platforms.
3139
5c650f4c
CW
31402011-03-29 Colin Watson <cjwatson@ubuntu.com>
3141
3142 * docs/grub.texi (loopback): New section.
3143
61d7156b
CW
31442011-03-29 Colin Watson <cjwatson@ubuntu.com>
3145
3146 * grub-core/disk/loopback.c (GRUB_MOD_INIT): Stop documenting
3147 removed -p option.
3148
994b8264
CW
31492011-03-29 Colin Watson <cjwatson@ubuntu.com>
3150
3151 * docs/grub.texi (BIOS installation): New section, partly based on
3152 previous text in other sections.
3153 (Installing GRUB using grub-install): Replace BIOS discussion with a
3154 cross-reference.
3155 (Images): Likewise.
3156
9e4d19e0
VS
31572011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
3158
3159 * grub-core/kern/emu/hostdisk.c (find_partition_start)
3160 [HAVE_DIOCGDINFO]: Add safety checks.
3161
a307c0b2
VS
31622011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
3163
3164 * util/grub.d/10_kfreebsd.in: Allow ufs.ko to be missing as it's
3165 per default compiled in kernel and prior to 8.0 isn't shipped at all.
3166
b4db4f39
CW
31672011-03-29 Colin Watson <cjwatson@ubuntu.com>
3168
3169 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): If
3170 real_sb->size is zero (e.g. RAID-0), get the disk size from
3171 real_sb->data_size instead.
3172 Fixes Ubuntu bug #743136.
3173
35e5f84c
VS
31742011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
3175
3176 * grub-core/normal/misc.c (grub_normal_print_device_info): Use correct
3177 printf clauses for printing size and start.
3178
d2e29d81
VS
31792011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
3180
3181 * grub-core/fs/ext2.c (grub_ext2_read_inode): Fix an overflow.
3182 Reported and tested by: Timothy Nikkel.
3183
ed5587af
VS
31842011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
3185
3186 * grub-core/term/gfxterm.c (dirty_region_add): Move core part to ...
3187 (dirty_region_add_real): ... this.
3188 (dirty_region_add): Don't discard margin refresh when performing
3189 scheduled repaint.
3190
a1dc717c
VS
31912011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
3192
3193 * grub-core/lib/relocator.c (allocate_regstart)
3194 [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Avoid grub_dprintf since not all
3195 terminals are capabple of malloc-free operation.
3196 (allocate_inreg) [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Likewise.
3197 (malloc_in_range) [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Likewise.
3198
9f3677d3
VS
31992011-03-29 Mario Limonciello <Mario_Limonciello@Dell.com>
3200
3201 * util/grub-setup.c: Copy the partition table zone if floppy support
3202 is disabled, even if no partition table is found.
3203
3204 Otherwise, the BIOS on Dell Latitude E series laptops will freeze
3205 during POST if an invalid partition table is contained in the PBR
3206 of the active partition when GRUB is installed to a partition.
3207
24148725
CW
32082011-03-28 Colin Watson <cjwatson@debian.org>
3209
3210 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Remove stale
3211 comment.
3212
f329eda7
CW
32132011-03-28 Colin Watson <cjwatson@debian.org>
3214
3215 * grub-core/disk/raid.c (grub_raid_register): Adjust debug message
3216 to be specific about what kind of RAID device we're scanning for.
3217
c482ad98
SG
32182011-03-26 Seth Goldberg <seth.goldberg@oracle.com>
3219
3220 * grub-core/kern/emu/getroot.c (find_root_device_from_libzfs): Don't
3221 return freed string.
3222
5ee04984
VS
32232011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
3224
3225 * grub-core/fs/iso9660.c (grub_iso9660_label): Rtrim the label.
3226
f4727da9
VS
32272011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
3228
3229 Use libgeom on FreeBSD to detect partitions.
3230
3231 * Makefile.util.def (grub-mkimage): Add LIBGEOM to ldadd.
3232 (grub-mkrelpath): Likewise.
3233 (grub-script-check): Likewise.
3234 (grub-editenv): Likewise.
3235 (grub-mkpasswd-pbkdf2): Likewise.
3236 (grub-fstest): Likewise.
3237 (grub-mkfont): Likewise.
3238 (grub-mkdevicemap): Likewise.
3239 (grub-probe): Likewise.
3240 (grub-setup): Likewise.
3241 (grub-ofpathname): Likewise.
3242 (grub-mklayout): Likewise.
3243 (example_unit_test): Likewise.
3244 (grub-menulst2cfg): Likewise.
3245 * grub-core/Makefile.core.def (grub-emu): Likewise.
3246 (grub-emu-lite): Likewise.
3247 * configure.ac: Check for -lgeom on FreeBSD and set LIBGEOM.
3248 * grub-core/kern/emu/hostdisk.c [FreeBSD]: Include libgeom.h. Don't
3249 define HAVE_DIOCGDINFO.
3250 (follow_geom_up) [FreeBSD]: New function.
3251 (find_partition_start) [FreeBSD]: Rewritten using follow_geom_up.
3252 (convert_system_partition_to_system_disk) [FreeBSD]: Likewise.
3253 (grub_util_biosdisk_get_grub_dev) [FreeBSD]: Use FreeBSD path
3254 unconditionally of HAVE_DIOCGDINFO.
3255
82fe6c75
VS
32562011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
3257
3258 Fix FreeBSD compilation problem.
3259
3260 * grub-core/kern/emu/hostdisk.c (MAJOR) [FreeBSD]: New definition.
3261 (FLOPPY_MAJOR) [FreeBSD]: Likewise.
3262
4c6c9431
CW
32632011-03-24 Colin Watson <cjwatson@ubuntu.com>
3264
3265 * grub-core/video/fb/video_fb.c (grub_video_fb_get_info_and_fini):
3266 Switch back to page zero before loading a kernel, since some kernel
3267 drivers expect that.
3268 Thanks to: Felix Kuehling.
3269
c7064d94
VS
32702011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
3271
3272 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_addr)
3273 [DEBUG_RELOCATOR]: Reuse grub_mm_check.
3274 (grub_relocator_alloc_chunk_align) [DEBUG_RELOCATOR]: Likewise.
3275
3f71cded
VS
32762011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
3277
3278 * include/grub/mm.h (GRUB_MM_CHECK): Rename to ...
3279 (grub_mm_check): ... this. MAke a function-like macro and use GRUB_FILE.
3280
ef6de21a
VS
32812011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
3282
3283 * grub-core/lib/relocator.c (allocate_inreg): Avoid dprintf unless
3284 DEBUG_RELOCATOR is defined since gfxterm can't cope with output when
3285 malloc is disabled.
3286
8bc66a2c
VS
32872011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
3288
3289 * grub-core/loader/i386/bsdXX.c (grub_freebsd_load_elfmodule): Account
3290 for modules headers when counting the needed allocation size.
3291
5657722c
VS
32922011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
3293
3294 * grub-core/term/gfxterm.c (calculate_normal_character_width): Return 8
3295 if no ASCII character is found to prevent crash.
3296
41a85f55
AK
32972011-03-23 Alexander Kurtz <kurtz.alex@googlemail.com>
3298
3299 * grub-core/video/bitmap.c (match_extension): Ignore case.
3300
59e1e5f1
VS
33012011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
3302
3303 * grub-core/normal/menu_entry.c (init_line): Fix off-by-one error.
3304
bd4d051a
VS
33052011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
3306
3307 * grub-core/script/parser.y: Declare "time" as valid argument.
3308
bae7fcc1
PJ
33092011-03-23 Peter Jones <pjones@redhat.com>
3310
3311 Fix incorrect assert failure reporting.
3312
3313 * grub-core/tests/example_functional_test.c (example_test): Add
3314 a failure comment.
3315 * grub-core/tests/lib/test.c (add_failure): Renamed to ...
3316 (failure_start): ...this. Check that malloc succeeded.
3317 Don't call xvasprintf. Return failure struct.
3318 (failure_append_vtext): New function.
3319 (failure_append_text): Likewise.
3320 (add_failure): Likewise.
3321 (grub_test_assert_helper): Likewise.
3322 * include/grub/test.h (grub_test_assert_helper): New declaration.
3323 (grub_test_assert): Macro rewritten.
3324
537dc9be
VS
33252011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
3326
3327 * grub-core/normal/main.c (GRUB_MOD_INIT): Export pager variable.
3328
fa3e01bf
VS
33292011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
3330
3331 * grub-core/lib/i386/pc/biosnum.c: Add missing include.
3332
b1d28404
VS
33332011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
3334
3335 * grub-core/disk/usbms.c (grub_usbms_reset): Transform USB-style error
3336 into GRUB-style one.
3337
2e3e2e09
VS
33382011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
3339
3340 * grub-core/bus/usb/usbtrans.c (grub_usb_control_msg): Return usb-style
3341 error and not grub_errno.
3342 * grub-core/bus/usb/usbhub.c (grub_usb_add_hub): Likewise.
3343
ed57e557
VS
33442011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
3345
3346 * grub-core/bus/usb/uhci.c (grub_uhci_detect_dev): Return
3347 GRUB_USB_SPEED_NONE in case of failure and not the error code.
3348
d1611f01
VS
33492011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
3350
3351 * grub-core/efiemu/i386/pc/cfgtables.c
3352 (grub_machine_efiemu_init_tables): Make declaration a prototype.
3353 * grub-core/loader/xnu.c (grub_xnu_lock): Likewise.
3354 (grub_xnu_unlock): Likewise.
3355 * grub-core/normal/cmdline.c (grub_cmdline_get/cl_set_pos_all): Likewise.
3356
7d4e39d6
VS
33572011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
3358
3359 * grub-core/bus/usb/usb.c (attach_hooks): Make static.
3360 * grub-core/bus/usb/usbhub.c (hubs): Likewise.
3361 * grub-core/commands/hashsum.c (aliases): Likewise.
3362 * grub-core/commands/setpci.c (pci_registers): Likewise.
3363 * grub-core/disk/usbms.c (attach_hook): Likewise.
3364 * grub-core/fs/zfs/zfs.c (decomp_table): Likewise.
3365 (zio_checksum_table): Likewise.
3366 * grub-core/gettext/gettext.c (grub_gettext_msg_list): Likewise.
3367 * grub-core/gfxmenu/gfxmenu.c (cached_view): Likewise.
3368 * grub-core/lib/legacy_parse.c (legacy_commands): Likewise.
3369 * grub-core/lib/relocator.c (leftovers): Likewise.
3370 (extra_blocks): Likewise.
3371 * grub-core/loader/i386/bsd.c (relocator): Likewise.
3372 * grub-core/loader/i386/multiboot_mbi.c (modules): Likewise.
3373 (modules_last): Likewise.
3374 * grub-core/loader/i386/xnu.c (table_aliases): Likewise.
3375 (devices): Likewise.
3376 * grub-core/loader/multiboot_mbi2.c (modules): Likewise.
3377 (modules_last): Likewise.
3378 * grub-core/normal/auth.c (users): Likewise.
3379 * grub-core/normal/context.c (initial_menu): Likewise.
3380 (current_menu): Likewise.
3381 * grub-core/normal/crypto.c (crypto_specs): Likewise.
3382 * grub-core/term/serial.c (grub_serial_ports): Likewise.
3383 (grub_serial_terminfo_input_template): Likewise.
3384 (grub_serial_terminfo_output_template): Likewise.
3385 (grub_serial_terminfo_input): Likewise.
3386 (grub_serial_terminfo_output): Likewise.
3387 (registered): Likewise.
3388 * grub-core/term/usb_keyboard.c (attach_hook): Likewise.
3389
40fc4659
VS
33902011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
3391
3392 * grub-core/video/bochs.c (grub_video_bochs_setup): Use
3393 grub_video_mode_type_t.
3394 * grub-core/video/cirrus.c (grub_video_cirrus_setup): Likewise.
3395 * grub-core/video/i386/pc/vbe.c (grub_video_vbe_setup): Likewise.
3396 * grub-core/video/i386/pc/vga.c (grub_video_vga_setup): Likewise.
3397
2da48d28
VS
33982011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
3399
3400 * util/grub-install.in: Correct the x86-64 name as x86_64.
3401
9b43bf39
CW
34022011-03-11 Colin Watson <cjwatson@ubuntu.com>
3403
3404 * grub-core/boot/i386/pc/lnxboot.S (real_code_2): Ensure that the
3405 initial chunk read from the kernel always includes GRUB's multiboot
3406 header, which is now outside the first sector.
3407
be1a7ce0
CW
34082011-03-09 Colin Watson <cjwatson@ubuntu.com>
3409
3410 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Page-align
3411 cached mmap_size, so that this works correctly when called multiple
3412 times.
3413 Reported by: Daniel Kahn Gillmor. Should fix Debian bug #616638.
3414
83a3c48d
CW
34152011-03-09 Colin Watson <cjwatson@ubuntu.com>
3416
3417 * docs/grub.texi (Simple configuration): Tidy up formatting.
3418
57d75699
SJ
34192011-03-07 Szymon Janc <szymon@janc.net.pl>
3420
3421 * grub-core/fs/zfs/zfs.c (zap_leaf_lookup):
3422 Set-but-not-used variable removed.
3423
028501a0
VS
34242011-02-12 Vladimir Serbinenko <phcoder@gmail.com>
3425
3426 Workaround yet another IEEE1275 bug.
3427
3428 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum value
3429 GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS.
3430 * grub-core/kern/ieee1275/mmap.c (grub_machine_mmap_iterate): Ignore
3431 adress_cells and size:cells if GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS
3432 is set.
3433 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
3434 GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS on powermacs.
3435
d998657d
VS
34362011-02-12 Vladimir Serbinenko <phcoder@gmail.com>
3437
3438 * grub-core/partmap/msdos.c (pc_partition_map_embed): Fix off by one
3439 error.
3440
fee7cdd4
CW
34412011-02-11 Colin Watson <cjwatson@ubuntu.com>
3442
3443 * util/grub.d/20_linux_xen.in: Bail out early if linux_list is
3444 empty, since in that case we can only generate either nothing or a
3445 syntactically invalid configuration file.
3446 Reported by: Michal Suchanek. Fixes Debian bug #612898.
3447
97286eb5
CW
34482011-02-09 Colin Watson <cjwatson@ubuntu.com>
3449
3450 * docs/grub.texi (Kernel): Add reference to grub-mkrescue.
3451 (Making a GRUB bootable CD-ROM): Likewise.
3452 (Invoking grub-mkrescue): New section.
3453 Reported by: Yann Dirson. Fixes Debian bug #612585.
3454
22b28eb3
CW
34552011-02-09 Colin Watson <cjwatson@ubuntu.com>
3456
3457 * util/grub-install.in: Remove unnecessary brackets from tr
3458 arguments.
3459 * util/grub.d/10_hurd.in: Likewise.
3460 * util/grub.d/10_kfreebsd.in: Likewise.
3461 * util/grub.d/10_linux.in: Likewise.
3462 * util/grub.d/20_linux_xen.in: Likewise.
3463 Reported by: Jamie Heilman. Fixes Debian bug #612564.
3464
7e735e43
CW
34652011-02-08 Colin Watson <cjwatson@ubuntu.com>
3466
3467 * include/grub/file.h (not_easly_seekable): Rename to ...
3468 (not_easily_seekable): ... this. Update all users.
3469
800f1881
CW
34702011-01-28 Colin Watson <cjwatson@ubuntu.com>
3471
3472 * docs/grub.texi (Making a GRUB bootable CD-ROM): Update to describe
3473 grub-mkrescue.
3474
3281d3d6
VS
34752011-01-24 Vladimir Serbinenko <phcoder@gmail.com>
3476
3477 * util/grub-mkimage.c (generate_image): Refuse to create the images
3478 bigger than the actual flash (512K) in Loongson machines. 512K is also
3479 the biggest chip supported by them.
3480
3533413c
VS
34812011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
3482
3483 * grub-core/kern/emu/getroot.c: Include config-util.h explicitly.
3484
73ae4f4f
VS
34852011-01-22 Anthony DeRobertis <anthony@derobert.net>
3486
3487 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Check
3488 super_offset field.
3489
37f4f608
VS
34902011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
3491
3492 * util/grub-install.in: Ignore install device on platforms
3493 where it doesn't make sense. Always use UUIDs except on pc, efi and
3494 sparc64.
3495 Reported by: Daniel Kahn Gillmor.
3496
03a4ccb5
VS
34972011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
3498
3499 * grub-core/bus/bonito.c (write_bases): Fix direction of the shift.
3500
ffc8f4d8
VS
35012011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
3502
3503 * grub-core/partmap/bsdlabel.c: Include grub/emu/misc.h and not grub/util/misc.h.
3504 (iterate_real): Don't rely on partition being non-NULL.
3505
80f23be7
VS
35062011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
3507
3508 * grub-core/script/argv.c (round_up_exp): unsigned is 32-bit on all
3509 supported platforms. Put a compile time assert for this rather than
3510 generate a warning with 32-bit shift.
3511
5d4f4dd5
VS
35122011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
3513
3514 * grub-core/disk/scsi.c (grub_scsi_read): Fix binary and check and make
3515 logical expression more readable.
3516
e489601a
VS
35172011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
3518
3519 * grub-core/disk/raid.c (insert_array): Ensure uniqueness of p->number
3520 even if some elements have a name.
3521 Reported by: Alexander GQ Gerasiov.
3522
96e0a6ea
CW
35232011-01-22 Colin Watson <cjwatson@ubuntu.com>
3524
3525 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Consider a
3526 path unreadable if `grub-probe -t abstraction' fails, for example if
3527 memberlist fails on an LVM volume group.
3528 Reported by: Darius Jahandarie.
3529
81431e2b
CW
35302011-01-22 Colin Watson <cjwatson@ubuntu.com>
3531
3532 * docs/grub.texi (Simple configuration): Document
3533 GRUB_PRELOAD_MODULES.
3534
5e79d66a
CW
35352011-01-17 Colin Watson <cjwatson@ubuntu.com>
3536
3537 * .bzrignore: Remove nonexistent grub-pbkdf2.
3538
646ada34
VS
35392011-01-16 Vladimir Serbinenko <phcoder@gmail.com>
3540
3541 * configure.ac: Bump version to 1.99~rc1.
3542
04360337
VS
35432011-01-15 Vladimir Serbinenko <phcoder@gmail.com>
3544
3545 * util/grub-mkimage.c (generate_image): Check fwstart.img checksum
3546 for safety.
3547
46c9db88
VS
35482011-01-14 Vladimir Serbinenko <phcoder@gmail.com>
3549
3550 * grub-core/kern/mips/yeeloong/init.c (grub_machine_init): Init boot
3551 module.
3552
35532011-01-14 Vladimir Serbinenko <phcoder@gmail.com>
1d955d00
VS
3554
3555 * grub-core/Makefile.core.def (fwstart): Add lost LDFLAGS.
3556
4fbf1852
VS
35572011-01-13 Vladimir Serbinenko <phcoder@gmail.com>
3558
3559 * grub-core/fs/zfs/zfsinfo.c (grub_cmd_zfs_bootfs): Quote bootpath and
3560 diskdevid.
3561
f1632d4d
VS
35622011-01-13 Vladimir Serbinenko <phcoder@gmail.com>
3563
3564 Fix compilation on cygwin.
3565
3566 * conf/Makefile.common (STRIPFLAGS_KERNEL): Add -F elf32-i386 and
3567 -R .drectve on cygwin.
3568 * conf/i386-pc-cygwin-img-ld.sc: Merge rdata and pdata into data.
3569 * configure.ac: Use $(top_builddir) in TARGET_OBJ2ELF.
3570 (COND_CYGWIN): New condition.
3571 * grub-core/Makefile.am (%.mod): Set TARGET_OBJ2ELF.
3572 * grub-core/genmod.sh.in: Use ${TARGET_OBJ2ELF} and
3573 not @TARGET_OBJ2ELF@.
3574 * util/grub-pe2elf.c (write_symbol_table): Use pe_symtab->type and not
3575 type to determine whether aux is to be used.
3576
0b5e127b
VS
35772011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
3578
3579 * util/ieee1275/ofpath.c (grub_util_devname_to_ofpath): Use the
3580 realpath'ed device string.
3581 Handle floppy (somewhat).
3582 Issue error in unknown case rather than garbage.
3583 Reported by: Axel Beckert.
3584
173b71e9
VS
35852011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
3586
3587 * util/grub.d/00_header.in (load_video): Handle the case when no video
3588 drivers available.
3589 Thanks to: Axel Beckert.
3590
f8f479db
VS
35912011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
3592
3593 * util/grub-mkfont.c (write_font_pf2): Use appropriate type for data
3594 variable. Fixes problem on big endian platforms.
3595
8fc0a245
VS
35962011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
3597
3598 * grub-core/Makefile.core.def (ieee1275_fb): Disable on sparc.
3599 It doesn't work well there.
3600
b8494fbe
VS
36012011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
3602
3603 * grub-core/normal/context.c (grub_env_context_close): Silence spurious
3604 warning.
3605 * grub-core/normal/menu.c (grub_menu_execute_entry): Likewise.
3606 * grub-core/partmap/msdos.c (pc_partition_map_embed): Use unsigned
3607 counter.
3608
b44a558c
VS
36092011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
3610
3611 Use alias->path rather than buggy "canon".
3612
3613 * grub-core/disk/ieee1275/ofdisk.c (ofdisk_hash_add_real): New function.
3614 (ofdisk_hash_add): New argument curcan. All users updated.
3615
51fa856c
CW
36162011-01-11 Colin Watson <cjwatson@ubuntu.com>
3617
3618 * configure.ac: Fall back to `true' if `makeinfo' does not exist.
3619
9da068a5
VS
36202011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
3621
3622 * grub-core/loader/powerpc/ieee1275/linux.c (grub_linux_load32): Apply
3623 loadmask before doing any calculations. Use correct type for offset.
3624 (grub_linux_load64): Likewise.
3625
86205c94
CW
36262011-01-11 Colin Watson <cjwatson@ubuntu.com>
3627
3628 * util/grub-mklayout.c (console_grub_equivalences_shift): Terminate
3629 with NULL.
3630 (console_grub_equivalences_unshift): Likewise.
3631 Reported by: Daniel Dehennin.
3632
4531a206
VS
36332011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
3634
3635 * grub-core/fs/i386/pc/pxe.c (set_mac_env): Export variable.
3636 (set_env_limn_ro): Likewise.
3637 (GRUB_MOD_INIT): Likewise.
3638 * grub-core/hook/datehook.c (GRUB_MOD_INIT): Likewise. Change to
3639 ARRAY_SIZE while on it.
3640 (GRUB_MOD_FINI): Change to ARRAY_SIZE.
3641 * grub-core/normal/context.c (grub_env_export): Move from here ...
3642 * grub-core/kern/env.c (grub_env_export): ... here.
3643 * grub-core/normal/context.c (grub_cmd_export): Skip exporting root and
3644 prefix.
3645 * grub-core/kern/main.c (grub_main): Export root and prefix.
3646 * include/grub/env.h (grub_env_export): Export.
3647 Reported by: Seth Goldberg.
3648
45146057
VS
36492011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
3650
3651 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
3652 Take into account space used by ELF sections and multiboot palette.
3653 Reported by: Grégoire Sutre.
3654
f093110b
VS
36552011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
3656
3657 * BUGS: New file.
3658
3395fe52
VS
36592011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
3660
3661 Pass more appropriate video id to Linux.
3662
3663 * grub-core/loader/i386/linux.c (grub_linux_setup_video): Use
3664 grub_video_get_driver_id and variable gfxpayloadforcelfb to
3665 fill have_vga.
3666 (grub_linux_boot): Rely on grub_linux_setup_video to fill have_vga and
3667 shift params->lfb_size.
3668 * include/grub/i386/linux.h: Make an enume out of have_vga values.
3669
c2fa6cbb
VS
36702011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
3671
3672 * util/grub-menulst2cfg.c: Add missing include of misc.h.
3673
b3ff6ff0
VS
36742011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
3675
3676 * grub-core/fs/zfs/zfsinfo.c (grub_cmd_zfs_bootfs): Use comma as
3677 separator and pass bootpath/devid even if only one of them is available.
3678 Reported by: Seth Goldberg.
3679
ae67942e
VS
36802011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
3681
3682 Don't use post-4G memory on EFI even if 64-bit since some non-compliant
3683 implementations bug on them.
3684
3685 * grub-core/kern/efi/mm.c (grub_efi_allocate_pages): Skip post-4G
3686 memory.
3687 (filter_memory_map): Likewise.
3688
d570097a
VS
36892011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
3690
3691 * util/grub-kbdcomp.in: Add missing prefix and exec_prefix variables.
3692 Reported by: nebuchadnezzar.
3693
a508e776
VS
36942011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
3695
3696 * util/grub-kbdcomp.in: Add missing transform and bindir variables.
3697 Reported by: nebuchadnezzar.
3698
dcb883b1
VS
36992011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
3700
3701 Submenu default support.
3702
3703 * grub-core/normal/menu.c (grub_menu_execute_entry): New parameter
3704 auto_boot. All users updated.
3705 Declared static.
3706 Handle chosen and default with submenus.
3707 (grub_menu_execute_with_fallback): Declared static.
3708 Don't notify failure if autobooted. Upper level does it.
3709 (menuentry_eq): New function.
3710 (get_entry_number): Use menuentry_eq.
3711 (show_menu): New parameter "autobooted". All users updated.
3712 (grub_show_menu): Likewise.
3713 * include/grub/normal.h (grub_show_menu): Likewise.
3714 * include/grub/menu.h (grub_menu_execute_entry): Removed.
3715 (grub_menu_execute_with_fallback): Likewise.
3716
6fef99b4
VS
37172011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
3718
3719 * util/grub-mklayout.c (usage): Update help text.
3720
47a77af5
VS
37212011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
3722
3723 * grub-core/commands/legacycfg.c (legacy_file): Trim the line.
3724
ce6bb3ee
VS
37252011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
3726
3727 * util/grub-menulst2cfg.c (main): Trim the line.
3728
db87be2a
VS
37292011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
3730
3731 * grub-core/kern/i386/pc/init.c (grub_get_conv_memsize): Removed.
3732 (grub_machine_init): Don't check amount of low memory as reportedly
3733 INT 12h can be broken and if low memory is too low we wouldn't have
3734 gotten into grub_machine_init anyway.
3735
c49849cc
VS
37362011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
3737
3738 * grub-core/kern/i386/pc/mmap.c (grub_get_conv_memsize): New function.
3739 (grub_machine_mmap_iterate): Take low memory into account
3740
b1969b30
VS
37412011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
3742
3743 * grub-core/fs/btrfs.c (grub_btrfs_mount): Transform out of range into
3744 badfs.
3745 Reported by: TiCPU.
3746
cf0eaf13
VS
37472011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
3748
3749 * grub-core/disk/raid.c (insert_array): Display RAID name in duplicate
3750 members errors.
3751
1f060f39
GS
37522011-01-09 Grégoire Sutre <gregoire.sutre@gmail.com>
3753
3754 * util/grub.d/10_netbsd.in (netbsd_load_fs_module): New function.
3755 (netbsd_entry): Use netbsd_load_fs_module() to load filesystem module.
3756
a21e5672
GS
37572011-01-09 Grégoire Sutre <gregoire.sutre@gmail.com>
3758
3759 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Handle
3760 openbsd and netbsd types being in part_bsd module.
3761
c88172fa
VS
37622011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
3763
3764 * config.h.in (_LARGEFILE_SOURCE): Add missing define.
3765 (_FILE_OFFSET_BITS): Likewise.
3766 Reported by: Seth Goldberg.
3767
53798c4b
GS
37682011-01-08 Grégoire Sutre <gregoire.sutre@gmail.com>
3769
3770 * configure.ac: Check for libdevmapper header.
3771
e7121b69
VS
37722011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
3773
3774 * grub-core/fs/zfs/zfs.c (dmu_read): Use void * for some pointers to
3775 avoid aliasing.
3776 (fzap_lookup): Likewise.
3777 (dnode_get): Likewise.
3778 (make_mdn): Likewise.
3779 (zfs_mount): Likewise.
3780 (fzap_iterate): Use temporary pointer to avoid aliasing.
3781 (grub_zfs_read): Likewise.
3782 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Likewise.
3783 * grub-core/loader/xnu.c (grub_cmd_xnu_kernel): Use void * for some
3784 pointers to avoid aliasing.
3785 (grub_cmd_xnu_kernel64): Likewise.
3786 (grub_xnu_load_driver): Likewise.
3787
fc836af9
VS
37882011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
3789
3790 * grub-core/commands/terminal.c (grub_cmd_terminal_input): Silence
3791 aliasing warning.
3792 (grub_cmd_terminal_output): Likewise.
3793 Reported and tested by: Grégoire Sutre.
3794
f9f37648
VS
37952011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
3796
3797 * grub-core/term/at_keyboard.c (grub_keyboard_getkey): Silence spurious
3798 warning.
3799 Reported and tested by: Grégoire Sutre.
3800
ec1dfd63
VS
38012011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
3802
3803 * configure.ac: Do CPU substitution even if it's specified explicitly.
3804 Reported and tested by: Alain Greppin.
3805
9462775a
VS
38062011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
3807
3808 * grub-core/Makefile.am (rs_decoder.S): Force compilation with -Os.
3809 Reported and tested by: Alain Greppin.
3810
0fd48e35
VS
38112011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
3812
3813 Satisfy some bison versions need for inttypes.h.
3814
3815 * grub-core/lib/posix_wrap/inttypes.h: New file.
3816 * grub-core/lib/posix_wrap/sys/types.h (int8_t): New type.
3817 (int16_t): Likewise.
3818 (int32_t): Likewise.
3819 (int64_t): Likewise.
3820 Reported and tested by: Alain Greppin.
3821
43f1bc83
VS
38222011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
3823
3824 * grub-core/loader/i386/bsdXX.c (grub_netbsd_load_elf_meta):
3825 Silence spurious warning.
3826 Reported and tested by: Alain Greppin.
3827
64d1f041
SJ
38282011-01-07 Szymon Janc <szymon@janc.net.pl>
3829
3830 * docs/grub.texi (Support automatic decompression): Update with xz
3831 decompression support.
3832
25953e10
SJ
38332011-01-07 Szymon Janc <szymon@janc.net.pl>
3834
3835 Improve loaders' kernel command line handling.
3836
3837 * grub-core/lib/cmdline.c: New file.
3838 * include/grub/lib/cmdline.h: Likewise.
3839 * grub-core/loader/i386/linux.c (grub_cmd_linux): Use
3840 grub_create_loader_cmdline to create kernel command line.
3841 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
3842 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_linux): Likewise.
3843 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_linux): Likewise.
3844 * grub-core/Makefile.core.def (linux16): Add lib/cmdline.c on i386_pc.
3845 (linux): Add lib/cmdline.c on common.
3846
e72d259f
VS
38472011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
3848
3849 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Take into account that
3850 inopos might be unaligned.
3851
c0cf26da
VS
38522011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
3853
3854 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Add missing
3855 endian transformations.
3856 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
3857 Based on report by: Doug Nazar.
3858
0ca09e6c
DN
38592011-01-07 Doug Nazar <nazard.michi@gmail.com>
3860
3861 * grub-core/disk/raid5_recover.c (grub_raid5_recover): Add missing
3862 array->members[i].start_sector.
3863 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Likewise.
3864
014b6806
VS
38652011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
3866
3867 * util/grub-setup.c (setup): Handle NetBSD and OpenBSD disklabels.
3868 Reported and tested by: Grégoire Sutre.
3869
415502c2
CW
38702011-01-06 Colin Watson <cjwatson@ubuntu.com>
3871
3872 * tests/util/grub-shell.in: Set serial terminfo type to `dumb', to
3873 avoid causing test failures by clearing the screen.
3874
71b6a2b7
CW
38752011-01-06 Colin Watson <cjwatson@ubuntu.com>
3876
3877 * grub-core/kern/emu/getroot.c (find_root_device_from_mountinfo):
3878 Fix prefix check to handle the case where dir ends with a slash
3879 (most significantly, "/" itself).
3880 Reported by: Michael Vogt.
3881
b3f8d28a
VS
38822011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
3883
3884 Run terminfo_cls on initing terminfo output to clear the screen and
3885 move the cursor to (0,0).
3886
3887 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_init_output):
3888 Call grub_terminfo_output_init.
3889 * grub-core/term/serial.c (grub_serial_term_output): Set .init.
3890 * grub-core/term/terminfo.c (grub_terminfo_output_init): New function.
3891 * include/grub/terminfo.h (grub_terminfo_output_init): New declaration.
3892
4c3e4f37
VS
38932011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
3894
3895 * util/grub-install.in: Determine ofpathname, nvsetenv and efibootmgr
3896 only when needed.
3897
488f71f1
VS
38982011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
3899
3900 * grub-core/term/terminfo.c (grub_terminfo_readkey): Handle keys with
3901 CTRL.
3902
18a38098
VS
39032011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
3904
3905 The E820 type 5 is BADRAM, not EXEC_CODE.
3906
3907 * grub-core/loader/i386/bsd.c (GRUB_E820_EXEC_CODE): Removed.
3908 (GRUB_E820_BADRAM): New define.
3909 * grub-core/loader/i386/linux.c (grub_linux_boot): Translate code
3910 into reserved. Propagate BADRAM.
3911 * grub-core/loader/i386/bsd.c (GRUB_E820_EXEC_CODE): Removed.
3912 (GRUB_E820_BADRAM): New define.
3913
9eae2084
VS
39142011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
3915
3916 * grub-core/lib/efi/relocator.c (grub_relocator_firmware_fill_events):
3917 Ignore the memory post-4G.
3918 (grub_relocator_firmware_alloc_region): Additional debug statement.
3919
ebc71d28
VS
39202011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
3921
3922 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev): Check md/%s
3923 names.
3924 Reported by: David Pravec.
3925
446fa400
VS
39262011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
3927
3928 * grub-core/disk/i386/pc/biosdisk.c (GRUB_MOD_INIT): Workaround buggy
3929 BIOSes.
3930
a0159f37
VS
39312011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
3932
3933 * grub-core/lib/reed_solomon.c (grub_reed_solomon_add_redundancy):
3934 Prevent overflow.
3935 (grub_reed_solomon_recover): Likewise.
3936
e5146ca1
VS
39372011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
3938
3939 * grub-core/lib/reed_solomon.c (main) [TEST]: Reactivate normal test.
3940
39412011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
95638499
VS
3942
3943 * grub-core/lib/reed_solomon.c (scratch) [! STANDALONE]: Remove leftover
3944 variable.
3945
5b1bdf12
CW
39462011-01-04 Colin Watson <cjwatson@ubuntu.com>
3947
3948 * grub-core/commands/legacycfg.c (GRUB_MOD_INIT): Fix typo in
3949 descriptions of extract_legacy_entries_source and
3950 extract_legacy_entries_configfile.
3951 Reported by: Seung Soo, Ha.
3952
99d925aa
CW
39532011-01-03 Colin Watson <cjwatson@ubuntu.com>
3954
3955 * grub-core/bus/pci.c (grub_pci_iterate): Skip remaining functions
3956 on devices that do not implement function 0.
3957
4af0504b
DV
39582011-01-03 Dave Vasilevsky <dave@vasilevsky.ca>
3959
3960 * grub-core/fs/hfsplus.c: Make parent unsigned.
3961 (grub_hfsplus_cmp_catkey): Don't compare using subtraction, it
3962 overflows.
3963 (grub_hfsplus_cmp_extkey): Likewise
3964
469ee10a
VS
39652011-01-03 Vladimir Serbinenko <phcoder@gmail.com>
3966
3967 * util/grub-install.in: Correctly use bootloader_id and not
3968 GRUB_DISTRIBUTOR on efibootmgr line.
3969
323a8e9c
VS
39702011-01-03 Vladimir Serbinenko <phcoder@gmail.com>
3971
3972 * util/grub-mkfont.c (main): Report errors in FT_New_Face.
3973
1b394975
IC
39742010-12-31 Ian Campbell <ijc@hellion.org.uk>
3975
3976 * util/grub.d/20_linux_xen.in (linux_entry): Correctly capitalize
3977 Xen and reorder menu item wording to make it clearer that this entry
3978 will launch Xen. Print separate messages when loading Xen and
3979 Linux.
3980
275bff5f
VS
39812010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
3982
3983 * grub-core/partmap/amiga.c (GRUB_AMIGA_PART_MAGIC): New define.
3984 (amiga_partition_map_iterate): Check "PART" magic to avoid a very long
3985 loop in case of incorrect amiga partmap.
3986
307806cb
VS
39872010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
3988
3989 * grub-core/partmap/amiga.c (GRUB_AMIGA_RDSK_MAGIC): New define.
3990 (amiga_partition_map_iterate): Use grub_memcmp instead of grub_strcmp.
3991 Reported by:EHeM.
3992
b12b923e
VS
39932010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
3994
3995 * grub-core/loader/i386/bsdXX.c (grub_openbsd_find_ramdisk): Silence
3996 spurious warning.
3997 Reported by: crocket
3998
14b48a19
VS
39992010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
4000
4001 * grub-core/loader/xnu.c (grub_cmd_xnu_kernel) [! GRUB_MACHINE_EFI]:
4002 Preload EFIemu.
4003 (grub_cmd_xnu_kernel64) [! GRUB_MACHINE_EFI]: Likewise.
4004
693db2df
VS
40052010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
4006
4007 * grub-core/loader/xnu.c (grub_cmd_xnu_kext): Abort if no kernel
4008 is loaded
4009 (grub_cmd_xnu_kextdir): Likewise.
4010 (grub_cmd_xnu_splash): Likewise.
4011
c7638645
VS
40122010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
4013
4014 Avoid using Reed-Solomon with 0 redundancy.
4015
4016 * grub-core/kern/i386/pc/startup.S: Remove 0-data check.
4017 * grub-core/lib/reed_solomon.c (decode_block): Do not proceed on 0 data
4018 or 0 redundancy.
4019 (grub_reed_solomon_add_redundancy): Do not proceed with 0 redundancy.
4020 (grub_reed_solomon_recover): Likewise.
4021
25dd4780
VS
40222010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
4023
4024 Don't use disk subsystem in freebsd_boot.
4025
4026 * grub-core/loader/i386/bsd.c (freebsd_bootdev): New variable.
4027 (freebsd_biosdev): Likewise.
4028 (grub_freebsd_boot): Use freebsd_bootdev and freebsd_biosdev.
4029 (grub_cmd_freebsd): Set freebsd_bootdev and freebsd_biosdev.
4030
0b2db943
VS
40312010-12-26 Vladimir Serbinenko <phcoder@gmail.com>
4032
4033 Handling of files of unknown size is currently limited. They can't be
4034 used e.g. for initrd or modules. Moreover gzip handling of not
4035 easily seekable files is buggy. Disable unknown file size for now. May
4036 be inefficient but works.
4037
4038 * grub-core/io/gzio.c (test_header): Always retrieve the file size.
4039 * grub-core/io/xzio.c (grub_xzio_open): Likewise.
4040
5c408d0f
MP
40412010-12-25 Mirko Parthey <mirko.parthey@informatik.tu-chemnitz.de>
4042
4043 * grub-core/boot/i386/pc/boot.S: Fix %es:%bx pointing to nowhere on
4044 floppy probe.
4045
190a011a
JD
40462010-12-25 Jeroen Dekkers <jeroen@dekkers.ch>
4047
4048 * grub-core/disk/raid.c (insert_array): Don't add spurious members.
4049
022d01b8
SL
40502010-12-25 Shea Levy <shlevy>
4051
4052 * grub-core/genmod.sh.in: Use @OBJCOPY@ rather than objcopy.
4053
c4855fdc
VS
40542010-12-25 Vladimir Serbinenko <phcoder@gmail.com>
4055
4056 * util/grub.d/30_os-prober.in: Don't emit drivemap directive for
4057 Windows Server 2008.
4058 Reported by: Devin Giddings.
4059
0354b867
VS
40602010-12-25 Vladimir Serbinenko <phcoder@gmail.com>
4061
4062 * grub-core/commands/acpihalt.c (grub_acpi_halt): Sleep for 1.5 before
4063 writing an error message because of async power management.
4064 * grub-core/kern/mips/yeeloong/init.c (grub_halt): Likewise.
4065 (grub_reboot): Likewise.
4066
ab66c69f
JU
40672010-12-23 Jordan Uggla <jordan.uggla@gmail.com>
4068
4069 * tests/util/grub-shell.in: Suppress "ACPI shutdown failed" error to
4070 keep unit tests from failing when they shouldn't.
4071
1426ef35
CW
40722010-12-21 Colin Watson <cjwatson@ubuntu.com>
4073
4074 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): The
4075 previous patch increased the size of the RS code by 20 bytes (at
4076 least with gcc-4.4), so increase this by 20 bytes to match.
4077 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
4078
20641b6b
CW
40792010-12-21 Colin Watson <cjwatson@ubuntu.com>
4080
4081 * grub-core/lib/reed_solomon.c (gauss_solve): Fix size of standalone
4082 scratch area. Make sure to initialise chosen in standalone mode as
4083 well as non-standalone.
4084 Reported by: Robert Hooker and Andy Whitcroft.
4085 Tested by: Andy Whitcroft.
4086
d060ad60
CW
40872010-12-21 Colin Watson <cjwatson@ubuntu.com>
4088
4089 * grub-core/commands/echo.c (grub_cmd_echo): Make UTF-8-clean by
4090 constructing a new unescaped string and passing it to grub_xputs in
4091 one go, rather than passing characters to grub_printf one at a time.
4092
b889cfad
CW
40932010-12-21 Colin Watson <cjwatson@ubuntu.com>
4094
4095 * grub-core/fs/udf.c (read_string): Pacify GCC warning by
4096 initialising utf16.
4097
4e01b6c8
CW
40982010-12-21 Colin Watson <cjwatson@ubuntu.com>
4099
4100 * util/grub-mkconfig_lib.in (gettext_quoted): Add clarifying
4101 comment. Add an extra layer of quotation, requiring the output of
4102 this function to be used in a printf format string.
4103 (gettext_printf): New function.
4104 * util/grub.d/10_hurd.in: Use gettext_printf where appropriate.
4105 Extract translatable strings from here-documents and use a temporary
4106 variable instead, so that xgettext can find them.
4107 * util/grub.d/10_kfreebsd.in: Likewise.
4108 * util/grub.d/10_linux.in: Likewise.
4109 * util/grub.d/20_linux_xen.in: Likewise.
4110
4111 * po/grub.d.sed: New file.
4112 * po/Makefile.in.in ($(DOMAIN).pot-update): Extract gettext_printf
4113 arguments. Set c-format flags on all strings extracted from
4114 util/grub.d/ (xgettext refuses to include these itself for strings
4115 it extracted from a shell file, but these really are c-format).
4116
5318fe98
VS
41172010-12-20 Vladimir Serbinenko <phcoder@gmail.com>
4118
4119 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_add_module):
4120 Avoid next pointing to nowhere.
4121
6c85b743
VS
41222010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
4123
4124 * grub-core/fs/affs.c (grub_affs_mount): Read data->bblock.rootblock
4125 rather than assuming than rootblock is exactly in the middle.
4126 (grub_affs_label): Likewise.
4127
a2a08a35
VS
41282010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
4129
4130 * grub-core/fs/affs.c (grub_affs_fs) [GRUB_UTIL]: Explicitly set
4131 reserved_first_sector to 0.
4132 * grub-core/fs/cpio.c (grub_cpio_fs) [GRUB_UTIL]: Likewise.
4133 * grub-core/fs/sfs.c (grub_sfs_fs) [GRUB_UTIL]: Likewise.
4134 * grub-core/fs/xfs.c (grub_xfs_fs) [GRUB_UTIL]: Likewise.
4135
7059d1ec
VS
41362010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
4137
4138 Fix handling of UTF-16 UDF labels.
4139
4140 * grub-core/fs/udf.c (grub_udf_iterate_dir): Move string-parsing part
4141 (read_string): .. here.
4142 (grub_udf_label): Use read_string.
4143
30aff4cb
BC
41442010-12-19 BVK Chaitanya <bvk.groups@gmail.com>
4145
4146 * grub-core/normal/menu_entry.c (run): Execute commands from menu
4147 editor under argument scope.
4148 Reported by: Jordan Uggla
4149
5cf86f4b
VS
41502010-12-18 Vladimir Serbinenko <phcoder@gmail.com>
4151
4152 * util/grub-mkfont.c (main): Handle errors from FT_Set_Pixel_Sizes.
4153
32570200
CW
41542010-12-18 Colin Watson <cjwatson@ubuntu.com>
4155
4156 * grub-core/normal/term.c (print_more): Make \r or \n scroll one
4157 line, and other keys scroll an entire page (previous handling was
4158 for \r and \n to scroll a page and other keys to scroll two lines).
4159
e1dffcf2
VS
41602010-12-18 Vladimir Serbinenko <phcoder@gmail.com>
4161
4162 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
4163 Set ptrdest to correct get_physical_target_address rather than
4164 incorrect get_virtual_current_address.
4165
b04298cf 41662010-12-18 kashyap garimella <garimella.kashyap@gmail.com>
4167
4168 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_load): Use
4169 correct cat to grub_uint8_t * rather than grub_uint32_t *.
4170
5367ecd3
CW
41712010-12-10 Colin Watson <cjwatson@ubuntu.com>
4172
4173 * .bzrignore: Ignore grub-core/rs_decoder.S.
4174
1fb430f8
CW
41752010-12-10 Colin Watson <cjwatson@ubuntu.com>
4176
4177 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Factor out
4178 .mo/.mo.gz opening sequence to ...
4179 (grub_mofile_open_lang): ... here.
4180 (grub_gettext_init_ext): If opening ll_CC fails, try ll.
4181 * util/grub.d/00_header.in (grub_lang): Include country part of
4182 locale.
4183 Reported by: Mario Limonciello.
4184
a94a6671
RM
41852010-12-09 Robert Millan <rmh@gnu.org>
4186
4187 * NEWS: Document addition of ZFS support.
4188
24b7938b
CW
41892010-12-04 Colin Watson <cjwatson@ubuntu.com>
4190
4191 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Use `>> 1'
4192 rather than `/ 2', as the latter requires -Wa,--divide which would
4193 require bumping our minimum binutils version.
4194
bddc3ef6
BC
41952010-12-03 BVK Chaitanya <bvk.groups@gmail.com>
4196
4197 * util/grub-script-check.c (main): Print script line number on
4198 error.
4199
bf78d5b2
RM
42002010-12-01 Robert Millan <rmh@gnu.org>
4201
4202 * grub-core/fs/zfs/zfs.c: New file.
4203 * grub-core/fs/zfs/zfs_fletcher.c: Likewise.
4204 * grub-core/fs/zfs/zfs_lzjb.c: Likewise.
4205 * grub-core/fs/zfs/zfs_sha256.c: Likewise.
4206 * grub-core/fs/zfs/zfsinfo.c: Likewise.
4207
4208 * include/grub/zfs/dmu.h: Likewise.
4209 * include/grub/zfs/dmu_objset.h: Likewise.
4210 * include/grub/zfs/dnode.h: Likewise.
4211 * include/grub/zfs/dsl_dataset.h: Likewise.
4212 * include/grub/zfs/dsl_dir.h: Likewise.
4213 * include/grub/zfs/sa_impl.h: Likewise.
4214 * include/grub/zfs/spa.h: Likewise.
4215 * include/grub/zfs/uberblock_impl.h: Likewise.
4216 * include/grub/zfs/vdev_impl.h: Likewise.
4217 * include/grub/zfs/zap_impl.h: Likewise.
4218 * include/grub/zfs/zap_leaf.h: Likewise.
4219 * include/grub/zfs/zfs.h: Likewise.
4220 * include/grub/zfs/zfs_acl.h: Likewise.
4221 * include/grub/zfs/zfs_znode.h: Likewise.
4222 * include/grub/zfs/zil.h: Likewise.
4223 * include/grub/zfs/zio.h: Likewise.
4224 * include/grub/zfs/zio_checksum.h: Likewise.
4225
4226 * Makefile.util.def: Build ZFS into libgrubmods.
4227 * grub-core/Makefile.core.def: Build zfs.mod.
4228
3f0f3831
SJ
42292010-11-30 Szymon Janc <szymon@janc.net.pl>
4230
4231 * grub-core/commands/regexp.c (grub_cmd_regexp): Remove unused
4232 variable.
4233 * grub-core/commands/wildcard.c (match_files): Likewise.
4234
3a4253b2
RM
42352010-11-30 Robert Millan <rmh@gnu.org>
4236
4237 * grub-core/loader/i386/bsd.c
4238 (grub_cmd_freebsd_loadenv, grub_cmd_freebsd_module_elf): Check
4239 whether kernel is loaded using grub_loader_is_loaded(), rather
4240 than `kernel_type', which may still be `KERNEL_TYPE_NONE' under
4241 certain error conditions.
4242
8c317b27
RM
42432010-11-30 Robert Millan <rmh@gnu.org>
4244
c5c9cd3e
RM
4245 * grub-core/commands/echo.c: Include `<grub/term.h>'.
4246 (grub_cmd_echo): Call grub_refresh() after printing a message.
8c317b27 4247
49d3ab46
VS
42482010-11-26 Vladimir Serbinenko <phcoder@gmail.com>
4249
4250 Avoid using tricks for initialising endian variables.
4251
4252 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot):
4253 Make const.
4254 (GRUB_MOD_INIT): Don't byte-swap.
4255 * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_BIOS_BOOT):
4256 Use grub_cpu_to_le16_compile_time and grub_cpu_to_le32_compile_time.
4257 * include/grub/types.h (grub_swap_bytes16_compile_time): New macro.
4258 (grub_swap_bytes32_compile_time): Likewise.
4259 (grub_cpu_to_le32_compile_time): Likewise.
4260 (grub_cpu_to_le16_compile_time): Likewise.
4261
f420a804
VS
42622010-11-26 Vladimir Serbinenko <phcoder@gmail.com>
4263
4264 * util/grub-setup.c (setup): Stop recommending --force. People who
4265 understand the dangers of blocklists are able to find this option
4266 anyway and the ones who don't shouldn't use it anyway.
4267
4e7db17b
RM
42682010-11-26 Robert Millan <rmh@gnu.org>
4269
4270 * grub-core/term/i386/pc/vga_text.c (VGA_TEXT_SCREEN): Beautify.
4271 Update all users.
4272
9be57a0d
CW
42732010-11-26 Colin Watson <cjwatson@ubuntu.com>
4274
4275 Fix LVM-on-RAID probing.
4276
4277 * util/grub-probe.c (probe): Remember which disk was detected as
4278 RAID (perhaps an LVM physical volume). Use that disk's raidname
4279 rather than that of the top-level disk.
4280
2c7859b3 42812010-11-25 BVK Chaitanya <bvk.groups@gmail.com>
7e623b0d 4282
d7647bb6
BC
4283 Fix cmdline argument quotes for setparams command of menuentry
4284 definitions.
7e623b0d
BC
4285
4286 * grub-core/commands/menuentry.c (setparams_prefix): Use single
4287 quotes for arguments.
f866fe80 4288 * grub-core/lib/legacy_parse.c (grub_legacy_escape): Use
7955bea0 4289 grub_strchrsub function instead.
f866fe80 4290
7955bea0 4291 * include/grub/misc.h (grub_strchrsub): New function.
7e623b0d 4292
74f72a64
CW
42932010-11-24 Colin Watson <cjwatson@ubuntu.com>
4294
4295 * util/deviceiter.c (grub_util_iterate_devices): Save a bit of
4296 effort by skipping "." and ".." entries up-front.
4297 Suggested by: Michael Lazarev.
4298
5a407278
CW
42992010-11-24 Colin Watson <cjwatson@ubuntu.com>
4300
4301 * grub-core/Makefile.core.def (xz_decompress): Move -lgcc from
4302 ldflags to ldadd, to fix link line ordering.
4303 (none_decompress): Likewise.
4304
3030d8ec
CW
43052010-11-24 Colin Watson <cjwatson@ubuntu.com>
4306
4307 * grub-core/Makefile.core.def (kernel): Add kern/emu/cache.S for emu
4308 platforms.
4309 (grub-emu-lite): Remove kern/emu/cache.S.
4310
b7fbac12
CW
43112010-11-23 Colin Watson <cjwatson@ubuntu.com>
4312
4313 * util/deviceiter.c (compare_devices): If the by-id link for a
4314 device couldn't be resolved, fall back to sorting by the by-id link
4315 rather than segfaulting.
4316 Reported and tested by: Daniel Mierswa.
4317
5225f328
CW
43182010-11-23 Colin Watson <cjwatson@ubuntu.com>
4319
4320 * Makefile.util.def (grub-menulst2cfg): List libraries in ldadd, not
4321 ldflags, to fix link line ordering.
4322
038b3ce8
CW
43232010-11-23 Colin Watson <cjwatson@ubuntu.com>
4324
4325 * grub-core/Makefile.am (gentrigtables): Put -lm after $<; some
4326 linkers are picky about this.
4327
bf16e98e
CW
43282010-11-23 Colin Watson <cjwatson@ubuntu.com>
4329
4330 * grub-core/Makefile.am (command.lst): Adjust sed expression
4331 ordering so that extended and priority commands aren't treated as
4332 ordinary commands.
4333
7242bab6
CW
43342010-11-23 Colin Watson <cjwatson@ubuntu.com>
4335
4336 * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_BIOS_BOOT):
4337 Remove byte-swapping function calls, which are not valid in
4338 structure initialisers.
4339 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot): Make
4340 non-const.
4341 (GRUB_MOD_INIT): Byte-swap data1, data2, and data3 fields of
4342 grub_gpt_partition_type_bios_boot.
4343
14e8b279
CW
43442010-11-22 Colin Watson <cjwatson@ubuntu.com>
4345
4346 Fix test program build on GNU/kFreeBSD.
4347
4348 * Makefile.util.def (example_unit_test): Add `$(LIBZFS)
4349 $(LIBNVPAIR)' library dependencies.
4350
e6f63338 43512010-11-22 Colin Watson <cjwatson@ubuntu.com>
03df09c7
CW
4352
4353 * util/grub-install.in: Fix parsing of --grub-mkrelpath= option.
4354
cf8ffc38
CW
43552010-11-22 Colin Watson <cjwatson@ubuntu.com>
4356
4357 * util/grub-install.in: Remove excessive quoting that broke
4358 installations to RAID devices.
4359
7f8b0fd7
VS
43602010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
4361
4362 * grub-core/loader/i386/linux.c (grub_cmd_linux): Pass correctly the
4363 bootloader version instead of 0.
4364
dfd240b1
VS
43652010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
4366
4367 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Fix spurious
4368 warning.
4369
7b61e609
VS
43702010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
4371
4372 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Don't try to
4373 retrieve the metadat sector if size isn't known.
4374 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
4375
9dfe92d0
RM
43762010-11-18 Robert Millan <rmh@gnu.org>
4377
4378 * grub-core/fs/btrfs.c (grub_btrfs_mount): Replace grub_strncmp()
4379 with grub_memcmp().
4380
41cc919e
VS
43812010-11-18 Vladimir Serbinenko <phcoder@gmail.com>
4382
4383 * grub-core/normal/menu_entry.c (print_up): Fix displacement of up
4384 arrow.
4385 Reported by: Jordan Uggla.
4386
1afcc914
VS
43872010-11-16 Vladimir Serbinenko <phcoder@gmail.com>
4388
4389 Make better UTF compliant.
4390
4391 * grub-core/normal/charset.c (grub_utf8_to_utf16): Handle 6- and 7-byte
4392 sequences as incorrect.
4393 (grub_is_valid_utf8): Likewise.
4394 (grub_utf8_to_ucs4): Likewise.
4395 (grub_ucs4_to_utf8): Handle codepoints outside of BMP.
4396 (grub_ucs4_to_utf8_alloc): Likewise.
4397 * include/grub/charset.h (grub_utf16_to_utf8): Likewise.
4398
f1808884
VS
43992010-11-16 Vladimir Serbinenko <phcoder@gmail.com>
4400
4401 Make legacy_source behave like source.
4402
4403 * grub-core/commands/legacycfg.c (legacy_file): Don't call
4404 grub_show_menu.
4405 (grub_cmd_legacy_source): Call grub_show_menu if needed.
4406
24ec575b
CW
44072010-11-16 Colin Watson <cjwatson@debian.org>
4408
4409 * conf/Makefile.common (CFLAGS_GNULIB): Add -Wno-unused-parameter.
4410 (-Wunused implies -Wunused-parameter, but not vice versa).
4411
72b7c7aa
CW
44122010-11-16 Colin Watson <cjwatson@ubuntu.com>
4413
4414 * configure.ac: Make error messages less confusing by testing for
4415 -Wtrampolines rather than -Wno-trampolines (since -Wno-* is always
4416 accepted, but produces a diagnostic if something else is wrong).
4417
e98937aa
VS
44182010-11-15 Vladimir Serbinenko <phcoder@gmail.com>
4419
4420 * grub-core/term/at_keyboard.c (grub_keyboard_controller_read)
4421 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_QEMU]: ifdef-ed out
4422 (now unused).
4423 (grub_keyboard_controller_init)
4424 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_QEMU]: Don't attempt to
4425 read the initial state since controller isn't inited yet.
4426
f6bbabc3
VS
44272010-11-15 Vladimir Serbinenko <phcoder@gmail.com>
4428
4429 * grub-core/lib/relocator.c (malloc_in_range): Take into account that
4430 allocate_regbeg may need to create new chunk header.
4431
22e7dbb2
VS
44322010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
4433
4434 Fix quoting in legacy parser.
4435
4436 * grub-core/lib/legacy_parse.c (grub_legacy_escape): Correctly handle
4437 single quotes.
4438 (grub_legacy_parse): Likewise.
4439 Reported by: Jordan Uggla.
4440 Tested by: Jordan Uggla.
4441
03f80960
VS
44422010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
4443
4444 Don't add -lgcc on i386 and x86_64.
4445
4446 * configure.ac (LIBS): Don't add -lgcc on i386 and x86_64.
4447 * conf/Makefile.common (LDADD_KERNEL): Likewise.
4448 * grub-core/Makefile.core.def (kernel): Use LDADD_KERNEL.
4449
779dc15b
VS
44502010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
4451
4452 * configure.ac: Add -Wno-trampolines when supported.
4453
d20a3b37
MV
44542010-11-14 Modestas Vainius <modax@debian.org>
4455
4456 * grub-core/kern/emu/getroot.c (grub_util_is_dmraid): Recognise ddf1_
4457 fakeraid.
4458
e5360933
GC
44592010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
4460
4461 Add generic logical block size support for UDF.
4462
4463 * grub-core/fs/udf.c (GRUB_UDF_LOG2_BLKSIZE): Removed.
4464 (GRUB_UDF_BLKSZ): Removed.
4465 (struct grub_udf_data): New field "lbshift" to hold the logical block
4466 size of the file system in log2 format. All users updated.
4467 (sblocklist): Change type to unsigned.
4468 (grub_udf_mount): Change type of "sblklist" to unsigned.
4469 Move AVDP search before VRS recognition, because the latter requires
4470 knowledge of the logical block size, which is detected during the
4471 former.
4472 Detect and validate logical block size during AVDP search, adding
4473 support for block sizes 512, 1024 and 4096.
4474 Make VRS recognition independent of block size.
4475
cb0229c5
GC
44762010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
4477
4478 Properly handle deleted files on UDF.
4479
4480 * grub-core/fs/udf.c (grub_udf_iterate_dir): Skip directory entries
4481 whose "characteristics" field has the bit GRUB_UDF_FID_CHAR_DELETED
4482 set.
4483
406858a8
GC
44842010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
4485
4486 Support reading files larger than 2 GiB.
4487
4488 * grub-core/fs/udf.c (grub_udf_iterate_dir): Change type of variable
4489 "offset" to grub_off_t.
4490 (grub_udf_read_file): Likewise for parameter "pos".
4491
130da6a7
VS
44922010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
4493
4494 * docs/grub.texi (Changes from GRUB Legacy): Note when save_env is
4495 unavailable.
4496 (Simple configuration): Refer to Changes from GRUB Legacy about
4497 save_env availability.
4498
65e93f6b
VS
44992010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
4500
4501 * util/grub-install.in: Ignore empty partition table detection
4502 instead of trying to include part_ module.
4503
1fd08bf1
VS
45042010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
4505
4506 * grub-core/disk/lvm.c (GRUB_MOD_FINI): Reset the vg_list. Fixes
4507 LVM on RAID support.
4508
de1a024f
VS
45092010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
4510
4511 Properly define WORDS_BIGENDIAN in wrapped environments.
4512
4513 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (WORDS_BIGENDIAN): New
4514 definition.
4515 * grub-core/lib/posix_wrap/sys/types.h (WORDS_BIGENDIAN): Likewise.
4516
4517 Reported by: Manoel Rebelo Abranches.
4518 Tested by: Manoel Rebelo Abranches.
4519
bc5dd0b9
VS
45202010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
4521
4522 * util/grub-mkconfig.in: Fix quoting.
4523
58c184be
VS
45242010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
4525
4526 Support big ext2 files.
4527
4528 * grub-core/fs/ext2.c (grub_ext2_inode): Rename dir_acl to size_high.
4529 (grub_ext2_read_block): Support triple indirect blocks.
4530 (grub_ext2_read_file): Use 64-bit types and read size_high.
4531 (grub_ext2_open): Read size_high.
4532 Reported by: Ximin Luo.
4533 Tested by: Manoel Rebelo Abranches.
4534
5f0c02b3
VS
45352010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
4536
4537 * util/grub-install.in: Handle filenames containing spaces.
4538 Reported by: Jordan Uggla.
4539 Tested by: Jordan Uggla.
4540
4417aae6
VS
45412010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
4542
4543 * util/grub-mkconfig.in (grub_script_check): New variable.
4544 Use grub_script_check instead of grub-script-check.
4545 Reported by: Barry Jackson.
4546
7625a68e
VS
45472010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
4548
4549 * docs/grub.texi (menu): Correct the order.
4550 Reported by: D. Hugh Redelmeier.
4551
10001ac5
VS
45522010-11-12 Vladimir Serbinenko <phcoder@gmail.com>
4553
4554 * grub-core/kern/i386/pc/startup.S (multiboot_trampoline): Add missing
4555 jump.
4556
9c4cf53b
MRA
45572010-11-08 Manoel Rebelo Abranches <mrabran@br.ibm.com>
4558
10001ac5
VS
4559 * include/grub/elfload.h (grub_elf32_size): New parameter.
4560 All users updated.
9c4cf53b
MRA
4561 Return maximum segments alignment.
4562 (grub_elf64_size): Likewise.
4563 * kern/elf.c (grub_elf32_size): New parameter. All users updated.
4564 Return maximum segments alignment.
4565 (grub_elf64_size): Likewise.
4566 * grub-core/loader/powerpc/ieee1275/linux.c:
10001ac5
VS
4567 (grub_linux_claimmap_iterate): New function. Uses the
4568 "available" property in the "memory" node for memory allocation
4569 for kernel in the PowerPC loader.
9c4cf53b
MRA
4570 (grub_linux_load32): Correctly find linux entry point offset.
4571 (grub_linux_load64): Likewise.
4572
d2bf06bf
RM
45732010-11-07 Robert Millan <rmh@gnu.org>
4574
4575 On mips-yeeloong, build with -march=loongson2f when this flag is
4576 available (GCC >= 4.4).
4577 * conf/Makefile.common [COND_mips_yeeloong] (CFLAGS_PLATFORM): Remove
4578 `-march=mips3'.
4579 * configure.ac: For mips-yeeloong, add -march=loongson2f if available,
4580 or otherwise add -march=mips3.
4581
898c99a2
BC
45822010-11-07 BVK Chaitanya <bvk.groups@gmail.com>
4583
87220a68
BC
4584 Suppress shell expansion on echo '*' and echo "*" like cases.
4585 Reported by: Jordan Uggla.
898c99a2
BC
4586
4587 * grub-core/script/execute.c (grub_script_arglist_to_argv): Escape
4588 string arguments before shell expansion.
4589 * tests/grub_cmd_echo.in: New testcases.
4590
4f9b406a
RM
45912010-11-07 Robert Millan <rmh@gnu.org>
4592
4593 * conf/mips-qemu-mips.rmk: Remove stale file from previous
4594 transition.
4595
80c6d25e
VS
45962010-11-07 Vladimir Serbinenko <phcoder@gmail.com>
4597
4598 * grub-core/kern/emu/hostdisk.c
4599 (convert_system_partition_to_system_disk): Handle devices like "sdaa1".
4600
4a1a0153
VS
46012010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
4602
4603 * include/grub/emu/misc.h: Don't include grub/util/libzfs.h.
4604 * include/grub/emu/misc.h (grub_get_libzfs_handle): Move from here ...
4605 * include/grub/util/libzfs.h (grub_get_libzfs_handle): ... here.
4606
34706ddc
VS
46072010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
4608
4609 * grub-core/fs/ntfs.c (grub_ntfs_uuid): Make uppercase.
4610
6972dea9
VS
46112010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
4612
4613 * util/grub-install.in: Replace useless recomendation to pass
4614 --modules with a recomendation to report a bug.
4615
9c693bd6
VS
46162010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
4617
4618 Properly register serial terminfo.
4619 Reported by: Jordan Uggla
4620
4621 * grub-core/term/serial.c (grub_serial_terminfo_input_template): New
4622 const.
4623 (grub_serial_terminfo_output_template): Likewise.
4624 (grub_cmd_serial): Register "serial" with terminfo.
4625 (GRUB_MOD_INIT(serial)): Fill grub_serial_terminfo_input and
4626 grub_serial_terminfo_output.
4627
6c9e4c0c
RM
46282010-11-05 Robert Millan <rmh@gnu.org>
4629
4630 * util/grub-mkconfig.in: Remove gfxterm.mod probe (no longer
4631 needed).
4632
b9b3839f
RM
46332010-11-05 Robert Millan <rmh@gnu.org>
4634
4635 On Yeeloong, pass machine type information to Linux.
4636
4637 * grub-core/loader/mips/linux.c [GRUB_MACHINE_MIPS_YEELOONG]
4638 (LOONGSON_MACHTYPE): New macro, set to
4639 "machtype=lemote-yeeloong-2f-8.9inches".
4640 [LOONGSON_MACHTYPE] (grub_cmd_linux): Pass LOONGSON_MACHTYPE as
4641 additional argument to Linux.
4642
1a3aaff4
RM
46432010-11-04 Robert Millan <rmh@gnu.org>
4644
4645 * util/deviceiter.c (grub_util_iterate_devices): Increase SCSI
4646 limit to 48 (to cope with Sun Fire X4500), and IDE limit to 96
4647 (its SATA disks are detected as slaveless IDE master drives on
4648 kFreeBSD).
4649 Reported by Carsten Aulbert.
4650
a75f4f62
CW
46512010-11-02 Colin Watson <cjwatson@ubuntu.com>
4652
4653 * util/bin2h.c (main): Fix spelling error in generated output.
4654
33b4b0c6
GS
46552010-11-01 Grégoire Sutre <gregoire.sutre@gmail.com>
4656
4657 * grub-core/partmap/bsdlabel.c (iterate_real): Fix an integer overflow.
4658
2b36fbf4
VS
46592010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
4660
4661 * grub-core/loader/i386/linux.c (grub_cmd_linux): Autoload vbe.mod if
4662 vga= option is supplied.
4663
74aaf558
VS
46642010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
4665
4666 * util/grub.d/10_hurd.in: Don't call savedefault on recovery entries.
4667 * util/grub.d/10_kfreebsd.in: Likewise.
4668 * util/grub.d/10_linux.in: Likewise.
4669 * util/grub.d/20_linux_xen.in: Likewise.
4670
6428dec3
VS
46712010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
4672
4673 * grub-core/lib/arg.c (grub_arg_parse): Avoid interpreting direct
4674 argument as an argument to no-argument option.
4675
f8729d98
VS
46762010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
4677
4678 * util/grub.d/10_linux.in: Add missing load_video with explicit
4679 GRUB_GFXPAYLOAD_LINUX.
4680
89d68fa6
VS
46812010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
4682
4683 * Makefile.am (libgrub.pp): Propagate the libgrub.a split.
4684
3a1197cd
VS
46852010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
4686
4687 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Do not put
4688 elements with invlid index.
4689 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
4690 * grub-core/disk/raid.c (insert_array): Automatically reallocate
4691 members.
4692 * include/grub/raid.h (grub_raid_member): New struct.
4693 (grub_raid_array): Transform devices and start_sector into usage of
4694 grub_raid_member. All users updated
4695 (allocated_devs): New member.
4696
71574288
VS
46972010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
4698
4699 * docs/man/grub-set-default.h2m: Clarify that only saved default entry
4700 is modified
4701
8d40ec65
BC
47022010-10-29 BVK Chaitanya <bvk.groups@gmail.com>
4703
4704 NetBSD build fix for getline function conflict from gnulib.
4705
4706 * Makefile.util.def (libgrubkern.a): New library for grub kernel
4707 components that depend on gnulib headers.
4708 (libgrubmods.a): Renamed from earlier libgrub.a.
4709 * conf/Makefile.common: Remove gnulib from *_LIBRARY flags.
4710
95b9257e
VS
47112010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
4712
4713 * util/grub-setup.c (setup): Refuse to do a cross-disk embeddingless
4714 install rather than creating a broken install.
4715
26c53dc6
VS
47162010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
4717
4718 * util/grub-setup.c (argp): Remove misleading example of installing to
4719 a partition.
4720
4171b3c5
VS
47212010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
4722
4723 * util/grub-setup.c (setup): Clarify the error message.
4724
18568d18
VS
47252010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
4726
4727 * include/grub/types.h (grub_target_off_t): Removed no longer used type.
4728
4f6a2e21
VS
47292010-10-23 Vladimir Serbinenko <phcoder@gmail.com>
4730
4731 * grub-core/kern/emu/misc.c
4732 (grub_make_system_path_relative_to_its_root)
4733 [HAVE_LIBZFS && HAVE_LIBNVPAIR]: Fix mountpoint return on ZFS.
4734
47352010-10-23 Vladimir Serbinenko <phcoder@gmail.com>
5c81f8b3
VS
4736
4737 * grub-core/kern/emu/misc.c
4738 (grub_make_system_path_relative_to_its_root): Revert r2882.
4739
e138c458
VS
47402010-10-22 Vladimir Serbinenko <phcoder@gmail.com>
4741
4742 * grub-core/lib/relocator.c (grub_relocator_subchunk): Remove now
4743 useless field head. All users updated.
4744 (free_subchunk): Correct handling of IN_REGION subchunk.
4745
0cbcdf0e
CW
47462010-10-22 Colin Watson <cjwatson@ubuntu.com>
4747
4748 * docs/grub.texi (Installing GRUB using grub-install): Proofread.
4749 (Supported kernels): Likewise.
4750
b65ea155
GS
47512010-10-18 Grégoire Sutre <gregoire.sutre@gmail.com>
4752
4753 Make mktemp invocations portable.
4754
4755 * grub-core/genmod.sh.in: Use mktemp with an explicit template, and
4756 exit if mktemp fails.
4757 * tests/grub_script_blockarg.in: Likewise.
4758 * tests/partmap_test.in: Likewise.
4759 * tests/util/grub-shell-tester.in: Likewise.
4760 * tests/util/grub-shell.in: Likewise.
4761 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
4762 * Makefile.am: Likewise, and chain shell commands with `&&'
4763 instead of ';'.
4764 * util/grub-mkrescue.in: Use the same explicit template as above, and
4765 exit if mktemp fails.
4766
05f43cdd
BC
47672010-10-18 BVK Chaitanya <bvk.groups@gmail.com>
4768
4769 * util/grub.d/10_linux.in: Fix built-in initramfs image mode for
4770 Linux kernel, reported by Dennis Schridde.
4771
800e6a9b
SJ
47722010-10-17 Szymon Janc <szymon@janc.net.pl>
4773
4774 * grub-core/normal/auth.c (grub_auth_check_authentication):
4775 Set-but-not-used variable removed.
4776
d82df574
VS
47772010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
4778
4779 * docs/grub.texi (GNU/Linux): Document APM unavailability with
4780 32-bit linux protocol.
4781
7bced458
VS
47822010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
4783
4784 * grub-core/kern/i386/pc/startup.S (grub_console_setcursor): Check
4785 cursor shape for sanity.
4786
5b027690
VS
47872010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
4788
4789 * docs/grub.texi (Installation): Document buggy BIOS install.
4790
ba5f65cf
VS
47912010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
4792
4793 * docs/grub.texi (Installation): Indent.
4794
fdf2ec9c
VS
47952010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
4796
4797 * util/grub-setup.c (setup): New parameter allow_floppy.
4798 (arguments): New member allow_floppy.
4799 (argp_parser): Handle --allow-floppy.
4800 (main): Pass allow_floppy.
4801 * util/grub-install.in: New option --allow-floppy passed though to
4802 grub-setup.
4803
861dfd4c
VS
48042010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
4805
4806 * util/grub-install.in: Handle partitionless disks.
4807
f77a8c24
VS
48082010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
4809
4810 * util/grub-setup.c (setup): Don't clean blocklists before readability
4811 verfification.
4812
27d9ee32
VS
48132010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
4814
4815 * docs/grub.texi (Installation): Document embedding zone. Remove
4816 obsolete grub-install example.
4817
6bdda8f8
SJ
48182010-10-16 Szymon Janc <szymon@janc.net.pl>
4819
4820 * grub-core/commands/legacycfg.c (grub_cmd_legacy_kernel):
4821 Set-but-not-used variable ifdef'ed.
4822 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Likewise.
4823 * grub-core/bus/usb/ohci.c (grub_ohci_pci_iter): Set-but-not-used
4824 variable removed.
4825 * grub-core/disk/lvm.c (grub_lvm_scan_device): Likewise.
4826 * grub-core/fs/jfs.c (grub_jfs_find_file): Likewise.
4827 * grub-core/fs/minix.c (grub_minix_dir): Likewise.
4828 * grub-core/fs/sfs.c (grub_sfs_read_extent): Likewise.
4829 * grub-core/fs/ufs.c (grub_ufs_dir): Likewise.
4830 * grub-core/gfxmenu/gui_list.c (grub_gui_list_new): Likewise.
4831 * grub-core/gfxmenu/view.c (redraw_menu_visit): Likewise.
4832 * grub-core/gfxmenu/widget-box.c (draw): Likewise.
4833 * grub-core/lib/relocator.c (malloc_in_range): Likewise.
4834 * grub-core/loader/i386/bsdXX.c (grub_netbsd_load_elf_meta): Likewise.
4835 * grub-core/loader/i386/bsd_pagetable.c (fill_bsd64_pagetable):
4836 Likewise.
4837
e19b016b
VS
48382010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
4839
4840 * grub-core/commands/acpihalt.c (skip_ext_op): Skip index field op.
4841 * include/grub/acpi.h (GRUB_ACPI_EXTOPCODE_INDEX_FIELD_OP): New
4842 enum value.
4843
6c8d3002
VS
48442010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
4845
4846 * grub-core/commands/acpihalt.c (get_sleep_type): Accept \_S5_ as
4847 synonym to _S5_. Needed for some DSDTs.
4848
c32b51c9
VS
48492010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
4850
4851 Userspace ACPI parser debugging.
4852
4853 * grub-core/commands/acpihalt.c [GRUB_DSDT_TEST]: Include userspace
4854 headers and add relevant defines. Don't include standard headers.
4855 (main) [GRUB_DSDT_TEST]: New function.
4856 * include/grub/acpi.h [GRUB_DSDT_TEST]: Don't include standard headers.
4857 Don't declare functions.
4858
fbfbeb39
VS
48592010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
4860
4861 Remove dead grub_efi_mm_fini.
4862
4863 * grub-core/kern/efi/mm.c (allocated_page): Removed.
4864 (ALLOCATED_PAGES_SIZE): Likewise.
4865 (MAX_ALLOCATED_PAGES): Likewise.
4866 (allocated_pages): Likewise.
4867 (grub_efi_allocate_pages): Don't record allocated pages.
4868 (grub_efi_free_pages): Likewise.
4869 (grub_efi_mm_init): Likewise.
4870 (grub_efi_mm_fini): Removed.
4871
65f7ed7c
VS
48722010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
4873
4874 * grub-core/kern/efi/mm.c (BYTES_TO_PAGES): Round up instead of down.
4875 (grub_efi_mm_init): Take into account the memory map size increase.
4876
24977b44
VS
48772010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
4878
4879 * grub-core/term/ns8250.c (do_real_config): Set port->broken to 0.
4880 (serial_hw_put): Wait based on real time rather than port reads. Don't
4881 roken ports.
4882 * include/grub/serial.h (grub_serial_port): New field broken.
4883
1eb01cd2
RM
48842010-10-16 Robert Millan <rmh@gnu.org>
4885
4886 * grub-core/kern/emu/misc.c
4887 (grub_make_system_path_relative_to_its_root): Fix premature return
4888 when processing non-root ZFS filesystems.
5f8b440b 4889 Reported by Sergio Talens-Oliag.
1eb01cd2 4890
2d5fed60
RM
48912010-10-15 Robert Millan <rmh@gnu.org>
4892
4893 * util/grub.d/10_linux.in (list): Expand "vmlinu[zx]" instances to
4894 guarantee compressed ones are processed first.
4895
d0f4c1ea
VS
48962010-10-14 Vladimir Serbinenko <phcoder@gmail.com>
4897
4898 * grub-core/efiemu/main.c (grub_efiemu_prepare): Handle errors from
4899 grub_efiemu_autocore.
4900
d87c681f
VS
49012010-10-14 Vladimir Serbinenko <phcoder@gmail.com>
4902
4903 * grub-core/kern/i386/pc/startup.S (bypass_table): Use 0x1b explicitly
4904 rather than 0x1b.
4905 (grub_console_getkey): Use correct jae opcode rather than ja.
4906
219b3564
RM
49072010-10-12 Robert Millan <rmh@gnu.org>
4908
4909 * util/grub-mkconfig.in: Merge `GRUB_DISABLE_LINUX_RECOVERY' and
4910 `GRUB_DISABLE_NETBSD_RECOVERY' into a single `GRUB_DISABLE_RECOVERY'
4911 variable. All references updated.
4912
4913 * util/grub.d/10_kfreebsd.in: Support recovery boot entries.
4914
20c6bb7e
VS
49152010-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4916
4917 Correctly distinguish mdraid flavours.
4918
4919 * grub-core/disk/raid.c (grub_raid_getname) [GRUB_UTIL]: New function.
4920 (insert_array): New argument raid.
4921 * include/grub/disk.h (grub_disk_dev) [GRUB_UTIL]: New member raidname.
4922 * include/grub/raid.h (grub_raid_array) [GRUB_UTIL]: New member driver.
4923 * util/grub-probe.c (probe): PRint raidname instead of plainly "mdraid".
4924
74baff84
VS
49252010-10-09 Vladimir Serbinenko <phcoder@gmail.com>
4926
4927 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Fix incorrect
4928 handling of special keys.
4929
3ef068df 49302010-10-02 Aleš Nesrsta <starous@volny.cz>
4931
c7980ad9
VS
4932 * include/grub/scsi.h (grub_make_scsi_id): Fix incorrect usgae of
4933 GRUB_SCSI_ID_BUS_SHIFT instead of GRUB_SCSI_ID_LUN_SHIFT.
3ef068df 4934
a9455194 49352010-10-02 Aleš Nesrsta <starous@volny.cz>
4936
c7980ad9
VS
4937 * grub-core/bus/usb/ohci.c (GRUB_OHCI_TDS): Increase.
4938 * grub-core/bus/usb/uhci.c (N_TD): New definition. All previous implicit
4939 users updated.
a9455194 4940 * grub-core/bus/usb/usbtrans.c (grub_usb_bulk_setup_readwrite):
c7980ad9 4941 Use right endpoint when querying descriptor.
a9455194 4942
441cfe65
VS
49432010-10-01 Vladimir Serbinenko <phcoder@gmail.com>
4944
4945 Clear out 0x80 color bit on EFI.
4946 Tested by: decoder
4947 Reported by: decoder and meta tech.
4948
4949 * grub-core/term/efi/console.c (grub_console_standard_color): Removed.
4950 (grub_console_setcolorstate): Clear out 0x80 bit.
4951 Use GRUB_TERM_DEFAULT_STANDARD_COLOR.
4952 (grub_console_output): Use GRUB_TERM_DEFAULT_NORMAL_COLOR.
4953 Use GRUB_TERM_DEFAULT_HIGHLIGHT_COLOR.
4954
bf26bcc4
VS
49552010-10-01 Vladimir Serbinenko <phcoder@gmail.com>
4956
4957 * grub-core/loader/i386/linux.c (DEFAULT_VIDEO_MODE) [GRUB_MACHINE_EFI]:
4958 Set to "auto".
4959
6e3c515d
VS
49602010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
4961
4962 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Avoid using
4963 mo_file after freeing.
4964
e6d983ba
VS
49652010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
4966
4967 * grub-core/normal/term.c (read_terminal_list): Free in a right order.
4968
74ccb5b5
VS
49692010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
4970
4971 * grub-core/script/execute.c (grub_script_execute_sourcecode): Set
4972 flags.
4973
17821956
VS
49742010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
4975
4976 * util/grub-setup.c (main) [GRUB_MACHINE_IEEE1275]: Propagate argp
4977 usage.
4978
ee74fa48
VS
49792010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
4980
4981 Put terminfo into core on ieee1275 and yeeloong (needed for console).
4982
4983 * gentpl.py: New groups terminfoinkernel and terminfomodule.
4984 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Include extcmd.h, arg.h
4985 and terminfo.h when needed.
4986 * grub-core/Makefile.core.def (kernel): Include term/terminfo.c,
4987 term/tparm.c, commands/extcmd.c, lib/arg.c on terminfokernel.
4988 (terminfo): Enable only on terminfokernel.
4989 (extcmd): Likewise.
4990 * include/grub/extcmd.h: Add missing EXPORT_FUNC.
4991 * include/grub/lib/arg.h: Likewise.
4992 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_dimensions): Fix
4993 incorrect usage of ->.
4994
aa438e68
VS
49952010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
4996
4997 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi]
4998 [GRUB_MACHINE_EFI && __i386__]: Fix typo.
4999
57994012
VS
50002010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
5001
5002 Fix coreboot compilation.
5003
5004 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
5005 Take VBE info into account even if only text is supported.
5006 (fill_vbe_info): Take into account the case when only VGA text
5007 is supported.
5008 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VBE): Set to zero
5009 on coreboot, multiboot and qemu.
5010
2a406611
VS
50112010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
5012
5013 * grub-core/lib/relocator.c (malloc_in_range): Trim too verbose
5014 debug messages.
5015 (grub_relocator_prepare_relocs): Set movers_chunk.srcv.
5016
d33613fc
VS
50172010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
5018
5019 * grub-core/loader/i386/bsd.c (grub_cmd_netbsd): Provide default serial
5020 parameters.
5021
44a1b432
VS
50222010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
5023
5024 * grub-core/lib/arg.c (grub_arg_parse): Fix treating of all commands as
5025 if they were BSD-style.
5026
edde54e6
VS
50272010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
5028
5029 * grub-core/boot/i386/pc/lnxboot.S: Replace
5030 GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE with
5031 GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART.
5032
b65830fa
VS
50332010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
5034
5035 Write embedding zone using Reed-Solomon.
5036
5037 * Makefile.util.def (grub-setup): Add grub-core/lib/reed_solomon.c.
5038 * grub-core/Makefile.am (rs_decoder.S): New target.
5039 (kern/i386/pc/startup.S): Depend on rs_decoder.S.
5040 * grub-core/kern/i386/pc/startup.S (reed_solomon_redundancy): New field.
5041 (multiboot): Move to RS part.
5042 (post_reed_solomon): New label.
5043 (grub_boot_drive): Move to non-RS part since it's modified in memory
5044 on boot.
5045 Include rs_decoder.S.
5046 * grub-core/lib/reed_solomon.c: New file.
5047 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY):
5048 New definition.
5049 (GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE): Removed.
5050 (GRUB_KERNEL_I386_PC_RAW_SIZE): Updated.
5051 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): New definition.
5052 * include/grub/partition.h (grub_partition_map): Change prototype of
5053 embed to allow returning additional sectors.
5054 * include/grub/reed_solomon.h: New file.
5055 * util/grub-setup.c (setup): Handle Reed-Solomon.
5056
0b4b227f
CW
50572010-09-28 Colin Watson <cjwatson@ubuntu.com>
5058
5059 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix
5060 i386 and x86-64 definedness tests.
5061
f772623b
YB
50622010-09-27 Yves Blusseau <blusseau@zetam.org>
5063
5064 Fix generation of kernel_syms.lst
5065
5066 * grub-core/Makefile.am (kernel_syms.lst): Fix value and position of
5067 ASM_PREFIX
5068
8e57a6ca
RM
50692010-09-26 Robert Millan <rmh@gnu.org>
5070
5071 Support degraded ZFS arrays in "grub-probe -t device" resolution.
5072
5073 * grub-core/kern/emu/getroot.c (find_root_device_from_libzfs): When
5074 the pool is an array of devices, iterate through it and return the
5075 first device that passes a stat() test (instead of blindly returning
5076 the first one).
5077
f9130836
RM
50782010-09-26 Robert Millan <rmh@gnu.org>
5079
5080 Build fixes for GNU/kFreeBSD.
5081
5082 * Makefile.util.def: Add `$(LIBZFS) $(LIBNVPAIR)' library dependencies
5083 to programs that require ZFS conversion.
5084 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): Support
5085 kernels that don't have FLOPPY_MAJOR.
5086
96510faf
BC
50872010-09-25 BVK Chaitanya <bvk.groups@gmail.com>
5088
5089 * grub-core/kern/emu/full.c (grub_emu_post_init): Fix typo.
5090
449333eb
BC
50912010-09-25 BVK Chaitanya <bvk.groups@gmail.com>
5092
5093 Fix grub-emu build.
5094
5095 * grub-core/kern/emu/main.c: Remove #include <getopt.h>.
5096 * grub-core/kern/emu/full.c: Split grub_mdraid_{init,fini} into
5097 mdraid09 and mdraid1x.
5098
e1fd1939
CW
50992010-09-24 Colin Watson <cjwatson@ubuntu.com>
5100
5101 Re-enable grub-extras.
5102
5103 * autogen.sh: Create symlinks to ${GRUB_CONTRIB} if necessary to
5104 avoid confusing Automake. Run autogen only twice, once for the top
5105 level and once for grub-core. Add Makefile.util.def and
5106 Makefile.core.def from extra modules to the appropriate autogen
5107 invocations. If Makefile.common exists in an extra module, include
5108 it in both Makefile.util.am and grub-core/Makefile.core.am;
5109 similarly, include any Makefile.util.common file in Makefile.util.am
5110 and any Makefile.core.common file in grub-core/Makefile.core.am.
5111 * conf/Makefile.common ($(top_srcdir)/grub-core/Makefile.core.am):
5112 Depend on $(top_srcdir)/grub-core/Makefile.gcry.def.
5113 ($(top_srcdir)/grub-core/Makefile.gcry.def): Remove.
5114 * grub-core/Makefile.am: Remove inclusion of Makefile.gcry.am.
5115
5116 * gentpl.py (gvar_add): Turn GVARS into a set.
5117 (global_variable_initializers): Sort global variables on output.
5118 (vars_init): New function.
5119 (first_time): Likewise.
5120 (library): Ensure that non-global variable initialisations are
5121 emitted before the first time we emit code for a library block.
5122 Append to variables rather than setting them. Only emit
5123 noinst_LIBRARIES, BUILT_SOURCES, and CLEANFILES the first time for
5124 each conditional path.
5125 (program): installdir() emits an Autogen macro, so must be passed to
5126 var_add rather than gvar_add.
5127 (data): Likewise.
5128 (script): Likewise.
5129 (rules): New function, centralising handling for different target
5130 types. Set up Guile association lists for first_time and vars_init,
5131 and send most output to a diversion so that variable initialisations
5132 can be emitted first.
5133 (module_rules): Use new rules function.
5134 (kernel_rules): Likewise.
5135 (image_rules): Likewise.
5136 (library_rules): Likewise.
5137 (program_rules): Likewise.
5138 (script_rules): Likewise.
5139 (data_rules): Likewise.
5140
5141 * configure.ac: Add AC_PROG_LN_S, for the benefit of ntldr-img.
5142
5143 * .bzrignore: Add contrib and grub-core/contrib. Remove
5144 grub-core/Makefile.gcry.am.
5145
1d12cf29
YB
51462010-09-24 Yves Blusseau <blusseau@zetam.org>
5147
5148 * grub-core/lib/LzFind.c: Add missing include.
5149 * grub-core/lib/LzmaEnc.c: Likewise.
5150 * grub-core/script/lexer.c: Likewise.
5151 * grub-core/script/yylex.l: Likewise.
5152 * util/grub-macho2img.c: Likewise.
5153 * util/grub-menulst2cfg.c: Likewise.
5154 * util/grub-mklayout.c: Likewise.
5155 * util/grub-mkpasswd-pbkdf2.c
5156 * util/grub-mkrelpath.c: Likewise.
5157 * util/resolve.c: Likewise.
5158
dd363028
BC
51592010-09-24 BVK Chaitanya <bvk.groups@gmail.com>
5160
5161 * Makefile.util.def (example_unit_test): Add
5162 grub-core/gnulib/libgnu.a.
5163
f5a109e2
GS
51642010-09-23 Grégoire Sutre <gregoire.sutre@gmail.com>
5165
5166 * grub-core/commands/acpihalt.c (get_sleep_type): Initialize prev.
5167
6d0fa83c
VS
51682010-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5169
5170 Support xz compression on yeeloong.
5171
5172 * Makefile.util.def (grub-mkimage): Add $(LIBLZMA).
5173 * configure.ac: Check for LZMA.
5174 * grub-core/Makefile.core.def (xz_decompress): New target.
5175 (none_decompress): Likewise.
5176 * grub-core/boot/decompressor/minilib.c: New file.
5177 * grub-core/boot/decompressor/none.c: Likewise.
5178 * grub-core/boot/decompressor/xz.c: Likewise.
5179 * grub-core/kern/mips/cache.S: Change to noreorder nomacro.
5180 * grub-core/kern/mips/cache_flush.S: Likewise.
5181 * grub-core/kern/i386/pc/lzma_decode.S: Remove dead code.
5182 * grub-core/kern/mips/startup.S: Move first stage to ...
5183 * grub-core/boot/mips/startup_raw.S: ...here. Change to noreorder
5184 nomacro.
5185 * grub-core/kern/mips/startup.S: Change to noreorder nomacro.
5186 * grub-core/lib/mips/relocator_asm.S: Change to noreorder nomacro.
5187 * grub-core/lib/xzembed/xz_dec_bcj.c [GRUB_EMBED_DECOMPRESSOR]:
5188 Allocate statically.
5189 * grub-core/lib/xzembed/xz_dec_lzma2.c [GRUB_EMBED_DECOMPRESSOR]:
5190 Allocate statically or use scratch. Don't check CRC32.
5191 * grub-core/lib/xzembed/xz_dec_stream.c [GRUB_EMBED_DECOMPRESSOR]:
5192 Allocate statically. Don't check CRC32.
5193 * include/grub/decompressor.h: New file.
5194 * include/grub/offsets.h (GRUB_KERNEL_MIPS_YEELOONG_RAW_SIZE):
5195 Removed.
5196 (GRUB_KERNEL_MIPS_YEELOONG_UNCOMPRESSED_SIZE): New field.
5197 (GRUB_KERNEL_MIPS_YEELOONG_TOTAL_MODULE_SIZE): Adjusted.
5198 (GRUB_KERNEL_MIPS_YEELOONG_PREFIX): Likewise.
5199 (GRUB_KERNEL_MIPS_YEELOONG_PREFIX_END): Likewise.
5200 (GRUB_KERNEL_MACHINE_UNCOMPRESSED_SIZE): New define.
5201 * util/grub-mkimage.c (grub_compression_t): New type.
5202 (PLATFORM_FLAGS_DECOMPRESSORS): New flag.
5203 (image_target_desc): New field default_compression.
5204 (image_targets): Adjust yeeloong targets.
5205 (compress_kernel_xz) [HAVE_LIBLZMA]: New function.
5206 (compress_kernel): New parameter comp.
5207 (generate_image): Likewise. Handle new compression case.
5208 (options): New option --compression
5209 (help): Likewise.
5210 (main): Handle new option.
5211
1b655af6
GS
52122010-09-22 Grégoire Sutre <gregoire.sutre@gmail.com>
5213
5214 * grub-core/kern/emu/hostdisk.c [__NetBSD__]: Define FLOPPY_MAJOR.
5215
8f03f0b5
CW
52162010-09-22 Colin Watson <cjwatson@ubuntu.com>
5217
5218 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix
5219 typo in __i386__ conditional.
5220
7835dfd3
VS
52212010-09-22 Vladimir Serbinenko <phcoder@gmail.com>
5222
5223 * grub-core/loader/multiboot_mbi2.c (GRUB_MACHINE_EFI): Add missing
5224 include.
5225
e255597e
VS
52262010-09-22 Vladimir Serbinenko <phcoder@gmail.com>
5227
6d0fa83c 5228 Implement EFI and ACPI multiboot2 extensions.
e255597e
VS
5229
5230 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_load): Declare
5231 new tags as supported.
5232 (acpiv2_size): New function.
5233 (grub_multiboot_get_mbi_size): Take new tags into account.
5234 (grub_multiboot_make_mbi): Add new tags.
5235 * include/grub/multiboot.h (GRUB_MACHINE_HAS_ACPI): New definition.
6d0fa83c 5236
6cc14051 52372010-09-21 Aleš Nesrsta <starous@volny.cz>
5238
5239 * grub-core/bus/usb/serial/common.c (grub_usbserial_attach):
5240 Added missing configuration of USB device.
5241
df7769d8
CW
52422010-09-21 Colin Watson <cjwatson@ubuntu.com>
5243
5244 * grub-core/normal/menu_entry.c (run): Make sure we always return
5245 a value.
5246
b031012d
CW
52472010-09-21 Colin Watson <cjwatson@ubuntu.com>
5248
5249 * grub-core/commands/efi/lsefimmap.c (grub_cmd_lsefimmap):
5250 NumberOfPages is UINT64 according to the UEFI specification, not
5251 UINTN. Fix printf format.
5252
174de8f3
CW
52532010-09-21 Colin Watson <cjwatson@ubuntu.com>
5254
5255 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Change type of
5256 `err' to grub_usb_err_t.
5257 Reported and tested by: KESHAV P.R.
5258
d7dbe923
CW
52592010-09-21 Colin Watson <cjwatson@ubuntu.com>
5260
5261 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Make
5262 tpart non-const, so that we can assign to it. (Since this is a
5263 typedef, the constness refers to the pointer rather than what it
5264 points to.)
5265
8d5e2af3
CW
52662010-09-21 Colin Watson <cjwatson@ubuntu.com>
5267
5268 * conf/Makefile.common (CPPFLAGS_GNULIB): Add
5269 $(top_srcdir)/grub-core/gnulib as well as
5270 $(top_builddir)/grub-core/gnulib.
5271 Reported by: KESHAV P.R.
5272
5c527783
CW
52732010-09-21 Colin Watson <cjwatson@ubuntu.com>
5274
5275 * util/grub-install.in: Fix the bootloader ID option to be
5276 consistently --bootloader-id, not --bootloader_id.
5277 Reported by: KESHAV P.R.
5278
d309a16e
CW
52792010-09-21 Colin Watson <cjwatson@ubuntu.com>
5280
5281 * grub-core/commands/hashsum.c (GRUB_MOD_INIT): Make "Compute or
5282 check hash checksum." consistently translatable.
5283
b830cd16
YB
52842010-09-21 Yves Blusseau <blusseau@zetam.org>
5285
5286 * conf/Makefile.common (CPPFLAGS_GNULIB): Replace $(top_srcdir) with
5287 $(top_builddir).
5288
c4fe27a8
CW
52892010-09-21 Colin Watson <cjwatson@ubuntu.com>
5290
5291 * grub-core/commands/hashsum.c (aliases): Add sha1sum alias.
5292 (GRUB_MOD_INIT): Register sha1sum command.
5293 (GRUB_MOD_FINI): Unregister sha1sum command.
5294
a4c1d277
YB
52952010-09-21 Yves Blusseau <blusseau@zetam.org>
5296
5297 Keep boot and grub directory names in sync with utils scripts
5298
5299 * configure.ac: Define GRUB_BOOT_DIR_NAME and GRUB_DIR_NAME macros.
5300 * config.h.in: Add previous macros.
5301 * include/grub/emu/misc.h (DEFAULT_DIRECTORY): Use previous macros.
5302 * util/grub-install.in: Use $bootdir and $grubdir variables.
5303
4eff79d2
CW
53042010-09-21 Colin Watson <cjwatson@ubuntu.com>
5305
5306 * grub-core/kern/emu/hostdisk.c (find_system_device): Only try to
5307 convert partition names to disk names if the new `convert' parameter
5308 is set.
5309 (grub_util_biosdisk_get_grub_dev): If opening the disk device
5310 returns GRUB_ERR_UNKNOWN_DEVICE, treat the partition device as a
5311 disk in its own right. This can happen with Xen disk images.
5312
934d7e44
YB
53132010-09-21 Yves Blusseau <blusseau@zetam.org>
5314
5315 * util/grub-editenv.c: Update strings to avoid warnings when generating
5316 grub.pot file.
5317 * util/grub-setup.c: Likewise.
934d7e44 5318
df3367cc
VS
53192010-09-21 Vladimir Serbinenko <phcoder@gmail.com>
5320
5321 * configure.ac: Change version to 1.99~beta0.
5322
77a94e98
VS
53232010-09-21 Vladimir Serbinenko <phcoder@gmail.com>
5324
5325 * grub-core/loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap):
5326 Add BADRAM.
5327 * grub-core/loader/multiboot_mbi2.c (grub_fill_multiboot_mmap):
5328 Likewise.
5329 * include/multiboot.h: Resynced with specification.
5330 * include/multiboot2.h: Likewise.
5331
269004c1
CW
53322010-09-21 Colin Watson <cjwatson@ubuntu.com>
5333
5334 Fix po directory handling.
5335
5336 * configure.ac: Create po/Makefile.in rather than po/Makefile.
5337 * grub-core/gnulib/Makefile.am: Import gettext module.
5338 * m4/gnulib-cache.m4: Likewise.
5339 * m4/gnulib-comp.m4: Likewise.
5340 * m4/gettext.m4: New file, from gnulib.
5341 * m4/glibc2.m4: Likewise.
5342 * m4/iconv.m4: Likewise.
5343 * m4/intdiv0.m4: Likewise.
5344 * m4/intl.m4: Likewise.
5345 * m4/intldir.m4: Likewise.
5346 * m4/intlmacosx.m4: Likewise.
5347 * m4/intmax.m4: Likewise.
5348 * m4/inttypes-pri.m4: Likewise.
5349 * m4/lcmessage.m4: Likewise.
5350 * m4/lib-ld.m4: Likewise.
5351 * m4/lib-link.m4: Likewise.
5352 * m4/lib-prefix.m4: Likewise.
5353 * m4/lock.m4: Likewise.
5354 * m4/nls.m4: Likewise.
5355 * m4/po.m4: Likewise.
5356 * m4/printf-posix.m4: Likewise.
5357 * m4/progtest.m4: Likewise.
5358 * m4/threadlib.m4: Likewise.
5359 * m4/uintmax_t.m4: Likewise.
5360 * m4/visibility.m4: Likewise.
5361 * po/Makefile.am: Remove.
5362 * po/Makefile.in.in: New file, from gettext.
5363 ($(DOMAIN).pot-update): Support POTFILES-shell.
5364 * po/Makevars: New file.
5365 * po/POTFILES-shell: Rename to ...
5366 * po/POTFILES-shell.in: ... this. Update.
5367 * po/POTFILES: Rename to ...
5368 * po/POTFILES.in: ... this. Update.
5369 * po/Rules-quot: New file, from gettext.
5370 * po/boldquot.sed: Likewise.
5371 * po/en@boldquot.header: Likewise.
5372 * po/en@quot.header: Likewise.
5373 * po/insert-header.sin: Likewise.
5374 * po/quot.sed: Likewise.
5375 * po/remove-potcdate.sin: Likewise.
5376
3e0fa5d0
VS
53772010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
5378
5379 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Use UUID when possible.
5380
ade9bd66
VS
53812010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
5382
5383 * util/grub.d/20_linux_xen.in: Use submenus.
5384
fc55cc4c
VS
53852010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
5386
5387 Support submenus.
5388
5389 * grub-core/commands/menuentry.c (grub_normal_add_menu_entry): New
5390 parameter submenu. All users updated.
5391 * grub-core/normal/main.c (free_menu): Rename to ...
5392 (grub_normal_free_menu): ... this. Made global.
5393 * grub-core/normal/menu.c (grub_menu_execute_entry): Open new context
5394 if requested.
5395 * grub-core/normal/menu_entry.c (screen): New field submenu.
5396 (make_screen): Set submenu.
5397 (run): Open new context if requested.
5398 * include/grub/menu.h (grub_menu_entry): New field submenu.
5399 * include/grub/normal.h (grub_normal_free_menu): New proto.
5400
600cedf7
VS
54012010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
5402
5403 Menu entries extractor.
5404
5405 * grub-core/commands/configfile.c (grub_cmd_source): Implement extractor
5406 variants.
5407 (GRUB_MOD_INIT): Register new variants.
5408 (GRUB_MOD_FINI): Unregister new variants.
5409 * grub-core/commands/legacycfg.c (grub_cmd_legacy_configfile): Merge
5410 into grub_cmd_legacy_source.
5411 (grub_cmd_legacy_source): Implement extractor variants.
5412 (GRUB_MOD_INIT): Register new variants.
5413 (GRUB_MOD_FINI): Unregister new variants.
5414 * grub-core/commands/menuentry.c (grub_menu_init): Declare menuentry
5415 as an extractor.
5416 * grub-core/commands/search_wrap.c (GRUB_MOD_INIT): Declare
5417 search as an extractor.
5418 * grub-core/commands/test.c (GRUB_MOD_INIT): Declare
5419 test as an extractor.
5420 * grub-core/kern/corecmd.c (grub_register_core_commands): Declare set
5421 as an extractor.
5422 * grub-core/normal/context.c (grub_env_context_open): Reorganised.
5423 (grub_env_new_context): New function.
5424 (grub_env_context_open): Likewise.
5425 (grub_env_extractor_open): Likewise.
5426 (grub_env_extractor_close): Likewise.
5427 * grub-core/script/execute.c (grub_script_execute_cmdline): Handle
5428 grub_extractor_level.
5429 * include/grub/command.h (GRUB_COMMAND_FLAG_EXTRACTOR): New flag.
5430 * include/grub/env.h (grub_env_extractor_open): New proto.
5431 (grub_env_extractor_close): Likewise.
5432 * include/grub/normal.h (grub_extractor_level): New external variable.
5433
7bda3a87
VS
54342010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
5435
5436 Make cutmem accept a region specification.
5437 Suggested by: Samuel Thibault
5438
5439 * grub-core/mmap/mmap.c (parsemem): New function.
5440 (grub_cmd_cutmem): Handle new arguments.
5441
2ea57f88
VS
54422010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
5443
5444 New command cutmem.
5445
5446 * grub-core/mmap/mmap.c (grub_cmd_cutmem): New function.
5447 (GRUB_MOD_INIT): Register new command.
5448 (GRUB_MOD_FINI): Unregister new command.
5449
74342e31
VS
54502010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
5451
5452 Support some annoying BSD and Minix subpartitions.
5453
5454 * Makefile.util.def (libgrub.a): Add grub-core/partmap/bsdlabel.c.
5455 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name):
5456 Properly handle concatenation.
5457 * grub-core/kern/device.c (grub_device_iterate): Likewise.
5458 * grub-core/normal/completion.c (iterate_partition): Likewise.
5459 * grub-core/kern/disk.c (grub_disk_open): Make disk->name not
5460 contain partition. All users updated.
5461 * grub-core/partmap/bsdlabel.c (grub_netbsdlabel_partition_map): New
5462 struct.
5463 (grub_openbsdlabel_partition_map): Likewise.
5464 (bsdlabel_partition_map_iterate): Rename to ..
5465 (iterate_real): ... this. New arguments sector, freebsd and pmap.
5466 (bsdlabel_partition_map_iterate): New function.
5467 (netopenbsdlabel_partition_map_iterate): Likewise.
5468 (netbsdlabel_partition_map_iterate): Likewise.
5469 (openbsdlabel_partition_map_iterate): Likewise.
5470 (GRUB_MOD_INIT): Register new partmaps.
5471 (GRUB_MOD_FINI): Unregister new partmaps.
5472 * grub-core/partmap/msdos.c (pc_partition_map_iterate): Rename to ...
5473 (grub_partition_msdos_iterate): ... this. All users updated.
5474 Don't support embedding other than in a minix partition.
5475 * include/grub/msdos_partition.h (grub_partition_msdos_iterate): New
5476 proto.
5477 * include/grub/partition.h (grub_partition): New field msdostype.
5478 * util/grub-install.in: Handle openbsd and netbsd types being in
5479 part_bsd module.
5480
1e8d555b
VS
54812010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
5482
5483 Split mdraid.mod into mdraid09.mod and mdraid1x.mod.
5484
5485 * Makefile.util.def (libgrub.a): Add grub-core/disk/mdraid1x_linux.c.
5486 * grub-core/Makefile.core.def (mdraid): Renamed to ...
5487 (mdraid09): ... this.
5488 (mdraid1x): New module.
5489 * grub-core/disk/mdraid_linux.c: Move 1.x parts ...
5490 * grub-core/disk/mdraid1x_linux.c: ...here. All users updated.
5491
899d8af4
VS
54922010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
5493
5494 * grub-core/kern/emu/misc.c (asprintf): Use vsnprintf instead of
5495 vsprintf.
5496
40901acd
CW
54972010-09-20 Colin Watson <cjwatson@ubuntu.com>
5498
5499 * grub-core/commands/efi/lsefimmap.c: Correct header.
5500 * NEWS: Update.
5501
dfe3b247
CW
55022010-09-20 Colin Watson <cjwatson@ubuntu.com>
5503
5504 * util/grub-editenv.c (argp_parser): Don't pass translated strings
5505 as printf format strings; the translations might contain '%' which
5506 could cause a crash.
5507 (main): Likewise.
5508 * util/grub-fstest.c (argp_parser): Likewise.
5509 * util/grub-setup.c (argp_parser): Likewise.
5510 (main): Likewise.
5511
3286a4b4
VS
55122010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
5513
5514 Use argp in grub-fstest.
5515
5516 * util/grub-fstest.c: Don't include getopt.h.
5517 Include argp.h.
5518 (root): New variable.
5519 (args_count): Likewise.
5520 (nparm): Likewise.
5521 (num_disks): Likewise.
5522 (images): Likewise.
5523 (cmd): Likewise.
5524 (debug_str): Likewise.
5525 (args): Likewise.
5526 (options): Transformed to argp.
5527 (usage): Removed.
5528 (main): Split argument parsing into ...
5529 (argp_parser): ... this. Changed to argp format.
5530 (argp): New variable.
5531 (main): Use argp_parse.
5532
3dccbe4b
TG
55332010-09-20 Tristan Gingold <gingold@free.fr>
55342010-09-20 Robert Millan <rmh.grub@aybabtu.com>
55352010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
5536
5537 * grub-core/commands/efi/lsefimmap.c: New file.
5538 * grub-core/Makefile.core.def (lsefimmap): New module.
5539 * include/grub/efi/api.h (PRIxGRUB_EFI_UINTN_T): New definition.
5540
38c259a7
VS
55412010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
5542
5543 Pause the execution (10s max) if any errors are displayed so the user
5544 has a chance to see them.
5545
5546 * grub-core/kern/err.c (grub_err_printed_errors): New variable.
5547 (grub_print_error): Increment grub_err_printed_errors.
5548 * grub-core/normal/menu.c (grub_menu_execute_entry): Pause the
5549 execution if any errors were displayed.
5550 (show_menu): Remove old code for pause.
5551 * grub-core/normal/menu_entry.c (run): Likewise.
5552 * grub-core/normal/term.c (grub_normal_char_counter): Removed. All
5553 users updated.
5554 (grub_normal_get_char_counter): Likewise.
5555 * include/grub/err.h (grub_err_printed_errors): New external variable.
5556 * include/grub/normal.h (grub_normal_get_char_counter): Removed.
5557
f218b09c
VS
55582010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
5559
5560 Support multiboot VBE info.
5561
5562 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
5563 Take VBE info into account.
5564 (fill_vbe_info) [GRUB_MACHINE_HAS_VBE]: New function.
5565 (retrieve_video_parameters) [GRUB_MACHINE_HAS_VBE]:
5566 Call fill_vbe_info when appropriate.
5567 (grub_multiboot_make_mbi): Account for the size occupied by VBE info.
5568 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_load): Declare tags
5569 as supported.
5570 (grub_multiboot_get_mbi_size): Take new tags into account.
5571 (fill_vbe_tag) [GRUB_MACHINE_HAS_VBE]: New function.
5572 (retrieve_video_parameters) [GRUB_MACHINE_HAS_VBE]:
5573 Call fill_vbe_tag when appropriate.
5574 (grub_multiboot_make_mbi): Properly align tags.
5575 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_pm_interface): New
5576 function.
5577 * include/grub/i386/pc/vbe.h (grub_vbe_bios_get_pm_interface): New
5578 proto.
5579 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VBE): New definition.
5580
a9cc5438
VS
55812010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
5582
5583 Suport manual terminal geometry specification.
5584
5585 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_dimensions):
5586 Save state in grub_ofconsole_terminfo_output.
5587 (grub_ofconsole_term): Use grub_terminfo_getwh.
5588 (grub_ofconsole_getwh): Removed.
5589 * grub-core/term/serial.c (grub_serial_getwh): Removed.
5590 (grub_serial_term): Use grub_terminfo_getwh.
5591 * grub-core/term/terminfo.c (grub_terminfo_getwh): New function.
5592 (options): New struct.
5593 (OPTION_*): New enum.
5594 (grub_cmd_terminfo): Transform into extcmd and handle new parameters.
5595 * include/grub/terminfo.h (grub_terminfo_output_state): New fields
5596 width and height.
5597 (grub_terminfo_getwh): New proto.
5598 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Handle --lines.
5599
1a8fed20
VS
56002010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
5601
5602 Handle legacy "terminal" command.
5603
5604 * grub-core/lib/legacy_parse.c (legacy_command): New flags FLAG_TITLE
5605 and FLAG_TERMINAL.
5606 (legacy_commands): Add terminal and title.
5607 (grub_legacy_parse): Handle terminal. Simplify title handling.
5608
41e9c57d
VS
56092010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
5610
5611 * grub-core/lib/arg.c (grub_arg_show_help): Correctly handle
5612 parameters overflow.
5613
61c874c5
CW
56142010-09-20 Colin Watson <cjwatson@ubuntu.com>
5615
5616 * .bzrignore: Add grub-core/gnulib/sys, widthspec.bin, and
5617 widthspec.h.
5618
5619 * docs/grub.texi (Shell-like scripting): Document `!'.
5620 (Network): Simplify using new i386-pc-pxe format. Mention
5621 grub-mknetdir.
5622
5623 * NEWS: Update.
5624
943682b4
CW
56252010-09-20 Colin Watson <cjwatson@ubuntu.com>
5626
5627 * Makefile.am (SUBDIRS): Restore "."; it's important to force
5628 ordering, so that e.g. ascii.h is built before grub-core/font/font.c
5629 when needed.
5630
6d3d698d
CW
56312010-09-20 Colin Watson <cjwatson@ubuntu.com>
5632
5633 * grub-core/commands/efi/lsefisystab.c: Correct header.
5634 * grub-core/commands/efi/lssal.c: Likewise.
5635 * grub-core/commands/testload.c: Likewise.
5636
c982589f
CW
56372010-09-20 Colin Watson <cjwatson@ubuntu.com>
5638
5639 * util/grub-mkrescue.in: Add explicit root argument to --set to
5640 prevent the UUID being interpreted as an argument to --set (matches
5641 previous change to prepare_grub_to_access_device).
5642
a63c31b6
CW
56432010-09-20 Colin Watson <cjwatson@ubuntu.com>
5644
5645 * kern/emu/hostdisk.c: Include <sys/ioctl.h> and <sys/disklabel.h>
5646 on FreeBSD. Define HAVE_DIOCGDINFO on NetBSD and FreeBSD to reduce
5647 the verbosity of later #ifs.
5648 (find_partition_start): Define this function on FreeBSD too.
5649 (device_is_wholedisk) [__FreeBSD__ || __FreeBSD_kernel__]: New
5650 function.
5651 (grub_util_biosdisk_get_grub_dev): Use partition-start-sector logic
5652 on FreeBSD.
5653
6439b8ee
YB
56542010-09-20 Yves Blusseau <blusseau@zetam.org>
5655
5656 * util/grub-editenv.c: Use argp instead of getopt.
5657
c5930ec8
YB
56582010-09-20 Yves Blusseau <blusseau@zetam.org>
5659
5660 * util/grub-setup.c: Use argp instead of getopt.
5661
15c69261
YB
56622010-09-20 Yves Blusseau <blusseau@zetam.org>
5663
5664 Use gnulib-tool to create gnulib source files.
5665
5666 * Add gnulib files generated by gnulib-tool in build-aux, m4 and
5667 grub-core/gnulib directories
5668 * .bzignore: Add **/.deps and autogenerated gnulib files
5669 * configure.ac: Assign auxiliary directory to build-aux, add invocation
5670 of gnulib macros, add grub-core/gnulib/Makefile
5671 * Makefile.am: Add gnulib directory in SUBDIRS (removing unnecessary .),
5672 include m4 directory to aclocal.
5673 * Makefile.util.def: Remove direct compilation of gnulib source files
5674 and use the new grub-core/gnulib/libgnu.a.
5675 * build-aux/config.rpath: move config.rpath from top directory to
5676 build-aux
5677 * conf/Makefile.common: Remove the macro _GL_UNUSED already defined
5678 in gnulib headers
5679 * conf/Makefile.extra-dist: Add m4/gnulib-cache.m4
5680 * grub-core/Makefile.core.def: Remove unnecessary extra_dist
5681 * grub-core/lib/posix_wrap/localcharset.h (locale_charset): Update
5682 header.
5683 * grub-core/lib/posix_wrap/langinfo.h (nl_langinfo): Return static
5684 string.
5685
e511c9f5
YB
56862010-09-20 Yves Blusseau <blusseau@zetam.org>
5687
5688 * .bzrignore: Add grub-kbdcomp, grub-menulst2cfg, *.marker,
5689 grub-core/genmod.sh and grub-core/gensyminfo.sh
5690
c2dede05
BC
56912010-09-20 BVK Chaitanya <bvk.groups@gmail.com>
5692
5693 Add a test for echo command options.
5694
5695 * tests/grub_cmd_echo.in: New test.
5696 * Makefile.util.def: Rules for new test.
5697
c55f5018
SJ
56982010-09-20 Szymon Janc <szymon@janc.net.pl>
5699
5700 Remove crc.mod and move crc command to hashsum.mod.
5701 Remove lib/crc.c - users updated to use gcrypt implementation.
5702
5703 * grub-core/commands/crc.c: Removed.
5704 * grub-core/Makefile.core.def (crc): Module removed.
5705 * grub-core/commands/hashsum.c (aliases[]): Add crc alias.
5706 * grub-core/commands/hashsum.c (GRUB_MOD_INIT): Register crc command.
5707 * grub-core/commands/hashsum.c (GRUB_MOD_FINI): Unregister crc command.
5708 * grub-core/lib/crc.c: Removed.
5709 * include/grub/lib/crc.h: Removed.
5710 * Makefile.util.def (crc): Remove lib/crc.c
5711 * grub-core/Makefile.core.def (libgrub.a): Remove grub-core/lib/crc.c.
5712 * util/grub-fstest.c (cmd_crd): Use libgcrypt crc implementation.
5713 * Makefile.util.def (libgrub.a): Add grub-core/lib/libgcrypt-grub/cipher/crc.c.
5714 * Makefile.util.def (grub-fstest): Add CFLAGS_GCRY to cflags.
5715 * Makefile.util.def (grub-fstest): Add CPPFLAGS_GCRY to cppflags.
5716 * grub-core/efiemu/prepare.c (grub_efiemu_crc): Use libgcrypt crc implementation.
5717
e0337366
VS
57182010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
5719
5720 * grub-core/boot/i386/pc/boot.S: Ignore %dl if it's not in a sane range.
5721
742f9232
VS
57222010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
5723
5724 Split config.h for util and core.
5725
5726 * acinclude.m4 (HAVE_ASM_USCORE): Transformed into a variable.
5727 (ADDR32): Likewise.
5728 (DATA32): Likewise.
5729 (BSS_START_SYMBOL): Likewise.
5730 (END_SYMBOL): Likewise.
5731 (NEED_ENABLE_EXECUTE_STACK): Likewise. All users updated.
5732 (grub_I386_ASM_ABSOLUTE_WITHOUT_ASTERISK): Removed.
5733 * config.h.in: New file.
5734 * configure.ac: Use config-util.h as config define file.
5735 Rename MACHINE into GRUB_MACHINE. All users updated.
5736 (NEED_REGISTER_FRAME_INFO): Transformed into a variable. All users
5737 updated.
5738 (NESTED_FUNC_ATTR): Likewise.
5739 Substitue new variables.
5740 (COND_HAVE_ASM_USCORE): New conditional.
5741 * grub-core/Makefile.am (ASM_PREFIX): New variable.
5742 (kernel_syms.lst): Use ASM_PREFIX.
5743 * grub-core/kern/emu/console.c: Include config-util.h.
5744 * grub-core/kern/emu/misc.c: Likewise.
5745 * grub-core/kern/emu/mm.c: Likewise.
5746 * include/grub/emu/misc.h: Likewise.
5747 * include/grub/libgcc.h: Likewise.
5748
39feb0e8
VS
57492010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
5750
5751 * grub-core/term/efi/console.c (efi_codes): Fix GRUB_TERM_KEY_*
5752 constants usage.
5753 * grub-core/kern/emu/console.c (grub_ncurses_getkey):
5754 Fix GRUB_TERM_KEY_* constants usage.
5755 * grub-core/kern/emu/misc.c (asprintf): Fix vasprintf usage.
5756
9af6dac3
VS
57572010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
5758
5759 * grub-core/bus/usb/ohci.c (grub_ohci_cancel_transfer): Use %p to
5760 print pointer.
5761 * grub-core/bus/usb/uhci.c: Remove empty define.
5762 (grub_uhci_check_transfer): Add missing cast.
5763 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Use %p to
5764 print pointer.
5765 * grub-core/term/usb_keyboard.c (grub_usb_keyboard_getkey): Use
5766 PRIuGRUB_SIZE.
5767 * include/grub/types.h (PRIuGRUB_SIZE): New definition.
5768
d6d94820
VS
57692010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
5770
5771 * grub-core/Makefile.core.def (legacycfg): Add
5772 lib/i386/pc/vesa_modes_table.c on emu.
5773
3572f2b6
BC
57742010-09-19 BVK Chaitanya <bvk.groups@gmail.com>
5775
5776 Reduce number of temporary files generated by build system.
5777
5778 * grub-core/gencmdlist.sh: Removed.
5779 * grub-core/genfslist.sh: Removed.
5780 * grub-core/genhandlerlist.sh: Removed.
5781 * grub-core/genmodsrc.sh: Removed.
5782 * grub-core/genpartmaplist.sh: Removed.
5783 * grub-core/genparttoollist.sh: Removed.
5784 * grub-core/gentermiinallist.sh: Removed.
5785 * grub-core/genvideolist.sh: Removed.
5786
5787 * grub-core/genmod.sh.in: New file.
5788 * grub-core/gensyminfo.sh.in: New file.
5789
5790 * conf/Makefile.common (CPPFLAGS_*_LIST): New marker flags.
5791 * conf/Makefile.extra-dist: Update with new files.
5792 * gentpl.py: Remove rules related to unnecessary temporary files.
5793 * grub-core/Makefile.am (syminfo.lst): New replacement for def-*
5794 and und-* files.
5795 * grub-core/Makefile.core.def: New rules for gensyminfo.sh and
5796 genmod.sh scripts.
5797 * grub-core/bus/usb/uhci.c: Remove empty #define.
5798 * grub-core/genmoddep.awk: Updated with new syminfo format.
5799 * util/bash-completion.d/Makefile.am: Add config.log to
5800 CLEANFILES.
5801
c836b030
YB
58022010-09-19 Yves Blusseau <blusseau@zetam.org>
5803
5804 * Makefile.util.def: Add forgotten $(LIBINTL) library.
5805
2f4e8053
BC
58062010-09-19 BVK Chaitanya <bvk.groups@gmail.com>
5807
5808 * util/grub-mkconfig.in: Check the config script for syntax errors
5809 before saving.
5810
75831c34
CW
58112010-09-19 Colin Watson <cjwatson@ubuntu.com>
58122010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
5813
5814 * Makefile.util.def (grub-install): Use util/grub-install.in on all
5815 platforms.
5816 * util/grub-install.in: Add EFI and IEEE1275 support.
5817 * util/i386/efi/grub-install.in: Removed.
5818 * util/ieee1275/grub-install.in: Likewise.
5819
eaf41b25
VS
58202010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
5821
5822 * grub-core/commands/i386/cmostest.c (+parse_args): New function.
5823 (grub_cmd_cmosclean): Likewise.
5824 (GRUB_MOD_INIT): Register command cmosclean.
5825 * util/grub-mkconfig.in: Export GRUB_BUTTON_CMOS_CLEAN.
5826 * util/grub.d/00_header.in: Handle GRUB_BUTTON_CMOS_CLEAN.
5827
1a9130dd
CPE
58282010-09-18 Carles Pina i Estany <carles@pina.cat>
58292010-09-18 Aleš Nesrsta <starous@volny.cz>
58302010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
5831
5832 Add keyboard layouts support.
5833
5834 * Makefile.util.def (grub-mklayout): New file.
5835 (grub-kbdcomp): New script.
5836 * grub-core/Makefile.am (KERNEL_HEADER_FILES) [COND_mips_yeeloong]:
5837 Add keyboard_layouts.h.
5838 * grub-core/Makefile.core.def (kernel): Add commands/keylayouts.c and
5839 commands/boot.c on yeeloong.
5840 (keylayouts): New module.
5841 * grub-core/bus/usb/ohci.c
5842 * grub-core/bus/usb/uhci.c
5843 * grub-core/bus/usb/usbhub.c (rescan): New variable.
5844 (grub_usb_add_hub): Poll interrupt pipe for device handling.
5845 (attach_root_port): Likewise.
5846 (poll_nonroot_hub): Likewise.
5847 (grub_usb_poll_devices): Likewise.
5848 (detach_device): Close transfer.
5849 * grub-core/bus/usb/usbtrans.c (grub_usb_execute_and_wait_transfer): New
5850 function.
5851 (grub_usb_bulk_setup_readwrite): Likewise.
5852 (grub_usb_bulk_finish_readwrite): Likewise.
5853 * grub-core/commands/keylayouts.c: New file.
5854 * grub-core/commands/keystatus.c (grub_getkeystatus): New function.
5855 * grub-core/commands/menuentry.c (hotkey_aliases): All several new
5856 aliases.
5857 * grub-core/term/at_keyboard.c: Restructured to use keylayouts and
5858 support scancode 2.
5859 * grub-core/term/usb_keyboard.c: Restructured to use keylayouts.
5860 * include/grub/keyboard_layouts.h: New file.
5861 * util/grub-mklayout.c: New file.
5862 * util/grub-kbdcomp.in: Likewise.
5863
a1d84a5e
VS
58642010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
5865
5866 Unify memory types.
5867
5868 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Include memory.h.
5869 * grub-core/commands/lsmmap.c (grub_cmd_lsmmap): Output user-readable
5870 types.
5871 * grub-core/kern/i386/multiboot_mmap.c (grub_lower_mem): Removed.
5872 (grub_upper_mem): Likewise.
5873 * grub-core/kern/ieee1275/init.c (grub_upper_mem): Likewise.
5874 * include/grub/memory.h (grub_memory_type_t): New enum.
5875 All users updated.
5876
9696382e
VS
58772010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
5878
5879 * grub-core/Makefile.core.def (lsapm): New module.
5880 * grub-core/commands/i386/pc/lsapm.c: New file.
5881 * grub-core/loader/i386/multiboot_mbi.c (make_mbi) [GRUB_MACHINE_PCBIOS]: Pass APM info.
5882 * grub-core/loader/multiboot_mbi2.c (make_mbi) [GRUB_MACHINE_PCBIOS]:
5883 Likewise.
5884 * include/grub/i386/pc/apm.h: New file.
5885 * include/multiboot.h (multiboot_apm_info): New struct.
5886
58872010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
5888
5889 GRUB-legacy configuration file support.
5890
5891 * Makefile.util.def (grub-menulst2cfg): New util.
5892 * docs/man/grub-menulst2cfg.h2m: New file.
5893 * grub-core/Makefile.core.def (legacycfg): New module.
5894 * grub-core/commands/legacycfg.c: New file.
5895 * grub-core/commands/menuentry.c (append_menu_entry): Rename to ...
5896 (grub_normal_add_menu_entry): ... this.
5897 * grub-core/commands/password.c (grub_cmd_password): Split main part to ...
5898 (grub_normal_set_password): ...this.
5899 * grub-core/commands/videoinfo.c (grub_cmd_videoinfo): Support MODE.
5900 * grub-core/loader/i386/linux.c (linux_vesafb_res): Move to ..,
5901 * grub-core/lib/i386/pc/vesa_modes_table.c: ... here.
5902 * grub-core/lib/legacy_parse.c: New file.
5903 * grub-core/normal/auth.c (grub_cmd_authenticate): New command.
5904 * include/grub/i386/pc/vesa_modes_table.h: New file.
5905 * include/grub/legacy_parse.h: Likewise.
5906 * include/grub/normal.h (grub_normal_add_menu_entry): New proto.
5907 * util/grub-menulst2cfg.c: New file.
5908
bf8d1338
CW
59092010-09-17 Colin Watson <cjwatson@ubuntu.com>
5910
5911 * grub-core/kern/emu/hostdisk.c
5912 (convert_system_partition_to_system_disk): Initialise node.
5913
9c0bad2e
CW
59142010-09-17 Colin Watson <cjwatson@ubuntu.com>
5915
5916 * grub-core/kern/emu/hostdisk.c
5917 (convert_system_partition_to_system_disk): Fix devmapper memory pool
5918 leak.
5919 Reported and based on patch by: Modestas Vainius.
5920
a939d135
CW
59212010-09-17 Colin Watson <cjwatson@ubuntu.com>
5922
5923 Fix DM-RAID probing with recent versions of device-mapper udev
5924 rules.
5925
5926 * grub-core/kern/emu/hostdisk.c (read_device_map): Don't
5927 canonicalise device paths under /dev/mapper/.
5928 (convert_system_partition_to_system_disk): Compare the
5929 uncanonicalised path to /dev/mapper/ rather than the canonicalised
5930 path, since device nodes under /dev/mapper/ are often symlinks.
5931
0f7ee3c9
YB
59322010-09-17 Yves Blusseau <blusseau@zetam.org>
5933
5934 * .bzrignore: *.d removed (old rule), add *.image and symlist.h.
5935
10854d0d
YB
59362010-09-16 Yves Blusseau <blusseau@zetam.org>
5937
5938 * configure.ac: Avoid some annoying error messages if freetype-config
5939 program is not found.
5940
108538d8
CW
59412010-09-16 Colin Watson <cjwatson@ubuntu.com>
5942
5943 Support RAID on virtio devices, and others.
5944
5945 * grub-core/kern/emu/getroot.c [__MINGW32__] (find_root_device):
5946 Rename to ...
5947 [__MINGW32__] (grub_find_device): ... this.
5948 [! __MINGW32__ && ! __CYGWIN__] (find_root_device): Rename to ...
5949 [! __MINGW32__ && ! __CYGWIN__] (grub_find_device): ... this. Use a
5950 reasonable default if dir is NULL.
5951 [! __MINGW32__ && __CYGWIN__] (find_cygwin_root_device): Rename to
5952 ...
5953 [! __MINGW32__ && __CYGWIN__] (grub_find_device): ... this.
5954 (grub_guess_root_device): Update callers.
5955 * include/grub/emu/getroot.h (grub_find_device): Add prototype.
5956
5957 * util/raid.c (grub_util_getdiskname): Remove.
5958 (grub_util_raid_getmembers): Use grub_find_device rather than
5959 grub_util_getdiskname.
5960
e5bfc130
CW
59612010-09-16 Colin Watson <cjwatson@ubuntu.com>
5962
5963 * docs/grub.texi (serial): Remove obsolete comment about GRUB
5964 needing to be compiled with serial support.
5965 (ls): Indicate that multiple files are accepted.
5966 * grub-core/commands/ls.c (GRUB_MOD_INIT): Update help text to
5967 indicate that multiple files are accepted.
5968
be458ae2
CW
59692010-09-16 Colin Watson <cjwatson@ubuntu.com>
5970
5971 * .bzrignore: Add *.1, *.8, grub-shell, grub-shell-tester,
5972 libgrub_a_init.c, and util/bash-completion.d/grub.
5973
cb731b5e
VS
59742010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
5975
5976 * util/grub-setup.c (setup): Fix incorrect container semantics.
5977
35139e8a
VS
59782010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
5979
5980 * grub-core/commands/parttool.c (grub_cmd_parttool): Fix a variable
5981 misusage.
5982 Reported by: J. Nick Terry
5983
e50fca4a
VS
59842010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
5985
5986 Move embedding routines to partmap sources files.
5987
5988 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot)
5989 [GRUB_UTIL]: New variable.
5990 (gpt_partition_map_iterate): Set part.parent.
5991 (gpt_partition_map_embed) [GRUB_UTIL]: New function.
5992 (grub_gpt_partition_map) [GRUB_UTIL]: Set .embed.
5993 * grub-core/partmap/msdos.c (pc_partition_map_embed) [GRUB_UTIL]:
5994 New function.
5995 (grub_msdos_partition_map) [GRUB_UTIL]: Set .embed.
5996 * include/grub/partition.h (grub_embed_type_t) [GRUB_UTIL]: New type.
5997 (grub_partition_map) [GRUB_UTIL]: New field embed.
5998 * util/grub-setup.c (grub_gpt_partition_type_bios_boot): Removed.
5999 (setup): Use ->embed.
6000
f00478b7
VS
60012010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
6002
6003 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): New
6004 function.
6005 * include/grub/emu/hostdisk.h (grub_util_biosdisk_is_floppy): New proto.
6006 * util/grub-setup.c (setup): Use grub_util_biosdisk_is_floppy.
6007
2b94e3ff
YB
60082010-09-15 Yves Blusseau <blusseau@zetam.org>
6009
6010 Add function to get completions from usage.
6011
6012 * util/bash-completion.d/grub-completion.bash.in: Add function to get
6013 completions from usage. Use LC_ALL=C to get options properly.
6014
2e04a006
VS
60152010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
6016
6017 * grub-core/gnulib/basename-lgpl.c: Imported.
6018 * grub-core/gnulib/basename.c: Likewise.
6019 * grub-core/gnulib/dirname-lgpl.c: Likewise.
6020 * grub-core/gnulib/dirname.c: Likewise.
6021 * grub-core/gnulib/dirname.h: Likewise.
6022 * grub-core/gnulib/stripslash.c: Likewise.
6023
5dcdf93a
VS
60242010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
6025
6026 * grub-core/gnulib/error.c: Resynced.
6027 * grub-core/gnulib/getopt.c: Likewise.
6028 * grub-core/gnulib/getopt_int.h: Likewise.
6029 * grub-core/gnulib/regex.h: Likewise.
6030 * grub-core/gnulib/regex_internal.c: Likewise.
6031 * grub-core/gnulib/regex_internal.h: Likewise.
6032
014f47b7
SJ
60332010-09-15 Szymon Janc <szymon@janc.net.pl>
6034
6035 * grub-core/lib/xzembed/xz_dec_stream.c (dec_main): Fix index and block
6036 CRC calculations and validity checks.
6037 * grub-core/lib/xzembed/xz_dec_stream.c (dec_index): Fix index CRC
6038 calculations.
6039
dd521a4a
SJ
60402010-09-15 Szymon Janc <szymon@janc.net.pl>
6041
6042 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_end): Fix memory leak.
6043
79c4eeb9
VS
60442010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
6045
6046 Fix incorrect echo options handling.
6047 Reported by: Yves Blusseau.
6048
6049 * include/grub/command.h (grub_command_flags_t): New flags
6050 GRUB_COMMAND_ACCEPT_DASH and GRUB_COMMAND_OPTIONS_AT_START.
6051 * grub-core/lib/arg.c (grub_arg_parse): Handle new flags.
6052 * grub-core/commands/echo.c (GRUB_MOD_INIT): Use new flags.
6053
ed80f7d5
VS
60542010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
6055
6056 * include/grub/command.h (GRUB_COMMAND_FLAG_CMDLINE): Removed. All
6057 users updated.
6058 (GRUB_COMMAND_FLAG_MENU): Likewise.
6059 (GRUB_COMMAND_FLAG_BOTH): Likewise.
6060 (GRUB_COMMAND_FLAG_TITLE): Removed.
6061 (GRUB_COMMAND_FLAG_NO_ECHO): Likewise.
6062 (GRUB_COMMAND_FLAG_EXTCMD): Moved into enum.
6063 (GRUB_COMMAND_FLAG_DYNCMD): Likewise.
6064 (GRUB_COMMAND_FLAG_BLOCKS): Likewise.
6065 (grub_command_flags_t): New enum. All users updated.
6066
5fe7620a
SG
60672010-09-14 Seth Goldberg <seth.goldberg@oracle.com>
6068
6069 Fix solaris compilation.
6070
6071 * grub-core/Makefile.core.def (kernel): Include gnulib/error.c on emu.
6072 (grub-emu): Add LIBZFS and LIBNVPAIR to ldadd.
6073 (grub-emu-list): Likewise.
6074
545b752f
VS
60752010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
6076
6077 Remove deprecated root command.
6078
6079 * grub-core/commands/minicmd.c (grub_mini_cmd_root): Removed. All users
6080 updated.
6081
6c1a338c
VS
60822010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
6083
6084 * util/i386/pc/grub-setup.c: Merge this ...
6085 * util/sparc64/ieee1275/grub-setup.c: ... and this ...
6086 * util/grub-setup.c: ... into this.
6087 * include/grub/sparc64/ieee1275/boot.h (grub_boot_blocklist) [ASM_FILE]:
6088 New struct.
6089
60902010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
6091
6092 * grub-core/fs/ext2.c (grub_ext2_open): Use return error value when
6093 possible.
6094
d2ea4551
VS
60952010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
6096
6097 * grub-core/partmap/sun.c (sun_partition_map_iterate): Don't needlesly
6098 allocate p.
6099
3c3b5040
VS
61002010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
6101
6102 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Add
6103 explicit root argument to set to prevent UUID to be interpreted as
6104 argument to set.
6105
b71c3fae
VS
61062010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
6107
6108 * grub-core/kern/sparc64/ieee1275/crt0.S: Align stack.
6109
275433e6
VS
61102010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
6111
6112 Don't export grub_gate_a20.
6113
6114 * grub-core/kern/i386/pc/init.c: Remove leftovers.
6115 * grub-core/kern/i386/pc/startup.S (FUNCTION(grub_gate_a20)): Rename
6116 to ...
6117 (grub_gate_a20): ... this. All users updated.
6118 * include/grub/i386/pc/init.h: Removed. All users updated.
6119
a5dbb1f1
VS
61202010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
6121
6122 Create euro.pf2 which supports most European languages.
6123
6124 * Makefile.am (grubdata_DATA): Add euro.pf2.
6125 (euro.pf2): New target.
6126 (CLEANFILES): Add euro.pf2.
6127
62a747cb
VS
61282010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
6129
6130 * configure.ac: Disable emu-usb by default to prevent inadvertent
6131 device takeover.
6132
608e43b1
VS
61332010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
6134
6135 Disable usbserial on grub-emu since our libusb code isn't good enough
6136 yet.
6137
6138 * grub-core/Makefile.core.def (usbserial_common): Disable on emu.
6139 (usbserial_pl2303): Likewise.
6140 (usbserial_ftdi): Likewise.
6141
94564f81
VS
61422010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
6143
6144 * include/grub/disk.h (grub_disk): Remove has_partitions.
6145 All users updated.
6146 * disk/loopback.c (grub_loopback): Remove has_partitions.
6147 All users updated.
6148 (options): Remove partitions. All users updated.
6149 * util/grub-fstest.c (fstest): Don't pass "-p" to loopback.
6150 * util/i386/pc/grub-setup.c (setup): copy partition table only when
6151 actual partition table is found.
6152
3352800b
VS
61532010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
6154
6155 Remove readability checks (too many false negatives).
6156
6157 * util/grub-install.in: Remove readability checks.
6158 * util/grub-mkconfig.in: Likewise.
6159 * util/grub.d/10_hurd.in: Likewise.
6160 * util/grub.d/10_kfreebsd.in: Likewise.
6161 * util/grub.d/10_linux.in: Likewise.
6162 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Revert to old
6163 way.
6164
2419f17a
VS
61652010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
6166
6167 Enable acpi shutdown on all ACPI platforms.
6168
6169 * grub-core/Makefile.core.def (halt): Inlude commands/acpihalt.c
6170 on coreboo, multiboot and EFI.
6171 * grub-core/commands/acpihalt.c (get_sleep_type): Add missing casts.
6172 (grub_acpi_halt): Likewise.
6173 * grub-core/commands/i386/pc/halt.c (grub_halt): Call grub_acpi_halt.
6174 (grub_cmd_halt): Don't call grub_acpi_halt directly.
6175 * grub-core/lib/efi/halt.c (grub_halt): Call grub_acpi_halt.
6176 * grub-core/lib/i386/halt.c (grub_halt)
6177 [GRUB_MACHINE_COREBOOT || GRUB_MACHINE_MULTIBOOT]: Likewise.
6178
0575c7c3
VS
61792010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
6180
6181 * grub-core/commands/iorw.c (grub_cmd_read): Declare buf in smallest
6182 context.
6183
54ac3cd1
VS
61842010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
6185
6186 * grub-core/video/efi_gop.c: Fix over-80-chars line.
6187 * grub-core/video/efi_uga.c: Likewise.
6188
b2a30ac5
VS
61892010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
6190
6191 Filter devaliases and never open same device twice.
6192
6193 * grub-core/disk/ieee1275/ofdisk.c (last_devpath): New variable.
6194 (last_ihandle): Likewise.
6195 (ofdisk_hash_ent): New member shortest.
6196 (ofdisk_hash_add): Add canonical path too.
6197 (scan): New function.
6198 (grub_ofdisk_iterate): Iterate over hashed entries.
6199 (compute_dev_path): Don't add :0.
6200 (grub_ofdisk_open): Don't really open the disk.
6201 (grub_ofdisk_close): Avoid closing unrelated disk.
6202 (grub_ofdisk_read): Implement reopen logic.
6203 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_canonicalise_devname):
6204 New function.
6205 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_canonicalise_devname):
6206 New proto.
6207
fb53b340
VS
62082010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
6209
6210 Fix sparc64.
6211
6212 * configure.ac (GRUB_KERNEL_MACHINE_LINK_ADDR): Removed.
6213 * grub-core/Makefile.core.def (kernel): Make ldflags just use the
6214 right address. Add sparc64_ieee1275_ldflags.
6215 * grub-core/loader/sparc64/ieee1275/linux.c: Remove leftover include.
6216 * util/grub-mkimagexx.c (locate_sections): Correct grub_host_to_target32
6217 to grub_host_to_target_addr
6218 (load_image): Likewise.
6219
f452b040
VS
62202010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
6221
6222 * grub-core/normal/completion.c (complete_file): Handle device
6223 containing slash.
6224 Fix based on patch by Doug Nazar.
6225
9b5b2541
VS
62262010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
6227
6228 grub-mknetdir script.
6229
6230 * Makefile.util.def (grub-mknetdir): New module.
6231 * tests/util/grub-shell.in: Support boot=net
6232 * util/grub-mknetdir.in: New file.
6233
9d2be652
VS
62342010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
6235
6236 videoinfo on non-vbe.
6237
6238 * grub-core/Makefile.core.def (vbeinfo): Removed.
6239 (vbetest): Removed.
6240 (videoinfo): New module.
6241 * grub-core/commands/i386/pc/vbeinfo.c: Removed.
6242 * grub-core/commands/i386/pc/vbetest.c: Removed.
6243 * grub-core/commands/videoinfo.c: New file.
6244 * grub-core/commands/videotest.c (grub_cmd_videotest): Support mode
6245 specification.
6246 (grub_cmd_videotest) [GRUB_MACHINE_PCBIOS]: Load vbe.mod when invoked
6247 as vbetest.
6248 (GRUB_MOD_INIT) [GRUB_MACHINE_PCBIOS]: New command vbetest.
6249 (GRUB_MOD_FINI) [GRUB_MACHINE_PCBIOS]: Unregister vbetest.
6250 * grub-core/video/efi_gop.c (grub_video_gop_fill_mode_info): Fill
6251 mode_number. New parameter mode. All users updated.
6252 (grub_video_gop_iterate): New function.
6253 (grub_video_efi_gop): New member iterate.
6254 * grub-core/video/i386/pc/vbe.c (framebuffer): Removed leftover fields.
6255 (grub_vbe_set_video_mode): Remove setting useless fields.
6256 (vbe2videoinfo): New function.
6257 (grub_video_vbe_iterate): Likewise.
6258 (grub_video_vbe_setup): Use vbe2videoinfo.
6259 (grub_video_vbe_print_adapter_specific_info): New function.
6260 (grub_video_vbe_adapter): New fields iterate and
6261 print_adapter_specific_info.
6262 * include/grub/video.h (GRUB_VIDEO_MODE_*): Transform into enum.
6263 All users updated.
6264 (grub_video_mode_info): New field mode_number.
6265 (grub_video_adapter): New fields iterate and
6266 print_adapter_specific_info.
6267
179503f5
TG
62682010-09-13 Tristan Gingold <gingold@free.fr>
62692010-09-13 Robert Millan <rmh.grub@aybabtu.com>
62702010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
6271
6272 * grub-core/commands/efi/lsefisystab.c: New file.
6273 * grub-core/commands/efi/lssal.c: Likewise.
6274 * grub-core/Makefile.core.def (lsacpi): New module.
6275 (lsefisystab): Likewise.
6276 * include/grub/efi/api.h (GRUB_EFI_SAL_TABLE_GUID): New definition.
6277 (GRUB_EFI_HCDP_TABLE_GUID): Likewise.
6278 (grub_efi_sal_system_table): New struct.
6279 (grub_efi_sal_system_table_entrypoint_descriptor): Likewise.
6280 (grub_efi_sal_system_table_memory_descriptor): Likewise.
6281 (grub_efi_sal_system_table_platform_features): Likewise.
6282 (grub_efi_sal_system_table_translation_register_descriptor): Likewise.
6283 (grub_efi_sal_system_table_purge_translation_coherence): Likewise.
6284 (grub_efi_sal_system_table_ap_wakeup): Likewise.
6285 * include/grub/types.h (PRIuGRUB_UINT64_T): New definition.
6286
cf9827de
VS
62872010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
6288
6289 Support explicit user claim that a device is BIOS-visible.
6290
6291 * grub-core/kern/emu/getroot.c (grub_util_get_dev_abstraction):
6292 Return GRUB_DEV_ABSTRACTION_NONE if device is in device.map.
6293 * grub-core/kern/emu/hostdisk.c
6294 (convert_system_partition_to_system_disk): Support mdX.
6295 (find_system_device): New parameter add. All users updated.
6296 (grub_util_biosdisk_is_present): New function.
6297 * include/grub/emu/hostdisk.h (grub_util_biosdisk_is_present): New
6298 proto.
6299
53f0eb1f
VS
63002010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
6301
6302 Search hints support.
6303
6304 * commands/search.c (FUNC_NAME): New arguments hints and nhints.
6305 All users updated.
6306
b23ffd70
YB
63072010-09-13 Yves Blusseau <blusseau@zetam.org>
6308
6309 Bash completion script for util commands
6310
6311 * Makefile.am: Add util/bash-completion.d directory
6312 * configure.ac: Likewise.
6313 * util/bash-completion.d/Makefile.am: New file.
6314 * util/bash-completion.d/grub-completion.bash.in: Likewise.
6315
d547dc28
VS
63162010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
6317
6318 * grub-core/normal/term.c (put_glyphs_terminal): Correct sign.
6319 (print_backlog): set backlog_ucs4 and backlog_glyphs.
6320 Reported by: Yves Blusseau.
6321
2fc8ccb9
VS
63222010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
6323
6324 * grub-core/normal/misc.c (grub_normal_print_device_info): Show
6325 partition size and offset.
6326
d8a84076
VS
63272010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
6328
6329 * grub-core/commands/wildcard.c (make_regex): Escape brackets.
6330
84fb3b3d
VS
63312010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
6332
6333 * grub-core/commands/ls.c (grub_cmd_ls): Accept multiple files.
6334
768ec2e2
VS
63352010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
6336
6337 * grub-core/kern/misc.c (grub_vprintf): Use va_copy when necessary.
6338 (grub_xvasprintf): Likewise.
6339
4870900f
VS
63402010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
6341
6342 * grub-core/kern/emu/main.c (main): Call hostfs_init only after init_all.
6343
faca6bec
VS
63442010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
6345
6346 * grub-core/commands/menuentry.c (append_menu_entry): Don't rely on
6347 args ending with NULL.
6348
63492010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
788f1f3a
VS
6350
6351 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_reset): Preserve context
6352 pointer.
6353
3c70f225
SJ
63542010-09-11 Szymon Janc <szymon@janc.net.pl>
6355
6356 * grub-core/commands/lsacpi.c (grub_cmd_lsacpi): Fix prototype.
6357
4df7996d
VS
63582010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
6359
6360 Shutdown using ACPI.
6361
6362 * grub-core/Makefile.core.def (halt): Add commands/acpihalt.c on i386-pc.
6363 * grub-core/commands/acpihalt.c: New file.
6364 * grub-core/commands/i386/pc/halt.c (grub_cmd_halt): Call grub_acpi_halt.
6365 * include/grub/acpi.h (grub_acpi_fadt): New member pm1a.
6366 (grub_acpi_halt): New proto.
6367 (GRUB_ACPI_SLP_EN): New const.
6368 (GRUB_ACPI_SLP_TYP_OFFSET): Likewise.
6369 (GRUB_ACPI_OPCODE_*): New enum.
6370 (GRUB_ACPI_EXTOPCODE_*): Likewise.
6371
126b4c32
TG
63722010-09-11 Tristan Gingold <gingold@free.fr>
63732010-09-11 Robert Millan <rmh.grub@aybabtu.com>
63742010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
6375
6376 * commands/lsacpi.c: New file.
6377 * grub-core/Makefile.core.def (lsacpi): New module.
6378 * include/grub/acpi.h (GRUB_ACPI_FADT_SIGNATURE): New definition.
6379 (GRUB_ACPI_MADT_SIGNATURE): Likewise.
6380 (grub_acpi_madt_entry_header): New struct.
6381 (grub_acpi_madt): Likewise.
6382 (grub_acpi_madt_entry_interrupt_override): Likewise.
6383 (grub_acpi_madt_entry_sapic): Likewise.
6384 (grub_acpi_madt_entry_lsapic): Likewise.
6385 (grub_acpi_madt_entry_platform_int_source): Likewise.
6386 * include/grub/types.h (PRIxGRUB_UINT32_T): New definition.
6387 (PRIuGRUB_UINT32_T): Likewise.
6388 (PRIxGRUB_UINT64_T): Likewise.
6389
1aa4fe88
VS
63902010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
6391
6392 Implement loading palette on ieee1275_fb.
6393
6394 * grub-core/video/ieee1275.c (stdout_ihandle): New variable.
6395 (have_setcolors): Likewise.
6396 (grub_video_ieee1275_init): Fill stdout_ihandle and have_setcolors.
6397 (grub_video_ieee1275_setup): Use grub_video_ieee1275_set_palette.
6398 (grub_video_ieee1275_set_palette): Implement.
6399
25761e13
VS
64002010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
64012010-09-11 Colin Watson <cjwatson@ubuntu.com>
6402
6403 * util/grub-install.in (grub_partition): New variable.
6404 Set prefix_drive on EFI and PC to (,$grub_partition) as last resort.
6405 * util/i386/pc/grub-setup.c (setup): Don't touch prefix.
6406 Fixes a bug reported by Yves Blusseau.
6407
050abaea
VS
64082010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
6409
6410 Fix emu on mipsel.
6411
6412 * conf/Makefile.common (CFLAGS_PLATFORM): Add -mflush-func
6413 =grub_cpu_flush_cache on all mips and not only yeeloong.
6414 * configure.ac (COND_mips): New conditional.
6415 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add libgcc on all
6416 platforms.
6417 * grub-core/kern/emu/cache.S (__mips__): Use _flush_cache.
6418 * grub-core/kern/emu/full.c (grub_arch_dl_init_linker)
6419 [GRUB_LINKER_HAVE_INIT]: New function.
6420 (grub_emu_post_init): Likewise.
6421 * grub-core/kern/emu/lite.c (grub_emu_post_init): Likewise.
6422 * grub-core/kern/emu/main.c: Use grub_emu_post_init.
6423 * include/grub/cache.h (_mips): Include mips/cache.h.
6424 * include/grub/disk.h [GRUB_UTIL || GRUB_MACHINE_EMU]: Add missing
6425 LVM and RAID prototypes.
6426 * include/grub/emu/misc.h (grub_emu_post_init): New proto.
6427 * include/grub/mips/time.h (grub_cpu_idle) [GRUB_MACHINE_EMU]: New
6428 function.
6429
5ed7d816
CW
64302010-09-10 Colin Watson <cjwatson@ubuntu.com>
6431
6432 * util/grub-install.in: Don't try to verify core.img until after
6433 running grub-mkimage to create it.
6434
90367e04
RM
64352010-09-10 Robert Millan <rmh@gnu.org>
6436
6437 * util/grub.d/10_hurd.in: Add misc readability checks.
6438 * util/grub.d/10_kfreebsd.in: Likewise.
6439 * util/grub.d/10_linux.in: Likewise.
6440
c452fa66
CW
64412010-09-10 Colin Watson <cjwatson@ubuntu.com>
6442
6443 * util/grub-install.in: ${imgext} won't be defined here until the
6444 install branch is merged. For the meantime, only verify core.img on
6445 i386-pc and sparc64-ieee1275 platforms.
6446
c38fe9f4
RM
64472010-09-10 Robert Millan <rmh@gnu.org>
6448
6449 Solaris support in grub_find_zpool_from_dir(). Thanks
6450 Seth Goldberg for referring to getextmntent() facility.
6451
6452 * configure.ac: Check for getextmntent(), `sys/mnttab.h' and
6453 `sys/mkdev.h'.
6454 * grub-core/kern/emu/misc.c [HAVE_SYS_MNTTAB_H]: Include
6455 `<sys/mnttab.h>'.
6456 [HAVE_SYS_MKDEV_H]: Include `<sys/mkdev.h>'.
6457 [HAVE_GETEXTMNTENT] (grub_find_zpool_from_dir): Add getextmntent()
6458 method for finding zpool name.
6459
905f7773
CW
64602010-09-10 Colin Watson <cjwatson@ubuntu.com>
6461
6462 grub-fstest needs the host and hostfs modules while other utilities
6463 actively require those modules to be absent, so grub-fstest needs
6464 its own initialisation and finalisation code.
6465
6466 * Makefile.am (grub_fstest.pp): New target.
6467 (grub_fstest_init.lst): Likewise.
6468 (grub_fstest_init.c): Likewise.
6469 * Makefile.util.def (grub-fstest): Add grub_fstest_init.c.
6470
fb90b546
RM
64712010-09-10 Robert Millan <rmh@gnu.org>
6472
6473 * configure.ac: Check for `struct statfs.f_fstypename' and
6474 `struct statfs.f_mntfromname'.
6475
6476 * grub-core/kern/emu/misc.c (grub_find_zpool_from_dir): Conditionalize
6477 kFreeBSD-specific code.
6478
66d4bea5
RM
64792010-09-10 Robert Millan <rmh@gnu.org>
6480
6481 * util/grub.d/10_kfreebsd.in: Fix ${kfreebsd_device} initialization
6482 on ZFS. Now non-main filesystems are supported as / too.
6483
b6a690ee
CW
64842010-09-09 Colin Watson <cjwatson@ubuntu.com>
6485
6486 * Makefile.util.def (libgrub.a): Move grub-core/kern/emu/hostfs.c
6487 and grub-core/disk/host.c to ...
6488 (grub-fstest): ... here. Having the host disk implementation
6489 present confuses grub-probe and other utility programs.
6490
6491 * util/grub-mkconfig.in: Only verify readability of grub.cfg.new
6492 when writing to a file, not when writing to stdout.
6493
8901b00c 64942010-09-09 BVK Chaitanya <bvk.groups@gmail.com>
6495
6496 * tests/partmap_test.in: New test for partitions.
6497 * Makefile.util.def: Rules for new test.
6498
7bf45fdd
RM
64992010-09-09 Robert Millan <rmh@gnu.org>
6500
6501 * util/grub-probe.c (probe): Fix a pair of unhandled error
6502 conditions.
6503
4dfbc574
RM
65042010-09-09 Robert Millan <rmh@gnu.org>
6505
6506 Basic Btrfs support (detection and UUID).
6507
6508 * grub-core/fs/btrfs.c: New file.
6509 * Makefile.util.def (library): Register btrfs.c.
6510 * grub-core/Makefile.core.def: Likewise.
6511
6b8e78ae
RM
65122010-09-08 Robert Millan <rmh@gnu.org>
6513
6514 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Improve
6515 with (optional) parameters to specify device and relative path.
6516 * util/grub-install.in: Use is_path_readable_by_grub() to
6517 verify readability of a few critical files.
6518 * util/grub-mkconfig.in: Use is_path_readable_by_grub() to
6519 verify readability of grub.cfg.new.
6520
27f21a8b
VS
65212010-09-08 Vladimir Serbinenko <phcoder@gmail.com>
6522
6523 Split minix.mod into minix.mod and minix2.mod.
6524
6525 * Makefile.util.def (libgrub.a): Add grub-core/fs/minix2.c.
6526 * grub-core/Makefile.core.def (minix2): New module.
6527 * grub-core/fs/minix.c: Use definitions instead of runtime version
6528 checking.
6529 * grub-core/fs/minix2.c: New file.
6530
c0e53ea5
YB
65312010-09-08 Yves Blusseau <blusseau@zetam.org>
6532
6533 Add new --boot-directory option to replace --root-directory
6534
6535 * util/grub-install.in: Add new --boot-directory option
6536 * util/grub-reboot.in: Likewise.
6537 * util/grub-set-default.in: Likewise.
6538
b9fe6ea2
YB
65392010-09-08 Yves Blusseau <blusseau@zetam.org>
6540
6541 * util/grub-mkconfig.in: Use new variable.
6542
d87aedff
YB
65432010-09-08 Yves Blusseau <blusseau@zetam.org>
6544
6545 * configure.ac: Define some useful variables.
6546
e55e8495
VS
65472010-09-08 Vladimir Serbinenko <phcoder@gmail.com>
6548
6549 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
6550 GRUB_IEEE1275_FLAG_HAS_CURSORONOFF when appropriate.
6551 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_setcursor):
6552 Use terminfo and don't use cursor-on/cursor-off unless it's known
6553 to work.
6554 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New element
6555 GRUB_IEEE1275_FLAG_HAS_CURSORONOFF.
6556
6fa6d675
CW
65572010-09-08 Colin Watson <cjwatson@ubuntu.com>
6558
6559 * grub-core/kern/efi/init.c (grub_efi_set_prefix): If the prefix
6560 starts with "(,", fill the drive containing the loaded image in
6561 between those two characters, but expect that a full partition
6562 specification including partition map names will follow.
6563
92f2aef0
RM
65642010-09-08 Robert Millan <rmh@gnu.org>
6565
6566 * configure.ac: Remove `--enable-grub-fstest' option.
6567 * Makefile.util.def (grub-fstest): Remove COND_GRUB_FSTEST condition.
6568
6569 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Use
6570 `grub-fstest' instead of `grub-probe' for readability verification.
6571 * util/grub-probe.c (probe): Remove readability verification kludge.
6572
99fd620d
RM
65732010-09-08 Robert Millan <rmh@gnu.org>
6574
6575 * util/grub-mkconfig.in: Pass `--device ${GRUB_DEVICE}' when
6576 initializing `GRUB_FS'.
6577
058e30ac 65782010-09-08 BVK Chaitanya <bvk.groups@gmail.com>
6579
6580 Not command (!) support to GRUB script.
6581
6582 * tests/grub_script_not.in: New test.
6583 * Makefile.util.def: Rules for new test.
6584
6585 * grub-core/script/execute.c (grub_script_execute_cmdline): Handle
6586 ! command as a special case.
6587 * grub-core/script/yylex.l (GRUB_PARSER_TOKEN_NOT): Removed.
6588
b61d05ed 65892010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
6590
058e30ac 6591 * grub-core/commands/wildcard.c (wildcard_expand): Fix wrong
6592 grub_free.
b61d05ed 6593
4d69c786 65942010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
6595
6596 * docs/grub.texi (Shell-like scripting): Fix @dots to @dots{}.
6597
aa3119c4 65982010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
6599
6600 * docs/grub.texi (Shell-like scripting): Documentation for break,
6601 continue, shift and return commands.
6602
db0f7e3d
VS
66032010-09-06 Vladimir Serbinenko <phcoder@gmail.com>
6604
6605 Rename CD-ROM to cd on BIOS.
6606
6607 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_get_drive): Recognise
6608 "cd".
6609 (grub_biosdisk_call_hook): Call with "cd" instead of arbitrary hdX.
6610
88b87c93
VS
66112010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
6612
6613 * grub-core/kern/emu/main.c (main): Reinit LVM and RAID.
6614 * util/grub-probe.c (main): Likewise.
6615 * util/i386/pc/grub-setup.c (main): Likewise.
6616 * util/sparc64/ieee1275/grub-setup.c (main): Likewise.
6617 Reported and debugged by: alexxy
6618
294f324d
VS
66192010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
6620
6621 * grub-core/disk/lvm.c (grub_lvm_scan_device) [GRUB_UTIL]: Output more
6622 diagnostic info.
6623
d7ee3441
JS
66242010-09-05 Jo Shields <directhex@apebox.org>
6625
6626 * util/grub.d/30_os-prober.in: Add missing classes.
6627
d7e06c1f
VS
66282010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
6629
6630 * docs/grub.texi (Theme file format): Document new position format.
6631
fc157e53
VS
66322010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
6633
6634 * docs/grub.texi (Theme file format): Replace Box_slice_names.png with
6635 a table. Use @code instead of @verbatim.
6636
506e9a1c
CB
66372010-09-05 Colin D Bennett <colin@gibibit.com>
6638
6639 Gfxmenu documentation.
6640
6641 * docs/grub.texi (Theme file format): New chapter.
6642
f0aff67c
SJ
66432010-09-05 Szymon Janc <szymon@janc.net.pl>
6644
6645 * grub-core/Makefile.core.def (xzio): New module.
6646 * grub-core/io/xzio.c: New file.
6647 * grub-core/lib/xzembed/xz.h: New file (from xembed).
6648 * grub-core/lib/xzembed/xz_config.h: Likewise.
6649 * grub-core/lib/xzembed/xz_dec_bcj.c: Likewise.
6650 * grub-core/lib/xzembed/xz_dec_lzma2.c: Likewise.
6651 * grub-core/lib/xzembed/xz_dec_stream.c: Likewise.
6652 * grub-core/lib/xzembed/xz_lzma2.h: Likewise.
6653 * grub-core/lib/xzembed/xz_private.h: Likewise.
6654 * grub-core/lib/xzembed/xz_stream.h: Likewise.
6655 * include/grub/file.h (grub_file_filter_id): New compression filter
6656 GRUB_FILE_FILTER_XZIO.
6657
82a85062
VS
66582010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
6659
6660 * include/grub/file.h (GRUB_FILE_SIZE_UNKNOWN): New definition.
6661 * grub-core/disk/loopback.c (grub_loopback_open): Handle unknown file
6662 size.
6663
3579415d
VS
66642010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
6665
6666 * include/grub/err.h (grub_err_t): Replace GRUB_ERR_BAD_GZIP_DATA with
6667 GRUB_ERR_BAD_COMPRESSED_DATA. All users updated.
6668
5124ae6d
VS
66692010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
6670
6671 Uncompressed checksum support.
6672
6673 * grub-core/commands/hashsum.c (options): Add option --uncompress.
6674 (check_list): New parameter uncompress.
6675 (grub_cmd_hashsum): Handle --uncompress.
6676
9aadb3d1
VS
66772010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
6678
6679 Reintroduce testload.
6680
6681 * grub-core/commands/minicmd.c (grub_rescue_cmd_testload) [0]: Moved
6682 from here ...
6683 * grub-core/commands/testload.c (grub_cmd_testload): ... here.
6684 (GRUB_MOD_INIT): New function.
6685 (GRUB_MOD_FINI): Likewise.
6686 * grub-core/Makefile.core.def (testload): New module.
6687
a17792c3
SJ
66882010-09-05 Szymon Janc <szymon@janc.net.pl>
6689
6690 * grub-core/lib/posix_wrap/sys/types.h (bool): Transform into an enum.
6691 (uint8_t): New type.
6692 (uint16_t): Likewise.
6693 (uint32_t): Likewise.
6694 (uint64_t): Likewise.
6695
b81e40a3
SJ
66962010-09-05 Szymon Janc <szymon@janc.net.pl>
6697
6698 * include/grub/crypto.h (GRUB_MD_CRC32): New definition.
6699
fc2ef117
VS
67002010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
6701
6702 * grub-core/io/gzio.c (grub_gzio_open): Removed "transparent" parameter.
6703 Made static.
6704 (grub_gzfile_open): Removed. All users updated.
6705 (GRUB_MOD_INIT): New function.
6706 (GRUB_MOD_FINI): Likewise.
6707 * grub-core/kern/file.c (grub_file_filters_all): New variable.
6708 (grub_file_filters_enabled): Likewise.
6709 (grub_file_open): Handle filters.
6710 * grub-core/loader/i386/bsd.c (GRUB_MOD_INIT): Load gzio.
6711 * grub-core/normal/main.c (GRUB_MOD_INIT): Likewise.
6712 * include/grub/file.h (grub_file_filter_id_t): New type.
6713 (grub_file_filter_t): Likewise.
6714 (grub_file_filters_all): New extern variable.
6715 (grub_file_filters_enabled): Likewise.
6716 (grub_file_filter_register): New inline function.
6717 (grub_file_filter_unregister): Likewise.
6718 (grub_file_filter_disable): Likewise.
6719 (grub_file_filter_disable_compression): Likewise.
6720 * include/grub/gzio.h: Removed.
6721
35ee15e0
BC
67222010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
6723
6724 Filename expansion support for wildcards in GRUB script.
6725
6726 * tests/grub_script_expansion.in: New test.
6727 * Makefile.util.def: Rule for new test.
6728
6729 * grub-core/commands/wildcard.c: New file, implements filename
6730 expansion support for GRUB script.
6731 * grub-core/Makefile.core.def: Rule update for regexp.mod.
6732 * grub-core/script/argv.c: Cosmetic changes.
6733 * grub-core/script/execute.c (grub_script_arglist_to_argv):
6734 Refactored to perform wildcard expansion on arguments.
6735 * include/grub/script_sh.h (grub_script_wildcard_translator): New
6736 struct.
6737
6738 * tests/util/grub-shell.in: Fix quoting for read input.
6739
5f0c4aca
BC
67402010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
6741
6742 Support for updating environment variables with matched substrings
6743 of regexp.
6744
6745 * tests/grub_cmd_regexp.in: New test.
6746 * Makefile.util.def: Rule for new test.
6747
6748 * grub-core/commands/regexp.c: New option -s to update environment
6749 variables with regexp matches.
6750
3759a35f
SJ
67512010-09-04 Szymon Janc <szymon@janc.net.pl>
6752
6753 * include/grub/file.h (grub_file): New member not_easly_seekable.
6754 (grub_file_seekable): New inline function.
6755 * grub-core/io/gzio.c (test_header): Don't test end magic if file isn't
6756 easily seekable.
6757 (grub_gzio_open): Set not_easly_seekable.
6758 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_open): Set not_easily_seekable.
6759 * grub-core/io/bufio.c (grub_bufio_open): Propagate not_easily_seekable.
6760
ed8c6dec
BC
67612010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
6762
6763 Support for options to appear multiple times on cmdline.
6764
6765 * include/grub/lib/arg.h (grub_arg_list_alloc): New prototype.
6766 * grub-core/commands/extcmd.c: Support for repeatable option.
6767 * grub-core/lib/arg.c (grub_arg_list_alloc): New function for
6768 repeatable option support.
6769
6770 Refactor menuentry into a regular command.
6771
6772 * grub-core/commands/menuentry.c: New file, menuentry command
6773 implementation.
6774 * grub-core/Makefile.core.def: Rule update for normal.mod.
6775 * grub-core/normal/main.c: Moved menuentry creation to
6776 grub-core/commands/menuentry.c.
6777 * grub-core/normal/menu.c (grub_menu_execute_entry): Removed.
6778 (grub_menu_execute_entry_real): Removed.
6779 * grub-core/script/execute.c (grub_script_execute_sourcecode): New
6780 function.
6781 (grub_script_execute_menuentry): Removed.
6782 * grub-core/script/parser.y (menuentry): Removed.
6783 * grub-core/script/script.c (grub_script_create_cmdmenu): Removed.
6784 * grub-core/script/yylex.l (menuentry): Removed.
6785 * include/grub/menu.h (grub_menu_init): New prototype.
6786 (grub_menu_fini): New prototype.
6787 * include/grub/normal.h (grub_normal_add_menu_entry): Removed.
6788 * include/grub/script_sh.h (grub_script_cmd_menuentry): Removed.
6789 (grub_script_execute_sourcecode): New prototype.
6790
dacd0cf0
BC
67912010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
6792
6793 "return" command for GRUB script functions.
6794
6795 * tests/grub_script_return.in: New test.
6796 * Makefile.util.def: Rules for new test.
6797
6798 * grub-core/script/execute.c (grub_script_return): New function.
6799 * grub-core/script/main.c: Register/unregister return commaond.
6800 * include/grub/script_sh.h (grub_script_return): New prototype.
6801
52e72f9d
BC
68022010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
6803
6804 "setparams" command to update positional parameters.
6805
6806 * tests/grub_script_setparams.in: New test.
6807 * Makefile.util.def: Rules for new test.
6808
6809 * grub-core/script/argv.c (grub_script_argv_make): New function.
6810 * grub-core/script/execute.c (replace_scope): New function.
6811 (grub_script_setparams): New function.
6812 * grub-core/script/lexer.c: Remove unused variables.
6813 * grub-core/script/main.c: Register/unregister setparams command.
6814 * include/grub/script_sh.h (grub_script_argv_make): New prototype.
6815 (grub_script_setparams): New prototype.
6816
25b60c91
BC
68172010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
6818
6819 * grub-core/normal/completion.c (grub_normal_do_completion): Fix
6820 grub_free order.
6821
37e7bf68
BC
68222010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
6823
6824 Support for passing block of commands as an argument to extcmds.
6825
6826 * Makefile.util.def: Rules for new test.
6827 * tests/grub_script_blockarg.in: New test.
6828 * grub-core/tests/test_blockarg.c: New file, block argument
6829 command used in the test.
6830
6831 * include/grub/extcmd.h (grub_extcmd_context): New struct.
6832 (grub_register_extcmd_prio): New function prototype.
6833 (grub_extcmd_dispatcher): New function prototype.
6834 * include/grub/command.h (GRUB_COMMAND_FLAG_BLOCKS): New command
6835 type.
6836 * include/grub/script_sh.h (struct grub_script): New members
6837 `children', `next_siblings' and `refcnt' for block arguments and
6838 reference counting.
6839 (GRUB_SCRIPT_ARG_TYPE_BLOCK): New argument type.
6840 (grub_script_arg): New member `script' for block argument.
6841 (grub_script_argv): New member `script' for block argument.
6842 (grub_parser_param): New member `scripts' for block argument.
6843 (grub_script_mem_free): New extern function prototype.
6844 (grub_script_ref): New function prototype.
6845 (grub_script_unref): New function prototype.
6846
6847 * grub-core/normal/dyncmd.c (grub_dyncmd_dispatcher): Moved to
6848 extcmd form to support block arguments.
6849 * grub-core/script/argv.c: Block arguments support.
6850 * grub-core/script/execute.c: Likewise.
6851 * grub-core/script/lexer.c: Likewise.
6852 * grub-core/script/main.c: Likewise.
6853 * grub-core/script/script.c: Likewise.
6854 * grub-core/script/parser.y: Likewise. New `block' and `block0'
6855 non-terminals.
6856
6857 * grub-core/commands/acpi.c: Update extcmd implementations with
6858 grub_extcmd_context_t.
6859 * grub-core/commands/cat.c: Likewise.
6860 * grub-core/commands/echo.c: Likewise.
6861 * grub-core/commands/extcmd.c: Likewise.
6862 * grub-core/commands/hashsum.c: Likewise.
6863 * grub-core/commands/hdparm.c: Likewise.
6864 * grub-core/commands/help.c: Likewise.
6865 * grub-core/commands/hexdump.c: Likewise.
6866 * grub-core/commands/i386/cpuid.c: Likewise.
6867 * grub-core/commands/i386/pc/drivemap.c: Likewise.
6868 * grub-core/commands/i386/pc/halt.c: Likewise.
6869 * grub-core/commands/i386/pc/sendkey.c: Likewise.
6870 * grub-core/commands/iorw.c: Likewise.
6871 * grub-core/commands/keystatus.c: Likewise.
6872 * grub-core/commands/loadenv.c: Likewise.
6873 * grub-core/commands/ls.c: Likewise.
6874 * grub-core/commands/lspci.c: Likewise.
6875 * grub-core/commands/memrw.c: Likewise.
6876 * grub-core/commands/probe.c: Likewise.
6877 * grub-core/commands/search_wrap.c: Likewise.
6878 * grub-core/commands/setpci.c: Likewise.
6879 * grub-core/commands/sleep.c: Likewise.
6880 * grub-core/disk/loopback.c: Likewise.
6881 * grub-core/hello/hello.c: Likewise.
6882 * grub-core/loader/i386/bsd.c: Likewise.
6883 * grub-core/loader/xnu.c: Likewise.
6884 * grub-core/term/gfxterm.c: Likewise.
6885 * grub-core/term/serial.c: Likewise.
6886 * grub-core/tests/lib/functional_test.c: Likewise.
6887
888d1500
BC
68882010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
6889
6890 Multi-line quoted strings support.
6891
6892 * grub-core/script/lexer.c (append_newline): Removed.
6893 (grub_script_lexer_yywrap): Refactored.
6894 (grub_script_lexer_init): Refactored.
6895 * grub-core/script/yylex.l (yywrap): New function.
6896 (grub_lexer_resplit): New function.
6897 (grub_lexer_unput): New function.
6898 * include/grub/script_sh.h (grub_lexer_param): New members, unput
6899 and resplit.
6900 * tests/grub_script_echo1.in: Added few more testcases.
6901
dda060dd
VS
69022010-09-04 Vladimir Serbinenko <phcoder@gmail.com>
6903
6904 * grub-core/kern/misc.c: Don't add abort alias in utils.
6905 Reported by: echoline.
6906
6556eba9
BC
69072010-09-03 BVK Chaitanya <bvk.groups@gmail.com>
6908
6909 Add missing files into "make dist" tarball for other platforms.
6910
6911 * gentpl.py (script): Use dist_noinst_DATA instead of EXTRA_DIST.
6912 * conf/Makefile.common (dist_noinst_DATA): New variable.
6913 * conf/Makefile.extra-dist: Added missing make dist files.
6914 * grub-core/Makefile.core.def: Likewise.
6915
c8e7bf5f
VS
69162010-09-03 Vladimir Serbinenko <phcoder@gmail.com>
6917
6918 Compress grub_prefix.
6919
6920 * grub-core/boot/i386/pc/lnxboot.S: Use
6921 GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE.
6922 * grub-core/kern/i386/pc/startup.S: Move grub_prefix to compressed part.
6923 * include/grub/offsets.h: Rename GRUB_MACHINE_DATA_END to
6924 GRUB_MACHINE_PREFIX_END. All users updated.
6925 (GRUB_KERNEL_I386_PC_PREFIX): Set to GRUB_KERNEL_I386_PC_RAW_SIZE.
6926 (GRUB_KERNEL_I386_PC_PREFIX_END): Set to GRUB_KERNEL_I386_PC_PREFIX
6927 + 0x40.
6928 (GRUB_KERNEL_I386_PC_RAW_SIZE): Decrease.
6929 * util/grub-mkimage.c (image_target_desc): Change data_end to
6930 prefix_end. All users updated.
6931
a7c00cdb
VS
69322010-09-03 Vladimir Serbinenko <phcoder@gmail.com>
6933
6934 * grub-core/loader/i386/bsd.c (grub_freebsd_boot): Set %ebp to sane
6935 value.
6936 (grub_openbsd_boot): Likewise.
6937 (grub_netbsd_boot): Likewise.
6938 * grub-core/loader/i386/xnu.c (grub_xnu_boot_resume): Likewise.
6939 (grub_xnu_boot): Likewise.
6940
9f915872
VS
69412010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
6942
6943 * configure.ac: Clean LIBS variable after tests.
6944
efa1bee7
CW
69452010-09-02 Colin Watson <cjwatson@ubuntu.com>
6946
6947 * INSTALL: Document that libdevmapper needs to be 1.02.34 or later.
6948
61d720e5
VS
69492010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
6950
6951 * configure.ac: Check for dm_log_with_errno_init in libdevmapper and
6952 echo if libdevmapper will be used.
6953
ef8e0ec8
IT
69542010-09-02 Ian Turner <Ian.Turner@deshaw.com>
6955
6956 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_read): Keep the blocksize
6957 constant for the same file.
6958
03e261d8
VS
69592010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
6960
6961 * grub-core/kern/i386/multiboot_mmap.c: Remove leftover include.
6962
c2a4eba6
CW
69632010-09-02 Colin Watson <cjwatson@ubuntu.com>
6964
6965 * .bzrignore: Add *.pp, **/.dirstamp, grub-core/*.module, and
6966 grub-core/*.pp.
6967
9056cbf3
CW
69682010-09-02 Colin Watson <cjwatson@ubuntu.com>
6969
6970 Zero %ebp and %edi when entering Linux's 32-bit entry point, as
6971 required by the boot protocol.
6972
6973 * include/grub/i386/relocator.h (struct grub_relocator32_state): Add
6974 ebp and edi members.
6975 * grub-core/lib/i386/relocator.c (grub_relocator_boot): Handle
6976 state.ebp and state.edi.
6977 * grub-core/lib/i386/relocator32.S (grub_relocator32_start): Set
6978 %ebp and %edi according to grub_relocator32_ebp and
6979 grub_relocator32_edi respectively.
6980 * grub-core/loader/i386/linux.c (grub_linux_boot): Zero state.ebp
6981 and state.edi.
6982
529cc99a
VS
69832010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
6984
6985 Add i386-pc-pxe image target.
6986
6987 * util/grub-mkimage.c (image_target_desc): New enum value
6988 IMAGE_I386_PC_PXE.
6989 (image_targets): New target i386-pc-pxe.
6990 (generate_image): Handle i386-pc-pxe image.
6991
9a093920
VS
69922010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
6993
6994 Fix grub_pxe_scan.
6995
6996 * grub-core/fs/i386/pc/pxe.c (grub_pxe_pxenv): Put correct type bangpxe.
6997 (grub_pxe_scan): Fix types and pxe_rm_entry computation.
6998 All users updated.
6999 * include/grub/i386/pc/pxe.h (grub_pxe_bangpxe): New struct.
7000 (grub_pxe_pxenv): Correct type.
7001
f9cefc4e
CW
70022010-09-01 Colin Watson <cjwatson@ubuntu.com>
7003
7004 * NEWS: Document most of the important changes since 1.98.
7005
4066f57f
CW
70062010-09-01 Colin Watson <cjwatson@ubuntu.com>
7007
7008 * util/grub-mkrescue.in (usage): Tidy up usage output (and hence
7009 generated manual page) a little.
7010
da2891f9
CW
70112010-09-01 Colin Watson <cjwatson@ubuntu.com>
7012
7013 * docs/grub.texi: Add myself as an author.
7014
ad717fae
VS
70152010-09-01 Vladimir Serbinenko <phcoder@gmail.com>
7016
7017 * Makefile.util.def (libgrub.a): Add missing sunpc.
7018 Reported by: Seth Goldberg.
7019
eefe8abd
VS
70202010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
7021
7022 Interrupt wrapping and code simplifications.
7023
9494ef9a
VS
7024 * Makefile.util.def (grub-mkrescue): Use x86 tg instead of
7025 x86_noieee1275 which are functionaly equivalent in this case.
7026 (grub-install): Make source on each platform explicit. Enable on
7027 all noemu.
7028 * gentpl.py (x86_efi_pc): Removed group.
7029 (x86_noefi): Likewise.
7030 (i386_noefi): Likewise.
7031 (x86_noieee1275): Likewise.
7032 (i386_noieee1275): Likewise.
7033 (i386_noefi_noieee1275): Likewise.
7034 (i386_pc_qemu_coreboot): Likewise.
7035 (i386_coreboot_multiboot): Likewise.
7036 (i386_pc_coreboot_multiboot_qemu): Likewise.
7037 (x86_noefi_mips): Likewise.
7038 (noieee1275): Likewise.
7039 (ieee1275_mips): Likewise.
7040 (noemu_noieee1275): Likewise.
7041 (cmos): New group.
7042 (usb): Likewise.
7043 (videoinkernel): Likewise.
7044 (videomodules): Likewise.
eefe8abd 7045 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Remove
9494ef9a
VS
7046 include/grub/elf.h, include/grub/elfload.h, include/grub/net.h,
7047 include/grub/reader.h, include/grub/symbol.h, include/grub/types.h,
7048 include/grub/loader.h, include/grub/msdos_partition.h,
7049 include/grub/machine/biosdisk.h, include/grub/machine/boot.h,
7050 include/grub/machine/console.h, include/grub/machine/vga.h,
7051 include/grub/machine/vbe.h, include/grub/machine/init.h,
7052 include/grub/machine/kernel.h, include/grub/cpu/time.h,
7053 include/grub/cpu/types.h, include/grub/gzio.h and include/grub/menu.h
eefe8abd 7054 (KERNEL_HEADER_FILES) [i386-pc]: Add include/grub/machine/int.h.
9494ef9a
VS
7055 (KERNEL_HEADER_FILES) [i386-ieee1275]: Add include/grub/i386/pit.h
7056 * grub-core/Makefile.core.def (kernel): Explicit the source for
7057 startup. Explicit the platforms using kern/generic/rtc_get_time_ms.c.
7058 Split ieee1275_mips. Remove kern/i386/halt.c. Remove kern/i386/misc.S.
7059 Enable kern/i386/pit.c on all x86. Remove kern/i386/ieee1275/init.c.
7060 Use videoinkernel tag.
7061 (usb): Enable on all usb.
7062 (usbserial_common): Likewise.
7063 (usbserial_pl2303): Likewise.
7064 (usbserial_ftdi): Likewise.
7065 (uhci): Enable on all x86.
7066 (ohci): Enable on all pci.
7067 (cmostest): Enable on all CMOS.
7068 (acpi): Include commands/acpi.c on all platforms.
7069 (halt): Add relevant lib/*/halt.c.
7070 (hdparm): Enable on all pci.
7071 (lspci): Likewise.
7072 (usbtest): Enable on all usb.
7073 (ata): Enable on all pci.
7074 (ata_pthru): Likewise.
7075 (usbms): Enable on all usb.
7076 (usb_keyboard): Likewise.
7077 (font): Use tag videomodules.
7078 (bufio): Likewise.
7079 (datetime): Use tag cmos. Enable on all noemu.
7080 (mmap): Use tags common and x86.
7081 (gfxterm): Use tag videomodules.
7082 (bitmap): Likewise.
7083 (bitmap_scale): Likewise.
7084 (video_fb): Likewise.
7085 (video): Likewise.
7086 * grub-core/bus/usb/ohci.c (grub_ohci_td): Make link_td a pointer and
7087 adjust padding accordingly. All users updated.
7088 (grub_ohci_transaction): Fix bad format specification.
7089 (GRUB_MOD_INIT): Add asserts for struct size.
7090 * grub-core/bus/usb/uhci.c (grub_uhci_pci_iter): Add explicit casts.
7091 (grub_alloc_td): Likewise.
7092 (grub_free_queue): Likewise.
7093 (grub_uhci_transfer): Likewise.
7094 (grub_uhci_transaction): Fix bad format specification.
7095 * grub-core/bus/usb/usbtrans.c (grub_usb_control_msg): Likewise.
7096 (grub_usb_bulk_readwrite): Likewise.
7097 * grub-core/kern/i386/misc.S (grub_stop): Moved from here ...
7098 * grub-core/commands/i386/pc/halt.c (stop): ...here. Transformed into C.
7099 Made static.
7100 * grub-core/lib/i386/halt.c (stop): ... and here. Transformed into C.
7101 Made static.
7102 * grub-core/kern/i386/pc/startup.S (grub_halt): Moved from here ...
7103 * grub-core/commands/i386/pc/halt.c (grub_halt): ...here.
7104 Transformed into C.
7105 * grub-core/kern/i386/pc/startup.S (grub_biosdisk_rw_int13_extensions):
7106 Moved from here ...
7107 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_rw_int13_extensions):
7108 ... here. Transformed into C. Made static.
7109 * grub-core/kern/i386/pc/startup.S (grub_biosdisk_rw_standard):
7110 Moved from here ...
7111 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_rw_standard):
7112 ... here. Transformed into C. Made static.
7113 * grub-core/kern/i386/pc/startup.S
7114 (grub_biosdisk_check_int13_extensions): Moved from here ...
7115 * grub-core/disk/i386/pc/biosdisk.c
7116 (grub_biosdisk_check_int13_extensions): ... here. Transformed into C.
7117 Made static.
7118 * grub-core/kern/i386/pc/startup.S
7119 (grub_biosdisk_get_cdinfo_int13_extensions): Moved from here ...
7120 * grub-core/disk/i386/pc/biosdisk.c
7121 (grub_biosdisk_get_cdinfo_int13_extensions): ... here.
7122 Transformed into C. Made static.
7123 * grub-core/kern/i386/pc/startup.S
7124 (grub_biosdisk_get_diskinfo_int13_extensions): Moved from here ...
7125 * grub-core/disk/i386/pc/biosdisk.c
7126 (grub_biosdisk_get_diskinfo_int13_extensions): ... here.
7127 Transformed into C. Made static.
7128 * grub-core/kern/i386/pc/startup.S
7129 (grub_biosdisk_get_diskinfo_standard): Moved from here ...
7130 * grub-core/disk/i386/pc/biosdisk.c
7131 (grub_biosdisk_get_diskinfo_standard): ... here.
7132 Transformed into C. Made static.
7133 * grub-core/kern/i386/pc/startup.S
7134 (grub_biosdisk_get_num_floppies): Moved from here ...
7135 * grub-core/disk/i386/pc/biosdisk.c
7136 (grub_biosdisk_get_num_floppies): ... here.
7137 Transformed into C. Made static.
7138 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_get_diskinfo_real):
7139 New function.
7140 * grub-core/kern/i386/pc/startup.S (grub_pxe_scan): Moved from here ...
7141 * grub-core/fs/i386/pc/pxe.c (grub_pxe_scan): ... here.
7142 Transformed into C. Made static.
7143 * grub-core/kern/i386/pc/startup.S (grub_rm_entry): Moved from here ...
7144 * grub-core/fs/i386/pc/pxe.c (grub_rm_entry): ... here.
7145 Transformed into C. Made static.
7146 * grub-core/kern/i386/ieee1275/init.c: Removed.
7147 * grub-core/kern/i386/misc.S: Likewise.
7148 * grub-core/kern/i386/pc/startup.S (grub_get_memsize):
7149 Splitted from here ...
7150 * grub-core/kern/i386/pc/init.c (grub_get_conv_memsize): ... here.
7151 Transformed into C. Made static. All users updated.
7152 * grub-core/kern/i386/pc/mmap.c (grub_get_ext_memsize): ... and here.
7153 Transformed into C. Made static. All users updated.
7154 * grub-core/kern/i386/pc/startup.S (grub_get_eisa_mmap):
7155 Moved from here...
7156 * grub-core/kern/i386/pc/mmap.c (grub_get_eisa_mmap): ... here.
7157 Transformed into C. Made static. All users updated.
7158 * grub-core/kern/i386/pc/startup.S (grub_get_mmap_entry):
7159 Moved from here...
7160 * grub-core/kern/i386/pc/mmap.c (grub_get_mmap_entry): ... here.
7161 Transformed into C. Made static. All users updated.
7162 * grub-core/kern/i386/pc/startup.S (grub_stop_floppy):
7163 Removed (replaced by C version).
7164 * grub-core/kern/i386/pc/startup.S (grub_vga_set_mode):
7165 Moved from here...
7166 * grub-core/video/i386/pc/vga.c (grub_vga_set_mode): ...here.
7167 Transformed into C. Made static.
7168 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_controller_info):
7169 Moved from here...
7170 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_controller_info):
7171 ... here. Transformed into C.
7172 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_mode_info):
7173 Moved from here...
7174 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_mode_info):
7175 ... here. Transformed into C.
7176 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_mode):
7177 Moved from here...
7178 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_mode):
7179 ... here. Transformed into C. Made static.
7180 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_mode):
7181 Moved from here...
7182 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_mode):
7183 ... here. Transformed into C.
21ed554b
VS
7184 * grub-core/kern/i386/pc/startup.S
7185 (grub_vbe_bios_getset_dac_palette_width):Moved from here...
7186 * grub-core/video/i386/pc/vbe.c
7187 (grub_vbe_bios_getset_dac_palette_width):... here. Transformed into C.
9494ef9a
VS
7188 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_memory_window):
7189 Moved from here...
7190 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_memory_window):
7191 ... here. Transformed into C.
7192 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_memory_window):
7193 Moved from here...
7194 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_memory_window):
7195 ... here. Transformed into C.
7196 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_scanline_length):
7197 Moved from here...
7198 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_scanline_length):
7199 ... here. Transformed into C.
7200 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_scanline_length):
7201 Moved from here...
7202 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_scanline_length):
7203 ... here. Transformed into C.
7204 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_display_start):
7205 Moved from here...
7206 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_display_start):
7207 ... here. Transformed into C. Made static.
7208 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_display_start):
7209 Moved from here...
7210 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_display_start):
7211 ... here. Transformed into C. Made static.
7212 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_palette_data):
7213 Moved from here...
7214 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_palette_data):
7215 ... here. Transformed into C. Made static.
7216 * grub-core/kern/i386/pc/startup.S (grub_pxe_call): Receive
7217 pxe_rm_entry as third argument.
7218 (grub_bios_interrupt): New function.
7219 * grub-core/kern/i386/qemu/mmap.c: Remove useless include.
7220 * grub-core/kern/i386/qemu/startup.S (codestart): Do cli;hlt instead
7221 of calling grub_stop.
7222 * grub-core/kern/efi/efi.c (grub_halt): Moved from here ...
7223 * grub-core/lib/efi/halt.c (grub_halt): ...here.
7224 * grub-core/kern/emu/main.c (grub_halt): Moved from here ...
7225 * grub-core/lib/emu/halt.c (grub_halt): ... here.
7226 * grub-core/lib/i386/halt.c: Moved from here ...
7227 * grub-core/lib/i386/halt.c: ... here.
7228 * grub-core/kern/ieee1275/openfw.c (grub_halt): Moved from here ...
7229 * grub-core/lib/ieee1275/halt.c (grub_halt): ... here.
7230 * grub-core/loader/i386/pc/linux.c (grub_linux16_boot): Call
7231 grub_stop_floppy.
7232 * grub-core/loader/i386/xnu.c (guessfsb) [IEEE1275]: Enable.
7233 * include/grub/i386/coreboot/init.h: Removed.
7234 * include/grub/i386/multiboot/init.h: Likewise.
7235 * include/grub/i386/pc/biosdisk.h: Removed all function prototypes.
7236 * include/grub/i386/pc/init.h: Likewise except grub_gate_a20.
7237 * include/grub/i386/pc/int.h: New file.
7238 * include/grub/i386/pc/pxe.h (GRUB_PXE_SIGNATURE): New definition.
7239 (grub_pxe_scan): Removed.
7240 (grub_pxe_call): Update prototype.
7241 * include/grub/i386/pc/vbe.h: Removed EXPORT_FUNC and useless
7242 prototypes.
7243 * include/grub/i386/pc/vga.h (grub_vga_set_mode): Removed.
7244 * include/grub/i386/qemu/init.h: Removed.
7245 * include/grub/mips/yeeloong/kernel.h (grub_reboot): Add missing
7246 noreturn.
7247 (grub_halt): Likewise.
7248 * include/grub/misc.h (grub_halt): Removed EXPORT_FUNC.
7249 (grub_reboot): Likewise.
7250 * grub-core/kern/i386/coreboot/init.c (grub_stop_floppy): Moved from here...
7251 * include/grub/i386/floppy.h (grub_stop_floppy): ...here. Inlined.
21ed554b
VS
7252 * grub-core/kern/i386/pc/startup.S (grub_hard_stop): Removed.
7253
215dd471
RM
72542010-08-30 Robert Millan <rmh@gnu.org>
7255
7256 * NEWS: Document addition of ZFS support in `grub-install' and
7257 `grub-mkconfig'.
7258
ebd65b82
BC
72592010-08-30 BVK Chaitanya <bvk.groups@gmail.com>
7260
7261 * conf/Makefile.common (CPPFLAGS_DEFAULT): Remove leading / from
7262 dprintf output.
7263
11721d19
VS
72642010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
7265
7266 Remove leftover embedding of font objects.
7267
7268 * include/grub/kernel.h (OBJ_TYPE_FONT): Removed.
7269 * util/grub-install.in (font): Removed.
7270 * util/grub-mkimage.c (generate_image): Remove font support. All users
7271 updated.
7272
37837d4e
VS
72732010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
7274
7275 Remove leftover embedding of font objects.
7276
7277 * include/grub/kernel.h (OBJ_TYPE_FONT): Removed.
7278 * util/grub-install.in (font): Removed.
7279 * util/grub-mkimage.c (generate_image): Remove font support. All users
7280 updated.
7281
b4c1aae0
VS
72822010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
7283
7284 * docs/grub.texi (Network): Fix reference to pxe_blksize.
e176a764 7285 Reported by: Ian Turner
b4c1aae0 7286
8920a08d
VS
72872010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
7288
7289 * grub-core/normal/menu.c (grub_wait_after_message): Add a 10 second
7290 timeout to avoid indefinite boot stalling.
7291
f21db033
VS
72922010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
7293
7294 * grub-core/normal/color.c (grub_env_write_color_normal): Fix a warning.
7295 (grub_env_write_color_highlight): Likewise.
7296
9a9de209
VS
72972010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
7298
7299 * grub-core/normal/term.c (print_more): Return to normal and not
7300 to standard state after printing "---MORE---".
7301
3dca01d7
VS
73022010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
7303
7304 * grub-core/term/i386/vga_common.c (grub_console_setcolorstate):
7305 Mask out the bit 0x80 since it has other meaning that specifiing color.
7306
0b986c40
VS
73072010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
7308
7309 New relocator. Allows for more kernel support and more straightforward
7310 loader writing.
7311
7312 * Makefile.am (BOOTTARGET): New variable.
7313 (QEMU32): Likewise.
7314 (linux.init.x86_64): New target.
7315 (linux.init.i386): Likewise.
7316 (multiboot.elf): Likewise.
7317 (kfreebsd.elf): Likewise.
7318 (kfreebsd.aout): Likewise.
7319 (pc-chainloader.elf): Likewise.
7320 (pc-chainloader.bin): Likewise.
7321 (ntldr.elf): Likewise.
7322 (ntldr.bin): Likewise.
7323 (multiboot2.elf): Likewise.
7324 (kfreebsd.init.x86_64): Likewise.
7325 (kfreebsd.init.i386): Likewise.
7326 (knetbsd.init.i386): Likewise.
7327 (kopenbsd.init.i386): Likewise.
7328 (knetbsd.init.x86_64): Likewise.
7329 (kopenbsd.init.x86_64): Likewise.
7330 (linux-initramfs.i386): Likewise.
7331 (linux-initramfs.x86_64): Likewise.
7332 (kfreebsd-mfsroot.i386.img): Likewise.
7333 (knetbsd.image.i386): Likewise.
7334 (kopenbsd.image.i386): Likewise.
7335 (kopenbsd.image.x86_64): Likewise.
7336 (knetbsd.miniroot-image.i386.img): Likewise.
7337 (kfreebsd-mfsroot.x86_64.img): Likewise.
7338 (knetbsd.image.x86_64): Likewise.
7339 (knetbsd.miniroot-image.x86_64.img): Likewise.
7340 (kfreebsd-mfsroot.i386.gz): Likewise.
7341 (bootcheck-kfreebsd-i386): Likewise.
7342 (kfreebsd-mfsroot.x86_64.gz): Likewise.
7343 (bootcheck-kfreebsd-x86_64): Likewise.
7344 (knetbsd.miniroot-image.i386.gz): Likewise.
7345 (bootcheck-knetbsd-i386): Likewise.
7346 (bootcheck-kopenbsd-i386): Likewise.
7347 (bootcheck-kopenbsd-x86_64): Likewise.
7348 (knetbsd.miniroot-image.x86_64.gz): Likewise.
7349 (bootcheck-knetbsd-x86_64): Likewise.
7350 (bootcheck-linux-i386): Likewise.
7351 (bootcheck-linux-x86_64): Likewise.
7352 (bootcheck-linux16-i386): Likewise.
7353 (bootcheck-linux16-x86_64): Likewise.
7354 (bootcheck-multiboot): Likewise.
7355 (bootcheck-multiboot2): Likewise.
7356 (bootcheck-kfreebsd-aout): Likewise.
7357 (bootcheck-pc-chainloader): Likewise.
7358 (bootcheck-ntldr): Likewise.
7359 (CLEANFILES): Add new targets.
7360 (BOOTCHECKS): New variable.
7361 (.PHONY): Add bootchecks.
7362 (SUCCESSFUL_BOOT_STRING): New variable.
7363 (BOOTCHECK_TIMEOUT): Likewise.
7364 (bootcheck): New target
7365 * Makefile.util.def (grub-mkrescue): Enable on i386-multiboot.
7366 * configure.ac: Correct efiemu excuse.
7367 * docs/grub.texi (Supported kernels): New chapter.
7368 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add
7369 include/grub/mm_private.h. Simplify inclusion of
7370 include/grub/boot.h, include/grub/loader.h
7371 and include/grub/msdos_partition.h
7372 (KERNEL_HEADER_FILES) [i386_coreboot]:
7373 Remove include/grub/machine/loader.h. Add include/grub/i386/pit.h.
7374 (KERNEL_HEADER_FILES) [i386_multiboot]: Likewise.
7375 (KERNEL_HEADER_FILES) [i386_qemu]: Likewise.
7376 (KERNEL_HEADER_FILES) [i386_ieee1275]: Remove
7377 include/grub/machine/loader.h.
7378 (KERNEL_HEADER_FILES) [x86_64-efi]: Likewise.
7379 * grub-core/Makefile.core.def (kernel): Remove kern/i386/loader.S from
7380 extra_dist.
7381 (pci.mod): Enable on i386-multiboot.
7382 (acpi.mod): Enable on i386-multiboot and i386-coreboot.
7383 (efiemu.mod): Enable on i386-coreboot, i386-ieee1275, i386-multiboot and
7384 i386-qemu.
7385 (relocator.mod): Rewritten.
7386 (aout.mod): Enable on all x86.
7387 (bsd.mod): Likewise.
7388 (ntldr.mod): New module.
7389 (linux.mod): Use loader/i386/linux.c on all x86.
7390 (xnu.mod): Enable on all x86.
7391 (vga_text.mod): disable on EFI and QEMU.
7392 * grub-core/efiemu/i386/coredetect.c: Remove useless include.
7393 * grub-core/efiemu/i386/pc/cfgtables.c: Likewise.
7394 * grub-core/efiemu/loadcore.c: Likewise.
7395 * grub-core/efiemu/main.c: Likewise.
7396 (grub_efiemu_exit_boot_services): Removed.
7397 (grub_efiemu_finish_boot_services): Likewise.
7398 * grub-core/efiemu/mm.c (grub_efiemu_finish_boot_services): New
7399 function.
7400 * grub-core/efiemu/i386/nocfgtables.c: New file.
7401 * grub-core/kern/dl.c (grub_dl_unload_all): Removed.
7402 * grub-core/kern/efi/efi.c (grub_efi_exit_boot_services): Removed.
7403 (grub_efi_finish_boot_services): Moved from here ...
7404 * grub-core/kern/efi/mm.c (grub_efi_finish_boot_services): ...here.
7405 Fille finish memory map and related data.
7406 (finish_mmap_buf): New variable.
7407 (grub_efi_uintn_t finish_mmap_size): Likewise.
7408 (grub_efi_uintn_t finish_key): Likewise.
7409 (grub_efi_uintn_t finish_desc_size): Likewise.
7410 (grub_efi_uint32_t finish_desc_version): Likewise.
7411 (grub_efi_is_finished): Likewise.
7412 (grub_efi_get_memory_map): Use saved memory map if EFI is already
7413 finished.
7414 * grub-core/kern/elf.c (grub_elf32_phdr_iterate): Make global.
7415 (grub_elf64_phdr_iterate): Likewise.
7416 * grub-core/kern/i386/coreboot/init.c (grub_os_area_addr): Removed.
7417 (grub_os_area_size): Likewise.
7418 (grub_machine_init): Don't reserve os area.
7419 * grub-core/kern/i386/coreboot/startup.S: Don't include loader.S.
7420 * grub-core/kern/i386/ieee1275/startup.S: Likewise.
7421 * grub-core/kern/i386/loader.S: Removed.
7422 * grub-core/kern/i386/pc/init.c (grub_os_area_addr): Removed.
7423 (grub_os_area_size): Likewise.
7424 (grub_machine_init): Don't reserve os area.
7425 * grub-core/kern/i386/pc/startup.S (grub_chainloader_real_boot):
7426 Don't call grub_dl_unload_all.
7427 Don't include loader.S.
7428 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_iterate):
7429 Declare the memory after _end as available.
7430 * grub-core/kern/mm.c (GRUB_MM_FREE_MAGIC): Moved from here...
1935c077 7431 * include/grub/mm_private.h (GRUB_MM_FREE_MAGIC): ... here.
0b986c40 7432 (GRUB_MM_ALLOC_MAGIC): Moved from here...
1935c077
VS
7433 * include/grub/mm_private.h (GRUB_MM_ALLOC_MAGIC): ... here.
7434 * grub-core/kern/mm.c (grub_mm_header): Moved from here...
7435 * include/grub/mm_private.h (grub_mm_header): ... here.
7436 * grub-core/kern/mm.c (GRUB_MM_ALIGN): Moved from here...
7437 * include/grub/mm_private.h (GRUB_MM_ALIGN): ... here.
0b986c40
VS
7438 * grub-core/kern/mm.c (grub_mm_region): Moved from here ...
7439 (grub_mm_region): ..here. Removed addr. Added pre_size.
7440 All users updated.
7441 * grub-core/kern/mm.c (base): Renamed to ...
7442 (grub_mm_base): ... this. Made global.
7443 (grub_real_malloc): Alloc from end of region.
7444 (grub_memalign): Don't attempt to malloc if grub_mm_base is NULL.
7445 * grub-core/kern/powerpc/cache.S (grub_arch_sync_caches): Move to ...
7446 * grub-core/kern/powerpc/cache_flush.S: ... here.
7447 * grub-core/lib/efi/relocator.c: New file.
7448 * grub-core/lib/i386/relocator.c: Rewritten.
7449 * grub-core/lib/i386/relocator16.S: New file.
7450 * grub-core/lib/i386/relocator32.S: Likewise.
7451 * grub-core/lib/i386/relocator64.S: Likewise.
7452 * grub-core/lib/i386/relocator_asm.S: Rewritten.
7453 * grub-core/lib/i386/relocator_common.S: New file.
7454 * grub-core/lib/ieee1275/relocator.c: Likewise.
7455 * grub-core/lib/mips/relocator.c: Rewritten.
7456 * grub-core/lib/mips/relocator_asm.S: Renamed variables and minor
7457 stylistic adjustments.
7458 * grub-core/lib/powerpc/relocator.c: New file.
7459 * grub-core/lib/powerpc/relocator_asm.S: Likewise.
7460 * grub-core/lib/relocator.c: Rewritten.
7461 * grub-core/lib/x86_64/relocator_asm.S: New file.
7462 * grub-core/loader/aout.c (grub_aout_load): Make load_addr a void *.
7463 * grub-core/loader/i386/bsd.c (NETBSD_DEFAULT_VIDEO_MODE): New const.
7464 (bsd_tag): New struct.
7465 (tags): New variable.
7466 (tags_last): Likewise.
7467 (netbsd_module): New struct.
7468 (netbsd_mods): New variable.
7469 (netbsd_mods_last): Likewise.
7470 (openbsd_opts): New parameter "serial".
7471 (OPENBSD_SERIAL_ARG): New definition.
7472 (netbsd_opts): New parameter "serial".
7473 (NETBSD_SERIAL_ARG): New definition.
7474 (grub_freebsd_add_meta): Reorganised into ...
7475 (grub_bsd_add_meta): ...this. All users updated.
7476 (grub_freebsd_add_mmap): Reorganised into ...
7477 (generate_e820_mmap): ...this...
7478 (grub_bsd_add_mmap): ...and this. All users updated.
7479 (grub_freebsd_list_modules): Use tags.
7480 (grub_netbsd_add_meta_module): New function.
7481 (grub_netbsd_list_modules): Likewise.
7482 (grub_freebsd_boot): Use relocator and finish EFI.
7483 (grub_openbsd_boot): Likewise.
7484 (grub_netbsd_setup_video): New function.
7485 (grub_netbsd_add_modules): Likewise.
7486 (grub_netbsd_boot): Use grub_netbsd_add_modules, relocator, netbsd_tags
7487 and finish EFI.
7488 (grub_bsd_unload): Unload tags.
7489 (grub_bsd_load_aout): Use relocator.
7490 (grub_bsd_elf32_size_hook): New function.
7491 (grub_bsd_elf32_hook): Use relocator.
7492 (grub_bsd_elf64_size_hook): New function.
7493 (grub_bsd_elf64_hook): Use relocator.
7494 (grub_bsd_load_elf): Use relocator and call grub_openbsd_find_ramdisk.
7495 (grub_bsd_load): Zero-out openbsd_ramdisk.
7496 (grub_bsd_load): Use relocator.
7497 (grub_cmd_openbsd): Support serial.
7498 (grub_cmd_netbsd): Support modules.
7499 (grub_cmd_freebsd_module): Use relocator.
7500 (grub_netbsd_module_load): New function.
7501 (grub_cmd_netbsd_module): Likewise.
7502 (grub_cmd_openbsd_ramdisk): Likewise.
7503 (GRUB_MOD_INIT): Register knetbsd_module, knetbsd_module_elf and
7504 kopenbsd_ramdisk.
7505 (GRUB_MOD_FINI): Unregister new commands.
7506 * grub-core/loader/i386/bsdXX.c (load): Remove useless checks.
7507 (grub_freebsd_load_elfmodule_obj): Use relocator.
7508 (grub_freebsd_load_elfmodule): Likewise.
7509 (grub_freebsd_load_elf_meta): Likewise.
7510 (grub_netbsd_load_elf_meta): New function.
7511 (grub_openbsd_find_ramdisk): Likewise.
7512 * grub-core/loader/i386/bsd_helper.S: Removed.
7513 * grub-core/loader/i386/bsd_pagetable.c: Support relocator.
7514 * grub-core/loader/i386/bsd_trampoline.S: Removed.
7515 * grub-core/loader/i386/efi/linux.c: Likewise.
7516 * grub-core/loader/i386/ieee1275/linux.c: Likewise.
7517 * grub-core/loader/i386/linux.c (HAS_VGA_TEXT): New const.
7518 (DEFAULT_VIDEO_MODE): Likewise.
7519 (real_mode_target): New variable.
7520 (prot_mode_target): Likewise.
7521 (initrd_mem_target): Likewise.
7522 (relocator): Likewise.
7523 (efi_mmap_buf): Likewise.
7524 (efi_mmap_size): Likewise.
7525 (find_efi_mmap_size): Moved from grub-core/loader/i386/efi/linux.c.
7526 (free_pages): Use relocator.
7527 (allocate_pages): Account for efi_mmap and use relocator. Return error.
7528 (grub_linux_setup_video): Return error.
7529 (grub_linux_trampoline_start): Removed.
7530 (grub_linux_trampoline_end): Likewise.
7531 (grub_linux_boot): Use relocator and DEFAULT_VIDEO_MODE. Pass console
7532 andd video parameters depending on firmware.
7533 [GRUB_MACHINE_IEEE1275]: Pass OFW parameters.
7534 [GRUB_MACHINE_EFI]: Pass EFI parameters.
7535 (grub_cmd_linux) [GRUB_MACHINE_EFI]: Likewise.
7536 (grub_cmd_initrd): Use relocator.
7537 * grub-core/loader/i386/linux_trampoline.S: Removed.
7538 * grub-core/loader/i386/multiboot_mbi.c (elf_sec_num): New variable.
7539 (elf_sec_entsize): Likewise.
7540 (elf_sec_shstrndx): Likewise.
7541 (elf_sections): Likewise.
7542 (grub_multiboot_load): Use relocator.
7543 (grub_multiboot_get_mbi_size): Account for sections.
7544 (grub_multiboot_make_mbi): Use relocator and support sections.
7545 (grub_multiboot_add_elfsyms): New function.
7546 (grub_multiboot_free_mbi): Free sections.
7547 * grub-core/loader/i386/pc/linux.c (relocator): New variable.
7548 (grub_linux_real_target): Likewise.
7549 (grub_linux_real_chunk): Likewise.
7550 (grub_linux16_prot_size): Likewise.
7551 (grub_linux16_boot): Use relocator.
7552 (grub_linux_unload): Unload relocator.
7553 (grub_cmd_linux): Use relocator.
7554 (grub_cmd_initrd): Likewise.
7555 * grub-core/loader/i386/pc/ntldr.c: New file.
7556 * grub-core/loader/i386/xnu.c (guessfsb) [GRUB_MACHINE_IEEE1275]:
7557 Don't try to guess CPU frequency.
7558 (grub_xnu_set_video): Stretch bitmap.
7559 (grub_xnu_boot): Use relocator.
7560 * grub-core/loader/mips/linux.c (grub_linux_boot): Use relocator.
7561 (grub_linux_unload): Free relocator.
7562 (grub_linux_load32): Use relocator.
7563 (grub_linux_load64): Likewise.
7564 (grub_cmd_initrd): Likewise.
7565 * grub-core/loader/multiboot.c (grub_multiboot_boot): Use relocator.
7566 (grub_multiboot_unload): Unload relocator.
7567 (grub_cmd_multiboot): Use relocator.
7568 (grub_cmd_module): Likewise.
7569 * grub-core/loader/multiboot_elfxx.c (grub_multiboot_load_elfXX):
7570 Use relocator and support sections.
7571 * grub-core/loader/multiboot_mbi2.c(elf_sec_num): New variable.
7572 (elf_sec_entsize): Likewise.
7573 (elf_sec_shstrndx): Likewise.
7574 (elf_sections): Likewise.
7575 (grub_multiboot_load): Use relocator.
7576 (grub_multiboot_get_mbi_size): Account for sections.
7577 (grub_multiboot_make_mbi): Use relocator and support sections.
7578 (grub_multiboot_add_elfsyms): New function.
7579 * grub-core/loader/powerpc/ieee1275/linux.c: Remove useless include.
7580 * grub-core/loader/sparc64/ieee1275/linux.c: Likewise.
7581 * grub-core/loader/xnu.c (grub_xnu_heap_malloc): Use relocator.
7582 Prototype changed. All users updated.
7583 (grub_xnu_align_heap): Simplified.
7584 (grub_xnu_writetree_toheap): Likewise.
7585 (grub_xnu_unload): Unload relocator.
7586 (grub_cmd_xnu_kernel): Use relocator.
7587 (grub_cmd_xnu_kernel64): Likewise.
7588 (grub_xnu_register_memory): Simplified.
7589 * grub-core/loader/xnu_resume.c (grub_xnu_resume): Use relocator.
1935c077
VS
7590 * grub-core/term/efi/console.c (grub_console_putchar): Abort if
7591 EFI is finished.
7592 (grub_console_checkkey): Likewise.
7593 (grub_console_getkey): Likewise.
7594 (grub_console_getwh): Likewise.
7595 (grub_console_getxy): Likewise.
7596 (grub_console_gotoxy): Likewise.
7597 (grub_console_cls): Likewise.
7598 (grub_console_setcolorstate): Likewise.
7599 (grub_console_setcursor): Likewise.
7600 * grub-core/term/ns8250.c (grub_ns8250_hw_get_port): New function.
7601 * grub-core/tests/boot/kbsd.init-i386.S: New file.
7602 * grub-core/tests/boot/kbsd.init-x86_64.S: Likewise.
7603 * grub-core/tests/boot/kbsd.spec.txt: Likewise.
7604 * grub-core/tests/boot/kernel-8086.S: Likewise.
7605 * grub-core/tests/boot/kernel-i386.S: Likewise.
7606 * grub-core/tests/boot/kfreebsd-aout.cfg: Likewise.
7607 * grub-core/tests/boot/kfreebsd.cfg: Likewise.
7608 * grub-core/tests/boot/kfreebsd.init-i386.S: Likewise.
7609 * grub-core/tests/boot/kfreebsd.init-x86_64.S: Likewise.
7610 * grub-core/tests/boot/knetbsd.cfg: Likewise.
7611 * grub-core/tests/boot/kopenbsd.cfg: Likewise.
7612 * grub-core/tests/boot/kopenbsdlabel.txt: Likewise.
7613 * grub-core/tests/boot/linux.cfg: Likewise.
7614 * grub-core/tests/boot/linux.init-i386.S: Likewise.
7615 * grub-core/tests/boot/linux.init-x86_64.S: Likewise.
7616 * grub-core/tests/boot/linux16.cfg: Likewise.
7617 * grub-core/tests/boot/multiboot.cfg: Likewise.
7618 * grub-core/tests/boot/multiboot2.cfg: Likewise.
7619 * grub-core/tests/boot/ntldr.cfg: Likewise.
7620 * grub-core/tests/boot/pc-chainloader.cfg: Likewise.
7621 * include/grub/aout.h (grub_aout_load): Make load_addr a void *.
7622 * include/grub/autoefi.h (grub_autoefi_finish_boot_services):
7623 New definition.
7624 * include/grub/dl.h (grub_dl_unload_all): Removed.
7625 * include/grub/efi/efi.h (grub_efi_exit_boot_services): Likewise.
7626 (grub_efi_finish_boot_services): Change prototype.
7627 (grub_efi_is_finished): New variable.
7628 * include/grub/efiemu/efiemu.h (grub_efiemu_finish_boot_services):
7629 Changed prototype.
7630 (grub_efiemu_finish_boot_services): Removed.
7631 (grub_machine_efiemu_init_tables): New prototype.
7632 * include/grub/elfload.h (grub_elf32_phdr_iterate): Likewise.
7633 (grub_elf64_phdr_iterate): Likewise.
7634 * include/grub/i386/bsd.h: Include relocator.h.
7635 (freebsd_tag_header): New struct.
7636 (grub_openbsd_bios_mmap): Removed.
7637 (grub_unix_real_boot): Removed.
7638 (grub_freebsd_load_elfmodule32): Changed prototype.
7639 (grub_freebsd_load_elfmodule_obj64): Likewise.
7640 (grub_freebsd_load_elf_meta32): Likewise.
7641 (grub_freebsd_load_elf_meta64): Likewise.
7642 (grub_freebsd_add_meta): Removed.
7643 (grub_netbsd_load_elf_meta32): New prototype.
7644 (grub_netbsd_load_elf_meta64): Likewise.
7645 (grub_bsd_add_meta): Likewise.
7646 (grub_openbsd_ramdisk_descriptor): New struct.
7647 (grub_openbsd_find_ramdisk32): New prototype.
7648 (grub_openbsd_find_ramdisk64): Likewise.
7649 * include/grub/i386/coreboot/loader.h: Removed.
7650 * include/grub/i386/efi/loader.h: Likewise.
7651 * include/grub/i386/ieee1275/loader.h: Likewise.
7652 * include/grub/i386/linux.h (linux_kernel_header): Change void *
7653 to grub_uint32_t.
7654 * include/grub/i386/loader.h: Removed.
7655 * include/grub/i386/memory.h (GRUB_MEMORY_CPU_CR4_PAE_ON): Correct the
7656 value.
7657 (GRUB_MEMORY_CPU_CR4_PSE_ON): New definition.
7658 (grub_phys_addr_t): New type.
7659 (grub_vtop): New inline function.
7660 (grub_map_memory): Likewise.
7661 (grub_unmap_memory): Likewise.
7662 * include/grub/i386/multiboot/loader.h: Removed.
7663 * include/grub/i386/netbsd_bootinfo.h (NETBSD_BTINFO_BOOTDISK): Removed.
7664 (NETBSD_BTINFO_CONSOLE): New definition.
7665 (NETBSD_BTINFO_SYMTAB): Likewise.
7666 (NETBSD_BTINFO_MODULES): Likewise.
7667 (NETBSD_BTINFO_FRAMEBUF): Likewise.
7668 (grub_netbsd_bootinfo): New struct.
7669 (grub_netbsd_btinfo_common): Use explicit bitsize.
7670 (grub_netbsd_btinfo_mmap_entry): Removed.
7671 (GRUB_NETBSD_MAX_BOOTPATH_LEN): New definition.
7672 (grub_netbsd_btinfo_bootdisk): New struct.
7673 (grub_netbsd_btinfo_symtab): Likewise.
7674 (grub_netbsd_btinfo_serial): Likewise.
7675 (grub_netbsd_btinfo_modules): Likewise.
7676 (grub_netbsd_btinfo_framebuf): Likewise.
7677 (GRUB_NETBSD_MAX_ROOTDEVICE_LEN): New definition.
7678 * include/grub/i386/openbsd_bootarg.h (OPENBSD_BOOTARG_CONSOLE):
7679 Likewise.
7680 (grub_openbsd_bootargs): Use explicit bitsize.
7681 (grub_openbsd_bootarg_console): New struct.
7682 (GRUB_OPENBSD_COM_MAJOR): New definition.
7683 (GRUB_OPENBSD_VGA_MAJOR): Likewise.
7684 * include/grub/i386/pc/efiemu.h: Removed.
7685 * include/grub/i386/pc/loader.h: Don't include cpu/loader.h.
7686 * include/grub/i386/qemu/loader.h: Removed.
7687 * include/grub/i386/relocator.h: Rewritten.
7688 * include/grub/i386/xnu.h (grub_xnu_heap_will_be_at): Removed.
7689 * include/grub/mips/memory.h: New file.
7690 * include/grub/mips/multiboot.h: Rewritten.
7691 * include/grub/mips/relocator.h: Rewritten.
7692 * include/grub/mips/yeeloong/memory.h (grub_phys_addr_t): New type.
7693 (grub_vtop): New function.
7694 (grub_map_memory): Likewise.
7695 (grub_unmap_memory): Likewise.
7696 * include/grub/misc.h (ALIGN_DOWN): New definition.
7697 * include/grub/mm.h (grub_mm_check_real): New proto.
7698 (GRUB_MM_CHECK): New definition.
7699 * include/grub/mm_private.h: New file.
7700 * include/grub/multiboot.h (grub_multiboot_relocator): New variable.
7701 (grub_multiboot_get_mbi_size): Removed.
7702 (grub_multiboot_make_mbi): Change prottype.
7703 (grub_multiboot_set_accepts_video): New proto.
7704 (grub_multiboot_add_elfsyms): Likewise.
7705 (grub_multiboot_payload_eip): New variable.
7706 * include/grub/ns8250.h (grub_ns8250_hw_get_port) [!ASM_FILE]:
7707 New prototype.
7708 * include/grub/offsets.h (GRUB_KERNEL_I386_MULTIBOOT_PREFIX):
7709 New definition.
7710 (GRUB_KERNEL_I386_MULTIBOOT_DATA_END): Likewise.
7711 (GRUB_KERNEL_I386_MULTIBOOT_MOD_ALIGN): Likewise.
7712 * include/grub/powerpc/ieee1275/loader.h: Removed.
7713 * include/grub/powerpc/memory.h: New file.
7714 * include/grub/powerpc/relocator.h: Likewise.
7715 * include/grub/relocator.h: Likewise.
7716 * include/grub/relocator_private.h: Likewise.
7717 * include/grub/sparc64/ieee1275/loader.h: Removed.
7718 * include/grub/x86_64/memory.h: New file.
7719 * include/grub/xnu.h (grub_xnu_writetree_toheap): Changed prototype.
7720 (grub_xnu_heap_malloc): Likewise.
7721 (grub_xnu_heap_real_start): Removed.
7722 (grub_xnu_heap_start): Likewise.
7723 (grub_xnu_relocator): New variable.
7724 (grub_xnu_heap_target_start): Likewise.
7725 * tests/util/grub-shell.in: Support non-pc.
7726 * util/grub-mkimage.c (image_targets): Fix multiboot target.
0b986c40 7727
5303b85d
VS
77282010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
7729
7730 * grub-core/normal/charset.c (grub_utf8_to_ucs4_alloc): Avoid deadloop
7731 on malloc error.
7732 (grub_bidi_logical_to_visual): Check that malloc succeded.
7733 * grub-core/normal/term.c (grub_puts_terminal): Fix fallback to dumb
7734 puts.
7735 (grub_xputs_normal): Likewise.
7736
d768d159
VS
77372010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
7738
7739 * grub-core/Makefile.core.def (kernel): Add kern/mips/cache_flush.S to
7740 extra_dist.
7741
77422010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
7743
7744 * grub-core/efiemu/runtime/efiemu.sh: Removed.
7745
5bf84df4
VS
77462010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
7747
7748 * Makefile.util.def (grub-ofpathname): Add missing ldadd.
7749
3626810e
VS
77502010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
7751
7752 * grub-core/kern/misc.c (grub_real_dprintf): Always refresh after
7753 dprintf.
7754
a7363f53
BC
77552010-08-29 BVK Chaitanya <bvk.groups@gmail.com>
7756
7757 * Makefile.util.def: Use ldadd instead of ldflags for libraries.
7758
902f75f6
VS
77592010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
7760
7761 * grub-core/normal/term.c (print_more): Fix a memory leak.
7762 (grub_puts_terminal): Revert to dumb puts if memory allocation fails.
7763 (grub_xputs_normal): Likewise.
7764
3c707967
VS
77652010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
7766
7767 * grub-core/script/lexer.c (grub_script_lexer_init): Don't look before
7768 the begining of the string
7769
2053cc07
VS
77702010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
7771
7772 * grub-core/script/script.c (grub_script_parse): Free parsed on
7773 failure.
7774
46422ebf
VS
77752010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
7776
7777 * grub-core/normal/completion.c (grub_normal_do_completion): Free argv
7778 on failure.
7779
9e0fa3f6
VS
77802010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
7781
7782 * grub-core/normal/cmdline.c (grub_cmdline_get): Free cl_terms on
7783 return.
7784
3393cf16
VS
77852010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
7786
7787 * grub-core/term/gfxterm.c (grub_gfxterm_term_fini): Free the text buffer.
7788 (scroll_up): Fix a memory leak.
7789
b17540cb
VS
77902010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
7791
7792 * grub-core/fs/nilfs2.c (grub_nilfs2_load_sb): Handle grub_disk_read
7793 errors.
7794
67140446
VS
77952010-08-27 Vladimir Serbinenko <phcoder@gmail.com>
7796
7797 Handle USB pendrives exposed as floppies.
7798
7799 * grub-core/boot/i386/pc/boot.S: Check LBA even on what appears to be
7800 floppy.
7801 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_open): Likewise.
7802 Check for partitions on all devices.
7803
e35e46fc
VS
78042010-08-25 Vladimir Serbinenko <phcoder@gmail.com>
7805
7806 * grub-core/term/ieee1275/ofconsole.c (put): Correct prototype.
7807 (readkey): Likewise.
7808
d24c6190
BC
78092010-08-25 BVK Chaitanya <bvk.groups@gmail.com>
7810
7811 Multiple variable names support to "export" command.
7812
7813 * normal/context.c (grub_cmd_export): "export" command supports
7814 multiple variable names.
7815
04ddcc6a
ST
78162010-08-23 Samuel Thibault <samuel.thibault@ens-lyon.org>
7817
7818 * util/grub.d/30_os-prober.in: Fix conversion from grub-probe
7819 --target=drive output to Mach device name.
7820
0c8b61d8
BC
78212010-08-23 BVK Chaitanya <bvk.groups@gmail.com>
7822
7823 New Automake based build system for GRUB.
7824
7825 * ABOUT-NLS: New file.
7826 * Makefile.am: New file. GRUB host utils' rules that doesn't fit
7827 in Makefile.util.def file.
7828 * Makefile.util.def: New file. Autogen build definitions file for
7829 GRUB host utils.
7830 * conf/Makefile.common: New file. Common variables for GRUB host
7831 utils and target modules.
7832 * conf/Makefile.extra-dist: New file. Extra files for make dist.
7833 * docs/Makefile.am: New file. Automake file for docs.
7834 * gentpl.py: New file. Python script to generate Autogen
7835 template.
7836 * grub-core/Makefile.am: New file. GRUB target modules' rules
7837 that doesn't fit in Makefile.core.def file.
7838 * grub-core/Makefile.core.def: New file. Autogen build
7839 definitions file for GRUB target modules.
7840 * grub-core/lib/setjmp.S: New file. Wrapper for target_cpu
7841 specific setjmp.S file.
7842 * po/Makefile.am: New file.
7843
7844 * .bzrignore: New ignores.
7845 * INSTALL: New requirements, without Ruby.
7846 * acinclude.m4: Use TARGET_IMG_BASE_LDOPT variable instead.
7847 * autogen.sh: Updated to invoke autogen as necessary.
7848 * configure.ac: Separate *FLAGS with HOST_ and TARGET_ prefixes,
7849 and defines for Automake conditionals.
7850 * geninit.sh: Refactoring.
7851
7852 * include/grub/dl.h: Allow build rules to define GRUB_MOD_* if
7853 necessary.
7854 * include/grub/emu/getroot.h (grub_make_system_path_relative_to_its_root):
7855 New prototype.
7856
7857 * include/grub/test.h: Fix functional test modules' naming.
7858 * grub-core/tests/example_functional_test.c: Fix test module name.
7859
7860 * util/misc.c: Hosted versions' of grub functions for libgrub.a
7861 * tests/lib/unit_test.c: Remove hosted versions of grub functions.
7862 * util/grub-editenv.c: Likewise.
7863 * util/grub-fstest.c: Likewise.
7864 * util/grub-mkdevicemap.c: Likewise.
7865 * util/grub-mkfont.c: Likewise.
7866 * util/grub-mkimage.c: Likewise.
7867 * util/grub-mkpasswd-pbkdf2.c: Likewise.
7868 * util/grub-probe.c: Likewise.
7869 * util/grub-script-check.c: Likewise.
7870 * util/i386/pc/grub-setup.c: Likewise.
7871 * util/sparc64/ieee1275/grub-setup.c: Likewise.
7872
7873 * tests/util/grub-shell.in: Fix override directory path.
7874 * util/grub-mkrescue.in: Replace @pkglib_DATA@ with files.
7875 * util/import_gcry.py: Create Makefile.gcry.def file instead.
7876
7877 * util/lvm.c: Update #includes.
7878 * util/raid.c: Likewise.
7879 * util/resolve.c: Likewise.
7880 * grub-core/bus/emu/pci.c: Likewise.
7881 * grub-core/lib/posix_wrap/stdlib.h: Likewise.
7882 * grub-core/lib/posix_wrap/string.h: Likewise.
7883 * grub-core/kern/emu/main.c: Likewise.
7884
7885 * grub-core/gensymlist.sh: New file. Script for generating kernel
7886 symbols file.
7887 * grub-core/genmoddep.awk: Support new kernel_syms.lst format.
7888
7889 * grub-core/gentrigtables.c: Fix unused variable warnings.
7890
7891 * Makefile.in: Removed.
7892 * conf/any-emu.rmk: Removed.
7893 * conf/common.rmk: Removed.
7894 * conf/i386-coreboot.rmk: Removed.
7895 * conf/i386-efi.rmk: Removed.
7896 * conf/i386-ieee1275.rmk: Removed.
7897 * conf/i386-multiboot.rmk: Removed.
7898 * conf/i386-pc.rmk: Removed.
7899 * conf/i386-qemu.rmk: Removed.
7900 * conf/i386.rmk: Removed.
7901 * conf/mips-yeeloong.rmk: Removed.
7902 * conf/mips.rmk: Removed.
7903 * conf/powerpc-ieee1275.rmk: Removed.
7904 * conf/sparc64-ieee1275.rmk: Removed.
7905 * conf/tests.rmk: Removed.
7906 * conf/x86-efi.rmk: Removed.
7907 * conf/x86_64-efi.rmk: Removed.
7908 * gendistlist.sh: Removed.
7909 * geninitheader.sh: Removed.
7910 * genkernsyms.sh.in: Removed.
7911 * genmk.rb: Removed.
7912 * gensymlist.sh.in: Removed.
7913 * mkinstalldirs: Removed.
7914 * boot: Moved ...
7915 * grub-core/boot: ... to here.
7916 * bus: Moved ...
7917 * grub-core/bus: ... to here.
7918 * commands: Moved ...
7919 * grub-core/commands: ... to here.
7920 * disk: Moved ...
7921 * grub-core/disk: ... to here.
7922 * efiemu: Moved ...
7923 * grub-core/efiemu: ... to here.
7924 * font: Moved ...
7925 * grub-core/font: ... to here.
7926 * fs: Moved ...
7927 * grub-core/fs: ... to here.
7928 * gencmdlist.sh: Moved ...
7929 * grub-core/gencmdlist.sh: ... to here.
7930 * genemuinit.sh: Moved ...
7931 * grub-core/genemuinit.sh: ... to here.
7932 * genemuinitheader.sh: Moved ...
7933 * grub-core/genemuinitheader.sh: ... to here.
7934 * genfslist.sh: Moved ...
7935 * grub-core/genfslist.sh: ... to here.
7936 * genhandlerlist.sh: Moved ...
7937 * grub-core/genhandlerlist.sh: ... to here.
7938 * genmoddep.awk: Moved ...
7939 * grub-core/genmoddep.awk: ... to here.
7940 * genmodsrc.sh: Moved ...
7941 * grub-core/genmodsrc.sh: ... to here.
7942 * genpartmaplist.sh: Moved ...
7943 * grub-core/genpartmaplist.sh: ... to here.
7944 * genparttoollist.sh: Moved ...
7945 * grub-core/genparttoollist.sh: ... to here.
7946 * genterminallist.sh: Moved ...
7947 * grub-core/genterminallist.sh: ... to here.
7948 * gentrigtables.c: Moved ...
7949 * grub-core/gentrigtables.c: ... to here.
7950 * genvideolist.sh: Moved ...
7951 * grub-core/genvideolist.sh: ... to here.
7952 * gettext: Moved ...
7953 * grub-core/gettext: ... to here.
7954 * gfxmenu: Moved ...
7955 * grub-core/gfxmenu: ... to here.
7956 * gnulib: Moved ...
7957 * grub-core/gnulib: ... to here.
7958 * hello: Moved ...
7959 * grub-core/hello: ... to here.
7960 * hook: Moved ...
7961 * grub-core/hook: ... to here.
7962 * io: Moved ...
7963 * grub-core/io: ... to here.
7964 * kern: Moved ...
7965 * grub-core/kern: ... to here.
7966 * lib: Moved ...
7967 * grub-core/lib: ... to here.
7968 * loader: Moved ...
7969 * grub-core/loader: ... to here.
7970 * mmap: Moved ...
7971 * grub-core/mmap: ... to here.
7972 * normal: Moved ...
7973 * grub-core/normal: ... to here.
7974 * partmap: Moved ...
7975 * grub-core/partmap: ... to here.
7976 * parttool: Moved ...
7977 * grub-core/parttool: ... to here.
7978 * script: Moved ...
7979 * grub-core/script: ... to here.
7980 * term: Moved ...
7981 * grub-core/term: ... to here
7982 * tests/example_functional_test.c: Moved ...
7983 * grub-core/tests/example_functional_test.c: ... to here.
7984 * tests/lib/functional_test.c: Moved ...
7985 * grub-core/tests/lib/functional_test.c: ... to here.
7986 * tests/lib/test.c: Moved ...
7987 * grub-core/tests/lib/test.c: ... to here.
7988 * video: Moved ...
7989 * grub-core/video: ... to here.
7990
645586e6
BC
79912010-08-23 BVK Chaitanya <bvk.groups@gmail.com>
7992
7993 Replace --enable-grub-emu-modules with grub-emu-lite.
7994
7995 * kern/emu/cache.S: New file. Wrapper for $target_cpu specific
7996 cache.S.
7997
7998 * include/grub/emu/misc.h (grub_emu_init): New prototype.
7999 * kern/emu/full.c: New file. For grub-emu specific initialization.
8000 * kern/emu/lite.c: New file. For grub-emu-lite initialization.
8001 * kern/emu/main.c: Call initialization function grub_emu_init.
8002
8003 * Makefile.in: Include grub-emu-lite in install.
8004 * commands/parttool.c: Use grub_no_autoload to differentiate
8005 between grub-emu and grub-emu-lite.
8006 * include/grub/misc.h: New variable grub_no_autoload.
8007
8008 * conf/any-emu.rmk: New rules for grub-emu-lite.
8009 * configure.ac: Remove --enable-grub-emu-modules.
8010 * genmk.rb: Cleanup unnecessary rules.
8011 * include/grub/dl.h: Remove GRUB_NO_MODULES macro.
8012
8013 * normal/main.c: Don't load list files on grub-emu-lite.
8014 * util/misc.c (grub_arch_sync_caches): Removed.
8015
f86a4030
CW
80162010-08-23 Colin Watson <cjwatson@ubuntu.com>
8017
8018 * kern/mips/startup.S (grub_prefix): Update comment to refer to
8019 grub-mkimage rather than grub-mkelfimage.
8020 * kern/powerpc/ieee1275/startup.S (grub_prefix): Likewise.
8021
06776944
VS
80222010-08-22 Vladimir Serbinenko <phcoder@gmail.com>
8023
8024 * term/at_keyboard.c (grub_at_keyboard_getkey_noblock): Don't discard
8025 a key after CapsLock or NumLock. It's just a qemu bug.
8026
df262419
VS
80272010-08-21 Vladimir Serbinenko <phcoder@gmail.com>
8028
8029 * include/grub/usb.h (grub_usb_device): Add 'data' field back. It's
8030 needed by libusb wrapper.
8031
b40ea81b
ST
80322010-08-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
8033
8034 * docs/grub.texi (GNU/Hurd): Document booting GNU/Hurd.
8035
dee50575
VS
80362010-08-21 Vladimir Serbinenko <phcoder@gmail.com>
8037
8038 * loader/multiboot.c (grub_cmd_module): Don't unzip module if
8039 --nounzip is passed.
8040
fb1d7b79
VS
80412010-08-20 Vladimir Serbinenko <phcoder@gmail.com>
8042
8043 USB hotunplugging and USB serial support.
8044
8045 * bus/usb/ohci.c (grub_ohci_transfer): Fill *actual and respect timeout.
8046 * bus/usb/uhci.c (grub_free_queue): Compute *actual.
8047 (grub_uhci_transfer): Respect timeout and set *actual.
8048 * bus/usb/usb.c (grub_usb_device_initialize): Correctly skip fields of
8049 non-standard length.
8050 (grub_usb_device_attach): Autoload modules.
8051 (GRUB_MOD_INIT): Set grub_term_poll_usb.
8052 (GRUB_MOD_FINI): Unset grub_term_poll_usb.
8053 * bus/usb/usbhub.c (grub_usb_hub): Replace speed with devices. All
8054 users updated.
8055 (grub_usb_add_hub): Fill nports and children.
8056 (attach_root_port): Receive hub instead of controller.
8057 All users updated. Fill hub->devices.
8058 (grub_usb_root_hub): Allocate hub->devices.
8059 (detach_device): New function.
8060 (poll_nonroot_hub): Fill children and detach devices.
8061 * bus/usb/usbtrans.c (grub_usb_bulk_readwrite): Accept timeout and
8062 actual arguments. All users updated.
8063 (grub_usb_bulk_read_extended): New function.
8064 * bus/usb/serial/common.c: New file.
8065 * bus/usb/serial/ftdi.c: Likewise.
8066 * bus/usb/serial/pl2303.c: Likewise.
8067 * commands/terminal.c (handle_command): Support wildcard.
8068 * commands/usbtest.c: Output "Unknown" instead of empty string.
8069 * conf/any-emu.rmk (pkglib_MODULES): Add usbserial_common.mod.
8070 (usbserial_common_mod_SOURCES): New variable.
8071 (usbserial_common_mod_CFLAGS): Likewise.
8072 (usbserial_common_mod_LDFLAGS): Likewise.
8073 (pkglib_MODULES): Add usbserial_pl2303.mod.
8074 (usbserial_pl2303_mod_SOURCES): New variable.
8075 (usbserial_pl2303_mod_CFLAGS): Likewise.
8076 (usbserial_pl2303_mod_LDFLAGS): Likewise.
8077 (pkglib_MODULES): Add usbserial_ftdi.mod.
8078 (usbserial_ftdi_mod_SOURCES): New variable.
8079 (usbserial_ftdi_mod_CFLAGS): Likewise.
8080 (usbserial_ftdi_mod_LDFLAGS): Likewise.
8081 (pkglib_MODULES): Add serial.mod.
8082 (serial_mod_SOURCES): New variable.
8083 (serial_mod_CFLAGS): Likewise.
8084 (serial_mod_LDFLAGS): Likewise.
8085 * conf/i386-pc.rmk: Likewise.
8086 * conf/mips-yeeloong.rmk: Likewise.
8087 * conf/i386.rmk (serial_mod_SOURCES): Add term/ns8250.c.
8088 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Likewise.
8089 * disk/usbms.c (first_available_slot): New variable.
8090 (grub_usbms_attach): Don't reuse free slots due to potential cache
8091 problems.
8092 * include/grub/serial.h: Moved to ..
8093 * include/grub/ns8250.h: ...this.
8094 * include/grub/serial.h: New file.
8095 * include/grub/term.h (grub_term_poll_usb): New variable.
8096 * include/grub/terminfo.h (grub_terminfo_input_state): Pass term to
8097 readkey. All users updated.
8098 (grub_terminfo_output_state): Pass term to put.
8099 * include/grub/usb.h (GRUB_USB_REQTYPE): New enum.
8100 (grub_usb_controller_dev): Add timeout and actual arguments to
8101 transfer. All users updated.
8102 (grub_usb_interface): New field detach_data.
8103 (grub_usb_device): New fields children and nports.
8104 (grub_usb_ep_type_t): New type.
8105 (grub_usb_get_ep_type): New function.
8106 (grub_usb_bulk_read_extended): Likewise.
8107 * include/grub/usbdesc.h (grub_usb_desc): New type.
8108 * include/grub/usbserial.h: New file.
8109 * include/grub/usbtrans.h (grub_usb_transaction): New field preceding.
8110 * kern/term.c (grub_term_poll_usb): New variable.
8111 (grub_getkey): Call grub_term_poll_usb if set.
8112 (grub_checkkey): Likewise.
8113 (grub_getkeystatus): Likewise.
8114 * term/serial.c: Moved controller-specific parts to ...
8115 * term/ns8250.c: ... here.
8116 * term/serial.c: Mostly rewritten.
8117 * term/usb_keyboard.c: Reorganised to use GET_REPORT only on attaching
8118 according to spec.
8119
21a313de
RM
81202010-08-20 Robert Millan <rmh@gnu.org>
8121
8122 Make kFreeBSD code more generic to support ext2fs as root, ufs as
8123 a separate module and maybe other interesting combinations.
8124
8125 * util/grub.d/10_kfreebsd.in (load_kfreebsd_module): New function.
8126 (kfreebsd_entry): Use load_kfreebsd_module() to load modules.
8127 (kfreebsd_entry): Add generic filesystem module load routine.
8128 Map GRUB `ext2' to kFreeBSD `ext2fs'.
8129
63c734a6
CW
81302010-08-20 Colin Watson <cjwatson@ubuntu.com>
8131
8132 * commands/i386/pc/sendkey.c (keysym_table): Rename "numlock" to
8133 "numcenter" (I misunderstood the purpose of this entry).
8134 * docs/grub.texi (sendkey): Likewise.
8135
c4d16542
CW
81362010-08-20 Colin Watson <cjwatson@ubuntu.com>
8137
8138 * commands/i386/pc/sendkey.c (options): Remove "keep" from all
8139 status flag options; simply omitting the option is equivalent and
8140 simpler. Rename "wait" to "pause". Rename "sysreq" to "sysrq".
8141 (keysym_table): Rename "num5numlock" to "numlock".
8142 (grub_cmd_sendkey): Reinitialise `andmask' and `ormask', so that we
8143 can uniformly say that only the last of multiple `sendkey'
8144 invocations has any effect.
8145 * docs/grub.texi (sendkey): New section.
8146
93541d66
CW
81472010-08-19 Colin Watson <cjwatson@ubuntu.com>
8148
8149 * commands/i386/pc/sendkey.c (options): Fix three typos.
8150
b4ece5e1
VS
81512010-08-19 Vladimir Serbinenko <phcoder@gmail.com>
8152
8153 Implement sendkey support.
8154
8155 * commands/i386/pc/sendkey.c: New file.
8156 * conf/i386-pc.rmk (pkglib_MODULES): Add sendkey.mod.
8157 (sendkey_mod_SOURCES): New variable.
8158 (sendkey_mod_CFLAGS): Likewise.
8159 (sendkey_mod_LDFLAGS): Likewise.
8160
51f1f5af
CW
81612010-08-18 Colin Watson <cjwatson@ubuntu.com>
8162
8163 * configure.ac: Move AM_INIT_AUTOMAKE after AC_CANONICAL_TARGET to
8164 fix warnings from Autoconf.
8165
9da94e05
CW
81662010-08-18 Colin Watson <cjwatson@ubuntu.com>
8167
8168 * acinclude.m4 (grub_ASM_USCORE): Use a more accurate grep pattern,
8169 to avoid false positives with some assemblers that output things
8170 like "someprefix_func" as part of their output.
8171
729a0f2e
RM
81722010-08-15 Robert Millan <rmh@gnu.org>
8173
8174 * kern/emu/misc.c (grub_get_libzfs_handle): Handle libzfs_init()
8175 errors.
8176 * kern/emu/getroot.c (find_root_device_from_libzfs): Handle
8177 grub_get_libzfs_handle() errors.
8178
f3710e08
RM
81792010-08-14 Robert Millan <rmh@gnu.org>
8180
8181 * kern/emu/misc.c (grub_find_zpool_from_dir): Abort function if
8182 filesystem is not ZFS.
8183
7a3c13de
BC
81842010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
8185
8186 Fix for misspelled color names defaulting to black/black (bug
8187 reported by Doug Nazar)
8188
8189 * include/grub/normal.h (grub_parse_color_name_pair): Add return
8190 status to prototype.
8191 * normal/color.c (grub_parse_color_name_pair): Return failure
8192 status.
8193 (grub_env_write_color_normal): Ignore bad color names.
8194 (grub_env_write_color_highlight): Likewise.
8195 * normal/main.c (GRUB_MOD_INIT): Set default color names.
8196
ab8ba50d
BC
81972010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
8198
8199 "shift" command support to GRUB script.
8200
8201 * include/grub/script_sh.h (grub_script_shift): New prototype.
8202 * script/execute.c (grub_script_shift): New function.
8203 * script/main.c (grub_script_init): Register shift command.
8204 (grub_script_fini): Unregister shift command.
8205 * util/grub-script-check.c (grub_script_cmd_shift): New function.
8206
8207 * tests/grub_script_shift.in: New testcase.
8208 * conf/tests.rmk: Rules for new testcase.
8209
4d61999e
BC
82102010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
8211
8212 "continue" command support to GRUB script.
8213
8214 * script/execute.c (grub_script_execute_cmdwhile): Continue support.
8215 (grub_script_break): Continue support.
8216 * script/main.c (grub_script_init): Register continue command.
8217 (grub_script_fini): Unregister continue command.
8218
8219 * tests/grub_script_continue.in: New testcase.
8220 * conf/tests.rmk: Rules for new testcase.
8221
4df51e00
BC
82222010-08-12 BVK Chaitanya <bvk@dbook>
8223
8224 "break" command support to GRUB script.
8225
8226 * conf/common.rmk: Rule updates to grub-script-check.
8227 * include/grub/misc.h (grub_min): New function.
8228 * include/grub/script_sh.h (grub_script_init): New prototype.
8229 (grub_script_fini): New prototype.
8230 (grub_script_break): New prototype.
8231 * script/main.c (grub_script_init): New function.
8232 (grub_script_fini): New function.
8233 * script/execute.c (grub_script_break): New function.
8234 * normal/main.c: Calls to grub_script_{init,fini}.
8235 * util/grub-script-check.c (grub_script_break): New function.
8236
8237 * tests/grub_script_break.in: New testcase.
8238 * conf/tests.rmk: Rules for new test case.
8239
f12c8420
BC
82402010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
8241
8242 Function parameters support to GRUB script.
8243
8244 * script/yylex.l (VARIABLE): Regular expression update.
8245 * script/function.c (grub_script_function_call): Moved ...
8246 * script/execute.c (grub_script_function_call): ... to here.
8247 (grub_script_execute_arglist_to_argv): Removed.
8248 (grub_script_arglist_to_argv): New function.
8249 * script/argv.c: New file.
8250 (grub_script_argv_free): New function.
8251 (grub_script_argv_next): Likewise.
8252 (grub_script_argv_append): Likewise.
8253 (grub_script_argv_split_append): Likewise.
8254 * include/grub/script_sh.h (grub_script_argv): New struct.
8255 (grub_script_argv_free): New function.
8256 (grub_script_argv_next): Likewise.
8257 (grub_script_argv_append): Likewise.
8258 (grub_script_argv_split_append): Likewise.
8259
8260 * conf/common.rmk (normal.mod): New source script/argv.c.
8261
8262 * tests/grub_script_echo1.in: More tests.
8263 * tests/grub_script_vars1.in: Likewise.
8264 * tests/grub_script_functions.in: New test case.
8265 * conf/tests.rmk: Rules for new testcase.
8266
8022b748
BC
82672010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
8268
8269 Remove grub_script_cmdblock struct.
8270
8271 * include/grub/script_sh.h: Remove grub_script_cmdblock.
8272 * script/parser.y: Likewise.
8273 * script/execute.c: Rename cmdblock suffix to cmdlist.
8274 * script/script.c: Likewise.
8275 * util/grub-script-check.c: Likewise.
8276
79a6ba61
YB
82772010-08-11 Yves Blusseau <blusseau@zetam.org>
8278
8279 * .bzrignore: add grub-macho2img
8280
d04b9414
VS
82812010-08-11 Vladimir Serbinenko <phcoder@gmail.com>
8282
8283 * kern/i386/qemu/init.c (grub_qemu_init_cirrus): Fix compilation error.
8284
f947ab49
VS
82852010-08-11 Vladimir Serbinenko <phcoder@gmail.com>
8286
8287 Remove the dump of sm712 initialisation sequence.
8288
8289 * include/grub/pci.h (GRUB_PCI_CLASS_SUBCLASS_VGA): New const.
8290 * include/grub/vga.h (GRUB_VGA_IO_ARX_READ): New register.
8291 (GRUB_VGA_IO_MISC_WRITE): Likewise.
8292 (GRUB_VGA_CR_*): Added many registers.
8293 (GRUB_VGA_SR_*): Likewise.
8294 (GRUB_VGA_GR_*): Likewise.
8295 (grub_vga_write_arx): New function.
8296 (grub_video_hw_config): New struct.
8297 (grub_vga_set_geometry): New function.
8298 * kern/i386/qemu/init.c (load_palette): Use grub_vga_write_arx and
8299 GRUB_PCI_CLASS_SUBCLASS_VGA.
8300 * video/cirrus.c (grub_video_cirrus_setup): Use grub_vga_set_geometry.
8301 * video/sm712.c (grub_sm712_write_reg): New function
8302 (grub_sm712_read_reg): Likewise.
8303 (grub_sm712_sr_write): Likewise.
8304 (grub_sm712_gr_write): Likewise.
8305 (grub_sm712_cr_write): Likewise.
8306 (grub_sm712_write_arx): Likewise.
8307 (grub_sm712_cr_shadow_write): Likewise.
8308 (grub_sm712_write_dda_lookup): Likewise.
8309 (grub_video_sm712_setup): Initialise the video rather then
8310 blindly replay the dump.
8311 (main) [TEST]: Add a routine to be able to compile as standalone for
8312 tests.
8313 * video/sm712_init.c (sm712_init): Removed.
8314 (sm712_sr_seq1): New array.
8315 (sm712_sr_seq2): Likewise.
8316
f0206638
VS
83172010-08-10 Vladimir Serbinenko <phcoder@gmail.com>
8318
8319 * include/grub/vga.h: Add missing grub/pci.h include.
8320
2764da3b
YB
83212010-08-10 Yves Blusseau <blusseau@zetam.org>
8322
8323 * util/grub-macho2img.c (main): fix typo
8324
cf0c775e
VS
83252010-08-10 Vladimir Serbinenko <phcoder@gmail.com>
8326
8327 * include/grub/vga.h (grub_vga_gr_write): Add GRUB_MACHINE_PCI_IO_BASE.
8328 (grub_vga_gr_read): Likewise.
8329 (grub_vga_cr_write): Likewise.
8330 (grub_vga_cr_read): Likewise.
8331 (grub_vga_sr_write): Likewise.
8332 (grub_vga_sr_read): Likewise.
8333 (grub_vga_palette_read): Likewise.
8334 (grub_vga_palette_write): Likewise.
8335 * video/sm712.c (GRUB_SM712_REG_BASE): New definition.
8336 (grub_sm712_sr_read): New function.
8337 (grub_video_sm712_setup): Use grub_vga_sr_write and grub_sm712_sr_read.
8338 * video/sm712_init.c (sm712_init): Substract GRUB_MACHINE_PCI_IO_BASE.
8339
07f360e9
RM
83402010-08-09 Robert Millan <rmh@gnu.org>
8341
8342 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): Filter
8343 out unused variables on non-ZFS build.
8344
346c2072
RM
83452010-08-08 Robert Millan <rmh@gnu.org>
8346
8347 Fix path generation for sub-filesystems in ZFS.
8348
8349 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): Add
8350 missing slash.
8351
71175420
RM
83522010-08-08 Robert Millan <rmh@gnu.org>
8353
8354 * util/grub-fstest.c (read_file, cmd_cmp): Improve error message.
8355
0d8286f3
RM
83562010-08-08 Robert Millan <rmh@gnu.org>
8357
8358 * util/grub.d/10_kfreebsd.in: When files required for ZFS do not
8359 exist, issue a proper error message (rely on `ls' for translated
8360 strings).
8361
55dd2924
RM
83622010-08-08 Robert Millan <rmh@gnu.org>
8363
8364 Fix grub-probe invocation.
8365
8366 * util/grub.d/10_kfreebsd.in: s/label/fs_label/g.
8367
d3dd9e80
RM
83682010-08-04 Robert Millan <rmh@gnu.org>
8369
8370 * configure.ac: Remove checks for getfsstat() and getmntany().
8371 Add checks for `<sys/param.h>' and `<sys/mount.h>'.
8372 * kern/emu/misc.c [HAVE_GETMNTANY]: Remove `<sys/mnttab.h>'.
8373 [HAVE_SYS_PARAM_H]: Include `<sys/param.h>'.
8374 [HAVE_SYS_MOUNT_H]: Include `<sys/mount.h>'.
8375 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (find_mount_point_from_dir): Remove
8376 function.
8377 (grub_find_zpool_from_dir): Use statfs() instead of indirect matching
8378 via find_mount_point_from_dir() and getfsstat() / getmntany().
8379
0de22aa9
RM
83802010-08-04 Robert Millan <rmh@gnu.org>
8381
8382 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
8383 (grub_find_zpool_from_mount_point): Merge into ...
8384 (grub_find_zpool_from_dir): ... this.
8385 * kern/emu/misc.c: Likewise.
8386
8387 * kern/emu/misc.c
8388 (grub_make_system_path_relative_to_its_root): Replace
8389 grub_find_mount_point_from_dir() / grub_find_zpool_from_mount_point()
8390 with grub_find_zpool_from_dir().
8391 * kern/emu/getroot.c (find_root_device_from_libzfs): Likewise.
8392
62858144
RM
83932010-08-04 Robert Millan <rmh@gnu.org>
8394
8395 Support OpenSolaris in ZFS device resolution.
8396
8397 * configure.ac: Check for getmntany().
8398 * kern/emu/misc.c [HAVE_GETMNTANY]: Include `<sys/mnttab.h>'.
8399 [HAVE_GETMNTANY] (grub_find_zpool_from_mount_point): Add OpenSolaris
8400 support.
8401
9dd6fd50
RM
84022010-08-03 Robert Millan <rmh@gnu.org>
8403
8404 Fix grub-emu build.
8405
8406 * include/grub/util/misc.h: Move `<grub/util/libzfs.h>' to ...
8407 * include/grub/emu/misc.h: ... here.
8408
8409 * include/grub/util/misc.h (grub_get_libzfs_handle): Move function ...
8410 * include/grub/emu/misc.h (grub_get_libzfs_handle): ... here.
8411
8412 * util/misc.c: Remove `<grub/util/libzfs.h>'.
8413 [HAVE_LIBZFS] (libzfs_handle, fini_libzfs)
8414 (grub_get_libzfs_handle): Move to ...
8415 * kern/emu/misc.c [HAVE_LIBZFS] (__libzfs_handle, fini_libzfs)
8416 (grub_get_libzfs_handle): ... here.
8417
c9f7ff97
BC
84182010-08-03 BVK Chaitanya <bvk.groups@gmail.com>
8419
8420 * script/execute.c (grub_script_execute_cmdline): Check for NULL
8421 as command name case.
8422
a870a783
CW
84232010-08-02 Colin Watson <cjwatson@ubuntu.com>
8424
8425 * disk/raid.c (insert_array): Select unique numbers for named arrays
8426 as well, for use as keys in the disk cache.
8427
c7db243b
RM
84282010-08-01 Robert Millan <rmh@gnu.org>
8429
8430 * util/grub.d/10_kfreebsd.in: Initialize ${kfreebsd_device} as the
8431 kFreeBSD device name, except on ZFS where the filesystem label is
8432 used.
8433 (kfreebsd_entry): On ZFS root, load `opensolaris.ko', `zfs.ko' and
8434 `/boot/zfs/zpool.cache'.
8435 Set mountfrom kernel variable using ${kfreebsd_device}.
8436
f7abdefb
RM
84372010-08-01 Robert Millan <rmh@gnu.org>
8438
8439 Make it even harder to use uninitialized `libzfs_handle' (and
8440 make the interface a bit simpler).
8441
8442 * include/grub/util/misc.h (grub_util_init_libzfs)
8443 (libzfs_handle): Remove.
8444 (grub_get_libzfs_handle): New prototype.
8445
8446 * util/misc.c [HAVE_LIBZFS] (libzfs_handle): Add `static'
8447 attribute.
8448 (grub_util_init_libzfs): Remove.
8449 (grub_get_libzfs_handle): New function.
8450
8451 * kern/emu/getroot.c (find_root_device_from_libzfs): Use
8452 grub_get_libzfs_handle() to obtain a libzfs handle instead of
8453 accessing `libzfs_handle' directly.
8454
c882acc0
RM
84552010-08-01 Robert Millan <rmh@gnu.org>
8456
8457 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
8458 (grub_find_zpool_from_mount_point): New function prototypes.
8459
8460 * kern/emu/getroot.c [HAVE_GETFSSTAT]: Move `<sys/mount.h>' to ...
8461 * kern/emu/misc.c [HAVE_GETFSSTAT]: ... here.
8462
8463 * kern/emu/getroot.c (find_mount_point_from_dir): Move to ...
8464 * kern/emu/misc.c (grub_find_mount_point_from_dir): ... this. Remove
8465 `static' attribute.
8466
8467 * kern/emu/getroot.c (find_root_device_from_libzfs): Split code for
8468 finding zpool from mount point into ...
8469 * kern/emu/misc.c (grub_find_zpool_from_mount_point): ... this.
8470
8471 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): When
8472 requested path is part of a ZFS pool, use
8473 grub_find_zpool_from_mount_point() to detect its filesystem name,
8474 and generate a path with `/fsname@path' syntax.
8475
8bfe31d8
CW
84762010-08-01 Colin Watson <cjwatson@ubuntu.com>
8477
8478 * include/grub/util/libzfs.h (libzfs_init): Set argument list to
8479 (void) rather than () so that this is a proper prototype.
8480
553df63d
VS
84812010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
8482
8483 * lib/arg.c (grub_arg_show_help): Add the necessary spacing.
8484
8687cf07
VS
84852010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
8486
8487 * kern/emu/getroot.c (find_mount_point_from_dir): Compile only if
8488 [HAVE_LIBZFS && HAVE_LIBNVPAIR]
8489
ea9be8ea
CW
84902010-08-01 Colin Watson <cjwatson@ubuntu.com>
8491
8492 * util/grub-mkrescue.in: Remove ${efi_dir} after building efi.img.
8493
6eea041a
CW
84942010-08-01 Colin Watson <cjwatson@ubuntu.com>
8495
8496 * script/yylex.l (NAME): Remove [:digit:], redundant with [:alnum:].
8497
2cfb45df
CW
84982010-08-01 Colin Watson <cjwatson@ubuntu.com>
8499
8500 * docs/grub.texi (Simple configuration): Document GRUB_CMDLINE_XEN
8501 and GRUB_CMDLINE_XEN_DEFAULT. Recommend setting
8502 GRUB_GFXPAYLOAD_LINUX=text rather than unsetting it in order to
8503 disable gfxpayload.
8504 (Shell-like scripting): Add real content.
8505 (Serial terminal): Suggest `terminal_input serial; terminal_output
8506 serial' rather than putting the two commands on separate lines,
8507 since console input will be inoperative after the first command.
8508 (menuentry): Document --class, --users, and --hotkey options.
8509 (terminfo): Describe what `visually-ordered UTF-8' means (thanks,
8510 Vladimir Serbinenko).
8511
7decd202
VS
85122010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
85132010-08-01 Colin Watson <cjwatson@ubuntu.com>
8514
8515 * kern/misc.c (grub_memset): Optimise to reduce cache stalls.
8516
c882acc0
RM
85172010-08-01 Robert Millan <rmh@gnu.org>
8518
8519 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
8520 (grub_find_zpool_from_mount_point): New function prototypes.
8521
8522 * kern/emu/getroot.c [HAVE_GETFSSTAT]: Move `<sys/mount.h>' to ...
8523 * kern/emu/misc.c [HAVE_GETFSSTAT]: ... here.
8524
8525 * kern/emu/getroot.c (find_mount_point_from_dir): Move to ...
8526 * kern/emu/misc.c (grub_find_mount_point_from_dir): ... this. Remove
8527 `static' attribute.
8528
8529 * kern/emu/getroot.c (find_root_device_from_libzfs): Split code for
8530 finding zpool from mount point into ...
8531 * kern/emu/misc.c (grub_find_zpool_from_mount_point): ... this.
8532
8533 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): When
8534 requested path is part of a ZFS pool, use
8535 grub_find_zpool_from_mount_point() to detect its filesystem name,
8536 and generate a path with `/fsname@path' syntax.
8537
deb0caa3
RM
85382010-08-01 Robert Millan <rmh@gnu.org>
8539
8540 Prevent accidental use of uninitialized libzfs_handle.
8541
8542 * util/grub-probe.c (main): Move grub_util_init_libzfs() call to ...
8543 * kern/emu/getroot.c (find_root_device_from_libzfs): ... here.
8544 * util/misc.c (grub_util_init_libzfs): Make this function idempotent.
8545
ce04ef47
CW
85462010-08-01 Colin Watson <cjwatson@ubuntu.com>
8547
8548 * util/grub.d/20_linux_xen.in: Don't use UUID for LVM root (matching
8549 util/grub.d/10_linux.in). Fixes Debian bug #591093.
8550
ebf53056
RM
85512010-08-01 Robert Millan <rmh@gnu.org>
8552
8553 * kern/emu/getroot.c: Include `<grub/util/misc.h>'.
8687cf07 8554
3710bb6b
RM
85552010-07-31 Robert Millan <rmh@gnu.org>
8556
8557 * util/grub.d/10_kfreebsd.in: Make module handling more generic.
8558
8072efeb
RM
85592010-07-31 Robert Millan <rmh@gnu.org>
8560
8561 * kern/emu/misc.c: Add missing license header.
8562
3169f4c7
RM
85632010-07-31 Robert Millan <rmh@gnu.org>
8564
8565 * configure.ac: Check for `libzfs.h' and `libnvpair.h'.
8566
8567 * include/grub/util/libnvpair.h: Include `<config.h>'.
8568 [HAVE_LIBNVPAIR_H]: Include `<libnvpair.h>' instead of
8569 declaring libnvpair prototypes ourselves.
8570 * include/grub/util/libzfs.h: Include `<config.h>'.
8571 [HAVE_LIBZFS_H]: Include `<libzfs.h>' instead of
8572 declaring libzfs prototypes ourselves.
8573
8574 (libzfs_handle): Moved to ...
8575 * include/grub/util/misc.h (libzfs_handle): ... here.
8576 Include `<grub/util/libzfs.h>'.
8577
c9a00aee
RM
85782010-07-30 Robert Millan <rmh@gnu.org>
8579
8580 * include/grub/emu/misc.h: Add missing license header.
8581
a184f9c8
RM
85822010-07-30 Robert Millan <rmh@gnu.org>
8583
8584 Enable `grub-probe -t device' resolution on ZFS.
8585
8586 * configure.ac: Check for getfsstat(), libzfs and libnvpair.
8587 * include/grub/util/libnvpair.h: New file.
8588 * include/grub/util/libzfs.h: New file.
8589
8590 * kern/emu/getroot.c: Include `<assert.h>' and `<error.h>'.
8591 [HAVE_LIBZFS && HAVE_LIBNVPAIR]: Include `<grub/util/libzfs.h>' and
8592 `<grub/util/libnvpair.h>'.
8593 [HAVE_GETFSSTAT]: Include `<sys/mount.h>'.
8594
8595 (find_mount_point_from_dir): New static function.
8596 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (find_root_device_from_libzfs): New
8597 function.
8598 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (grub_guess_root_device): Use
8599 find_root_device_from_libzfs() before ressorting to find_root_device().
8600
8601 * include/grub/util/misc.h (grub_util_init_libzfs): New function
8602 prototype.
8603 * util/misc.c: Include `<grub/util/libzfs.h>'.
8604 (grub_util_init_libzfs): New function.
8605 [HAVE_LIBZFS] (libzfs_handle): New global variable.
8606 [HAVE_LIBZFS] (fini_libzfs): New static function.
8607 (grub_util_init_libzfs): New function.
8608 * util/grub-probe.c (main): Call grub_util_init_libzfs().
8609
f7790cdd
RM
86102010-07-30 Robert Millan <rmh@gnu.org>
8611
8612 * include/grub/emu/misc.h (grub_make_system_path_relative_to_its_root)
8613 (xmalloc, xrealloc, xstrdup, xasprintf): Add
8614 `warn_unused_result' attribute.
8615 * include/grub/misc.h (grub_strdup, grub_strndup, grub_strlen)
8616 (grub_xasprintf, grub_xvasprintf): Likewise.
8617 * include/grub/emu/misc.h (xasprintf): Remove duplicate prototype.
8618
0806b63c
RM
86192010-07-29 Robert Millan <rmh@gnu.org>
8620
8621 * util/grub-probe.c (PRINT_FS_LABEL): New enum value.
8622 (probe): Handle `PRINT_FS_LABEL'.
8623 (main): Handle `-t fs_label'.
8624
9f841f5c
RM
86252010-07-29 Robert Millan <rmh@gnu.org>
8626
8627 * configure.ac: Remove grub-mkisofs checks.
8628
46371121
VS
86292010-07-28 Vladimir Serbinenko <phcoder@gmail.com>
8630
8631 * util/ieee1275/grub-install.in: Don't use empty grub_device.
8632 Reported by: Lennart Sorensen.
8633
86342010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
8635
8636 * util/grub.d/00_header.in: Remove compatibility with terminal.mod
8637 prior to terminal_input/terminal_output separation. It's been over 1.5
8638 years and those versions weren't widely deployed.
8639
a9600892
CW
86402010-07-22 Colin Watson <cjwatson@ubuntu.com>
8641
8642 * disk/raid.c (insert_array): Don't count named arrays when looking
8643 for unused array numbers.
697e053c 8644 Reported and tested by: Michael Guntsche.
a9600892 8645
c03507df
CW
86462010-07-20 Colin Watson <cjwatson@ubuntu.com>
8647
8648 * bus/usb/emu/usb.c (grub_usb_poll_devices): Add a dummy
8649 implementation of this so that grub-emu links again, with a note
8650 that this should support hotplugging in the future.
8651
b26f1c11
CW
86522010-07-20 Colin Watson <cjwatson@ubuntu.com>
8653
8654 * kern/emu/getroot.c (grub_util_get_grub_dev): Use xasprintf.
8655
efc9d7f1
CW
86562010-07-20 Colin Watson <cjwatson@ubuntu.com>
8657
8658 * disk/loopback.c (grub_cmd_loopback): Don't leak a grub_file_t
8659 handle on failure.
8660 (grub_loopback_close): Remove empty function.
8661 (grub_loopback_dev): Remove close method.
8662
dd8ff5c9
CW
86632010-07-20 Colin Watson <cjwatson@ubuntu.com>
8664
8665 Disable EFI cursor when the EFI console becomes inactive.
8666
8667 * term/efi/console.c (grub_efi_console_init): New function.
8668 (grub_efi_console_fini): New function.
8669 (grub_console_term_output): Register init and fini methods.
8670
5e3bec67
VS
86712010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
8672
8673 * tests/util/grub-shell-tester.in: Remove bashism and declare as
8674 sh script.
8675
afaec079
VS
86762010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
8677
8678 * disk/loopback.c (grub_loopback): Replace filename with file.
8679 (delete_loopback): Handle new semantics.
8680 (grub_cmd_loopback): Likewise.
8681 (grub_loopback_iterate): Likewise.
8682 (grub_loopback_close): Likewise.
8683
a6a11f3c
VS
86842010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
8685
8686 * util/i386/efi/grub-install.in: Revert to platform-specific behaviour
8687 with -p "".
8688 Reported by: Tito Keitel.
8689
64a638b0
VS
86902010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
8691
8692 * docs/grub.texi (Naming convention): Document new naming convention.
8693
ab8ba957
VS
86942010-07-20 Vadim Solomin <vadic052@gmail.com>
86952010-07-20 Colin Watson <cjwatson@ubuntu.com>
8696
8697 Generate device.map in something closer to the old ordering.
8698
8699 * util/deviceiter.c (struct device): New declaration.
8700 (compare_file_names): Rename to ...
8701 (compare_devices): ... this. Sort by kernel name in preference to
8702 the stable by-id name, but keep the latter as a fallback comparison.
8703 Update header comment.
8704 (grub_util_iterate_devices) [__linux__]: Construct and sort an array
8705 of `struct device' rather than of plain file names.
8706
a29d6a4b
TF
87072010-07-20 Thomas Frauendorfer <Thomas.Frauendorfer@googlemail.com>
8708
8709 * lib/i386/relocator_asm.S [! __x86_64__]: Don't try to disable amd64
8710 on i386.
8711
39d824e8
VS
87122010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
8713
8714 * commands/acpi.c (setup_common_tables): Use sizeof instead of
8715 hardcoding size.
8716 (setv1table): Likewise.
8717
f058276b
FZ
87182010-07-20 Colin Watson <cjwatson@ubuntu.com>
8719
8720 * disk/raid.c (insert_array): Use md/%s to name mdadm 1.x devices,
8721 removing the homehost if present.
8722 * kern/emu/getroot.c (get_mdadm_name) [__linux__]: New function.
8723 (grub_util_get_grub_dev): Use md/%s to name mdadm 1.x devices,
8724 removing the homehost if present.
8725 (grub_util_get_grub_dev) [__linux__]: Get the array name from mdadm
8726 if possible.
8727 * util/i386/pc/grub-setup.c (main): Handle md/* devices.
8728
8729 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Add start_sector
8730 parameter. Set its pointer target to 0.
8731 * disk/mdraid_linux.c (grub_mdraid_detect): Add start_sector
8732 parameter. Set its pointer target to 0 for 0.9 metadata, or to the
8733 `data_offset' value from the superblock for 1.x metadata.
8734 * disk/raid.c (grub_raid_read): Offset reads by the start sector of
8735 data on the device.
8736 (insert_array): Record the start sector of data on the device.
8737 (grub_raid_register): Pass start_sector parameters to
8738 grub_raid_list->detect and insert_array.
8739 * include/grub/raid.h (struct grub_raid_array): Add start_sector
8740 member.
8741 (struct grub_raid): Add start_sector parameter to `detect'.
8742
8743 * disk/mdraid_linux.c (struct grub_raid_super_1x): Remove
8744 __attribute__ ((packed)), leaving a comment.
8745 (grub_mdraid_detect): Split out 0.9 and 1.x detection to ...
8746 (grub_mdraid_detect_09): ... here and ...
8747 (grub_mdraid_detect_1x): ... here.
8748
87492010-07-20 Peter Henn <peter.henn@web.de>
8750
8751 * disk/mdraid_linux.c (grub_mdraid_detect): Fix calculation of 1.x
8752 chunk size and disk size, which are already given as sector counts
8753 as distinct from the 0.90 units. Fetch the correct device number
8754 from the role table instead of using the table index.
8755
87562010-07-20 Felix Zielcke <fzielcke@z-51.de>
8757
8758 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Set array->name to NULL.
8759 * disk/mdraid_linux.c (grub_raid_super_1x): New structure.
8760 (WriteMostly1): New macro.
8761 Set array->name to NULL for metadata format 0.90. Add support for
8762 metadata 1.x. Fix some comments.
8763 * disk/raid.c (): Add support for name based RAID arrays. Fix a
8764 few comments.
8765 * util/getroot.c (grub_util_get_grub_dev): Add support for
8766 /dev/md/name style devices.
8767
4b761da9
CW
87682010-07-20 Colin Watson <cjwatson@ubuntu.com>
8769
8770 * .bzrignore: Ignore 20_linux_xen.
8771
5771289a
CW
87722010-07-17 Colin Watson <cjwatson@ubuntu.com>
8773
8774 * util/import_unicode.py: Remove unnecessary imports.
8775
5dab68df
AN
87762010-07-17 Aleš Nesrsta <starous@volny.cz>
8777
8778 Hotplugging and USB hub support.
8779
8780 * bus/usb/ohci.c (grub_ohci_td): Add convenience fields.
8781 (grub_ohci): Likewise.
8782 (GRUB_OHCI_REG_CONTROL_BULK_ENABLE): New definition.
8783 (GRUB_OHCI_REG_CONTROL_CONTROL_ENABLE): Likewise.
8784 (GRUB_OHCI_RESET_CONNECT_CHANGE): Likewise.
8785 (GRUB_OHCI_CTRL_EDS): Likewise.
8786 (GRUB_OHCI_BULK_EDS): Likewise.
8787 (GRUB_OHCI_TDS): Likewise.
8788 (GRUB_OHCI_ED_ADDR_MASK): Likewise.
8789 (grub_ohci_ed_phys2virt): New function.
8790 (grub_ohci_virt_to_phys): Likewise.
8791 (grub_ohci_td_phys2virt): Likewise.
8792 (grub_ohci_td_virt2phys): Likewise.
8793 (grub_ohci_pci_iter): Allocate memory and don't wait for stable
8794 attachment.
8795 (grub_ohci_find_ed): New function.
8796 (grub_ohci_alloc_td): Likewise.
8797 (grub_ohci_free_td): Likewise.
8798 (grub_ohci_free_tds): Likewise.
8799 (grub_ohci_transfer): Use previously allocated memory.
8800 (grub_ohci_portstatus): Reset status changed bit.
8801 (grub_ohci_detect_dev): Supply status changed.
8802 (grub_ohci_fini_hw): Free memory.
8803 (grub_ohci_restore_hw): Reallocate memory.
8804 * bus/usb/uhci.c (grub_uhci_portstatus): Don't reset on disable.
8805 Reset status change.
8806 (grub_uhci_detect_dev): Supply status_change.
8807 * bus/usb/usb.c (attach_hooks): New var.
8808 (grub_usb_device_attach): New function.
8809 (grub_usb_register_attach_hook_class): Likewise.
8810 (grub_usb_unregister_attach_hook_class): Likewise.
8811 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Handle errors correctly.
8812 (grub_usb_add_hub): Reset connection changed bit.
8813 (attach_root_port): New function.
8814 (grub_usb_root_hub): Likewise.
8815 (poll_nonroot_hub): Likewise.
8816 (grub_usb_poll_devices): Likewise.
8817 * commands/usbtest.c (grub_cmd_usbtest): Poll devices before listing.
8818 * disk/usbms.c (grub_usbms_open): Use device hooks.
8819 (grub_usbms_iterate) :Poll devices.
8820 (grub_usbms_finddevs): Split into ...
8821 (grub_usbms_attach): ... this ...
8822 (grub_usbms_attach): ... and this.
8823 * include/grub/usb.h (grub_usb_controller_dev): Supply status_changed
8824 in detect_dev.
8825 (grub_usb_interface): New fields attached and detach_hook.
8826 (grub_usb_attach_hook_class): New type.
8827 (grub_usb_attach_desc): New struct.
8828 (grub_usb_register_attach_hook_class): New function.
8829 (grub_usb_unregister_attach_hook_class): Likewise.
8830 (grub_usb_poll_devices): Likewise.
8831 (grub_usb_device_attach): Likewise.
8832 * include/grub/usbtrans.h (GRUB_USB_HUB_FEATURE_C_CONNECTED): New const.
8833 (GRUB_USB_HUB_STATUS_C_CONNECTED): Likewise.
8834
3222efaf
VS
88352010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
8836
8837 * include/grub/bsdlabel.h (GRUB_PC_PARTITION_BSD_LABEL_WHOLE_DISK_PARTITION): New definition.
8838 * partmap/bsdlabel.c (bsdlabel_partition_map_iterate): Use FreeBSD
8839 delta determination style. Works with most NetBSD partitions too.
8840
139b714a
VS
88412010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
8842
8843 * kern/partition.c [GRUB_UTIL]: Add missing util/misc.h inclusion.
8844 * partmap/bsdlabel.c [GRUB_UTIL]: Likewise.
8845
986aad56
VS
88462010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
8847
8848 * disk/scsi.c (grub_scsi_open): Fix incorrect pointer dereference.
8849
99be513c
AB
88502010-07-14 Anton Blanchard <anton@samba.org>
8851
8852 * loader/powerpc/ieee1275/linux.c (grub_cmd_linux): Do not reject
8853 ET_DYN files.
8854
18075f62
GS
88552010-07-14 Grégoire Sutre <gregoire.sutre@gmail.com>
8856
8857 * Makefile.in: Use the substituted @USE_NLS@ instead of ENABLE_NLS.
8858
8d9a5b15
GS
88592010-07-14 Grégoire Sutre <gregoire.sutre@gmail.com>
8860
8861 * kern/partition.c (grub_partition_check_containment): New function to
8862 check that a partition is physically contained in a parent. Since
8863 offsets are relative (and non-negative), this reduces to checking that
8864 the partition ends before its parent.
8865 (grub_partition_map_probe): Discard out-of-range sub-partitions.
8866 (grub_partition_iterate): Likewise.
8867 * include/grub/partition.h (grub_partition_map): Slightly more detailed
8868 comments.
8869 * partmap/bsdlabel.c (bsdlabel_partition_map_iterate): Discard
8870 partitions that start before their parent, and add debug printfs.
8871
19563c25
CW
88722010-07-13 Colin Watson <cjwatson@ubuntu.com>
8873
8874 * Makefile.in (.SUFFIX): Spell correctly, as ...
8875 (.SUFFIXES): ... this. Fixes bug where `make foo' (where foo is a
8876 bare module name without `.mod', e.g. `test') tried to invoke a
8877 Modula-2 compiler.
8878
1a1f1e67
CW
88792010-07-13 Colin Watson <cjwatson@ubuntu.com>
8880
8881 * README: Point to the Info manual.
8882
811b0dca
JS
88832010-07-13 Jiro SEKIBA <jir@unicus.jp>
8884
8885 * fs/nilfs2.c: fix macro NILFS_2ND_SUPER_BLOCK to calculate
8886 2nd superblock position from partition size.
8887
e4f4eafc
CW
88882010-07-10 Colin Watson <cjwatson@ubuntu.com>
8889
8890 * Makefile.in (MAINTAINER_CLEANFILES): Remove
8891 unicode/UnicodeData.txt, unicode/BidiMirroring.txt, and
8892 unicode/ArabicShaping.txt again; these are inputs to autogen.sh, not
8893 outputs.
8894
4274c30f
VS
88952010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
8896
8897 Restructure SCSI .id handling.
8898 Reported and tested by: Aleš Nesrsta.
8899
8900 * disk/ata.c (grub_atapi_close): Removed. All users updated.
8901 (grub_atapi_dev): Changed .name to "ata". New field .id.
8902 * disk/usbms.c (grub_usbms_close): Removed. All users updated.
8903 (grub_usbms_dev): New field .id.
8904 * disk/scsi.c (grub_scsi_iterate): Generate name.
8905 (grub_scsi_open): Parse name.
8906 * include/grub/scsi.h (grub_make_scsi_id): New function.
8907 (grub_scsi_dev): Change iterate and open to number instead of naming
8908 busses. All users updated.
8909 (grub_scsi): Remove name. Add .bus.
8910
5bc24388
VS
89112010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
8912
8913 * commands/help.c (grub_cmd_help): Fix a typo.
8914
249975ba
VS
89152010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
8916
8917 * normal/term.c (put_glyphs_terminal): Fix state->num_lines counting.
8918 Reported and tested by: Colin Watson.
8919
3eaac1a1
VS
89202010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
8921
8922 * util/grub-mkrescue.in: Don't use tar GNU-ism since it's not necessary
8923 in this context.
8924
becce1b1
VS
89252010-07-07 Vladimir Serbinenko <phcoder@gmail.com>
8926
8927 * tests/util/grub-shell.in: Remove bashisms and declare as sh script.
8928
f7bf0918
CW
89292010-07-07 Colin Watson <cjwatson@ubuntu.com>
8930
8931 * term/gfxterm.c (grub_gfxterm_background_image_cmd): Fix
8932 indentation.
8933
0b0f9620
CW
89342010-07-06 Colin Watson <cjwatson@ubuntu.com>
8935
8936 * conf/common.rmk (grub_probe_SOURCES): Add disk/raid5_recover.c
8937 and disk/raid6_recover.c.
8938 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
8939 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Likewise.
8940
1e545469
CW
89412010-07-06 Colin Watson <cjwatson@ubuntu.com>
8942
8943 * term/gfxterm.c (repaint_schedulded): Rename to ...
8944 (repaint_scheduled): ... this. Update all callers.
8945 (repaint_was_schedulded): Rename to ...
8946 (repaint_was_scheduled): ... this. Update all callers.
8947
5357687a
CW
89482010-07-06 Colin Watson <cjwatson@ubuntu.com>
8949
8950 * util/deviceiter.c (grub_util_iterate_devices): Skip MD devices,
8951 which we expect to be handled by upper layers.
8952
29d7e783
BC
89532010-07-06 BVK Chaitanya <bvk.groups@gmail.com>
8954
8955 * bus/usb/usbhub.c: #include time.h header.
8956
37582066
CW
89572010-07-06 Colin Watson <cjwatson@ubuntu.com>
8958
8959 * fs/reiserfs.c (grub_reiserfs_iterate_dir): Zero out first byte of
8960 entry_name also for entries without stat blocks (e.g. ".."); fixes
8961 corruption of the first entry in a directory.
8962
c8c06953
CW
89632010-07-06 Colin Watson <cjwatson@ubuntu.com>
8964
8965 * util/grub.d/00_header.in: Process GRUB_THEME and GRUB_BACKGROUND
8966 after setting gfxterm as the active terminal. GRUB_BACKGROUND
8967 doesn't work otherwise.
8968
e75056f1
CW
89692010-07-05 Colin Watson <cjwatson@ubuntu.com>
8970
8971 * docs/grub.texi (Features): Update list of supported file systems.
8972 (GNU/Linux): Update for GRUB 2.
8973 (Serial terminal): Remove mention of --disable-serial, which was a
8974 GRUB Legacy configure option. Update instructions to use
8975 `terminal_input' and `terminal_output' rather than `terminal'.
8976 (Vendor power-on keys): Copy-edit. Add cross-references to `Simple
8977 configuration' and `Installing GRUB using grub-install'.
8978 (Menu entry editor): Update for GRUB 2.
8979 (terminfo): Add vt100-color, ieee1275, and dumb terminal types.
8980 Document new -a, -u, and -v options.
8981 (initrd): New section.
8982 (initrd16): New section.
8983 (linux): New section.
8984 (linux16): New section.
8985 (search): The `var' argument to `--set' is optional.
8986 (GRUB only offers a rescue shell): Go into a little more detail on
8987 drive ordering.
8988
5cf69151
CW
89892010-07-05 Colin Watson <cjwatson@ubuntu.com>
8990
8991 * Makefile.in: Set LINGUAS to empty if ENABLE_NLS is undefined.
8992
e3f90044
CW
89932010-07-05 Colin Watson <cjwatson@ubuntu.com>
8994
8995 * Makefile.in (MAINTAINER_CLEANFILES): Add unicode/UnicodeData.txt,
8996 unicode/BidiMirroring.txt, unicode/ArabicShaping.txt, and unidata.c.
8997
38d8f4f3
CW
89982010-07-05 Colin Watson <cjwatson@ubuntu.com>
8999
9000 * util/i386/pc/grub-setup.c (setup): Rename prefix to
9001 install_prefix, in line with install_dos_part and install_bsd_part.
9002 Add new prefix variable, which is copied to install_prefix after
9003 comparing core.img in memory with the one read from disk in the
9004 no-embedding case, and use that rather than overwriting
9005 install_prefix immediately when installing to a partition.
9006 Fixes Debian bug #586621; based on patches by Matt Kraai and M. Vefa
9007 Bicakci.
9008
57ebd41e
GS
90092010-07-04 Grégoire Sutre <gregoire.sutre@gmail.com>
9010
9011 * configure.ac: Avoid == in test command, it's not portable.
9012 * util/grub.d/30_os-prober.in: Likewise.
9013
cb7f64b2
CW
90142010-07-04 Colin Watson <cjwatson@ubuntu.com>
9015
9016 * kern/emu/getroot.c [__GNU__]: Include <sys/mman.h> for munmap.
9017
6b654bb0
GS
90182010-07-04 Grégoire Sutre <gregoire.sutre@gmail.com>
9019
9020 * util/i386/pc/grub-setup.c (setup): Do not embed when there are
9021 multiple (top-level) partmaps.
9022
72a2026d
VS
90232010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
9024
9025 * util/i386/efi/grub-install.in: Don't use empty grub_device.
fcda2a1f 9026 Reported by: Tino Keitel.
72a2026d 9027
df3eb88f
VS
90282010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
9029
9030 Bidi and diacritics support.
9031
9032 * Makefile.in (widthspec.bin): New target.
9033 (widthspec.h): Likewise.
9034 (TARGET_CFLAGS): Add -DHAVE_UNIFONT_WIDTHSPEC=1 if font was available.
9035 * autogen.sh: Generate unidata.c.
9036 * commands/cat.c (grub_cmd_cat): Don't use grub_putchar.
9037 * commands/ls.c (grub_ls_list_devices): Likewise.
9038 (grub_ls_list_files): Likewise.
9039 * commands/minicmd.c (grub_mini_cmd_cat): Likewise.
9040 (grub_mini_cmd_lsmod): Likewise.
9041 * commands/read.c: Likewise.
9042 * kern/corecmd.c (grub_core_cmd_ls): Likewise.
9043 * kern/rescue_reader.c (grub_rescue_read_line): Likewise.
9044 * lib/arg.c (grub_arg_show_help): Likewise.
9045 * lib/crypto.c (grub_password_get): Likewise.
9046 * normal/auth.c (grub_username_get): Likewise.
9047 * normal/misc.c (grub_normal_print_device_info): Likewise.
9048 * commands/help.c (grub_cmd_help): Use grub_unicode_aglomerate_comb.
9049 * conf/common.rmk (grub_mkfont_SOURCES): Add unidata.c.
9050 (gfxmenu_mod_SOURCES): Add gfxmenu/font.c.
9051 (normal/charset.c_DEPENDENCIES): New variable.
9052 (normal_mod_SOURCES): Add normal/charset.c and unidata.c.
9053 (pkglib_MODULES): Remove charset.mod.
9054 (charset_mod_SOURCES): Removed.
9055 (charset_mod_CFLAGS): Likewise.
9056 (charset_mod_LDFLAGS): Likewise.
9057 (pkglib_MODULES) [ieee1275]: Remove terminfo.mod.
9058 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Add term/terminfo.c
9059 and term/tparm.c.
9060 * conf/sparc64-ieee1275.rmk (kernel_img_SOURCES): Likewise.
9061 * conf/i386-ieee1275.rmk (kernel_img_SOURCES): Likewise.
9062 (kernel_img_HEADERS): Add terminfo.h.
9063 * font/font.c (ascii_glyph_lookup): Return NULL on failure.
9064 Fill ->font. Reverse ascii bitmaps.
9065 (grub_font_get_xheight): New function.
9066 * font/font.c (grub_font_get_string_width): Moved from here ...
9067 * gfxmenu/font.c (grub_font_get_string_width): ... here.
9068 * font/font.c (grub_font_draw_string): Moved from here ...
9069 * gfxmenu/font.c (grub_font_draw_string): ... here.
9070 * font/font.c (grub_font_dup_glyph): New function.
9071 (grub_font_blit_glyph): Likewise.
9072 (grub_font_blit_glyph_mirror): Likewise.
9073 (blit_comb): Likewise.
9074 (grub_font_construct_dry_run): Likewise.
9075 (grub_font_get_constructed_device_width): Likewise.
9076 (grub_font_construct_glyph): Likewise.
9077 * include/grub/charset.h (grub_ucs4_to_utf8): New proto.
9078 * include/grub/misc.h (grub_utf8_to_ucs4): Moved from here ...
9079 * include/grub/charset.h (grub_utf8_to_ucs4): ... here.
9080 * include/grub/font.h (GRUB_FONT_CODE_CHAR_MASK): New constant.
9081 (GRUB_FONT_CODE_RIGHT_JOINED): Likewise.
9082 (GRUB_FONT_CODE_LEFT_JOINED): Likewise.
9083 (grub_font_get_xheight): New proto.
9084 (grub_font_get_constructed_device_width): Likewise.
9085 (grub_font_construct_glyph): Likewise.
9086 * include/grub/font.h (grub_font_get_string_width): Moved from here ...
9087 * include/grub/gfxmenu_view.h (grub_font_get_string_width): ... here.
9088 * include/grub/font.h (grub_font_draw_string): Moved from here ...
9089 * include/grub/gfxmenu_view.h (grub_font_draw_string): ... here.
9090 * include/grub/i386/vga_common.h (grub_console_putchar): Moved from here..
9091 * include/grub/i386/pc/console.h (grub_console_putchar): ... here.
9092 * include/grub/i386/vga_common.h (grub_console_real_putchar): Removed.
9093 (grub_console_getcharwidth): Likewise.
9094 * include/grub/misc.h (grub_xputs): New proto.
9095 (grub_puts): Inlined.
9096 * include/grub/normal.h (grub_print_ucs4): Add margin specification.
9097 (grub_normal_get_line_counter): Removed.
9098 (grub_install_newline_hook): Likewise.
9099 (grub_normal_get_char_counter): New proto.
9100 (grub_normal_reset_more): Likewise.
9101 (grub_xputs_normal): Likewise.
9102 * include/grub/powerpc/ieee1275/console.h: Removed.
9103 * include/grub/sparc64/ieee1275/console.h: Likewise.
9104 * include/grub/term.h (GRUB_TERM_CODE_TYPE_MASK): New definition.
9105 (GRUB_TERM_CODE_TYPE_ASCII): Likewise.
9106 (GRUB_TERM_CODE_TYPE_CP437): Likewise.
9107 (GRUB_TERM_CODE_TYPE_UTF8_LOGICAL): Likewise.
9108 (GRUB_TERM_CODE_TYPE_UTF8_VISUAL): Likewise.
9109 (GRUB_TERM_CODE_TYPE_VISUAL_GLYPHS): Likewise.
9110 (grub_term_input): Pass reference to self. All users updated.
9111 (grub_term_output): Pass grub_unicode_glyph to putchar and getcharwidth.
9112 Pass reference to self. New fields normal_color, highlight_color and
9113 data. All users updated.
9114 (grub_putchar): Removed.
9115 (grub_putcode): Remove EXPORT_FUNC since it's not in kernel anymore.
9116 (grub_unicode_estimate_width): New function.
9117 (grub_term_getcharwidth): Add defaults.
9118 (GRUB_TERM_DEFAULT_NORMAL_COLOR): New definition.
9119 (GRUB_TERM_DEFAULT_HIGHLIGHT_COLOR): Likewise.
9120 (GRUB_TERM_DEFAULT_STANDARD_COLOR): Likewise.
9121 (grub_cls): Remove EXPORT_FUNC.
9122 (grub_setcolorstate): Inline.
9123 (grub_newline_hook): Removed.
9124 * include/grub/terminfo.h: Rewritten. All users updated.
9125 * include/grub/unicode.h: New file.
9126 * include/grub/video.h (grub_video_signed_rect): New type.
9127 * kern/emu/console.c (grub_console_highlight_color): Removed.
9128 (grub_console_normal_color): Likewise.
9129 (grub_console_standard_color): Made static.
9130 (grub_ncurses_putchar): Remove mapping.
9131 (grub_ncurses_getcharwidth): Removed.
9132 (grub_ncurses_term_output): Declare as GRUB_TERM_CODE_TYPE_ASCII.
9133 (grub_ncurses_setcolor): Removed.
9134 (grub_ncurses_getcolor): Likewise.
9135 * kern/i386/pc/startup.S (grub_console_real_putchar): Renamed to ...
9136 (grub_console_putchar): ... this.
9137 (grub_console_putchar): Handle argument difference.
9138 * kern/ieee1275/init.c (grub_machine_init): Split console_init into
9139 console_init_early and console_init_lately.
9140 * kern/sparc64/ieee1275/init.c (grub_machine_init): Likewise.
9141 * kern/misc.c (grub_puts): Removed.
9142 (grub_vprintf): Store UTF-8 string instead of outputting it directly.
9143 (grub_vsnprintf_real): Remove str = NULL support.
9144 * kern/misc.c (grub_utf8_to_ucs4): Move from here ...
9145 * normal/charset.c (grub_utf8_to_ucs4): ... here.
9146 * kern/term.c (grub_putcode): Renamed to ...
9147 (grub_putcode_dumb): ... this. Pass grub_unicode_glyph instead of code.
9148 (grub_putchar): Removed.
9149 (grub_xputs_dumb): New function.
9150 (grub_xputs): New variable.
9151 * lib/charset.c: Move from here ...
9152 * normal/charset.c: ... to here.
9153 (grub_ucs4_to_utf8): New function.
9154 (grub_ucs4_to_utf8_alloc): Use grub_ucs4_to_utf8.
9155 (join_types): New variable.
9156 (unpack_join): New function.
9157 (bidi_types): New variable.
9158 (unpack_bidi): New function.
9159 (get_bidi_type): Likewise.
9160 (get_join_type): Likewise.
9161 (is_mirrored): Likewise.
9162 (grub_unicode_get_comb_type): Likewise.
9163 (grub_unicode_estimate_width) [HAVE_UNIFONT_WIDTHSPEC]: Likewise.
9164 (is_type_after): Likewise.
9165 (grub_unicode_aglomerate_comb): Likewise.
9166 (bidi_line_wrap): Likewise.
9167 (grub_bidi_line_logical_to_visual): Likewise.
9168 (grub_bidi_logical_to_visual): Likewise.
9169 (grub_unicode_mirror_code): Likewise.
9170 (grub_unicode_shape_code): Likewise.
9171 * normal/cmdline.c (grub_cmdline_get): Reset more counter.
9172 Don't use grub_putchar.
9173 * normal/main.c (grub_normal_init_page): Use grub_putcode.
9174 (grub_normal_reader_init): Likewise.
9175 (grub_xputs_saved): New variable.
9176 (GRUB_MOD_INIT): Set grub_xputs.
9177 (GRUB_MOD_FINI): Restore grub_xputs.
9178 * normal/menu.c (grub_wait_after_message): Don't use grub_putchar.
9179 (menu_init): Avoid printing gfxmenu error.
9180 (show_menu): Use grub_normal_get_char_counter.
9181 * normal/menu_entry.c (update_screen): Fix out-of-array.
9182 (complete): Avoid NULL dereferencing.
9183 * grub_menu_entry_run (grub_menu_entry_run): Don't use putchar.
9184 * normal/menu_text.c (print_spaces): Removed.
9185 (grub_print_ucs4): Likewise.
9186 (grub_print_message_indented): Use grub_print_ucs4.
9187 (print_message): Use grub_putcode.
9188 (print_entry): Hanlde diacritics.
9189 * normal/term.c (term_state): New type.
9190 (grub_more_lines): Removed.
9191 (term_states): New variable.
9192 (grub_normal_line_counter): Renamed to ..
9193 (grub_normal_char_counter): ...this. All users updated.
9194 (grub_normal_get_line_counter): Renamed to ...
9195 (grub_normal_get_char_counter): ... this.
9196 (grub_normal_reset_more): New function.
9197 (process_newline): Removed.
9198 (print_more): New function.
9199 (grub_install_newline_hook): Removed.
9200 (map_code): New function.
9201 (grub_puts_terminal): Use grub_print_ucs4.
9202 (putglyph): New function.
9203 (putcode_real): Likewise.
9204 (grub_putcode): Use putcode_real.
9205 (get_maxwidth): New function.
9206 (get_startwidth): Likewise.
9207 (print_ucs4_terminal): Likewise.
9208 (find_term_state): Likewise.
9209 (put_glyphs_terminal): Likewise.
9210 (print_backlog): Likewise.
9211 (print_ucs4_real): Likewise.
9212 (grub_print_ucs4): Likewise.
9213 (grub_xputs_normal): Likewise.
9214 * term/efi/console.c (grub_console_putchar): Output diacritics.
9215 (grub_console_getcharwidth): Removed.
9216 (grub_console_term_output): Declare as GRUB_TERM_CODE_TYPE_UCS4_VISUAL.
9217 * term/gfxterm.c (clear_char): Free chars.
9218 (scroll_up): Avoid leaking memory.
9219 (grub_gfxterm_putchar): Support diacritics.
9220 (grub_video_term): Declare as GRUB_TERM_CODE_TYPE_UCS4_VISUAL.
9221 * term/i386/pc/console.c (grub_console_term_output): Declare as
9222 GRUB_TERM_CODE_TYPE_VGA.
9223 * term/i386/pc/vga.c (grub_vga_term): Declare as
9224 GRUB_TERM_CODE_TYPE_VISUAL_GLYPHS.
9225 * term/i386/pc/vga_text.c (grub_vga_text_term): Declare as
9226 GRUB_TERM_CODE_TYPE_VGA.
9227 * term/i386/vga_common.c (map_char): Removed.
9228 (grub_console_putchar): Likewise.
9229 (grub_console_getcharwidth): Likewise.
9230 * term/ieee1275/ofconsole.c: Simplify using terminfo.
9231 (colors): Reordered to match terminfo.
9232 (grub_ofconsole_normal_color): Removed.
9233 (grub_ofconsole_writeesc): Likewise.
9234 (grub_ofconsole_highlight_color): Likewise.
9235 (grub_ofconsole_getcharwidth): Likewise.
9236 (grub_ofconsole_setcolorstate): Likewise.
9237 (grub_ofconsole_setcolor): Likewise.
9238 (grub_ofconsole_getcolor): Likewise.
9239 (grub_ofconsole_readkey): Renamed to ...
9240 (readkey): ... this. Remove escape sequence handling. Return -1 on no
9241 key.
9242 (grub_ofconsole_checkkey): Removed.
9243 (grub_ofconsole_getkey): Likewise.
9244 (grub_ofconsole_getxy): Likewise.
9245 (grub_ofconsole_gotoxy): Likewise.
9246 (grub_ofconsole_cls): Likewise.
9247 (grub_ofconsole_refresh): Likewise.
9248 (grub_ofconsole_terminfo_input): New struct.
9249 (grub_ofconsole_terminfo_output): Likewise.
9250 (grub_ofconsole_term_input): Use terminfo.
9251 (grub_ofconsole_term_output): Likewise.
9252 (grub_console_init): Split into ...
9253 (grub_console_init_early): ...this and ...
9254 (grub_console_init_lately): ...this. Use terminfo.
9255 (grub_ofconsole_putchar): Renamed to ...
9256 (put): ... this. Remove mapping.
9257 (grub_ofconsole_term_output): Declare as GRUB_TERM_CODE_TYPE_ASCII.
9258 * term/serial.c: Simplify using terminfo.
9259 (xpos): Removed.
9260 (ypos): Likewise.
9261 (keep_track): Likewise.
9262 (registered): Likewise.
9263 (input_buf): Likewise.
9264 (npending): Likewise.
9265 (serial_translate_key_sequence): Likewise.
9266 (fill_input_buf): Likewise.
9267 (grub_serial_checkkey): Likewise.
9268 (grub_serial_getkey): Likewise.
9269 (grub_serial_getxy): Likewise.
9270 (grub_serial_gotoxy): Likewise.
9271 (grub_serial_putchar): Likewise.
9272 (grub_serial_cls): Likewise.
9273 (grub_serial_setcolorstate): Likewise.
9274 (grub_serial_setcursor): Likewise.
9275 (serial_hw_init): Use serial_hw_fetch.
9276 (grub_serial_terminfo_input): New variable.
9277 (grub_serial_terminfo_output): Likewise.
9278 (grub_serial_term_input): Use terminfo.
9279 (grub_serial_term_output): Likewise.
9280 * term/terminfo.c (putstr): Use put.
9281 (grub_terminfo_all_free): New function
9282 (grub_terminfo_set_current): New types vt100-color, ieee1275 and dumb.
9283 (grub_terminfo_output_register): New function.
9284 (grub_terminfo_output_unregister): Likewise.
9285 (grub_terminfo_getxy): Likewise.
9286 (grub_terminfo_readkey): Likewise.
9287 (grub_terminfo_checkkey): Likewise.
9288 (grub_terminfo_getkey): Likewise.
9289 (grub_terminfo_input_init): Likewise.
9290 (print_terminfo): Likewise.
9291 (grub_cmd_terminfo): Handle encoding.
9292 (grub_terminfo_gotoxy): Track position.
9293 (grub_terminfo_cls): Likewise.
9294 (grub_terminfo_putchar): Likewise.
9295 (grub_terminfo_setcolorstate): Handle colors
9296 (grub_terminfo_cursor_on): This ...
9297 (grub_terminfo_cursor_off): ... and this merged into ...
9298 (grub_terminfo_setcursor): ... this.
9299 * term/tparm.c (grub_terminfo_tparm): Avoid NULL dereferencing.
9300 * unicode/ArabicShaping.txt: New file (imported from Unicode).
9301 * unicode/BidiMirroring.txt: Likewise.
9302 * unicode/UnicodeData.txt: Likewise.
9303 * unicode/COPYING: Likewise.
9304 * util/grub-editenv.c (grub_putchar): Removed.
9305 (grub_xputs_real): New function.
9306 (grub_xputs): New variable.
9307 * util/grub-fstest.c (grub_putchar): Removed.
9308 (grub_xputs_real): New function.
9309 (grub_xputs): New variable.
9310 * util/grub-mkdevicemap.c (grub_putchar): Removed.
9311 (grub_xputs_real): New function.
9312 (grub_xputs): New variable.
9313 * util/grub-probe.c (grub_putchar): Removed.
9314 (grub_xputs_real): New function.
9315 (grub_xputs): New variable.
9316 * util/grub-script-check.c (grub_putchar): Removed.
9317 (grub_xputs_real): New function.
9318 (grub_xputs): New variable.
9319 * util/i386/pc/grub-setup.c (grub_putchar): Removed.
9320 (grub_xputs_real): New function.
9321 (grub_xputs): New variable.
9322 * util/import_unicode.py: New file.
9323 * util/grub-mkfont.c (ft_errmsgs): New array.
9324 (grub_glyph_info): Make bitmap a pointer.
9325 (file_formats): New type WIDTH_SPEC.
9326 (grub_font_info): New members glyphs_unsorted, glyphs_sorted, num_glyphs.
9327 (options): Add width-spec.
9328 (help): Likewise.
9329 (add_char): Renamed to ...
9330 (add_glyph): ... this.
9331 (add_glyph): Use index. Show freetype errors. Cut blank space at borders.
9332 (glyph_replace): New type.
9333 (subst_rightjoin), (subst_leftjoin), (subst_medijoin): New variables.
9334 (add_char): New function.
9335 (add_subst): Likewise.
9336 (process_cursive): Likewise.
9337 (add_font): Handle GSUB.
9338 (write_font_width_spec): New function.
9339 (main): Sort glyphs.
9340 * commands/minicmd.c (grub_mini_cmd_clear): Moved from here ...
9341 * normal/main.c (grub_mini_cmd_clear): ..here. All users updated.
9342 * kern/term.c (grub_cls): Moved from here...
9343 * normal/term.c (grub_cls): ... here.
9344
50f0bcda
CW
93452010-07-02 Colin Watson <cjwatson@ubuntu.com>
9346
9347 * include/grub/types.h: Define the C99-style PRIxGRUB_SIZE macro,
9348 suitable for using within the format argument of printf when
9349 converting grub_size_t.
9350 * disk/usbms.c (grub_usbms_transfer): Use PRIxGRUB_SIZE rather than
9351 "x" to convert grub_size_t arguments.
9352
40372103
VS
93532010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
9354
9355 * gfxmenu/gui_list.c (draw_menu): Use viewport to simplify code and fix
9356 too long captions.
9357 (list_get_minimal_size): Take selection box into account.
9358
942a10c7
VS
93592010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
9360
9361 * font/font.c (grub_font_get_glyph_with_fallback): Avoid dereferencing
9362 NULL font.
9363
2bdb2892
CW
93642010-07-02 Colin Watson <cjwatson@ubuntu.com>
9365
9366 * util/deviceiter.c (grub_util_iterate_devices): Skip device-mapper
9367 devices when iterating over /dev/disk/by-id; they will be handled
9368 later if appropriate, which they aren't always (e.g. LVM).
9369
e03ed6c1
CW
93702010-07-02 Colin Watson <cjwatson@ubuntu.com>
9371
9372 * include/grub/misc.h (grub_reboot): Declare as noreturn.
9373 * kern/efi/efi.c (grub_reboot): Don't return, even if reset_system
9374 fails.
9375 (grub_halt): Likewise.
9376 * kern/ieee1275/openfw.c (grub_reboot): Don't return, even if
9377 reset-all fails.
9378 (grub_halt): Don't return, even if all of shut-down, power-off, and
9379 poweroff fail.
9380
47695765
CW
93812010-07-02 Colin Watson <cjwatson@ubuntu.com>
9382
9383 * kern/efi/init.c (grub_efi_init): set_watchdog_timer takes four
9384 arguments, not three.
9385
507736c8
CW
93862010-07-02 Colin Watson <cjwatson@ubuntu.com>
9387
9388 * util/grub-mkconfig_lib.in (uses_abstraction): New function.
9389 * util/grub.d/10_linux.in: Use it to check for LVM, so that
9390 LVM-on-RAID is handled correctly.
9391
e3c8cd37
CW
93922010-07-02 Colin Watson <cjwatson@ubuntu.com>
9393
9394 * docs/grub.texi (Changes from GRUB Legacy): New section.
9395 (Future): Fix typo.
9396
8d4a2fec
CW
93972010-07-02 Colin Watson <cjwatson@ubuntu.com>
9398
9399 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Sometimes
9400 grub.d/README accidentally ends up executable for one reason or
9401 another. Ignore it.
9402
1c4827be
VS
94032010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
9404
9405 * partmap/gpt.c (MAX_SECTOR_LOG): New definition.
9406 (gpt_partition_map_iterate): Support non-512B sectors.
9407
d9a0c941
VS
94082010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
9409
9410 * kern/efi/init.c (grub_efi_init): Disable watchdog.
9411 Tested by: Seth Goldberg.
9412
48f27e87
VS
94132010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
9414
9415 * loader/multiboot.c (grub_multiboot_boot) [GRUB_USE_MULTIBOOT2]:
9416 Properly align mbi.
9417 Reported by: Seth Goldberg.
9418
b0c4f956
VS
94192010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
9420
9421 * util/grub-mkrescue.in: Avoid module duplication.
9422
105a2e8c
SF
94232010-07-01 Sean Finney <seanius@seanius.net>
9424
9425 * util/grub.d/10_linux.in: Don't use UUID for LVM root.
9426
5944958c
SF
94272010-07-01 Sean Finney <seanius@seanius.net>
9428
9429 * disk/lvm.c (grub_lvm_scan_device): Skip snapshots.
9430
94312010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
9432
9433 * disk/lvm.c (grub_lvm_checkvalue): New function.
9434 (grub_lvm_check_flag): Likewise.
9435
b79889ba
RM
94362010-07-01 Robert Millan <rmh@gnu.org>
9437
9438 * kern/emu/hostdisk.c (convert_system_partition_to_system_disk):
9439 Support 'p' as partition separator on kernel of FreeBSD (used
9440 with GPT labels).
9441 (grub_util_biosdisk_get_grub_dev): Likewise.
9442
ec1d04f1
VS
94432010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
9444
9445 Yeeloong firmware port.
9446
9447 * boot/mips/yeeloong/fwstart.S: New file.
9448 * bus/cs5536.c (gpiodump): New const.
9449 (set_io_space): New function.
9450 (set_iod): Likewise.
9451 (set_p2d): Likewise.
9452 (grub_cs5536_init_geode): Likewise.
9453 * commands/mips/yeeloong/lsspd.c: New file.
9454 * conf/mips-qemu-mips.rmk (pkglib_MODULES): Add serial.mod.
9455 (serial_mod_SOURCES): New variable.
9456 (serial_mod_CFLAGS): Likewise.
9457 (serial_mod_LDFLAGS): Likewise.
9458 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Add term/serial.c,
9459 term/terminfo.c and term/tparm.c.
9460 (pkglib_IMAGES): Add fwstart.img.
9461 (fwstart_img_SOURCES): New variable.
9462 (fwstart_img_CFLAGS): Likewise.
9463 (fwstart_img_ASFLAGS): Likewise.
9464 (fwstart_img_LDFLAGS): Likewise.
9465 (fwstart_img_FORMAT): Likewise.
9466 (pkglib_MODULES): Add lsspd.mod.
9467 (lsspd_mod_SOURCES): New variable.
9468 (lsspd_mod_CFLAGS): Likewise.
9469 (lsspd_mod_LDFLAGS): Likewise.
9470 (pkglib_MODULES): Add halt.mod.
9471 (halt_mod_SOURCES): New variable.
9472 (halt_mod_CFLAGS): Likewise.
9473 (halt_mod_LDFLAGS): Likewise.
9474 * conf/mips.rmk (pkglib_MODULES): Remove serial.mod.
9475 (serial_mod_SOURCES): Removed.
9476 (serial_mod_CFLAGS): Likewise.
9477 (serial_mod_LDFLAGS): Likewise.
9478 * disk/ata.c (check_device): New function.
9479 (grub_ata_device_initialize): Use check_device.
9480 (grub_ata_iterate): Recheck devices.
9481 (grub_ata_open): Likewise.
9482 (grub_atapi_iterate): Likewise.
9483 (grub_atapi_open): Likewise.
9484 * include/grub/ata.h (GRUB_ATA_CH0_PORT1): New macro.
9485 (GRUB_ATA_CH1_PORT1): Likewise.
9486 (GRUB_ATA_CH0_PORT2): Likewise.
9487 (GRUB_ATA_CH1_PORT2): Likewise.
9488 * include/grub/mips/loongson.h: New file.
9489 * include/grub/mips/yeeloong/ec.h: Likewise.
9490 * include/grub/mips/yeeloong/serial.h (GRUB_MACHINE_SERIAL_PORT): New definition.
9491 (GRUB_MACHINE_SERIAL_DIVISOR_115200): Likewise.
9492 (GRUB_MACHINE_SERIAL_PORTS) [ASM_FILE]: Remove.
9493 * include/grub/misc.h (grub_halt): Declare as noreturn.
9494 * include/grub/serial.h (UART_ENABLE_FIFO): Renamed to ...
9495 (UART_ENABLE_FIFO_TRIGGER14): ... this. All users updated.
9496 (UART_ENABLE_FIFO_TRIGGER1): New definition.
9497 (UART_ENABLE_DTRRTS): Likewise.
9498 (UART_ENABLE_MODEM): Removed.
9499 (UART_ENABLE_OUT2): New const.
9500 * include/grub/term.h (grub_term_register_input_active): New function.
9501 (grub_term_register_output_active): Likewise.
9502 * kern/mips/startup.S [GRUB_MACHINE_MIPS_YEELOONG]: Handle 0xffffffff
9503 argument.
9504 * kern/mips/yeeloong/init.c (grub_get_rtc): Macroify.
9505 (init_pci): New function.
9506 (grub_machine_init): Execute platform init when firmware. Init serial.
9507 (grub_halt): Implement.
9508 (grub_exit): Likewise.
9509 (grub_reboot): Likewise.
9510 * term/serial.c (serial_hw_init): Update macros.
9511 [GRUB_MACHINE_MIPS_YEELOONG]: Init on startup.
9512 * util/grub-mkimage.c (image_target_desc): New id IMAGE_YEELOONG_FLASH.
9513 (image_targets): New target mipsel-yeeloong-flash.
9514 (generate_image): Support IMAGE_YEELOONG_FLASH.
9515 * video/sm712.c (GRUB_SM712_TOTAL_MEMORY_SPACE): New definition.
9516 (grub_video_sm712_setup): Init card.
9517 (grub_video_sm712_set_palette): Removed.
9518 * video/sm712_init.c: New file.
9519
ff4a70d2
CW
95202010-06-30 Colin Watson <cjwatson@ubuntu.com>
9521
9522 * Makefile.in (install-local): Temporarily prepend $(builddir) to
9523 PATH when running help2man and then run it on the unadorned
9524 executable names, rather than passing $(builddir)/* paths to
9525 help2man. This avoids the build directory ending up in generated
9526 manual pages.
9527
1246efeb
CW
95282010-06-29 Colin Watson <cjwatson@ubuntu.com>
9529
9530 * util/grub-mkconfig.in: Use 'set -e' rather than '#! /bin/sh -e',
9531 to avoid accidents when debugging with 'sh -x'.
9532 * util/grub-mkrescue.in: Likewise.
9533 * util/grub.d/00_header.in: Likewise.
9534 * util/grub.d/10_hurd.in: Likewise.
9535 * util/grub.d/10_kfreebsd.in: Likewise.
9536 * util/grub.d/10_linux.in: Likewise.
9537 * util/grub.d/10_netbsd.in: Likewise.
9538 * util/grub.d/10_windows.in: Likewise.
9539 * util/grub.d/20_linux_xen.in: Likewise.
9540 * util/grub.d/30_os-prober.in: Likewise.
9541 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
9542
1ba9b889
CW
95432010-06-29 Colin Watson <cjwatson@ubuntu.com>
9544
9545 * commands/cat.c (grub_cmd_cat): Fix buffer overrun if '\r' is the
9546 last character in the buffer.
9547 Reported by: Vladimir Serbinenko.
9548
dccaf99d
RM
95492010-06-29 Robert Millan <rmh@gnu.org>
9550
9551 * docs/grub.texi (Simple configuration): Document ${GRUB_BADRAM}.
9552 (Command-line and menu entry commands): Document `badram' command.
9553
d500ed12
RM
95542010-06-28 Robert Millan <rmh@gnu.org>
9555
9556 * util/grub-mkconfig.in: Export `GRUB_BADRAM' variable.
9557 * util/grub.d/00_header.in: When `GRUB_BADRAM' is set, issue badram
9558 command using ${GRUB_BADRAM} as parameter.
9559
20bc84a6
CW
95602010-06-28 Colin Watson <cjwatson@ubuntu.com>
9561
9562 * docs/grub.texi (Device map): New section.
9563 (Themes): New section (stub).
9564 * Makefile.in (docs/grub.info): The info documentation now builds
9565 without errors. Make sure it stays that way.
9566
4045dee1
VS
95672010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
9568
9569 Use normal parser for menu entries.
9570 Reported by: Thomas Frauendorfer
9571
9572 * include/grub/parser.h (grub_parser_execute): Don't export.
9573 * normal/menu.c (grub_menu_execute_entry_real): New function.
9574 (grub_menu_execute_entry): Use grub_menu_execute_entry_real.
9575
bca58c7b
CW
95762010-06-28 Colin Watson <cjwatson@ubuntu.com>
9577
9578 * docs/grub.texi (Embedded configuration): New section (replacing
9579 old "Preset Menu" stub).
9580 (Images): New section.
9581 (configfile): Note that any menu entries defined in `file' are shown
9582 immediately.
9583
dec53e63
JT
95842010-06-28 Josh Triplett <josh@joshtriplett.org>
9585
9586 * mmap/i386/pc/mmap_helper.S: Set CF on return.
9587
c06e40f7
CW
95882010-06-28 Colin Watson <cjwatson@ubuntu.com>
9589
9590 * util/grub-install.in: Add --debug-image= option.
9591
cb88052b
CW
95922010-06-28 Colin Watson <cjwatson@ubuntu.com>
9593
9594 Change grub-mkdevicemap to emit /dev/disk/by-id/ names where
9595 possible on Linux.
9596
9597 * util/deviceiter.c (check_device): Rename to ...
9598 (check_device_readable_unique): ... this. Update all callers.
9599 Maintain and check a list of which devices (by canonicalized name)
9600 have already been seen.
9601 (clear_seen_devices): New function.
9602 (compare_file_names) [__linux__]: New function.
9603 (grub_util_iterate_devices): Clear the list of seen devices on exit
9604 and (just in case) on entry.
9605 (grub_util_iterate_devices) [__linux__]: Iterate over non-partition
9606 devices in /dev/disk/by-id/, in sorted order. Remove DM-RAID
9607 seen-devices list, superseded by general code in check_device.
9608
bbe34652
CW
96092010-06-28 Colin Watson <cjwatson@ubuntu.com>
9610
9611 * commands/cat.c (options): New variable.
9612 (grub_cmd_cat): Parse options. If the --dos option is given, print
9613 DOS-style "\r\n" line endings as simple newlines (Debian bug
9614 #586358).
9615 (GRUB_MOD_INIT): Use extcmd.
9616 (GRUB_MOD_FINI): Likewise.
9617 * docs/grub.texi (cat): Document --dos.
9618
412e09f3
VS
96192010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
9620
9621 XEN with Linux grub-mkconfig support.
9622
9623 * conf/common.rmk (grub-mkconfig_SCRIPTS) [linux]: Add 20_linux_xen.
9624 * util/grub-mkconfig.in: Export GRUB_CMDLINE_XEN and
9625 GRUB_CMDLINE_XEN_DEFAULT.
9626 * util/grub.d/20_linux_xen.in: New file.
9627
53f3ef38 96282010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
994b0c27
VS
9629
9630 Initialise VGA video on qemu ourselves.
9631
9632 * boot/i386/qemu/boot.S: Don't call 0xc000.
9633 * conf/i386-qemu.rmk (kern/i386/qemu/init.c_DEPENDENCIES): New variable.
9634 (kernel_img_SOURCES): Add kern/i386/qemu/init.c and bus/pci.c.
9635 (kernel_img_HEADERS): Add pci.h.
9636 * conf/i386.rmk (pkglib_MODULES) [qemu]: Remove pci.mod.
9637 * configure.ac: Force unifont on qemu and yeeloong.
9638 * include/grub/i386/qemu/kernel.h (grub_qemu_init_cirrus): New proto.
9639 (grub_vga_palette_write): Use correct register.
9640 * kern/i386/coreboot/init.c (grub_machine_init) [GRUB_MACHINE_QEMU]:
9641 Call grub_qemu_init_cirrus.
9642 * kern/i386/qemu/init.c: New file.
9643 * term/i386/pc/vga_text.c (inc_y): Never read outside the screen.
9644
9645 * commands/videotest.c (grub_cmd_videotest): Handle double buffering.
9646
c75be4fb
PR
96472010-06-26 Pavel Roskin <proski@gnu.org>
9648
9649 * util/grub.d/10_linux.in: Add support for initrd images on Fedora
9650 13.
9651
d8034603
CW
96522010-06-26 Colin Watson <cjwatson@ubuntu.com>
9653
9654 * docs/grub.texi (Simple configuration): Explain that
9655 GRUB_DISABLE_LINUX_RECOVERY and GRUB_DISABLE_NETBSD_RECOVERY must be
9656 set to `true' to disable their respective recovery entries, not
9657 merely set.
9658
3fa06487
CW
96592010-06-26 Colin Watson <cjwatson@ubuntu.com>
9660
9661 Make the `source' command slightly faster.
9662
9663 * normal/main.c (grub_normal_execute): Don't re-read list files when
9664 nested.
9665
e9b29642
CW
96662010-06-23 Colin Watson <cjwatson@ubuntu.com>
9667
9668 * loader/i386/multiboot_mbi.c (retrieve_video_parameters): Set red
9669 field position and mask size to red fields from mode_info, not
9670 green.
9671 * loader/multiboot_mbi2.c (retrieve_video_parameters): Likewise.
9672 Remove redundant tag->common.framebuffer_type assignment.
9673 Reported by: Seth Goldberg.
9674
e726542f
CW
96752010-06-23 Colin Watson <cjwatson@ubuntu.com>
9676
9677 Sync up other versions of the Linux loader with Robert Millan's
9678 change of 2010-01-09, "Make loader output a bit more user-friendly".
9679
9680 * loader/i386/efi/linux.c (grub_linux_boot): Move debug info to
9681 grub_dprintf().
9682 (grub_cmd_linux): Likewise.
9683 (grub_cmd_initrd): Likewise.
9684 * loader/i386/ieee1275/linux.c (grub_cmd_linux): Likewise.
9685 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
9686
d6e98a17
CW
96872010-06-21 Colin Watson <cjwatson@ubuntu.com>
9688
9689 * kern/efi/mm.c (grub_efi_mm_init): Handle systems with memory maps
9690 larger than MEMORY_MAP_SIZE.
9691
14d3f08e
BC
96922010-06-21 BVK Chaitanya <bvk.groups@gmail.com>
9693
9694 Fix parallel build.
9695
9696 * conf/common.rmk: Add grub_script.tab.h as a grub-script-check
9697 dependency.
9698 * script/parser.y: #include grub_script.tab.h header.
9699
4f9613a3
VS
97002010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
9701
9702 Support >3GiB and <16MiB RAM in i386-qemu.
9703
9704 * kern/i386/qemu/mmap.c (QEMU_CMOS_MEMSIZE2_HIGH): New const.
9705 (QEMU_CMOS_MEMSIZE2_LOW): Likewise.
9706 (grub_lower_mem): Removed.
9707 (grub_upper_mem): Likewise.
9708 (mem_size): Made static.
9709 (above_4g): New variable.
9710 (grub_machine_mmap_init): Detect small mem_size and above_4g.
9711 (grub_machine_mmap_iterate): Order in ascending order and add above_4g
9712 support.
9713
05e51879
VS
97142010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
9715
9716 Cirrus 5446 and Bochs video cards support.
9717
9718 * conf/i386.rmk (pkglib_MODULES): Add video_cirrus.mod and
9719 video_bochs.mod
9720 (video_cirrus_mod_SOURCES): New variable.
9721 (video_cirrus_mod_CFLAGS): Likewise.
9722 (video_cirrus_mod_LDFLAGS): Likewise.
9723 (video_bochs_mod_SOURCES): Likewise.
9724 (video_bochs_mod_CFLAGS): Likewise.
9725 (video_bochs_mod_LDFLAGS): Likewise.
9726 * include/grub/vga.h: New file.
9727 * include/grub/video_fb.h (grub_video_fb_doublebuf_blit_init): Removed.
9728 (grub_video_fb_set_page_t): New type.
9729 (grub_video_fb_setup): New prototype.
9730 (grub_video_fb_swap_buffers): Likewise.
9731 (grub_video_fb_get_info_and_fini): Likewise.
9732 * term/i386/pc/vga_text.c (CRTC_ADDR_PORT): Moved to include/grub/vga.h.
9733 (CRTC_DATA_PORT): Likewise.
9734 (CRTC_CURSOR): Likewise.
9735 (CRTC_CURSOR_ADDR_HIGH): Likewise.
9736 (CRTC_CURSOR_ADDR_LOW): Likewise.
9737 (CRTC_CURSOR_DISABLE): Likewise.
9738 (update_cursor): Use grub_vga_cr_write.
9739 (grub_vga_text_setcursor): Likewise.
9740 * video/bochs.c: New file.
9741 * video/fb/video_fb.c (render_target): Moved into framebuffer variable.
9742 (palette): Likewise.
9743 (palette_size): Likewise.
9744 (framebuffer): New variable.
9745 (grub_video_fb_init): Use 'framebuffer'.
9746 (grub_video_fb_fini): Likewise.
9747 (grub_video_fb_get_info): Likewise.
9748 (grub_video_fb_get_palette): Likewise.
9749 (grub_video_fb_set_palette): Likewise.
9750 (grub_video_fb_set_viewport): Likewise.
9751 (grub_video_fb_get_viewport): Likewise.
9752 (grub_video_fb_map_color): Likewise.
9753 (grub_video_fb_map_rgb): Likewise.
9754 (grub_video_fb_map_rgba): Likewise.
9755 (grub_video_fb_unmap_color): Likewise.
9756 (grub_video_fb_unmap_color_int): Likewise.
9757 (grub_video_fb_fill_rect): Likewise.
9758 (grub_video_fb_blit_bitmap): Likewise.
9759 (grub_video_fb_blit_render_target): Likewise.
9760 (grub_video_fb_scroll): Likewise.
9761 (grub_video_fb_create_render_target): Likewise.
9762 (grub_video_fb_doublebuf_blit_init): Likewise.
9763 (grub_video_fb_set_active_render_target): Handle doublebuffering.
9764 (doublebuf_pageflipping_update_screen): New function.
9765 (doublebuf_pageflipping_init): Likewise.
9766 (grub_video_fb_setup): Likewise.
9767 (grub_video_fb_swap_buffers): Likewise.
9768 (grub_video_fb_get_info_and_fini): Likewise.
9769 * video/i386/pc/vbe.c (framebuffer): Remove all doublebuffering fields.
9770 All users updated.
9771 (doublebuf_pageflipping_commit): Restructured into ...
9772 (doublebuf_pageflipping_set_page): ... this.
9773 (doublebuf_pageflipping_update_screen): Removed.
9774 (doublebuf_pageflipping_init): Likewise.
9775 (double_buffering_init): Likewise.
9776 (grub_video_vbe_setup): Use grub_video_fb_setup.
9777 (grub_video_vbe_swap_buffers): Removed.
9778 (grub_video_vbe_set_active_render_target): Likewise.
9779 (grub_video_vbe_get_active_render_target): Likewise.
9780 (grub_video_vbe_get_info_and_fini): Use grub_video_fb_get_info_and_fini.
9781 (grub_video_vbe_adapter): Use grub_video_fb_swap_buffers,
9782 grub_video_fb_set_active_render_target and
9783 grub_video_fb_get_active_render_target.
9784 * video/i386/pc/vga.c (SEQUENCER_ADDR_PORT): Move to include/grub/vga.h.
9785 (SEQUENCER_DATA_PORT): Likewise.
9786 (MAP_MASK_REGISTER): Likewise.
9787 (CRTC_ADDR_PORT): Likewise.
9788 (CRTC_DATA_PORT): Likewise.
9789 (START_ADDR_HIGH_REGISTER): Likewise.
9790 (START_ADDR_LOW_REGISTER): Likewise.
9791 (GRAPHICS_ADDR_PORT): Likewise.
9792 (GRAPHICS_DATA_PORT): Likewise.
9793 (READ_MAP_REGISTER): Likewise.
9794 (INPUT_STATUS1_REGISTER): Likewise.
9795 (INPUT_STATUS1_VERTR_BIT): Likewise.
9796 (get_map_mask): Use grub_vga_sr_read.
9797 (set_map_mask): Use grub_vga_sr_write.
9798 (set_read_map): Use grub_vga_gr_write.
9799 (set_start_address): Use grub_vga_cr_write.
9800 * video/sm712.c (framebuffer): Remove leftover fields.
9801
4321c64a
CW
98022010-06-20 Colin Watson <cjwatson@ubuntu.com>
9803
9804 * util/grub-mkconfig.in: Capitalise and export GRUB_PREFIX. Stop
9805 setting GRUB_VIDEO_BACKEND. Make it available as a user override
9806 instead. Replace the gfxterm backend check with a check that
9807 ${GRUB_PREFIX}/video.lst is non-empty.
9808 * util/grub.d/00_header.in: Use GRUB_PREFIX rather than computing it
9809 again.
9810 (load_video): New generated function. Call it before loading
9811 gfxterm rather than loading ${GRUB_VIDEO_BACKEND}.
9812 * util/grub.d/10_linux.in (linux_entry): Call load_video.
9813 * util/grub.d/30_os-prober.in (osx_entry): Likewise.
9814 * docs/grub.texi (Simple configuration): Document
9815 GRUB_VIDEO_BACKEND.
9816
98172010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
9818
9819 Use video functions in linux and xnu loaders.
9820
9821 * conf/i386-pc.rmk (xnu_mod_SOURCES): Remove loader/i386/pc/xnu.c.
9822 * conf/x86-efi.rmk (xnu_mod_SOURCES): Remove loader/i386/efi/xnu.c.
9823 * include/grub/i386/xnu.h (grub_xnu_set_video): Removed.
9824 * loader/i386/efi/linux.c (grub_linux_setup_video): Copied from
9825 loader/i386/pc/linux.c.
9826 (grub_linux_boot): Resynced with loader/i386/pc/linux.c.
9827 (find_line_len): Removed.
9828 (find_framebuf): Likewise.
9829 (grub_cmd_linux): Declare grub_linux_boot as possibly returning.
9830 * loader/i386/efi/xnu.c: Removed.
9831 * loader/i386/pc/xnu.c: Moved from here...
9832 * loader/i386/xnu.c: ...here.
9833
9834 Enable priorities in video drivers.
9835
9836 * include/grub/video.h (grub_video_adapter_prio_t): New type.
9837 (grub_video_adapter): New field prio.
9838 (grub_video_register): Respect prio when inserting.
9839 * video/efi_gop.c (grub_video_gop_adapter): Add prio.
9840 * video/efi_uga.c (grub_video_uga_adapter): Likewise.
9841 * video/emu/sdl.c (grub_video_sdl_adapter): Likewise.
9842 * video/i386/pc/vbe.c (grub_video_vbe_adapter): Likewise.
9843 * video/i386/pc/vga.c (grub_video_vga_adapter): Likewise.
9844 * video/ieee1275.c (grub_video_ieee1275_adapter): Likewise.
9845 * video/sm712.c (grub_video_sm712_adapter): Likewise.
9846
9847 Fix SDL driver ID.
9848
9849 * include/grub/video.h (grub_video_driver_id_t): New value
9850 GRUB_VIDEO_DRIVER_SDL.
9851 * video/emu/sdl.c (grub_video_sdl_adapter): Add id.
9852
7d24e434
CW
98532010-06-17 Colin Watson <cjwatson@ubuntu.com>
9854
9855 * util/i386/pc/grub-setup.c (usage): Pass an extra `program_name'
9856 argument to printf.
9857 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
9858
c88a83f6
CW
98592010-06-17 Colin Watson <cjwatson@ubuntu.com>
9860
9861 * util/i386/pc/grub-setup.c (usage): Fix syntax error.
9862 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
9863
094dfb69
CW
98642010-06-17 Colin Watson <cjwatson@ubuntu.com>
9865
9866 * util/i386/pc/grub-setup.c (usage): Warn against running grub-setup
9867 directly, and recommend grub-install instead.
9868 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
9869
2164da6b
CW
98702010-06-17 Colin Watson <cjwatson@ubuntu.com>
9871
9872 Fix i386-pc prefix handling with nested partitions (Debian bug
9873 #585068). Note that the case where the core image is booted using
9874 multiboot and relocated from its original location still requires
9875 more work.
9876
9877 * kern/i386/pc/init.c (make_install_device): If the prefix starts
9878 with "(,", fill the boot drive in between those two characters, but
9879 expect that a full partition specification including partition map
9880 names will follow.
9881 * util/i386/pc/grub-setup.c (setup): Unless an explicit prefix was
9882 specified, write a prefix without the drive name but including a
9883 full partition specification.
9884
044e2e60
CW
98852010-06-16 Colin Watson <cjwatson@ubuntu.com>
9886
9887 * util/grub-mkconfig.in: Ignore non-option arguments, for
9888 compatibility with older versions (before 2010-06-12) which did the
9889 same. In particular, this makes it easier to ship an update-grub
9890 wrapper which is compatible with that used with GRUB Legacy (Debian
9891 bug #586056).
9892
5591324f
GS
98932010-06-14 Grégoire Sutre <gregoire.sutre@gmail.com>
9894
9895 * Makefile.in (install-local): Use $$file.h2m instead of $$dest.h2m
9896 for manual page generation.
9897
662e24d5
GS
98982010-06-14 Grégoire Sutre <gregoire.sutre@gmail.com>
9899
9900 * po/POTFILES: Remove leftover commands/handler.c.
9901
8d70754e
CW
99022010-06-14 Colin Watson <cjwatson@ubuntu.com>
9903
9904 * util/grub-mkconfig.in: Remove vestige of old argument parsing that
9905 left this script non-functional.
9906
41160e2e
CW
99072010-06-14 Colin Watson <cjwatson@ubuntu.com>
9908
9909 * docs/man/grub-emu.h2m: New file.
9910
b5309cc1
CW
99112010-06-13 Colin Watson <cjwatson@ubuntu.com>
9912
9913 * docs/grub.texi (Commands): Document reduced command set in rescue
9914 mode.
9915 (cpuid): New section.
9916
fcb2d090
GS
99172010-06-13 Grégoire Sutre <gregoire.sutre@gmail.com>
9918
9919 * kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Use the
9920 new partition naming style.
9921 * util/grub-install.in: Adapt sed subtitutions in grub-probe calls.
9922
96e5c556
BC
99232010-06-12 BVK Chaitanya <bvk.groups@gmail.com>
9924
9925 Add "-o grub.iso" like cmdline options support.
9926
9927 * util/grub-install.in: Improve cmdline option parsing.
9928 * util/grub-mkconfig.in: Likewise.
9929 * util/grub-mkrescue.in: Likewise.
9930 * util/grub-reboot.in: Likewise.
9931 * util/grub-set-default.in: Likewise.
9932 * util/i386/efi/grub-install.in: Likewise.
9933 * util/ieee1275/grub-install.in: Likewise.
9934 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
9935
c16be99b
CW
99362010-06-12 Colin Watson <cjwatson@ubuntu.com>
9937
9938 * .bzrignore: Ignore 41_custom.
9939
ce08a9fb
TS
99402010-06-12 Thomas Schmitt <scdbackup@gmx.net>
9941
9942 * util/grub-mkrescue.in: Pass unrecognized options to xorriso.
9943
7beac90c
CW
99442010-06-12 Colin Watson <cjwatson@ubuntu.com>
9945
9946 Avoid false positives in fs.lst, partmap.lst, and video.lst due to
9947 prototype declarations.
9948
9949 * genmk.rb (PModule::rule): Define GRUB_LST_GENERATOR when
9950 generating fs, partmap, and video lists.
9951 * include/grub/fs.h (grub_fs_register): Omit prototype if
9952 GRUB_LST_GENERATOR is defined.
9953 * include/grub/partition.h (grub_partition_map_register): Likewise.
9954 * include/grub/video.h (grub_video_register): Likewise.
9955
1c8f0f8d
JM
99562010-06-12 Javier Martín <lordhabbit@gmail.com>
9957
9958 * include/grub/types.h: Check for GRUB_CPU_SIZEOF_LONG when appropriate.
9959
a6085973
TS
99602010-06-12 Thomas Schmitt <scdbackup@gmx.net>
9961
9962 * util/grub-mkrescue.in: Support --xorriso argument.
9963
25c56d29
VS
99642010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
9965
9966 * util/grub-mkrescue.in: Use -graft-points instead of -pathspecs.
9967 Suggested by: Thomas Schmitt.
9968
e03e4b24
VS
99692010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
9970
9971 * util/grub-mkrescue.in: Add --sort-weight arguments to xorriso.
9972 Suggested by: Thomas Schmitt.
9973
57711df6
VS
99742010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
9975
9976 custom.cfg support.
9977
9978 * conf/common.rmk (grub-mkconfig_SCRIPTS): Add 41_custom.
9979 * util/grub.d/41_custom.in: New file.
9980
ee62c427
CW
99812010-06-12 Colin Watson <cjwatson@ubuntu.com>
9982
9983 * util/grub-mkrescue.in (make_image): Remove sh module, which has
9984 been merged back into normal.
9985
283af07a
CW
99862010-06-11 Colin Watson <cjwatson@ubuntu.com>
9987
9988 * include/grub/efi/uga_draw.h (GRUB_EFI_UGA_GLT_MAX): Rename to ...
9989 (GRUB_EFI_UGA_BLT_MAX): ... this (typo fix).
9990
56a0d956
CW
99912010-06-11 Colin Watson <cjwatson@ubuntu.com>
9992
9993 * Makefile.in (install-local): Include $(srcdir)/docs/man/$$dest.h2m
9994 when generating manual pages.
9995 * docs/man/grub-bin2h.h2m: New file.
9996 * docs/man/grub-editenv.h2m: New file.
9997 * docs/man/grub-fstest.h2m: New file.
9998 * docs/man/grub-install.h2m: New file.
9999 * docs/man/grub-macho2img.h2m: New file.
10000 * docs/man/grub-mkconfig.h2m: New file.
10001 * docs/man/grub-mkdevicemap.h2m: New file.
10002 * docs/man/grub-mkfont.h2m: New file.
10003 * docs/man/grub-mkimage.h2m: New file.
10004 * docs/man/grub-mkpasswd-pbkdf2.h2m: New file.
10005 * docs/man/grub-mkrelpath.h2m: New file.
10006 * docs/man/grub-mkrescue.h2m: New file.
10007 * docs/man/grub-ofpathname.h2m: New file.
10008 * docs/man/grub-pe2elf.h2m: New file.
10009 * docs/man/grub-probe.h2m: New file.
10010 * docs/man/grub-reboot.h2m: New file.
10011 * docs/man/grub-script-check.h2m: New file.
10012 * docs/man/grub-set-default.h2m: New file.
10013 * docs/man/grub-setup.h2m: New file.
10014
3a37e322
VS
100152010-06-10 Vladimir Serbinenko <phcoder@gmail.com>
10016
10017 Use FOR_* macros instead of *_iterate whenever possible.
10018
10019 * commands/handler.c: Removed.
10020 * commands/help.c (grub_cmd_help): Use FOR_COMMANDS.
10021 * commands/minicmd.c (grub_mini_cmd_lsmod): Use FOR_DL_MODULES.
10022 * conf/any-emu.rmk (kernel_img_SOURCES): Remove kern/handler.c.
10023 * conf/common.rmk (script/lexer.c_DEPENDENCIES): Add grub_script.yy.h.
10024 (grub_probe_SOURCES): Remove kern/parser.c.
10025 (util/grub-script-check.c_DEPENDENCIES): Removed.
10026 (grub_script_check_SOURCES): Remove kern/handler.c, kern/parser.c
10027 and grub_script_check_init.c.
10028 (grub_script_check_init.lst): Removed.
10029 (grub_script_check_init.h): Likewise.
10030 (grub_script_check_init.c): Likewise.
10031 (pkglib_MODULES): Remove handler.mod and sh.mod.
10032 (handler_mod_SOURCES): Removed.
10033 (handler_mod_CFLAGS): Likewise.
10034 (handler_mod_LDFLAGS): Likewise.
10035 (normal_mod_SOURCES): Remove normal/handler.c.
10036 Add script/main.c, script/script.c, script/execute.c,
10037 script/function.c, script/lexer.c, grub_script.tab.c
10038 and grub_script.yy.c.
10039 * conf/i386-coreboot.rmk (kernel_img_SOURCES): Remove kern/handler.c.
10040 * conf/i386-ieee1275.rmk (kernel_img_SOURCES): Likewise.
10041 * conf/i386-pc.rmk (kernel_img_SOURCES): Likewise.
10042 (grub_setup_SOURCES): Remove kern/parser.c.
10043 * conf/i386-qemu.rmk (kernel_img_SOURCES): Remove kern/handler.c.
10044 * conf/mips-qemu-mips.rmk (kernel_img_SOURCES): Likewise.
10045 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Likewise.
10046 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Likewise.
10047 * conf/sparc64-ieee1275.rmk (kernel_img_SOURCES): Likewise.
10048 (grub_setup_SOURCES): Remove kern/parser.c.
10049 * conf/x86-efi.rmk (kernel_img_SOURCES): Remove kern/handler.c.
10050 * gettext/gettext.c (grub_gettext_delete_list): Don't use grub_list_pop.
10051 * include/grub/command.h (grub_command_iterate): Removed.
10052 (FOR_COMMANDS): New macro.
10053 * include/grub/dl.h (grub_dl): New member next.
10054 (grub_dl_iterate): Removed.
10055 (grub_dl_head): New variable declaration.
10056 (FOR_DL_MODULES): New macro.
10057 * include/grub/fs.h: Include list.h.
10058 (grub_fs): Make next first element.
10059 (grub_fs_list): New variable declaration.
10060 (grub_fs_register): Make inline.
10061 (grub_fs_unregister): Likewise.
10062 (grub_fs_iterate): Removed.
10063 (FOR_FILESYSTEMS): New macro.
10064 * include/grub/handler.h: Removed.
10065 * include/grub/list.h (grub_list_hook_t): Removed.
10066 (grub_list_test_t): Likewise.
10067 (grub_list_pop): Likewise.
10068 (grub_list_iterate): Likewise.
10069 (grub_list_insert): Likewise.
10070 (FOR_LIST_ELEMENTS): New macro.
10071 * include/grub/parser.h (grub_parser_class): Removed.
10072 (grub_parser_register): Likewise.
10073 (grub_parser_unregister): Likewise.
10074 (grub_parser_get_current): Likewise.
10075 (grub_parser_set_current): Likewise.
10076 (grub_register_rescue_parser): Likewise.
10077 (grub_rescue_parse_line): New function.
10078 * include/grub/partition.h (FOR_PARTITION_MAPS): Use FOR_LIST_ELEMENTS.
10079 * include/grub/script_sh.h (grub_script_function_list): New variable
10080 declaration.
10081 (FOR_SCRIPT_FUNCTIONS): New macro.
10082 (grub_script_function_iterate): Removed.
10083 (grub_normal_parse_line): New prototype.
10084 * include/grub/term.h (FOR_ACTIVE_TERM_INPUTS): Use FOR_LIST_ELEMENTS.
10085 (FOR_DISABLED_TERM_INPUTS): Likewise.
10086 (FOR_ACTIVE_TERM_OUTPUTS): Likewise.
10087 (FOR_DISABLED_TERM_OUTPUTS): Likewise.
10088 * include/grub/video.h (grub_video_adapter): Move 'next' to first
10089 element.
10090 (grub_video_register): Inline.
10091 (grub_video_unregister): Likewise.
10092 (grub_video_adapter_list): New variable declaration.
10093 (grub_video_iterate): Removed.
10094 (FOR_VIDEO_ADAPTERS): New macro.
10095 * kern/dl.c (grub_dl_list): Removed. All users updated.
10096 (grub_dl_iterate): Removed.
10097 * kern/fs.c (grub_fs_list): Make global.
10098 (grub_fs_register): Removed.
10099 (grub_fs_unregister): Likewise.
10100 (grub_fs_iterate): Likewise.
10101 * kern/handler.c: Removed.
10102 * kern/list.c (grub_list_pop): Removed.
10103 (grub_list_iterate): Likewise.
10104 (grub_list_insert): Likewise.
10105 (grub_named_list_find): Use FOR_LIST_ELEMENTS.
10106 (grub_prio_list_insert): Don't use grub_list_insert.
10107 * kern/main.c (grub_register_rescue_parser): Don't call
10108 grub_register_rescue_parser.
10109 * kern/parser.c (grub_parser_class): Removed.
10110 (grub_parser_execute): Use grub_rescue_parse_line.
10111 * kern/rescue_parser.c (grub_rescue_parse_line): Make global.
10112 (grub_rescue_parser): Removed.
10113 (grub_register_rescue_parser): Likewise.
10114 * kern/rescue_reader.c (grub_rescue_run): Use grub_rescue_parse_line.
10115 * normal/auth.c (is_authenticated): Use FOR_LIST_ELEMENTS.
10116 (grub_auth_check_authentication): Likewise.
10117 * normal/completion.c (iterate_command): Removed.
10118 (grub_normal_do_completion): Use FOR_COMMANDS.
10119 * normal/handler.c: Removed.
10120 * normal/main.c (read_config_file): Remove parser changing.
10121 (grub_normal_execute): Don't call read_handler_list.
10122 (grub_normal_read_line_real): Statically allocate prompt.
10123 (grub_cmdline_run): Use grub_normal_parse_line.
10124 (GRUB_MOD_FINI): Don't call free_handler_list.
10125 * normal/menu_entry.c (run): Likewise.
10126 * script/function.c (grub_script_function_list): Make global.
10127 (grub_script_function_iterate): Removed.
10128 * script/main.c (grub_normal_parse_line): Make global.
10129 (grub_sh_parser): Removed.
10130 (GRUB_MOD_INIT): Likewise.
10131 (GRUB_MOD_FINI): Likewise.
10132 * tests/lib/functional_test.c (grub_functional_test): Use
10133 FOR_LIST_ELEMENTS.
10134 * tests/lib/test.c (free_failures): Don't use grub_list_pop.
10135 (grub_test_run): Use FOR_LIST_ELEMENTS.
10136 * tests/lib/unit_test.c (main): Likewise.
10137 * util/deviceiter.c (grub_util_iterate_devices): Don't use
10138 grub_list_pop.
10139 * util/grub-fstest.c (grub_term_input_class): Removed.
10140 (grub_term_output_class): Likewise.
10141 * util/grub-probe.c: Likewise.
10142 * util/i386/pc/grub-setup.c: Likewise.
10143 * util/sparc64/ieee1275/grub-setup.c: Likewise.
10144 * util/grub-script-check.c (main): Don't call grub_init_all and
10145 grub_fini_all.
10146 * video/video.c (grub_video_adapter_list): Make global.
10147 (grub_video_register): Removed.
10148 (grub_video_unregister): Likewise.
10149 (grub_video_iterate): Likewise.
10150
6289c3a7
VS
101512010-06-09 Vladimir Serbinenko <phcoder@gmail.com>
10152
10153 * docs/grub.texi (Vendor power-on button): Add Asus EeePC 1005PE as
10154 reported by Henrique Ferreiro.
10155
91460247
RM
101562010-06-09 Robert Millan <rmh@gnu.org>
10157
10158 * util/grub.d/10_linux.in: Prefer compressed images over non-compressed
10159 ones, when both are available.
10160
0ea7c4f9
GS
101612010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
10162
10163 Make --version uniform and avoid hard-coded program name.
10164
10165 * util/grub-mkimage.c (main): Use `program_name' instead of
10166 hard-coded string.
10167 * util/i386/pc/grub-setup.c (main): Likewise.
10168 * util/sparc64/ieee1275/grub-setup.c (parse_options): Likewise.
10169 * util/grub-install.in: Save the basename of $0 in $self, and use the
10170 latter in informational messages. Use the same format for --version
10171 as the binary programs.
10172 * util/grub-mkconfig.in: Likewise.
10173 * util/grub-mkrescue.in: Likewise.
10174 * util/grub-reboot.in: Likewise.
10175 * util/grub-set-default.in: Likewise.
10176 * util/i386/efi/grub-install.in: Likewise.
10177 * util/ieee1275/grub-install.in: Likewise.
10178 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
10179
e8a6f3b6
GS
101802010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
10181
10182 * util/i386/pc/grub-setup.c (setup): Use absolute offsets for start of
10183 embedding area. Use <= instead of == when checking for non-emptiness.
10184
f4d095d7
GS
101852010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
10186
10187 * configure.ac: Add `.' to the directories searched for unifont.
10188
50e532ca
CW
101892010-06-08 Colin Watson <cjwatson@ubuntu.com>
10190
10191 * .bzrignore: Add ascii.bitmaps, ascii.h, grub_script.yy.c, and
10192 grub_script.yy.h.
10193
d39f3dec
CW
101942010-06-08 Colin Watson <cjwatson@ubuntu.com>
10195
10196 * docs/grub.texi (History): Expand to cover GRUB 2.
10197 (Serial terminal): Refer to `terminal_input' and `terminal_output'
10198 commands, not `terminal'.
10199 (serial): Likewise.
10200 (terminal_input): New section.
10201 (terminal_output): New section.
10202 (uppermem): New section (stub).
10203 (Obtaining and Building GRUB): Refer to Bazaar, not Subversion.
10204
6ef0ddb4
CW
102052010-06-08 Colin Watson <cjwatson@ubuntu.com>
10206
10207 * docs/grub.texi (Security): Menu entries are unrestricted by
10208 default, not restricted to superusers as I had previously thought.
10209 Reword to account for this.
10210
e0f4c438
CW
102112010-06-07 Colin Watson <cjwatson@ubuntu.com>
10212
10213 * kern/emu/misc.c (device_mapper_null_log): New function.
10214 (grub_device_mapper_supported): New function.
10215 * include/grub/emu/misc.h (grub_device_mapper_supported): Add
10216 prototype.
10217 * kern/emu/hostdisk.c (find_partition_start): Check whether
10218 device-mapper is supported before trying to use it.
10219 * util/deviceiter.c (grub_util_iterate_devices): Likewise.
10220
da908200
CW
102212010-06-07 Colin Watson <cjwatson@ubuntu.com>
10222
10223 * docs/grub.texi (Naming convention): Use GRUB 2 syntax.
10224 (File name syntax): Likewise.
10225 (help): --all is no longer supported in GRUB 2. Be more precise
10226 about pattern matching.
10227
fb55c3ac
CW
102282010-06-07 Colin Watson <cjwatson@ubuntu.com>
10229
10230 * normal/completion.c (grub_normal_do_completion): When completing
10231 arguments to "set" and the current word contains an equals sign,
10232 skip to after the equals sign before starting completion.
10233
258c2573
CW
102342010-06-07 Colin Watson <cjwatson@ubuntu.com>
10235
10236 * fs/i386/pc/pxe.c (grub_pxe_open): Fix parsing of gateway_ip.
10237
ee75515e
CW
102382010-06-07 Colin Watson <cjwatson@ubuntu.com>
10239
10240 * docs/grub.texi (Network): New section.
10241 (Device syntax): The network device is called `(pxe)' in GRUB 2, not
10242 `(nd)' as in GRUB Legacy.
10243 (pxe_unload): New section.
10244
a6a700aa
CW
102452010-06-07 Colin Watson <cjwatson@ubuntu.com>
10246
10247 * docs/grub.texi (Troubleshooting): `echo' is not usually available
10248 in the rescue shell, so recommend using `set' instead. Thanks,
10249 Jordan Uggla.
10250
4003dd38
CW
102512010-06-07 Colin Watson <cjwatson@ubuntu.com>
10252
10253 * docs/grub.texi (Filesystem): Refer to `search' instead of `find'.
10254 (password): New section.
10255 (password_pbkdf2): New section.
10256 (search): New section.
10257 (Security): New section.
10258 (Troubleshooting): New section, currently very incomplete.
10259 (Invoking grub-mkpasswd-pbkdf2): New section.
10260 (Internals): New section, currently very incomplete.
10261
e1cbcc40
CW
102622010-06-07 Colin Watson <cjwatson@ubuntu.com>
10263
10264 * util/grub.d/00_header.in: Add some more quoting (of
10265 "${prev_saved_entry}" and "${boot_once}") needed to make savedefault
10266 work again.
10267 Reported by: Mario 'BitKoenig' Holbe (Debian bug #584812).
10268
db8fa1ad
CW
102692010-06-07 Colin Watson <cjwatson@ubuntu.com>
10270
10271 * util/grub-mkpasswd-pbkdf2.c (main): Rename top-level `c' variable
10272 to `count', fixing variable shadowing that broke the -c option.
10273
102742010-06-05 Colin Watson <cjwatson@ubuntu.com>
71c38098
CW
10275
10276 * util/grub.d/00_header.in: Quote values assigned to `saved_entry',
10277 in case they contain spaces.
10278
f28a9212
CW
102792010-06-04 Colin Watson <cjwatson@ubuntu.com>
10280
10281 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Prepend
10282 "part_" to partmap module names, in line with grub-install.
10283 Reported by: Jindřich Makovička (Debian bug #584426).
10284
9cdfe32f
CW
102852010-06-04 Colin Watson <cjwatson@ubuntu.com>
10286
10287 * util/grub-mkimage.c: Make target-related error messages slightly
10288 more helpful; -O talks about "format". Explicitly point to the use
10289 of -O if no target is specified.
10290 Reported by: Didier Raboud (Debian bug #584415).
10291
795b593a
CW
102922010-06-03 Colin Watson <cjwatson@ubuntu.com>
10293
10294 * INSTALL: Document several build requirements for optional features
10295 (libdevmapper, ncurses, libusb, SDL, FreeType, GNU Unifont).
10296
9d9b5833
GS
102972010-06-02 Grégoire Sutre <gregoire.sutre@gmail.com>
10298
10299 * kern/emu/hostdisk.c (convert_system_partition_to_system_disk)
10300 [__NetBSD__]: Handle all device names matching /dev/r[a-z]+[0-9][a-z].
10301 (find_partition_start) [__NetBSD__]: Correct error messages for NetBSD.
10302
0819fec8
CW
103032010-06-02 Colin Watson <cjwatson@ubuntu.com>
10304
10305 * docs/grub.texi (Simple configuration): Fix copy-and-paste typo.
10306 Thanks to Jordan Uggla for spotting this.
10307
49396b4f
VS
103082010-06-02 Aleš Nesrsta <starous@volny.cz>
10309
10310 Finally make USB usable.
10311
10312 * bus/usb/ohci.c (grub_ohci_reg_t): Add missing values.
10313 (GRUB_OHCI_RHUB_PORT_POWER_MASK): New macro.
10314 (GRUB_OHCI_RHUB_PORT_ALL_POWERED): Likewise.
10315 (GRUB_OHCI_REG_FRAME_INTERVAL_FSMPS_MASK): Likewise.
10316 (GRUB_OHCI_REG_FRAME_INTERVAL_FSMPS_SHIFT): Likewise.
10317 (GRUB_OHCI_REG_FRAME_INTERVAL_FI_SHIFT): Likewise.
10318 (GRUB_OHCI_FSMPS): Likewise.
10319 (GRUB_OHCI_PERIODIC_START): Likewise.
10320 (GRUB_OHCI_FRAME_INTERVAL): Likewise.
10321 (GRUB_OHCI_SET_PORT_ENABLE): Likewise.
10322 (GRUB_OHCI_CLEAR_PORT_ENABLE): Likewise.
10323 (GRUB_OHCI_SET_PORT_RESET): Likewise.
10324 (GRUB_OHCI_SET_PORT_RESET_STATUS_CHANGE): Likewise.
10325 * bus/usb/ohci.c (grub_ohci_pci_iter): Various important fixups.
10326 (grub_ohci_transaction): Likewise.
10327 (grub_ohci_transfer): Improve condition detection algorithms.
10328 Handle toggle property. Program the transactions correctly.
10329 Improve error handling. Various important fixups.
10330 (grub_ohci_portstatus): Put register writes in right order.
10331 * bus/usb/uhci.c (grub_free_queue): Compute last_trans.
10332 (grub_uhci_transfer): Don't show "failed" message on success.
10333 * bus/usb/usb.c (grub_usb_set_configuration): Zero-fill whole "toggle"
10334 array.
10335 (grub_usb_device_initialize): Read first 8 bytes of descriptor to
10336 determine its size.
10337 * bus/usb/usbtrans.c (grub_usb_control_msg): Use descdev.maxsize0 even
10338 before initialization is completed. Use IN direction for empty
10339 transfers. Use last_trans and compute toggle.
10340 * include/grub/usbtrans.h (grub_usb_transfer): New field last_trans.
10341 (GRUB_USB_FEATURE_ENDP_HALT): Correct the value.
10342 (GRUB_USB_FEATURE_DEV_REMOTE_WU): Likewise.
10343 (GRUB_USB_FEATURE_TEST_MODE): Likewise.
10344 * include/grub/usb.h (grub_usb_err_t): New value GRUB_USB_ERR_UNRECOVERABLE.
10345 (grub_usb_device): Increase toggle to 256.
10346 (grub_usbms_subclass_t): New values GRUB_USBMS_SUBCLASS_RBC,
10347 GRUB_USBMS_SUBCLASS_MMC2, GRUB_USBMS_SUBCLASS_UFI and
10348 GRUB_USBMS_SUBCLASS_SFF8070.
10349 * include/grub/scsicmd.h (grub_scsi_test_unit_ready): New structure.
10350 (grub_scsi_inquiry): New member page and alloc_length.
10351 (grub_scsi_request_sense): New structure.
10352 (grub_scsi_request_sense_data): Likewise.
10353 (grub_scsi_read_capacity): New fields logical_block_addr, PMI and
10354 control.
10355 * disk/scsi.c (grub_scsi_request_sense): New function.
10356 (grub_scsi_test_unit_ready): Likewise.
10357 (grub_scsi_inquiry): Fill new fields.
10358 (grub_scsi_read_capacity): Likewise.
10359 (grub_scsi_read10): Add request sense at the end.
10360 (grub_scsi_read12): Likewise.
10361 (grub_scsi_write10): Likewise.
10362 (grub_scsi_write12): Likewise.
10363 (grub_scsi_open): Add Test Unit Ready.
10364 * disk/usbms.c (grub_usbms_finddevs): Check configcnt.
10365 Support additional subclasses. Con't clear halt yet. Activate the
10366 proper config. Calculate LUNs correctly.
10367 (grub_usbms_transfer): Various important fixups.
10368
103692010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
10370
10371 * bus/pci.c (grub_pci_iterate) [GRUB_MACHINE_MIPS_YEELOONG]: Skip ghosts.
10372 * bus/usb/ohci.c (grub_ohci_portstatus): Handle R/WC correctly.
10373 (grub_ohci_fini_hw): New function.
10374 (grub_ohci_restore_hw): Likewise.
10375 (GRUB_MOD_INIT(ohci)): Register preboot hook.
10376 (GRUB_MOD_FINI(ohci)): Shutdown OHCI.
10377 * term/usb_keyboard.c: Remove include of grub/machine/console.h.
10378
103792010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
10380
10381 Dedicated DMA allocations.
10382
10383 * bus/pci.c (grub_memalign_dma32): New function
10384 (grub_dma_free): Likewise.
10385 (grub_dma_get_virt): Likewise.
10386 (grub_dma_get_phys): Likewise.
10387 * bus/usb/ohci.c (grub_ohci): New members hcca_addr and hcca_chunk.
10388 (grub_ohci_pci_iter): Use dma32_alloc.
10389 (grub_ohci_transfer): Likewise.
10390 * bus/usb/usbtrans.c (grub_usb_control_msg): Likewise.
10391 (grub_usb_bulk_readwrite): Likewise.
10392 * include/grub/pci.h: Add declarations.
10393
103942010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
10395
10396 CS5536 support.
10397
10398 * bus/cs5536.c: New file.
10399 * bus/usb/ohci.c (grub_ohci_pci_iter): Check for CS5536.
10400 * conf/i386.rmk (pkglib_MODULES): Add cs5536.mod.
10401 (cs5536_mod_SOURCES): New variable.
10402 (cs5536_mod_CFLAGS): Likewise.
10403 (cs5536_mod_LDFLAGS): Likewise.
10404 * conf/mips-yeeloong.rmk (kernel_img_HEADERS): Add cs5536.h and
10405 machine/pci.h.
10406 (kernel_img_SOURCES): Add bus/cs5536.c.
10407 (pkglib_MODULES): Add usb.mod, usbtest.mod, ohci.mod, usbms.mod and
10408 usb_keyboard.mod.
10409 (usb_mod_SOURCES): New variable.
10410 (usb_mod_CFLAGS): New variable.
10411 (usb_mod_LDFLAGS): New variable.
10412 (usbtest_mod_SOURCES): New variable.
10413 (usbtest_mod_CFLAGS): New variable.
10414 (usbtest_mod_LDFLAGS): New variable.
10415 (ohci_mod_SOURCES): New variable.
10416 (ohci_mod_CFLAGS): New variable.
10417 (ohci_mod_LDFLAGS): New variable.
10418 (usbms_mod_SOURCES): New variable.
10419 (usbms_mod_CFLAGS): New variable.
10420 (usbms_mod_LDFLAGS): New variable.
10421 (usb_keyboard_mod_SOURCES): New variable.
10422 (usb_keyboard_mod_CFLAGS): New variable.
10423 (usb_keyboard_mod_LDFLAGS): New variable.
10424 * include/grub/smbus.h: New file.
10425 * include/grub/cs5536.h: New file.
10426
0b35b2a9
CW
104272010-06-02 Colin Watson <cjwatson@ubuntu.com>
10428
10429 * util/grub.d/00_header.in: Add safety check to make sure that
10430 ${locale_dir} exists before trying to probe it.
10431
ca0afd5b
CW
104322010-06-02 Colin Watson <cjwatson@ubuntu.com>
10433
10434 * docs/grub.texi (SCO UnixWare): Remove, at Vladimir's request and
10435 per the GNU Coding Standards; this is now too obscure to be worth
10436 documenting.
10437 (QNX): Likewise.
10438 (chainloader): Remove cross-reference to `SCO UnixWare'.
10439
1c41aa78
CW
104402010-06-02 Colin Watson <cjwatson@ubuntu.com>
10441
10442 * docs/grub.texi (Chain-loading): New section.
10443 (DOS/Windows): New section, borrowed from GRUB Legacy with details
10444 adjusted for GRUB 2.
10445 (SCO UnixWare): Likewise.
10446 (QNX): Likewise.
10447 (chainloader): Add reference to `Block list syntax'.
10448 (drivemap): New section.
10449 (parttool): New section.
10450
bb8ea0f5
CW
104512010-06-02 Colin Watson <cjwatson@ubuntu.com>
10452
10453 * docs/grub.texi (GNU GRUB manual): Remove reference to `Invoking
10454 the grub shell'.
10455 (Installation): Add reference to `Making a GRUB bootable CD-ROM'.
10456 (Installing GRUB using grub-install): Remove reference to the grub
10457 shell; mention `grub-mkimage' and `grub-setup' instead.
10458 (Invoking grub-install): Likewise.
10459 (Interface): Add reference to `Menu entry editor'.
10460 (serial): Remove `--device' option.
10461
288dd6ed
CW
104622010-06-02 Colin Watson <cjwatson@ubuntu.com>
10463
10464 * docs/grub.texi (Configuration): New section, documenting
10465 configuration file generation using grub-mkconfig. I've left a slot
10466 for documenting the full shell scripting format but have not yet
10467 started on writing that up.
10468 (Invoking grub-mkconfig): New section.
10469
34c9f0e9
CW
104702010-06-02 Colin Watson <cjwatson@ubuntu.com>
10471
10472 * docs/grub.texi (direntry): Remove grub-terminfo reference.
10473 (GNU GRUB manual): Likewise.
10474 (General commands): Update description of `terminfo' for GRUB 2.
10475
9121567e
CW
104762010-06-02 Colin Watson <cjwatson@ubuntu.com>
10477
10478 * commands/gptsync.c (grub_cmd_gptsync): Fix typos.
10479 (GRUB_MOD_INIT): Fix capitalisation.
10480 * docs/grub.texi (Command-line and menu entry commands): Document
10481 gettext and gptsync commands.
10482
ab631611
CW
104832010-06-02 Colin Watson <cjwatson@ubuntu.com>
10484
10485 * conf/any-emu.rmk (kernel_img_SOURCES) [!x86]: Include
10486 kern/$(target_cpu)/cache.S even if TARGET_NO_MODULES = yes.
10487
bde4a9ac
CW
104882010-06-01 Colin Watson <cjwatson@ubuntu.com>
10489
10490 Add btrfs probing support, currently only in the single-device case.
10491
10492 * kern/emu/getroot.c (find_root_device_from_mountinfo): New
10493 function.
10494 (grub_guess_root_device): Call find_root_device_from_mountinfo
10495 before looking in /dev.
10496
b1d17e10
VS
104972010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
10498
10499 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Use
10500 GRUB_DISK_SIZE_UNKNOWN.
10501 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Likewise.
10502
dfbfe004
JS
105032010-05-31 Jiro SEKIBA <jir@unicus.jp>
10504
10505 * include/grub/disk.h (GRUB_DISK_SIZE_UNKNOWN): New macro.
10506 * fs/nilfs.c: Support 2nd super block in case 1st one is accidently
10507 corrupted or not synced properly.
10508
c2ffc8e9
VS
105092010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
10510
10511 * normal/main.c (grub_normal_add_menu_entry): Avoid going out of args.
10512 Reported by: Seth Goldberg.
10513
56293166
VS
105142010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
10515
10516 * loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix incorrect
10517 addition of dest.
10518 Reported by: Seth Goldberg.
10519
7620e7de
VS
105202010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
10521
10522 * commands/setpci.c (grub_setpci_iter): Fix an incorrect function check.
10523 Reported by: Seth Goldberg.
10524
c837af3f
VS
105252010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
10526
10527 * loader/multiboot_elfxx.c (grub_multiboot_load_elfXX) [__mips]: Check
10528 64-bit address as signed on MIPS.
10529
c7c75cf4
CW
105302010-05-28 Colin Watson <cjwatson@ubuntu.com>
10531
10532 * configure.ac: AC_PROG_LEX sets LEX to ":" if lex is missing, not
10533 to the empty string.
10534
fa4b8490
BC
105352010-05-28 BVK Chaitanya <bvk.groups@gmail.com>
10536
10537 Fix grub-emu issues on NetBSD, with gcc 4.1.3.
10538
10539 * conf/any-emu.rmk: Remove unnecessary COMMON_CFLAGS.
10540 * include/grub/emu/misc.h (canonicalize_file_name): New Prototype.
10541 * kern/misc.c (__enable_execute_stack): Disable on
10542 GRUB_MACHINE_EMU.
10543
a33075b9
CW
105442010-05-28 Colin Watson <cjwatson@ubuntu.com>
10545
10546 Make grub-probe work with symbolic links under /dev/mapper as well
10547 as with real block devices. The Linux world seems to be (at best)
10548 in transition here, and GRUB shouldn't get caught in the middle.
10549
10550 * kern/emu/getroot.c (find_root_device): Follow symbolic links under
10551 /dev/mapper.
10552
d8708134
CW
105532010-05-27 Colin Watson <cjwatson@ubuntu.com>
10554
10555 * util/grub-script-check.c (main): Ensure defined behaviour on empty
10556 input files (in which case exit zero).
10557
db2102a0
CW
105582010-05-27 Colin Watson <cjwatson@ubuntu.com>
10559
10560 * kern/emu/misc.c (canonicalize_file_name): realpath can still
10561 return NULL for various reasons even if it has a maximum-length
10562 buffer: for example, there might be a symlink loop, or the path
10563 might exceed PATH_MAX. If this happens, return NULL.
10564
5fdba519
RM
105652010-05-27 Robert Millan <rmh@gnu.org>
10566
10567 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Insert
10568 partmap module to handle cross-partmap setups.
10569 Reported by Orestes Mas. Gràcies!
10570
d1d368e4
CW
105712010-05-27 Colin Watson <cjwatson@ubuntu.com>
10572
10573 * util/grub-mkrescue.in: Initialise override_dir rather than
10574 assuming that it's unset or empty in the environment.
10575
95ac3c73
GS
105762010-05-26 Grégoire Sutre <gregoire.sutre@gmail.com>
10577
10578 * kern/emu/hostdisk.c (find_partition_start) [__NetBSD__]: Renamed
10579 variable index into p_index to suppress a warning with -Wshadow.
10580
7d8c0213
BC
105812010-05-25 BVK Chaitanya <bvk.groups@gmail.com>
10582
10583 * INSTALL: Added flex >= 2.5.35 requirement.
10584
db4d5813
VS
105852010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
10586
10587 * commands/usbtest.c (grub_usb_get_string): Properly support UTF-16.
10588
f24f4300
VS
105892010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
10590
10591 cmostest support.
10592
10593 * commands/i386/cmostest.c: New file.
10594 * conf/i386-coreboot.rmk (pkglib_MODULES): Add cmostest.mod.
10595 (cmostest_mod_SOURCES): New variable.
10596 (cmostest_mod_CFLAGS): Likewise.
10597 (cmostest_mod_LDFLAGS): Likewise.
10598 * conf/i386-pc.rmk: Likewise.
10599 * docs/grub.texi (Vendor power-on keys): New section.
10600 * util/grub-mkconfig.in: export GRUB_DEFAULT_BUTTON,
10601 GRUB_HIDDEN_TIMEOUT_BUTTON, GRUB_TIMEOUT_BUTTON
10602 and GRUB_BUTTON_CMOS_ADDRESS.
10603 * util/grub.d/00_header.in: Handle powering-on by separate button.
10604
ad603f61
VS
106052010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
10606
10607 * gfxmenu/gui_list.c (draw_menu): Don't add scrollbar width to padding.
10608 Removed drawing_scrollbar argument. All users updated
10609 Fixes #29792.
10610 Reported by Jo Shields
10611
3ecb080a
VS
106122010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
10613
10614 * gfxmenu/view.c (grub_gfxmenu_draw_terminal_box): Apply only to current
10615 buffer since gfxterm handles double repaint.
10616
5f2316c1
VS
106172010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
10618
10619 * gfxmenu/gfxmenu.c (grub_gfxmenu_try): Change viewport on both buffers.
10620 * term/gfxterm.c (real_scroll): Likewise.
10621
9a25f885
VS
106222010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
10623
10624 * kern/i386/pc/mmap.c (grub_machine_mmap_iterate): Zero-fill entry
10625 before calling BIOS.
10626
39fbb79a
VS
106272010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
10628
10629 * include/grub/i18n.h: Always enable grub_gettext.
10630
228cfa97
VS
106312010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
10632
10633 * kern/i386/pc/init.c (make_install_device): Fix a leftover usage of old
10634 partition naming style.
10635
21717c8f
CW
106362010-05-21 Colin Watson <cjwatson@ubuntu.com>
10637
10638 * util/grub-mkconfig.in: Fix handling of -o so that it works when
10639 not the first option.
10640
c0f48e65
CW
106412010-05-20 Colin Watson <cjwatson@ubuntu.com>
10642
10643 * util/grub-mkrelpath.c (usage): Remove excess apostrophe.
10644
96779aec
CW
106452010-05-20 Colin Watson <cjwatson@ubuntu.com>
10646
10647 * util/misc.c: Move inclusion of <limits.h> to ...
10648 * kern/emu/misc.c: ... here. Needed for canonicalize_file_name.
10649
fa9d256e
GS
106502010-05-20 Grégoire Sutre <gregoire.sutre@gmail.com>
10651
10652 * kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev) [__NetBSD__]:
10653 Fix merge error in NetBSD code.
10654 (find_partition_start) [__NetBSD__]: Likewise.
10655
123b7a85
BC
106562010-05-19 BVK Chaitanya <bvk.groups@gmail.com>
10657
10658 Fix grub-mkrescue usage unit testing.
10659
10660 * tests/util/grub-shell.in: Use --grub-mkimage with grub-mkrescue.
10661
74276c0d
CF
106622010-05-18 Christian Franke <franke@computer.org>
10663
10664 * util/grub.d/10_windows.in: Use path names instead of
10665 drive letters to prevent warning from Cygwin 1.7.
10666 Add drivemap command to menuentry if needed.
10667
c4f7b523
ST
106682010-05-18 Justus Winter <4winter@informatik.uni-hamburg.de>
10669
10670 * util/grub.d/10_hurd.in: Include all gnumach* kernels, not only
10671 gnumach and gnumach.gz.
10672
95b97950
VS
106732010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
10674
10675 * include/grub/i18n.h (gettext): Inline instead of using #define.
10676 (grub_gettext): Likewise.
10677 (_): Likewise.
10678
01b8d2d7
VS
106792010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
10680
10681 * Makefile.in (CPPFLAGS): Replace -DGRUB_LIBDIR with
10682 -DGRUB_PKGLIBROOTDIR= and prepend @PACKAGE_TARNAME@. All users updated.
10683 * util/grub-mkimage.c (image_targets): Add i386-multiboot.
10684 (main): Add a slash after pkglibdirroot.
10685
654e1d1e
VS
106862010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
10687
10688 * util/grub-install.in: Add missing "in" keyword.
10689
26966aeb
VS
106902010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
10691
10692 * util/grub-mkrescue.in: Remove -O i386-pc duplication.
10693 Reported by: Seth Goldberg.
10694
75006747
VS
106952010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
10696
10697 * po/POTFILES: Rename util/grub-mkrawimage.c to util/grub-mkimage.c.
10698
74cbf5bd
CW
106992010-05-18 Colin Watson <cjwatson@ubuntu.com>
10700
10701 * configure.ac: Check for Linux device-mapper support.
10702
10703 * util/hostdisk.c (device_is_mapped): New function.
10704 (find_partition_start): New function, partly broken out from
10705 linux_find_partition and grub_util_biosdisk_get_grub_dev but with
10706 device-mapper support added.
10707 (linux_find_partition): Use find_partition_start.
10708 (convert_system_partition_to_system_disk): Add `st' argument.
10709 Support Linux /dev/mapper/* devices if device-mapper support is
10710 available; only DM-RAID devices are understood at present.
10711 (find_system_device): Add `st' argument. Pass it to
10712 convert_system_partition_to_system_disk.
10713 (grub_util_biosdisk_get_grub_dev): Pass stat result to
10714 find_system_device and convert_system_partition_to_system_disk. Use
10715 find_partition_start.
10716
10717 * conf/common.rmk (grub_mkdevicemap_SOURCES): Add kern/env.c,
10718 kern/err.c, kern/list.c, kern/misc.c, and kern/emu/mm.c.
10719 * util/deviceiter.c [__linux__]: Define MINOR.
10720 (grub_util_iterate_devices): Add support for DM-RAID disk devices.
10721 * util/mkdevicemap.c (grub_putchar): New function.
10722 (grub_getkey): New function.
10723 (grub_refresh): New function.
10724 (main): Set debug=all if -v -v is used.
10725
355b51e9
CW
107262010-05-18 Colin Watson <cjwatson@ubuntu.com>
10727
10728 Fix build with non-GNU libcs.
10729
10730 * util/misc.c (canonicalize_file_name): Move to ...
10731 * kern/emu/misc.c (canonicalize_file_name): ... here. Needed by
10732 grub_make_system_path_relative_to_its_root.
10733
7fb5c25f
CW
107342010-05-18 Colin Watson <cjwatson@ubuntu.com>
10735
10736 * util/grub-mkrescue.in: Sync up with grub-install in terms of how
10737 we handle finding grub-mkimage. Default to finding grub-mkimage in
10738 ${bindir} with program_transform_name applied, and provide a
10739 --grub-mkimage option to override this.
10740
1d3293d6
VS
107412010-05-17 Vladimir Serbinenko <phcoder@gmail.com>
10742
10743 Remove grub-mkisofs.
10744
10745 * conf/common.rmk (bin_UTILITIES): Remove grub-mkisofs.
10746 (grub_mkisofs_SOURCES): Removed.
10747 (grub_mkisofs_CFLAGS): Removed.
10748 * util/mkisofs/defaults.h: Removed.
10749 * util/mkisofs/eltorito.c: Likewise.
10750 * util/mkisofs/exclude.h: Likewise.
10751 * util/mkisofs/hash.c: Likewise.
10752 * util/mkisofs/include/: Likewise.
10753 * util/mkisofs/include/fctldefs.h: Likewise.
10754 * util/mkisofs/include/mconfig.h: Likewise.
10755 * util/mkisofs/include/prototyp.h: Likewise.
10756 * util/mkisofs/include/statdefs.h: Likewise.
10757 * util/mkisofs/iso9660.h: Likewise.
10758 * util/mkisofs/joliet.c: Likewise.
10759 * util/mkisofs/match.c: Likewise.
10760 * util/mkisofs/match.h: Likewise.
10761 * util/mkisofs/mkisofs.c: Likewise.
10762 * util/mkisofs/mkisofs.h: Likewise.
10763 * util/mkisofs/msdos_partition.h: Likewise.
10764 * util/mkisofs/multi.c: Likewise.
10765 * util/mkisofs/name.c: Likewise.
10766 * util/mkisofs/rock.c: Likewise.
10767 * util/mkisofs/tree.c: Likewise.
10768 * util/mkisofs/write.c: Likewise.
10769
5dde9afe
VS
107702010-05-17 Vladimir Serbinenko <phcoder@gmail.com>
10771
10772 Unify grub-mkimage accross platforms.
10773
10774 * Makefile.in (CPPFLAGS): Set GRUB_LIBDIR to $(libdir).
10775 * conf/common.rmk (bin_UTILITIES): Removed grub-mkelfimage.
10776 (grub_mkelfimage_SOURCES): Removed.
10777 (util/elf/grub-mkimage.c_DEPENDENCIES): Renamed to ..
10778 (util/grub-mkimage.c_DEPENDENCIES): .. this.
10779 (bin_UTILITIES): Add grub-mkimage.
10780 (grub_mkimage_SOURCES): New variable.
10781 (kernel_img_HEADERS): Remove machine/kernel.h.
10782 * conf/i386-pc.rmk (pkglib_IMAGES): Remove kernel.img.
10783 (pkglib_PROGRAMS): Add kernel.img.
10784 (kernel_img_HEADERS): Add machine/kernel.h.
10785 (kernel_img_FORMAT): Removed.
10786 (bin_UTILITIES): Remove grub-mkimage.
10787 (grub_mkimage_SOURCES): Removed.
10788 (grub_mkimage_CFLAGS): Likewise.
10789 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
10790 * conf/i386-qemu.rmk (pkglib_IMAGES): Remove kernel.img.
10791 (pkglib_PROGRAMS): Add kernel.img.
10792 (bin_UTILITIES): Remove grub-mkimage.
10793 (grub_mkimage_SOURCES): Removed.
10794 (grub_mkimage_CFLAGS): Likewise.
10795 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
10796 * conf/mips-qemu-mips.rmk (pkglib_IMAGES): Remove kernel.img.
10797 (pkglib_PROGRAMS): Add kernel.img.
10798 * conf/mips-yeeloong.rmk (pkglib_IMAGES): Remove kernel.img.
10799 (pkglib_PROGRAMS): Add kernel.img.
10800 * conf/mips.rmk (bin_UTILITIES): Remove grub-mkimage.
10801 (grub_mkimage_SOURCES): Removed.
10802 (grub_mkimage_CFLAGS): Likewise.
10803 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
10804 * conf/sparc64-ieee1275.rmk (pkglib_IMAGES): Remove kernel.img.
10805 (pkglib_PROGRAMS): Add kernel.img.
10806 (bin_UTILITIES): Remove grub-mkimage.
10807 (grub_mkimage_SOURCES): Removed.
10808 (grub_mkimage_CFLAGS): Likewise.
10809 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
10810 * conf/x86-efi.rmk (bin_UTILITIES): Remove grub-mkimage.
10811 (grub_mkimage_SOURCES): Removed.
10812 (grub_mkimage_CFLAGS): Likewise.
10813 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
10814 * configure.ac (machine_CFLAGS): Add "-DMACHINE".
10815 * include/grub/efi/pe32.h (grub_pe32_optional_header): Split into ...
10816 (grub_pe32_optional_header): ... this.
10817 (grub_pe64_optional_header): ... and this. All users updated.
10818 (GRUB_PE32_PE32_MAGIC): Split into ..
10819 (GRUB_PE32_PE32_MAGIC): .. this.
10820 (GRUB_PE32_PE64_MAGIC): .. and this.
10821 (GRUB_PE32_SIGNATURE_SIZE): New definition.
10822 * include/grub/elf.h (PT_GNU_STACK): New definition.
10823 * include/grub/i386/coreboot/kernel.h: Merged into include/grub/offsets.h. All users updated.
10824 * include/grub/i386/efi/kernel.h: Likewise.
10825 * include/grub/i386/kernel.h: Likewise.
10826 * include/grub/i386/pc/kernel.h: Likewise.
10827 * include/grub/i386/qemu/boot.h: Likewise.
10828 * include/grub/mips/kernel.h: Likewise.
10829 * include/grub/mips/qemu-mips/kernel.h: Likewise.
10830 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
10831 * include/grub/powerpc/kernel.h: Likewise.
10832 * include/grub/sparc64/ieee1275/boot.h: Likewise.
10833 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
10834 * include/grub/sparc64/kernel.h: Likewise.
10835 * include/grub/x86_64/efi/kernel.h: Likewise.
10836 * include/grub/x86_64/kernel.h: Likewise.
10837 * include/grub/offsets.h: New file.
10838 * include/grub/kernel.h (grub_module_info): Split into ...
10839 (grub_module_info32): ... this.
10840 (grub_module_info64): ... and this.
10841 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_KERNEL_SEG): Moved from here ...
10842 * include/grub/offsets.h (GRUB_BOOT_I386_PC_KERNEL_SEG): ... here.
10843 (grub_boot_blocklist): Moved from here ...
10844 * include/grub/offsets.h (grub_pc_bios_boot_blocklist): ... here.
10845 * include/grub/i386/pc/memory.h (GRUB_MEMORY_MACHINE_UPPER): Moved from here.
10846 * include/grub/offsets.h (GRUB_MEMORY_I386_PC_UPPER): .. here.
10847 * include/grub/types.h (grub_target_to_host16): Removed.
10848 (grub_target_to_host32): Likewise.
10849 (grub_target_to_host64): Likewise.
10850 (grub_host_to_target16): Likewise.
10851 (grub_host_to_target32): Likewise.
10852 (grub_host_to_target64): Likewise.
10853 (grub_host_to_target_addr): Likewise.
10854
10855 Support grub-mkrescue for efi, coreboot and qemu.
10856
10857 * conf/x86-efi.rmk (bin_SCRIPTS): Add grub-mkrescue.
10858 * kern/efi/init.c (grub_efi_set_prefix): Handle baked in prefix.
10859 * util/elf/grub-mkimage.c: Merged into util/grub-mkimage.c.
10860 * util/grub-mkrawimage.c: Moved from here ...
10861 * util/grub-mkimage.c: ... here. All users updated.
10862 (ALIGN_ADDR): Use image_target.
10863 (TARGET_NO_FIELD): New const.
10864 (image_target_desc): New type.
10865 (image_targets): New array.
10866 (grub_target_to_host64): Use image_target.
10867 (grub_target_to_host32): Likewise.
10868 (grub_target_to_host16): Likewise.
10869 (grub_host_to_target64): Likewise.
10870 (grub_host_to_target32): Likewise.
10871 (grub_host_to_target16): Likewise.
10872 (grub_host_to_target_addr): Likewise.
10873 (generate_image): Handle multiimage.
10874 (main): Require -O parameter. All users updated.
10875 * util/grub-mkimagexx.c: New file. Based on util/grub-mkrawimage.c and
10876 util/efi/grub-mkimage.c
10877 * util/grub-mkrescue.in: Handle coreboot, efi and qemu.
10878 New option --rom-directory.
10879 Use xorriso.
10880 * util/i386/efi/grub-mkimage.c: Removed.
10881 * util/i386/pc/grub-setup.c (grub_target_to_host16): New definition.
10882 (grub_target_to_host32): Likewise.
10883 (grub_target_to_host64): Likewise.
10884 (grub_host_to_target16): Likewise.
10885 (grub_host_to_target32): Likewise.
10886 (grub_host_to_target64): Likewise.
10887 * util/sparc64/ieee1275/grub-setup.c (grub_target_to_host16): New definition.
10888 (grub_target_to_host32): Likewise.
10889 (grub_target_to_host64): Likewise.
10890 (grub_host_to_target16): Likewise.
10891 (grub_host_to_target32): Likewise.
10892 (grub_host_to_target64): Likewise.
10893
f4fc97d0
BC
108942010-05-17 BVK Chaitanya <bvk.groups@gmail.com>
10895
10896 Source tree is reorganized for emu build.
10897
10898 * include/grub/util/console.h: Move from here...
10899 * include/grub/emu/console.h: ...to here.
10900 * include/grub/util/getroot.h: Move from here...
10901 * include/grub/emu/getroot.h: ...to here.
10902 * include/grub/util/hostdisk.h: Move from here...
10903 * include/grub/emu/hostdisk.h: ...to here.
10904 * util/console.c: Move from here...
10905 * kern/emu/console.c: ...to here.
10906 * util/getroot.c: Move from here...
10907 * kern/emu/getroot.c: ...to here.
10908 * util/grub-emu.c: Move from here...
10909 * kern/emu/main.c: ...to here.
10910 * util/hostdisk.c: Move from here...
10911 * kern/emu/hostdisk.c: ...to here.
10912 * util/hostfs.c: Move from here...
10913 * kern/emu/hostfs.c: ...to here.
10914 * util/mm.c: Move from here...
10915 * kern/emu/mm.c: ...to here.
10916 * util/pci.c: Move from here...
10917 * bus/emu/pci.c: ...to here.
10918 * util/sdl.c: Move from here...
10919 * video/emu/sdl.c: ...to here.
10920 * util/time.c: Move from here...
10921 * kern/emu/time.c: ...to here.
10922 * util/usb.c: Move from here...
10923 * bus/usb/emu/usb.c: ...to here.
10924
10925 * include/grub/emu/misc.h: New header for grub-emu functions.
10926 * kern/emu/misc.c: grub-emu functions separated from util/misc.c
10927
10928 * conf/any-emu.rmk: Rule updates for above renames.
10929 * conf/common.rmk: Likewise.
10930 * conf/i386-pc.rmk: Likewise.
10931 * conf/i386-qemu.rmk: Likewise.
10932 * conf/mips.rmk: Likewise.
10933 * conf/sparc64-ieee1275.rmk: Likewise.
10934 * conf/x86-efi.rmk: Likewise.
10935
10936 * disk/lvm.h: #include updates for above renames.
10937 * util/grub-mkrelpath.c: Likewise.
10938 * util/grub-probe.c: Likewise.
10939 * util/i386/pc/grub-setup.c: Likewise.
10940 * util/sparc64/ieee1275/grub-setup.c: Likewise.
10941 * kern/emu/console.c: Likewise.
10942 * kern/emu/getroot.c: Likewise.
10943 * kern/emu/hostdisk.c: Likewise.
10944 * kern/emu/main.c: Likewise. (was grub-emu.c earlier)
10945
10946 * include/grub/dl.h: Remove grub_dl_{ref,unref}.
10947 * include/grub/util/misc.h: Move grub-emu functions to emu/misc.h.
10948 * kern/dl.c: Handle null mod in grub_dl_{ref,unref}.
10949 * util/misc.c: Remove grub-emu functions.
10950
cced9145
VS
109512010-05-13 Vladimir Serbinenko <phcoder@gmail.com>
10952
10953 Fix gfxmenu crash.
10954 Reported by: Thorsten Grützmacher.
10955
10956 * gfxmenu/gui_circular_progress.c (circprog_destroy): Unregister
10957 timeout hook.
10958 (circprog_set_property): Register and unregister timeout hook.
10959 * gfxmenu/gui_label.c (grub_gui_label): New fields template and value.
10960 (label_destroy): Free template. and unregister hook.
10961 (label_set_state): New function.
10962 (label_set_property): Handle templates and hooks.
10963 * gfxmenu/gui_progress_bar.c (progress_bar_destroy): Unregister
10964 timeout hook.
10965 (progress_bar_set_property): Register and unregister timeout hook.
10966 * gfxmenu/view.c (TIMEOUT_COMPONENT_ID): Move from here ...
10967 * include/grub/gui.h (GRUB_GFXMENU_TIMEOUT_COMPONENT_ID): ...to here
10968 * gfxmenu/view.c (grub_gfxmenu_timeout_notifications): New variable.
10969 (update_timeout_visit): Removed.
10970 (update_timeouts): New function.
10971 (redraw_timeouts): Likewise.
10972 (grub_gfxmenu_print_timeout): Use update_timeouts and redraw_timeouts.
10973 (grub_gfxmenu_clear_timeout): Likewise.
10974 * include/grub/gui.h (grub_gfxmenu_set_state_t): New type.
10975 (grub_gfxmenu_timeout_notify): Likewise.
10976 (grub_gfxmenu_timeout_notifications): New external variable.
10977 (grub_gfxmenu_timeout_register): New function.
10978 (grub_gfxmenu_timeout_unregister): Likewise.
10979
c6e5caab
VS
109802010-05-09 Vladimir Serbinenko <phcoder@gmail.com>
10981
10982 Transform (broken) vga terminal into (working) vga video driver.
10983
10984 * conf/i386-pc.rmk (vga_mod_SOURCES): Change term/i386/pc/vga.c to
10985 video/i386/pc/vga.c.
10986 * include/grub/video.h (grub_video_driver_id):
10987 Add GRUB_VIDEO_DRIVER_VGA.
10988 * term/i386/pc/vga.c: Renamed to ...
10989 * video/i386/pc/vga.c: ...this
10990 (DEBUG_VGA): Removed.
10991 (CHAR_WIDTH): Likewise.
10992 (CHAR_HEIGHT): Likewise.
10993 (TEXT_WIDTH): Likewise.
10994 (TEXT_HEIGHT): Likewise.
10995 (DEFAULT_FG_COLOR): Likewise.
10996 (DEFAULT_BG_COLOR): Likewise.
10997 (colored_char): Likewise.
10998 (xpos): Likewise.
10999 (ypos): Likewise.
11000 (cursor_state): Likewise.
11001 (fg_color): Likewise.
11002 (bg_color): Likewise.
11003 (text_buf): Likewise.
11004 (page): Likewise.
11005 (font): Likewise.
11006 (framebuffer): New variable.
11007 (set_read_map): Disabled.
11008 (setup): New variable.
11009 (is_target): Likewise.
11010 (grub_vga_mod_init): Likewise.
11011 (grub_vga_mod_fini): Likewise.
11012 (check_vga_mem): Likewise.
11013 (write_char): Likewise.
11014 (write_cursor): Likewise.
11015 (scroll_up): Likewise.
11016 (grub_vga_putchar): Likewise.
11017 (grub_vga_getcharwidth): Likewise.
11018 (grub_vga_getwh): Likewise.
11019 (grub_vga_getxy): Likewise.
11020 (grub_vga_gotoxy): Likewise.
11021 (grub_vga_cls): Likewise.
11022 (grub_vga_setcolorstate): Likewise.
11023 (grub_vga_setcursor): Likewise.
11024 (grub_video_vga_init): New function.
11025 (grub_video_vga_setup): Likewise.
11026 (grub_video_vga_fini): Likewise.
11027 (update_target): Likewise.
11028 (grub_video_vga_blit_bitmap): Likewise.
11029 (grub_video_vga_blit_render_target): Likewise.
11030 (grub_video_vga_set_active_render_target): Likewise.
11031 (grub_video_vga_get_active_render_target): Likewise.
11032 (grub_video_vga_swap_buffers): Likewise.
11033 (grub_video_vga_set_palette): Likewise.
11034 (grub_video_vga_get_info_and_fini): Likewise.
11035 (grub_vga_term): Removed.
11036 (grub_video_vga_adapter): New variable.
11037 (GRUB_MOD_INIT): Register a video driver instead of terminal.
11038 (GRUB_MOD_FINI): Unrefister a video driver instead of terminal.
11039
2bf61a98
VS
110402010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
11041
11042 * video/readers/jpeg.c: Indented.
11043
09ddcd11
VS
110442010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
11045
11046 Various jpeg cleanups.
11047
11048 * video/readers/jpeg.c (grub_jpeg_get_huff_code): Use ARRAY_SIZE.
11049 (grub_jpeg_decode_quan_table): Use sizeof.
11050 (grub_jpeg_decode_du): Use ARRAY_SIZE.
11051
e5507505
PH
110522010-05-05 Peter Hurley <No e-mail available> (tiny change)
11053
11054 * video/readers/jpeg.c (grub_jpeg_decode_huff_table): Loop over all
11055 tables. Ignore non-last ac bit.
11056 (grub_jpeg_decode_quan_table): Likewise.
11057
7e720a9b
VS
110582010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
11059
11060 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New value
11061 GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM.
11062 * kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
11063 GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM on qemu.
11064 * kern/ieee1275/init.c (grub_claim_heap): Don0t allocate below
11065 1.5MiB if GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM is set.
11066
a7fc080b
VS
110672010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
11068
11069 * term/ieee1275/ofconsole.c (grub_ofconsole_getkey): Fix off-by-one
11070 error.
11071
2bf6012d
VS
110722010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
11073
11074 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Support C0 code.
11075
265d68cd
VS
110762010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
11077
11078 * commands/parttool.c (grub_cmd_parttool): Fix #if !GRUB_NO_MODULES
11079 condition.
11080
110812010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
7dd5a111
VS
11082
11083 * kern/mm.c (grub_real_malloc): Put magic and size assignment in common
11084 part.
11085
265d68cd 110862010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
9b058d52
VS
11087
11088 * kern/mm.c (grub_mm_init_region): Check for region size after aligning
11089 pointers.
11090
265d68cd 110912010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
25893831
VS
11092
11093 * kern/mm.c (grub_real_malloc): Fix size calculation when extra == 0.
11094
d1b61374
CF
110952010-05-01 Christian Franke <franke@computer.org>
11096
11097 * util/grub-mkconfig_lib.in (make_system_path_relative_to_its_root):
11098 Remove broken Cygwin path conversion.
11099 * util/misc.c: [__CYGWIN__] Add include and define.
11100 [__CYGWIN__] (get_win32_path): Copy function from getroot.c, modify
11101 for Cygwin 1.7.
11102 (make_system_path_relative_to_its_root): Simplify loop, replace early
11103 return by break.
11104 [__CYGWIN__] Add conversion to win32 path.
11105 Include "/" case in trailing slash removal.
11106
3558c6e9
VS
111072010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
11108
11109 * kern/main.c (grub_load_config): Fix copy-pasted comment.
11110 Reported by: Seth Goldberg
11111
f5f3ff93
VS
111122010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
11113
11114 * commands/help.c (grub_cmd_help): Fix a typo.
11115 Reported by: Seth Goldberg
11116
d8b5cd40
VS
111172010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
11118
11119 * commands/hashsum.c (GRUB_MOD_INIT): Remove duplication of command
11120 name and add N_.
11121 * commands/i386/pc/drivemap.c (GRUB_MOD_INIT): Likewise.
11122 * commands/iorw.c (GRUB_MOD_INIT): Likewise.
11123 * commands/password_pbkdf2.c (GRUB_MOD_INIT): Likewise.
11124 * commands/regexp.c (GRUB_MOD_INIT): Likewise.
11125 * commands/setpci.c (GRUB_MOD_INIT): Likewise.
11126 * commands/terminal.c (GRUB_MOD_INIT): Likewise.
11127 * efiemu/main.c (GRUB_MOD_INIT): Likewise.
11128 * font/font_cmd.c (GRUB_MOD_INIT): Likewise.
11129 * kern/corecmd.c (GRUB_MOD_INIT): Likewise.
11130 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
11131 * normal/context.c (GRUB_MOD_INIT): Likewise.
11132 * normal/main.c (GRUB_MOD_INIT): Likewise.
11133 * term/gfxterm.c (GRUB_MOD_INIT): Likewise.
11134 * term/serial.c (GRUB_MOD_INIT): Likewise.
11135 * term/terminfo.c (GRUB_MOD_INIT): Likewise.
11136
88c14915
VS
111372010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
11138
11139 * kern/mm.c (grub_real_malloc): Satisfy alignment requirement when
11140 extra == 0.
11141
165134bc
VS
111422010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
11143
11144 * commands/iorw.c: New file.
11145 * conf/i386.rmk (pkglib_MODULES): Add iorw.mod.
11146 (iorw_mod_SOURCES): New variable.
11147 (iorw_mod_CFLAGS): Likewise.
11148 (iorw_mod_LDFLAGS): Likewise.
11149
c5ac9b32
VS
111502010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
11151
11152 Hotkey support
11153
11154 * include/grub/menu.h (grub_menu_entry): New field 'hotkey'.
11155 * normal/main.c (hotkey_aliases): New variable.
11156 (grub_normal_add_menu_entry): Parse "--hotkey".
11157 * normal/menu_text.c (run_menu): Handle hotkeys.
11158
ce60689c
VS
111592010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
11160
11161 * kern/i386/coreboot/init.c (grub_machine_init): Call
11162 grub_machine_mmap_init on qemu.
11163
0359d006
VS
111642010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
11165
11166 * boot/i386/qemu/boot.S: Add a missing .code16.
11167
7819a456
VS
111682010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
11169
11170 Use LBIO on coreboot.
11171
11172 * conf/i386-coreboot.rmk (kernel_img_SOURCES): Change
11173 kern/i386/multiboot_mmap.c to kern/i386/coreboot/mmap.c.
11174 * include/grub/i386/coreboot/memory.h (GRUB_LINUXBIOS_MEMBER_LINK):
11175 New declaration.
11176 * kern/i386/coreboot/init.c (grub_machine_init): Don't call
11177 grub_machine_mmap_init on coreboot.
11178 * kern/i386/coreboot/mmap.c (grub_linuxbios_table_iterate): Handle
11179 GRUB_LINUXBIOS_MEMBER_LINK.
11180 (grub_machine_mmap_iterate): Fix declaration.
11181 * kern/i386/coreboot/startup.S: Don't save mbi location on coreboot.
11182
7210dca9
VS
111832010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
11184
11185 Split coreboot and multiboot ports.
11186
11187 * conf/i386-multiboot.rmk: New file.
11188 * configure.ac: Add multiboot port.
11189 * include/grub/i386/multiboot/boot.h: New file.
11190 * include/grub/i386/multiboot/console.h: Likewise.
11191 * include/grub/i386/multiboot/init.h: Likewise.
11192 * include/grub/i386/multiboot/kernel.h: Likewise.
11193 * include/grub/i386/multiboot/loader.h: Likewise.
11194 * include/grub/i386/multiboot/memory.h: Likewise.
11195 * include/grub/i386/multiboot/serial.h: Likewise.
11196 * include/grub/i386/multiboot/time.h: Likewise.
11197 * include/grub/multiboot.h: Add GRUB_MACHINE_MULTIBOOT to ifdef.
11198 * loader/multiboot.c: Likewise.
11199 * loader/multiboot_mbi2.c: Likewise.
11200 * util/grub-mkrescue.in: Generate multiboot rescue.
11201
6f8aaf68
VS
112022010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
11203
3080f7a7
VS
11204 * kern/parser.c (grub_parser_execute): Cope with read-only config.
11205
112062010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
11207
11208 Merge handling of input and output terminals. Fix a hang.
6f8aaf68
VS
11209
11210 * commands/terminal.c (abstract_terminal): New struct.
11211 (handle_command): New function. Based on grub_cmd_terminal_input.
11212 (grub_cmd_terminal_input): Use handle_command.
11213 (grub_cmd_terminal_output): Use handle_command.
11214
a8ebb841
BC
112152010-05-01 BVK Chaitanya <bvk.groups@gmail.com>
11216
11217 Fix comment handling.
11218
11219 * tests/grub_script_comments.in: New testcase.
11220 * conf/tests.rmk: Rules for new testcase.
11221 * script/yylex.l: Updated flex rules.
11222
bb06ba08
ST
112232010-04-28 Samuel Thibault <samuel.thibault@ens-lyon.org>
11224
11225 * docs/grub.texi (play): Document that zero pitches produce rests.
c76a1838
ST
11226 * commands/i386/pc/play.c (grub_cmd_play): Call 'grub_file_open' only
11227 if argc is 1.
bb06ba08 11228
cc9d2425
VS
112292010-04-27 Vladimir Serbinenko <phcoder@gmail.com>
11230
11231 * conf/x86-efi.rmk (linux_mod_SOURCES): Write explicitly to avoid
11232 autogen issues.
11233
460d8402
CF
112342010-04-26 Christian Franke <franke@computer.org>
11235
11236 * include/grub/util/getroot.h (grub_get_prefix): Remove prototype.
11237 * util/getroot.c [__CYGWIN__] (get_win32_path): Remove function.
11238 (grub_get_prefix): Remove function.
11239 * util/grub-emu.c (main): Replace grub_get_prefix () call by
11240 make_system_path_relative_to_its_root ().
11241 * util/sparc64/ieee1275/grub-setup.c (main): Likewise.
11242
553c01f9
CF
112432010-04-24 Christian Franke <franke@computer.org>
11244
11245 * Makefile.in (TARGET_LDFLAGS): Add -static-libgcc.
11246 (kernel_img_LDFLAGS): Remove -static-libgcc.
11247
2aec1692
CF
112482010-04-24 Christian Franke <franke@computer.org>
11249
11250 * configure.ac: Do not CHECK_BSS_START_SYMBOL
11251 and CHECK_END_SYMBOL if grub-emu is built.
11252 Unset TARGET_OBJ2ELF if grub-emu is built
11253 without module support.
11254
f67dc308
JS
112552010-04-24 Jiro SEKIBA <jir@unicus.jp>
11256
11257 Nilfs2 support.
11258
11259 * conf/common.rmk (grub_probe_SOURCES): Add fs/nilfs2.c.
11260 (grub_fstest_SOURCES): Likewise.
11261 (pkglib_MODULES): Add nilfs2.mod.
11262 (nilfs2_mod_SOURCES): New variable.
11263 (nilfs2_mod_CFLAGS): Likewise.
11264 (nilfs2_mod_LDFLAGS): Likewise.
11265 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/nilfs2.c.
11266 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Add fs/nilfs2.c.
11267 * fs/nilfs2.c: New file.
11268
4ba8d354
VS
112692010-04-21 Vladimir Serbinenko <phcoder@gmail.com>
11270
11271 * configure.ac: Refuse to compile for x86_64-efi is mcmodel=large
11272 is not supported.
11273
0d2c20c6
GS
112742010-04-19 Grégoire Sutre <gregoire.sutre@gmail.com>
11275
11276 Add grub-mkconfig support for NetBSD.
11277
11278 * util/grub.d/10_netbsd.in: grub-mkconfig helper script for NetBSD.
11279 * util/grub-mkconfig.in: export new NetBSD specific variables.
11280 * po/POTFILES-shell: added 10_netbsd.in.
11281 * util/grub-mkconfig_lib.in: check for gettext binary, default to echo.
11282
bc4a2d83
BC
112832010-04-19 BVK Chaitanya <bvk.groups@gmail.com>
11284
11285 Fix emu build with grub-emu-pci and grub-emu-modules.
11286
11287 * include/grub/util/misc.h: Export grub_util_{info,error,warn}
11288 functions.
11289 * include/grub/libpciaccess.h: New file.
11290 * conf/any-emu.rmk: Update kernel headers for emu build.
11291
f48c87aa
VS
112922010-04-19 Vladimir Serbinenko <phcoder@gmail.com>
11293
11294 * fs/udf.c (grub_udf_iterate_dir): Silence a spurious warning.
11295
18959385
VS
112962010-04-19 Vladimir Serbinenko <phcoder@gmail.com>
11297
11298 * fs/udf.c (grub_udf_iterate_dir): Decode the Unicode filenames.
11299
0037de3f
VS
113002010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
11301
11302 * boot/sparc64/ieee1275/boot.S: Various size-reducing changes.
11303 Retrieve chosen/bootpath if bootpath isn't hardcoded.
11304 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Add
11305 util/ieee1275/ofpath.c.
11306 * util/sparc64/ieee1275/grub-ofpathname.c: Renamed to ...
11307 * util/ieee1275/grub-ofpathname.c: ... this. All users updated
11308 * include/grub/sparc64/ieee1275/boot.h
11309 (GRUB_BOOT_MACHINE_KERNEL_SECTOR): Renamed to ...
11310 (GRUB_BOOT_MACHINE_KERNEL_BYTE): ...this. Moved 8 bytes lower.
11311 * util/hostdisk.c (grub_util_biosdisk_get_osdev): New function.
11312 * util/ieee1275/ofpath.c (grub_util_devname_to_ofpath): Make argument
11313 const char *.
11314 * util/sparc64/ieee1275/grub-setup.c (compute_dest_ofpath): Removed.
11315 (setup): Use KERNEL_BYTE instead of KERNEL_SECTOR.
11316 Use grub_util_devname_to_ofpath. Zero-fill boot_devpath on same disk
11317 install.
11318
38e55e90
GS
113192010-04-18 Grégoire Sutre <gregoire.sutre@gmail.com>
11320
11321 * util/grub-mkconfig.in: Corrected two == equality tests.
11322 Set grub_prefix as in grub-install for NetBSD and OpenBSD.
11323 * configure.ac: All definitions and uses of TARGET_IMG_LDFLAGS_AC now
11324 expect a number appended to it.
11325 * acinclude.m4 (grub_PROG_OBJCOPY_ABSOLUTE): ${TARGET_IMG_LDFLAGS_AC}
11326 expects a number appended to it.
11327
a9e6ff28
VS
113282010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
11329
11330 * po/POTFILES: Renamed multiboot_loader.c to multiboot.c
11331
0b830b8f
VS
113322010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
11333
11334 * util/hostdisk.c (make_device_name): Change to new partition naming.
11335
0973daeb
VS
113362010-04-17 Vladimir Serbinenko <phcoder@gmail.com>
11337
11338 * disk/lvm.c (grub_lvm_memberlist): Issue an error if pv->disk = 0.
11339
460d8402 113402010-04-17 Christian Franke <franke@computer.org>
ebfe7eb4
CF
11341
11342 * Makefile.in: Add missing localedir setting.
11343
0b456309
CW
113442010-04-14 Colin Watson <cjwatson@ubuntu.com>
11345
11346 Restore TEXTDOMAINDIR correction from r1889, lost apparently by
11347 mistake in r2156. Noticed by Anthony Fok.
11348
11349 * util/grub.d/10_kfreebsd.in (TEXTDOMAINDIR): Set to lowercased
11350 @localedir@.
11351 * util/grub.d/10_linux.in (TEXTDOMAINDIR): Likewise.
11352
08f46d62
BC
113532010-04-14 BVK Chaitanya <bvk.groups@gmail.com>
11354
11355 Fix a spurious, uninitialized variable warning.
11356
11357 * loader/i386/bsdXX.c (grub_freebsd_load_elfmodule_obj):
11358 Initialize variable, shdr.
11359 (grub_freebsd_load_elfmodule): Likewise.
11360 (grub_freebsd_load_elf_meta): Likewise.
11361
8c4a72d4
BC
113622010-04-13 BVK Chaitanya <bvk.groups@gmail.com>
11363
11364 Fix for escaped dollar in double quoted strings.
11365
11366 * script/yylex.l: Updated flex rules.
11367 * conf/tests.rmk: Rule for new testcase.
11368 * tests/grub_script_dollar.in: New testcase.
11369
ce44826e
CPE
113702010-04-13 Carles Pina i Estany <carles@pina.cat>
113712010-04-13 Colin Watson <cjwatson@ubuntu.com>
11372
11373 Enclose all translated strings in grub.cfg in single quotes, and
11374 escape them appropriately (Ubuntu bug #552921).
11375
11376 * util/grub-mkconfig_lib.in (gettext_quoted): New function.
11377 * util/grub.d/10_hurd.in: Use it.
11378 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
11379 * util/grub.d/10_linux.in (linux_entry): Likewise.
11380
4b0cd8f8
VS
113812010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
11382
11383 Fix cygwin compilation.
11384
11385 * configure.ac: Define NEED_REGISTER_FRAME_INFO.
11386 * include/grub/misc.h (__register_frame_info)
11387 [NEED_REGISTER_FRAME_INFO && !UTIL]: New export.
11388 (__deregister_frame_info) [NEED_REGISTER_FRAME_INFO && !UTIL]: Likewise.
11389 * kern/misc.c (__register_frame_info)
11390 [NEED_REGISTER_FRAME_INFO && !UTIL]: New empty function.
11391 (__deregister_frame_info) [NEED_REGISTER_FRAME_INFO && !UTIL]: Likewise.
11392
01fcf061
VS
113932010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
11394
11395 * configure.ac: Respect grub_cv_asm_uscore when defining dummy symbols.
11396
5d04b11e
VS
113972010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
11398
11399 Unify libgcc processing.
11400
11401 * Makefile.in (kernel_img_LDFLAGS): New variable.
11402 * conf/common.rmk (kernel_img_HEADERS): Add libgcc.h.
11403 * conf/i386-coreboot.rmk (kernel_img_LDFLAGS): Append instead of
11404 overwriting.
11405 * conf/i386-ieee1275.rmk (kernel_img_LDFLAGS): Likewise.
11406 * conf/i386-pc.rmk (kernel_img_LDFLAGS): Likewise.
11407 * conf/i386-qemu.rmk (kernel_img_LDFLAGS): Likewise.
11408 * conf/x86-efi.rmk (kernel_img_LDFLAGS): Likewise.
11409 * conf/mips-qemu-mips.rmk (kernel_img_LDFLAGS): Append instead of
11410 overwriting. Remove -lgcc and -static-libgcc
11411 * conf/mips-yeeloong.rmk (kernel_img_LDFLAGS): Likewise.
11412 * conf/mips.rmk (kernel_img_HEADERS): Remove cpu/libgcc.h
11413 * conf/powerpc-ieee1275.rmk (kernel_img_HEADERS): Remove cpu/libgcc.h
11414 (kernel_img_LDFLAGS): Append instead of overwriting.
11415 Remove -lgcc and -static-libgcc
11416 * conf/sparc64-ieee1275.rmk: Likewise.
11417 * include/grub/powerpc/libgcc.h: Move to ...
11418 * include/grub/libgcc.h: .. this.
11419 * include/grub/libgcc.h: Don't export most of the function on x86.
11420 (__bswapsi2): New export.
11421 (__bswapdi2): Likewise.
11422 * include/grub/mips/libgcc.h: Removed.
11423 * include/grub/sparc64/libgcc.h: Likewise.
11424
b7f3ac29
VS
114252010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
11426
11427 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Remove
11428 disk_info_msg (conflicts with gettexting into languages with cases).
11429
2c7031b1
GS
114302010-04-10 Grégoire Sutre <gregoire.sutre@gmail.com>
11431
11432 Add grub-probe support for NetBSD.
11433
11434 * util/getroot.c (find_root_device): Convert block device to
11435 character device on NetBSD.
11436 * util/probe.c (probe): Require character device on NetBSD.
11437 * util/hostdisk.c: NetBSD specific headers.
11438 (configure_device_driver): new function to tune device driver
11439 parameters (currently only for NetBSD floppy driver).
11440 (grub_util_biosdisk_open): NetBSD specific code (get disk size
11441 via disklabel ioctl).
11442 (open_device): call configure_device_driver on NetBSD.
11443 (convert_system_partition_to_system_disk): NetBSD specific code.
11444 (device_is_wholedisk): Likewise.
11445 (grub_util_biosdisk_get_grub_dev): Likewise.
11446 (make_device_name): Fixed a typo in bsd_part_str.
11447 * configure.ac: check for opendisk() and getrawpartition() on
11448 NetBSD and set LIBUTIL.
11449 * Makefile.in: add LIBUTIL to LIBS.
11450
f516290c
BC
114512010-04-10 BVK Chaitanya <bvk.groups@gmail.com>
11452
11453 Documentation fix.
11454
11455 * util/grub-script-check.c: Better help message.
11456
d8dcc0df
BC
114572010-04-10 BVK Chaitanya <bvk.groups@gmail.com>
11458
11459 Fix FreeBSD build.
11460
11461 * configure.ac: Flex version check.
11462 * conf/common.rmk: Add -Wno-error to sh.mod.
11463 * script/yylex.l: Remove all #pragma.
11464
6734334a
VS
114652010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
11466
11467 * include/grub/util/misc.h (canonicalise_file_name): Add missing
11468 prototype.
11469 Reported by: Seth Goldberg.
11470
daea6abd
VS
114712010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
11472
11473 * loader/multiboot.c (GRUB_MOD_INIT) [GRUB_USE_MULTIBOOT2]:
11474 Rename "module" to "module2".
11475 Reported by: Seth Goldberg.
11476
f2fd9d2b
VS
114772010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
11478
11479 * include/grub/efi/memory.h (grub_machine_mmap_iterate): Remove
11480 EXPORT_FUNC.
11481 Reported by: Seth Goldberg.
11482
be124579
VS
114832010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
11484
11485 * lib/posix_wrap/locale.h: Add missing file.
11486 Reported by: Seth Goldberg.
11487
ef5da797
VS
114882010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
11489
11490 grub-emu module load support.
11491
11492 * Makefile.in (TARGET_NO_MODULES): New variable. All users of
11493 NO_DYNAMIC_MODULES switched to this.
11494 (TARGET_CFLAGS): Add -DGRUB_TARGET_NO_MODULES=1 if applicable.
11495 (CFLAGS): Likewise.
11496 * conf/any-emu.rmk: Generate symlist.
11497 (kernel_img_HEADERS): Add util/datetime.h.
11498 (kernel_img_HEADERS) [sdl]: Add sdl.h.
11499 (kernel_img_HEADERS) [libusb]: Add libusb.h.
11500 (kernel_img_SOURCES) [TARGET_NO_MODULES = no && !x86]: Add
11501 kern/$(target_cpu)/cache.S.
11502 * configure.ac (grub-emu-modules): New option.
11503 * genmk.rb: Handle multiple source lists.
11504 * include/grub/sdl.h: New file.
11505 * include/grub/libusb.h: Likewise.
11506 * util/grub-emu.c (main): Hanle (host) root.
11507 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Error with
11508 GRUB_ERR_UNKNOWN_DEVICE.
11509 * util/misc.c: Move mm functions to ...
11510 * util/mm.c: ... here. All users updated.
11511
47822096
VS
115122010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
11513
11514 * Makefile.in (RMKFILES): Search in srcdir and not current directory.
11515 (MAINTAINER_CLEANFILES): Don't add $(srcdir) to MKFILES. Add few
11516 missing files.
11517 (maintainer-clean): Remove libgcrypt-grub.
11518
5d7e7445
VS
115192010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
11520
11521 * term/efi/console.c (grub_console_checkkey): Macroify key contants.
11522
25f4e252
EC
115232010-04-09 EFI Coder <eficoder@hotmail.com>
11524
11525 * normal/menu_text.c (print_message): Clean up the message and show
11526 the Fn information when on EFI
11527 * term/efi/console.c (grub_console_checkkey): Add F4 support.
11528
027de555
VS
115292010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
11530
11531 * normal/autofs.c (read_fs_list): New parameter 'prefix'.
11532 All users updated.
11533 * normal/crypto.c (read_crypto_list): Likewise.
11534 * normal/dyncmd.c (read_command_list): Likewise.
11535 * normal/term.c (read_terminal_list): Likewise.
11536 * normal/main.c (read_lists): Use explicit prefix.
11537 (read_lists_hook): Use read_lists.
11538 (grub_normal_execute): Likewise.
11539
47779711
VS
115402010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
11541
11542 * util/grub-mkrescue.in: Fix incorrect path in coreboot part.
11543 Reported by: Thomas Schmitt.
11544 Add -no-emul-boot to grub-mkisofs parameters.
11545
1118c32e
VS
115462010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
11547
11548 * font/font.c: Indented.
11549
7d652447
BC
115502010-04-09 BVK Chaitanya <bvk.groups@gmail.com>
11551
11552 Elif support to GRUB script (by Deepak Vankadaru).
11553
11554 * tests/grub_script_if.in: New testcase.
11555 * conf/tests.rmk: Rule for new testcase.
11556 * script/parser.y: Grammar rules for elif.
11557
34bb22df
BC
115582010-04-09 BVK Chaitanya <bvk.groups@gmail.com>
11559
11560 While and until loops support to GRUB script.
11561
11562 * include/grub/script_sh.h (grub_script_cmdwhile): New struct.
11563 (grub_script_create_cmdwhile): New function prototype.
11564 (grub_script_execute_cmdwhile): New function prototype.
11565 * script/execute.c (grub_script_execute_cmdwhile): New function.
11566 * script/parser.y (command): New commands.
11567 (whilecmd): New grammar rule.
11568 (untilcmd): New grammar rule.
11569 * script/script.c (grub_script_create_cmdwhile): New function.
11570 * util/grub-script-check.c (grub_script_execute_cmdwhile): New
11571 function.
11572
11573 * tests/grub_script_while1.in: New testcase.
11574 * conf/tests.rmk: Rule for new testcase.
11575
e215d8e0
VS
115762010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
11577
11578 * util/grub.d/00_header.in: Add few missing quotes. Recognise *.jpeg
11579 as *.jpg.
11580
d7c43ba1
MV
115812010-04-09 Mario Vazquez <mariovazq@gmail.com>
11582
11583 GRUB_BACKGROUND support.
11584
11585 * util/grub-mkconfig.in: Export GRUB_BACKGROUND.
11586 * util/grub.d/00_header.in: Parse GRUB_BACKGROUND.
11587
d64795c0
VS
115882010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
11589
11590 Load fonts and modules for gfxmenu in grub-mkconfig.
d7c43ba1 11591 Idea by: Mario Vazquez
d64795c0
VS
11592
11593 * util/grub.d/00_header.in: Load pf2 and image modules.
11594
f267f83a
VS
115952010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
11596
11597 grub-mkconfig multiple terminal support.
11598
11599 * util/grub-mkconfig.in: Handle multiple terminals correctly.
11600 * util/grub.d/00_header.in: Likewise.
11601
b7841ceb
VS
116022010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
11603
11604 * Makefile.in: Specify files explicitly instead of using $< and $@ since
11605 we use cd $(srcdir).
11606
df60998c
CW
116072010-04-08 Colin Watson <cjwatson@ubuntu.com>
11608
11609 * util/grub.d/10_linux.in: Only use the first word of
11610 GRUB_DISTRIBUTOR for --class, to avoid problems if somebody puts
11611 spaces in GRUB_DISTRIBUTOR.
11612 * util/grub.d/10_kfreebsd.in: Likewise.
11613 * util/grub.d/10_hurd.in: Likewise.
11614
fa09c82e
BC
116152010-04-06 BVK Chaitanya <bvk.groups@gmail.com>
11616
14e18ae3 11617 Fix unit testing framework for Qemu 0.12.
fa09c82e
BC
11618
11619 * tests/util/grub-shell.in: Remove -serial stdio option.
11620
daf892b3
BC
116212010-04-06 Vladimir Serbinenko <phcoder@gmail.com>
11622
11623 POSIX header file wrappers.
11624
11625 * lib/posix_wrap/assert.h: New file. Wrapper for its POSIX
11626 equivalents.
11627 * lib/posix_wrap/ctype.h: Likewise.
11628 * lib/posix_wrap/errno.h: Likewise.
11629 * lib/posix_wrap/langinfo.h: Likewise.
11630 * lib/posix_wrap/limits.h: Likewise.
11631 * lib/posix_wrap/localcharset.h: Likewise.
11632 * lib/posix_wrap/stdint.h: Likewise.
11633 * lib/posix_wrap/stdio.h: Likewise.
11634 * lib/posix_wrap/stdlib.h: Likewise.
11635 * lib/posix_wrap/string.h: Likewise.
11636 * lib/posix_wrap/sys/types.h: Likewise.
11637 * lib/posix_wrap/unistd.h: Likewise.
11638 * lib/posix_wrap/wchar.h: Likewise.
11639 * lib/posix_wrap/wctype.h: Likewise.
11640 * conf/common.rmk (grub_script.yy.c): Remove #include elimination.
11641 (grub_script.yy.h): Likewise.
11642 * script/yylex.l: Remove POSIX emulation #defines.
11643 * Makefile.in (POSIX_CFLAGS): New variable.
11644 (GNULIB_UTIL_CFLAGS): Likewise.
11645
11646 Regexp support.
11647
11648 * conf/common.rmk (pkglib_MODULES): Add regexp.mod.
11649 (regexp_mod_SOURCES): New variable.
11650 (regexp_mod_CFLAGS): Likewise.
11651 (regexp_mod_LDFLAGS): Likewise.
11652 * commands/regexp.c: New file.
11653 * gnulib/regcomp.c: New file. Imported from gnulib.
11654 * gnulib/regex.c: Likewise.
11655 * gnulib/regex_internal.c: Likewise.
11656 * gnulib/regex_internal.h: Likewise.
11657 * gnulib/regexec.c: Likewise.
11658 * gnulib/regex.h: Likewise.
11659
974ac4f7
VS
116602010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
11661
11662 * loader/i386/multiboot_mbi.c (grub_multiboot_load): Correctly report
11663 unsupported video mode types.
11664
2622c3ff
VS
116652010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
11666
11667 * kern/i386/pc/startup.S (grub_getrtsecs): Removed (dead code).
11668
064cb524
VS
116692010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
11670
11671 * include/grub/i386/pc/init.h (grub_get_mmap_entry): Don't export.
11672 * conf/i386-pc.rmk (kernel_img_HEADERS): Remove machine/init.h.
11673
a8c3b552
VS
116742010-04-04 Vladimir Serbinenko <phcoder@gmail.com>
11675
11676 Remove unused grub_vga_get_font.
11677
11678 * kern/i386/pc/startup.S (grub_vga_get_font): Removed.
11679 * include/grub/i386/pc/vga.h (grub_vga_get_font): Likewise.
11680
187bbe3d
GS
116812010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
11682
11683 * kern/misc.c: Disable the __enable_execute_stack hack for utilities.
11684 * include/grub/misc.h: Likewise.
11685
b9396631
GS
116862010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
11687
11688 * util/grub-install.in: Add `|| exit 1' to all grub-probe calls
11689 for which failure is fatal.
11690
50479feb
GS
116912010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
11692
11693 * util/grub-install.in: Use mkdir -p to create grub directory.
11694 * util/i386/efi/grub-install.in: Likewise.
11695 * util/ieee1275/grub-install.in: Likewise.
11696
b1654fdf
GS
116972010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
11698
11699 * Makefile.in (LEX): new variable.
11700
bd5a6415
GS
117012010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
11702
11703 * util/i386/efi/grub-dumpdevtree: replaced the non-portable `==' by
11704 `=' and added double quotes on operands of this equality test.
11705
3db3a82b
VS
117062010-04-03 Vladimir Serbinenko <phcoder@gmail.com>
11707
11708 * Makefile.in (uninstall): Remove a leftover debug echo.
11709 Reported by: Grégoire Sutre
11710
38023412
VS
117112010-04-03 Vladimir Serbinenko <phcoder@gmail.com>
11712
11713 MIPS multiboot2 support.
11714
11715 * conf/mips.rmk (pkglib_MODULES): Add multiboot2.mod.
11716 (multiboot2_mod_SOURCES): New variable.
11717 (multiboot2_mod_CFLAGS): Likewise.
11718 (multiboot2_mod_LDFLAGS): Likewise.
11719 (multiboot2_mod_ASFLAGS): Likewise.
11720 * include/grub/i386/multiboot.h (MULTIBOOT_INITIAL_STATE): New
11721 definition.
11722 (MULTIBOOT_ENTRY_REGISTER): Likewise.
11723 (MULTIBOOT_MBI_REGISTER): Likewise.
11724 (MULTIBOOT_ARCHITECTURE_CURRENT): Likewise.
11725 (MULTIBOOT_ELF32_MACHINE): Likewise.
11726 (MULTIBOOT_ELF64_MACHINE): Likewise.
11727 * include/grub/mips/multiboot.h: New file.
11728 * include/grub/video.h (grub_video_driver_id): New type
11729 GRUB_VIDEO_DRIVER_SM712.
11730 (grub_video_get_info_and_fini): Export.
11731 (grub_video_get_palette): Likewise.
11732 (grub_video_get_driver_id): Likewise.
11733 * include/multiboot2.h: Resynced with spec.
11734 * loader/i386/multiboot.c: Moved from here ...
11735 * loader/multiboot.c: ... here. All users updated.
11736 (grub_multiboot_boot): Use platform-specific macros.
11737 * loader/i386/multiboot_elfxx.c: Moved from here ...
11738 * loader/multiboot_elfxx.c: ... here. All users updated.
11739 (E_MACHINE): Use MULTIBOOT_ELF32_MACHINE and MULTIBOOT_ELF64_MACHINE.
11740 * loader/i386/multiboot_mbi2.c (grub_multiboot_load): Check arcitecture.
11741 * video/sm712.c (grub_video_sm712_adapter): Add missing id field.
11742
47674667
VS
117432010-04-02 Vladimir Serbinenko <phcoder@gmail.com>
11744
11745 Import gnulib argp module.
11746
11747 * gnulib/argp-ba.c: New file.
11748 * gnulib/argp-eexst.c: Likewise.
11749 * gnulib/argp-fmtstream.c: Likewise.
11750 * gnulib/argp-fmtstream.h: Likewise.
11751 * gnulib/argp-fs-xinl.c: Likewise.
11752 * gnulib/argp-help.c: Likewise.
11753 * gnulib/argp-namefrob.h: Likewise.
11754 * gnulib/argp-parse.c: Likewise.
11755 * gnulib/argp-pin.c: Likewise.
11756 * gnulib/argp-pv.c: Likewise.
11757 * gnulib/argp-pvh.c: Likewise.
11758 * gnulib/argp-version-etc.c: Likewise.
11759 * gnulib/argp-version-etc.h: Likewise.
11760 * gnulib/argp-xinl.c: Likewise.
11761 * gnulib/argp.h: Likewise.
11762
495442ed
VS
117632010-03-31 Vladimir Serbinenko <phcoder@gmail.com>
11764
11765 * kern/device.c (grub_device_iterate): Clear errors after failed
11766 opening device.
11767
f9fd65df
VS
117682010-03-31 Vladimir Serbinenko <phcoder@gmail.com>
11769
11770 * kern/ieee1275/openfw.c (grub_children_iterate): Skip device itself if
11771 returned by firmware.
11772
af09641e
VS
117732010-03-30 Vladimir Serbinenko <phcoder@gmail.com>
11774
11775 * loader/i386/multiboot_mbi2.c (retrieve_video_parameters): Fix
11776 compilation on coreboot and qemu
11777
016883a5
VS
117782010-03-28 Vladimir Serbinenko <phcoder@gmail.com>
11779
11780 * include/multiboot2.h: Resync with spec.
11781
f97e1f7d
VS
117822010-03-28 Vladimir Serbinenko <phcoder@gmail.com>
11783
11784 Multiboot2 tag support
11785
11786 * conf/i386.rmk (multiboot2_mod_SOURCES): Replace
11787 loader/i386/multiboot_mbi.c with loader/i386/multiboot_mbi2.c.
11788 Remove loader/multiboot_loader.c.
11789 * include/grub/i386/multiboot.h (grub_multiboot_real_boot): Removed.
11790 (grub_multiboot2_real_boot): Likewise.
11791 * include/grub/multiboot.h (grub_multiboot_set_accepts_video): Removed.
11792 (grub_get_multiboot_mmap_count): New proto.
11793 (grub_fill_multiboot_mmap): Likewise.
11794 (grub_multiboot_set_video_mode): Likewise.
11795 (grub_multiboot_set_console): Likewise.
11796 (grub_multiboot_load): Likewise.
11797 (grub_multiboot_load_elf): Likewise.
11798 (GRUB_MULTIBOOT_CONSOLE_EGA_TEXT): New definition.
11799 (GRUB_MULTIBOOT_CONSOLE_FRAMEBUFFER): Likewise.
11800 * include/multiboot.h: Resynced with specification.
11801 * include/multiboot2.h: Resynced with specification.
11802 * loader/i386/multiboot_mbi.c (DEFAULT_VIDEO_MODE): Moved from here...
11803 * loader/i386/multiboot.c (DEFAULT_VIDEO_MODE): ... here.
11804 * loader/i386/multiboot_mbi.c (HAS_VGA_TEXT): Moved from here ..
11805 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VGA_TEXT): ... here. All
11806 users updated.
11807 * loader/i386/multiboot_mbi.c (accepts_video): Moved from here...
11808 * loader/i386/multiboot.c (accepts_video): ... here. All users updated.
11809 * loader/i386/multiboot_mbi.c (grub_multiboot_set_accepts_video):
11810 Removed.
11811 * loader/i386/multiboot_mbi.c (grub_get_multiboot_mmap_len):
11812 Moved from here...
11813 * loader/i386/multiboot.c (grub_get_multiboot_mmap_len): ... here.
11814 * loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap):
11815 Moved from here...
11816 * loader/i386/multiboot.c (grub_fill_multiboot_mmap): ... here.
11817 * loader/i386/multiboot_mbi.c (set_video_mode): Moved from here...
11818 * loader/i386/multiboot.c (grub_multiboot_set_video_mode): ... here.
11819 All users updated.
11820 * loader/i386/multiboot_mbi2.c: New file.
11821
3506b90b
VS
118222010-03-27 Vladimir Serbinenko <phcoder@gmail.com>
11823
11824 Resync with gnulib.
11825
11826 * Makefile.in (GNULIB_CFLAGS): New variable.
11827 * conf/common.rmk (grub_mkisofs_CFLAGS): Add GNULIB_CFLAGS.
11828 (grub_script_check_CFLAGS): New variable.
11829 * gnulib/alloca.h: Resync with gnulib.
11830 * gnulib/error.c: Likewise.
11831 * gnulib/error.h: Likewise.
11832 * gnulib/fnmatch.c: Likewise.
11833 * gnulib/fnmatch_loop.c: Likewise.
11834 * gnulib/getdelim.c: Likewise.
11835 * gnulib/getline.c: Likewise.
11836 * gnulib/getopt.c: Likewise.
11837 * gnulib/getopt1.c: Likewise.
11838 * gnulib/getopt_int.h: Likewise.
11839 * gnulib/gettext.h: Likewise.
11840 * gnulib/progname.c: Likewise.
11841 * gnulib/progname.h: Likewise.
11842
394a3120
GS
118432010-03-27 Grégoire Sutre <gregoire.sutre@gmail.com>
11844
11845 Fix a build failure (-Wundef -Werror) when ENABLE_NLS is not defined,
11846 which is the case with --disabled-nls.
11847
11848 * include/grub/i18n.h: Use (defined(ENABLE_NLS)
11849 && ENABLE_NLS) instead of ENABLE_NLS in all #if preprocessor macros.
11850 * util/misc.c: Likewise.
11851 * util/mkisofs/mkisofs.c: Likewise.
11852 * util/mkisofs/mkisofs.h: Likewise.
11853
969d1c78
VS
118542010-03-27 Vladimir Serbinenko <phcoder@gmail.com>
11855
11856 Simplify Apple CC support.
11857
11858 * commands/i386/pc/drivemap_int13h.S: Use LOCAL when possible.
11859 Add 0 byte at the end not to have a symbol with empty target.
11860 * mmap/i386/pc/mmap_helper.S: Likewise.
11861 * genmk.rb: Ignore errors 2030 and 2050.
11862 * kern/i386/pc/startup.S: Use LOCAL when possible.
11863
8d2977bb
BC
118642010-03-26 BVK Chaitanya <bvk.groups@gmail.com>
11865
11866 Testcase and the fix for final semicolon on cmdline.
11867
11868 * tests/grub_script_final_semicolon.in: New testcase.
11869 * conf/tests.rmk: Rules for the new testcase.
11870 * script/parser.y: Grammar fix.
11871
a7bd6915
BC
118722010-03-26 BVK Chaitanya <bvk@localhost>
11873
11874 Blank lines testcase for GRUB script.
11875
11876 * tests/grub_script_blanklines.in: New testcase.
11877 * conf/tests.rmk: Rules for the new testcase.
11878
e4ff6628
VS
118792010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
11880
11881 Don't use __FILE__.
11882
11883 * genmk.rb: Add -DGRUB_FILE to all C targets.
11884 * fs/reiserfs.c: Replace __FILE__ with GRUB_FILE.
11885 * include/grub/list.h: Likewise.
11886 * include/grub/misc.h: Likewise.
11887 * include/grub/mm.h: Likewise.
11888 * include/grub/test.h: Likewise.
11889 * kern/mm.c: Likewise.
11890 * lib/libgcrypt_wrap/cipher_wrap.h: Likewise.
11891
6a5cf6b6
VS
118922010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
11893
11894 Sunpc partitions support.
11895
11896 * conf/common.rmk (grub_probe_SOURCES): Add partmap/sunpc.c.
11897 (grub_fstest_SOURCES): Likewise.
11898 (pkglib_MODULES): Add part_sunpc.mod.
11899 (part_sunpc_mod_SOURCES): New variable.
11900 (part_sunpc_mod_CFLAGS): Likewise.
11901 (part_sunpc_mod_LDFLAGS): Likewise.
11902 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/sunpc.c.
11903 * partmap/sunpc.c: New file.
11904
746d9045
BC
119052010-03-26 BVK Chaitanya <bvk@localhost>
11906
11907 For loop support to GRUB script.
11908
11909 * include/grub/script_sh.h (grub_script_cmdfor): New struct.
11910 (grub_script_create_cmdfor): New function prototype.
11911 (grub_script_execute_cmdfor): New function prototype.
11912 * script/execute.c (grub_script_execute_cmdfor): New function.
11913 * script/parser.y (command): New for command.
11914 (forcmd): New grammar rule.
11915 * script/script.c (grub_script_create_cmdfor): New function.
11916 * util/grub-script-check.c (grub_script_execute_cmdfor): New
11917 function.
11918 * tests/grub_script_for1.in: New testcase.
11919 * conf/tests.rmk: Rules for new testcase.
11920
18486b18
VS
119212010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
11922
11923 Nested partitions
11924
11925 * commands/blocklist.c (grub_cmd_blocklist): Don't check whether
11926 'partition' is NULL, grub_partition_get_start already does that.
11927 * commands/loadenv.c (check_blocklists): Likewise.
11928 (write_blocklists): Likewise.
11929 * conf/common.rmk (grub_probe_SOURCES): Add partmap/bsdlabel.c.
11930 (grub_fstest_SOURCES): Likewise.
11931 (pkglib_MODULES): Add part_bsd.mod.
11932 (part_bsd_mod_SOURCES): New variable.
11933 (part_bsd_mod_CFLAGS): Likewise.
11934 (part_bsd_mod_LDFLAGS): Likewise.
11935 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/bsdlabel.c.
11936 (grub_emu_SOURCES): Likewise.
11937 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
11938 * include/grub/bsdlabel.h: New file.
11939 * include/grub/partition.h (grub_partition_map): Remove 'probe' and
11940 'get_name'.
11941 (grub_partition): Add 'parent' and 'number'. Remove 'data'.
11942 (grub_partition_map_list): New variable.
11943 (grub_partition_map_register): Inline.
11944 (grub_partition_map_unregister): Likewise.
11945 (FOR_PARTITION_MAPS): New macro.
11946 (grub_partition_map_iterate): Removed.
11947 (grub_partition_get_start): Handle nested partitions.
11948 * include/grub/msdos_partition.h: Remove bsd-related entries.
11949 (grub_pc_partition): Remove.
11950 * kern/disk.c (grub_disk_close): Free partition data.
11951 (grub_disk_adjust_range): Handle nested partitions.
11952 * kern/partition.c (grub_partition_map_probe): New function.
11953 (grub_partition_probe): Parse name to number, handle subpartitions.
11954 (get_partmap): New function.
11955 (grub_partition_iterate): Handle subpartitions.
11956 (grub_partition_get_name): Likewise.
11957 * loader/i386/pc/bsd.c (grub_bsd_get_device): Likewise.
11958 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): Likewise.
11959 * loader/i386/pc/chainloader.c (grub_chainloader_cmd): Likewise.
11960 * partmap/acorn.c (acorn_partition_map_iterate): Don't force raw access.
11961 Set 'number'.
11962 (acorn_partition_map_probe): Remove.
11963 (acorn_partition_map_get_name): Likewise.
11964 * partmap/amiga.c (amiga_partition_map_iterate): Don't force raw access.
11965 Set 'number'.
11966 Set 'index' to 0 since there can be only one partition entry per sector.
11967 (amiga_partition_map_probe): Remove.
11968 (amiga_partition_map_get_name): Likewise.
11969 * partmap/apple.c (apple_partition_map_iterate): Don't force raw access.
11970 Set 'number'.
11971 Set 'offset' and 'index' to real positions of partitions.
11972 (apple_partition_map_probe): Remove.
11973 (apple_partition_map_get_name): Likewise.
11974 * partmap/bsdlabel.c: New file.
11975 * partmap/gpt.c (gpt_partition_map_iterate): Don't force raw access.
11976 Set 'number'.
11977 Allocate 'data' so it can be correctly freed.
11978 Set 'index' to offset inside sector.
11979 (gpt_partition_map_probe): Remove.
11980 (gpt_partition_map_get_name): Likewise.
11981 * partmap/msdos.c (grub_partition_parse): Remove.
11982 (pc_partition_map_iterate): Don't force raw access.
11983 Set 'number'.
11984 Make 'ext_offset' a local variable.
11985 (pc_partition_map_probe): Remove.
11986 (pc_partition_map_get_name): Remove.
11987 * partmap/sun.c (sun_partition_map_iterate): Don't force raw access.
11988 Set 'number'.
11989 (sun_partition_map_probe): Remove.
11990 (sun_partition_map_get_name): Likewise.
11991 * parttool/msdospart.c (grub_pcpart_boot): Handle nested partitions.
11992 (grub_pcpart_type): Likewise.
11993 * util/hostdisk.c (open_device): Handle new numbering scheme.
11994 (grub_util_biosdisk_get_grub_dev): Handle nested partitions.
11995 * util/i386/pc/grub-setup.c (setup): Handle new numbering scheme.
11996 * util/grub-probe.c (probe_partmap): Handle nested paritions.
11997 * util/grub-install.in: Insert all subpartition modules.
11998 * util/ieee1275/grub-install.in: Likewise.
11999
a3940f88
AG
120002010-03-24 Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
12001
12002 * kern/dl.c (grub_dl_resolve_symbols): Improve error message
12003 grammar.
12004
21b99926 120052010-03-24 Colin Watson <cjwatson@ubuntu.com>
12006
12007 * .bzrignore: Add grub-bin2h, grub-reboot, and grub-set-default.
12008
bed1d352
CW
120092010-03-21 Colin Watson <cjwatson@ubuntu.com>
12010
12011 * util/grub-install.in: Copy .mo files from @datadir@/locale, to
12012 match where 'make install' puts them.
12013 * util/i386/efi/grub-install.in: Likewise.
12014
c9f58427
CW
120152010-03-19 Colin Watson <cjwatson@ubuntu.com>
12016
12017 * .bzrignore: Add gentrigtables, grub-script-check,
12018 grub_script_check_init.c, grub_script_check_init.h, and
12019 trigtables.c.
12020
f84afb27
VS
120212010-03-18 Vladimir Serbinenko <phcoder@gmail.com>
12022
12023 * kern/parser.c: Indented.
12024
ed0e3d30
VS
120252010-03-17 Vladimir Serbinenko <phcoder@gmail.com>
12026
12027 * term/i386/pc/vesafb.c: Removed (orphaned, deprecated and broken).
12028
0ea81d98
VS
120292010-03-17 Vladimir Serbinenko <phcoder@gmail.com>
12030
12031 * video/fb/fbblit.c (grub_video_fbblit_blend_XXXA8888_1bit): Handle
12032 alpha_mask_size == 0 case.
12033
0cdc2a09
BC
120342010-03-14 BVK Chaitanya <bvk.groups@gmail.com>
12035
12036 GRUB shell lexer and parser improvements.
12037
12038 * conf/any-emu.rmk: Build rule updates.
12039 * conf/common.rmk: Likewise.
12040 * conf/i386-coreboot.rmk: Likewise.
12041 * conf/i386-efi.rmk: Likewise.
12042 * conf/i386-ieee1275.rmk: Likewise.
12043 * conf/i386-pc.rmk: Likewise.
12044 * conf/powerpc-ieee1275.rmk: Likewise.
12045 * conf/x86_64-efi.rmk: Likewise.
12046
12047 * configure.ac: Configure check for flex.
12048
12049 * include/grub/script_sh.h (grub_script_arg_type_t): More argument
12050 types.
12051 (grub_lexer_param): Struct member updates.
12052 (grub_parser_param): Likewise.
12053 (GRUB_LEXER_TOKEN_MAX): Maximum token size.
12054 (GRUB_LEXER_RECORD_INCREMENT): Memory increments' size.
12055 (grub_script_lexer_init): Prototype update.
12056 (grub_script_lexer_record_start): Likewise.
12057 (grub_script_lexer_record_stop): Likewise.
12058 (grub_script_lexer_yywrap): New function prototype.
12059 (grub_script_lexer_fini): Likewise.
12060 (grub_script_execute_argument_to_string): Removed by...
12061 (grub_script_execute_argument_to_argv): ...better version.
12062
12063 * script/execute.c (ROUND_UPTO): New macro.
12064 (grub_script_execute_cmdline): Out of memory fixes.
12065 (grub_script_execute_menuentry): Likewise.
12066 (grub_script_execute_argument_to_string): Removed. Update all
12067 users by...
12068 (grub_script_execute_argument_to_argv): ...better version.
12069 * script/function.c (grub_script_function_create): Use
12070 grub_script_execute_argument_to_argv instead of
12071 grub_script_execute_argument_to_string.
12072
12073 * script/lexer.c (check_varstate): Removed.
12074 (check_textstate): Removed.
12075 (grub_script_lexer_record_start): Likewise.
12076 (grub_script_lexer_record_stop): Likewise.
12077 (recordchar): Replaced with...
12078 (grub_script_lexer_record): ...new function.
12079 (nextchar): Removed.
12080 (grub_script_lexer_init): Rewritten.
12081 (grub_script_yylex): Rewritten.
12082 (append_newline): New function.
12083 (grub_script_lexer_yywrap): New function.
12084 (grub_script_lexer_fini): New function.
12085 (grub_script_yyerror): Sets error flag.
12086
12087 * script/yylex.l: New file.
12088 (grub_lexer_yyfree): Wrapper for flex yyffre.
12089 (grub_lexer_yyalloc): Likewise.
12090 (grub_lexer_yyrealloc): Likewise.
12091 * script/parser.y: Refactored.
12092
12093 * script/script.c (grub_script_arg_add): Out of memory fixes.
12094 (grub_script_add_arglist): Likewise.
12095 (grub_script_create_cmdline): Likewise.
12096 (grub_script_create_cmdmenu): Likewise.
12097 (grub_script_add_cmd): Likewise.
12098 (grub_script_parse): Use grub_script_lexer_fini to deallocated.
12099 * util/grub-script-check.c (grub_script_execute_menuentry): Remove
12100 unnecessary code.
12101
12102 * tests/grub_script_echo1.in: New testcase.
12103 * tests/grub_script_vars1.in: New testcase.
12104 * tests/grub_script_echo_keywords.in: New testcase.
12105
1d63a066
VS
121062010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
12107
12108 Remove some redundancy in build system.
12109
12110 * Makefile.in (TARGET_CFLAGS): Add -ffreestanding.
12111 (TARGET_ASFLAGS): Add -nostdinc -fno-builtin.
12112 (TARGET_LDFLAGS): Add -nostdlib.
12113 (TARGET_IMG_LDFLAGS): Likewise.
12114 * commands/lsmmap.c (grub_cmd_lsmmap) [GRUB_MACHINE_EMU]: Don't do
12115 anything since mmap isn't available.
12116 * conf/any-emu.rmk (kernel_img_SOURCES): Remove commands/boot.c.
12117 Add util/time.c.
12118 (pkglib_MODULES): Remove reboot.mod.
12119 (reboot_mod_SOURCES): Removed.
12120 (reboot_mod_CFLAGS): Likewise.
12121 (reboot_mod_LDFLAGS): Likewise.
12122 * conf/common.rmk (script/lexer.c_DEPENDENCIES): New variable.
12123 (MOSTLYCLEANFILES): Add symlist.c kernel_syms.lst.
12124 (DEFSYMFILES): Add kernel_syms.lst.
12125 (kernel_img_HEADERS): Add common headers.
12126 (symlist.c): New target.
12127 (kernel_syms.lst): Likewise.
12128 (pkglib_MODULES): Add memdisk.mod.
12129 (memdisk_mod_SOURCES): New variable.
12130 (memdisk_mod_CFLAGS): Likewise.
12131 (memdisk_mod_LDFLAGS): Likewise.
12132 (pkglib_MODULES): Add reboot.mod.
12133 (reboot_mod_SOURCES): New variable.
12134 (reboot_mod_CFLAGS): Likewise.
12135 (reboot_mod_LDFLAGS): Likewise.
12136 (pkglib_MODULES): Add date.mod.
12137 (date_mod_SOURCES): New variable.
12138 (date_mod_CFLAGS): Likewise.
12139 (date_mod_LDFLAGS): Likewise.
12140 (pkglib_MODULES): Add datehook.mod.
12141 (datehook_mod_SOURCES): New variable.
12142 (datehook_mod_CFLAGS): Likewise.
12143 (datehook_mod_LDFLAGS): Likewise.
12144 (pkglib_MODULES): Add lsmmap.mod.
12145 (lsmmap_mod_SOURCES): New variable.
12146 (lsmmap_mod_CFLAGS): Likewise.
12147 (lsmmap_mod_LDFLAGS): Likewise.
12148 (pkglib_MODULES): Add boot.mod.
12149 (boot_mod_SOURCES): New variable.
12150 (boot_mod_CFLAGS): Likewise.
12151 (boot_mod_LDFLAGS): Likewise.
12152 * conf/i386-coreboot.rmk: Removed redundant parts.
12153 * conf/i386-ieee1275.rmk: Likewise.
12154 * conf/i386-pc.rmk: Likewise.
12155 * conf/mips-yeeloong.rmk: Likewise.
12156 * conf/mips.rmk: Likewise.
12157 * conf/powerpc-ieee1275.rmk: Likewise.
12158 * conf/sparc64-ieee1275.rmk: Likewise.
12159 * conf/x86_64-efi.rmk: Likewise.
12160 * conf/i386-coreboot.rmk: Moved qemu parts ..
12161 * conf/i386-qemu.rmk: ... here
12162 * conf/i386-efi.rmk: Moved common parts to...
12163 * conf/x86-efi.rmk: ... here.
12164 * conf/i386.rmk: Added modules common to all x86 variants.
12165 * configure.ac: Add -m32/-m64 to TARGET_ASFLAGS.
12166 * disk/memdisk.c: Remove grub/machine/kernel.h.
12167 * gensymlist.sh.in: Include symbol.h.
12168 * hook/datehook.c: Correct module name.
12169 * include/grub/datetime.h (grub_get_datetime) [GRUB_MACHINE_EMU]: Export.
12170 (grub_set_datetime) [GRUB_MACHINE_EMU]: Likewise.
12171 * include/grub/i386/efi/serial.h: New file.
12172 * include/grub/x86_64/efi/serial.h: Likewise.
12173 * util/time.c: Likewise.
12174 * video/ieee1275.c (grub_video_ieee1275_setup): Handle 64-bit void *.
12175
463ac55f
CK
121762010-03-14 Colin King <colin.king@ubuntu.com>
121772010-03-14 Colin Watson <cjwatson@ubuntu.com>
12178
12179 Shrink the pre-partition-table part of boot.img by eight bytes.
12180
12181 * boot/i386/pc/boot.S (ERR): New macro.
12182 (chs_mode): Use ERR.
12183 (geometry_error): Likewise.
12184 (hd_probe_error): Remove. This is only used once, so we wrwite
12185 it inline instead.
12186 (read_error): Instead of printing read_error_string, just set up
12187 %si and fall through to ...
12188 (error_message): ... this new function, also used by ERR.
12189
08e46ede
CW
121902010-03-14 Colin Watson <cjwatson@ubuntu.com>
12191
12192 Speed up consecutive hostdisk operations on the same device.
12193
12194 * util/hostdisk.c (struct grub_util_biosdisk_data): New structure.
12195 (grub_util_biosdisk_open): Initialise disk->data.
12196 (struct linux_partition_cache): New structure.
12197 (linux_find_partition): Cache partition start positions; these are
12198 expensive to compute on every read and write.
12199 (open_device): Cache open file descriptor in disk->data, so that we
12200 don't have to reopen it and flush the buffer cache for consecutive
12201 operations on the same device.
12202 (grub_util_biosdisk_close): New function.
12203 (grub_util_biosdisk_dev): Set `close' member.
12204
12205 * conf/common.rmk (grub_probe_SOURCES): Add kern/list.c.
12206 * conf/i386-efi.rmk (grub_setup_SOURCES): Likewise.
12207 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
12208 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Likewise.
12209 * conf/x86_64-efi.rmk (grub_setup_SOURCES): Likewise.
12210
4a6d2d06
VS
122112010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
12212
12213 Compile parts of grub-emu as modules.
12214
12215 * Makefile.in (TARGET_CPPFLAGS) [emu]: Remove -nostdinc -isystem.
12216 (pkglib_DATA) [emu]: Remove moddep.lst command.lst fs.lst
12217 partmap.lst parttool.lst handler.lst video.lst crypto.lst terminal.lst.
12218 (all-local): Add $(GRUB_EMU).
12219 (install-local): Install $(GRUB_EMU).
12220 (uninstall): Uninstall $(GRUB_EMU).
12221 * commands/parttool.c: Replace GRUB_UTIL with GRUB_NO_MODULES.
12222 * kern/dl.c: Likewise.
12223 * commands/sleep.c: Not include machine/time.h.
12224 * conf/any-emu.rmk (COMMON_LDFLAGS): New variable.
12225 (COMMON_CFLAGS): Likewise.
12226 (sbin_UTILITIES): Remove grub-emu.
12227 (grub_emu_SOURCES): Removed.
12228 (kernel_img_RELOCATABLE): New variable.
12229 (pkglib_PROGRAMS): Add kernel.img.
12230 (kernel_img_SOURCES): New variable
12231 (kernel_img_CFLAGS): Likewise.
12232 (kernel_img_LDFLAGS): Likewise.
12233 (TARGET_NO_STRIP): Likewise.
12234 (TARGET_NO_DYNAMIC_MODULES): Likewise.
12235 (pkglib_MODULES): Add progname.mod, hostfs.mod, host.mod, reboot.mod,
12236 halt.mod, cpuid.mod, usb.mod, sdl.mod and pci.mod.
12237 (grub-emu): New target.
12238 (GRUB_EMU): New variable.
12239 * configure.ac: Whitelist -emu as possible x86_64 architecture.
12240 * efiemu/main.c: Replace GRUB_UTIL with GRUB_MACHINE_EMU.
12241 * loader/xnu.c: Likewise.
12242 * include/grub/pci.h: Likewise.
12243 * genemuinit.sh: New file.
12244 * genemuinitheader.sh: Likewise.
12245 * genmk.rb: Don't strip if TARGET_NO_STRIP is yes.
12246 Support TARGET_NO_DYNAMIC_MODULES.
12247 * include/grub/dl.h (GRUB_NO_MODULES): New variable.
12248 * commands/search.c: Fix GRUB_MOD_INIT and GRUB_MOD_FINI arguments.
12249 * disk/loopback.c: Likewise.
12250 * font/font_cmd.c: Likewise.
12251 * partmap/acorn.c: Likewise.
12252 * partmap/amiga.c: Likewise.
12253 * partmap/apple.c: Likewise.
12254 * partmap/gpt.c: Likewise.
12255 * partmap/msdos.c: Likewise.
12256 * partmap/sun.c: Likewise.
12257 * parttool/msdospart.c: Likewise.
12258 * term/gfxterm.c: Likewise.
12259 * video/bitmap.c: Likewise.
12260 * video/readers/jpeg.c: Likewise.
12261 * video/readers/png.c: Likewise.
12262 * video/readers/tga.c: Likewise.
12263 * video/video.c: Likewise.
12264 * util/grub-emu.c (read_command_list): Removed.
12265 (main): Don't call util_init_nls.
12266 * util/misc.c (grub_err_printf) [!GRUB_UTIL]: Removed.
12267 (grub_util_init_nls) [!GRUB_UTIL]: Likewise.
12268
91fdd2ed
VS
122692010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
12270
12271 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add datetime.mod,
12272 date.mod, datehook.mod.
12273 (datetime_mod_SOURCES): New variable.
12274 (datetime_mod_CFLAGS): Likewise.
12275 (datetime_mod_LDFLAGS): Likewise.
12276 (date_mod_SOURCES): Likewise.
12277 (date_mod_CFLAGS): Likewise.
12278 (date_mod_LDFLAGS): Likewise.
12279 (datehook_mod_SOURCES): Likewise.
12280 (datehook_mod_CFLAGS): Likewise.
12281 (datehook_mod_LDFLAGS): Likewise.
12282 * conf/sparc64-ieee1275.rmk: Likewise.
12283 * lib/ieee1275/datetime.c: New file.
12284
873ccae6
VS
122852010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
12286
12287 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add ieee1275_fb.mod.
12288 (ieee1275_fb_mod_SOURCES): New variable.
12289 (ieee1275_fb_mod_CFLAGS): Likewise.
12290 (ieee1275_fb_mod_LDFLAGS): Likewise.
12291 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_devices_iterate):
12292 New proto.
12293 * kern/ieee1275/init.c (HEAP_MAX_SIZE): Increased.
12294 (HEAP_MAX_ADDR): Likewise.
12295 * kern/ieee1275/openfw.c (grub_children_iterate): Don't skip empty
12296 type.
12297 Correct stop condition.
12298 (grub_ieee1275_devices_iterate): New function.
12299 * video/ieee1275.c: New file.
12300
601c97c0
VS
123012010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
12302
12303 Merge sparc grub-mkimage into generic grub-mkimage and a.out support.
12304
12305 * boot/sparc64/ieee1275/boot.S (boot_continue): Use SCRATCH_PAD_BOOT
12306 as scratch.
12307 * boot/sparc64/ieee1275/diskboot.S (after_info_block): Use
12308 SCRATCH_PAD_DISKBOOT as scratch.
12309 (bootit): Pass Openfirmware pointer in %o4.
12310 * conf/sparc64-ieee1275.rmk (kernel_img_LDFLAGS): Link at 0x4400 instead
12311 of 0x200000.
12312 (grub_mkimage_SOURCES): Replace util/sparc64/ieee1275/grub-mkimage.c
12313 with util/grub-mkrawimage.c.
12314 * configure.ac: Handle GRUB_MACHINE_SPARC64 and GRUB_MACHINE_MIPS.
12315 * include/grub/aout.h (AOUT_MID_SUN): New definition.
12316 (grub_aout_get_type) [GRUB_UTIL]: Removed.
12317 (grub_aout_load) [GRUB_UTIL]: Likewise.
12318 * include/grub/kernel.h (grub_modules_get_end): New proto.
12319 * include/grub/sparc64/ieee1275/boot.h (SCRATCH_PAD): Removed.
12320 (SCRATCH_PAD_BOOT): New definition.
12321 (SCRATCH_PAD_DISKBOOT): Likewise.
12322 (GRUB_BOOT_MACHINE_IMAGE_ADDRESS): Set to 0x4400.
12323 * include/grub/sparc64/ieee1275/ieee1275.h
12324 (grub_ieee1275_original_stack): New variable
12325 * include/grub/sparc64/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
12326 New definition
12327 (GRUB_KERNEL_MACHINE_STACK_SIZE): Likewise.
12328 (GRUB_PLATFORM_IMAGE_FORMATS): Likewise.
12329 (GRUB_PLATFORM_IMAGE_DEFAULT_FORMAT): Likewise.
12330 (GRUB_PLATFORM_IMAGE_DEFAULT): Likewise.
12331 (GRUB_PLATFORM_IMAGE_RAW): Likewise.
12332 (GRUB_PLATFORM_IMAGE_AOUT): Likewise.
12333 (grub_platform_image_format_t): New type.
12334 * kern/mips/yeeloong/init.c (grub_modules_get_end): Move from here ...
12335 * kern/main.c (grub_modules_get_end)
12336 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_SPARC64]: ... here.
12337 * kern/sparc64/ieee1275/crt0.S: Store firmware entry point in %o0.
12338 (codestart): Switch stacks.
12339 * kern/sparc64/ieee1275/init.c (grub_ieee1275_original_stack): New
12340 variable.
12341 (grub_heap_init): Use grub_modules_get_end.
12342 * loader/sparc64/ieee1275/linux.c (grub_linux_boot): Restore original
12343 stack.
12344 * util/grub-mkrawimage.c (generate_image): Support sparc64.
12345 (main): Likewise.
12346 * util/sparc64/ieee1275/grub-mkimage.c: Removed.
12347
d68b491e
TG
123482010-03-14 Thorsten Glaser <tg@mirbsd.org>
12349
12350 * util/grub-mkrescue.in: Base ISO UUID on UTC.
12351
4e02ed50
MK
123522010-03-08 Matt Kraai <kraai@ftbfs.org>
12353
12354 * util/i386/pc/grub-setup.c (setup): Fix a grammatical error (Debian
12355 bug #559005).
12356
1f15fc1e
VS
123572010-03-07 Vladimir Serbinenko <phcoder@gmail.com>
12358
12359 * genmoddep.awk: Output all missing symbols and not only first.
12360
fce5d8ff
VS
123612010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
12362
12363 * NEWS: Put the date of 1.98 release.
12364
d1e8a02f
VS
123652010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
12366
12367 * configure.ac: Update CPPFLAGS and not CFLAGS when checking for
12368 ft2build.h.
12369
696fd607
VS
123702010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
12371
12372 * normal/cmdline.c (grub_cmdline_get): Fix gabled line after
12373 completition in the middle of string.
12374
33e2e6f3
VS
123752010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
12376
12377 * util/grub-mkrescue.in: Use mktemp with explicit template.
12378
b1f6d291
VS
123792010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
12380
12381 * loader/i386/bsd.c (grub_bsd_get_device): Fix a memory leak.
12382
2ac227c7
VS
123832010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
12384
12385 * loader/i386/multiboot_mbi.c (grub_multiboot_set_bootdev): Free the
12386 right pointer.
12387
8f9a632b
VS
123882010-03-05 Vladimir Serbinenko <phcoder@gmail.com>
12389
12390 Fix FreeBSD compilation.
12391
12392 * Makefile.in (TARGET_CPPFLAGS): Remove -nostdinc -isystem.
12393 * configure.ac: Add -nostdinc -isystem to TARGET_CPPFLAGS if it works.
12394
60b03859
VS
123952010-03-05 Vladimir Serbinenko <phcoder@gmail.com>
12396
12397 * util/import_gcry.py: Add autogenerated files to MAINTAINER_CLEANFILES.
12398
48a5a769
VS
123992010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
12400
12401 * gettext/gettext.c (grub_gettext_init_ext): Fix a memory leak.
12402
3ab4bd77
VS
124032010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
12404
12405 * disk/scsi.c (grub_scsi_iterate): Fix a memory leak.
12406
d116e0d8
RM
124072010-03-04 Robert Millan <rmh.grub@aybabtu.com>
12408
12409 Support relative image path in theme file.
12410
12411 * gfxmenu/gui_image.c (grub_gui_image): New member theme_dir.
12412 (image_set_property): Handle theme_dir and relative path.
12413
c7ef54aa
VS
124142010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
12415
12416 * configure.ac: Alias amd64 to x86_64.
12417
fcee14ed
VS
124182010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
12419
12420 * NEWS: mention multiboot on EFI.
12421
d0780363
VS
124222010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
12423
12424 * kern/main.c (grub_load_modules): Handle errors from init functions of
12425 embeded modules.
12426
41168ea4
VS
124272010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
12428
12429 * normal/autofs.c (autoload_fs_module): Handle errors.
12430
b54d93ac
VS
124312010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
12432
12433 Disable linux.mod on qemu-mips since it's not functional and leads
12434 to compilation failure.
12435
12436 * conf/mips.rmk (pkglib_MODULES): Remove linux.mod.
12437 * conf/mips-yeeloong.rmk (pkglib_MODULES): Add linux.mod.
12438 * conf/mips.rmk (linux_mod_SOURCES): Move from here ...
12439 * conf/mips-yeeloong.rmk (linux_mod_SOURCES): ... here
12440 * conf/mips.rmk (linux_mod_CFLAGS): Move from here ...
12441 * conf/mips-yeeloong.rmk (linux_mod_CFLAGS): ... here
12442 * conf/mips.rmk (linux_mod_ASFLAGS): Move from here ...
12443 * conf/mips-yeeloong.rmk (linux_mod_ASFLAGS): ... here
12444 * conf/mips.rmk (linux_mod_LDFLAGS): Move from here ...
12445 * conf/mips-yeeloong.rmk (linux_mod_LDFLAGS): ... here
12446 Reported by: BVK Chaitanya
12447
fc8345da
JU
124482010-03-04 Jordan Uggla <jordan.uggla@gmail.com>
12449
12450 * INSTALL: Add gettext as a dependency and add qemu to a new section
12451 "Prerequisites for make-check".
12452
4760f979
CF
124532010-03-04 Christian Franke <franke@computer.org>
12454
12455 * util/grub-pe2elf.c: Add missing include "progname.h".
12456
f209b5b2
VS
124572010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
12458
12459 * normal/crypto.c (read_crypto_list): Fix a typo.
12460 Reported by: Seth Goldberg.
12461
b4b7be98
VS
124622010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
12463
12464 * Makefile.in (DISTCLEANFILES): Add stamp-h1.
f209b5b2 12465 Reported by: Seth Goldberg.
b4b7be98 12466
c0ee0385
VS
124672010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
12468
12469 * Makefile.in (CLEANFILES) [FONT_SOURCE && grub_mkfont]: Add
12470 ascii.bitmaps.
12471
a8efbf64
VS
124722010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
12473
12474 * genmk.rb: Remove terminal*.lst in make clean.
f209b5b2 12475 Reported by: Seth Goldberg.
a8efbf64 12476
08dcd913
VS
124772010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
12478
12479 * util/i386/efi/grub-install.in: Copy gettext files.
12480
c4d0b332
VS
124812010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
12482
12483 * fs/ext2.c (grub_ext2_read_block): Fix an integer overflow.
12484
c6f2fe52
VS
124852010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
12486
12487 Wait for user entry basing on presence of output rather than on errors.
12488
12489 * include/grub/normal.h (grub_normal_get_line_counter): New proto.
12490 (grub_install_newline_hook): Likewise.
12491 * normal/main.c (GRUB_MOD_INIT): Call grub_install_newline_hook.
12492 * normal/menu.c (show_menu): Check line_counter to determine presence
12493 of output.
12494 * normal/term.c (grub_normal_line_counter): New variable.
12495 (grub_normal_get_line_counter): New function.
12496 (grub_install_newline_hook): Likewise.
12497
5382b1e4
VS
124982010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
12499
12500 * commands/cat.c (grub_cmd_cat): Propagate grub_gzfile_open error.
12501
5519963b
VS
125022010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
12503
12504 * configure.ac: Update version to 1.98.
12505
72b28631
VS
125062010-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12507
12508 * util/grub.d/10_linux.in (linux_entry): Don't default to
12509 gfxpayload=keep if Linux doesn't support video handover.
12510
c140a180
VS
125112010-02-25 Vladimir Serbinenko <phcoder@gmail.com>
12512
12513 Don't compile video modules on yeeloong since video subsystem is part
12514 of kernel.
12515
12516 * conf/common.rmk (pkglib_MODULES) [yeeloong]: Remove video.mod,
12517 video_fb.mod, bitmap.mod, font.mod, gfxterm.mod and bufio.mod
12518 * conf/mips-yeeloong.rmk (kernel_img_HEADERS): Add bitmap.h,
12519 video.h, gfxterm.h, font.h, bitmap_scale.h and bufio.h.
12520 * conf/mips.rmk (kernel_img_HEADERS): Add values instead of overwriting.
12521 * include/grub/bitmap.h: Add EXPORT_FUNC and EXPORT_VAR.
12522 * include/grub/bitmap_scale.h: Likewise.
12523 * include/grub/bufio.h: Likewise.
12524 * include/grub/font.h: Likewise.
12525 * include/grub/gfxterm.h: Likewise.
12526 * include/grub/video.h: Likewise.
12527 * include/grub/vbe.h: Don't include video_fb.h.
12528 * video/i386/pc/vbe.c: Include video_fb.h.
12529 * commands/i386/pc/vbetest.c: Include video.h.
12530
a0ca21c2
CW
125312010-02-25 Jordan Uggla <jordan.uggla@gmail.com>
12532
12533 * util/grub-mkconfig.in (GRUB_SAVEDEFAULT): Export new variable.
12534 * util/grub-mkconfig_lib.in (save_default_entry): Only save a new
12535 default entry if GRUB_SAVEDEFAULT=true. This allows using
12536 GRUB_DEFAULT=saved on its own to let grub-reboot work, without
12537 saving a new default on every boot.
12538
4a8a763c
VS
125392010-02-24 Vladimir Serbinenko <phcoder@gmail.com>
12540
12541 * normal/crypto.c (read_crypto_list): Fix a memory leak.
12542 * normal/term.c (read_terminal_list): Likewise.
12543 * normal/main.c (grub_normal_init_page): Likewise.
12544 (grub_normal_read_line_real): Likewise.
12545
607ffde2
VS
125462010-02-24 Vladimir Serbinenko <phcoder@gmail.com>
12547
12548 * loader/i386/multiboot_mbi.c (grub_multiboot_set_bootdev): Fix a
12549 memory leak.
12550 Reported by: Seth Goldberg.
12551
2b8fa975
CW
125522010-02-24 Joey Korkames <joey+lists@kidfixit.com>
12553
12554 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Remove
12555 duplicate declaration of `start'.
12556
618307dd
VS
125572010-02-20 Vladimir Serbinenko <phcoder@gmail.com>
12558
12559 * fs/iso9660.c (grub_iso9660_iterate_dir): Strip version from joliet
12560 filename.
12561 Reported by: Georgy Buranov
12562
7dd05b96 125632010-02-20 Carles Pina i Estany <carles@pina.cat>
12564
12565 * util/grub-mkrawimage.c (usage): Change string formatting to
12566 improve gettext.
12567
d1484a42
MRA
125682010-02-20 Manoel Rebelo Abranches <mrabran@br.ibm.com>
12569
12570 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Add delete and
12571 backspace keys.
12572
42b1d186
VS
125732010-02-20 Vladimir Serbinenko <phcoder@gmail.com>
12574
12575 * video/fb/video_fb.c (grub_video_fb_scroll): Fix a pixel size bug.
12576 Reported by: Michael Suchanek.
12577
125782010-02-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
0a39de87
ST
12579
12580 * util/grub-mkconfig.in: Export GRUB_INIT_TUNE.
12581 * util/grub.d/00_header.in: Handle GRUB_INIT_TUNE.
12582
d9f31a41
VS
125832010-02-16 Vladimir Serbinenko <phcoder@gmail.com>
12584
12585 Remove any reference to non-free fonts.
12586
12587 * commands/videotest.c (grub_cmd_videotest): Use unifont by default.
12588 * docs/gfxmenu-theme-example.txt: Removed. It's both outdated and
12589 uses non-free components.
12590 * font/font.c (grub_font_get_name): Remove example name.
12591 * gfxmenu/gui_label.c (grub_gui_label_new): Use unifont by default.
12592 * gfxmenu/gui_list.c (grub_gui_list_new): Likewise.
12593 * gfxmenu/gui_progress_bar.c (grub_gui_progress_bar_new): Likewise.
12594 * gfxmenu/view.c (grub_gfxmenu_view_new): Likewise.
12595
2793c71e
GB
125962010-02-16 Georgy Buranov <gburanov@gmail.com>
12597
12598 * disk/efi/efidisk.c (grub_efidisk_get_device_name): Fix a typo.
12599
402e3779
VS
126002010-02-15 Vladimir Serbinenko <phcoder@gmail.com>
12601
12602 * term/serial.c (serial_get_divisor) [GRUB_MACHINE_MIPS_YEELOONG]:
12603 Double divisor.
12604 (serial_hw_init) [GRUB_MACHINE_MIPS_YEELOONG]: Don't enable advanced
12605 features.
12606 (GRUB_MOD_INIT) [GRUB_MACHINE_MIPS_YEELOONG]: Default to 115200.
12607
0dd1e0dd
VS
126082010-02-15 Vladimir Serbinenko <phcoder@gmail.com>
12609
12610 * gensymlist.sh.in: Use TARGET_CC instead of CC.
12611
6fa7cfce
ST
126122010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
12613
12614 * commands/i386/pc/play.c (GRUB_MOD_INIT(play)): Fix help.
12615 * docs/grub.texi (Command-line and menu entry commands): Document play
12616 command.
12617
37c8483b
ST
126182010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
12619
12620 * commands/i386/pc/play.c (grub_cmd_play): If grub_file_open fails,
12621 parse arguments as inline tempo and notes. Move code for playing notes
12622 to...
12623 (play): ... new function.
12624
14da0fb7
ST
126252010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
12626
12627 * commands/i386/pc/play.c (T_REST, T_FINE, struct note, beep_on): Use
12628 grub_uint16_t instead of short.
12629 (grub_cmd_play): Use grub_uint32_t instead of int, convert data from
12630 disk from little endian to cpu endianness.
12631
04459e70
ST
126322010-02-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
12633
12634 * commands/i386/pc/play.c (BASE_TEMPO): Set to 60 *
12635 GRUB_TICKS_PER_SECOND instead of 120.
12636
a0876943
VS
126372010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
12638
12639 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Wait for possible
12640 escape sequence after \e.
12641
e29f95dc
VS
126422010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
12643
12644 * term/ieee1275/ofconsole.c (grub_ofconsole_putchar): Don't output
12645 non-ASCII characters.
12646
d27859b2
VS
126472010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
12648
12649 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Enclose
12650 set root in single quotes to prevent \, from being unescaped.
12651
bc028f2f
VS
126522010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
12653
12654 Prevent unknown commands from stopping menuentry execution.
12655
12656 * script/execute.c (grub_script_execute_cmdline): Print error after
12657 unknown command.
12658
095f5f82
VS
126592010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
12660
12661 * fs/i386/pc/pxe.c (GRUB_MOD_INIT): Fix typo.
12662 Reported by: Pavel Pisa.
12663
8c717950
VS
126642010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
12665
12666 * io/gzio.c (grub_gzio_open): Use grub_zalloc.
12667
904935c3
VS
126682010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
12669
12670 Merge grub_ieee1275_map_physical into grub_map and rename to
12671 grub_ieee1275_map
12672
12673 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_map): New proto.
12674 * include/grub/sparc64/ieee1275/ieee1275.h (grub_ieee1275_map_physical):
12675 Remove.
12676 * kern/ieee1275/openfw.c (grub_map): Rename to ...
12677 (grub_ieee1275_map): ... this. All users updated. Add phys_lo when
12678 necessary.
12679 * kern/sparc64/ieee1275/ieee1275.c (grub_ieee1275_map_physical): Remove.
12680
5b59a4e3
VS
126812010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
12682
12683 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Check device type before
12684 opening and not after.
12685
69e137e8
VS
126862010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
12687
12688 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Macroify
12689 constants.
12690
2c0fcc36
VS
126912010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
12692
12693 * loader/sparc64/ieee1275/linux.c (align_addr): Remove.
12694 (alloc_phys): Use ALIGN_UP instead of align_addr.
12695
8c6052ce
VS
126962010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
12697
12698 * loader/sparc64/ieee1275/linux.c (alloc_phys): Correct bounds checking.
12699
17cec782
VS
127002010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
12701
12702 * kern/sparc64/ieee1275/crt0.S (codestart): Move modules backwards.
12703
e0128bbd
VS
127042010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
12705
12706 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Remove excessively
12707 verbose dprintf.
12708
ca62070b
VS
127092010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
12710
12711 Fix over-4GiB seek on sparc64.
12712
12713 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_seek):
12714 Replace pos_i and pos_lo with pos. All users updated.
12715 * include/grub/powerpc/ieee1275/ieee1275.h (GRUB_IEEE1275_CELL_SIZEOF):
12716 New constant.
12717 * include/grub/sparc64/ieee1275/ieee1275.h (GRUB_IEEE1275_CELL_SIZEOF):
12718 Likewise.
12719 * kern/ieee1275/ieee1275.c (grub_ieee1275_seek): Split pos into pos_hi
12720 and pos_lo.
12721
bdca2607
VS
127222010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
12723
12724 * util/grub-mkrawimage.c (main): Call set_program_name.
12725
da278c4d
VS
127262010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
12727
12728 Properly align 64-bit targets.
12729
12730 * util/grub-mkrawimage.c (ALIGN_ADDR): New macro.
12731 (generate_image): Use ALIGN_ADDR.
12732
b274d734
VS
127332010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
12734
12735 Properly create cross-endian images.
12736
12737 * include/grub/types.h (grub_host_to_target_addr): New macro
12738 * util/grub-mkrawimage.c (generate_image): Add missing host_to_target.
12739
82da2062
VS
127402010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
12741
12742 * util/grub-mkrawimage.c (generate_image): Add forgotten ALIGN_UP.
12743
7cae4377
VS
127442010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
12745
12746 Pass SIMPLE framebuffer size in bytes and not 64K blocks.
12747
12748 * loader/i386/efi/linux.c (grub_linux_setup_video): Don't divide by 64K.
12749 * loader/i386/linux.c (grub_linux_setup_video): Likewise.
12750 (grub_linux_boot): Divide by 64K when on VESA.
12751
65a533e7
VS
127522010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
12753
12754 Support GRUB_GFXPAYLOAD_LINUX.
12755
12756 * util/grub-mkconfig.in: Export GRUB_GFXPAYLOAD_LINUX.
12757 * util/grub.d/10_linux.in (linux_entry): Handle GRUB_GFXPAYLOAD_LINUX.
12758
dd01d397
VS
127592010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
12760
12761 * script/execute.c (grub_script_execute_cmdline): Use grub_print_error
12762 to show messages instead of discarding them.
12763 Process errors after executing command and not before. Keep old method
12764 too as precaution.
12765
660960d6
VS
127662010-02-09 Vladimir Serbinenko <phcoder@gmail.com>
12767
12768 * configure.ac: Check for ft2build.h.
12769
62509f04
VS
127702010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
12771
12772 * kern/ieee1275/openfw.c (grub_halt): Try executing "poweroff".
12773
473df63d
VS
127742010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
12775
12776 * genkernsyms.sh.in: Use TARGET_CC.
12777
c98d2a13
CW
127782010-02-07 Colin Watson <cjwatson@ubuntu.com>
12779
12780 * NEWS: Update.
12781
6e14234c
VS
127822010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
12783
12784 * include/grub/multiboot2.h: Remove leftover file.
e28e32ae
VS
12785 * include/grub/normal.h [GRUB_UTIL]: Remove leftover declarations.
12786 * include/grub/partition.h [GRUB_UTIL]: Likewise.
6e14234c 12787
b255e9cf
YB
127882010-02-07 Yves Blusseau <blusseau@zetam.org>
12789
6e14234c 12790 * gnulib/getdelim.c: add missing header (type ssize_t must be defined).
b255e9cf 12791
98e6959d
VS
127922010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
12793
12794 Fix warnings in grub-emu when compiling with maximum warning options.
12795
12796 * util/grub-emu.c (ENABLE_RELOCATABLE): New definition.
12797 (grub_arch_modules_addr): Return 0 and not NULL.
12798 * util/misc.c (ENABLE_RELOCATABLE): New definition.
74e4934e 12799 (xstrdup): Use newstr instead of dup.
f88d801b
VS
12800 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Rename one instance
12801 of disk to dsk to avoid shadowing.
74e4934e
VS
12802 (find_free_slot): Fix prototype.
12803 * util/getroot.c (grub_util_is_dmraid): Make static.
12804 * include/grub/time.h (grub_get_rtc) [GRUB_MACHINE_EMU || GRUB_UTIL]:
12805 Add missing prototype.
12806 * util/sdl.c (grub_video_sdl_set_viewport): Remove.
98e6959d 12807
74e31b5c
VS
128082010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
12809
12810 * loader/i386/linux.c (grub_linux_setup_video): Handle error
12811 appropriately.
12812
6b2ad14b
VS
128132010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
12814
12815 * fs/reiserfs.c (grub_reiserfs_read): Use #if 0 instead of commenting
12816 code out.
12817
8f891adc
VS
128182010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
12819
12820 * include/grub/cache.h (grub_arch_sync_caches) [i386 || x86_64]: Inline.
12821 * kern/i386/coreboot/init.c (grub_arch_sync_caches): Remove.
12822 * kern/i386/efi/init.c (grub_arch_sync_caches): Likewise.
12823 * kern/i386/ieee1275/init.c (grub_arch_sync_caches): Likewise.
12824 * kern/i386/pc/init.c (grub_arch_sync_caches): Likewise.
12825 * util/misc.c (grub_arch_sync_caches) [i386 || x86_64]: Likewise.
12826
74b45184
VS
128272010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
12828
12829 * include/grub/err.h (grub_err_printf): Don't export.
12830
a4bced77
VS
128312010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
12832
12833 * include/grub/dl.h (grub_dl_register_symbol): Don't export.
12834
007d0695
VS
128352010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
12836
12837 * include/grub/i18n.h (grub_gettext_dummy): Removed.
12838 * kern/misc.c (grub_gettext_dummy): Make static.
12839
b6c0d9c2
VS
128402010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
12841
12842 * kern/misc.c (grub_utf8_to_ucs4): Don't eat valid characters preceeded
12843 by non-valid ones.
12844 * kern/term.c (grub_putchar): Likewise.
12845
f51a90d0
VS
128462010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
12847
12848 * partmap/sun.c (sun_partition_map_iterate): Restructure flow to fix
12849 buggy hook call and memory leak.
12850
6846cec5
VS
128512010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
12852
12853 * commands/ls.c (grub_ls_list_files): Free pathname on exit.
12854
468d69fe
VS
128552010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
12856
12857 * fs/fat.c (grub_fat_iterate_dir): Free unibuf at exit.
12858
51906b8c
VS
128592010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
12860
12861 * loader/i386/pc/xnu.c (grub_xnu_set_video): Add const qualifier to
12862 modevar.
12863 Return grub_errno on allocation error.
12864
09706ce5
VS
128652010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
12866
12867 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Correct error handling.
12868
911df80c
YB
128692010-02-06 Yves Blusseau <blusseau@zetam.org>
12870
12871 * conf/common.rmk (grub_script_check_SOURCES): add missing dependencies.
12872 (grub_mkpasswd_pbkdf2_SOURCES): Likewise.
12873
3746a6bc
VS
128742010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
12875
12876 * fs/i386/pc/pxe.c (grub_pxefs_dir): Return with failure on
12877 non-pxe disk.
12878 (grub_pxefs_open): Likewise.
12879
09706ce5
VS
128802010-02-06 Robert Millan <rmh.grub@aybabtu.com>
12881
12882 * util/grub.d/10_hurd.in: Add --class information to menuentries.
12883 * util/grub.d/10_kfreebsd.in: Likewise.
12884 * util/grub.d/10_linux.in: Likewise.
12885
7cc192d9
VS
128862010-02-06 Colin D Bennett <colin@gibibit.com>
12887
12888 * conf/common.rmk (pkglib_MODULES): Add gfxmenu.mod.
12889 (gfxmenu_mod_SOURCES): New variable.
12890 (gfxmenu_mod_CFLAGS): Likewise.
12891 (gfxmenu_mod_LDFLAGS): Likewise.
12892 * include/grub/term.h (grub_term_set_current_output): Declare
12893 argument as const.
12894 * docs/gfxmenu-theme-example.txt: New file.
12895 * gfxmenu/gfxmenu.c: Likewise.
12896 * gfxmenu/gui_box.c: Likewise.
12897 * gfxmenu/gui_canvas.c: Likewise.
12898 * gfxmenu/gui_circular_progress.c: Likewise.
12899 * gfxmenu/gui_image.c: Likewise.
12900 * gfxmenu/gui_label.c: Likewise.
12901 * gfxmenu/gui_list.c: Likewise.
12902 * gfxmenu/gui_progress_bar.c: Likewise.
12903 * gfxmenu/gui_string_util.c: Likewise.
12904 * gfxmenu/gui_util.c: Likewise.
12905 * gfxmenu/icon_manager.c: Likewise.
12906 * gfxmenu/model.c: Likewise.
12907 * gfxmenu/named_colors.c: Likewise.
12908 * gfxmenu/theme_loader.c: Likewise.
12909 * gfxmenu/view.c: Likewise.
12910 * gfxmenu/widget-box.c: Likewise.
12911 * include/grub/gfxmenu_model.h: Likewise.
12912 * include/grub/gfxmenu_view.h: Likewise.
12913 * include/grub/gfxwidgets.h: Likewise.
12914 * include/grub/gui.h: Likewise.
12915 * include/grub/gui_string_util.h: Likewise.
12916 * include/grub/icon_manager.h: Likewise.
12917
129182010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
12919
12920 Agglomerate scrolling in gfxterm.
12921
12922 * term/gfxterm.c (grub_virtual_screen): New member 'total_screen'.
12923 (grub_virtual_screen_setup): Initialise 'total_screen'.
12924 (write_char): Split to ...
12925 (paint_char): ... this ...
12926 (write_char): ... and this.
12927 (paint_char): Handle delayed scrolling.
12928 (draw_cursor): Likewise.
12929 (scroll_up): Split to ...
12930 (real_scroll): ... this ...
12931 (scroll_up): ... and this.
12932 (real_scroll): Handle multi-line scroll and draw below-the-bottom
12933 characters.
12934 (grub_gfxterm_refresh): Call real_scroll.
12935
129362010-02-06 Colin D Bennett <colin@gibibit.com>
12937
12938 * include/grub/misc.h (grub_iscntrl): New inline function.
12939 (grub_isalnum): Likewise.
12940 (grub_strtol): Likewise.
12941
129422010-02-06 Colin D Bennett <colin@gibibit.com>
12943
12944 * normal/menu_text.c (get_entry_number): Move from here ...
12945 * normal/menu.c (get_entry_number): ... moved here.
12946 * include/grub/menu.h (grub_menu_get_default_entry_index):
12947 New prototype.
12948 * normal/menu.c (grub_menu_get_default_entry_index): New function.
12949 * normal/menu_text.c (run_menu): Use grub_menu_get_default_entry_index.
12950 * include/grub/menu_viewer.h (grub_menu_viewer_init): New prototype.
12951 (grub_menu_viewer_should_return): Likewise.
12952 * normal/main.c (GRUB_MOD_INIT (normal)): Call grub_menu_viewer_init.
12953 * normal/menu_text.c (run_menu): Enable menu switching.
12954 * normal/menu_viewer.c (should_return): New variable.
12955 (menu_viewer_changed): Likewise.
12956 (grub_menu_viewer_show_menu): Handle menu viewer changes.
12957 (grub_menu_viewer_should_return): New function.
12958 (menuviewer_write_hook): Likewise.
12959 (grub_menu_viewer_init): Likewise.
12960
129612010-02-06 Colin D Bennet <colin@gibibit.com>
129622010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
12963
12964 Support for gfxterm in a window.
12965
12966 * include/grub/gfxterm.h: New file.
12967 * include/grub/video.h (struct grub_video_rect): New declaration.
12968 (grub_video_rect_t): Likewise.
12969 * term/gfxterm.c (struct grub_gfxterm_window): New type.
12970 (refcount): New variable.
12971 (render_target): Likewise.
12972 (window): Likewise.
12973 (repaint_callback): Likewise.
12974 (grub_virtual_screen_setup): Use 'render_target'.
12975 (init_window): New function.
12976 (grub_gfxterm_init_window): Likewise.
12977 (grub_gfxterm_init): Check reference counter.
12978 Use init_window.
12979 (destroy_window): New function.
12980 (grub_gfxterm_destroy_window): Likewise.
12981 (grub_gfxterm_fini): Check reference counter.
12982 Use destroy_window.
12983 (redraw_screen_rect): Restore viewport.
12984 Use 'render_target' and 'window'.
12985 Call 'repaint_callback'.
12986 (write_char): Use 'render_target'.
12987 (draw_cursor): Likewise.
12988 (scroll_up): Restore viewport.
12989 Use 'render_target' and 'window'.
12990 Call 'repaint_callback'.
12991 (grub_gfxterm_cls): Likewise.
12992 (grub_gfxterm_refresh): Use 'window'.
12993 (grub_gfxterm_set_repaint_callback): New function.
12994 (grub_gfxterm_background_image_cmd): Use 'window'.
12995 (grub_gfxterm_get_term): New function.
12996 (GRUB_MOD_INIT(term_gfxterm)): Set 'refcount' to 0.
12997
129982010-02-06 Colin D Bennett <colin@gibibit.com>
12999
13000 Bitmap scaling support.
13001
13002 * conf/common.rmk (pkglib_MODULES): Add bitmap_scale.mod.
13003 (bitmap_scale_mod_SOURCES): New variable.
13004 (bitmap_scale_mod_CFLAGS): Likewise.
13005 (bitmap_scale_mod_LDFLAGS): Likewise.
13006 * include/grub/bitmap_scale.h: New file.
13007 * term/gfxterm.c (BACKGROUND_CMD_ARGINDEX_MODE): New definiton.
13008 (background_image_cmd_options): New variable.
13009 (grub_gfxterm_background_image_cmd): Support bitmap stretching.
13010 (cmd): Rename and change type to ...
13011 (background_image_cmd_handle): ... this. All users updated.
13012 (GRUB_MOD_INIT(term_gfxterm)): Make background_image extended command.
13013 * video/bitmap_scale.c: New file.
13014
130152010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
13016
13017 SDL support.
13018
13019 * Makefile.in (LIBSDL): New variable.
13020 (enable_grub_emu_sdl): Likewise.
13021 * conf/i386-pc.rmk (grub_emu_SOURCES): Add video files.
13022 (grub_emu_SOURCES) [enable_grub_emu_sdl]: Add util/sdl.c.
13023 (grub_emu_LDFLAGS) [enable_grub_emu_sdl]: Add $(LIBSDL).
13024 * configure.ac: Detect SDL availability and add --enable-grub-emu-sdl
13025 * util/sdl.c: New file.
13026
130272010-02-06 Colin D Bennett <colin@gibibit.com>
130282010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
13029
13030 Double buffering support.
13031
13032 * commands/i386/pc/videotest.c (grub_cmd_videotest): Swap doublebuffers.
13033 * include/grub/video.h: Update comment.
13034 * include/grub/video_fb.h (grub_video_fb_doublebuf_update_screen_t):
13035 New type.
13036 (grub_video_fb_doublebuf_blit_init): New prototype.
13037 * term/gfxterm.c (scroll_up): Support double buffering.
13038 (grub_gfxterm_refresh): Likewise.
13039 * video/fb/video_fb.c (doublebuf_blit_update_screen): New function.
13040 (grub_video_fb_doublebuf_blit_init): Likewise.
13041 * video/i386/pc/vbe.c (framebuffer): Remove 'render_target'. Add
13042 'front_target', 'back_target', 'offscreen_buffer', 'page_size',
13043 'displayed_page', 'render_page' and 'update_screen'.
13044 (grub_video_vbe_fini): Free offscreen buffer.
13045 (doublebuf_pageflipping_commit): New function.
13046 (doublebuf_pageflipping_update_screen): Likewise.
13047 (doublebuf_pageflipping_init): Likewise.
13048 (double_buffering_init): Likewise.
13049 (grub_video_vbe_setup): Enable doublebuffering.
13050 (grub_video_vbe_swap_buffers): Implement.
13051 (grub_video_vbe_set_active_render_target): Handle double buffering.
13052 (grub_video_vbe_get_active_render_target): Likewise.
13053 (grub_video_vbe_get_info_and_fini): Likewise. Free offscreen_buffer.
13054 (grub_video_vbe_adapter): Use grub_video_vbe_get_active_render_target.
13055 (grub_video_vbe_enable_double_buffering): Likewise.
13056 (grub_video_vbe_swap_buffers): Use update_screen.
13057 (grub_video_set_mode): Use double buffering.
13058
130592010-02-06 Robert Millan <rmh.grub@aybabtu.com>
13060
13061 * maintainance/gentrigtables.py: Remove.
13062 * lib/trig.c: Likewise.
13063
13064 * gentrigtables.c: New file. C rewrite of gentrigtables.py.
13065
13066 * conf/common.rmk (trig_mod_SOURCES): Replace `lib/trig.c' with
13067 `trigtables.c'.
13068 (trigtables.c): New rule.
13069 (gentrigtables): Likewise.
13070 (DISTCLEANFILES): Add `trigtables.c' and `gentrigtables'.
13071
130722010-02-06 Robert Millan <rmh.grub@aybabtu.com>
13073
13074 * maintainance/gentrigtables.py: Avoid duplicate hardcoding of
13075 integer constants.
13076
130772010-02-06 Colin D Bennet <colin@gibibit.com>
13078
13079 Trigonometry support.
13080
13081 * include/grub/trig.h: New file.
13082 * lib/trig.c: Likewise.
13083 * maintainance/gentrigtables.py: Likewise.
13084 * conf/common.rmk (pkglib_MODULES): Add trig.mod.
13085 (trig_mod_SOURCES): New variable.
13086 (trig_mod_CFLAGS): Likewise.
13087 (trig_mod_LDFLAGS): Likewise.
13088
5562834e
VS
130892010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
13090
13091 * kern/ieee1275/openfw.c (grub_ieee1275_encode_devname): Support whole
13092 disk devices.
13093
4f8528fc
VS
130942010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
13095
13096 * kern/ieee1275/openfw.c (grub_devalias_iterate): Stop iterating on
13097 error.
13098
2b4068e9
VS
130992010-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13100
13101 * util/hostdisk.c (open_device): Don't use partition device when reading
13102 before the partition.
13103 (grub_util_biosdisk_read): Don't read from partition and before the
13104 partition in single operation.
13105 (grub_util_biosdisk_write): Don't write to partition and before the
13106 partition in single operation.
13107
399f6e4d
TL
131082010-02-03 Torsten Landschoff <torsten@debian.org>
13109
13110 * kern/disk.c (grub_disk_read): Fix offset computation when reading
13111 last sectors.
13112
996649b0
VS
131132010-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13114
13115 * disk/i386/pc/biosdisk.c (grub_biosdisk_read): Handle non-2048 aligned
13116 CDROM reads.
13117 (grub_biosdisk_write): Refuse to write to CDROM.
13118
3b205d4d
VS
131192010-01-31 Vladimir Serbinenko <phcoder@gmail.com>
13120
13121 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Fix off-by-one error.
13122
61e89d9d
VS
131232010-01-31 Vladimir Serbinenko <phcoder@gmail.com>
13124
13125 * font/font.c (find_glyph): Check that bmp_idx is available before
13126 using it.
13127 (grub_font_get_string_width): Never call grub_font_get_glyph_internal
13128 with (font == NULL).
13129
bf7fcba2
CS
131302010-01-28 Christian Schmitt <chris@ilovelinux.de>
13131
13132 * util/ieee1275/grub-install.in: Fix nvsetenv arguments.
13133
f45d2663
BC
131342010-01-28 BVK Chaitanya <bvk.groups@gmail.com>
13135
13136 * include/grub/script_sh.h (sourcecode): Add const qualifier.
13137 * util/grub-script-check.c (getline): Fix empty lines case.
13138
ec1444e6
RM
131392010-01-28 Robert Millan <rmh.grub@aybabtu.com>
13140
13141 * Makefile.in (check): Exit with fail status when one of the tests
13142 fails.
13143 * tests/example_functional_test.c (example_test): Fix reversed assert.
13144 * tests/example_unit_test.c (example_test): Likewise.
13145
2e1cb9bb
CW
131462010-01-28 Colin Watson <cjwatson@ubuntu.com>
13147
13148 * util/grub.d/10_linux.in: This script does not use any of the
13149 contents of gettext.sh, only the external command `gettext', so stop
13150 sourcing it. (Moreover, gettext.sh isn't necessarily installed in
13151 the same prefix as GRUB.)
13152 * util/grub.d/10_kfreebsd.in: Likewise.
13153
63533ab0
VS
131542010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
13155
13156 * normal/cmdline.c (grub_cmdline_get): Fix completion in the middle
13157 of the line.
13158
989e1f93
VS
131592010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
13160
13161 * kern/disk.c (grub_disk_read): Fix offset computation when reading
13162 last sectors.
13163
e709ebe2
VS
131642010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
13165
13166 * commands/hashsum.c (hash_file): Avoid possible stack overflow by
13167 having a 4KiB and not 32KiB buffer size.
13168
27dea7ed
RM
131692010-01-27 Robert Millan <rmh.grub@aybabtu.com>
13170
13171 * util/hostfs.c: Include `<errno.h>'.
13172 (grub_hostfs_read): Handle errors from fseeko() and fread().
13173
67667b9c
RM
131742010-01-27 Robert Millan <rmh.grub@aybabtu.com>
13175
13176 * kern/disk.c (grub_disk_read): Fix bug that would cause infinite
13177 loop when using read hooks on files whose size isn't sector-aligned.
13178
c294d9d8
RM
131792010-01-27 Robert Millan <rmh.grub@aybabtu.com>
13180
13181 Remove unused parameter.
13182
13183 * fs/iso9660.c (struct grub_iso9660_data): Remove `length' parameter.
13184 (grub_iso9660_open): Remove initialization of `data->length'.
13185
af75a9f1
RM
131862010-01-27 Robert Millan <rmh.grub@aybabtu.com>
13187
13188 * util/grub-fstest.c (fstest): Rewrite allocation, fixing a few
13189 memleak conditions.
13190
254e2ce5 131912010-01-27 Carles Pina i Estany <carles@pina.cat>
13192
13193 * util/lvm.c: New macro LVM_DEV_MAPPER_STRING.
13194 (grub_util_lvm_isvolume): Use LVM_DEV_MAPPER_STRING.
13195
b510928c 131962010-01-26 Carles Pina i Estany <carles@pina.cat>
13197
13198 * util/bin2h.c (usage): Fix warning (space after backslash).
13199
aa2f9dd2 132002010-01-26 Carles Pina i Estany <carles@pina.cat>
de0b7a4e 13201
13202 * font/font.c: Include `grub/fontformat.h.
13203 Remove font file format constants.
13204 (grub_font_load): Use the new macros.
13205 * include/grub/fontformat.h: New file.
13206 * util/grub-mkfont.c: Include `grub/fontformat.c'.
13207 (write_font_pf2): Use the new macros.
13208
94e7e712
RM
132092010-01-26 Robert Millan <rmh.grub@aybabtu.com>
13210
13211 * util/bin2h.c (usage): Make --help actually explain what `grub-bin2h'
13212 does.
13213
3973a59a
RM
132142010-01-26 Robert Millan <rmh.grub@aybabtu.com>
13215
13216 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_PXE_DL): New macro.
13217
13218 * boot/i386/pc/pxeboot.S: Include `<grub/machine/boot.h>'.
13219 (_start): Macroify `0x7F'.
13220
13221 * kern/i386/pc/init.c: Include `<grub/machine/boot.h>'.
13222 (make_install_device): Use "(pxe)" as fallback prefix when booting
13223 via PXE.
13224
42e0cba3
GS
132252010-01-26 Vladimir Serbinenko <phcoder@gmail.com>
13226
13227 * configure.ac: Reset LIBS after check for libgcc symbols.
13228
847effd8
CW
132292010-01-25 Colin Watson <cjwatson@ubuntu.com>
13230
13231 * util/hostdisk.c (open_device): Add trailing newline to debug
13232 message.
13233
ea4a7e35
GS
132342010-01-25 Grégoire Sutre <gregoire.sutre@gmail.com>
13235
13236 * configure.ac: Check for `limits.h'.
13237 * util/misc.c: Include `<limits.h>' (for PATH_MAX).
13238
67951a53
RM
132392010-01-24 Robert Millan <rmh.grub@aybabtu.com>
13240
13241 * loader/mips/linux.c (grub_cmd_linux, grub_cmd_initrd): Don't
13242 capitalize error strings.
13243
c273d4ce
ST
132442010-01-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
13245
13246 * util/grub.d/10_hurd.in: Add a recovery mode.
13247
69be5b74
VS
132482010-01-23 Vladimir Serbinenko <phcoder@gmail.com>
13249
13250 * configure.ac: Check for libgcc symbols with -nostdlib.
13251
fc9e5810
BC
132522010-01-23 BVK Chaitanya <bvk.groups@gmail.com>
13253
13254 * acinclude.m4: Quote underquoted AC_DEFUN parameters.
13255
4b358c0a
VS
132562010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
13257
13258 * term/ieee1275/ofconsole.c (grub_ofconsole_setcolorstate): Allocate on
13259 stack since heap may be unavailable at that point.
13260 (grub_ofconsole_gotoxy): Likewise.
13261
454fcd1c
VS
132622010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
13263
13264 * configure.ac: Check for _restgpr_14_x.
13265 * include/grub/powerpc/libgcc.h [HAVE__RESTGPR_14_X]: Add _restgpr_*_x
13266 and _savegpr_* prototypes.
13267
566863ca
RM
132682010-01-22 Robert Millan <rmh.grub@aybabtu.com>
13269
13270 Use generic grub_reboot() for i386-efi.
13271
13272 * kern/efi/efi.c [__i386__] (grub_reboot): Remove.
13273 * kern/i386/efi/startup.S: Include `"../realmode.S"'.
13274 * kern/i386/realmode.S: Include `<grub/i386/pc/memory.h>'.
13275
bf86e59a
VS
132762010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
13277
13278 * kern/ieee1275/init.c (grub_machine_set_prefix): Don't check for
13279 presence of "prefix" variable as it breaks when normal.mod is
13280 embedded.
13281
d645e0f8
VS
132822010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
13283
13284 * term/ieee1275/ofconsole.c (grub_ofconsole_dimensions): Allocate on
13285 stack since heap is unavailable at that point.
13286
f9ab2e25
VS
132872010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
13288
13289 * include/grub/i386/bsd.h (FREEBSD_N_BIOS_GEOM): Removed.
13290 (grub_freebsd_bootinfo): Rewritten.
13291 * loader/i386/bsd.c (grub_freebsd_boot): Use new grub_freebsd_bootinfo.
13292
01fc7054
VS
132932010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
13294
13295 * util/misc.c (make_system_path_relative_to_its_root): Fix typo.
13296
caab4fd6
RM
132972010-01-21 Robert Millan <rmh.grub@aybabtu.com>
13298
13299 * po/POTFILES: Remove mkisofs-related files. They have their own TLP
13300 domain now.
13301
67eb1427
FZ
133022010-01-20 Felix Zielcke <fzielcke@z-51.de>
13303
13304 * util/misc.c (make_system_path_relative_to_its_root): Change the work
13305 around for handling "/" to the correct fix. Fix a memory leak. Use
13306 xstrdup instead of strdup.
13307
a9ed4ff3
VS
133082010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
13309
13310 * conf/mips.rmk (kernel_img_HEADERS): Add env_private.h
13311
133122010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
bed35bda
VS
13313
13314 Optimise glyph lookup by Basic Multilingual Plane lookup array.
13315
13316 * font/font.c (struct grub_font): New member 'bmp_idx'.
13317 (font_init): Initialise 'bmp_idx'.
13318 (load_font_index): Fill 'bmp_idx'.
13319 (find_glyph): Make inline. Use bmp_idx for BMP characters.
13320
48209f4f
VS
133212010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
13322
13323 * video/fb/video_fb.c (grub_video_fb_scroll): Optimise by avoiding
13324 unnecessary calls.
13325
9f0a4bb7
VS
133262010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
13327
13328 Move context handling out of the kernel.
13329
13330 * conf/any-emu.rmk (grub_emu_SOURCES): Add normal/context.c.
13331 * conf/common.rmk (normal_mod_SOURCES): Add normal/context.c.
13332 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add env_private.h.
13333 * conf/i386-efi.rmk: Likewise.
13334 * conf/i386-ieee1275.rmk: Likewise.
13335 * conf/i386-pc.rmk: Likewise.
13336 * conf/powerpc-ieee1275.rmk: Likewise.
13337 * conf/sparc64-ieee1275.rmk: Likewise.
13338 * conf/x86_64-efi.rmk: Likewise.
13339 * include/grub/env.h: Include grub/menu.h.
13340 (grub_env_var_type): Removed.
13341 (grub_env_var): Replaced field 'type' with 'global'.
13342 (grub_env_find): New prototype.
13343 (grub_env_context_open): Remove EXPORT_FUNC.
13344 (grub_env_context_close): Likewise.
13345 (grub_env_export): Likewise.
13346 (grub_env_set_data_slot): Removed.
13347 (grub_env_get_data_slot): Likewise.
13348 (grub_env_unset_data_slot): Likewise.
13349 (grub_env_unset_menu): New prototype.
13350 (grub_env_set_menu): Likewise.
13351 (grub_env_get_menu): Likewise.
13352 * include/grub/env_private.h: New file.
13353 * include/grub/normal.h (grub_context_init): New prototype.
13354 (grub_context_fini): Likewise.
13355 * kern/corecmd.c (grub_core_cmd_export): Moved from here ...
13356 * normal/context.c (grub_cmd_export): ... to here.
13357 * kern/env.c: Include env_private.h.
13358 (HASHSZ): Moved to include/grub/env_private.h.
13359 (grub_env_context): Likewise.
13360 (grub_env_sorted_var): Likewise.
13361 (current_context): Renamed from this ...
13362 (grub_current_context): ...to this. 'static' removed. All users updated.
13363 (grub_env_find): Removed 'static'.
13364 (grub_env_context_open): Moved to normal/context.c.
13365 (grub_env_context_close): Likewise.
13366 (grub_env_export): Likewise.
13367 (mangle_data_slot_name): Removed.
13368 (grub_env_set_data_slot): Likewise.
13369 (grub_env_get_data_slot): Likewise.
13370 (grub_env_unset_data_slot): Likewise.
13371 * kern/main.c (grub_set_root_dev): Don't export root.
13372 It will be done later.
13373 (grub_main): Don't export prefix.
13374 It will be done later.
13375 * normal/context.c: New file.
13376 * normal/main.c (free_menu): Use grub_env_unset_menu.
13377 (grub_normal_add_menu_entry): Use grub_env_get_menu.
13378 (read_config_file): Use grub_env_get_menu and grub_env_set_menu.
13379 (GRUB_MOD_INIT(normal)): Call grub_context_init.
13380 (GRUB_MOD_FINI(normal)): Call grub_context_fini.
13381
8dd35b8c
VS
133822010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
13383
13384 setpci support.
13385
13386 * commands/setpci.c: New file.
13387 * conf/i386.rmk (pkglib_MODULES): Add setpci.mod.
13388 (setpci_mod_SOURCES): New variable.
13389 (setpci_mod_CFLAGS): Likewise.
13390 (setpci_mod_LDFLAGS): Likewise.
13391
449193d5
VS
133922010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
13393
13394 Byte-addressable PCI configuration space.
13395
13396 * bus/pci.c (grub_pci_make_address): Use byte address instead of
13397 dword address.
13398 (grub_pci_iterate): Use macroses GRUB_PCI_REG_PCI_ID and
13399 GRUB_PCI_REG_CACHELINE.
13400 * bus/usb/ohci.c (grub_ohci_pci_iter): Use macroses
13401 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESS_REG0.
13402 * bus/usb/uhci.c (grub_ohci_pci_iter): Use macroses
13403 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESS_REG4.
13404 * commands/efi/fixvideo.c (scan_card): Use macros GRUB_PCI_REG_CLASS.
13405 * commands/efi/loadbios.c (enable_rom_area): Pass byte-address to
13406 grub_pci_make_address.
13407 (lock_rom_area): Likewise.
13408 * commands/lspci.c (grub_lspci_iter): Use macroses
13409 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESSES. Handle byte-addressing
13410 of grub_pci_make_address.
13411 * disk/ata.c (grub_ata_pciinit): Likewise.
13412 * include/grub/pci.h (GRUB_PCI_REG_PCI_ID): New macro.
13413 (GRUB_PCI_REG_VENDOR): Likewise.
13414 (GRUB_PCI_REG_DEVICE): Likewise.
13415 (GRUB_PCI_REG_COMMAND): Likewise.
13416 (GRUB_PCI_REG_STATUS): Likewise.
13417 (GRUB_PCI_REG_REVISION): Likewise.
13418 (GRUB_PCI_REG_CLASS): Likewise.
13419 (GRUB_PCI_REG_CACHELINE): Likewise.
13420 (GRUB_PCI_REG_LAT_TIMER): Likewise.
13421 (GRUB_PCI_REG_HEADER_TYPE): Likewise.
13422 (GRUB_PCI_REG_BIST): Likewise.
13423 (GRUB_PCI_REG_ADDRESSES): Likewise.
13424 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
13425 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
13426 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
13427 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
13428 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
13429 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
13430 (GRUB_PCI_REG_CIS_POINTER): Likewise.
13431 (GRUB_PCI_REG_SUBVENDOR): Likewise.
13432 (GRUB_PCI_REG_SUBSYSTEM): Likewise.
13433 (GRUB_PCI_REG_ROM_ADDRESS): Likewise.
13434 (GRUB_PCI_REG_CAP_POINTER): Likewise.
13435 (GRUB_PCI_REG_IRQ_LINE): Likewise.
13436 (GRUB_PCI_REG_IRQ_PIN): Likewise.
13437 (GRUB_PCI_REG_MIN_GNT): Likewise.
13438 (GRUB_PCI_REG_MAX_LAT): Likewise.
13439 * loader/i386/efi/linux.c (find_framebuf): Use GRUB_PCI_REG_CLASS.
13440 * loader/i386/efi/xnu.c (find_framebuf): Likewise.
13441 * video/efi_uga.c (find_framebuf): Likewise.
fdb1b2ea 13442 * video/sm712.c (grub_video_sm712_setup): Likewise.
449193d5
VS
13443 * util/pci.c (grub_pci_make_address): Use byte-addressed configuration
13444 space.
13445
96d73208
RM
134462010-01-20 Robert Millan <rmh.grub@aybabtu.com>
13447
13448 * util/grub.d/10_linux.in (linux_entry): Set gfxpayload=keep when it
13449 can be reliably determined to be supported.
13450
d4484482
RM
134512010-01-20 Robert Millan <rmh.grub@aybabtu.com>
13452
13453 * loader/i386/linux.c (grub_cmd_linux): If `vga=' was used, write down
13454 that VESA is supported.
13455 (grub_linux_boot): Use generic framebuffer unless VESA is known to be
13456 supported.
13457
00308ecf
VS
134582010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
13459
13460 * conf/common.rmk (font/font.c_DEPENDENCIES): Condition on FONT_SOURCE.
13461
f66924a4
RM
134622010-01-20 Robert Millan <rmh.grub@aybabtu.com>
13463
13464 * util/misc.c (make_system_path_relative_to_its_root): Work around
13465 special-casing of "/", as previous incarnation of this routine did.
13466
cbca0ada
VS
134672010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
13468
13469 Fix any-emu compilation.
13470
13471 * conf/any-emu.rmk (bin_UTILITIES): Add grub-bin2h.
13472 * grub_bin2h_SOURCES: New variable.
13473
34a66d99
RM
134742010-01-20 Robert Millan <rmh.grub@aybabtu.com>
13475
13476 * util/grub.d/00_header.in: Fix stupid mistake from last commit.
13477
94fabf58
RM
134782010-01-20 Robert Millan <rmh.grub@aybabtu.com>
13479
13480 * util/grub.d/00_header.in: Fix handling of locale_dir.
13481
02cf98ca
VS
134822010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
13483
13484 * configure.ac: Add /usr/share/fonts/unifont/unifont.pcf.gz
13485 as possible unifont location (Gentoo).
13486 Reported by: Alexander Brüning
13487
327dbcd7
VS
134882010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
13489
13490 Don't try to generate lists for kernel.img.
13491
13492 * conf/i386-efi.rmk (pkglib_PROGRAMS): New variable.
13493 (pkglib_MODULES): Remove kernel.img.
13494 (kernel_img_EXPORTS): Removed.
13495 (kernel_img_RELOCATABLE): New variable.
13496 * conf/x86_64-efi.rmk: Likewise.
13497 * genmk.rb: Remove *_EXPORTS support and add *_RELOCATABLE support.
13498
ca467290
VS
134992010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
13500
13501 * include/grub/misc.h (grub_sprintf): Removed. All users switched to
13502 grub_xasprintf or grub_snprintf.
13503 (grub_vsprintf): Likewise.
13504 (grub_snprintf): New proto.
13505 (grub_vsnprintf): Likewise.
13506 (grub_xasprintf): Likewise.
13507 (grub_xvasprintf): Likewise.
13508 * kern/misc.c (grub_vprintf): Use grub_vsnprintf_real.
13509 (grub_sprintf): Removed.
13510 (grub_vsnprintf): New function.
13511 (grub_snprintf): Likewise.
13512 (grub_xvasprintf): Likewise.
13513 (grub_xasprintf): Likewise.
13514 (grub_vsprintf): Renamed to ...
13515 (grub_vsnprintf_real): ...this. New argument max_len.
13516
aca655fd
BC
135172010-01-20 BVK Chaitanya <bvk.groups@gmail.com>
13518
13519 * include/grub/script_sh.h (sourcecode): Remove const qualifier to
13520 fix grub-script-check warning.
13521
7ee92c32
VS
135222010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
13523
13524 * include/grub/font.h (grub_font_load): Fix prototype.
13525
f80927ca
VS
135262010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
13527
13528 * conf/mips.rmk (kernel_img_HEADERS) [yeeloong]: Add pci.h.
13529
119c50ea
VS
135302010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
13531
13532 * include/grub/x86_64/at_keyboard.h: New file.
13533
47d5f3c1
VS
135342010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
13535
13536 * loader/mips/linux.c: Include missing grub/i18n.h.
13537
55ff5266
RM
135382009-12-20 Robert Millan <rmh.grub@aybabtu.com>
13539
13540 * normal/menu.c (notify_execution_failure): Clarify error message.
13541
c893cc87
RM
135422009-12-20 Robert Millan <rmh.grub@aybabtu.com>
13543
13544 * commands/loadenv.c (check_blocklists): Use `grub_err_t' as
13545 return value (and revert all return statements). Update users.
13546
917dd370
CW
135472010-01-20 Dan Merillat <debian@dan.merillat.org>
13548
13549 * kern/device.c (grub_device_iterate): Allocate new part_ent
13550 structure based on sizeof (*p) rather than sizeof (p->next), to
13551 account for structure padding.
13552
13553 * util/grub-probe.c (probe_raid_level): Return -1 immediately if
13554 disk is NULL, which might happen for LVM physical volumes with no
13555 LVM signature.
13556
d4a4ee57
RM
135572009-12-20 Robert Millan <rmh.grub@aybabtu.com>
13558
13559 * loader/mips/linux.c (grub_cmd_initrd)
13560 (GRUB_MOD_INIT(linux)): Adjust and gettextize a few strings.
13561
135622009-12-20 Robert Millan <rmh.grub@aybabtu.com>
13563
13564 * kern/mips/yeeloong/init.c (grub_video_sm712_init)
13565 (grub_video_video_init, grub_video_bitmap_init)
13566 (grub_font_manager_init, grub_term_gfxterm_init)
13567 (grub_at_keyboard_init): New extern declarations.
13568 (grub_machine_init): Initialize gfxterm and at_keyboard.
13569
13570 * kern/main.c (grub_main): Revert grub_printf delay kludge.
13571
13572 * util/grub-install.in: Revert embed of `at_keyboard.mod' and
13573 `gfxterm.mod' into core image.
13574
13575 * conf/mips.rmk (pkglib_IMAGES, kernel_img_SOURCES)
13576 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
13577 (kernel_img_FORMAT): Copy to ...
13578
13579 * conf/mips-qemu-mips.rmk (pkglib_IMAGES, kernel_img_SOURCES)
13580 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
13581 (kernel_img_FORMAT): ... here, and ...
13582
13583 * conf/mips-yeeloong.rmk (pkglib_IMAGES, kernel_img_SOURCES)
13584 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
13585 (kernel_img_FORMAT): ... here.
13586
13587 (kernel_img_SOURCES): Add files necessary for output (gfxterm)
13588 and input (at_keyboard) terminals in kernel.
13589 (kernel_img_CFLAGS): Add `-DUSE_ASCII_FAILBACK'.
13590
13591 (pkglib_MODULES): Remove `pci.mod'.
13592 (pci_mod_SOURCES, pci_mod_CFLAGS, pci_mod_LDFLAGS)
13593 (sm712_mod_SOURCES, sm712_mod_CFLAGS, sm712_mod_LDFLAGS)
13594 (at_keyboard_mod_SOURCES, at_keyboard_mod_CFLAGS)
13595 (at_keyboard_mod_LDFLAGS): Remove variables.
13596
135972010-01-11 Felix Zielcke <fzielcke@z-51.de>
13598
13599 * po/POTFILES: Replace `term/i386/pc/serial.c' with `term/serial.c'.
13600
136012009-12-10 Robert Millan <rmh.grub@aybabtu.com>
13602
13603 * include/grub/mips/libgcc.h: Only export symbols for functions
13604 that libgcc provides.
13605
136062009-12-02 Vladimir Serbinenko <phcoder@gmail.com>
13607
13608 MIPS support.
13609
13610 * bus/bonito.c: New file.
13611 * bus/pci.c (grub_pci_iterate): Use GRUB_PCI_NUM_BUS and
13612 GRUB_PCI_NUM_DEVICES.
13613 * term/i386/pc/serial.c: Move to ...
13614 * term/serial.c: ... here. All users updated.
13615 * util/i386/pc/grub-mkimage.c: Move to ...
13616 * util/grub-mkrawimage.c: ... here. All users updated.
13617 * term/i386/pc/at_keyboard.c: Move to ...
13618 * term/at_keyboard.c: ... here. All users updated.
13619 * conf/mips-qemu-mips.rmk: New file.
13620 * conf/mips-yeeloong.rmk: Likewise.
13621 * conf/mips.rmk: Likewise.
13622 * configure.ac: New platforms mipsel-yeeloong, mips-qemu-mips and
13623 mipsel-qemu-mips.
13624 * disk/ata.c (grub_ata_device_initialize): Add GRUB_MACHINE_PCI_IO_BASE
13625 to port addresses.
13626 (grub_ata_pciinit): Support CS5536.
13627 * font/font.c (grub_font_load): Use grub_file_t instead of filename.
13628 * font/font_cmd.c (loadfont_command): Open file before passing it to
13629 grub_font_load.
13630 (pseudo_file_read): New function.
13631 (pseudo_file_close): Likewise.
13632 (pseudo_fs): New structure.
13633 (load_font_module): New function.
13634 (GRUB_MOD_INIT(font_manager)): Load embedded font.
13635 * fs/cpio.c (grub_cpio_open): Handle partial matches correctly.
13636 * genmk.rb: Strip .rel.dyn, .reginfo, .note and .comment.
13637 * genmoddep.awk: Ignore __gnu_local_gp. It's defined by linker.
13638 * include/grub/i386/at_keyboard.h: Split into ...
13639 * include/grub/at_keyboard.h: ... this ...
13640 * include/grub/i386/at_keyboard.h: ... and this.
13641 * include/grub/dl.h (grub_arch_dl_init_linker) [_mips && !GRUB_UTIL]:
13642 New prototype.
13643 * include/grub/elfload.h (grub_elf32_size): New parameter. All users
13644 updated.
13645 (grub_elf64_size): Likewise.
13646 * include/grub/font.h (grub_font_load): Use grub_file_t instead of
13647 filename.
13648 * include/grub/i386/io.h (grub_port_t): New type. All users updated.
13649 * include/grub/i386/coreboot/serial.h: Rewritten.
13650 * include/grub/i386/ieee1275/serial.h: Include
13651 grub/i386/coreboot/serial.h instead of grub/i386/pc/serial.h.
13652 * include/grub/i386/pc/serial.h: Moved from here ...
13653 * include/grub/serial.h: ... to here. All users updated.
13654 * include/grub/i386/pci.h (GRUB_MACHINE_PCI_IO_BASE): New definition.
13655 (GRUB_PCI_NUM_BUS): Likewise.
13656 (GRUB_PCI_NUM_DEVICES): Likewise.
13657 (grub_pci_device_map_range): Add missing volatile keyword.
13658 * include/grub/kernel.h (OBJ_TYPE_FONT): New enum value.
13659 * include/grub/mips/at_keyboard.h: New file.
13660 * include/grub/mips/cache.h: Likewise.
13661 * include/grub/mips/io.h: Likewise.
13662 * include/grub/mips/kernel.h: Likewise.
13663 * include/grub/mips/libgcc.h: Likewise.
13664 * include/grub/mips/pci.h: Likewise.
13665 * include/grub/mips/qemu-mips/boot.h: Likewise.
13666 * include/grub/mips/qemu-mips/kernel.h: Likewise.
13667 * include/grub/mips/qemu-mips/loader.h: Likewise.
13668 * include/grub/mips/qemu-mips/memory.h: Likewise.
13669 * include/grub/mips/qemu-mips/serial.h: Likewise.
13670 * include/grub/mips/qemu-mips/time.h: Likewise.
13671 * include/grub/mips/relocator.h: Likewise.
13672 * include/grub/mips/time.h: Likewise.
13673 * include/grub/mips/types.h: Likewise.
13674 * include/grub/mips/yeeloong/at_keyboard.h: Likewise.
13675 * include/grub/mips/yeeloong/boot.h: Likewise.
13676 * include/grub/mips/yeeloong/kernel.h: Likewise.
13677 * include/grub/mips/yeeloong/loader.h: Likewise.
13678 * include/grub/mips/yeeloong/memory.h: Likewise.
13679 * include/grub/mips/yeeloong/pci.h: Likewise.
13680 * include/grub/mips/yeeloong/serial.h: Likewise.
13681 * include/grub/mips/yeeloong/time.h: Likewise.
13682 * kern/dl.c (grub_dl_resolve_symbols): Handle STT_OBJECT correctly.
13683 * kern/elf.c (grub_elf32_size): New parameter. All users
13684 updated.
13685 (grub_elf64_size): Likewise.
13686 * kern/main.c (grub_main): Call grub_arch_dl_init_linker if necessary.
13687 Load modules before saying "Welcome to GRUB!".
13688 Call grub_refresh after saying "Welcome to GRUB!".
13689 * kern/mips/cache.S: New file.
13690 * kern/mips/cache_flush.S: Likewise.
13691 * kern/mips/dl.c: Likewise.
13692 * kern/mips/init.c: Likewise.
13693 * kern/mips/qemu-mips/init.c: Likewise.
13694 * kern/mips/startup.S: Likewise.
13695 * kern/mips/yeeloong/init.c: Likewise.
13696 * kern/term.c (grub_putcode): Handle NULL terminal.
13697 (grub_getcharwidth): Likewise.
13698 (grub_getkey): Likewise.
13699 (grub_checkkey): Likewise.
13700 (grub_getkeystatus): Likewise.
13701 (grub_getxy): Likewise.
13702 (grub_getwh): Likewise.
13703 (grub_gotoxy): Likewise.
13704 (grub_cls): Likewise.
13705 (grub_setcolorstate): Likewise.
13706 (grub_setcolor): Likewise.
13707 (grub_getcolor): Likewise.
13708 (grub_refresh): Likewise.
13709 * lib/mips/relocator.c (JUMP_SIZEOF): Fix incorrect value.
13710 (write_jump): Add hatch nop.
13711 * lib/mips/relocator_asm.S: Use kern/mips/cache_flush.S.
13712 * lib/mips/setjmp.S: New file.
13713 * loader/mips/linux.c: Likewise.
13714 * term/i386/pc/at_keyboard.c: Move from here ...
13715 * term/at_keyboard.c: ... to here.
13716 * term/i386/pc/serial.c: Moved from here ...
13717 * term/serial.c: ... to here. All users updated.
13718 (TEXT_HEIGHT): Set to 24 to fit linux terminal.
13719 (serial_hw_io_addr): Use GRUB_MACHINE_SERIAL_PORTS.
13720 (serial_translate_key_sequence): Avoid deadlock.
13721 (grub_serial_getkey): Handle backspace.
13722 (grub_serial_putchar): Fix newline handling.
13723 * util/i386/pc/grub-mkimage.c: Move from here ...
13724 * util/grub-mkrawimage.c: ... to here. All users updated.
13725 (generate_image): New parameters 'font_path' and 'format'.
13726 Support embedding font.
13727 Use grub_host_to_target* instead of grub_cpu_to_le*.
13728 (generate_image) [GRUB_MACHINE_MIPS]: Support ELF encapsulation.
13729 (options) [GRUB_PLATFORM_IMAGE_DEFAULT]: New option "--format".
13730 (options): New option "--font".
13731 (usage): Likewise.
13732 (main) [GRUB_PLATFORM_IMAGE_DEFAULT]: Handle "--format".
13733 (main): Handle "--font".
13734 * term/gfxterm.c (grub_virtual_screen): New member bg_color_display.
13735 (grub_virtual_screen_setup): Set bg_color_display.
13736 (redraw_screen_rect): Use bg_color_display instead of incorrect
13737 bg_color.
13738 (grub_gfxterm_cls): Likewise.
13739 * util/elf/grub-mkimage.c (load_modules): New parameter 'config_path'.
13740 Support embedding config file.
13741 (add_segments): Likewise.
13742 (options): New option "--config".
13743 (main): Handle "--config".
13744 * video/sm712.c: New file.
13745
25c2b5b3
RM
137462010-01-18 Robert Millan <rmh.grub@aybabtu.com>
13747
13748 Fix parallel builds.
13749
13750 * conf/common.rmk (font/font.c_DEPENDENCIES): New variable (makes
13751 font.c depend on ascii.h).
13752
137532010-01-12 Carles Pina i Estany <carles@pina.cat>
13754
13755 * Makefile.in (DUSE_ASCII_FAILBACK): New macro.
13756
137572010-01-11 Carles Pina i Estany <carles@pina.cat>
13758
13759 * font/font.c (GENERATE_ASCII): Change the name to USE_ASCII_FAILBACK.
13760 By default: disabled.
13761 * Makefile.in (ascii.h): Remove the non-needed grub/bin2h size
13762 parameter.
13763
137642010-01-10 Carles Pina i Estany <carles@pina.cat>
13765
13766 * font/font.c: Update copyright years.
13767 * util/grub-mkfont.c (write_font_ascii_bitmap): Change comment format.
13768
137692010-01-10 Carles Pina i Estany <carles@pina.cat>
13770
13771 * font/font.c: Include `ascii.h'.
13772 (ASCII_BITMAP_SIZE): New macro.
13773 (ascii_font_glyph): Define.
13774 (ascii_glyph_lookup): New function.
13775 (grub_font_get_string_width): Change comment. If glyph not found, use
13776 ascii_glyph_lookup.
13777 (grub_font_get_glyph_with_fallback): If glyph not available returns
13778 ascii_glyph_lookup.
13779 * util/grub-mkfont.c (file_formats): New enum.
13780 (options): Add `ascii-bitmaps' new option.
13781 (usage): Add `asii-bitmaps' new option.
13782 (write_font_ascii_bitmap): New function.
13783 (write_font): Rename to ...
13784 (write_font_p2): ... this. Remove print_glyphs call.
13785 (main): Use file_format. Implement code for ranges if ascii-bitmaps is
13786 used. Call print_glyphs.
13787 * Makefile.in (pkgdata_DATA): Add `ascii.h'.
13788
137892010-01-14 Robert Millan <rmh.grub@aybabtu.com>
13790
13791 * conf/common.rmk (bin_UTILITIES): Add `grub-bin2h'.
13792 (grub_bin2h_SOURCES): New variable.
13793 * util/bin2h.c: New file.
13794
915fc1b8
VS
137952010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
13796
13797 * include/multiboot.h: Resynced with spec.
13798 * include/multiboot2.h: Likewise.
13799 * loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap): Handle
13800 GRUB_MACHINE_MEMORY_ACPI_RECLAIMABLE and GRUB_MACHINE_MEMORY_NVS.
13801
9444b678
RM
138022010-01-18 Robert Millan <rmh.grub@aybabtu.com>
13803
13804 * include/grub/term.h (grub_term_register_input,
13805 grub_term_register_output): Check return of terminal init()
13806 routines, and abort if errors are raised.
13807
13808 * commands/terminal.c: Update copyright year.
13809
cba98e8d
RM
138102010-01-18 Robert Millan <rmh.grub@aybabtu.com>
13811
13812 * commands/terminal.c (grub_cmd_terminal_input)
13813 (grub_cmd_terminal_output): Check return of terminal init()
13814 routines, and abort if errors are raised.
13815
6f7db5d6
VS
138162010-01-18 Vladimir Serbinenko <phcoder@gmail.com>
13817
13818 * include/grub/i386/bsd.h: Fix include pathes.
13819
262bff8d
VS
138202010-01-18 Vladimir Serbinenko <phcoder@gmail.com>
13821
13822 Add missing *BSD copyright headers.
13823
13824 * include/grub/aout.h: Add BSD licence.
13825 * include/grub/i386/bsd.h: Parts under different licences moved to ...
13826 * include/grub/i386/freebsd_linker.h: ... here,
13827 * include/grub/i386/freebsd_reboot.h: ... here,
13828 * include/grub/i386/netbsd_bootinfo.h: ... here,
13829 * include/grub/i386/netbsd_reboot.h: ... here,
13830 * include/grub/i386/openbsd_bootarg.h: ... here,
13831 * include/grub/i386/openbsd_reboot.h: ... and here. Added appropriate
13832 licence to each file.
13833
b2cab848
RM
138342010-01-18 Robert Millan <rmh.grub@aybabtu.com>
13835
13836 * acinclude.m4: Remove `nop' assembly instruction; it's not
13837 implemented by all architectures.
13838
2cb6be4b
RM
138392010-01-18 Robert Millan <rmh.grub@aybabtu.com>
13840
13841 * loader/i386/efi/linux.c (grub_cmd_linux): Stop pretending we're
13842 ELILO. This is no longer necessary.
13843
a2eaee15
BC
138442010-01-18 BVK Chaitanya <bvk.groups@gmail.com>
13845
13846 Added new tool, grub-scrit-check to verify grub.cfg syntax.
13847
13848 * util/grub-script-check.c: grub-script-check tool.
13849 * conf/common.rmk: Make rules for grub-script-check.
13850
88d17012
RM
138512010-01-18 Robert Millan <rmh.grub@aybabtu.com>
13852
13853 Fix annoying UI bug in rescue mode. Thanks to Tristan Gingold for
13854 spotting it back in 2008. Shame on me for forgetting he did.
13855
13856 * kern/rescue_reader.c (grub_rescue_run): Skip zero-length lines.
13857
8040619d
RM
138582010-01-18 Robert Millan <rmh.grub@aybabtu.com>
13859
13860 * include/grub/i386/linux.h (GRUB_VIDEO_TYPE_TEXT): Rename to ...
13861 (GRUB_VIDEO_LINUX_TYPE_TEXT): ... this. Update all users.
13862 (GRUB_VIDEO_TYPE_VLFB): Rename to ...
13863 (GRUB_VIDEO_LINUX_TYPE_VESA): ... this. Update all users.
13864 (GRUB_VIDEO_TYPE_EFI): Rename to ...
13865 (GRUB_VIDEO_LINUX_TYPE_SIMPLE): ... this. Update all users.
13866
a0c2a0f6
RM
138672010-01-17 Robert Millan <rmh.grub@aybabtu.com>
13868
13869 * include/grub/test.h: Add license header.
13870 * tests/example_functional_test.c: Likewise.
13871 * tests/example_unit_test.c: Likewise.
13872 * tests/lib/functional_test.c: Likewise.
13873 * tests/lib/test.c: Likewise.
13874 * tests/lib/unit_test.c: Likewise.
13875
b0b13907
VS
138762010-01-17 Vladimir Serbinenko <phcoder@gmail.com>
13877
13878 Use flag-based instead of hook-based video mode selection and "auto"
13879 keyword.
13880
13881 * include/grub/video.h (grub_video_adapter): Changed 'setup' member.
13882 (grub_video_set_mode): Changed prototype. All users updated.
13883 (grub_video_check_mode_flag): New inline function.
13884 * video/video.c (parse_modespec): New function.
13885 (grub_video_set_mode): Parse flags and keywords.
13886
ea379330 138872010-01-17 Carles Pina i Estany <carles@pina.cat>
13888
13889 * util/misc.c (grub_util_info): Fix the order of the parameters in a
13890 fprintf call.
13891
e15c215e
FZ
138922010-01-16 Grégoire Sutre <gregoire.sutre@gmail.com>
13893
13894 * genmk.rb (class SCRIPT): Replace option -i of sed by a pipe.
13895
409ae1c9 138962010-01-16 Carles Pina i Estany <carles@pina.cat>
13897
13898 * util/grub-editenv.c (usage): Use `program_name' instead of hardcoded
13899 string.
13900 * util/grub-emu.c (usage): Likewise.
13901 * util/grub-mkpasswd-pbkdf2.c (usage): Likewise.
13902 * util/i386/efi/grub-mkimage.c (usage): Likewise.
13903 * util/i386/pc/grub-mkimage.c (usage): Likewise.
13904 * util/i386/pc/grub-setup.c (usage): Likewise.
13905
70a14d3d 139062010-01-16 Carles Pina i Estany <carles@pina.cat>
13907
13908 * util/misc.c (grub_util_warn): Gettextizze, print full stop after
13909 the message.
13910 (grub_util_info): Likewise.
13911 (grub_util_error): Likewise.
13912 * util/elf/grub-mkimage.c: Fix capitalisation, quotes, full stops
13913 and/or new lines in `grub_util_warna', `grub_util_info',
13914 `grub_util_error' calls.
13915 * util/getroot.c: Likewise.
13916 * util/grub-editenv.c: Likewise.
13917 * util/grub-emu.c: Likewise.
13918 * util/grub-fstest.c: Likewise.
13919 * util/grub-mkdevicemap.c: Likewise.
13920 * util/grub-mkfont.c: Likewise.
13921 * util/grub-mkpasswd-pbkdf2.c: Likewise.
13922 * util/grub-mkrelpath.c: Likewise.
13923 * util/grub-pe2elf.c: Likewise.
13924 * util/grub-probe.c: Likewise.
13925 * util/hostdisk.c: Likewise.
13926 * util/i386/efi/grub-mkimage.c: Likewise.
13927 * util/i386/pc/grub-mkimage.c: Likewise.
13928 * util/i386/pc/grub-setup.c: Likewise.
13929 * util/ieee1275/ofpath.c: Likewise.
13930 * util/mkisofs/eltorito.c: Likewise.
13931 * util/mkisofs/rock.c: Likewise.
13932 * util/mkisofs/write.c: Likewise.
13933 * util/raid.c: Likewise.
13934 * util/sparc64/ieee1275/grub-mkimage.c: Likewise.
13935 * util/sparc64/ieee1275/grub-setup.c: Likewise.
13936
a0b766fc
VS
139372010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
13938
13939 Enable multiboot on non-pc.
13940
13941 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (pkglib_MODULES): Move
13942 multiboot.mod and multiboot2.mod to ...
13943 * conf/i386.rmk (pkglib_MODULES): ... here.
13944 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_SOURCES):
13945 Moved to ...
13946 * conf/i386.rmk (multiboot_mod_SOURCES): .. here.
13947 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_CFLAGS):
13948 Moved to ...
13949 * conf/i386.rmk (multiboot_mod_CFLAGS): .. here.
13950 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_ASFLAGS):
13951 Moved to ...
13952 * conf/i386.rmk (multiboot_mod_ASFLAGS): .. here.
13953 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_LDFLAGS):
13954 Moved to ...
13955 * conf/i386.rmk (multiboot_mod_LDFLAGS): .. here.
13956 * conf/x86_64-efi.rmk (pkglib_MODULES): Remove ata.mod and
13957 relocator.mod.
13958 (ata_mod_SOURCES): Removed.
13959 (ata_mod_CFLAGS): Likewise.
13960 (ata_mod_LDFLAGS): Likewise.
13961 (relocator_mod_SOURCES): Removed.
13962 (relocator_mod_CFLAGS): Likewise.
13963 (relocator_mod_ASFLAGS): Likewise.
13964 (relocator_mod_LDFLAGS): Likewise.
13965 Include i386.mk.
13966 * include/grub/x86_64/multiboot.h: New file.
13967 * loader/i386/multiboot.c (grub_multiboot_boot) [GRUB_MACHINE_EFI]:
13968 Terminate EFI.
13969
884ade56
VS
139702010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
13971
13972 Video multiboot support.
13973
13974 * include/grub/multiboot.h (grub_multiboot_set_accepts_video):
13975 New prototype.
13976 * include/multiboot.h: Resynced with multiboot specification.
13977 * include/multiboot2.h: Likewise.
13978 * loader/i386/multiboot.c (UNSUPPORTED_FLAGS): Support video flags.
13979 (grub_multiboot): Parse MULTIBOOT_VIDEO_MODE fields.
13980 * loader/i386/multiboot_mbi.c (DEFAULT_VIDEO_MODE): New constant.
13981 (HAS_VGA_TEXT): Likewise.
13982 (accepts_video): New variable.
13983 (grub_multiboot_set_accepts_video): New function.
13984 (grub_multiboot_get_mbi_size): Account for video structures.
13985 (set_video_mode): New function.
13986 (retrieve_video_parameters): Likewise.
13987 (grub_multiboot_make_mbi): Fill video fields.
13988
0d90e8a6
VS
139892010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
13990
13991 Video driver ids.
13992
13993 * include/grub/video.h (grub_video_driver_id): New type.
13994 (grub_video_adapter): New member 'id'. All users updated.
13995 (grub_video_get_driver_id): New proto.
13996 * video/video.c (grub_video_get_driver_id): New function.
13997
5c71db1b 139982010-01-14 Carles Pina i Estany <carles@pina.cat>
13999
14000 * util/grub.d/30_os-prober.in: Use `set var=val' rather than plain
14001 `var=val'.
14002
cca15b52 140032010-01-14 Carles Pina i Estany <carles@pina.cat>
14004
14005 * normal/cmdline.c (print_completion): Gettextizze.
14006
c586fbb2 140072001-01-14 Carles Pina i Estany <carles@pina.cat>
14008
14009 * loader/i386/pc/chainloader.c: Include `<grub/mm.h>'.
14010
ba2f6848 140112010-01-14 Carles Pina i Estany <carles@pina.cat>
14012
14013 * gettext/gettext.c (grub_gettext_translate): Push and pop
14014 grub_errno.
14015 (grub_gettext_delete_list): Change comment style.
14016 * kern/err.c (grub_error): Gettextizze.
14017 (grub_fatal): Gettextizze.
14018
0a46429a
RM
140192010-01-14 Robert Millan <rmh.grub@aybabtu.com>
14020
14021 * include/grub/i386/loader.h (grub_linux16_boot): Renamed to ...
14022 (grub_linux16_real_boot): ... this.
14023 * kern/i386/loader.S: Likewise.
14024 * loader/i386/pc/linux.c: Include `<grub/video.h>' and `<grub/mm.h>'.
14025 (grub_linux16_boot): New function. Switches to text mode and calls
14026 grub_linux16_real_boot().
14027
14028 * loader/i386/bsd.c: Include `<grub/video.h>'.
14029 (grub_freebsd_boot, grub_openbsd_boot, grub_netbsd_boot): Switch to
14030 text mode before calling grub_unix_real_boot().
14031
14032 * loader/i386/multiboot.c: Include `<grub/video.h>'.
14033 (grub_multiboot_boot): Switch to text mode before calling
14034 grub_relocator32_boot().
14035
14036 * loader/i386/pc/chainloader.c: Include `<grub/video.h>'.
14037 (grub_chainloader_boot): Switch to text mode before calling
14038 grub_chainloader_real_boot().
14039
d6f93a66
RM
140402010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
140412010-01-05 Colin Watson <cjwatson@ubuntu.com>
14042
14043 * util/grub-reboot.in: Make sure prev_saved_entry always gets a
14044 non-empty value.
14045
140462010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
140472010-01-05 Colin Watson <cjwatson@ubuntu.com>
14048
14049 * util/grub.d/00_header.in: Define a "savedefault" function for use
14050 in menu entries.
14051 * util/grub-mkconfig_lib.in (save_default_entry): Use it.
14052
140532010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
140542010-01-05 Colin Watson <cjwatson@ubuntu.com>
14055
14056 * util/grub-mkconfig_lib.in (save_default_entry): Only set
14057 saved_entry if boot_once is unset.
14058 * util/grub.d/00_header.in: Set boot_once to "true" if there was a
14059 previous saved entry (i.e. grub-reboot).
14060
140612009-12-08 Colin Watson <cjwatson@ubuntu.com>
14062
14063 * util/grub.d/30_os-prober.in: Call save_default_entry for hurd.
14064
140652009-12-08 Colin Watson <cjwatson@ubuntu.com>
14066
14067 * util/grub.d/00_header.in: Use `set var=val' rather than plain
14068 `var=val'.
14069 * util/grub-mkconfig_lib.in (save_default_entry): Likewise.
14070
140712009-12-08 Colin Watson <cjwatson@ubuntu.com>
14072
14073 * util/grub-reboot.in: Fix --version output.
14074 * util/grub-set-default.in: Likewise.
14075
140762009-12-08 Colin Watson <cjwatson@ubuntu.com>
14077
14078 * util/grub.d/00_header.in: Silently ignore zero-sized environment
14079 blocks.
14080
140812009-12-08 Colin Watson <cjwatson@ubuntu.com>
14082
14083 * util/grub.d/00_header.in: Quote the value assigned to `default',
14084 in case it contains spaces.
14085
140862009-12-08 Colin Watson <cjwatson@ubuntu.com>
14087
14088 * util/grub.d/30_os-prober.in: Fix merge error that moved a
14089 `save_default_entry' call from the macosx case to the linux case.
14090
140912009-10-25 Vladimir Serbinenko <phcoder@gmail.com>
140922009-10-25 Colin Watson <cjwatson@ubuntu.com>
14093
14094 * normal/menu.c (grub_menu_execute_entry): Save selected entry title
14095 in `chosen' environment variable.
14096 * normal/menu_text.c (get_entry_number): Check if the variable
14097 matches the title of a menu entry.
14098 (run_menu): Pass menu to get_entry_number.
14099
14100 * util/grub-reboot.in: New file.
14101 * util/grub-set-default.in: New file.
14102 * conf/common.rmk (grub-reboot): New utility.
14103 (grub-set-default): New utility.
14104
14105 * util/grub-mkconfig_lib.in (save_default_entry): New function.
14106 * util/grub.d/00_header.in: If GRUB_DEFAULT is `saved', set
14107 default to `${saved_entry}'. If `${prev_saved_entry}' is non-empty,
14108 move it to `saved_entry' for the next boot. Load environment on
14109 initialisation.
14110 * util/grub.d/10_kfreebsd.in: Call save_default_entry.
14111 * util/grub.d/10_hurd.in: Likewise.
14112 * util/grub.d/10_linux.in (linux_entry): Likewise.
14113 * util/grub.d/10_windows.in: Likewise.
14114 * util/grub.d/30_os-prober.in: Likewise.
14115
14116 * util/grub-install.in: Create environment block.
14117 * util/i386/efi/grub-install.in: Likewise.
14118 * util/ieee1275/grub-install.in: Likewise.
14119 * util/sparc64/ieee1275/grub-install.in: Likewise.
14120
0934d184
BC
141212010-01-14 BVK Chaitanya <bvk.groups@gmail.com>
14122
14123 Unit testing framework for GRUB.
14124
14125 * Makefile.in: Test framework build rules for 'make check'.
14126 * conf/tests.rmk: Build rules for individual tests and framework.
14127
14128 * include/grub/test.h: Header file for whitebox tests.
14129 * tests/lib/functional_test.c: Framework support for whitebox
14130 functional tests.
14131 * tests/lib/test.c: Common whitebox testing code for unit and
14132 functional tests.
14133 * tests/lib/unit_test.c: Framework support for whitebox unit
14134 tests.
14135
14136 * tests/util/grub-shell-tester.in: Support utility for grub-script
14137 tests.
14138 * tests/util/grub-shell.in: Utility to execute grub-script
14139 commands in a Qemu instance.
14140
14141 * tests/example_functional_test.c: Example whitebox functional
14142 test.
14143 * tests/example_grub_script_test.in: Example grub-script test.
14144 * tests/example_scripted_test.in: Example scripted test.
14145 * tests/example_unit_test.c: Example whitebox unit test.
14146
9c4ffeeb
VS
141472010-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14148
14149 * conf/i386-coreboot.rmk (multiboot_mod_SOURCES):
14150 Add loader/i386/multiboot_mbi.c.
14151 (multiboot2_mod_SOURCES): Likewise.
14152 * conf/i386-pc.rmk (multiboot_mod_SOURCES): Likewise.
14153 (multiboot2_mod_SOURCES): Likewise.
14154 * include/grub/multiboot.h (grub_multiboot_get_mbi_size): New proto.
14155 (grub_multiboot_make_mbi): Likewise.
14156 (grub_multiboot_free_mbi): Likewise.
14157 (grub_multiboot_init_mbi): Likewise.
14158 (grub_multiboot_add_module): Likewise.
14159 (grub_multiboot_set_bootdev): Likewise.
14160 * loader/i386/multiboot.c (mbi): Removed.
14161 (mbi_dest): Likewise.
14162 (alloc_mbi): New variable.
14163 (grub_multiboot_payload_size): Removed. All users updated.
14164 (grub_multiboot_pure_size): New variable.
14165 (grub_multiboot_boot): Use grub_multiboot_make_mbi.
14166 (grub_multiboot_unload): Use grub_multiboot_free_mbi.
14167 (grub_get_multiboot_mmap_len): Moved to loader/i386/multiboot_mbi.c.
14168 (grub_fill_multiboot_mmap): Likewise.
14169 (grub_multiboot_get_bootdev): Likewise.
14170 (grub_multiboot): Use multiboot_mbi functions.
14171 * loader/i386/multiboot_mbi.c: New file.
14172
17383dfe
VS
141732010-01-13 Vladimir Serbinenko <phcoder@gmail.com>
14174
14175 * kern/efi/init.c (grub_efi_fini): Don't call grub_efi_mm_fini as
14176 it would result in module crash.
14177
c1f28820
VS
141782010-01-13 Vladimir Serbinenko <phcoder@gmail.com>
14179
14180 * term/ieee1275/ofconsole.c (grub_ofconsole_putchar): Handle '\r'.
14181 (grub_ofconsole_getwh): Split to ...
14182 (grub_ofconsole_getwh): ... this.
14183 (grub_ofconsole_dimensions): ...and this.
14184 (grub_ofconsole_init_output): Call grub_ofconsole_dimensions.
14185
58655a16
RM
141862010-01-13 Robert Millan <rmh.grub@aybabtu.com>
14187
14188 * util/mkisofs/rock.c (generate_rock_ridge_attributes): Fix a typo.
14189
10891398
VS
141902010-01-12 Vladimir Serbinenko <phcoder@gmail.com>
14191
14192 * loader/i386/pc/multiboot2.c: Removed stalled file.
14193
0b8a223c
VS
141942010-01-12 Vladimir Serbinenko <phcoder@gmail.com>
14195
14196 * util/grub-mkpasswd-pbkdf2.c (main): Use grub_util_init_nls.
14197 Reported by: Grégoire Sutre
14198
92ab12b0
RM
141992010-01-11 Robert Millan <rmh.grub@aybabtu.com>
14200
14201 * util/misc.c (canonicalize_file_name): New function.
14202 (make_system_path_relative_to_its_root): Use canonicalize_file_name()
14203 instead of realpath().
14204
a788afb6
CW
142052010-01-11 Colin Watson <cjwatson@ubuntu.com>
14206
14207 * util/grub-install.in (usage): Clarify meaning of --root-directory,
14208 and make it clearer that it's optional. Based on confusion
14209 witnessed on IRC.
14210
ffa8e3d2
VS
142112010-01-10 Vladimir Serbinenko <phcoder@gmail.com>
14212
14213 * term/i386/pc/vga_text.c (inc_y): Fix off-by-one error which resulted
14214 in premature implicit newline.
14215
e9060a9d
VS
142162010-01-10 Vladimir Serbinenko <phcoder@gmail.com>
14217
14218 * normal/cmdline.c (grub_cmdline_get): Fix off-by-one error
14219 which resulted in garbled command line at the end of screen.
14220
f0d0c0b7
RM
142212010-01-10 Robert Millan <rmh.grub@aybabtu.com>
14222
14223 * loader/i386/ieee1275/linux.c (grub_linux_boot): Rework video position
14224 initialization with similar approach as with other Linux loaders.
14225
0e60bae7
RM
142262010-01-10 Robert Millan <rmh.grub@aybabtu.com>
14227
14228 Fix i386-ieee1275 build.
14229
14230 * loader/i386/ieee1275/linux.c (grub_linux_boot): Use grub_term_width()
14231 and grub_term_height() for video_{width,height} initialization.
14232
142332010-01-10 Robert Millan <rmh.grub@aybabtu.com>
cdec4d31
RM
14234
14235 Fix grub-emu build.
14236
14237 * conf/any-emu.rmk (grub_emu_SOURCES): Remove `kern/reader.c'.
14238
cdb3f378
RM
142392010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
142402010-01-09 Robert Millan <rmh.grub@aybabtu.com>
14241
14242 Support for multiple terminals.
14243
14244 * Makefile.in (pkglib_DATA): terminal.lst.
14245 (terminal.lst): New target.
14246 * commands/handler.c (grub_cmd_handler): Don't handle terminals.
14247 (GRUB_MOD_INIT(handler)): Likewise.
14248 (GRUB_MOD_FINI(handler)): Likewise.
14249 * commands/help.c (grub_cmd_help): Handle multiple terminals.
14250 * commands/keystatus.c (grub_cmd_keystatus): Likewise.
14251 * commands/sleep.c (do_print): Use grub_term_restore_pos.
14252 (grub_cmd_sleep): Use grub_term_save_pos.
14253 * commands/terminal.c: New file.
14254 * conf/any-emu.rmk (grub_emu_SOURCES): Add normal/term.c
14255 commands/terminal.c and lib/charset.c.
14256 * conf/common.rmk (normal_mod_SOURCES): Add normal/term.c.
14257 (pkglib_MODULES): Add terminal.mod.
14258 (terminal_mod_SOURCES): New variable.
14259 (terminal_mod_CFLAGS): Likewise.
14260 (terminal_mod_LDFLAGS): Likewise.
14261 * genhandlerlist.sh: Don't handle terminals.
14262 * genmk.rb: Generate terminal-*.lst.
14263 * genterminallist.sh: New file.
14264 * include/grub/charset.h (grub_ucs4_to_utf8_alloc): New proto.
14265 (grub_is_valid_utf8): Likewise.
14266 (grub_utf8_to_ucs4_alloc): Likewise.
14267 * include/grub/menu_viewer.h (grub_menu_viewer): Rewritten.
14268 (grub_menu_register_viewer): Changed argument.
14269 (grub_menu_try_text): New proto.
14270 (grub_gfxmenu_try_hook): New declaration.
14271 * include/grub/normal.h (grub_normal_exit_level): New declaration.
14272 (grub_menu_init_page): Additional argument term.
14273 (grub_normal_init_page): Likewise.
14274 (grub_cmdline_get): Arguments simplified.
14275 (grub_utf8_to_ucs4_alloc): Removed.
14276 (grub_print_ucs4): Additional argument term.
14277 (grub_getstringwidth): Likewise.
14278 (grub_print_message_indented): Likewise.
14279 (grub_menu_text_register_instances): New proto.
14280 (grub_show_menu): Likewise.
14281 (read_terminal_list): Likewise.
14282 (grub_set_more): Likewise.
14283 * include/grub/parser.h: Include handler.h.
14284 * include/grub/reader.h: Rewritten.
14285 * include/grub/term.h (GRUB_TERM_NEED_INIT): Removed.
14286 (GRUB_TERM_WIDTH): Changed to function.
14287 (GRUB_TERM_HEIGHT): Likewise.
14288 (GRUB_TERM_BORDER_WIDTH): Likewise.
14289 (GRUB_TERM_BORDER_HEIGHT): Likewise.
14290 (GRUB_TERM_NUM_ENTRIES): Likewise.
14291 (GRUB_TERM_ENTRY_WIDTH): Likewise.
14292 (GRUB_TERM_CURSOR_X): Likewise.
14293 (grub_term_input_class): Likewise.
14294 (grub_term_output_class): Likewise.
14295 (grub_term_outputs_disabled): New declaration.
14296 (grub_term_inputs_disabled): Likewise.
14297 (grub_term_outputs): Likewise.
14298 (grub_term_inputs): Likewise.
14299 (grub_term_register_input): Rewritten.
14300 (grub_term_register_output): Likewise.
14301 (grub_term_unregister_input): Likewise.
14302 (grub_term_unregister_output): Likewise.
14303 (FOR_ACTIVE_TERM_INPUTS): New macro.
14304 (FOR_DISABLED_TERM_INPUTS): Likewise.
14305 (FOR_ACTIVE_TERM_OUTPUTS): Likewise.
14306 (FOR_DISABLED_TERM_OUTPUTS): Likewise.
14307 * include/grub/terminfo.h: Add oterm argument to all protypes.
14308 * kern/main.c (grub_main): Don't call grub_register_rescue_reader.
14309 Use grub_rescue_run.
14310 * kern/misc.c (grub_utf8_to_ucs4): Put '?' for invalid characters.
14311 All users updated.
14312 * kern/reader.c: Removed. All users updated.
14313 * kern/rescue_reader.c (grub_rescue_init): Removed.
14314 (grub_rescue_reader): Likewise.
14315 (grub_register_rescue_reader): Likewise.
14316 (grub_rescue_run): New function based on kern/reader.c.
14317 * kern/term.c: Adapted for multiterm.
14318 * lib/charset.c (grub_ucs4_to_utf8_alloc): New function.
14319 (grub_is_valid_utf8): Likewise.
14320 (grub_utf8_to_ucs4_alloc): Moved from normal/menu_text.c.
14321 * loader/i386/efi/linux.c (grub_cmd_linux): Retrieve parameters of
14322 right terminal.
14323 * loader/i386/linux.c (grub_linux_boot): Likewise.
14324 * normal/auth.c (grub_username_get): New function.
14325 (grub_auth_check_authentication): Use grub_username_get.
14326 * normal/cmdline.c: Changed to UCS4. Adapted for multiterm.
14327 * normal/color.c: Adapt for multiterm.
14328 * normal/main.c (read_config_file): Don't use grub_reader_loop.
14329 (grub_normal_init_page): Additional argument term.
14330 (read_lists): Call read_terminal_lists.
14331 (grub_enter_normal_mode): Call grub_cmdline_run.
14332 Handle grub_normal_exit_level.
14333 (grub_cmd_normal): Make reentrant.
14334 (grub_cmd_normal_exit): New function.
14335 (grub_normal_reader_init): Additional argument nested. Handle multiterm.
14336 * normal/menu.c: Adapt for multiterm.
14337 * normal/menu_entry.c: Likewise.
14338 * normal/menu_text.c: Likewise.
14339 * normal/menu_viewer.c: Removed. All users updated.
14340 * normal/term.c: New file.
14341 * util/console.c: Change order of includes to workaround a bug in
14342 ncurses headers.
14343 * term/terminfo.c: New argument oterm on all exported functions.
14344 All users updated.
14345 * util/grub-editenv.c (grub_term_input_class): Removed.
14346 (grub_term_output_class): Likewise.
14347
1a064917
RM
143482010-01-09 Robert Millan <rmh.grub@aybabtu.com>
14349
14350 Make loader output a bit more user-friendly.
14351
14352 * util/grub.d/10_hurd.in: Print message indicating that GNU Mach
14353 is being loaded. Likewise for the Hurd.
14354
14355 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Print message indicating
14356 that kernel of FreeBSD ${version} is being loaded.
14357
14358 * loader/i386/linux.c (grub_cmd_linux): Move debug info to
14359 grub_dprintf().
14360 (grub_cmd_initrd): Likewise.
14361 * util/grub.d/10_linux.in (linux_entry): Print message indicating
14362 that Linux ${version} is being loaded. Likewise for initrd.
14363
5ce0a83a 143642010-01-09 Carles Pina i Estany <carles@pina.cat>
14365
14366 * gettext/gettext.c (GRUB_MOD_INIT): Gettextizze.
14367
809bbfeb 143682010-01-08 Carles Pina i Estany <carles@pina.cat>
14369
14370 * loader/efi/appleloader.c: Include `<grub/i18n.h>'.
14371 (GRUB_MOD_INIT): Gettextizze.
14372 * loader/efi/chainloader.c: Include `<grub/i18n.h>'.
14373 (GRUB_MOD_INIT): Gettextizze.
14374 * loader/i386/efi/linux.c: Include `<grub/i18n.h>'.
14375 (grub_cmd_linux): Capitalise Linux.
14376 (GRUB_MOD_INIT): Gettextizze.
14377 * loader/i386/ieee1275/linux.c: Include `<grub/i18n.h>'.
14378 (grub_cmd_linux): Capitalise Linux.
14379 (GRUB_MOD_INIT): Gettextizze.
14380 * loader/i386/linux.c: Include `<grub/i18n.h>'.
14381 (grub_cmd_linux): Capitalise Linux.
14382 (GRUB_MOD_INIT): Gettextizze.
14383 * loader/i386/pc/chainloader.c: Include `<grub/i18n.h>'.
14384 (GRUB_MOD_INIT): Gettextizze.
14385 * loader/i386/pc/linux.c: Include `<grub/i18n.h>'.
14386 (grub_cmd_linux): Capitalise Linux.
14387 (GRUB_MOD_INIT): Gettextizze.
14388 * loader/i386/xnu.c: Include `<grub/i18n.h>'.
14389 (grub_cpu_xnu_init): Gettextizze.
14390 * loader/multiboot_loader.c: Include `<grub/i18n.h>'.
14391 (GRUB_MOD_INIT): Gettextizze.
14392 * loader/powerpc/ieee1275/linux.c: Include `<grub/i18n.h>'.
14393 (GRUB_MOD_INIT): Gettextizze.
14394 * loader/sparc64/ieee1275/linux.c: Include `<grub/i18n.h>'.
14395 (grub_linux_load64): Capitalise Linux.
14396 (GRUB_MOD_INIT): Gettextizze.
14397 * loader/xnu.c: Include `<grub/i18n.h>'.
14398 (GRUB_MOD_INIT): Gettextizze.
14399 * po/POTFILES: Add `loader/efi/appleloader.c',
14400 `loader/efi/chainloader.c', `loader/i386/efi/linux.c',
14401 `loader/i386/ieee1275/linux.c', `loader/i386/linux.c',
14402 `loader/i386/pc/chainloader.c', `loader/i386/pc/linux.c',
14403 `loader/i386/xnu.c', `loader/multiboot_loader.c',
14404 `loader/powerpc/ieee1275/linux.c', `loader/sparc64/ieee1275/linux.c'
14405 and `loader/xnu.c'.
14406
b394b2ca
RM
144072010-01-08 Robert Millan <rmh.grub@aybabtu.com>
14408
14409 * src/mkisofs.c: Remove `ifdef linux' portability kludge.
14410
144112010-01-08 Robert Millan <rmh.grub@aybabtu.com>
cd943b75
RM
14412
14413 * util/mkisofs/defaults.h (APPID_DEFAULT): Redefine using PACKAGE_NAME.
14414 (SYSTEM_ID_DEFAULT): Set to "GNU" unconditionally.
14415 * util/mkisofs/mkisofs.c (main): Readjust --version output.
14416
bc8b32b3
RM
144172010-01-07 Robert Millan <rmh.grub@aybabtu.com>
14418
14419 Reset Multiboot 2 support. New loader implements the draft in
14420 /branches/multiboot2 and shares as much code as possible with the
14421 production Multiboot 1 implementation.
14422
14423 * loader/ieee1275/multiboot2.c: Remove file. Update all users.
14424 * loader/multiboot2.c: Likewise.
14425 * loader/i386/multiboot_helper.S: Likewise.
14426 * include/multiboot2.h: Replace with latest version from the draft
14427 in /branches/multiboot2.
14428
14429 * conf/i386-coreboot.rmk (multiboot_mod_SOURCES): Remove
14430 `loader/i386/multiboot_helper.S', `loader/i386/pc/multiboot2.c'
14431 and `loader/multiboot2.c'.
14432 (pkglib_MODULES): Add `multiboot2.mod'.
14433 (multiboot2_mod_SOURCES): New variable.
14434 (multiboot2_mod_LDFLAGS): Likewise.
14435 (multiboot2_mod_CFLAGS): Likewise. Define `GRUB_USE_MULTIBOOT2'.
14436
14437 * conf/i386-pc.rmk: Likewise.
14438
14439 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Remove `multiboot.mod'.
14440 (multiboot_mod_SOURCES): Remove variable.
14441 (multiboot_mod_LDFLAGS): Likewise.
14442 (multiboot_mod_CFLAGS): Likewise.
14443
14444 * include/grub/multiboot.h [GRUB_USE_MULTIBOOT2]: Include
14445 `<multiboot2.h>' instead of `<multiboot.h>'.
14446 [GRUB_USE_MULTIBOOT2] (MULTIBOOT_BOOTLOADER_MAGIC)
14447 (MULTIBOOT_HEADER_MAGIC): New macros.
14448
14449 * loader/multiboot_loader.c (module_version_status): Remove variable.
14450 (find_multi_boot2_header): Remove function.
14451 (grub_cmd_multiboot_loader): Remove Multiboot 2 / Multiboot 1 selection
14452 logic. Always check for the Multiboot version we're compiling for.
14453 (grub_cmd_module_loader): Likewise.
14454 [GRUB_USE_MULTIBOOT2] (GRUB_MOD_INIT(multiboot)): Register `multiboot2'
14455 command instead of `multiboot'.
14456
5d2c52b8
RM
144572010-01-07 Robert Millan <rmh.grub@aybabtu.com>
14458
14459 * include/multiboot.h (MULTIBOOT_UNSUPPORTED): Moved from here ...
14460 * loader/i386/multiboot.c (UNSUPPORTED_FLAGS): ... to here. Update
14461 all users.
14462
53108d92
RM
144632010-01-07 Robert Millan <rmh.grub@aybabtu.com>
144642010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
14465
14466 Fix breakage introduced with previous commit.
14467
14468 * normal/dyncmd.c (read_command_list): Avoid unregistering kernel
14469 commands.
14470 * normal/handler.c (read_handler_list): Revert part of previous commit
14471 affecting this file.
14472 * normal/main.c (read_lists): Move read_handler_list() call back to ...
14473 (grub_normal_execute): ... here.
14474
e2e936b2
RM
144752010-01-07 Robert Millan <rmh.grub@aybabtu.com>
14476
14477 Merge prefix-redefinition-fix branch.
14478
14479 * normal/autofs.c (read_fs_list): Make function capable of being
14480 run multiple times, gracefuly replacing the previous data
14481 structures.
14482 * normal/dyncmd.c (read_command_list): Likewise.
14483 * normal/handler.c (read_handler_list): Likewise.
14484 * normal/main.c (read_lists): New function. Calls all the
14485 list reading functions.
14486 (grub_normal_execute): Use read_lists() instead of calling all
14487 list reading functions explicitly. Register read_lists() as a
14488 variable hook attached to ${prefix}.
14489
607a3701
VS
144902010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
14491
14492 Merge crypto branch.
14493
14494 * Makefile.in (pkglib_DATA): Add crypto.lst.
14495 (crypto.lst): New target.
14496 * commands/hashsum.c: New file.
14497 * commands/password.c (check_password): Use grub_crypto_memcmp.
14498 * commands/password_pbkdf2.c: New file.
14499 * commands/xnu_uuid.c: Remove MD5. Use GRUB_MD_MD5.
14500 * conf/any-emu.rmk (grub_emu_SOURCES): Add lib/crypto.c,
14501 normal/crypto.c and lib/libgcrypt-grub/cipher/md5.c.
14502 (grub_emu_CFLAGS): Add -Wno-missing-field-initializers -Wno-error
14503 -I$(srcdir)/lib/libgcrypt_wrap.
14504 * conf/common.rmk (normal_mod_SOURCES): Add normal/crypto.c.
14505 (pkglib_MODULES): Add crypto.mod, hashsum.mod, pbkdf2.mod and
14506 password_pbkdf2.mod.
14507 (crypto_mod_SOURCES): New variable.
14508 (crypto_mod_CFLAGS): Likewise.
14509 (crypto_mod_LDFLAGS): Likewise.
14510 (hashsum_mod_SOURCES): New variable.
14511 (hashsum_mod_CFLAGS): Likewise.
14512 (hashsum_mod_LDFLAGS): Likewise.
14513 (pbkdf2_mod_SOURCES): New variable.
14514 (pbkdf2_mod_CFLAGS): Likewise.
14515 (pbkdf2_mod_LDFLAGS): Likewise.
14516 (password_pbkdf2_mod_SOURCES): New variable.
14517 (password_pbkdf2_mod_CFLAGS): Likewise.
14518 (password_pbkdf2_mod_LDFLAGS): Likewise.
14519 (bin_UTILITIES): Add grub-mkpasswd-pbkdf2.
14520 (grub_mkpasswd_pbkdf2_SOURCES): New variable.
14521 (grub_mkpasswd_pbkdf2_CFLAGS): Likewise.
14522 Include conf/gcry.rmk.
14523 * include/grub/auth.h: Rewritten.
14524 * include/grub/crypto.h: New file.
14525 * include/grub/disk.h (grub_disk_dev_id): Add GRUB_DISK_DEVICE_LUKS_ID.
14526 * include/grub/normal.h (read_crypto_list): New prototype.
14527 * lib/crypto.c: New file.
14528 * lib/libgcrypt_wrap/cipher_wrap.h: Likewise.
14529 * lib/pbkdf2.c: Likewise.
14530 * normal/auth.c (grub_auth_strcmp): Removed.
14531 (grub_iswordseparator): Likewise.
14532 (grub_auth_strword): Likewise.
14533 (is_authenticated): Use grub_strword.
14534 (grub_auth_check_authentication): Use grub_strcmp, grub_password_get
14535 and grub_strword. Pass entered password to authentication callback.
14536 * normal/crypto.c: New file.
14537 * normal/main.c: Call read_crypto_list.
14538 * util/grub-mkpasswd-pbkdf2.c: New file.
14539 * util/import_gcry.py: Generate crypto.lst. Add hash blocklen.
14540
42841caa
VS
145412010-01-06 Vladimir Serbinenko <phcoder@gmail.com>
14542
14543 Fix descent and ascent calculation.
14544
14545 * util/grub-mkfont.c (grub_font_info): New fields 'asce' and 'max_y'.
14546 (options): New option "asce".
14547 (usage): Likewise.
14548 (add_char): Ignore invalid glyphs for descent calculation.
14549 Calculate ascent from actual content.
14550 (print_glyphs): Use 'asce'.
14551 (write_font): Likewise. Allow ascent override.
14552 (main): Handle "asce" option.
14553
e7730de7 145542010-01-06 Carles Pina i Estany <carles@pina.cat>
14555
14556 * kern/err.c: Include `<grub/i18n.h>'.
14557 (grub_print_error): Add full stop. Gettextizze.
14558 * loader/i386/bsd.c (grub_netbsd_boot): Change grub_error description.
14559 (grub_bsd_load_elf): Capitalise ELF.
14560 (grub_cmd_freebsd_loadenv): Add `s' in error string.
14561 (grub_cmd_freebsd_module): Likewise.
14562 (grub_cmd_freebsd_module_elf): Likewise.
14563 * loader/i386/bsdXX.c (SUFFIX): Capitalise ELF.
14564
40e3a41f 145652010-01-06 Carles Pina i Estany <carles@pina.cat>
14566
14567 * commands/search.c (GRUB_MOD_INIT): Use HELP_MESSAGE.
14568 * commands/search_file.c (HELP_MESSAGE): New macro.
14569 * commands/search_label.c (HELP_MESSAGE): Likewise.
14570 * commands/search_uuid.c (HELP_MESSAGE): Likewise.
14571 * po/POTFILES: Add `commands/search_file.c',
14572 `commands/search_label.c', `commands_uuid.c'. Remove duplicate
14573 `commands/search.c'.
14574
83507e68
RM
145752010-01-05 Robert Millan <rmh.grub@aybabtu.com>
14576
14577 * config.rpath: Update from Gnulib.
14578
465c787b
YB
145792010-01-05 Yves Blusseau <blusseau@zetam.org>
14580
14581 * commands/acpi.c (grub_acpi_create_ebda): fix incorrect message.
14582
6581dd3a
YB
145832010-01-05 Yves Blusseau <yves.blusseau@zetam.org>
14584
14585 * util/sparc64/ieee1275/grub-mkimage.c (main): Typo fix.
14586
3bff18c5
CW
145872010-01-05 Colin Watson <cjwatson@ubuntu.com>
14588
14589 * util/mkisofs/write.c (padblock_write): Switch size and nmemb
14590 arguments to fread so that we get a return value in bytes, rather
14591 than something that will normally be rounded down to 0.
14592 Adjust error handling to avoid producing garbage when size_t is not
14593 the same size as long long.
14594
a1368118
CW
145952010-01-05 Colin Watson <cjwatson@ubuntu.com>
14596
14597 * util/mkisofs/write.c (padblock_write): Check return value of
14598 fread.
14599
7c302978
RM
146002010-01-05 Robert Millan <rmh.grub@aybabtu.com>
14601
14602 Remove grub-mkfloppy. Images produced by grub-mkrescue are valid
14603 floppy images now.
14604
14605 * util/i386/pc/grub-mkfloppy.in: Remove. Update all users.
14606
e33ace06
RM
146072010-01-04 Robert Millan <rmh.grub@aybabtu.com>
14608
14609 * disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Use ALIGN_UP macro
14610 instead of manual alignment.
14611 * kern/disk.c (grub_disk_read): Remove grub_dprintf call (excessively
14612 verbose). Avoid attempts to read past end of the device
14613 (grub_disk_adjust_range() guarantees that we can read `size' bytes,
14614 but GRUB_DISK_CACHE_SIZE may exceed that).
14615
4b856776
RM
146162010-01-04 Robert Millan <rmh.grub@aybabtu.com>
14617
14618 * commands/crc.c (grub_cmd_crc): Abort on read errors.
14619 * fs/iso9660.c (grub_iso9660_read): Check for read error and pass
14620 it to upper layer.
14621
52c2d97f
VS
146222010-01-04 Vladimir Serbinenko <phcoder@gmail.com>
14623
14624 * include/grub/efi/api.h (GRUB_EFI_PIWG_DEVICE_PATH_SUBTYPE):
14625 New constant.
14626 (grub_efi_piwg_device_path): New structure
14627 (grub_efi_piwg_device_path_t): New type.
14628 * loader/efi/appleloader.c (piwg_full_device_path): New structure.
14629 (devpath_1): Transform to a structure. All users updated.
14630 (devpath_2): Likewise.
14631 (devpath_3): Likewise.
14632 (devpath_4): Likewise.
14633 (devpath_5): Likewise.
14634
98ff6a54
VS
146352010-01-04 Vladimir Serbinenko <phcoder@gmail.com>
14636
14637 * loader/efi/appleloader.c: Restored. Update all users.
14638
3a73dcb6
RM
146392010-01-03 Robert Millan <rmh.grub@aybabtu.com>
14640
14641 * boot/i386/pc/diskboot.S: Fix inaccurate comment.
14642
14643 * util/i386/pc/grub-setup.c: Include `<assert.h>'.
14644 (struct boot_blocklist): Move from here ...
14645 * include/grub/i386/pc/boot.h [ASM_FILE]
14646 (struct grub_boot_blocklist): ... to here. Update all users.
14647 (setup): Only initialize `start' member of `first_block'
14648 structure. Add assert() calls to verify the other members.
14649
14650 * util/i386/pc/grub-mkimage.c: Include `<assert.h>'.
14651 (generate_image): Fix broken blocklist length initialization.
14652 Add assert() call to verify blocklist `segment' field.
14653
ab0eeb0c
RM
146542010-01-03 Robert Millan <rmh.grub@aybabtu.com>
14655
14656 * loader/efi/appleloader.c: Remove. Update all users.
14657
58bc8bd5
RM
146582010-01-03 Robert Millan <rmh.grub@aybabtu.com>
14659
14660 * boot/i386/pc/boot.S: Update copyright year.
14661 * boot/i386/pc/cdboot.S: Likewise.
14662 * boot/i386/pc/diskboot.S: Likewise.
14663 * boot/i386/pc/lnxboot.S: Likewise.
14664 * boot/i386/pc/pxeboot.S: Likewise.
14665 * bus/pci.c: Likewise.
14666 * commands/cmp.c: Likewise.
14667 * commands/help.c: Likewise.
14668 * commands/hexdump.c: Likewise.
14669 * commands/i386/pc/halt.c: Likewise.
14670 * commands/i386/pc/play.c: Likewise.
14671 * commands/i386/pc/vbeinfo.c: Likewise.
14672 * commands/ls.c: Likewise.
14673 * commands/test.c: Likewise.
14674 * disk/dmraid_nvidia.c: Likewise.
14675 * disk/i386/pc/biosdisk.c: Likewise.
14676 * disk/ieee1275/nand.c: Likewise.
14677 * disk/ieee1275/ofdisk.c: Likewise.
14678 * disk/lvm.c: Likewise.
14679 * disk/raid.c: Likewise.
14680 * disk/raid6_recover.c: Likewise.
14681 * disk/scsi.c: Likewise.
14682 * fs/affs.c: Likewise.
14683 * fs/cpio.c: Likewise.
14684 * fs/ext2.c: Likewise.
14685 * fs/hfs.c: Likewise.
14686 * fs/iso9660.c: Likewise.
14687 * fs/ntfs.c: Likewise.
14688 * fs/sfs.c: Likewise.
14689 * fs/udf.c: Likewise.
14690 * fs/ufs.c: Likewise.
14691 * fs/xfs.c: Likewise.
14692 * gencmdlist.sh: Likewise.
14693 * genmk.rb: Likewise.
14694 * include/grub/disk.h: Likewise.
14695 * include/grub/efi/api.h: Likewise.
14696 * include/grub/efi/efi.h: Likewise.
14697 * include/grub/efi/pe32.h: Likewise.
14698 * include/grub/elf.h: Likewise.
14699 * include/grub/fs.h: Likewise.
14700 * include/grub/i386/at_keyboard.h: Likewise.
14701 * include/grub/i386/pc/memory.h: Likewise.
14702 * include/grub/i386/pc/vbe.h: Likewise.
14703 * include/grub/i386/pci.h: Likewise.
14704 * include/grub/i386/tsc.h: Likewise.
14705 * include/grub/ieee1275/ieee1275.h: Likewise.
14706 * include/grub/ntfs.h: Likewise.
14707 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
14708 * include/grub/sparc64/libgcc.h: Likewise.
14709 * include/grub/symbol.h: Likewise.
14710 * include/grub/types.h: Likewise.
14711 * include/multiboot2.h: Likewise.
14712 * io/gzio.c: Likewise.
14713 * kern/device.c: Likewise.
14714 * kern/disk.c: Likewise.
14715 * kern/efi/efi.c: Likewise.
14716 * kern/efi/mm.c: Likewise.
14717 * kern/elf.c: Likewise.
14718 * kern/file.c: Likewise.
14719 * kern/i386/dl.c: Likewise.
14720 * kern/i386/pc/init.c: Likewise.
14721 * kern/i386/pc/startup.S: Likewise.
14722 * kern/ieee1275/ieee1275.c: Likewise.
14723 * kern/ieee1275/init.c: Likewise.
14724 * kern/main.c: Likewise.
14725 * kern/mm.c: Likewise.
14726 * kern/powerpc/dl.c: Likewise.
14727 * kern/sparc64/dl.c: Likewise.
14728 * kern/x86_64/dl.c: Likewise.
14729 * lib/hexdump.c: Likewise.
14730 * loader/efi/appleloader.c: Likewise.
14731 * loader/i386/ieee1275/linux.c: Likewise.
14732 * loader/i386/pc/chainloader.c: Likewise.
14733 * loader/i386/pc/linux.c: Likewise.
14734 * loader/i386/pc/multiboot2.c: Likewise.
14735 * loader/ieee1275/multiboot2.c: Likewise.
14736 * loader/multiboot2.c: Likewise.
14737 * loader/multiboot_loader.c: Likewise.
14738 * loader/powerpc/ieee1275/linux.c: Likewise.
14739 * normal/completion.c: Likewise.
14740 * normal/menu_entry.c: Likewise.
14741 * partmap/apple.c: Likewise.
14742 * util/grub.d/10_hurd.in: Likewise.
14743 * util/hostfs.c: Likewise.
14744 * video/readers/png.c: Likewise.
14745
e2d70b5c
CW
147462010-01-03 Colin Watson <cjwatson@ubuntu.com>
14747
14748 * include/grub/misc.h (GNUC_PREREQ): New macro.
14749 (ATTRIBUTE_ERROR): New macro.
14750 * include/grub/list.h (grub_bad_type_cast_real): Use
14751 ATTRIBUTE_ERROR.
14752
a173283f 147532010-01-03 Carles Pina i Estany <carles@pina.cat>
14754
14755 * normal/menu_text.c (print_message): Change messages.
14756
7fa7ff74 147572010-01-03 Carles Pina i Estany <carles@pina.cat>
14758
14759 * normal/menu_entry.c (store_completion): Gettextizze.
14760
136d24f6 147612010-01-03 Carles Pina i Estany <carles@pina.cat>
14762
14763 * kern/env.c (grub_env_unset): Set the variable to "" if has hooks.
14764
f936862e 147652010-01-03 Carles Pina i Estany <carles@pina.cat>
14766
14767 * po/POTFILES: Sort correctly.
14768
29c44ad1 147692010-01-03 Carles Pina i Estany <carles@pina.cat>
14770
14771 * commands/acpi.c (GRUB_MOD_INIT): Capitalise some words from help.
14772 * commands/efi/loadbios.c (GRUB_MOD_INIT): Capitalise BIOS.
14773 * commands/i386/pc/drivemap.c (GRUB_MOD_INIT): Remove space. Add
14774 full stop.
14775 * commands/loadenv.c (GRUB_MOD_INIT): Remove command name from
14776 summary. Gettextizze the strings.
14777 * commands/probe.c (grub_cmd_probe): Capitalise UUID and FS.
14778 * commands/xnu_uuid.c (GRUB_MOD_INIT): Capitalise XNU.
14779 * disk/loopback.c (grub_arg_options): Capitalise first letter. Add
14780 full stop.
14781 (GRUB_MOD_INIT): Remove command name from summary.
14782 * hello/hello.c (GRUD_MOT_INIT): Add missing full stop. Improve the
14783 summary.
14784 * loader/i386/bsd.c (grub_arg_option): Capitalise CDROM.
14785 * term/i386/pc/serial.c (options): Add full stops.
14786 (GRUB_MOD_INIT): Remove command name from the summary.
14787
77a79592 147882010-01-03 Carles Pina i Estany <carles@pina.cat>
14789
14790 * commands/acpi.c: Gettextizze help strings and/or options. Include
14791 `grub/i18n.h' if needed.
14792 * commands/blocklist.c: Likewise.
14793 * commands/boot.c: Likewise.
14794 * commands/cat.c: Likewise.
14795 * commands/cmp.c: Likewise.
14796 * commands/configfile.c: Likewise.
14797 * commands/crc.c: Likewise.
14798 * commands/date.c: Likewise.
14799 * commands/echo.c: Likewise.
14800 * commands/efi/fixvideo.c: Likewise.
14801 * commands/efi/loadbios.c: Likewise.
14802 * commands/gptsync.c: Likewise.
14803 * commands/halt.c: Likewise.
14804 * commands/handler.c: Likewise.
14805 * commands/hdparm.c: Likewise.
14806 * commands/hexdump.c: Likewise.
14807 * commands/i386/cpuid.c: Likewise.
14808 * commands/i386/pc/drivemap.c: Likewise.
14809 * commands/i386/pc/halt.c: Likewise.
14810 * commands/i386/pc/pxecmd.c: Likewise.
14811 * commands/i386/pc/vbeinfo.c: Likewise.
14812 * commands/i386/pc/vbetest.c: Likewise.
14813 * commands/ieee1275/suspend.c: Likewise.
14814 * commands/keystatus.c: Likewise.
14815 * commands/loadenv.c: Likewise.
14816 * commands/ls.c: Likewise.
14817 * commands/lsmmap.c: Likewise.
14818 * commands/lspci.c: Likewise.
14819 * commands/memrw.c: Likewise.
14820 * commands/minicmd.c: Likewise.
14821 * commands/parttool.c: Likewise.
14822 * commands/password.c: Likewise.
14823 * commands/probe.c: Likewise.
14824 * commands/read.c: Likewise.
14825 * commands/reboot.c: Likewise.
14826 * commands/search.c: Likewise.
14827 * commands/sleep.c: Likewise.
14828 * commands/test.c: Likewise.
14829 * commands/true.c: Likewise.
14830 * commands/usbtest.c: Likewise.
14831 * commands/videotest.c: Likewise.
14832 * commands/xnu_uuid.c: Likewise.
14833 * disk/loopback.c: Likewise.
14834 * hello/hello.c: Likewise.
14835 * loader/i386/bsd.c: Likewise.
14836 * term/i386/pc/serial.c: Likewise.
14837 * po/POTFILES: Add new files.
14838
da8d5c53
CW
148392010-01-02 Colin Watson <cjwatson@ubuntu.com>
14840
14841 * term/i386/pc/at_keyboard.c
14842 (keyboard_controller_wait_untill_ready): Rename to ...
14843 (keyboard_controller_wait_until_ready): ... this. Update all users.
14844
33937904 148452010-01-01 Carles Pina i Estany <carles@pina.cat>
14846
14847 * commands/help.c: Include `grub/mm.h' and `grub/normal.h'.
14848 (grub_cmd_help): Print the cmd->name before the cmd->summary. Cut the
14849 string using string width.
14850 * normal/menu_text.c (grub_print_message_indented): Use
14851 grub_print_spaces and not print_spaces.
14852 (print_timeout): Likewise.
14853 (print_spaces): Move to...
14854 * include/grub/term.h: ... here. Change the name to grub_print_spaces.
14855
3fd3b8d8
RM
148562010-01-01 Robert Millan <rmh.grub@aybabtu.com>
14857
14858 Import from Gnulib.
14859
14860 * gnulib/getdelim.c: New file.
14861 * gnulib/getline.c: Likewise.
14862
33433555
VS
148632009-12-31 BVK Chaitanya <bvk.groups@gmail.com>
14864
14865 * include/grub/list.h (grub_assert_fail): Removed.
14866 (grub_bad_type_cast_real): New function.
14867 (grub_bad_type_cast): New macro.
14868 (GRUB_AS_LIST): Use grub_bad_type_cast.
14869 (GRUB_AS_LIST_P): Likewise.
e44721e8 14870 (GRUB_AS_NAMED_LIST): Likewise.
33433555 14871 (GRUB_AS_NAMED_LIST_P): Likewise.
e44721e8 14872 (GRUB_AS_PRIO_LIST): Likewise.
33433555 14873 (GRUB_AS_PRIO_LIST_P): Likewise.
e44721e8 14874 * include/grub/handler.h (GRUB_AS_HANDLER): Likewise.
33433555 14875
f5a51306
VS
148762009-12-29 Vladimir Serbinenko <phcoder@gmail.com>
14877
14878 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT (linux)):
14879 Fix syntax error.
14880
90d1e879
RM
148812009-12-29 Robert Millan <rmh.grub@aybabtu.com>
14882
14883 * configure.ac: Check for TARGET_CFLAGS initialization before we
14884 initialize it ourselves (sigh).
14885 Move a few modifications to TARGET_CFLAGS to be unconditional
14886 (extra warning flags, loop alignment, i386 CPU extensions, GCC 4.4
14887 eh_frame)
14888
14889 * gettext/gettext.c (grub_gettext_delete_list): Add `void' argument.
14890 * term/i386/pc/at_keyboard.c
14891 (keyboard_controller_wait_untill_ready): Likewise.
14892 (keyboard_controller_led): Rename `led_status' paramter to avoid
14893 name conflict.
14894
465b5a81 148952009-12-28 Carles Pina i Estany <carles@pina.cat>
14896
14897 * normal/misc.c (grub_normal_print_device_info): Add spaces and double
14898 quotes.
14899
c181849b
VS
149002009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
14901
14902 * kern/parser.c (grub_parser_split_cmdline): Don't dereference NULL.
14903
9c8739a4
VS
149042009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
14905
14906 * normal/menu_text.c (grub_print_message_indented): Prevent
14907 past-the-end-of-array dereference.
14908
3e74249c
VS
149092009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
14910
14911 * video/readers/jpeg.c (GRUB_MOD_FINI (grub_cmd_jpegtest)): Rename to ..
14912 (GRUB_MOD_FINI (video_reader_jpeg)): ...this
14913
64fd18ed 149142009-12-27 Carles Pina i Estany <carles@pina.cat>
14915
14916 * normal/cmdline.c (grub_cmdline_get): Print a space after prompt.
14917 * normal/main.c (grub_normal_read_line): Remove a space from the
14918 default prompt.
14919
714af9b9 149202009-12-27 Carles Pina i Estany <carles@pina.cat>
14921
14922 * loader/i386/efi/linux.c (GRUB_MOD_INIT): Improve command summary.
14923 * loader/i386/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
14924 * loader/i386/linux.c (GRUB_MOD_INIT): Likewise.
14925 * loader/i386/pc/linux.c (GRUB_MOD_INIT): Likewise.
14926 * loader/powerpc/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
14927 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
14928 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
14929
82f3e412 149302009-12-26 Carles Pina i Estany <carles@pina.cat>
c541b01a 14931
14932 * video/readers/jpeg.c (cmd): Declare.
14933 (grub_cmd_jpegtest): Use `grub_command_t' type.
14934 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
14935 Assign to `cmd'.
14936 (GRUB_MOD_FINI): Use `cmd' to unregister.
14937 * video/readers/png.c (cmd): Declare.
14938 (grub_cmd_pngtest): Use `grub_command_t' type.
14939 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
14940 Assign to `cmd'.
14941 (GRUB_MOD_FINI): Use `cmd' to unregister.
14942 * video/readers/tga.c (cmd): Declare.
14943 (grub_cmd_tgatest): Use `grub_command_t' type.
14944 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
14945 Assign to `cmd'.
14946 (GRUB_MOD_FINI): Use `cmd' to unregister.
14947
82f3e412 149482009-12-26 Carles Pina i Estany <carles@pina.cat>
864ba2bb 14949
14950 * efiemu/main.c (GRUB_MOD_INIT): Fix capitalizations and/or full
14951 stops.
14952 * kern/corecmd.c (grub_register_core_commands): Likewise.
14953 * loader/efi/chainloader.c (GRUB_MOD_INIT): Likewise.
14954 * loader/i386/bsd.c (GRUB_MOD_INIT): Likewise.
14955 * loader/i386/efi/linux.c (GRUB_MOD_INIT): Likewise.
14956 * loader/i386/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
14957 * loader/i386/linux.c (GRUB_MOD_INIT): Likewise.
14958 * loader/i386/pc/chainloader.c (GRUB_MOD_INIT): Likewise.
14959 * loader/i386/pc/linux.c (GRUB_MOD_INIT): Likewise.
14960 * loader/multiboot_loader.c (GRUB_MOD_INIT): Likewise.
14961 * loader/powerpc/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
14962 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
14963 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
14964 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
14965 * normal/handler.c (insert_handler): Likewise.
14966 * normal/main.c (GRUB_MOD_INIT): Likewise.
14967 * term/gfxterm.c (GRUB_MOD_INIT): Likewise.
14968
fdcdbb66 149692009-12-26 Carles Pina i Estany <carles@pina.cat>
14970
14971 * commands/help.c (grub_cmd_help): Print the command name before the
14972 summary.
14973 (GRUB_MOD_INIT): Remove command name from the summary.
14974 * kern/command.c (GRUB_MOD_INIT): If summary is null assign an empty
82f3e412 14975 string as summary.
fdcdbb66 14976 * lib/arg.c (find_long): Print the command name before the summary.
14977 * commands/acpi.c (GRUB_MOD_INIT): Remove command name from the
14978 summary.
14979 * commands/blocklist.c (GRUB_MOD_INIT): Likewise.
14980 * commands/cat.c (GRUB_MOD_INIT): Likewise.
14981 * commands/cmp.c (GRUB_MOD_INIT): Likewise.
14982 * commands/configfile.c (GRUB_MOD_INIT): Likewise.
14983 * commands/crc.c (GRUB_MOD_INIT): Likewise.
14984 * commands/date.c (GRUB_MOD_INIT): Likewise.
14985 * commands/echo.c (GRUB_MOD_INIT): Likewise.
14986 * commands/efi/loadbios.c (GRUB_MOD_INIT): Likewise.
14987 * commands/gptsync.c (GRUB_MOD_INIT): Likewise.
14988 * commands/handler.c (GRUB_MOD_INIT): Likewise.
14989 * commands/hdparm.c (GRUB_MOD_INIT): Likewise.
14990 * commands/hexdump.c (GRUB_MOD_INIT): Likewise.
14991 * commands/i386/cpuid.c (GRUB_MOD_INIT): Likewise.
14992 * commands/i386/pc/halt.c (GRUB_MOD_INIT): Likewise.
14993 * commands/i386/pc/play.c (GRUB_MOD_INIT): Likewise.
14994 * commands/i386/pc/pxecmd.c (GRUB_MOD_INIT): Likewise.
14995 * commands/keystatus.c (GRUB_MOD_INIT): Likewise.
14996 * commands/loadenv.c (GRUB_MOD_INIT): Likewise.
14997 * commands/ls.c (GRUB_MOD_INIT): Likewise.
14998 * commands/lspci.c (GRUB_MOD_INIT): Likewise.
14999 * commands/memrw.c (GRUB_MOD_INIT): Likewise.
15000 * commands/minicmd.c (GRUB_MOD_INIT): Likewise.
15001 * commands/parttool.c (GRUB_MOD_INIT): Likewise.
15002 * commands/password.c (GRUB_MOD_INIT): Likewise.
15003 * commands/probe.c (GRUB_MOD_INIT): Likewise.
15004 * commands/read.c (GRUB_MOD_INIT): Likewise.
15005 * commands/search.c (GRUB_MOD_INIT): Likewise.
15006 * commands/sleep.c (GRUB_MOD_INIT): Likewise.
15007 * commands/test.c (GRUB_MOD_INIT): Likewise.
15008 * commands/xnu_uuid.c (GRUB_MOD_INIT): Likewise.
15009 * efiemu/main.c (GRUB_MOD_INIT): Likewise.
15010 * font/font_cmd.c (GRUB_MOD_INIT): Likewise.
15011 * gettext/gettext.c (GRUB_MOD_INIT): Likewise.
15012 * kern/corecmd.c (GRUB_MOD_INIT): Likewise.
15013 * lib/arg.c (GRUB_MOD_INIT): Likewise.
15014 * loader/efi/appleloader.c (GRUB_MOD_INIT): Likewise.
15015 * loader/i386/bsd.c (GRUB_MOD_INIT): Likewise.
15016 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
15017 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
15018 * term/terminfo.c (GRUB_MOD_INIT): Likewise.
15019 * video/readers/jpeg.c (GRUB_MOD_INIT): Likewise.
15020 * video/readers/png.c (GRUB_MOD_INIT): Likewise.
15021 * video/readers/tga.c (GRUB_MOD_INIT): Likewise.
15022
9c288be2
VS
150232009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15024
15025 Use search command for preliminar UUID search.
15026
15027 * commands/search.c: Split into ...
15028 * commands/search_wrap.c: ...this
15029 * commands/search.c: ...and this.
15030 * commands/search_file.c: New file.
15031 * commands/search_label.c: New file.
15032 * commands/search_uuid.c: New file.
15033 * conf/any-emu.rmk (grub_emu_SOURCES): Remove commands/search.c.
15034 Add commands/search_wrap.c, commands/search_file.c,
15035 commands/search_label.c and commands/search_uuid.c.
15036 * conf/common.rmk (pkglib_MODULES): Remove fs_uuid.mod and fs_file.mod.
15037 (search_mod_SOURCES): Set to commands/search_wrap.c.
15038 (pkglib_MODULES): Add search_fs_file.mod, search_fs_uuid.mod and
15039 search_label.mod.
15040 (search_fs_file_mod_SOURCES): New variable.
15041 (search_fs_file_mod_CFLAGS): Likewise.
15042 (search_fs_file_mod_LDFLAGS): Likewise.
15043 (search_label_mod_SOURCES): Likewise.
15044 (search_label_mod_CFLAGS): Likewise.
15045 (search_label_mod_LDFLAGS): Likewise.
15046 (search_fs_uuid_mod_SOURCES): New variable.
15047 (search_fs_uuid_mod_CFLAGS): Likewise.
15048 (search_fs_uuid_mod_LDFLAGS): Likewise.
15049 (fs_file_mod_SOURCES): Removed.
15050 (fs_file_mod_CFLAGS): Likewise.
15051 (fs_file_mod_LDFLAGS): Likewise.
15052 (fs_uuid_mod_SOURCES): Removed.
15053 (fs_uuid_mod_CFLAGS): Likewise.
15054 (fs_uuid_mod_LDFLAGS): Likewise.
15055 * conf/sparc64-ieee1275.rmk (grub_install_SOURCES):
15056 Set to util/grub-install.in.
15057 * disk/fs_file.c: Removed.
15058 * disk/fs_uuid.c: Likewise.
15059 * include/grub/search.h: New file.
15060 * util/grub-install.in: Handle sparc64.
15061 Create and use load.cfg.
15062 * util/sparc64/ieee1275/grub-install.in: Removed.
15063
db943399
VS
150642009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15065
15066 * kern/i386/pc/startup.S (grub_biosdisk_get_diskinfo_int13_extensions):
15067 Ignore return status if CF is cleared.
15068 (grub_biosdisk_get_diskinfo_standard): Likewise.
15069
3fdae612
RM
150702009-12-25 Robert Millan <rmh.grub@aybabtu.com>
15071
15072 * term/i386/pc/at_keyboard.c
15073 (keyboard_controller_wait_untill_ready): New function.
15074 (grub_keyboard_controller_write, grub_keyboard_controller_read)
15075 (keyboard_controller_led): Use keyboard_controller_wait_untill_ready()
15076 for keyboard polling, rather than duplicate the same loop. This
15077 saves a few bytes in code size.
15078
7ebaa2b4
VS
150792009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15080
15081 Support for (pxe[:server[:gateway]]) syntax and
15082 use environment variable for PXE.
15083
15084 * commands/i386/pc/pxecmd.c (options): Removed.
15085 (print_ip): Removed.
15086 (grub_cmd_pxe): Removed
15087 (grub_cmd_pxe_unload): New function.
15088 * fs/i386/pc/pxe.c (grub_pxe_disk_data): New structure.
15089 (grub_pxe_your_ip): Made static.
15090 (grub_pxe_default_server_ip): Likewise.
15091 (grub_pxe_default_gateway_ip): Likewise.
15092 (grub_pxe_blksize): Likewise.
15093 (parse_ip): New function.
15094 (grub_pxe_open): Support server and gateway specification.
15095 (grub_pxe_close): Free disk->data.
15096 (grub_pxefs_open): Use disk->data.
15097 (grub_pxefs_read): Likewise.
15098 (grub_env_write_readonly): New function.
15099 (set_mac_env): Likewise.
15100 (set_env_limn_ro): Likewise.
15101 (parse_dhcp_vendor): Likewise.
15102 (grub_pxe_detect): Set the environment variables.
15103 (set_ip_env): New function.
15104 (write_ip_env): Likewise.
15105 (grub_env_write_pxe_default_server): Likewise.
15106 (grub_env_write_pxe_default_gateway): Likewise.
15107 (grub_env_write_pxe_blocksize): Likewise.
15108 (GRUB_MOD_INIT(pxe)): Set environment variables.
15109 * include/grub/i386/pc/pxe.h (grub_pxe_mac_addr): Rename to ...
15110 (grub_pxe_mac_addr_t): ... this. All users updated.
15111 (grub_pxe_your_ip): Removed.
15112 (grub_pxe_server_ip): Likewise.
15113 (grub_pxe_gateway_ip): Likewise.
15114 (grub_pxe_blksize): Likewise.
15115
ec5f98ab 151162009-12-25 Carles Pina i Estany <carles@pina.cat>
15117
15118 * commands/help.c: Include `<grub/i18n.h>'.
15119 (grub_cmd_help): Gettextizze.
15120 (GRUB_MOD_INIT): Likewise.
15121 * commands/i386/pc/play.c: Include `<grub/i18n.h>'.
15122 (GRUB_MOD_INIT): Gettextizze.
15123 * commands/search.c: Include `<grub/i18n.h>'.
15124 (options): Gettextizze.
15125 (GRUB_MOD_INIT): Gettextizze.
15126 * lib/arg.c: Include `<grub/i18n.h>'.
15127 (help_options): Gettextizze.
15128 (find_long): Likewise.
15129 (grub_arg_show_help): Likewise.
15130 * normal/dyncmd.c: Include `<grub/i18n.h>'.
15131 (read_command_list): Gettextizze.
15132 * po/POTFILES: Add `commands/i386/pc/play.c', `commands/search.c',
7ebaa2b4 15133 `commands/help.c', `lib/arg.c' and `normal/dyncmd.c'.
ec5f98ab 15134
22815526
RM
151352009-12-25 Robert Millan <rmh.grub@aybabtu.com>
15136
15137 * include/grub/i386/at_keyboard.h (NUM_LOCK, SCROLL_LOCK): New macros.
15138 * term/i386/pc/at_keyboard.c (KEYBOARD_STATUS_NUM_LOCK)
15139 (KEYBOARD_LED_SCROLL, KEYBOARD_LED_NUM, KEYBOARD_LED_CAPS): New macros.
15140 (led_status): New variable.
15141 (keyboard_controller_led): New function.
15142 (grub_at_keyboard_getkey_noblock): Handle num lock and scroll lock,
15143 update led status for caps lock, num lock and scroll lock.
15144
0ad46fd7
FZ
151452009-12-25 Felix Zielcke <fzielcke@z-51.de>
15146
15147 * util/hostdisk.c (open_device): Fix a comment.
15148
d0e158c2
RM
151492009-12-24 Robert Millan <rmh.grub@aybabtu.com>
15150
15151 * util/grub-install.in (host_os): New variable.
15152 * util/i386/efi/grub-install.in (host_os): Likewise.
15153
401c0ad6
RM
151542009-12-24 Robert Millan <rmh.grub@aybabtu.com>
15155
15156 * util/mkisofs/write.c (padblock_write): Abort when given an
15157 excedingly large embed image, instead of silently truncating it.
15158
d14d3370
RM
151592009-12-24 Robert Millan <rmh.grub@aybabtu.com>
15160
15161 * include/multiboot.h: Indentation fixes.
15162
eeed10b4
RM
151632009-12-24 Robert Millan <rmh.grub@aybabtu.com>
15164
15165 * include/multiboot.h (struct multiboot_aout_symbol_table)
15166 (struct multiboot_elf_section_header_table): New structure
15167 declarations (stolen from GRUB Legacy).
15168 (struct multiboot_info): Replace opaque `syms' with a.out and ELF
15169 table information.
15170
15171 (multiboot_aout_symbol_table_t, multiboot_elf_section_header_table_t)
15172 (multiboot_info_t, multiboot_memory_map_t, multiboot_module_t): New
15173 type aliases.
15174
681c70ab
RM
151752009-12-24 Robert Millan <rmh.grub@aybabtu.com>
15176
15177 * include/multiboot.h: Make comments src2texi-friendly.
15178
e4d47d8d
RM
151792009-12-24 Robert Millan <rmh.grub@aybabtu.com>
15180
15181 For consistency with [multiboot]/docs/boot.S.
15182
15183 * include/multiboot.h (MULTIBOOT_MAGIC): Rename from this ...
15184 (MULTIBOOT_HEADER_MAGIC): ... to this. Update all users.
15185 (MULTIBOOT_MAGIC2): Rename from this ...
15186 (MULTIBOOT_BOOTLOADER_MAGIC): ... to this. Update all users.
15187
a0b70bda
RM
151882009-12-24 Robert Millan <rmh.grub@aybabtu.com>
15189
15190 * include/multiboot.h: Remove `<grub/types.h>'.
15191 (multiboot_uint16_t, multiboot_uint32_t, multiboot_uint64_t): New
15192 types. Update all users.
15193
61ba42be 151942009-12-25 Carles Pina i Estany <carles@pina.cat>
15195
15196 * commands/efi/loadbios.c: Capitalize acronyms, replace `could not' by
15197 `couldn't' and `can not' by `cannot'.
15198 * commands/i386/pc/drivemap.c: Likewise.
15199 * disk/ata.c: Likewise.
15200 * disk/ieee1275/nand.c: Likewise.
15201 * fs/affs.c: Likewise.
15202 * fs/fat.c: Likewise.
15203 * fs/hfs.c: Likewise.
15204 * fs/hfsplus.c: Likewise.
15205 * fs/iso9660.c: Likewise.
15206 * fs/jfs.c: Likewise.
15207 * fs/minix.c: Likewise.
15208 * fs/reiserfs.c: Likewise.
15209 * fs/sfs.c: Likewise.
15210 * fs/udf.c: Likewise.
15211 * fs/ufs.c: Likewise.
15212 * fs/xfs.c: Likewise.
15213 * loader/powerpc/ieee1275/linux.c: Likewise.
15214 * loader/sparc64/ieee1275/linux.c: Likewise.
15215 * util/grub-probe.c: Likewise.
15216 * util/misc.c: Likewise.
15217
7fd0baee 152182009-12-24 Carles Pina i Estany <carles@pina.cat>
15219
15220 * bus/usb/usbhub.c: Fix capitalization, fullstop and newlines in
15221 grub_errno calls.
15222 * commands/acpi.c: Likewise.
15223 * commands/blocklist.c: Likewise.
15224 * commands/efi/loadbios.c: Likewise.
15225 * commands/i386/pc/drivemap.c: Likewise.
15226 * commands/loadenv.c: Likewise.
15227 * commands/memrw.c: Likewise.
15228 * commands/password.c: Likewise.
15229 * commands/videotest.c: Likewise.
15230 * disk/ata.c: Likewise.
15231 * disk/ata_pthru.c: Likewise.
15232 * disk/dmraid_nvidia.c: Likewise.
15233 * disk/ieee1275/nand.c: Likewise.
15234 * disk/ieee1275/ofdisk.c: Likewise.
15235 * disk/loopback.c: Likewise.
15236 * disk/lvm.c: Likewise.
15237 * disk/mdraid_linux.c: Likewise.
15238 * disk/raid.c: Likewise.
15239 * disk/raid6_recover.c: Likewise.
15240 * disk/scsi.c: Likewise.
15241 * efiemu/main.c: Likewise.
15242 * efiemu/mm.c: Likewise.
15243 * efiemu/pnvram.c: Likewise.
15244 * efiemu/symbols.c: Likewise.
15245 * font/font.c: Likewise.
15246 * fs/cpio.c: Likewise.
15247 * fs/hfsplus.c: Likewise.
15248 * fs/iso9660.c: Likewise.
15249 * fs/jfs.c: Likewise.
15250 * fs/minix.c: Likewise.
15251 * fs/ntfs.c: Likewise.
15252 * fs/ntfscomp.c: Likewise.
15253 * fs/reiserfs.c: Likewise.
15254 * fs/ufs.c: Likewise.
15255 * fs/xfs.c: Likewise.
15256 * gettext/gettext.c: Likewise.
15257 * include/grub/auth.h: Likewise.
15258 * kern/elf.c: Likewise.
15259 * kern/file.c: Likewise.
15260 * kern/ieee1275/init.c: Likewise.
15261 * kern/ieee1275/mmap.c: Likewise.
15262 * kern/ieee1275/openfw.c: Likewise.
15263 * kern/powerpc/dl.c: Likewise.
15264 * kern/sparc64/dl.c: Likewise.
15265 * lib/arg.c: Likewise.
15266 * loader/i386/bsd.c: Likewise.
15267 * loader/i386/bsdXX.c: Likewise.
15268 * loader/i386/efi/linux.c: Likewise.
15269 * loader/i386/efi/xnu.c: Likewise.
15270 * loader/i386/ieee1275/linux.c: Likewise.
15271 * loader/i386/linux.c: Likewise.
15272 * loader/i386/multiboot.c: Likewise.
15273 * loader/i386/pc/linux.c: Likewise.
15274 * loader/i386/pc/multiboot2.c: Likewise.
15275 * loader/i386/xnu.c: Likewise.
15276 * loader/ieee1275/multiboot2.c: Likewise.
15277 * loader/macho.c: Likewise.
15278 * loader/machoXX.c: Likewise.
15279 * loader/multiboot2.c: Likewise.
15280 * loader/multiboot_loader.c: Likewise.
15281 * loader/powerpc/ieee1275/linux.c: Likewise.
15282 * loader/sparc64/ieee1275/linux.c: Likewise.
15283 * loader/xnu.c: Likewise.
15284 * loader/xnu_resume.c: Likewise.
15285 * mmap/i386/pc/mmap.c: Likewise.
15286 * normal/menu_viewer.c: Likewise.
15287 * partmap/acorn.c: Likewise.
15288 * partmap/amiga.c: Likewise.
15289 * partmap/apple.c: Likewise.
15290 * script/lexer.c: Likewise.
15291 * term/gfxterm.c: Likewise.
15292 * term/i386/pc/serial.c: Likewise.
15293 * term/i386/pc/vga.c: Likewise.
15294 * term/ieee1275/ofconsole.c: Likewise.
15295 * term/terminfo.c: Likewise.
15296 * video/bitmap.c: Likewise.
15297 * video/efi_gop.c: Likewise.
15298 * video/efi_uga.c: Likewise.
15299 * video/fb/video_fb.c: Likewise.
15300 * video/i386/pc/vbe.c: Likewise.
15301 * video/readers/tga.c: Likewise.
15302 * video/video.c: Likewise.
15303
0ad46fd7 153042009-12-23 Felix Zielcke <fzielcke@z-51.de>
a2c1332b
FZ
15305
15306 * commands/i386/pc/drivemap.c: Remove all trailing whitespace.
15307 * commands/lspci.c: Likewise.
15308 * commands/probe.c: Likewise.
15309 * commands/xnu_uuid.c: Likewise.
15310 * conf/i386-coreboot.rmk: Likewise.
15311 * conf/i386-efi.rmk: Likewise.
15312 * conf/i386-ieee1275.rmk: Likewise.
15313 * conf/i386-pc.rmk: Likewise.
15314 * conf/powerpc-ieee1275.rmk: Likewise.
15315 * conf/sparc64-ieee1275.rmk: Likewise.
15316 * conf/x86_64-efi.rmk: Likewise.
15317 * fs/i386/pc/pxe.c: Likewise.
15318 * gettext/gettext.c: Likewise.
15319 * include/grub/efi/graphics_output.h: Likewise.
15320 * include/grub/i386/pc/memory.h: Likewise.
15321 * kern/env.c: Likewise.
15322 * kern/i386/qemu/startup.S: Likewise.
15323 * lib/i386/pc/biosnum.c: Likewise.
15324 * lib/i386/relocator.c: Likewise.
15325 * lib/i386/relocator_asm.S: Likewise.
15326 * lib/relocator.c: Likewise.
15327 * loader/i386/bsd.c: Likewise.
15328 * loader/i386/multiboot.c: Likewise.
15329 * loader/i386/pc/chainloader.c: Likewise.
15330 * loader/i386/xnu.c: Likewise.
15331 * loader/xnu.c: Likewise.
15332 * normal/main.c: Likewise.
15333 * normal/menu_text.c: Likewise.
15334 * util/getroot.c: Likewise.
15335 * util/grub-mkconfig_lib.in: Likewise.
15336 * util/grub.d/00_header.in: Likewise.
15337 * util/i386/pc/grub-mkimage.c: Likewise.
15338 * util/mkisofs/eltorito.c: Likewise.
15339 * util/mkisofs/exclude.h: Likewise.
15340 * util/mkisofs/hash.c: Likewise.
15341 * util/mkisofs/iso9660.h: Likewise.
15342 * util/mkisofs/joliet.c: Likewise.
15343 * util/mkisofs/mkisofs.c: Likewise.
15344 * util/mkisofs/mkisofs.h: Likewise.
15345 * util/mkisofs/multi.c: Likewise.
15346 * util/mkisofs/name.c: Likewise.
15347 * util/mkisofs/rock.c: Likewise.
15348 * util/mkisofs/tree.c: Likewise.
15349 * util/mkisofs/write.c: Likewise.
15350 * video/efi_gop.c: Likewise.
15351
009ec743
VS
153522009-12-23 Vladimir Serbinenko <phcoder@gmail.com>
15353
15354 * video/efi_gop.c (grub_video_gop_get_bitmask): Fix off-by-one in mask
15355 size counting.
15356
0ad46fd7 153572009-12-22 Felix Zielcke <fzielcke@z-51.de>
990f3548
FZ
15358
15359 * util/grub-mkrescue.in (pkglib_DATA): Set to @pkglib_DATA@.
15360 * genmk.rb (class SCRIPT): Modify the target file instead of source.
15361
d3d30ea0
VS
153622009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
15363
15364 * commands/memrw.c (grub_cmd_write): Support for mask parameter.
15365 (GRUB_MOD_INIT(memrw)): Update help line.
15366
a34f5c70
VS
153672009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
15368
15369 * commands/memrw.c (cmd_read_byte, cmd_read_word, cmd_read_dword):
15370 Use grub_extcmd_t. All users updated.
15371 (options): New variable.
15372 (grub_cmd_read): Restructure for readability. Support "-v" option.
15373 (grub_cmd_write): Restructure for readability.
15374
0ad46fd7 153752009-12-22 Felix Zielcke <fzielcke@z-51.de>
67618ea6
FZ
15376
15377 * genmk.rb (class SCRIPT): Prepend #{src} path with $(srcdir).
15378
0ad46fd7 153792009-12-22 Felix Zielcke <fzielcke@z-51.de>
10a88797
FZ
15380
15381 * genmk.rb (class SCRIPT): Use sed to substitute @pkglib_DATA@
15382 with the actual contents of the correspondending make variable.
15383 * util/grub-mkrescue.in (pkglib_DATA): New variable.
15384 (process_input_dir): Copy all $pkglib_DATA files instead of explicitly
15385 specifying `*.lst' and `efiemu??.o'
15386
0ad46fd7 153872009-12-22 Felix Zielcke <fzielcke@z-51.de>
7e70dfff
FZ
15388
15389 * util/grub.d/30_os-prober.in (osx_entry): Add round brackets
15390 after function name.
15391 Noticed by Rene Engelhard <rene@debian.org>.
15392
dc77a799
VS
153932009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
15394
15395 * commands/lspci.c (grub_pci_classes): Add "USB Controller".
15396 (options): New variable.
15397 (iospace): Likewise.
15398 (grub_lspci_iter): List IO spaces if "-i" was given.
15399 (grub_cmd_lspci): Parse options.
15400 (GRUB_MOD_INIT(lspci)): Use extcmd.
15401 (GRUB_MOD_FINI(lspci)): Likewise.
15402
0ad46fd7 154032009-12-22 Felix Zielcke <fzielcke@z-51.de>
82000aa2
FZ
15404
15405 * util/grub.d/30_os-prober.in (osx_entry): Remove non POSIX compliant
15406 `function' keyword.
15407 Patch by Tony Mancill <tmancill@debian.org>.
15408
b5d5993b
VS
154092009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
15410
15411 * bus/usb/uhci.c (grub_uhci_transfer): Set a limit transaction time.
15412 (grub_uhci_portstatus): Likewise.
15413 (grub_uhci_portstatus): Add necessary delay.
11d18281 15414 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Fix loop-break condition.
b5d5993b 15415
941903f2 154162009-12-21 Carles Pina i Estany <carles@pina.cat>
b5d5993b 15417
941903f2 15418 * commands/acpi.c (options): Fix capitalizations and/or full stops.
15419 (GRUB_MOD_INIT): Likewise.
15420 * commands/boot.c (GRUB_MOD_INIT): Likewise.
cb04503e 15421 * commands/cmp.c (grub_cmd_cmp): Improve the help message.
15422 * commands/echo.c (options): Fix capitalizations and/or full stops.
941903f2 15423 * commands/efi/loadbios.c (enable_rom_area): Likewise.
15424 (enable_rom_area): Likewise.
15425 (GRUB_MOD_INIT): Likewise.
15426 * commands/gptsync.c (GRUB_MOD_INIT): Likewise.
15427 * commands/halt.c (GRUB_MOD_INIT): Improve the help message.
15428 * commands/handler.c (GRUB_MOD_INIT): Likewise.
15429 * commands/hdparm.c (options): Fix capitalizations and/or full stops.
15430 * commands/hexdump.c (options): Likewise.
15431 * commands/i386/cpuid.c (options): Likewise.
15432 (GRUB_MOD_INIT): Likewise.
15433 * commands/i386/pc/drivemap.c (options): Likewise.
15434 (GRUB_MOD_INIT): Likewise.
15435 * commands/i386/pc/halt (options): Likewise.
15436 (GRUB_MOD_INIT): Likewise.
15437 * commands/i386/pc/play.c (GRUB_MOD_INIT): Likewise.
15438 * commands/i386/pc/pxecmd.c (options): Likewise.
15439 * commands/i386/pc/vbetest.c (GRUB_MOD_INIT): Likewise.
15440 * commands/ieee1275/suspend.c (GRUB_MOD_INIT): Likewise.
15441 * commands/keystatus.c (options): Likewise.
15442 (GRUB_MOD_INIT): Likewise.
15443 * commands/loadenv.c (options): Likewise.
15444 * commands/ls.c (options): Likewise.
15445 * commands/lspci.c (GRUB_MOD_INIT): Likewise.
15446 * commands/memrw.c (GRUB_MOD_INIT): Likewise.
15447 * commands/minicmd.c (GRUB_MOD_INIT): Likewise.
15448 * commands/parttool.c (helpmsg): Likewise.
15449 * commands/probe.c (options): Likewise.
15450 * commands/read.c (GRUB_MOD_INIT): Likewise.
15451 * commands/reboot.c (GRUB_MOD_INIT): Likewise.
15452 * commands/search.c (options): Likewise.
15453 * commands/sleep.c (options): Likewise.
15454 * commands/test.c (GRUB_MOD_INIT): Likewise.
15455 * commands/true.c (GRUB_MOD_INIT): Likewise.
15456 * commands/usbtest.c (GRUB_MOD_INIT): Likewise.
15457 * commands/videotest.c (GRUB_MOD_INIT): Likewise.
15458 * lib/arg.c (help_options): Likewise.
e9bbb4e7 15459 * Makefile.in ($(srcdir)/po/$(PACKAGE).pot): Pass -ctranslate to
15460 `$(XGETTEXT)'.
98a50553 15461 * po/POTFILES: Add `commands/loadenv.c'.
941903f2 15462
0ad46fd7 154632009-12-21 Felix Zielcke <fzielcke@z-51.de>
4dd13225 15464
ef3c2c3a 15465 * util/grub-mkrescue.in (process_input_dir): Copy `*.lst' files
4dd13225
FZ
15466 instead of specifying them explicit.
15467
7922f68b
RM
154682009-12-21 Robert Millan <rmh.grub@aybabtu.com>
15469
15470 * NEWS: Add grub-probe support for GNU/Hurd.
15471
537ce47f
RM
154722009-12-21 Robert Millan <rmh.grub@aybabtu.com>
15473
15474 * NEWS: gettext was added after 1.97.
15475
9b214e3a
RM
154762009-12-21 Robert Millan <rmh.grub@aybabtu.com>
15477
15478 * util/mkisofs/msdos_partition.h: New file (based on
15479 include/grub/msdos_partition.h).
15480 * util/mkisofs/mkisofs.c (use_protective_msdos_label): New variable.
15481 (OPTION_PROTECTIVE_MSDOS_LABEL): New macro.
15482 (ld_options, main): Recognize --protective-msdos-label.
15483 * util/mkisofs/mkisofs.h (use_protective_msdos_label): New declaration.
15484 * util/mkisofs/write.c: Include `"msdos_partition.h"'.
15485 (padblock_write): If `use_protective_msdos_label' is set, patch a
15486 protective DOS-style label in the output image.
15487
15488 * util/grub-mkrescue.in: Use --protective-msdos-label.
15489
e9309813
RM
154902009-12-21 Robert Millan <rmh.grub@aybabtu.com>
15491
15492 * util/grub-mkrescue.in: Do not zero-pad image for BIOS-based disk
15493 boot.
15494
0ae56929
RM
154952009-12-21 Robert Millan <rmh.grub@aybabtu.com>
15496
15497 * util/mkisofs/mkisofs.c (use_embedded_boot, boot_image_embed): New
15498 variables.
15499 (ld_options, main): Recognize `--embedded-boot'.
15500 * util/mkisofs/mkisofs.h (use_embedded_boot, boot_image_embed): New
15501 declarations.
15502 * util/mkisofs/write.c (PADBLOCK_SIZE): New variable.
15503 (padblock_size): Use `PADBLOCK_SIZE' instead of hardcoding 16.
15504 (padblock_write): Likewise. Rewrite to support embedded boot image.
15505
15506 * util/grub-mkrescue.in: When building i386-pc images, embed core.img
15507 for BIOS-based disk boot instead of only ElTorito.
15508
b15937b1
RM
155092009-12-21 Robert Millan <rmh.grub@aybabtu.com>
15510
15511 * util/grub-mkrescue.in: Remove `configfile' and `sh' from i386-pc
15512 build (not needed for bootstrap).
15513
52cc3ce0
RM
155142009-12-21 Robert Millan <rmh.grub@aybabtu.com>
15515
15516 * util/grub-mkrescue.in: Remove `memdisk', `tar' and `search' modules
15517 from i386-pc build (not needed for bootstrap).
15518 Rewrite a pair of strings.
15519
36f5ff04
RM
155202009-12-21 Robert Millan <rmh.grub@aybabtu.com>
15521
15522 * normal/main.c (grub_normal_reader_init): Set left margin back to 3.
15523
973c6c85 155242009-12-21 Vladimir Serbinenko <phcoder@gmail.com>
b07e53f0
VS
15525
15526 * video/i386/pc/vbe.c (grub_video_vbe_fini): Set 'last_set_mode'.
15527
05d21547
AB
155282009-12-21 Andreas Born <futur.andy@googlemail.com>
15529
15530 * kern/env.c (grub_env_context_open): Mark exported variable for
15531 reexport.
15532
0175d51f
AB
155332009-12-21 Andreas Born <futur.andy@googlemail.com>
15534
15535 * kern/env.c (grub_env_export): Create nonexistent variables before
15536 exporting.
15537
7f39d92f 155382009-12-20 Carles Pina i Estany <carles@pina.cat>
0175d51f 15539
7f39d92f 15540 * include/grub/auth.h: Include `<grub/i18n.h>'.
15541 (GRUB_GET_PASSWORD): Gettextizze string.
15542 * include/grub/normal.h (STANDARD_MARGIN): New macro, moved from
15543 menu_text.c.
15544 (grub_utf8_to_ucs4_alloc): Fix indentation.
15545 (grub_print_ucs4): Likewise.
15546 (grub_getstringwidth): Likewise.
15547 (print_message_indented): New declaration.
15548 * normal/auth.c: Include `<grub/i18n.h>'.
15549 (grub_auth_check_authentication): Gettexttize string.
15550 * normal/cmdline.c: Include `<grub/i18n.h>'.
15551 (grub_cmdline_get): Gettextizze.
15552 * normal/color.c: Include `<grub/i18n.h>'.
15553 (grub_parse_color_name_pair): Gettexttize strings.
15554 * normal/main.c (grub_normal_reader_init): Cleanup gettexttized
15555 string (use `print_message_indented').
15556 * normal/menu_text.c (STANDARD_MARGIN): Moved from here to
15557 `include/grub/normal.h'.
15558 (print_message_indented): Renamed to ...
15559 (grub_print_message_indented): ... this. Remove `static' qualifer (now
15560 used in normal/main.c).
15561 (print_message): Use `grub_print_message_indented' instead of
15562 `print_message_indented'.
15563 (print_timeout): Likewise.
15564 * normal/misc.c: Include `<grub/term.h>' and `<grub/i18n.h>'.
15565 (grub_normal_print_device_info): Gettexttize strings.
15566 * po/POTFILES: Add `auth.c', `color.c' and `misc.c'.
15567
3041d898
VS
155682009-12-20 Vladimir Serbinenko <phcoder@gmail.com>
15569
15570 * kern/parser.c (grub_parser_split_cmdline): Fix incorrect counting
15571 of arguments. Return number of tokens and not arguments. All users
15572 updated.
15573
de15bf8e
VS
155742009-12-20 Vladimir Serbinenko <phcoder@gmail.com>
15575
15576 * util/i386/pc/grub-setup.c (setup): Don't install on non-GPT,
15577 non-MSDOS paritions.
15578
e0a6ca52
VS
155792009-12-19 Vladimir Serbinenko <phcoder@gmail.com>
15580
15581 * include/grub/types.h (UNUSED): Removed since it conflicts with
15582 NetBSD headers. All users changed to direct __attribute__ ((unused)).
15583 Reported by Grégoire Sutre.
15584
b99518d1 155852009-12-19 Carles Pina i Estany <carles@pina.cat>
15586
15587 * include/grub/normal.h (grub_utf8_to_ucs4): New declaration.
15588 (grub_print_ucs4_alloc): Likewise.
15589 (grub_getstringwidth): Likewise.
15590 * normal/main.c (grub_normal_init_page): Gettextize version string.
15591 * normal/menu_text.c (grub_utf8_to_ucs4_alloc): New definition.
15592 (getstringwidth): Renamed to ...
15593 (grub_getstringwidth): ... this. Remove `static' qualifier (now used
15594 in normal/main.c). Use `grub_utf8_to_ucs4_alloc'.
15595 (grub_print_ucs4): Remove `static' qualifer (now used in
15596 normal/main.c).
15597 * po/POTFILES: Add normal/main.c.
15598
bfd5e52b 155992009-12-19 Carles Pina i Estany <carles@pina.cat>
15600
15601 * normal/menu_text.c (STANDARD_MARGIN): New macro.
15602 (print_message_indented): Add `margin_left' and `margin_right'
15603 parameters.
15604 (print_message): Update `print_message_indented' calls. Adds '\n' to the
15605 strings.
15606 (print_timeout): Use `print_message_indented' to print the message.
15607 Deletes `second_stage' parameter.
15608 (run_menu): Update `print_timeout' calls.
15609
5a1ad2b9
VS
156102009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
15611
15612 Fix console palette on OpenFirmware.
15613
15614 * term/ieee1275/ofconsole.c (MAX): Removed.
15615 (colors): Redone based on VGA palette.
15616 (grub_ofconsole_setcolor): Discard brightness bit since only 8
15617 colors are supported.
15618 (grub_ofconsole_init_output): Use ARRAY_SIZE instead of hardcoded size.
15619
b045f00a
VS
156202009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
15621
15622 Fix potential EfiEmu double prepare.
15623
15624 * efiemu/main.c (prepared): New variable
15625 (grub_efiemu_unload): Set prepare to '0'.
15626 (grub_efiemu_prepare): Return if already prepared. Set prepared.
15627
15628 set_virtual_address_map support.
15629
15630 * include/grub/efi/efi.h (grub_efi_set_virtual_address_map): New
15631 prototype.
15632 * include/grub/efiemu/efiemu.h (grub_efiemu_write_sym_markers): New
15633 prototype.
15634 (grub_efiemu_crc32): Likewise.
15635 (grub_efiemu_crc64): Likewise.
15636 (grub_efiemu_set_virtual_address_map): Likewise.
15637 * include/grub/autoefi.h (grub_autoefi_exit_boot_services):
15638 New definition.
15639 (grub_autoefi_set_virtual_address_map): Likewise.
15640 * kern/efi/efi.c (grub_efi_set_virtual_address_map): New function.
15641 * loader/i386/xnu.c (grub_xnu_boot): Call set_virtual_address_map.
15642 Restructure flow to accomodate it.
15643 * efiemu/prepare.c (grub_efiemu_prepare): Support set_virtual_address_map.
15644 (grub_efiemu_crc): Recompute CRC32.
15645 * efiemu/runtime/efiemu.c (ptv_relocated): Renamed to ...
15646 (efiemu_ptv_relocated): ... this. Made global. All users updated.
15647 * efiemu/symbols.c (relocated_handle): New variable.
15648 (grub_efiemu_free_syms): Free relocated_handle.
15649 (grub_efiemu_alloc_syms): Allocate relocated_handle.
15650 (grub_efiemu_write_sym_markers): New function.
15651 (grub_efiemu_set_virtual_address_map): Likewise.
15652
15653 Newer XNU parameters.
15654
15655 * include/grub/i386/xnu.h (GRUB_XNU_BOOTARGS_VERMINOR): Change to 5.
15656 * include/grub/xnu.h (grub_xnu_extheader): Add nameaddr and namesize.
15657 (grub_xnu_fill_devicetree): New prototype.
15658 (grub_xnu_heap_real_start): New variable.
15659 * loader/xnu.c (get_name_ptr): New function.
15660 (grub_xnu_load_driver): Fill namelen and name.
15661
15662 64-bit xnu support.
15663
15664 * conf/i386-efi.rmk (xnu_mod_SOURCES): Add 'loader/macho32.c'
15665 and 'loader/macho64.c'.
15666 * conf/i386-pc.rmk: Likewise.
15667 * conf/x86_64-efi.rmk: Likewise.
15668 * include/grub/i386/macho.h (grub_macho_thread64): New structure.
15669 * include/grub/xnu.h (grub_xnu_is_64bit): New variable.
15670 * include/grub/macho.h (grub_macho_segment64): New structure.
15671 * include/grub/machoload.h (grub_macho32_size): Renamed from ...
15672 (grub_macho_size32): ... to this.
15673 (grub_macho32_get_entry_point): Renamed from ...
15674 (grub_macho_get_entry_point32): ... to this.
15675 (grub_macho_contains_macho64): New prototype.
15676 (grub_macho_size64): Likewise.
15677 (grub_macho_get_entry_point64): Likewise.
15678 (grub_macho32_load): Renamed from ...
15679 (grub_macho_load32): ... to this.
15680 (grub_macho32_filesize): Renamed from ...
15681 (grub_macho_filesize32): ... to this.
15682 (grub_macho32_readfile): Renamed from ...
15683 (grub_macho_readfile32): ... to this.
15684 (grub_macho_filesize64): New prototype.
15685 (grub_macho_readfile64): Likewise.
15686 (grub_macho_parse32): Likewise.
15687 (grub_macho_parse64): Likewise.
15688 * loader/macho.c: Split into ...
15689 * loader/machoXX.c: ... and this. Replace 32 with XX.
15690 * loader/macho32.c: New file.
15691 * loader/macho64.c: Likewise.
15692 * loader/xnu.c (grub_xnu_is_64bit): New variable.
15693 (grub_cmd_xnu_kernel): Make 32-bit only.
15694 (grub_cmd_xnu_kernel64): New function.
15695 (grub_xnu_load_driver): Support Mach-O 64.
15696 (grub_cmd_xnu_mkext): Likewise.
15697 * util/grub.d/30_os-prober.in (osx_entry): New function.
15698 Generate entries for 64-bit boot too.
15699
15700 Eliminate ad-hoc tree format in XNU and EfiEmu.
15701
15702 * efiemu/main.c (grub_efiemu_prepare): Update comment.
15703 * efiemu/pnvram.c: Rewritten to use environment variables.
15704 All users updated.
15705
15706 Inline utf16_to_utf8.
15707
15708 * kern/misc.c (grub_utf16_to_utf8): Move from here ...
15709 * include/grub/charset.h (grub_utf16_to_utf8): ... to here. Inlined.
15710 All users updated.
15711 * include/grub/misc.h (grub_utf16_to_utf8): Removed.
15712
15713 * bus/usb/usb.c (grub_usb_get_string): Move from here ...
15714 * commands/usbtest.c (grub_usb_get_string): ... move here.
15715 (usb_print_str): Fix error handling.
15716 * include/grub/usb.h (grub_usb_get_string): Remove.
15717
15718 UTF-8 to UTF-16 transformation.
15719
15720 * conf/common.rmk (pkglib_MODULES): Add charset.mod
15721 (charset_mod_SOURCES): New variable.
15722 (charset_mod_CFLAGS): Likewise.
15723 (charset_mod_LDFLAGS): Likewise.
15724 * include/grub/utf.h: New file.
15725 * lib/utf.c: New file. (Based on grub_utf8_to_ucs4 from kern/misc.c)
15726
15727 Support for device properties.
15728
15729 * include/grub/i386/xnu.h (grub_xnu_devprop_header): New structure.
15730 (grub_xnu_devprop_device_header): Likewise.
15731 (grub_xnu_devprop_device_descriptor): Likewise.
15732 (grub_xnu_devprop_add_device): New prototype.
15733 (grub_xnu_devprop_remove_device): Likewise.
15734 (grub_xnu_devprop_remove_property): Likewise.
15735 (grub_xnu_devprop_add_property_utf8): Likewise.
15736 (grub_xnu_devprop_add_property_utf16): Likewise.
15737 (grub_cpu_xnu_init): Likewise.
15738 (grub_cpu_xnu_fini): Likewise.
15739 (grub_cpu_xnu_unload): Likewise.
15740 * loader/i386/xnu.c (grub_xnu_devprop_device_descriptor): New structure.
15741 (property_descriptor): Likewise.
15742 (devices): New variable.
15743 (grub_xnu_devprop_remove_property): New function.
15744 (grub_xnu_devprop_add_device): Likewise.
15745 (grub_xnu_devprop_remove_device): Likewise.
15746 (grub_xnu_devprop_add_property): Likewise.
15747 (grub_xnu_devprop_add_property_utf8): Likewise.
15748 (grub_xnu_devprop_add_property_utf16): Likewise.
15749 (hextoval): Likewise.
15750 (grub_cpu_xnu_fill_devprop): Likewise.
15751 (grub_cmd_devprop_load): Likewise.
15752 (grub_xnu_boot): Call grub_cpu_xnu_fill_devprop,
15753 grub_xnu_fill_devicetree, grub_xnu_fill_devicetree
15754 (cmd_devprop_load): New variable.
15755 (grub_cpu_xnu_init): New function.
15756 (grub_cpu_xnu_fini): Likewise.
15757 * loader/i386/xnu.c (grub_xnu_unload): Call grub_cpu_xnu_unload.
15758 * loader/xnu.c (grub_xnu_parse_devtree): Remove.
15759 (grub_cmd_xnu_devtree): Likewise.
15760 (hextoval): New function.
15761 (unescape): Likewise.
15762 (grub_xnu_fill_devicetree): Likewise.
15763
15764 * util/grub.d/30_os-prober.in: Load devprop.bin. Don't load devtree.txt.
15765 * util/i386/efi/grub-dumpdevtree: Generate devprop.bin.
15766
0945f181
VS
157672009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
15768
15769 Workaround for broken ATI VBE.
15770
15771 * video/i386/pc/vbe.c (last_set_mode): New variable.
15772 (grub_vbe_set_video_mode): Set 'last_set_mode'.
15773 (grub_vbe_get_video_mode): Use 'last_set_mode' if get_mode fails.
15774 (grub_video_vbe_setup): Don't check for reserved flag.
15775
0ad46fd7 157762009-12-17 Felix Zielcke <fzielcke@z-51.de>
0297aafb
FZ
15777
15778 * gendistlist.sh: Use POSIX compliant `!' instead of `-not' in
15779 the `find' command.
15780
c179ebe4
VS
157812009-12-16 Vladimir Serbinenko <phcoder@gmail.com>
15782
15783 UUID support for HFS.
15784
15785 * fs/hfs.c (grub_hfs_uuid): New function.
15786 (grub_hfs_fs): New value .uuid.
15787 * include/grub/hfs.h (grub_hfs_sblock): New field 'num_serial'.
15788
0ad46fd7 157892009-12-14 Felix Zielcke <fzielcke@z-51.de>
574cce0c
FZ
15790
15791 Fix a segfault with parsing unknown long options.
15792
15793 * util/grub-mkrelpath.c (options): Zero terminate it.
15794
c4a3e41a
CPE
157952009-12-13 Carles Pina i Estany <carles@pina.cat>
15796
15797 * include/grub/misc.h (grub_puts): New declaration.
15798 (grub_puts_): Likewise.
a22008a6 15799 * kern/misc.c (grub_puts): New definition.
c4a3e41a
CPE
15800 (grub_puts_): Likewise.
15801
2e8a7602
RM
158022009-12-13 Robert Millan <rmh.grub@aybabtu.com>
15803
15804 * util/grub-probe.c (probe): Improve error message.
15805
b50b77b9
RM
158062009-12-13 Robert Millan <rmh.grub@aybabtu.com>
15807
15808 * loader/i386/multiboot_elfxx.c
15809 (CONCAT(grub_multiboot_load_elf, XX)): Fix `grub_multiboot_payload_eip'
15810 initialization.
15811
158122009-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15813
15814 Relocator framework
15815
15816 * loader/i386/xnu_helper.S: Removed. All users updated.
15817 * conf/i386.rmk (pkglib_MODULES): Add relocator.mod.
15818 (relocator_mod_SOURCES): New variable.
15819 (relocator_mod_CFLAGS): Likewise.
15820 (relocator_mod_LDFLAGS): Likewise.
15821 (relocator_mod_ASFLAGS): Likewise.
15822 * conf/x86_64.rmk: Likewise.
15823 * include/grub/i386/multiboot.h (grub_multiboot_payload_orig): Removed.
15824 (grub_multiboot_payload_entry_offset): Likewise.
15825 (grub_multiboot_forward_relocator): Likewise.
15826 (grub_multiboot_forward_relocator_end): Likewise.
15827 (grub_multiboot_backward_relocator): Likewise.
15828 (grub_multiboot_backward_relocator_end): Likewise.
15829 (grub_multiboot_payload_eip): New variable.
15830 (grub_multiboot_payload_orig): Likewise.
15831 * include/grub/i386/pc/memory.h: Include grub/i386/memory.h.
15832 (GRUB_MEMORY_MACHINE_CR0_PE_ON): Move from here ...
15833 * include/grub/i386/memory.h
15834 (GRUB_MEMORY_CPU_CR0_PE_ON): ... to here
15835 (GRUB_MEMORY_CPU_CR4_PAE_ON): New definition.
15836 (GRUB_MEMORY_CPU_CR0_PAGING_ON): Likewise.
15837 (GRUB_MEMORY_CPU_AMD64_MSR): Likewise.
15838 (GRUB_MEMORY_CPU_AMD64_MSR_ON): Likewise.
15839 * include/grub/i386/relocator.h: New file.
15840 * include/grub/x86_64/relocator.h: Likewise.
15841 * include/grub/i386/xnu.h: Include grub/cpu/relocator.h.
15842 (XNU_RELOCATOR): New macro.
15843 (grub_xnu_launcher_start): Remove.
15844 (grub_xnu_launcher_end): Likewise.
15845 * include/grub/xnu.h (grub_xnu_boot_resume): New prototype.
15846 (grub_xnu_heap_real_start): Remove.
15847 (grub_xnu_heap_start): Change to void *. All users updated.
15848 * kern/i386/realmode.S (real_to_prot): Use GRUB_MEMORY_CPU_CR0_PE_ON.
15849 * lib/i386/relocator.c: New file.
15850 * lib/i386/relocator_asm.S: Likewise.
15851 * lib/i386/relocator_backward.S: Likewise.
15852 * lib/mips/relocator.c: Likewise.
15853 * lib/mips/relocator_asm.S: Likewise.
15854 * lib/relocator.c: Likewise.
15855 * loader/i386/multiboot.c: Include grub/i386/relocator.h.
15856 (entry): Removed.
15857 (playground): Likewise.
15858 (grub_multiboot_payload_orig): New variable.
15859 (grub_multiboot_payload_dest): Likewise.
15860 (grub_multiboot_payload_size): Likewise.
15861 (grub_multiboot_payload_eip): Likewise.
15862 (grub_multiboot_payload_esp): Likewise.
15863 (grub_multiboot_boot): Use grub_relocator32_boot.
15864 (grub_multiboot_unload): Free relocators.
15865 (grub_multiboot): Setup stack. Use relocators.
15866 * loader/i386/multiboot_elfxx.c: Include grub/i386/relocator.h.
15867 (grub_multiboot_load_elfXX): Use relocators.
15868 * loader/i386/multiboot_helper.S (grub_multiboot_payload_orig): Removed.
15869 (grub_multiboot_payload_size): Likewise.
15870 (grub_multiboot_payload_dest): Likewise.
15871 (grub_multiboot_payload_entry_offset): Likewise.
15872 (grub_multiboot_forward_relocator): Likewise.
15873 (grub_multiboot_backward_relocator): Likewise.
15874 (grub_multiboot_real_boot): Likewise.
15875 * loader/i386/xnu.c (grub_xnu_heap_will_be_at): New variable.
15876 (grub_xnu_entry_point): Likewise.
15877 (grub_xnu_arg1): Likewise.
15878 (grub_xnu_stack): Likewise.
15879 (grub_xnu_launch): Removed.
15880 (grub_xnu_boot_resume): New function.
15881 (grub_xnu_boot): Use relocators.
15882 * loader/i386/xnu_helper.S: Removed.
15883 * loader/xnu.c (grub_xnu_heap_start): New variable.
15884 (grub_xnu_heap_size): Likewise.
15885 (grub_xnu_heap_malloc): Use relocators.
15886 * loader/xnu_resume.c (grub_xnu_resume): Use relocators.
15887
29eb90c6
VS
158882009-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15889
15890 * kern/i386/pc/startup.S (multiboot_entry): Setup stack before calling
15891 anything.
15892
31027430
CPE
158932009-12-13 Carles Pina i Estany <carles@pina.cat>
15894
15895 * script/execute.c (grub_script_execute_cmdline): Set grub_errno to
15896 GRUB_ERR_NONE before calling grub_env_set.
15897
dc0c71d9
RM
158982009-12-12 Robert Millan <rmh@aybabtu.com>
15899
15900 * gendistlist.sh (EXTRA_DISTFILES): Add `genvideolist.sh'.
15901 * genmk.rb (video): New variable.
15902 (CLEANFILES, VIDEOFILES): Add #{video}.
15903 (#{video}): New target rule.
15904 * genvideolist.sh: New file.
15905 * Makefile.in (pkglib_DATA): Add video.lst.
15906 (video.lst): New target rule.
15907 * util/grub-mkconfig.in: Initialize ${GRUB_VIDEO_BACKEND} using
15908 `video.lst'.
15909 * util/grub.d/30_os-prober.in: Replace `vbe' with
15910 ${GRUB_VIDEO_BACKEND}.
15911
2a4bfcf0
RM
159122009-12-11 Robert Millan <rmh.grub@aybabtu.com>
15913
15914 * THANKS: Add David Miller.
15915
2a3aa4d5
RM
159162009-12-11 Vladimir Serbinenko <phcoder@gmail.com>
15917
15918 libpciaccess support.
15919
15920 * Makefile.in (LIBPCIACCESS): New variable.
15921 (enable_grub_emu_pci): Likewise.
15922 * conf/any-emu.rmk (grub_emu_SOURCES) [enable_grub_emu_pci]: Add
15923 util/pci.c and commands/lspci.c.
15924 (grub_emu_LDFLAGS) [enable_grub_emu_pci]: Add $(LIBPCIACCESS).
15925 * configure.ac (grub-emu-pci): New option.
15926 * include/grub/i386/pci.h (grub_pci_device_map_range): New function.
15927 (grub_pci_device_unmap_range): Likewise.
15928 * include/grub/pci.h [GRUB_UTIL]: Include grub/pciutils.h.
15929 (grub_pci_device) [!GRUB_UTIL]: New structure. All users updated.
15930 (grub_pci_address_t) [!GRUB_UTIL]: New type.
15931 (grub_pci_device_t) [!GRUB_UTIL]: Likewise.
15932 (grub_pci_get_bus) [!GRUB_UTIL]: New function.
15933 (grub_pci_get_device) [!GRUB_UTIL]: Likewise.
15934 (grub_pci_get_function) [!GRUB_UTIL]: Likewise.
15935 * include/grub/pciutils.h: New file.
15936 * util/pci.c: Likewise.
15937
0ad46fd7 159382009-12-11 Felix Zielcke <fzielcke@z-51.de>
8d0502d9
FZ
15939
15940 * util/misc.c: Don't include <errno.h> twice.
15941
0ad46fd7 159422009-12-10 Felix Zielcke <fzielcke@z-51.de>
0d56ed64
FZ
15943
15944 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Show the disk
15945 name in an error message.
15946 (grub_biosdisk_rw): Likewise.
15947
2e59983c
VS
159482009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
15949
15950 Eliminate NTFS 4Gib barrier.
15951
15952 * fs/ntfs.c (read_attr): Use grub_disk_addr_t and grub_size_t.
15953 (read_run_data): Likewise.
15954 (grub_ntfs_read_run_list): Likewise.
15955 (grub_ntfs_read_block): Likewise.
15956 (grub_ntfs_iterate_dir): Likewise.
15957 (read_mft): Likewise.
15958 (read_data): Likewise.
15959 Use COM_LOG_LEN.
15960 * fs/ntfscomp.c (read_block): Cast ctx->target_vcn & 0xF to unsigned
15961 to avoid 64-bit division
15962 * include/grub/ntfs.h (COM_LOG_LEN): New definition.
15963 (grub_ntfs_rlst): Use grub_disk_addr_t.
15964
71ee178a
VS
159652009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
15966
15967 Eliminate grub-fstest 4Gib barrier.
15968
15969 * util/grub-fstest.c (skip, leng): Use grub_disk_addr_t.
15970 (read_file): Fix error reporting.
15971
2520d4b8
VS
159722009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
15973
15974 Eliminate hexdump 4Gib barrier.
15975
15976 * commands/hexdump.c (grub_cmd_hexdump): Use grub_disk_addr_t.
15977 * lib/arg.c (grub_arg_parse): Use grub_strtoull.
15978
e1f27065
VS
159792009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
15980
15981 * kern/device.c (grub_device_iterate): Ignore errors during first scan.
15982 Fixes amarsh bug.
15983
1a0f7f45
RM
159842009-12-09 Bruce Dubbs <bruce.dubbs@gmail.com>
15985
15986 Remove miscellaneous files in distclean target.
15987
15988 * Makefile.in: Remove docs/{grub.info,version.texi,stamp-vti}
15989
c631d9fb
CW
159902009-12-09 Colin Watson <cjwatson@ubuntu.com>
15991
15992 * util/grub-mkconfig_lib.in: Don't set grub_probe or grub_mkrelpath
15993 if they're already set. This resolves the conflict between my
15994 grub-install change on 2009-10-06 and Felix' change on 2009-11-11,
15995 fixing the --grub-probe option again.
15996 * util/sparc64/ieee1275/grub-install.in: Revert the last piece of my
15997 change on 2009-10-06, so that we now once again source
15998 `${libdir}/grub/grub-mkconfig_lib' after options have been parsed.
15999
7c7b6106
RM
160002009-12-08 Robert Millan <rmh.grub@aybabtu.com>
16001
16002 * conf/common.rmk [sparc64-ieee1275] (grub_mkdevicemap_SOURCES): Use
16003 `util/ieee1275/ofpath.c' and `util/ieee1275/devicemap.c' instead of
16004 `util/devicemap.c'.
16005
e3069ec1
CPE
160062009-12-08 Carles Pina i Estany <carles@pina.cat>
16007
16008 * include/grub/misc.h (grub_printf_): New declaration.
16009 * kern/misc.c (grub_printf_): New definition.
16010 * normal/main.c (grub_normal_reader_init): Use `grub_printf_' and `N_'
16011 instead of `grub_printf' and `_'.
16012 * normal/menu_entry.c (store_completion): Likewise.
16013 (run): Likewise.
16014 (grub_menu_entry_run): Likewise.
16015 * normal/menu_text.c (grub_wait_after_message): Likewise.
16016 (notify_booting): Likewise.
16017 (notify_fallback): Likewise.
16018 (notify_execution_failure): Likewise.
16019
d6ceebf1
CW
160202009-12-07 Colin Watson <cjwatson@ubuntu.com>
16021
16022 * configure.ac: Check for vasprintf.
16023 * util/misc.c (asprintf): Move allocation from here ...
16024 (vasprintf): ... to here. New function.
16025 (xasprintf): New function.
16026 * include/grub/util/misc.h (vasprintf, xasprintf): Add
16027 prototypes.
16028 * util/getroot.c (grub_util_get_grub_dev): Use xasprintf.
16029 * util/grub-mkfont.c (write_font): Likewise.
16030 * util/grub-probe.c (probe): Likewise.
16031 * util/hostdisk.c (make_device_name): Likewise.
16032
de6daa8b
DM
160332009-12-06 David S. Miller <davem@sunset.davemloft.net>
16034
16035 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Recognize
16036 anything even prefixed with 'cdrom' as a cdrom.
16037
0ad46fd7 160382009-12-06 Felix Zielcke <fzielcke@z-51.de>
df91e679
FZ
16039
16040 * util/misc.c (make_system_path_relative_to_its_root): Correctly cope with
16041 mount points.
16042
98d3dc02
CPE
160432009-12-05 Carles Pina i Estany <carles@pina.cat>
16044
16045 * gettext/gettext.c: Include `<grub/list.h>'. Define grub_gettext_msg,
16046 grub_gettext_msg_list.
16047 (grub_gettext_gettranslation_from_position): Return const char *
16048 and not char *.
a2c1332b 16049 (grub_gettext_translate): Add the translated strings into a list,
98d3dc02
CPE
16050 returns from the list if existing there.
16051 (grub_gettext_init_ext): Add \n at the end of grub_dprintf string.
16052 (grub_gettext_delete_list): Delete the list.
16053 (grub_gettext_env_write_lang): Call grub_gettext_delete_list when
16054 lang environment variable is changed.
16055 (GRUB_MOD_FINI): Call grub_gettext_delete_list.
16056
b283f108
VS
160572009-12-05 Vladimir Serbinenko <phcoder@gmail.com>
16058
16059 Rename kernel.mod to kernel.img.
16060
16061 * conf/i386-efi.rmk (pkglib_MODULES): Change kernel.mod to kernel.img.
16062 (kernel_mod_EXPORTS): Rename to ...
16063 (kernel_img_EXPORTS): ... this.
16064 (kernel_mod_SOURCES): Rename to ...
16065 (kernel_img_SOURCES): ... this.
16066 (kernel_mod_HEADERS): Rename to ...
16067 (kernel_img_HEADERS): ... this. All users updated.
16068 (kernel_mod_CFLAGS): Rename to ...
16069 (kernel_img_CFLAGS): ... this.
16070 (kernel_mod_ASFLAGS): Rename to ...
16071 (kernel_img_ASFLAGS): ... this.
16072 (kernel_mod_LDFLAGS): Rename to ...
16073 (kernel_img_LDFLAGS): ... this.
16074 * conf/x86_64-efi.rmk: Likewise.
16075 * util/i386/efi/grub-mkimage.c (read_kernel_module): Rename to ...
16076 (read_kernel_image): ... this. All users updated.
16077 (read_kernel_image): Read "kernel.img" instead of "kernel.mod".
16078
69055f8a
CPE
160792009-12-05 Carles Pina i Estany <carles@pina.cat>
16080
16081 * normal/menu_text.c (grub_color_menu_high): Gettexttize string.
16082 (print_spaces): New function.
16083 (grub_print_ucs4): New function.
16084 (getstringwidth): New function.
16085 (print_message_indented): New function.
16086 (print_message): Gettexttize strings using print_message_indented.
16087 (run_menu): Replaces grub_printf by print_spaces and dynamic terminal
16088 width.
16089 (get_entry_number): Gettextize and uses dynamic terminal width.
a2c1332b 16090 (notify_booting, notify_fallback, notify_execution_failure):
69055f8a
CPE
16091 Gettextize.
16092 * normal/menu_entry.c (store_completion): Cleanup the gettextized
16093 string.
16094 (run): Likewise.
16095 (grub_menu_entry_run): Likewise.
16096 * PO/POTFILES: Add normal/menu_entry.c.
16097
f616f51c
VS
160982009-12-05 Vladimir Serbinenko <phcoder@gmail.com>
16099
16100 * configure.ac (TARGET_ASFLAGS): Add "-D<MACHINE>".
16101
57bbe3be
CPE
161022009-12-05 Carles Pina i Estany <carles@pina.cat>
16103
16104 * util/grub-install.in: Install gettext .mo files.
16105 * util/grub-mkrescue.in (process_input_dir): Copy gettext .mo files.
16106
013d67a1
CPE
161072009-12-05 Carles Pina i Estany <carles@pina.cat>
16108
16109 * gettext/gettext.c (grub_gettext_init_ext): Replace grub_printf with
16110 grub_dprintf.
16111
fb954db0
RM
161122009-12-05 Robert Millan <rmh.grub@aybabtu.com>
16113
16114 * kern/ieee1275/openfw.c (grub_reboot): Disable for i386. The
16115 non-firmware-dependant one in realmode.S takes precedence.
16116
6b8474f8
RM
161172009-12-04 Robert Millan <rmh.grub@aybabtu.com>
16118
16119 * commands/halt.c: Replace misc arch-specific headers with
16120 `<grub/misc.h>'.
16121 * commands/reboot.c: Likewise.
16122 * commands/i386/pc/halt.c: Replace `<grub/machine/init.h>' with
16123 `<grub/misc.h>'.
16124 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Remove `cpu/reboot.h'.
16125 (halt_mod_SOURCES): Move `kern/i386/halt.c' from here ...
16126 (kernel_img_SOURCES): ... to here.
16127
16128 * include/grub/efi/efi.h (grub_reboot, grub_halt): Remove prototypes.
16129 * include/grub/i386/pc/init.h: Likewise.
16130 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
16131 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
16132
16133 * include/grub/misc.h (grub_reboot, grub_halt): New prototypes.
16134
16135 * include/grub/i386/halt.h: Remove.
16136 * include/grub/i386/reboot.h: Likewise.
16137
16138 * kern/i386/halt.c: Remove `<grub/cpu/halt.h>'.
16139
4b2e6ca2
DM
161402009-12-03 David S. Miller <davem@sunset.davemloft.net>
16141
16142 * conf/sparc64-ieee1275.rmk (grub_mkimage_SOURCES,
16143 grub_setup_SOURCES, grub_ofpathname_SOURCES): Add gnulib/progname.c
16144 * util/sparc64/ieee1275/grub-mkimage.c: Include <grub/i18n.h> and
16145 "progname.h"
16146 * util/sparc64/ieee1275/grub-ofpathname.c: Likewise.
16147 * util/sparc64/ieee1275/grub-setup.c: Likewise.
16148 (usage): Add missing comma in printf.
16149
5239348f
RM
161502009-12-02 Robert Millan <rmh.grub@aybabtu.com>
16151
16152 Use the same reboot approach on i386 coreboot and qemu as we do on
16153 BIOS.
16154
16155 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add `cpu/reboot.h'.
16156 (reboot_mod_SOURCES): Remove `kern/i386/reboot.c'.
16157 * kern/i386/reboot.c: Remove.
16158 * include/grub/i386/reboot.h (grub_reboot): Export function.
16159 * kern/i386/pc/startup.S (grub_reboot): Move from here ...
16160 * kern/i386/realmode.S (grub_reboot): ... to here. Jump to
16161 0xf000:0xfff0 instead of 0xffff:0x0000.
16162 [!GRUB_MACHINE_PCBIOS] (prot_to_real): Do not restore interrupts.
16163 * kern/i386/qemu/startup.S: Include `"../realmode.S"'.
16164
ef34cbd4
RM
161652009-11-30 Robert Millan <rmh.grub@aybabtu.com>
16166
16167 Fix $srcdir != $objdir build.
16168
16169 * Makefile.in (po/%.po): Rewrite as ...
16170 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po)): ... this.
16171
dc9837ea
ST
161722009-11-29 Samuel Thibault <samuel.thibault@ens-lyon.org>
16173
16174 Fix GNU/Hurd grub-install crash.
16175 * util/grub-probe.c (probe): Try to access `path' only when it is not
16176 NULL.
16177
2f857f98
VS
161782009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
16179
16180 Correct module naming.
16181
16182 * video/efi_uga.c (GRUB_MOD_INIT(efi_fb)): Renamed from this ...
16183 (GRUB_MOD_INIT(efi_uga)): ... to this
16184 (GRUB_MOD_FINI(efi_fb)): Renamed from this ...
16185 (GRUB_MOD_FINI(efi_uga)): ... to this
16186 * video/efi_gop.c (GRUB_MOD_INIT(efi_fb)): Renamed from this ...
16187 (GRUB_MOD_INIT(efi_gop)): ... to this
16188 (GRUB_MOD_FINI(efi_fb)): Renamed from this ...
16189 (GRUB_MOD_FINI(efi_gop)): ... to this
16190
c5448046
RM
161912009-11-28 Robert Millan <rmh.grub@aybabtu.com>
16192
16193 * util/mkisofs/mkisofs.c (ld_options): Mark all `arg' strings as
16194 translatable.
16195 (usage): Translate `arg' strings using gettext().
16196 Thanks to Jordi Mallach for the suggestion.
16197
c85184ad
VS
161982009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
16199
16200 GOP support. Based on patch from Bean
16201 (http://lists.gnu.org/archive/html/grub-devel/2009-08/msg00384.html)
16202
16203 * video/efi_gop.c: New file.
16204 * include/grub/efi/graphics_output.h: Likewise.
16205 * conf/i386-efi.rmk (pkglib_MODULES): Add `efi_gop.mod'.
16206 (efi_fb_mod_SOURCES, efi_fb_mod_CFLAGS, efi_fb_mod_LDFLAGS): New
16207 variables.
16208 * conf/x86_64-efi.rmk: Likewise.
16209
8a4c48d8
VS
162102009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
16211
16212 Rename efi_fb to efi_uga.
16213
16214 * conf/i386-efi.rmk (pkglib_MODULES): Rename 'efi_fb.mod' to
16215 'efi_uga.mod'.
16216 (efi_fb_mod_SOURCES): Rename this ...
16217 (efi_uga_mod_SOURCES): ... to this.
16218 (efi_fb_mod_CFLAGS): Rename this ...
16219 (efi_uga_mod_CFLAGS): ... to this.
16220 (efi_fb_mod_LDFLAGS): Rename this ...
16221 (efi_uga_mod_LDFLAGS): ... to this.
16222 * conf/x86_64-efi.rmk (pkglib_MODULES): Rename 'efi_fb.mod' to
16223 'efi_uga.mod'.
16224 (efi_fb_mod_SOURCES): Rename this ...
16225 (efi_uga_mod_SOURCES): ... to this.
16226 (efi_fb_mod_CFLAGS): Rename this ...
16227 (efi_uga_mod_CFLAGS): ... to this.
16228 (efi_fb_mod_LDFLAGS): Rename this ...
16229 (efi_uga_mod_LDFLAGS): ... to this.
16230 * video/efi_fb.c: Move this ...
16231 * video/efi_uga.c: ... to this. Change prefix to 'grub_video_uga_'.
16232
fb6c1a7b
RM
162332009-11-27 Robert Millan <rmh.grub@aybabtu.com>
16234
16235 * po/README: New file. Explain our PO file workflow.
16236
3bc7896c
RM
162372009-11-27 Robert Millan <rmh.grub@aybabtu.com>
16238
16239 * po/ChangeLog: Remove. Move relevant entries back to ...
16240 * ChangeLog: ... here.
16241 * po/ca.po: Remove (now handled by TLP).
16242 * po/id.po: Likewise.
16243 * po/zh_CN.po: Likewise.
16244 * Makefile.in (LINGUAS): Initialize in a way that supports
16245 empty set.
16246
9ed4841d
RM
162472009-11-27 Robert Millan <rmh.grub@aybabtu.com>
16248
16249 * Makefile.in (LINGUAS): Rewrite by scanning po/ directory instead of
16250 reliing on po/LINGUAS.
16251 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po)): Rewrite as ...
16252 (po/%.po): ... this.
16253
0ad46fd7 162542009-11-26 Felix Zielcke <fzielcke@z-51.de>
242668a2
FZ
16255
16256 * util/i386/efi/grub-mkimage.c: Include "progname.h".
16257 (main): Use `program_name' instead of nonexistent `progname'.
16258
e30dd392
FZ
162592009-11-26 Felix Zielcke <fzielcke@z-51.de>
16260
16261 * conf/i386-efi.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
16262 * conf/x86_64-efi.rmk (grub_mkimage_SOURCES): Likewise.
16263
7656de4f
RM
162642009-11-26 Robert Millan <rmh.grub@aybabtu.com>
16265
16266 * conf/i386-coreboot.rmk: Cleanup stale filenames from my previous
16267 commit.
16268 * conf/i386-efi.rmk: Likewise.
16269 * conf/i386-ieee1275.rmk: Likewise.
16270 * conf/powerpc-ieee1275.rmk: Likewise.
16271 * conf/sparc64-ieee1275.rmk: Likewise.
16272 * conf/x86_64-efi.rmk: Likewise.
16273
db77c4d4
FZ
162742009-11-26 Felix Zielcke <fzielcke@z-51.de>
16275
16276 * conf/any-emu.rmk (grub_emu_SOURCES): Add `gnulib/progname.c'.
16277
a755bb04
FZ
162782009-11-26 Felix Zielcke <fzielcke@z-51.de>
16279
16280 * conf/any-emu.rmk (grub_mkfont_SOURCES): Add `gnulib/progname.c'.
16281
8a4c07fd
RM
162822009-11-26 Robert Millan <rmh.grub@aybabtu.com>
16283
16284 * conf/common.rmk (sbin_UTILITIES): Add `grub-mkdevicemap'.
16285 (grub_mkdevicemap_SOURCES): New variable.
16286 (grub_probe_SOURCES, grub_fstest_SOURCES, grub_mkfont_SOURCES)
16287 (grub_mkrelpath_SOURCES, grub_editenv_SOURCES)
16288 (grub_pe2elf_SOURCES): Add `gnulib/progname.c'.
16289 * conf/i386-coreboot.rmk (sbin_UTILITIES): Remove `grub-mkdevicemap'.
16290 (grub_mkdevicemap_SOURCES): Remove.
16291 * conf/i386-efi.rmk: Likewise.
16292 * conf/i386-ieee1275.rmk: Likewise.
16293 * conf/i386-pc.rmk: Likewise.
16294 * conf/powerpc-ieee1275.rmk: Likewise.
16295 * conf/sparc64-ieee1275.rmk: Likewise.
16296 * conf/x86_64-efi.rmk: Likewise.
16297 * util/elf/grub-mkimage.c: Include `<grub/i18n.h>' and `"progname.h"'.
16298 (usage): Fix strings to use `program_name'.
16299 (main): Initialize gettext.
16300 * util/grub-editenv.c: Likewise.
16301 * util/grub-emu.c: Likewise.
16302 * util/grub-fstest.c: Likewise.
16303 * util/grub-mkdevicemap.c: Likewise.
16304 * util/grub-mkfont.c: Likewise.
16305 * util/grub-mkrelpath.c: Likewise.
16306 * util/grub-pe2elf.c: Likewise.
16307 * util/grub-probe.c: Likewise.
16308 * util/sparc64/ieee1275/grub-mkimage.c: Likewise.
16309 * util/sparc64/ieee1275/grub-ofpathname.c: Likewise.
16310 * util/sparc64/ieee1275/grub-setup.c: Likewise.
16311
16312 * util/misc.c: Include `"progname.h"'.
16313 (progname): Remove variable.
16314 (grub_util_warn, grub_util_info, grub_util_error): Use `program_name'.
16315
6f61ed55
FZ
163162009-11-25 Felix Zielcke <fzielcke@z-51.de>
16317
16318 * util/grub.d/10_linux.in (linux_entry): Quote the arguments to
16319 printf and print a newline after the menuentry header line.
16320 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
16321
f022876b
FZ
163222009-11-25 Felix Zielcke <fzielcke@z-51.de>
16323
16324 autoconf >= 2.60 support $(localedir).
16325
16326 * INSTALL: Note that autoconf 2.60 is required.
16327 * configure.ac (AC_PREREQ): Bump to 2.60.
16328 * util/grub.d/10_kfreebsd.in (TEXTDOMAINDIR): Set to lowercased @localedir@.
16329 * util/grub.d/10_linux.in (TEXTDOMAINDIR): Likewise.
16330
6717926e
YB
163312009-11-25 Yves Blusseau <yves.blusseau@zetam.org>
16332
16333 * configure.ac: move the call to AM_GNU_GETTEXT to avoid warnings when
16334 aclocal is run.
16335
08806a54
RM
163362009-11-25 Robert Millan <rmh.grub@aybabtu.com>
16337
16338 * normal/main.c (grub_normal_read_line): Fix off-by-one
16339 buffer overflow.
16340
13b33fba
RM
163412009-11-25 Robert Millan <rmh.grub@aybabtu.com>
16342
16343 * normal/main.c (grub_normal_execute): Replace "parser.sh" with
16344 "parser.grub" in grub_command_execute() call.
16345
4a8572e9
CPE
163462009-11-24 Carles Pina i Estany <carles@pina.cat>
16347
16348 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add i18n.h.
16349 * conf/i386-efi.rmk: Likewise.
16350 * conf/i386-ieee1275.rmk: Likewise.
16351 * conf/i386-pc.rmk: Likewise.
16352 * conf/powerpc-ieee1275.rmk: Likewise.
16353 * conf/sparc64-ieee1275.rmk: Likewise.
16354 * conf/x86_64-efi.rmk: Likewise.
16355 * gettext/gettex.c: Include <grub/i18n.h>.
16356 * include/grub/misc.h (grub_gettext_dummy, grub_gettext): Move from
16357 here ...
16358 * include/grub/i18n.h: ... to here
16359 * include/grub/i18n.h: ... to here.
16360 * kern/misc.c: Include <grub/i18n.h>
a2c1332b 16361 (grub_gettext_dummy): Move above user.
4a8572e9 16362
bee48093
FZ
163632009-11-24 Felix Zielcke <fzielcke@z-51.de>
16364
16365 * util/Makefile.in (install-local): Convert a `for' into a normal
16366 shell expansion.
16367
a031e91c
RM
163682009-11-24 Robert Millan <rmh.grub@aybabtu.com>
16369
16370 * autogen.sh: Add automake call.
16371 * config.guess: Remove.
16372 * config.sub: Likewise.
16373 * install-sh: Likewise.
16374
26bec39d
FZ
163752009-11-24 Felix Zielcke <fzielcke@z-51.de>
16376
16377 * util/Makefile.in (install-local): Fix the use of $lang shell variable.
16378
8e2532fd
FZ
163792009-11-24 Felix Zielcke <fzielcke@z-51.de>
16380
16381 * util/Makefile.in (install-local): Convert a make `$(foreach)'
16382 function to a normal shell `for'.
16383
fefa1b7d
FZ
163842009-11-24 Felix Zielcke <fzielcke@z-51.de>
16385
16386 * conf/i386-coreboot.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
16387
4501250b
FZ
163882009-11-24 Felix Zielcke <fzielcke@z-51.de>
16389
16390 * util/grub-mkrelpath.c: New file.
16391 * conf/common.rmk (bin_UTILITIES): Add grub-mkrelpath.
16392 (grub_mkrelpath_SOURCES): New variable.
16393 * include/grub/util/misc.h: New function prototype.
16394 * util/misc.c (make_system_path_relative_to_its_root): New function.
16395
16396 * util/grub-mkconfig_lib.in (bindir): New variable.
16397 (grub_mkrelpath): Likewise.
16398 (make_system_path_relative_to_its_root): Use grub-mkrelpath.
16399
16400 * util/probe.c (probe): Make the file path relative to its root.
16401 Change a info message to use the GRUB path. Enable again the
16402 check if we can read the file with GRUB facilities.
16403
16404 * util/i386/pc/grub-setup.c (setup): Make core.img path relative
16405 to its root.
16406
11d9778b
FZ
164072009-11-24 Felix Zielcke <fzielcke@z-51.de>
16408
16409 * Makefile.in: Don't include GRUB_CONTRIB makefiles with emu
16410 platform.
16411
4465287d
FZ
164122009-11-24 Felix Zielcke <fzielcke@z-51.de>
16413
16414 * util/getroot.c (grub_util_get_dev_abstraction): Properly use
16415 strncmp().
16416
62b47f22
FZ
164172009-11-24 Felix Zielcke <fzielcke@z-51.de>
16418
16419 * util/getroot.c (grub_util_is_dmraid): New function.
16420 (grub_util_get_dev_abstraction): Treat dmraid and multipath
16421 devices as normal ones, not as LVM.
16422
1eafb9b9 164232009-11-23 Carles Pina i Estany <carles@pina.cat>
c3ea6bd4
CPE
16424
16425 * conf/common.rmk: Add grub-gettext_lib target and updates
16426 lib_DATA and CLEANFILES. Adds gettext.mod SOURCES, CFLAGS,
16427 LDFLAGS.
16428 * gettext/gettext.c: New file. (Reads mo files).
16429 * include/grub/file.h (grub_file_pread): New prototype.
16430 * include/grub/i18n.h (_): New prototype.
16431 * include/grub/misc.h (grub_gettext_dummy, grub_gettext): New
16432 prototypes.
16433 * kern/misc.c (grub_gettext_dummy): New function.
16434 * normal/menu_text.c: Include <grub/i18n.h>.
16435 * normal/menu_text.c (print_timeout): Gettexttize string.
16436 * normal/menu_text.c (print_message): Gettexttize string.
3bc7896c
RM
16437 * po/POTFILES: Add `normal/menu_text.c'.
16438 * po/ca.po: Add new translations.
c3ea6bd4
CPE
16439 * util/grub.d/00_header.in: Define locale_dir and lang. insmod
16440 gettext module and defines locale_dir and lang in grub.cfg.
16441 * NEWS: Add gettext support.
16442
0fdb2568
RM
164432009-11-23 Robert Millan <rmh.grub@aybabtu.com>
16444
16445 * util/hostdisk.c: Include `<grub/i18n.h>'.
16446 (find_grub_drive): Use ARRAY_SIZE for map size calculation.
16447 (make_device_name): Rewrite using asprintf.
16448 (convert_system_partition_to_system_disk): Replace 0 with NULL.
16449 (find_system_device): If a device is not found, generate one just
16450 by reusing the OS path name.
16451 (read_device_map): Make it permissible for device.map not to exist.
16452
f515aa62
RM
164532009-11-23 Robert Millan <rmh.grub@aybabtu.com>
16454
16455 * script/sh/execute.c: Move from here ...
16456 * script/execute.c: ... to here. Update all users.
16457 * script/sh/function.c: Move from here ...
16458 * script/function.c: ... to here. Update all users.
16459 * script/sh/lexer.c: Move from here ...
16460 * script/lexer.c: ... to here. Update all users.
16461 * script/sh/main.c: Move from here ...
16462 * script/main.c: ... to here. Update all users.
16463 * script/sh/parser.y: Move from here ...
16464 * script/parser.y: ... to here. Update all users.
16465 * script/sh/script.c: Move from here ...
16466 * script/script.c: ... to here. Update all users.
16467
f84b481b
RM
164682009-11-23 Robert Millan <rmh.grub@aybabtu.com>
16469
16470 * configure.ac: Detect all `emu' platforms. Define
16471 GRUB_MACHINE_* macros in TARGET_CFLAGS. Remove
16472 --enable-grub-emu logic. Disable include/grub/machine
16473 symlink on `emu' platforms.
16474
16475 * genkernsyms.sh.in: Use @TARGET_CFLAGS@ during symbol generation.
16476 * gensymlist.sh.in: Likewise.
16477
16478 * include/grub/i386/coreboot/machine.h: Remove file.
16479 * include/grub/i386/efi/machine.h: Likewise.
16480 * include/grub/i386/ieee1275/machine.h: Likewise.
16481 * include/grub/i386/pc/machine.h: Likewise.
16482 * include/grub/i386/qemu/machine.h: Likewise.
16483 * include/grub/powerpc/ieee1275/machine.h: Likewise.
16484 * include/grub/sparc64/ieee1275/machine.h: Likewise.
16485 * include/grub/x86_64/efi/machine.h: Likewise.
16486
16487 * commands/acpi.c: Remove `<grub/machine/machine.h>'.
16488 * commands/halt.c: Likewise.
16489 * commands/reboot.c: Likewise.
16490 * include/grub/autoefi.h: Likewise.
16491 * include/grub/i386/at_keyboard.h: Likewise.
16492 * include/grub/i386/kernel.h: Likewise.
16493 * include/grub/i386/loader.h: Likewise.
16494 * include/grub/i386/pc/memory.h: Likewise.
16495 * kern/dl.c: Likewise.
16496 * kern/i386/coreboot/init.c: Likewise.
16497 * loader/i386/bsd.c: Likewise.
16498 * loader/i386/linux.c: Likewise.
16499 * loader/multiboot_loader.c: Likewise.
16500 * term/i386/pc/serial.c: Likewise.
16501 * term/usb_keyboard.c: Likewise.
16502
16503 * include/grub/time.h [!GRUB_MACHINE_EMU]: Remove
16504 `<grub/machine/machine.h>'
16505 [!GRUB_MACHINE_EMU] (GRUB_TICKS_PER_SECOND): New macro.
16506 * util/misc.c: Remove `<grub/machine/machine.h>' and
16507 `<grub/machine/time.h>'.
16508
16509 * Makefile.in (enable_grub_emu): Remove variable.
16510 Include $(srcdir)/conf/any-emu.mk for the `emu' platform.
16511
16512 * conf/any-emu.rmk: New file.
16513 * conf/common.rmk (grub_emu_init.lst, grub_emu_init.h)
16514 (grub_emu_init.c): Move from here ...
16515 * conf/any-emu.rmk: ... to here.
16516
16517 * conf/i386-coreboot.rmk (sbin_UTILITIES): Remove `grub-emu'.
16518 (grub_emu_SOURCES, grub_emu_LDFLAGS): Move from here ...
16519 * conf/any-emu.rmk: ... to here.
16520
4efeab03
RM
165212009-11-23 Robert Millan <rmh.grub@aybabtu.com>
16522
16523 * include/grub/parser.h (grub_parser_register): Document need
16524 of `name' parameter.
16525 * normal/main.c (grub_normal_read_line): Simplify prompt string.
16526 * script/sh/main.c (grub_sh_parser, GRUB_MOD_INIT(sh)): Rename
16527 "sh" to "grub".
16528
ea1dd8bf
RM
165292009-11-23 Robert Millan <rmh.grub@aybabtu.com>
16530
16531 * Makefile.in ($(srcdir)/po/$(PACKAGE).pot): Pass --keyword=N_ to
16532 `$(XGETTEXT)'.
16533 * include/grub/i18n.h (N_): New macro.
16534 * util/mkisofs/mkisofs.h: Likewise.
16535 * util/mkisofs/mkisofs.c (ld_options): Wrap all translatable strings
16536 around N_().
16537 (usage): Use gettext() to translate help strings when printing them.
16538
0c140626
RM
165392009-11-23 Robert Millan <rmh.grub@aybabtu.com>
16540
16541 Based on patch from Bean
16542 (http://lists.gnu.org/archive/html/grub-devel/2009-08/msg00384.html)
16543
16544 * video/efi_fb.c: New file.
16545 * conf/i386-efi.rmk (pkglib_MODULES): Add `efi_fb.mod'.
16546 (efi_fb_mod_SOURCES, efi_fb_mod_CFLAGS, efi_fb_mod_LDFLAGS): New
16547 variables.
16548 * conf/x86_64-efi.rmk: Likewise.
16549
87d58298
RM
165502009-11-22 Robert Millan <rmh.grub@aybabtu.com>
16551
16552 * util/i386/pc/grub-mkimage.c: Ungettextize grub_util_info() strings.
16553 * util/i386/pc/grub-setup.c: Likewise.
16554
994cc3a3
ST
165552009-11-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
16556
16557 * util/getroot.c [__GNU__]: Include <hurd.h>, <hurd/lookup.h>, and
16558 <hurd/fs.h>
16559 [__GNU__] (grub_guess_root_device): Call file_name_lookup and
16560 file_get_storage_info to implement grub_guess_root_device.
16561
26a61d6a
FZ
165622009-11-21 Felix Zielcke <fzielcke@z-51.de>
16563
16564 * Makefile.in (target): Use make's builtin $(shell) function
16565 instead of calling directly $(SHELL) to create the locale directories,
16566 inside the $(foreach) function.
16567
74ff1dd5
FZ
165682009-11-21 Felix Zielcke <fzielcke@z-51.de>
16569
16570 * util/grub-mkrescue.in: Print an error and usage if output option
16571 has not been given.
16572
0b787d0e
FZ
165732009-11-21 Felix Zielcke <fzielcke@z-51.de>
16574
16575 Patch from Loïc Minier <loic.minier@ubuntu.com>.
16576 * util/grub.d/30_os-prober.in: Cope with Linux entries where
16577 root and /boot are on different devices.
16578
1164b270
RM
165792009-11-21 Robert Millan <rmh.grub@aybabtu.com>
16580
16581 Fix build for srcdir != objdir.
16582
16583 * Makefile.in (po/$(PACKAGE).pot): Rename to ...
16584 ($(srcdir)/po/$(PACKAGE).pot): ... this. Run $(XGETTEXT) from
16585 $(srcdir).
16586 ($(foreach lang, $(LINGUAS), po/$(lang).po)): Rename to ...
16587 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po): ... this. Use $^
16588 reference for input.
16589
13774a2f
RM
165902009-11-21 Robert Millan <rmh.grub@aybabtu.com>
16591
16592 * util/grub-mkrescue.in: Use source directory direcly (without copiing
16593 or hardlinking it). Remove -J option, Joliet is not compatible with
16594 multiple source directories.
16595
efda854e
RM
165962009-11-21 Carles Pina i Estany <carles@pina.cat>
165972009-11-21 Robert Millan <rmh.grub@aybabtu.com>
16598
16599 * util/grub-mkrescue.in: Recognize `--override-directory' option.
16600 (process_input_dir): New function. Process an arbitrary input
16601 directory.
16602 Misc adjustments to support both "override mode" and system-wide mode.
16603
6c09890c
FZ
166042009-11-20 Felix Zielcke <fzielcke@z-51.de>
16605
16606 * configure.ac (UNIFONT_BDF): Rename to ...
16607 (FONT_SOURCE): ... this. Update all users.
16608
a797824f
FZ
166092009-11-20 Felix Zielcke <fzielcke@z-51.de>
16610
16611 * configure.ac: Add `/usr/share/fonts/X11/misc/unifont.pcf.gz'
16612 to the list of unifont files to look for.
16613
cd4f42b0
RM
166142009-11-19 Robert Millan <rmh.grub@aybabtu.com>
16615
16616 Patch from Joe Auricchio <jauricchio@gmail.com>
16617 * commands/minicmd.c (grub_mini_cmd_clear): New function.
16618 (GRUB_MOD_INIT(minicmd)): Register grub_mini_cmd_clear().
16619 (GRUB_MOD_FINI(minicmd)): Unregister grub_mini_cmd_clear().
16620
393c783d
FZ
166212009-11-19 Felix Zielcke <fzielcke@z-51.de>
16622
16623 * Makefile.in (install-local): Add a missing backslash.
16624
b2f1e327
FZ
166252009-11-19 Felix Zielcke <fzielcke@z-51.de>
16626
16627 * include/grub/x86_64/io.h: New file.
16628
f577f7a0
RM
166292009-11-19 Robert Millan <rmh.grub@aybabtu.com>
16630
16631 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `gnulib/progname.c'.
16632 * util/i386/pc/grub-setup.c: Include `<grub/i18n.h>'.
16633 Include `"progname.h"'.
16634 (main): Initialize gettext.
16635 * util/i386/pc/grub-setup.c: Gettexttize.
16636 * util/i386/pc/grub-mkimage.c: Likewise.
16637
16638 * Makefile.in (po/*.po): Redefine as ...
16639 ($(foreach lang, $(LINGUAS), po/$(lang).po)): ... this.
16640
3bc7896c
RM
16641 * po/POTFILES: Add `util/i386/pc/grub-setup.c'.
16642
c37943b6
RM
166432009-11-19 Robert Millan <rmh.grub@aybabtu.com>
16644
16645 * conf/common.rmk (grub_mkisofs_SOURCES): Add `gnulib/progname.c'.
16646 * util/mkisofs/mkisofs.c: Include `"progname.h"'.
16647 (program_name): Remove.
16648 (main): Initialize gettext support.
6323f705
RM
16649 * util/mkisofs/mkisofs.h: Include `<locale.h>'.
16650 Include `<libintl.h>'.
16651 (_): New macro.
c37943b6
RM
16652
16653 * util/mkisofs/eltorito.c: Gettexttize.
16654 * util/mkisofs/joliet.c: Likewise.
16655 * util/mkisofs/mkisofs.c: Likewise.
c37943b6
RM
16656 * util/mkisofs/multi.c: Likewise.
16657 * util/mkisofs/rock.c: Likewise.
16658 * util/mkisofs/tree.c: Likewise.
16659 * util/mkisofs/write.c: Likewise.
16660
3bc7896c
RM
16661 * po/POTFILES: Update with new files.
16662
5ce77c6e
RM
166632009-11-18 Robert Millan <rmh.grub@aybabtu.com>
16664
16665 * util/mkisofs/eltorito.c: Fix minor mistake in license text.
16666 * util/mkisofs/iso9660.h: Likewise.
16667 * util/mkisofs/joliet.c: Likewise.
16668 * util/mkisofs/mkisofs.c: Likewise.
16669 * util/mkisofs/mkisofs.h: Likewise.
16670 * util/mkisofs/rock.c: Likewise.
16671 * util/mkisofs/tree.c: Likewise.
16672 * util/mkisofs/write.c: Likewise.
16673
16674 * util/mkisofs/eltorito.c (rcsid): Remove.
16675 * util/mkisofs/hash.c: Likewise.
16676 * util/mkisofs/joliet.c: Likewise.
16677 * util/mkisofs/name.c: Likewise.
16678 * util/mkisofs/rock.c: Likewise.
16679 * util/mkisofs/tree.c: Likewise.
16680 * util/mkisofs/write.c: Likewise.
16681
1dabbc77
RM
166822009-11-18 Robert Millan <rmh.grub@aybabtu.com>
16683
16684 * util/mkisofs/match.c: Rewrite from scratch, using a linked list
16685 instead of static allocation.
16686 * util/mkisofs/match.h: Likewise.
16687
633877cb
RM
166882009-11-18 Robert Millan <rmh.grub@aybabtu.com>
16689
3bc7896c
RM
16690 * po/POTFILES-shell: New file. List `util/grub.d/10_kfreebsd.in'
16691 and `util/grub.d/10_linux.in'.
633877cb
RM
16692 * Makefile.in (po/$(PACKAGE).pot): Process `po/POTFILES-shell' for
16693 translatable Shell files.
16694
af1c0c85
RM
166952009-11-18 Robert Millan <rmh.grub@aybabtu.com>
16696
16697 * Makefile.in ($(srcdir)/aclocal.m4): New target.
16698
769ae37b
RM
166992009-11-17 Robert Millan <rmh.grub@aybabtu.com>
16700
16701 * INSTALL: Document Automake is needed for bootstrap.
3bc7896c 16702 * po/ca.po: Fix PO-Revision-Date and Language-Team fields.
769ae37b
RM
16703 * util/grub.d/10_kfreebsd.in (bindir): New variable.
16704 Add gettext initialization.
16705 (kfreebsd_entry): Make menuentry output translatable.
16706
167072009-11-17 Robert Millan <rmh.grub@aybabtu.com>
16708
16709 * Makefile.in (XGETTEXT, MSGMERGE, MSGFMT): New variables.
16710 (po/$(PACKAGE).pot): Replace `xgettext' with `$(XGETTEXT)'.
16711 (po/*.po): Replace `msgmerge' with `$(MSGMERGE)'.
16712 (po/%.mo): Replace `msgfmt' with `$(MSGFMT)'.
16713 (LINGUAS): Auto-generate using `po/LINGUAS'.
3bc7896c 16714 * po/LINGUAS: New file.
769ae37b
RM
16715
167162009-11-17 Robert Millan <rmh.grub@aybabtu.com>
16717
16718 * configure.ac: Call AM_GNU_GETTEXT() (defines localedir, among
16719 other things).
16720 * Makefile.in (CPPFLAGS): Add `-DLOCALEDIR=\"$(localedir)\"'.
16721 * util/i386/pc/grub-mkimage.c (main): Issue setlocale() and
16722 bindtextdomain() calls for gettext initialization.
16723
167242009-11-17 Robert Millan <rmh.grub@aybabtu.com>
16725
16726 * gnulib/progname.c: New file (imported from Gnulib).
16727 * gnulib/progname.h: Likewise.
16728 * conf/i386-pc.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
16729 * util/i386/pc/grub-mkimage.c: Include `"progname.h"'.
16730 (usage): Replace `progname' with `program_name'.
16731 (main): Use set_program_name() for program name initialization.
16732
167332009-11-17 Robert Millan <rmh.grub@aybabtu.com>
16734
16735 * conf/common.rmk (grub_mkisofs_CFLAGS): Move `-I$(srcdir)/gnulib'
16736 from here ...
16737 * Makefile.in (CPPFLAGS): ... to here.
16738
167392009-11-16 Robert Millan <rmh.grub@aybabtu.com>
16740
16741 * aclocal.m4: Move from here ...
16742 * acinclude.m4: ... to here.
16743 * autogen.sh: Add call to `aclocal'.
16744 * configure.ac: Add AM_INIT_AUTOMAKE() after AC_INIT() call.
16745
167462009-11-16 Robert Millan <rmh.grub@aybabtu.com>
16747
16748 * Makefile.in (CLEANFILES): Add `po/*.mo'.
16749 (LINGUAS): New variable.
16750 (all-local): Add `$(foreach lang, $(LINGUAS), po/$(lang).mo)'.
16751 (install-local): Install MO files.
16752 (po/$(PACKAGE).pot, po/*.po, po/%.mo): New rules.
16753 * include/grub/i18n.h: New file.
3bc7896c
RM
16754 * po/POTFILES: New file.
16755 * po/ca.po: New file.
769ae37b
RM
16756 * util/grub.d/10_linux.in (bindir): New variable.
16757 Add gettext initialization.
16758 (linux_entry): Make menuentry output translatable.
16759 * util/i386/pc/grub-mkimage.c: Include `<grub/i18n.h>'.
16760 (usage): Make --help output translatable.
16761 (main): Initialize gettext.
16762
02c0a6ad
RM
167632009-11-17 Robert Millan <rmh.grub@aybabtu.com>
16764
16765 * import_gcry.py: New file (written by Vladimir with minor
16766 adjustments).
16767 * autogen.sh: Use import_gcry.py to auto-generate GRUB-ified
16768 ciphers.
16769 * INSTALL: Document that Python is required for bootstrap.
16770
167712009-11-17 Robert Millan <rmh.grub@aybabtu.com>
16772
16773 Import ciphers from libgcrypt 1.4.4.
16774
16775 * lib/libgcrypt/cipher/ChangeLog
16776 * lib/libgcrypt/cipher/ac.c
16777 * lib/libgcrypt/cipher/arcfour.c
16778 * lib/libgcrypt/cipher/bithelp.h
16779 * lib/libgcrypt/cipher/blowfish.c
16780 * lib/libgcrypt/cipher/camellia-glue.c
16781 * lib/libgcrypt/cipher/camellia.c
16782 * lib/libgcrypt/cipher/camellia.h
16783 * lib/libgcrypt/cipher/cast5.c
16784 * lib/libgcrypt/cipher/cipher.c
16785 * lib/libgcrypt/cipher/crc.c
16786 * lib/libgcrypt/cipher/des.c
16787 * lib/libgcrypt/cipher/dsa.c
16788 * lib/libgcrypt/cipher/ecc.c
16789 * lib/libgcrypt/cipher/elgamal.c
16790 * lib/libgcrypt/cipher/hash-common.c
16791 * lib/libgcrypt/cipher/hash-common.h
16792 * lib/libgcrypt/cipher/hmac-tests.c
16793 * lib/libgcrypt/cipher/md.c
16794 * lib/libgcrypt/cipher/md4.c
16795 * lib/libgcrypt/cipher/md5.c
16796 * lib/libgcrypt/cipher/primegen.c
16797 * lib/libgcrypt/cipher/pubkey.c
16798 * lib/libgcrypt/cipher/rfc2268.c
16799 * lib/libgcrypt/cipher/rijndael-tables.h
16800 * lib/libgcrypt/cipher/rijndael.c
16801 * lib/libgcrypt/cipher/rmd.h
16802 * lib/libgcrypt/cipher/rmd160.c
16803 * lib/libgcrypt/cipher/rsa.c
16804 * lib/libgcrypt/cipher/seed.c
16805 * lib/libgcrypt/cipher/serpent.c
16806 * lib/libgcrypt/cipher/sha1.c
16807 * lib/libgcrypt/cipher/sha256.c
16808 * lib/libgcrypt/cipher/sha512.c
16809 * lib/libgcrypt/cipher/tiger.c
16810 * lib/libgcrypt/cipher/twofish.c
16811 * lib/libgcrypt/cipher/whirlpool.c
16812
af2f93ac
RM
168132009-11-16 Robert Millan <rmh.grub@aybabtu.com>
16814
16815 Fix build for systems without error().
16816
16817 * gnulib/error.c: New file (imported from Gnulib).
16818 * gnulib/error.h: Likewise.
16819 * conf/common.rmk (grub_mkisofs_SOURCES): Add `gnulib/error.c'.
16820 * util/mkisofs/mkisofs.c (program_name): Remove `static' qualifier
16821 (this variable is now used by error()).
16822
73fb3dd5
FZ
168232009-11-16 Felix Zielcke <fzielcke@z-51.de>
16824
814f5e96
FZ
16825 * util/mkisofs/name.c (iso9660_file_length): Use isascii macro
16826 instead of relying that char is signed.
73fb3dd5 16827
a691ca33
VS
168282009-11-16 Vladimir Serbinenko <phcoder@gmail.com>
16829
16830 * fs/i386/pc/pxe.c (grub_pxefs_open): Correctly handle PXE choosing
16831 blocksize different from specified.
16832 (grub_pxefs_read): Likewise.
16833
2af8f0f4
FZ
168342009-11-16 Felix Zielcke <fzielcke@z-51.de>
16835
16836 Enable ata.mod on x86_64-efi, i386-efi and i386-ieee1275.
16837
16838 * disk/ata.c (grub_ata_dumpinfo): Add a cast.
16839 (grub_ata_readwrite): Likewise. Update 2 format strings.
16840 (grub_atapi_read): Likewise.
16841
16842 * conf/i386-coreboot.rmk (pkglib_MODULES): Move `ata.mod' from here ...
16843 * conf/i386.rmk (pkglib_MODULES): ... to here ...
16844 * conf/x86_64-efi.rmk (pkglib_MODULES): ... and here.
16845 * conf/i386-coreboot.rmk (ata_mod_SOURCES, ata_mod_CFLAGS)
16846 (ata_mod_LDFLAGS): Move from here ...
16847 * conf/i386.rmk: ... to here ...
16848 * conf/x86_64-efi.rmk: ... and here.
16849 * conf/i386-pc.rmk (pkglib_MODULES): Remove `ata.mod'
16850 (ata_mod_SOURCES, ata_mod_CFLAGS, ata_mod_LDFLAGS): Remove.
16851
83bdecaf
RM
168522009-11-16 Robert Millan <rmh.grub@aybabtu.com>
16853
16854 Relicense multiboot.h, with RMS' blessing.
16855
16856 * include/multiboot.h: Change to X11 license.
16857
fd6fd3d7
RM
168582009-11-15 Robert Millan <rmh.grub@aybabtu.com>
16859
16860 Support --version in grub-mkisofs.
16861
16862 * util/mkisofs/mkisofs.c (rcsid): Remove variable.
16863 (OPTION_VERSION): New macro.
16864 (ld_options): Recognize --version.
16865 (usage): Move `program_name' from here ...
16866 (program_name): ... to here. Add `static' qualifier.
16867 (main): Recognize `OPTION_VERSION'.
16868
16a88c49
FZ
168692009-11-15 Felix Zielcke <fzielcke@z-51.de>
16870
16871 * Makefile.in (TARGET_CPPFLAGS): Replace `-isystem=$(srcdir)/include'
16872 with `-nostdinc -isystem $(shell $(TARGET_CC) -print-file-name=include)'.
16873
a4158476
RM
168742009-11-14 Robert Millan <rmh.grub@aybabtu.com>
16875
16876 Fix help2man generation for mkisofs.
16877
16878 * util/mkisofs/mkisofs.c (ld_options): Recognize --help.
16879 (usage): Send output to stdout (rather than stderr).
16880
fc2208b0
RM
168812009-11-14 Robert Millan <rmh.grub@aybabtu.com>
16882
16883 * conf/i386-coreboot.rmk (grub_mkrescue_SOURCES): Replace
16884 `util/i386/coreboot/grub-mkrescue.in' with `util/grub-mkrescue.in'.
16885 * conf/i386-pc.rmk (grub_mkrescue_SOURCES): Replace
16886 `util/i386/pc/grub-mkrescue.in' with `util/grub-mkrescue.in'.
16887 (bin_SCRIPTS): Add `grub-mkfloppy'.
16888 (grub_mkfloppy_SOURCES): New variable.
16889
16890 * util/grub-mkrescue.in: New file.
16891 * util/i386/pc/grub-mkfloppy.in: New file.
16892
16893 * util/i386/coreboot/grub-mkrescue.in: Remove.
16894 * util/i386/pc/grub-mkrescue.in: Remove.
16895
8d0edf4a
RM
168962009-11-13 Robert Millan <rmh.grub@aybabtu.com>
16897
16898 * include/grub/multiboot.h (struct grub_multiboot_header): Move
16899 from here ...
16900 * include/multiboot.h (struct multiboot_header): ... to here. Update
16901 all users.
16902 * include/grub/multiboot.h (struct grub_multiboot_info): Move
16903 from here ...
16904 * include/multiboot.h (struct multiboot_info): ... to here. Update
16905 all users.
16906 * include/grub/multiboot.h (struct grub_multiboot_mmap_entry): Move
16907 from here ...
16908 * include/multiboot.h (struct multiboot_mmap_entry): ... to here.
16909 Update all users.
16910 * include/grub/multiboot.h (struct grub_mod_list): Move
16911 from here ...
16912 * include/multiboot.h (struct multiboot_mod_list): ... to here.
16913 Update all users.
16914
a73f5969
RM
169152009-11-13 Robert Millan <rmh.grub@aybabtu.com>
16916
16917 * include/multiboot2.h (multiboot_word): Rename from this ...
16918 (multiboot2_word): ... to this. Update all users.
16919 (multiboot_header): Rename from this ...
16920 (multiboot2_header): ... to this. Update all users.
16921 (multiboot_tag_header): Rename from this ...
16922 (multiboot2_tag_header): ... to this. Update all users.
16923 (multiboot_tag_start): Rename from this ...
16924 (multiboot2_tag_start): ... to this. Update all users.
16925 (multiboot_tag_name): Rename from this ...
16926 (multiboot2_tag_name): ... to this. Update all users.
16927 (multiboot_tag_module): Rename from this ...
16928 (multiboot2_tag_module): ... to this. Update all users.
16929 (multiboot_tag_memory): Rename from this ...
16930 (multiboot2_tag_memory): ... to this. Update all users.
16931 (multiboot_tag_unused): Rename from this ...
16932 (multiboot2_tag_unused): ... to this. Update all users.
16933 (multiboot_tag_end): Rename from this ...
16934 (multiboot2_tag_end): ... to this. Update all users.
16935
1c8927f0
RM
169362009-11-13 Robert Millan <rmh.grub@aybabtu.com>
16937
16938 Disable Multiboot2 in i386-ieee1275. It didn't actually work, and on
16939 this platform we should support Multiboot1 first.
16940
16941 * conf/i386-ieee1275.rmk (pkglib_MODULES): Remove `multiboot.mod'.
16942 (multiboot_mod_SOURCES, multiboot_mod_CFLAGS)
16943 (multiboot_mod_LDFLAGS, multiboot_mod_ASFLAGS): Remove.
16944
6e1e0d89
RM
169452009-11-12 Robert Millan <rmh.grub@aybabtu.com>
16946
16947 * util/mkisofs/eltorito.c (init_boot_catalog): Handle return code
16948 of write calls (converting them to fwrite() if they aren't already).
16949 (get_torito_desc): Likewise.
16950 * util/mkisofs/rock.c (generate_rock_ridge_attributes): Likewise.
16951
7f2b34d8
RM
169522009-11-12 Robert Millan <rmh.grub@aybabtu.com>
16953
16954 * util/i386/pc/grub-install.in: Move from here ...
16955 * util/grub-install.in: ... to here. Update all users.
16956
c0ef3311
CW
169572009-11-11 Colin Watson <cjwatson@ubuntu.com>
16958
16959 * util/powerpc/ieee1275/grub-mkrescue.in: Fix --version output.
16960
e1f240ff
RM
169612009-11-11 Robert Millan <rmh.grub@aybabtu.com>
16962
16963 Support for El Torito without floppy emulation.
16964
16965 * util/mkisofs/eltorito.c: Include `<errno.h>'.
16966 (init_boot_catalog): Improve error handling.
16967 (get_torito_desc): Don't use floppy emulation unless requested by
16968 user. Patch boot information table when requested via
16969 `-boot-info-table'.
16970 * util/mkisofs/iso9660.h (struct eltorito_boot_info): New struct.
16971 * util/mkisofs/mkisofs.c (use_eltorito_emul_floppy)
16972 (use_boot_info_table): New variables.
16973 (OPTION_BOOT_INFO_TABLE, OPTION_NO_EMUL_BOOT)
16974 (OPTION_ELTORITO_EMUL_FLOPPY): New macros.
16975 (ld_options): Handle `-boot-info-table', `-no-emul-boot' and
16976 `--eltorito-emul-floppy'.
16977 (main): Handle `OPTION_BOOT_INFO_TABLE', `OPTION_NO_EMUL_BOOT'
16978 and `OPTION_ELTORITO_EMUL_FLOPPY'.
16979 * util/mkisofs/mkisofs.h (use_eltorito_emul_floppy)
16980 (use_boot_info_table, get_731): New prototypes.
16981 * util/mkisofs/write.c (get_731): New function.
16982
af7d4de5
FZ
169832009-11-11 Felix Zielcke <fzielcke@z-51.de>
16984
16985 Fix the generation of the man page.
16986
16987 * util/pc/i386/grub-install.in: Source
16988 `${libdir}/grub/grub-mkconfig_lib' after options have been parsed.
16989
2c55dbc0
RM
169902009-11-11 Robert Millan <rmh.grub@aybabtu.com>
16991
16992 Large file support for grub-mkisofs.
16993
16994 * conf/common.rmk (grub_mkisofs_CFLAGS): Add `-D_FILE_OFFSET_BITS=64'.
16995 * util/mkisofs/mkisofs.c (next_extent, last_extent)
16996 (session_start): Upgrade type to `uint64_t'. Update all users.
16997 * util/mkisofs/mkisofs.h: Include `<stdint.h>'.
16998 (struct directory_entry): Upgrade type of `starting_block' and
16999 `size' to `uint64_t'. Update all users.
17000 (struct deferred): Remove unused structure.
17001 (xfwrite): Upgrade type of `count' and `size' to `uint64_t'.
17002 Update all users.
17003 * util/mkisofs/tree.c (stat_filter, lstat_filter): Return -1 when
17004 file is larger than `UINT32_MAX'.
17005 * util/mkisofs/write.c (xfwrite): Upgrade type of `count' and
17006 `size' to `uint64_t'. Update all users. Fix handling of fwrite()
17007 return value.
17008 (struct deferred_write): Upgrade type of `extent' and `size' to
17009 `uint64_t'. Update all users.
17010 (last_extent_written): Upgrade type to `uint64_t'. Update all
17011 users.
17012 (write_one_file): Upgrade type of `count' and `size' to `uint64_t'.
17013 Update all users. Upgrade type of `remain' to `int64_t' and
17014 `use' to `size_t'. Use error() to handle fread() errors.
17015 (write_files): Rely on write_one_file() rather than calling
17016 xfwrite() directly.
17017
6a9cead5
FZ
170182009-11-09 Felix Zielcke <fzielcke@z-51.de>
17019
17020 * util/mkisofs/mkisofs.c (ld_options): Fix a spelling mistake.
17021
4825d790
RM
170222009-11-09 Robert Millan <rmh.grub@aybabtu.com>
17023
17024 * util/mkisofs/fnmatch.c: Remove.
17025 * util/mkisofs/getopt1.c: Likewise.
17026 * util/mkisofs/getopt.c: Likewise.
17027 * conf/common.rmk (grub_mkisofs_SOURCES): Replace
17028 `util/mkisofs/fnmatch.c', `util/mkisofs/getopt1.c' and
17029 `util/mkisofs/getopt.c' with `gnulib/fnmatch.c',
17030 `gnulib/getopt1.c' and `gnulib/getopt.c'.
17031 (grub_mkisofs_CFLAGS): Add `-I$(srcdir)/gnulib'.
17032
17033 * configure.ac: Detect `mingw32msvc' host_os.
17034 Check for lstat(), getuid() and getgid().
17035
17036 * util/mkisofs/joliet.c: Include `<stdint.h>'. Replace all
17037 instances of `u_char' with `uint8_t'.
17038
17039 * util/mkisofs/mkisofs.h: Include `<sys/stat.h>'.
17040 [!HAVE_GETUID] (getuid): New function (stub).
17041 [!HAVE_GETGID] (getgid): Likewise.
17042 [!HAVE_LSTAT] (lstat): Likewise.
17043 [!S_IROTH] (S_IROTH): New macro (dummy).
17044 [!S_IRGRP] (S_IRGRP): Likewise.
17045
84b860d8
RM
170462009-11-09 Robert Millan <rmh.grub@aybabtu.com>
17047
17048 * gnulib/fnmatch_loop.c (EXT): Fix warning (signed and unsigned type in
17049 conditional expression).
17050
66e9b712
RM
170512009-11-09 Robert Millan <rmh.grub@aybabtu.com>
17052
17053 Import from Gnulib.
17054
17055 * gnulib/fnmatch.c: New file.
17056 * gnulib/fnmatch.h: Likewise.
17057 * gnulib/fnmatch_loop.c: Likewise.
17058 * gnulib/getopt.c: Likewise.
17059 * gnulib/getopt.h: Likewise.
17060 * gnulib/getopt1.c: Likewise.
17061 * gnulib/getopt_int.h: Likewise.
17062 * gnulib/gettext.h: Likewise.
17063
34f4a5b0
RM
170642009-11-09 Robert Millan <rmh.grub@aybabtu.com>
17065
17066 * normal/dyncmd.c (read_command_list): Replace `0' with `NULL'.
17067 * normal/handler.c (read_handler_list): Likewise.
17068
ac451143
RM
170692009-11-09 Robert Millan <rmh.grub@aybabtu.com>
17070
17071 Misc cleanup.
17072
17073 * kern/command.c (grub_register_command_prio): Use
17074 grub_zalloc() instead of explicitly zeroing data.
17075 * kern/list.c: Include `<grub/mm.h>'.
17076 (grub_named_list_find): Replace `0' with `NULL'.
17077 * normal/autofs.c (struct grub_fs_module_list): Remove ad-hoc type.
17078 (fs_module_list): Change type to `grub_named_list_t'. Update all
17079 users.
17080 * normal/dyncmd.c (read_command_list): Add space between function
17081 call and parenthesis.
17082 * normal/handler.c (read_handler_list): Likewise.
17083
4089b167
RM
170842009-11-09 Robert Millan <rmh.grub@aybabtu.com>
17085
17086 * normal/auth.c (punishment_delay): Moved from here ...
17087 (grub_auth_strcmp): ... to here (inside function).
17088
325f5037
RM
170892009-11-09 Robert Millan <rmh.grub@aybabtu.com>
17090
17091 * include/grub/list.h (struct grub_named_list): Remove `const'
17092 qualifier from `name'.
17093 (struct grub_prio_list): Likewise.
17094
7aea29a3
RM
170952009-11-09 Robert Millan <rmh.grub@aybabtu.com>
17096
17097 * normal/auth.c: Include `<grub/time.h>'.
17098 (grub_auth_strcmp): Replace `strcmp' with `grub_strcmp'.
17099
3fd6f044
RM
171002009-11-09 Robert Millan <rmh.grub@aybabtu.com>
17101
17102 * normal/auth.c (punishment_delay): New variable.
17103 (grub_auth_strcmp): Rewrite using grub_get_time_ms ().
17104 (grub_auth_check_authentication): Punish failed login attempts with
17105 an incremental (2^N) delay.
17106
a4cd68e4
RM
171072009-11-09 Robert Millan <rmh.grub@aybabtu.com>
17108
17109 * conf/common.rmk (grub_mkisofs_CFLAGS): Prefix include
17110 path with $(srcdir).
17111
7ad12f43
VS
171122009-11-09 Vladimir Serbinenko <phcoder@gmail.com>
17113
17114 * normal/auth.c (grub_auth_strcmp): Fixed incorrect variable usage.
17115
c1129f03
RM
171162009-11-09 Robert Millan <rmh.grub@aybabtu.com>
17117
17118 * util/i386/coreboot/grub-mkrescue.in: New file.
17119 * conf/i386-coreboot.rmk (bin_SCRIPTS, grub_mkrescue_SOURCES): New
17120 variables.
17121
17122 * conf/common.rmk (bin_UTILITIES): Add `grub-mkisofs'.
17123 (grub_mkisofs_SOURCES, grub_mkisofs_CFLAGS): New variables.
17124 * configure.ac: Add header and function checks to satisfy grub-mkisofs
17125 requirements.
17126 * util/mkisofs/defaults.h: New file.
17127 * util/mkisofs/eltorito.c: Likewise.
17128 * util/mkisofs/exclude.h: Likewise.
17129 * util/mkisofs/fnmatch.c: Likewise.
17130 * util/mkisofs/getopt.c: Likewise.
17131 * util/mkisofs/getopt1.c: Likewise.
17132 * util/mkisofs/hash.c: Likewise.
17133 * util/mkisofs/include/fctldefs.h: Likewise.
17134 * util/mkisofs/include/mconfig.h: Likewise.
17135 * util/mkisofs/include/prototyp.h: Likewise.
17136 * util/mkisofs/include/statdefs.h: Likewise.
17137 * util/mkisofs/iso9660.h: Likewise.
17138 * util/mkisofs/joliet.c: Likewise.
17139 * util/mkisofs/match.c: Likewise.
17140 * util/mkisofs/match.h: Likewise.
17141 * util/mkisofs/mkisofs.c: Likewise.
17142 * util/mkisofs/mkisofs.h: Likewise.
17143 * util/mkisofs/multi.c: Likewise.
17144 * util/mkisofs/name.c: Likewise.
17145 * util/mkisofs/rock.c: Likewise.
17146 * util/mkisofs/tree.c: Likewise.
17147 * util/mkisofs/write.c: Likewise.
17148
ec8bb77d
VS
171492009-11-09 Vladimir Serbinenko <phcoder@gmail.com>
17150
17151 * normal/auth.c (grub_auth_strcmp): Fix bug which resulted in function
17152 being insecure.
17153
3716b12c
RM
171542009-11-08 Robert Millan <rmh.grub@aybabtu.com>
17155
17156 * util/i386/pc/grub-mkrescue.in: Fix miss-identification as
17157 `grub-mkimage' (and use $0 when possible).
17158
b97b7b91
RM
171592009-11-08 Robert Millan <rmh.grub@aybabtu.com>
17160
17161 * kern/i386/multiboot_mmap.c (grub_machine_mmap_init): Improve
17162 error message for excessively large memory map.
17163
04114812
RM
171642009-11-08 Robert Millan <rmh.grub@aybabtu.com>
17165
17166 * autogen.sh: Use `sh gendistlist.sh' to avoid reliing on
17167 executable bit.
17168
e4eb2373
RM
171692009-11-08 Robert Millan <rmh.grub@aybabtu.com>
17170
17171 * kern/i386/multiboot_mmap.c (grub_machine_mmap_init): Improve error
17172 message for coreboot users.
17173
c926e1d5 171742009-11-07 Robert Millan <rmh.grub@aybabtu.com>
17175
17176 Fix build with GNU gold.
17177
17178 * conf/i386-pc.rmk (boot_img_LDFLAGS, pxeboot_img_LDFLAGS)
17179 (diskboot_img_LDFLAGS, lnxboot_img_LDFLAGS)
17180 (cdboot_img_LDFLAGS): Prepend `0x' qualifier to hexadecimal
17181 link addresses.
17182 * aclocal.m4: Likewise.
17183
86e5b1db 171842009-11-04 Felix Zielcke <fzielcke@z-51.de>
17185
17186 * configure.ac (AC_PREREQ): Bump to 2.59d.
17187 * INSTALL: Make it more clear when Autoconf and Ruby are
17188 needed and when to run `./autogen.sh'.
17189
246cd78f 171902009-11-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
17191
17192 * util/grub.d/30_os-prober.in: Restore default behavior for unsupported
17193 OSes.
17194
4f9dfb37 171952009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
17196
17197 * util/grub.d/30_os-prober.in: Add GNU/Hurd support
17198
b82bd5e1 171992009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
17200
17201 * util/grub.d/10_hurd.in: Drop /dev/ prefix from root device path before
17202 giving it to GNU Mach.
17203
ff1a9bca 172042009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
17205
17206 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Subtract 1 from
17207 GNU partition number to get internal GRUB partition number.
17208
61697d9c 172092009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
17210
17211 * util/grub.d/10_hurd.in: Call prepare_grub_to_access_device
17212 ${GRUB_DEVICE_BOOT} before loading /boot kernel.
17213
a50569e1 172142009-11-01 Robert Millan <rmh.grub@aybabtu.com>
17215
17216 Based on patch from BVK Chaitanya <bvk.groups@gmail.com>
17217 * kern/misc.c (grub_strchr, grub_strrchr): Fix to handle c == '\0'
17218 case.
17219
5b153867 172202009-11-01 Felix Zielcke <fzielcke@z-51.de>
17221
17222 * Makefile.in (TARGET_CPPFLAGS): Add `-I$(srcdir)/include'.
17223
d9e2cd70 172242009-10-30 Robert Millan <rmh.grub@aybabtu.com>
17225
17226 Fix build problem.
17227
17228 * Makefile.in (TARGET_CPPFLAGS): Replace `-nostdinc' with
17229 `-isystem=$(srcdir)/include'.
17230
805111a4 172312009-10-30 Robert Millan <rmh.grub@aybabtu.com>
17232
17233 * util/i386/pc/grub-install.in: Remove hint that device.map should be
17234 checked (grub-install doesn't currently rely on it).
17235
fa6e945f 172362009-10-29 Robert Millan <rmh.grub@aybabtu.com>
17237
17238 Revert SVN r2660.
17239
17240 * conf/common.rmk (script/sh/lexer.c_DEPENDENCIES): Moved from here ...
17241 * conf/i386-coreboot.rmk (script/sh/lexer.c_DEPENDENCIES): ... to here.
17242 * conf/i386-efi.rmk (script/sh/lexer.c_DEPENDENCIES): ... and here.
17243 * conf/i386-ieee1275.rmk: Likewise.
17244 * conf/i386-pc.rmk: Likewise.
17245 * conf/powerpc-ieee1275.rmk: Likewise.
17246 * conf/sparc64-ieee1275.rmk: Likewise.
17247 * conf/x86_64-efi.rmk: Likewise.
17248
cee15086 172492009-10-28 Robert Millan <rmh.grub@aybabtu.com>
17250
17251 * Makefile.in (TARGET_CPPFLAGS): Add `-nostdinc'.
17252
95b9239e 172532009-10-28 Robert Millan <rmh.grub@aybabtu.com>
17254
17255 * include/grub/misc.h: Stop checking for APPLE_CC.
17256
2ed19dfd 172572009-10-28 Robert Millan <rmh.grub@aybabtu.com>
17258
17259 * kern/i386/coreboot/init.c (grub_exit): Reimplement in a way that
17260 doesn't cause an infinite call loop.
17261
fdcdde19 172622009-10-28 Felix Zielcke <fzielcke@z-51.de>
17263
17264 * commands/acpi.c (grub_cmd_acpi): Fix the out of memory error
17265 strings.
17266
cefabfe1 172672009-10-26 Robert Millan <rmh.grub@aybabtu.com>
17268
17269 * autogen.sh: Support addition of external modules via `GRUB_CONTRIB'
17270 variable.
17271 * Makefile.in: Likewise.
17272
ed96ab6d 172732009-10-26 Robert Millan <rmh.grub@aybabtu.com>
17274
17275 * gendistlist.sh: Simplify .svn check. Skip .bzr as well.
17276
0579b753 172772009-10-26 Robert Millan <rmh.grub@aybabtu.com>
17278
17279 * Makefile.in (RMKFILES): Rewrite using $(wildcard).
17280
478df409 172812009-10-26 Robert Millan <rmh.grub@aybabtu.com>
17282
17283 * disk/scsi.c: Remove `<grub/machine/kernel.h>' (not needed).
17284
083d1679 172852009-10-26 Robert Millan <rmh.grub@aybabtu.com>
17286
17287 * gensymlist.sh.in (COMPILE_TIME_ASSERT): Copy macro declaration
17288 from here ...
17289 * include/grub/misc.h (COMPILE_TIME_ASSERT): ... to here.
17290
5947ae32 172912009-10-26 Robert Millan <rmh.grub@aybabtu.com>
17292
17293 * Makefile.in (docs/grub.info): Use make syntax to ignore errors
17294 in $(MAKEINFO) invocation. This makes it clear in output that
17295 errors are being ignored.
17296
94180ff6 172972009-10-26 Robert Millan <rmh.grub@aybabtu.com>
17298
17299 * conf/i386-coreboot.rmk (script/sh/lexer.c_DEPENDENCIES): Moved
17300 from here ...
17301 * conf/common.rmk (script/sh/lexer.c_DEPENDENCIES): ... to here.
17302 * conf/i386-efi.rmk (script/sh/lexer.c_DEPENDENCIES): Remove.
17303 * conf/i386-ieee1275.rmk: Likewise.
17304 * conf/i386-pc.rmk: Likewise.
17305 * conf/powerpc-ieee1275.rmk: Likewise.
17306 * conf/sparc64-ieee1275.rmk: Likewise.
17307 * conf/x86_64-efi.rmk: Likewise.
17308
9031b03a 173092009-10-26 Colin Watson <cjwatson@ubuntu.com>
17310
17311 * util/grub-editenv.c (main): If only a command is given, use
17312 DEFAULT_DIRECTORY "/" GRUB_ENVBLK_DEFCFG as a default file name.
17313 (usage): FILENAME is now optional and has a default.
17314
e4f6809b 173152009-10-26 Colin Watson <cjwatson@ubuntu.com>
17316
17317 Improve grub-mkconfig performance when there are several menu
17318 entries on a single filesystem.
17319
17320 * util/grub.d/10_linux.in (linux_entry): Cache the output of
17321 prepare_grub_to_access_device.
17322 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
17323 * util/grub.d/30_os-prober.in: Likewise.
17324
67937d4d 173252009-10-26 Robert Millan <rmh.grub@aybabtu.com>
17326
17327 * util/grub.d/10_freebsd.in: Remove.
17328 * util/grub.d/10_kfreebsd.in: New file (based on 10_linux.in).
17329 * configure.ac: Set host_kernel=kfreebsd for FreeBSD and GNU/kFreeBSD.
17330
ee3756cc 173312009-10-26 Robert Millan <rmh.grub@aybabtu.com>
17332
5c35048e 17333 * docs/grub.cfg: Fix example usage of *BSD loaders.
ee3756cc 17334
4dea1c6f 173352009-10-25 Robert Millan <rmh.grub@aybabtu.com>
17336
17337 * util/i386/pc/grub-setup.c (setup): Add missing parameter to
17338 grub_util_error() call.
17339
042484d7 173402009-10-25 Robert Millan <rmh.grub@aybabtu.com>
17341
17342 * include/grub/fs.h [GRUB_UTIL] (struct grub_fs): Add
17343 `reserved_first_sector' member.
17344 * fs/ext2.c [GRUB_UTIL] (grub_ext2_fs): Initialize
17345 `reserved_first_sector' to 1.
17346 * fs/fat.c [GRUB_UTIL] (grub_fat_fs): Likewise.
17347 * fs/ntfs.c [GRUB_UTIL] (grub_ntfs_fs): Likewise.
17348 * fs/hfsplus.c [GRUB_UTIL] (grub_hfsplus_fs): Likewise.
17349 * util/i386/pc/grub-setup.c (setup): Add safety check that probes for
17350 filesystems which begin at first sector.
17351 (options): New option --skip-fs-probe.
17352 (main): Handle --skip-fs-probe and pass it to setup().
17353
d64448a7 173542009-10-25 Robert Millan <rmh.grub@aybabtu.com>
17355
17356 * include/grub/misc.h: Fix wrong evaluation of APPLE_CC.
17357 (memset): Fix function prototype.
17358
508d42ec 173592009-10-25 Robert Millan <rmh.grub@aybabtu.com>
173602009-10-25 Vasily Averin <vvs@parallels.com>
17361
17362 * fs/ext2.c (grub_ext2_iterate_dir): Avoid infinite loop when
17363 `dirent.direntlen == 0'.
17364
b240e30c 173652009-10-25 Robert Millan <rmh.grub@aybabtu.com>
17366
17367 * fs/cpio.c [MODE_USTAR]: Initialize `tar' module instead of
17368 `cpio'.
17369 [! MODE_USTAR]: Initialize `cpio' module instead of `tar'.
17370
346e7fbe 173712009-10-25 Robert Millan <rmh.grub@aybabtu.com>
17372
17373 * configure.ac: Check for `__ashldi3', `__ashrdi3', `__lshrdi3',
17374 `__trampoline_setup' and `__ucmpdi2'.
17375 * include/grub/powerpc/libgcc.h: Only export symbols for functions
17376 that libgcc provides.
17377
cdb308b0 173782009-10-25 Robert Millan <rmh.grub@aybabtu.com>
17379
17380 * include/grub/powerpc/libgcc.h (memset): Remove function prototype.
17381 * include/grub/sparc64/libgcc.h (memset): Likewise.
17382 * include/grub/misc.h (memset, memcmp): New function prototypes.
17383
fb26abc2 173842009-10-25 Robert Millan <rmh.grub@aybabtu.com>
17385
17386 * fs/cpio.c [MODE_USTAR]: Finish `tar' module instead of
17387 `cpio'.
17388 [! MODE_USTAR]: Finish `cpio' module instead of `tar'.
17389
f6693890 173902009-10-25 Robert Millan <rmh.grub@aybabtu.com>
17391
17392 Patch from Samuel Thibault <samuel.thibault@ens-lyon.org>
17393 * docs/grub.cfg: Compensate for recent change in multiboot
17394 loader (since 2009-08-14 it won't pass filename to payload).
17395 * util/grub.d/10_hurd.in: Likewise.
17396
0933cdc0 173972009-10-21 Felix Zielcke <fzielcke@z-51.de>
17398
17399 * config.guess: Update to latest version from config git
17400 repository.
17401 * config.sub: Likewise.
17402
3b2fe8c2 174032009-10-20 Robert Millan <rmh.grub@aybabtu.com>
17404
17405 Fix build on sparc64.
17406
17407 * configure.ac: Perform checks for libgcc symbols before
17408 adding `-nostdlib' to LDFLAGS.
17409
46695a62 174102009-10-16 Vladimir Serbinenko <phcoder@gmail.com>
17411
17412 Let user specify OpenBSD root device.
17413
17414 * loader/i386/bsd.c (openbsd_root): New variable.
17415 (openbsd_opts): New option 'root'.
17416 (OPENBSD_ROOT_ARG): New macro.
17417 (grub_openbsd_boot): Use 'openbsd_root'.
17418 (grub_cmd_openbsd): Fill 'openbsd_root'.
17419
d2b6b7fc 174202009-10-16 Robert Millan <rmh.grub@aybabtu.com>
17421
17422 * NEWS: Misc adjustments.
17423
421bd7ac 174242009-10-16 Vladimir Serbinenko <phcoder@gmail.com>
17425
17426 * NEWS: Mentioned XNU, ACPI, gptsync, password and parttool.
17427
f1d29d87 174282009-10-16 Robert Millan <rmh.grub@aybabtu.com>
17429
17430 * configure.ac: Bump version to 1.97.
17431
6f3cd880 174322009-10-16 Colin Watson <cjwatson@ubuntu.com>
17433
17434 * configure.ac (TARGET_CFLAGS): Add -mno-mmx -mno-sse -mno-sse2
17435 -mno-3dnow on x86 architectures. Some toolchains enable these
17436 features by default, but they rely on registers that aren't enabled
17437 in GRUB. Thanks to Vladimir Serbinenko for the suggestion.
17438
035f7122 174392009-10-15 Robert Millan <rmh.grub@aybabtu.com>
17440
17441 Make entry text a bit more readable.
17442
17443 * util/grub.d/10_linux.in: Add `with' before `Linux'.
17444
44998e58 174452009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
17446
17447 * loader/i386/pc/xnu.c (grub_xnu_set_video): Fix loading splash image.
17448
cd2851b3 174492009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
17450
17451 * commands/xnu_uuid.c (grub_cmd_xnu_uuid): Remove duplicated bitwise
17452 operations.
17453
c6f3b249 174542009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
17455
17456 * configure.ac: Add missing dollar.
17457
6b5886ba 174582009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
17459
17460 Revert 2009-06-10 Pavel Roskin <proski@gnu.org>
17461
17462 * configure.ac: Put checks for __bswapsi2 and __bswapdi2.
17463 * include/grub/powerpc/libgcc.h: Don't use weak attribute for all
17464 exports.
17465 * include/grub/sparc64/libgcc.h: Likewise. Use
17466 preprocessor conditionals.
17467
e9d66f6d 174682009-10-14 Robert Millan <rmh.grub@aybabtu.com>
17469
17470 * conf/common.rmk (grub-dumpbios): Remove rule.
17471 (sbin_SCRIPTS, CLEANFILES): Remove `grub-dumpbios'.
17472 * util/grub-dumpbios.in: Remove file.
17473
9155bc17 174742009-10-14 Robert Millan <rmh.grub@aybabtu.com>
17475
17476 Refer to kernel of FreeBSD "kFreeBSD" to avoid confusion between
17477 the Operating System (FreeBSD) and its kernel (kernel of FreeBSD).
17478
17479 * loader/i386/bsd.c (grub_freebsd_boot): Read kernel environment
17480 from "kFreeBSD" namespace (rather than "FreeBSD"). Update all
17481 users.
17482
17483 (GRUB_MOD_INIT (bsd)): Rename "freebsd" command to "kfreebsd",
17484 "openbsd" to "kopenbsd", "netbsd" to "knetbsd", "freebsd_loadenv"
17485 to "kfreebsd_loadenv", "freebsd_module" to "kfreebsd_module",
17486 and "freebsd_module_elf" to "kfreebsd_module_elf". Update all
17487 users.
17488
bf7f7a18 174892009-10-12 Robert Millan <rmh.grub@aybabtu.com>
17490
17491 * term/tparm.c: Switch to GPLv3.
17492
86564c26 174932009-10-09 Robert Millan <rmh.grub@aybabtu.com>
17494
17495 * include/grub/i386/cpuid.h: Add header protection.
17496
5c936493 174972009-10-09 Robert Millan <rmh.grub@aybabtu.com>
17498
17499 Fail gracefuly when attempting to load 64-bit kFreeBSD on IA32 CPU.
17500
17501 * include/grub/i386/cpuid.h: New file.
17502 * commands/i386/cpuid.c: Include `<grub/i386/cpuid.h>'.
17503 (has_longmode): Rename to ...
17504 (grub_cpuid_has_longmode): ... this. Update all users. Remove
17505 `static' attribute.
17506 * loader/i386/bsd.c: Include `<grub/i386/cpuid.h>'.
17507 (grub_bsd_load_elf): Fail if load of 64-bit kernel was requested
17508 on a CPU that doesn't implement AMD64 instruction set.
17509
186e7cf2 175102009-10-06 Colin Watson <cjwatson@ubuntu.com>
17511
17512 * Makefile.in (docs/stamp-vti): Depend on configure.ac as well, so
17513 that version.texi is rebuilt on version number changes.
17514
83b65c4a 175152009-10-06 Colin Watson <cjwatson@ubuntu.com>
17516
17517 * Makefile.in: Don't set info_INFOS unless makeinfo was found.
17518 Fixes bug #27602.
17519
d244281c 175202009-10-06 Colin Watson <cjwatson@ubuntu.com>
17521
17522 * util/i386/pc/grub-install.in: Source
17523 ${libdir}/grub/grub-mkconfig_lib before option processing, in order
17524 that the --grub-probe option will work.
17525 * util/sparc64/ieee1275/grub-install.in: Likewise.
17526
da25306d 175272009-10-05 Robert Millan <rmh.grub@aybabtu.com>
17528
17529 * configure.ac: Bump version to 1.97~beta4.
17530
e8ee83c0 175312009-10-03 Robert Millan <rmh.grub@aybabtu.com>
17532
17533 Resync grub-mkdevicemap in x86_64-efi.
17534
17535 * conf/x86_64-efi.rmk (sbin_UTILITIES): Enable `grub-mkdevicemap'.
17536 (grub_mkdevicemap_SOURCES): Add missing `util/deviceiter.c' and
17537 `util/devicemap.c'.
17538
50dcabcf 175392009-10-01 Colin Watson <cjwatson@ubuntu.com>
17540
17541 * util/grub-editenv.c (create_envblk_file): Write new block with a
17542 .new suffix and then rename it into place, to ensure atomic
17543 creation.
17544
0e51c3a7 175452009-09-28 Robert Millan <rmh.grub@aybabtu.com>
17546
17547 Do not automatically install headers.
17548
17549 * Makefile.in (include_DATA): Remove. Update all users.
17550
31299a95 175512009-09-26 Robert Millan <rmh.grub@aybabtu.com>
17552
17553 * conf/common.rmk (pkglib_MODULES): Remove `lua.mod'.
17554 (lua_mod_SOURCES, lua_mod_CFLAGS, lua_mod_LDFLAGS): Remove.
17555
17556 * util/osdetect.lua: Remove.
17557 * script/lua/lauxlib.c: Likewise.
17558 * script/lua/ldebug.c: Likewise.
17559 * script/lua/grub_main.c: Likewise.
17560 * script/lua/lauxlib.h: Likewise.
17561 * script/lua/ldebug.h: Likewise.
17562 * script/lua/ltablib.c: Likewise.
17563 * script/lua/liolib.c: Likewise.
17564 * script/lua/lstrlib.c: Likewise.
17565 * script/lua/lualib.h: Likewise.
17566 * script/lua/ldo.c: Likewise.
17567 * script/lua/ldump.c: Likewise.
17568 * script/lua/ldo.h: Likewise.
17569 * script/lua/loslib.c: Likewise.
17570 * script/lua/lundump.c: Likewise.
17571 * script/lua/grub_lib.c: Likewise.
17572 * script/lua/ldblib.c: Likewise.
17573 * script/lua/lundump.h: Likewise.
17574 * script/lua/lmem.c: Likewise.
17575 * script/lua/grub_lib.h: Likewise.
17576 * script/lua/lmathlib.c: Likewise.
17577 * script/lua/lstate.c: Likewise.
17578 * script/lua/ltm.c: Likewise.
17579 * script/lua/lvm.c: Likewise.
17580 * script/lua/lmem.h: Likewise.
17581 * script/lua/lstate.h: Likewise.
17582 * script/lua/ltm.h: Likewise.
17583 * script/lua/ltable.c: Likewise.
17584 * script/lua/lvm.h: Likewise.
17585 * script/lua/llex.c: Likewise.
17586 * script/lua/lgc.c: Likewise.
17587 * script/lua/grub_lua.h: Likewise.
17588 * script/lua/loadlib.c: Likewise.
17589 * script/lua/lfunc.c: Likewise.
17590 * script/lua/lopcodes.c: Likewise.
17591 * script/lua/lparser.c: Likewise.
17592 * script/lua/ltable.h: Likewise.
17593 * script/lua/llex.h: Likewise.
17594 * script/lua/lgc.h: Likewise.
17595 * script/lua/lfunc.h: Likewise.
17596 * script/lua/lbaselib.c: Likewise.
17597 * script/lua/lopcodes.h: Likewise.
17598 * script/lua/lparser.h: Likewise.
17599 * script/lua/lzio.c: Likewise.
17600 * script/lua/linit.c: Likewise.
17601 * script/lua/lobject.c: Likewise.
17602 * script/lua/llimits.h: Likewise.
17603 * script/lua/lstring.c: Likewise.
17604 * script/lua/lzio.h: Likewise.
17605 * script/lua/lapi.c: Likewise.
17606 * script/lua/lcode.c: Likewise.
17607 * script/lua/lua.h: Likewise.
17608 * script/lua/lobject.h: Likewise.
17609 * script/lua/lstring.h: Likewise.
17610 * script/lua/lapi.h: Likewise.
17611 * script/lua/lcode.h: Likewise.
17612 * script/lua/luaconf.h: Likewise.
17613
cb8a2c38 176142009-09-26 Colin Watson <cjwatson@ubuntu.com>
17615
17616 * docs/grub.texi (Command-line and menu entry commands): Document
17617 date and echo commands.
17618
6b9b6276 176192009-09-24 Pavel Roskin <proski@gnu.org>
17620
17621 * include/grub/kernel.h (struct grub_module_header): Remove
17622 `grub_module_header_types'. Make `type' unsigned. Make `size'
17623 32-bit on all platforms.
17624 * util/elf/grub-mkimage.c (load_modules): Treat `type' as an
17625 8-bit field. Use grub_host_to_target32() for `size'.
17626 * util/i386/efi/grub-mkimage.c (make_mods_section): Likewise.
17627 * util/i386/pc/grub-mkimage.c (generate_image): Likewise.
17628 * util/sparc64/ieee1275/grub-mkimage.c (generate_image): Likewise.
17629
4e5a02a7 176302009-09-24 Robert Millan <rmh.grub@aybabtu.com>
17631
17632 Fix "lost keypress" bug in at_keyboard.
17633
17634 * term/i386/pc/at_keyboard.c (grub_at_keyboard_checkkey): New function.
17635 Checks for readyness of input buffer (without flushing it).
17636 (grub_at_keyboard_term): Use grub_at_keyboard_checkkey() rather
17637 than grub_at_keyboard_getkey_noblock() for `checkkey' struct member.
17638
c6dcedf6 176392009-09-24 Robert Millan <rmh.grub@aybabtu.com>
17640
17641 * util/i386/pc/grub-mkimage.c (generate_image): Enclose BIOS-specific
17642 size check within GRUB_MACHINE_PCBIOS section.
17643
74c958b1 176442009-09-24 Robert Millan <rmh.grub@aybabtu.com>
17645
17646 * include/grub/i386/at_keyboard.h (KEYBOARD_ISREADY): Negate
17647 return value.
17648 * term/i386/pc/at_keyboard.c (grub_keyboard_getkey): Negate
17649 KEYBOARD_ISREADY check.
17650 (grub_at_keyboard_checkkey): Rename to ...
17651 (grub_at_keyboard_getkey_noblock): ... this. Update all users.
17652 Remove gratuitous cast.
17653
ff420223 176542009-09-23 Colin Watson <cjwatson@ubuntu.com>
17655
17656 * configure.ac: Call AC_PROG_MKDIR_P.
17657 * Makefile.in (docs/stamp-vti): Create docs directory. Create
17658 version.texi in $(builddir) rather than $(srcdir).
17659 (docs/grub.info): Create docs directory. Prepend $(builddir)/docs
17660 to makeinfo's @include search path.
17661
d96875df 176622009-09-23 Felix Zielcke <fzielcke@z-51.de>
17663
17664 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Cope with `*.dpkg-*'
17665
9b3f8365 176662009-09-23 Felix Zielcke <fzielcke@z-51.de>
17667
17668 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Add support
17669 for `*.dpkg-new'.
17670
c44c90db 176712009-09-21 Colin Watson <cjwatson@ubuntu.com>
17672
17673 Build info documentation. Some code borrowed from Automake.
17674
17675 * configure.ac: Check for makeinfo.
17676 * Makefile.in (MAKEINFO, INFOS, info_INFOS): New variables.
17677 (MAINTAINER_CLEANFILES): Add $(INFOS), docs/stamp-vti, and
17678 docs/version.texi.
17679 (MOSTLYCLEANFILES): Add vti.tmp.
17680 (docs/version.texi, docs/stamp-vti): Update automatically.
17681 (docs/grub.info): Build info documentation. Use --force and ignore
17682 errors for now.
17683 (all-local): Add $(INFOS).
17684 (install-local): Install info files.
17685 (uninstall): Uninstall info files.
17686 * docs/version.texi: Remove from revision control. This file is
17687 automatically generated on build now.
17688 * gendistlist.sh: Add `*.info'.
17689
e0b37bb5 176902009-09-21 Felix Zielcke <fzielcke@z-51.de>
17691
17692 * kern/term.c: Fix indentation.
17693
5a78865b 176942009-09-21 Felix Zielcke <fzielcke@z-51.de>
17695
17696 * util/hostdisk.c: Fix a comment.
17697
dace7e8a 176982009-09-20 Robert Millan <rmh.grub@aybabtu.com>
17699
17700 Fix regression introduced in r2539.
17701
17702 * term/usb_keyboard.c (USB_HID_DEVICE_TO_HOST): Change from 0x61
17703 to 0xA1.
17704
a83d079b 177052009-09-19 Colin Watson <cjwatson@ubuntu.com>
17706
17707 * util/grub.d/30_os-prober.in: Don't throw away stderr from
4cbbccec 17708 os-prober. Under normal operation, it does not print anything to
17709 stderr; if it does, we need to debug it, and throwing away stderr
17710 makes that excessively difficult.
a83d079b 17711
be94a509 177122009-09-16 Vladimir Serbinenko <phcoder@gmail.com>
17713
17714 * mmap/mmap.c (grub_cmd_badram): Fix off-by-one error.
17715
63f745e8 177162009-09-16 Robert Millan <rmh.grub@aybabtu.com>
17717
17718 * aclocal.m4 (AC_LANG_PROGRAM): New macro. Overrides stock
17719 AC_LANG_PROGRAM from autoconf.
17720 (grub_ASM_USCORE, grub_PROG_OBJCOPY_ABSOLUTE): Add missing
17721 prototypes (fixes warning).
17722
17723 * configure.ac: Add `-Werror' to TARGET_CFLAGS unless
17724 `--disable-werror' was used.
17725
bbb2a70f 177262009-09-16 Robert Millan <rmh.grub@aybabtu.com>
17727
17728 * partmap/msdos.c (pc_partition_map_iterate): Fix possible use of
17729 uninitialized `lastaddr'.
17730
77c24f1d 177312009-09-15 Vladimir Serbinenko <phcoder@gmail.com>
17732
0f0b8c87 17733 * partmap/msdos.c (pc_partition_map_iterate): Detect and break loops.
77c24f1d 17734
07197f23 177352009-09-14 Colin Watson <cjwatson@ubuntu.com>
17736
17737 * commands/test.c (get_fileinfo): Return immediately if
17738 grub_fs_probe fails.
17739
dabf1798 177402009-09-14 José Martínez <xosemp@gmail.com>
17741
17742 * commands/acpi.c (grub_cmd_acpi): Fix loading ACPI tables from file.
17743
d52109a7 177442009-09-14 Colin Watson <cjwatson@ubuntu.com>
17745
17746 * util/grub.d/30_os-prober.in: Cope with Windows 7 in os-prober
17747 output.
17748
56532179 177492009-09-13 Robert Millan <rmh.grub@aybabtu.com>
17750
17751 * configure.ac: Remove --enable-grub-pe2elf. Only build
17752 grub-pe2elf when needed by the build system itself.
17753 * conf/common.rmk: Remove $(enable_grub_pe2elf) check.
17754
8ef070f5 177552009-09-12 Robert Millan <rmh.grub@aybabtu.com>
17756
17757 * configure.ac: Bump version to 1.97~beta3.
17758 * docs/version.texi: Likewise.
17759
61229557 177602009-09-12 Robert Millan <rmh.grub@aybabtu.com>
17761
17762 * video/i386/pc/vbe.c (grub_vbe_get_video_mode_info): Move packed
17763 mode special handling (grub_vbe_bios_set_dac_palette_width() call)
17764 from here ...
17765 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS]
17766 (grub_linux_setup_video): ... to here (with some adjustments).
17767
5c9f8d84 177682009-09-12 Robert Millan <rmh.grub@aybabtu.com>
17769
17770 Fix memory corruption issue (spotted by Colin Watson).
17771
17772 * kern/i386/pc/startup.S (grub_vbe_bios_getset_dac_palette): Fix bug
17773 causing returned size to be stored in an incorrect memory location.
17774 Fix use of uninitialized value when storing the returned size.
17775
e8f5d6e9 177762009-09-12 Yves Blusseau <blusseau@zetam.org>
17777
17778 Change clean rules to properly remove files
17779
17780 * genmk.rb: add new clean rules
17781 * Makefile.in (clean): add the new targets
17782 (mostlyclean): likewise
17783
cda2a409 177842009-09-11 Colin Watson <cjwatson@ubuntu.com>
17785
17786 * include/grub/ntfs.h (struct grub_fshelp_node): Change `size'
17787 to grub_uint64_t.
17788 * fs/ntfs.c (init_file): Understand 64-bit sizes for
17789 non-resident files.
17790
86695375 177912009-09-11 Colin Watson <cjwatson@ubuntu.com>
17792
17793 * configure.ac: Don't look for help2man when cross-compiling. Fixes
17794 part of bug #27349.
17795
8aa1541a 177962009-09-10 Felix Zielcke <fzielcke@z-51.de>
17797
17798 * util/grub-mkconfig.in: Make the created config mode 400 and
17799 print a warning if it fails.
17800
48d9bb0a 178012009-09-10 Robert Millan <rmh.grub@aybabtu.com>
17802
17803 * util/grub.d/40_custom.in: Ask user to type custom entries below
17804 comment, rather than below 'exec tail' line.
17805
3b0521be 178062009-09-10 Colin Watson <cjwatson@ubuntu.com>
17807
17808 * util/grub.d/40_custom.in: Make sure that the explanatory text is
17809 visible in grub.cfg.
17810
50051d55 178112009-09-10 Colin Watson <cjwatson@ubuntu.com>
17812
17813 * util/grub.d/40_custom.in: Make it a little clearer how to use this
17814 file.
17815
c0d34387 178162009-09-10 Felix Zielcke <fzielcke@z-51.de>
17817
17818 * docs/grub.cfg: Add an example menu entry for memtest86+.
17819
80a608f3 178202009-09-09 Felix Zielcke <fzielcke@z-51.de>
17821
a2094832 17822 * config.guess: Update to latest version from config git.
80a608f3 17823 * config.sub: Likewise.
17824
99423078 178252009-09-08 Colin Watson <cjwatson@ubuntu.com>
17826
17827 * script/sh/execute.c (grub_script_execute_cmdline): Set "?" in
17828 unknown-command case. Fixes bug #27320.
17829
44454e4c 178302009-09-08 Felix Zielcke <fzielcke@z-51.de>
17831
17832 * kern/rescue_parser.c (grub_rescue_parse_line): Only suggest to try
17833 `help' if the command exists.
17834
e30d87ad 178352009-09-06 Robert Millan <rmh.grub@aybabtu.com>
17836
17837 * INSTALL: Require GCC 4.1.3 or later.
17838
9a86f1ec 178392009-09-06 Yves Blusseau <blusseau@zetam.org>
17840
17841 * Makefile.in (RMKFILES): add i386-qemu.rmk
17842 (MAINTAINER_CLEANFILES): add $(srcdir)/DISTLIST $(srcdir)/config.h.in
17843 $(srcdir)/stamp-h.in
17844
7f26d466 178452009-09-05 Robert Millan <rmh.grub@aybabtu.com>
17846
17847 * util/grub-probe.c (probe): Comment out buggy codepath, which
17848 was unexpectedly enabled by Colin Watson's 2009-09-02 fix. This
17849 should be re-enabled after 1.97.
17850
3a613259 178512009-09-05 Felix Zielcke <fzielcke@z-51.de>
17852
17853 * gendistlist.sh: Add `grub-dumpdevtree' and `*.lua' to the list
17854 find searches for.
17855
197f76c7 178562009-09-04 Vladimir Serbinenko <phcoder@gmail.com>
17857
17858 * loader/i386/xnu.c (grub_cpu_xnu_fill_devicetree): Remove
17859 unnecessary calls to grub_error.
17860
70ba68ce 178612009-09-04 Colin Watson <cjwatson@ubuntu.com>
17862
17863 * NEWS: Mention `keystatus' and Unicode fonts.
17864
4ff0d7a4 178652009-09-04 Robert Millan <rmh.grub@aybabtu.com>
17866
17867 * configure.ac: Bump version to 1.97~beta2.
17868 * docs/version.texi: Likewise.
17869
77c55a87 178702009-09-03 Colin Watson <cjwatson@ubuntu.com>
17871
17872 * configure.ac: By default, GCC 4.4 generates .eh_frame sections
17873 containing unwind information in some cases where it previously did
17874 not. Use -fno-dwarf2-cfi-asm if available to restore the old
17875 behaviour. See http://patchwork.kernel.org/patch/8555/ for related
17876 discussion.
17877
f79572cd 178782009-09-02 Yves BLUSSEAU <blusseau@zetam.org>
17879
17880 Embedding loadenv module into grub-emu
17881
17882 * conf/i386-pc.rmk (grub_emu_SOURCES): add lib/envblk.c and
17883 commands/loadenv.c
17884 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise
17885 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise
17886 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise
17887 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise
17888 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise
17889 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise
17890
93a81088 178912009-09-03 Magnus Granberg <zorry@ume.nu>
17892
17893 * aclocal.m4: Add grub_CHECK_PIE. It check if the compiler
17894 include -fPIE in the default specs.
17895 * configure.ac: Check if pie_possible is yes and add -fno-PIE
17896 to TARGET_CFLAGS.
17897
160034b2 178982009-09-03 Felix Zielcke <fzielcke@z-51.de>
17899
17900 * INSTALL: Note that GNU Bison 2.3 or later is required.
17901
087c07c4 179022009-09-03 Colin Watson <cjwatson@ubuntu.com>
17903
17904 * kern/i386/pc/startup.S: Fix typo.
17905
cbf978c0 179062009-09-02 Vladimir Serbinenko <phcoder@gmail.com>
17907
17908 * efiemu/loadcore.c (SUFFIX (grub_efiemu_loadcore_load)): Fix style
17909 according to GCS.
17910
179112009-09-02 Colin Watson <cjwatson@ubuntu.com>
f0910644 17912
17913 * docs/grub.texi (Naming convention): Describe one-based partition
17914 numbering.
17915 (Device syntax): Likewise.
17916 (File name syntax): Likewise.
17917 (Block list syntax): Likewise.
17918 (Making a GRUB bootable CD-ROM): Talk about grub.cfg rather than
17919 menu.lst.
17920 (File name syntax): Likewise.
17921 (Command-line and menu entry commands): Document acpi, blocklist,
17922 crc, export, insmod, keystatus, ls, set, and unset commands.
17923
f3e8cdfd 179242009-09-02 Colin Watson <cjwatson@ubuntu.com>
17925
17926 * commands/keystatus.c (GRUB_MOD_INIT (keystatus)): Adjust summary
17927 to avoid implying that only one of --shift, --ctrl, or --alt may be
17928 used.
17929
c0bc232b 179302009-09-02 Colin Watson <cjwatson@ubuntu.com>
17931
17932 * util/grub-probe.c (probe): Test st.st_mode using S_ISREG macro
17933 rather than comparing against S_IFREG, which will almost never work.
17934
aa0f752d 179352009-09-01 Vladimir Serbinenko <phcoder@gmail.com>
17936
17937 * commands/loadenv.c (check_blocklists): Fix off-by-one error.
17938 (write_blocklists): Likewise.
17939
ecb3166a 179402009-09-01 Colin Watson <cjwatson@ubuntu.com>
17941
17942 * script/lua/grub_lua.h (fputs): Supply a format string as the first
17943 argument to grub_printf.
17944
c403a125 179452009-09-01 Felix Zielcke <fzielcke@z-51.de>
31aba781 17946
17947 * genmk.rb: Add quotes around $(TARGET_OBJ2ELF) to cope with
c403a125 17948 non GNU test.
31aba781 17949
b5e7312c 179502009-08-30 Vladimir Serbinenko <phcoder@gmail.com>
17951
17952 * kern/file.c (grub_file_read): Spelling fix
17953
fe00f472 179542009-08-30 Vladimir Serbinenko <phcoder@gmail.com>
17955
17956 * loader/i386/bsdXX.c (SUFFIX (grub_freebsd_load_elfmodule)): Fix
17957 loading of headers in some cases.
17958
cc55302e 179592009-08-30 Robert Millan <rmh.grub@aybabtu.com>
17960
17961 * configure.ac: Bump version to 1.97~beta1.
17962 * docs/version.texi: Likewise.
17963
5c90cdd2 179642009-08-29 Vladimir Serbinenko <phcoder@gmail.com>
64bf71d0 17965
17966 * include/grub/i386/xnu.h: Add license header.
17967 include grub/err.h explicitly.
17968
c90edae4 179692009-08-29 Robert Millan <rmh.grub@aybabtu.com>
17970
17971 * util/grub.d/10_freebsd.in: Detect `ufs1' and `ufs2' and map them
17972 to `ufs' in the vfs.root.mountfrom kernel parameter.
17973
d8888b5c 179742009-08-29 Robert Millan <rmh.grub@aybabtu.com>
17975
17976 * term/i386/pc/serial.c: Include `<grub/machine/memory.h>'.
17977
17978 [GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Macroify initialization
17979 value (0x0400 -> GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR).
17980
17981 [! GRUB_MACHINE_PCBIOS] (GRUB_SERIAL_PORT_NUM): Calculate using
17982 `ARRAY_SIZE' macro.
17983
6f07b921 179842009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
17985
17986 * kern/file.c (grub_file_read): Check offset.
17987 * fs/hfs.c (grub_hfs_read_file): Remove unnecessary offset check.
17988 * fs/jfs.c (grub_jfs_read_file): Likewise.
17989 * fs/ntfs.c (grub_ntfs_read): Likewise.
17990 * fs/reiserfs.c (grub_reiserfs_read): Likewise.
17991 * fs/minix.c (grub_minix_read_file): Correct offset check.
17992 * fs/ufs.c (grub_ufs_read_file): Likewise.
17993
b4f34077 179942009-08-28 Colin Watson <cjwatson@ubuntu.com>
17995
17996 * term/i386/pc/console.c (bios_data_area): Cast
17997 GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR explicitly.
17998
e7c69859 179992009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
18000
18001 1-bit optimised blitters.
18002
18003 * include/grub/fbblit.h (grub_video_fbblit_replace_32bit_1bit): New
18004 prototype.
18005 (grub_video_fbblit_replace_24bit_1bit): Likewise.
18006 (grub_video_fbblit_replace_16bit_1bit): Likewise.
18007 (grub_video_fbblit_replace_8bit_1bit): Likewise.
18008 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
18009 (grub_video_fbblit_blend_XXX888_1bit): Likewise.
18010 (grub_video_fbblit_blend_XXX565_1bit): Likewise.
18011 * video/fb/fbblit.c (grub_video_fbblit_replace_32bit_1bit): New
18012 function.
18013 (grub_video_fbblit_replace_24bit_1bit): Likewise.
18014 (grub_video_fbblit_replace_16bit_1bit): Likewise.
18015 (grub_video_fbblit_replace_8bit_1bit): Likewise.
18016 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
18017 (grub_video_fbblit_blend_XXX888_1bit): Likewise.
18018 (grub_video_fbblit_blend_XXX565_1bit): Likewise.
18019 * video/fb/video_fb.c (common_blitter): Use 1-bit optimised blitters
18020 when possible.
18021 * video/video.c (grub_video_get_blit_format): Return
18022 GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED if bpp = 1.
18023
a57da43f 180242009-08-28 Colin Watson <cjwatson@ubuntu.com>
18025
18026 * normal/cmdline.c (grub_cmdline_get): Supply a format string as
18027 the first argument to grub_printf.
18028
4cbe67e5 180292009-08-28 Colin Watson <cjwatson@ubuntu.com>
180302009-08-28 Robert Millan <rmh.grub@aybabtu.com>
18031
18032 Add `getkeystatus' terminal method. Add a new `keystatus' command
18033 to query it.
18034
18035 * include/grub/term.h (GRUB_TERM_STATUS_SHIFT,
18036 GRUB_TERM_STATUS_CTRL, GRUB_TERM_STATUS_ALT): Definitions for
18037 modifier key bitmasks.
18038 (struct grub_term_input): Add `getkeystatus' member.
18039 (grub_getkeystatus): Add prototype.
18040 * kern/term.c (grub_getkeystatus): New function.
18041
18042 * include/grub/i386/pc/memory.h
18043 (GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR): New macro.
18044 (struct grub_machine_bios_data_area): Define necessary parts of BIOS
18045 Data Area layout.
18046 * term/i386/pc/console.c (grub_console_getkeystatus): New function.
18047 (grub_console_term_input): Set `getkeystatus' member.
18048 * term/usb_keyboard.c (grub_usb_hid): Macroify HID protocol
18049 constants.
18050 (grub_usb_keyboard_getreport): Likewise.
18051 (grub_usb_keyboard_checkkey): Likewise.
18052 (grub_usb_keyboard_getkeystatus): New function.
18053 (grub_usb_keyboard_term): Set `getkeystatus' member.
18054
18055 * commands/keystatus.c: New file.
18056 * conf/common.rmk (pkglib_MODULES): Add keystatus.mod.
18057 (keystatus_mod_SOURCES): New variable.
18058 (keystatus_mod_CFLAGS): Likewise.
18059 (keystatus_mod_LDFLAGS): Likewise.
18060 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add
18061 commands/keystatus.c.
18062 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
18063 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
18064 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
18065 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
18066 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
18067 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
4cbe67e5 18068
6e2a9085 180692009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
18070
18071 Split befs.mod and afs.mod into *_be.mod and *.mod
18072
18073 * conf/common.rmk (grub_probe_SOURCES): Add afs_be.c and befs_be.c.
18074 (grub_fstest_SOURCES): Likewise.
18075 (pkglib_MODULES): Add afs_be.mod and befs_be.mod.
18076 (afs_be_mod_SOURCES): New variable.
18077 (afs_be_mod_CFLAGS): Likewise.
18078 (afs_be_mod_LDFLAGS): Likewise.
18079 (befs_be_mod_SOURCES): Likewise.
18080 (befs_be_mod_CFLAGS): Likewise.
18081 (befs_be_mod_LDFLAGS): Likewise.
18082 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add afs_be.c and befs_be.c.
18083 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
18084 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
18085 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
18086 (grub_emu_SOURCES): Likewise.
18087 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
18088 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
18089 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
18090 * fs/afs_be.c: New file.
18091 * fs/befs_be.c: New file.
18092 * fs/afs.c (GRUB_AFS_FSNAME_SUFFIX): New definition.
18093 (GRUB_AFS_FSNAME): Use GRUB_AFS_FSNAME_SUFFIX.
18094 (U16): Replaced with ...
18095 (grub_afs_to_cpu16): ...this. All users updated.
18096 (U32): Replaced with ...
18097 (grub_afs_to_cpu32): ...this. All users updated.
18098 (U64): Replaced with ...
18099 (grub_afs_to_cpu64): ...this. All users updated.
18100 (GRUB_AFS_BO_LITTLE_ENDIAN): Remove.
18101 (GRUB_AFS_BO_BIG_ENDIAN): Likewise.
ad8ea1f4 18102 (grub_afs_validate_sblock): Check only one endianness.
6e2a9085 18103 (GRUB_MOD_INIT (befs)) [MODE_BIGENDIAN && MODE_BFS]: Rename to ..
18104 (GRUB_MOD_INIT (befs_be)) [MODE_BIGENDIAN && MODE_BFS]: ... this.
18105 (GRUB_MOD_INIT (afs)) [MODE_BIGENDIAN && !MODE_BFS]: Rename to ..
18106 (GRUB_MOD_INIT (afs_be)) [MODE_BIGENDIAN && !MODE_BFS]: ... this.
18107 (GRUB_MOD_FINI (befs)) [MODE_BIGENDIAN && MODE_BFS]: Rename to ..
18108 (GRUB_MOD_FINI (befs_be)) [MODE_BIGENDIAN && MODE_BFS]: ... this.
18109 (GRUB_MOD_FINI (afs)) [MODE_BIGENDIAN && !MODE_BFS]: Rename to ..
18110 (GRUB_MOD_FINI (afs_be)) [MODE_BIGENDIAN && !MODE_BFS]: ... this.
18111
32a71655 181122009-08-26 Bean <bean123ch@gmail.com>
18113
18114 * fs/xfs.c (GRUB_XFS_INO_INOINAG): Replace 1L with 1LL to support
18115 64-bit number.
18116 (GRUB_XFS_FSB_TO_BLOCK): Likewise.
18117 (grub_xfs_inode_block): Change return type to grub_uint64_t.
18118 (grub_xfs_read_inode): Change type of block to grub_uint64_t.
18119
552bf6c5 181202009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
18121
18122 NetBSD memory map support.
18123
18124 * include/grub/i386/bsd.h (NETBSD_BTINFO_MEMMAP): New definition.
18125 (grub_netbsd_btinfo_mmap_header): New structure.
18126 (grub_netbsd_btinfo_mmap_entry): Likewise.
18127 * loader/i386/bsd.c (grub_netbsd_boot): Pass memory map.
18128
1ae2078c 181292009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
18130
18131 Enable bsd.mod on coreboot.
18132
18133 * conf/i386-coreboot.rmk (pkglib_MODULES): Add bsd.mod.
18134 (bsd_mod_SOURCES): New variable.
18135 (bsd_mod_CFLAGS): Likewise.
18136 (bsd_mod_LDFLAGS): Likewise.
18137 (bsd_mod_ASFLAGS): Likewise.
18138 * loader/i386/bsd.c [!GRUB_MACHINE_PCBIOS]: Fix includes.
18139 (grub_bsd_get_device) [!GRUB_MACHINE_PCBIOS]: Set *biosdev to 0xff.
18140
beefc598 181412009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
18142
18143 Cleanup NetBSD root support.
18144
18145 * loader/i386/bsd.c (grub_netbsd_boot): Remove call to
18146 grub_bsd_get_device.
18147 Fix typo.
18148
3b76e68b 181492009-08-25 Felix Zielcke <fzielcke@z-51.de>
18150
18151 * util/grub.d/00_header.in: Move check for the video backend of
18152 gfxterm from here ...
18153 * util/grub-mkconfig.in: ... to here. Enable gfxterm if there's
18154 a suitable video backend.
18155
aea664ea 181562009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
18157
18158 Fix breakage in grub-setup.
18159
18160 * util/i386/pc/grub-setup.c (setup): Use "part_msdos" instead of
18161 "msdos_partition_map".
18162
ff747d50 181632009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
18164
18165 Fix breakage in normal/auth.c.
18166
18167 * normal/auth.c (grub_iswordseparator): New function.
18168
e7e1f93f 181692009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
18170
18171 Authentication support.
18172
18173 * commands/password.c: New file.
18174 * conf/common.rmk (pkglib_MODULES): Add password.mod.
18175 (password_mod_SOURCES): New variable.
18176 (password_mod_CFLAGS): Likewise.
18177 (password_mod_LDFLAGS): Likewise.
18178 (normal_mod_SOURCES): Add normal/auth.c.
18179 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add commands/password.c and
18180 normal/auth.c.
18181 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
18182 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
18183 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
18184 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
18185 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
18186 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
18187 * include/grub/auth.h: New file.
18188 * include/grub/err.h (grub_err_t): New enum value
18189 GRUB_ERR_ACCESS_DENIED.
18190 * include/grub/menu.h (grub_menu_entry): New fields 'restricted' and
18191 'users'.
18192 * include/grub/normal.h (grub_cmdline_get): New argument 'history'.
18193 * normal/cmdline.c (grub_cmdline_get): New argument 'history'. All
18194 users updated.
18195 * normal/auth.c: New file.
18196 * normal/main.c (grub_normal_add_menu_entry): Handle --users option.
18197 (grub_cmdline_run): Don't allow to go to command line without
18198 authentication.
18199 * normal/menu.c (grub_menu_execute_entry): Handle restricted entries.
18200 * normal/menu_entry.c (grub_menu_entry_run): Don't allow editing
18201 menuentry without superuser rights.
18202 * normal/menu_viewer.c (grub_menu_viewer_show_menu): Don't exit if
18203 user isn't a superuser.
18204
70f1161d 182052009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
18206
18207 Save space by inlining misc.c functions.
18208
18209 * kern/misc.c (grub_iswordseparator): Made static.
18210 * kern/misc.c (grub_strcat): Moved from here ...
18211 * include/grub/misc.h (grub_strcat): ... here. Inlined.
18212 * kern/misc.c (grub_strncat): Moved from here ...
18213 * include/grub/misc.h (grub_strncat): ... here. Inlined.
18214 * kern/misc.c (grub_strcasecmp): Moved from here ...
18215 * include/grub/misc.h (grub_strcasecmp): ... here. Inlined.
18216 * kern/misc.c (grub_strncasecmp): Moved from here ...
18217 * include/grub/misc.h (grub_strncasecmp): ... here. Inlined.
18218 * kern/misc.c (grub_isalpha): Moved from here ...
18219 * include/grub/misc.h (grub_isalpha): ... here. Inlined.
18220 * kern/misc.c (grub_isdigit): Moved from here ...
18221 * include/grub/misc.h (grub_isdigit): ... here. Inlined.
18222 * kern/misc.c (grub_isgraph): Moved from here ...
18223 * include/grub/misc.h (grub_isgraph): ... here. Inlined.
18224 * kern/misc.c (grub_tolower): Moved from here ...
18225 * include/grub/misc.h (grub_tolower): ... here. Inlined.
18226
48e40bff 182272009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
18228
18229 * script/sh/function.c (grub_script_function_find): Cut error message
18230 not to flood terminal.
18231 * script/sh/lexer.c (grub_script_yylex): Remove command line length
18232 limit.
18233 * script/sh/script.c (grub_script_arg_add): Duplicate string.
18234
c385bfc3 182352009-08-24 Colin Watson <cjwatson@ubuntu.com>
18236
18237 * term/usb_keyboard.c (grub_usb_keyboard_getreport): Make
18238 `report' grub_uint8_t *.
18239 (grub_usb_keyboard_checkkey): Make `data' elements grub_uint8_t.
18240 Use a 50-millisecond timeout rather than just repeating
18241 grub_usb_keyboard_getreport 50 times.
18242 (grub_usb_keyboard_getkey): Make `data' elements grub_uint8_t.
18243
2d21e3e8 182442009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
18245
18246 Rename *_partition_map to part_*
18247
18248 * partmap/acorn.c (grub_acorn_partition_map): Set name to 'part_acorn'.
18249 * partmap/amiga.c (grub_amiga_partition_map): Set name to 'part_amiga'.
18250 * partmap/apple.c (grub_apple_partition_map): Set name to 'part_apple'.
18251 * partmap/gpt.c (grub_gpt_partition_map): Set name to 'part_gpt'.
18252 All users updated.
18253 * partmap/msdos.c (grub_msdos_partition_map): Set name to 'part_msdos'.
18254 All users updated.
18255 * partmap/sun.c (grub_sun_partition_map): Set name to 'part_sun'.
18256 * util/grub-probe.c (probe_partmap): Don't transform partition name
18257 to get module name.
18258
dd103c4e 182592009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
18260
18261 Fix OpenBSD and NetBSD support.
18262
18263 * include/grub/i386/bsd.h (GRUB_BSD_TEMP_BUFFER): Change to resolve
18264 memory address conflict.
18265 (OPENBSD_MMAP_ACPI): New definition.
18266 (OPENBSD_MMAP_NVS): Likewise.
18267 * loader/i386/bsd.c (grub_openbsd_boot): Support OPENBSD_MMAP_ACPI
18268 and OPENBSD_MMAP_NVS.
18269 Add memory map terminator
18270 Explicit cast when calling grub_unix_real_boot.
ad8ea1f4 18271 (grub_netbsd_boot): Explicit cast when calling grub_unix_real_boot.
dd103c4e 18272
16c84d74 182732009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
18274
18275 Let user specify NetBSD root device.
18276
18277 * loader/i386/bsd.c (netbsd_root): New variable.
18278 (netbsd_opts): New option 'root'.
18279 (NETBSD_ROOT_ARG): New macro.
18280 (grub_netbsd_boot): Use 'netbsd_root'.
18281 (grub_bsd_unload): Free 'netbsd_root'.
18282 (grub_cmd_netbsd): Fill 'netbsd_root'.
18283
adb29902 182842009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
18285
18286 Support for 64-bit NetBSD.
18287
18288 * loader/i386/bsd.c (grub_bsd_load_elf): Apply correct mask to entry
18289 point when booting non-FreeBSD.
18290
f5ae9f74 182912009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
18292
18293 Support --no-smp and --no-acpi for NetBSD.
18294
18295 * include/grub/i386/bsd.h (NETBSD_AB_NOSMP): New definition.
18296 (NETBSD_AB_NOACPI): Likewise.
18297 * loader/i386/bsd.c (netbsd_opts): New entries no-smp and no-acpi.
18298 (netbsd_flags): Add NETBSD_AB_NOSMP, NETBSD_AB_NOACPI.
18299
de74f136 183002009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
18301
18302 * fs/hfsplus.c (grub_hfsplus_mount): Don't ignore grub_hfsplus_read_file
18303 errors.
18304 (grub_hfsplus_btree_iterate_node): Don't ignore grub_hfsplus_read_file
18305 errors. Call grub_error when needed.
18306
e9a925da 183072009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
18308
18309 * commands/search.c (search_fs): Try searching without autoload first.
18310 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Load
18311 filesystem module explicitly for faster booting.
18312
5174302b 183132009-08-23 Colin Watson <cjwatson@ubuntu.com>
18314
18315 * util/grub-mkconfig.in: Export GRUB_DISABLE_OS_PROBER.
18316
c8c80635 183172009-08-23 Colin Watson <cjwatson@ubuntu.com>
18318
18319 * util/grub.d/30_os-prober.in: Disable os-prober if
18320 `GRUB_DISABLE_OS_PROBER' was set to true.
18321
71acf5e5 183222009-08-23 Robert Millan <rmh.grub@aybabtu.com>
18323
18324 * partmap/pc.c: Rename to ...
18325 * partmap/msdos.c: ... this. Update all users.
18326 (grub_pc_partition_map): Rename to ...
18327 (grub_msdos_partition_map): ... this. Update all users.
18328
18329 * parttool/pcpart.c: Rename to ...
18330 * parttool/msdospart.c: ... this. Update all users.
18331
18332 * include/grub/pc_partition.h: Rename to ...
18333 * include/grub/msdos_partition.h: ... this. Update all users.
18334 (grub_pc_partition_bsd_entry): Rename to ...
18335 (grub_msdos_partition_bsd_entry): ... this. Update all users.
18336 (grub_pc_partition_disk_label): Rename to ...
18337 (grub_msdos_partition_disk_label): ... this. Update all users.
18338 (grub_pc_partition_entry): Rename to ...
18339 (grub_msdos_partition_entry): ... this. Update all users.
18340 (grub_pc_partition_mbr): Rename to ...
18341 (grub_msdos_partition_mbr): ... this. Update all users.
18342 (grub_pc_partition): Rename to ...
18343 (grub_msdos_partition): ... this. Update all users.
18344 (grub_pc_partition_is_empty): Rename to ...
18345 (grub_msdos_partition_is_empty): ... this. Update all users.
18346 (grub_pc_partition_is_extended): Rename to ...
18347 (grub_msdos_partition_is_extended): ... this. Update all users.
18348 (grub_pc_partition_is_bsd): Rename to ...
18349 (grub_msdos_partition_is_bsd): ... this. Update all users.
18350
18351 * conf/common.rmk (amiga_mod_SOURCES, amiga_mod_CFLAGS)
18352 (amiga_mod_LDFLAGS, apple_mod_SOURCES, apple_mod_CFLAGS)
18353 (apple_mod_LDFLAGS, msdos_mod_SOURCES, msdos_mod_CFLAGS)
18354 (msdos_mod_LDFLAGS, sun_mod_SOURCES, sun_mod_CFLAGS)
18355 (sun_mod_LDFLAGS, acorn_mod_SOURCES, acorn_mod_CFLAGS)
18356 (acorn_mod_LDFLAGS, gpt_mod_SOURCES, gpt_mod_CFLAGS)
18357 (gpt_mod_LDFLAGS): Rename to ...
18358 (part_amiga_mod_SOURCES, part_amiga_mod_CFLAGS, part_amiga_mod_LDFLAGS)
18359 (part_apple_mod_SOURCES, part_apple_mod_CFLAGS, part_apple_mod_LDFLAGS)
18360 (part_msdos_mod_SOURCES, part_msdos_mod_CFLAGS, part_msdos_mod_LDFLAGS)
18361 (part_sun_mod_SOURCES, part_sun_mod_CFLAGS, part_sun_mod_LDFLAGS)
18362 (part_acorn_mod_SOURCES, part_acorn_mod_CFLAGS, part_acorn_mod_LDFLAGS)
18363 (part_gpt_mod_SOURCES, part_gpt_mod_CFLAGS)
18364 (part_gpt_mod_LDFLAGS): ... this.
18365 (pkglib_MODULES): Prefix partition modules with `part_'. Rename
18366 `pcpart.mod' to `msdospart.mod'.
18367 (pcpart_mod_SOURCES, pcpart_mod_CFLAGS, pcpart_mod_LDFLAGS): Rename
18368 to ...
18369 (msdospart_mod_SOURCES, msdospart_mod_CFLAGS)
18370 (msdospart_mod_LDFLAGS): ... this.
18371
c11fded5 183722009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
18373
18374 * loader/i386/bsd.c (freebsd_opts): Rewritten to use extcmd.
18375 (openbsd_opts): Likewise.
18376 (netbsd_opts): Likewise.
18377 (freebsd_flags): Added 0 terminator.
18378 (openbsd_flags): Likewise.
18379 (netbsd_flags): Likewise.
18380 (grub_bsd_parse_flags): Rewritten to use extcmd. All users updated.
18381 (grub_cmd_freebsd): Transformed into extended command.
18382 (grub_cmd_openbsd): Likewise.
18383 (grub_cmd_netbsd): Likewise.
18384 (cmd_freebsd): Changed type to grub_extcmd_t.
18385 (cmd_openbsd): Likewise.
18386 (cmd_netbsd): Likewise.
18387 (GRUB_MOD_INIT (bsd)): Register grub_cmd_freebsd, grub_cmd_netbsd and
18388 grub_cmd_openbsd as extended commands.
18389 (GRUB_MOD_FINI (bsd)): Use grub_unregister_extcmd for cmd_freebsd,
18390 cmd_netbsd and cmd_openbsd
18391
11d1c769 183922009-08-22 Vladimir Serbinenko <phcoder@gmail.com>
18393
18394 * commands/xnu_uuid.c (transform): Use grub_memcpy instead of memcpy.
18395
7a9094e5 183962009-08-21 Pavel Roskin <proski@gnu.org>
18397
5496c37e 18398 * Makefile.in (install-local): When checking if a file is in the
18399 build directory, use "test -e" to detect symlinks.
18400
7a9094e5 18401 * Makefile.in (install-local): Remove all files in
18402 $(DESTDIR)$(pkglibdir) before installing new files there.
18403
e53cea11 184042009-08-18 Felix Zielcke <fzielcke@z-51.de>
18405
18406 * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Use
18407 grub-mkelfimage.
18408
9aced544 184092009-08-18 Felix Zielcke <fzielcke@z-51.de>
18410
18411 * util/grub-mkconfig.in: Don't use gfxterm by default if not
18412 explicitly specified by the user.
18413
b7da6bab 184142009-08-18 Pavel Roskin <proski@gnu.org>
18415
18416 * include/grub/fbfill.h (struct grub_video_fbrender_target): Use
18417 grub_uint8_t pointer for data.
18418 * include/grub/fbutil.h (struct grub_video_fbblit_info):
18419 Likewise.
18420 * video/fb/fbutil.c: Remove unnecessary casts.
18421
19f1b335 184222009-08-17 Michal Suchanek <hramrach@centrum.cz>
18423
18424 VBE cleanup.
18425
18426 * video/i386/pc/vbe.c (vbe_mode_in_use): Removed (duplicate).
18427 (grub_vbe_set_video_mode): Save active mode info
18428 only after setting the mode.
18429 (grub_video_vbe_setup): Call 'grub_vbe_set_video_mode' with NULL as
18430 second argument.
18431
2f467aa9 184322009-08-17 Michal Suchanek <hramrach@centrum.cz>
18433
18434 Rename variables for clarity.
18435
18436 * video/i386/pc/vbe.c (active_mode_info): Renamed to ...
18437 (active_vbe_mode_info): ... this. All users updated.
18438 (framebuffer): Rename 'active_mode' to 'active_vbe_mode'.
18439 All users updated.
18440 (initial_mode): Rename to ...
18441 (initial_vbe_mode): ... this. All users updated.
18442 (mode_in_use): Rename to ..
18443 (vbe_mode_in_use): ... this. All users updated.
18444 (mode_list): Rename to ..
18445 (vbe_mode_list): ... this. All users updated.
18446 (grub_vbe_set_video_mode): Rename 'mode' to 'vbe_mode', 'mode_info' to
18447 'vbe_mode_info' and 'old_mode' to 'old_vbe_mode'.
18448 (grub_video_vbe_init): Rename 'rm_mode_list' to 'rm_vbe_mode_list' and
18449 'mode_list_size' to 'vbe_mode_list_size'.
18450 (grub_video_vbe_setup): Rename 'mode_info' to 'vbe_mode_info',
18451 'best_mode_info' to 'best_vbe_mode_info' and
18452 'best_mode' to 'best_vbe_mode'
18453
6025fcd7 184542009-08-17 Michal Suchanek <hramrach@centrum.cz>
18455
18456 Remove duplicate grub_video_fb_get_video_ptr.
18457
18458 * include/grub/fbutil.h (get_data_ptr): Rename to ...
18459 (grub_video_fb_get_video_ptr): ... this.
18460 * include/grub/video_fb.h (grub_video_fb_get_video_ptr): Removed.
18461 * video/fb/fbutil.c: Add comment about addressing.
18462 (get_data_ptr): Rename to ...
18463 (grub_video_fb_get_video_ptr): ... this. All users updated.
18464 * video/fb/video_fb.c (grub_video_fb_get_video_ptr): Remove.
18465
cc8c6faf 184662009-08-17 Robert Millan <rmh.grub@aybabtu.com>
18467
18468 * fs/fat.c (grub_fat_read_data): Remove `#if 0' braces around the
18469 grub_dprintf() that was just added.
18470
08aa61f0 184712009-08-17 Robert Millan <rmh.grub@aybabtu.com>
18472
18473 * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT)
18474 (DEFAULT_VIDEO_MODE): Remove macros.
18475 (grub_linux_boot): Remove assumption that Linux has FB support,
18476 and use "text" as default video mode.
18477
7cef4f75 184782009-08-15 Vladimir Serbinenko <phcoder@gmail.com>
18479
18480 * fs/affs.c (grub_affs_read_symlink): Change leftover grub_printf into
18481 grub_dprintf.
18482 * fs/fat.c (grub_fat_read_data): Likewise.
18483
e1f39873 184842009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
18485
18486 * loader/i386/multiboot.c (grub_multiboot): Don't pass filename to
18487 payload.
18488 (grub_module): Likewise.
18489
c166d79e 184902009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
18491
18492 * loader/i386/multiboot.c (grub_multiboot_unload): Don't free mbi and
18493 mbi->cmdline but free playground.
18494
c60cee8e 184952009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
18496
18497 Handle group offset on UFS1.
18498
18499 * fs/ufs.c (grub_ufs_sblock): New field 'cylg_mask'.
18500 (grub_ufs_read_inode) [!MODE_UFS2]: handle cylg_offset and cylg_mask.
18501
c0d8b5d4 185022009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
18503
18504 Split ufs.mod into ufs1.mod and ufs2.mod.
18505
18506 * conf/common.rmk (grub_probe_SOURCES): Add fs/ufs2.c.
18507 (grub_fstest_SOURCES): Likewise.
18508 (pkglib_MODULES): Remove ufs.mod. Add ufs1.mod and ufs2.mod.
18509 (ufs_mod_SOURCES): Remove.
18510 (ufs_mod_CFLAGS): Likewise.
18511 (ufs_mod_LDFLAGS): Likewise.
18512 (ufs1_mod_SOURCES): New variable.
18513 (ufs1_mod_CFLAGS): Likewise.
18514 (ufs1_mod_LDFLAGS): Likewise.
25fbd77a 18515 (ufs2_mod_SOURCES): New variable.
18516 (ufs2_mod_CFLAGS): Likewise.
18517 (ufs2_mod_LDFLAGS): Likewise.
c0d8b5d4 18518 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add fs/ufs2.c.
18519 * conf/i386-efi.rmk (util/i386/efi/grub-mkimage.c_DEPENDENCIES):
18520 Likewise.
18521 (grub_emu_SOURCES): Likewise.
18522 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
18523 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
18524 (grub_setup_SOURCES): Likewise.
18525 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
18526 * conf/sparc64.rmk (grub_emu_SOURCES): Likewise.
18527 (grub_setup_SOURCES): Likewise.
18528 * conf/x86_64-efi.rmk (util/i386/efi/grub-mkimage.c_DEPENDENCIES):
18529 Likewise.
18530 * fs/ufs2.c: New file.
18531 * fs/ufs.c: Separate UFS1 from UFS2 by using preprocessor.
18532
d3539132 185332009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
18534
18535 Framebuffer split.
18536
18537 * commands/i386/pc/vbetest.c (grub_cmd_vbetest): Restore video
18538 subsystem at the end.
18539 * conf/common.rmk (pkglib_MODULES): Add video_fb.mod.
18540 (video_fb_mod_SOURCES): New variable.
18541 (video_fb_mod_CFLAGS): Likewise.
18542 (video_fb_mod_LDFLAGS): Likewise.
18543 * conf/i386-pc.rmk (vbe_mod_SOURCES): Remove video/i386/pc/vbeblit.c,
18544 video/i386/pc/vbefill.c and video/i386/pc/vbeutil.c.
18545 * video/i386/pc/vbeblit.c: Moved from here ...
18546 * video/fb/fbblit.c: ..here. Replaced 'vbe' with 'fb'.
18547 * video/i386/pc/vbefill.c: Moved from here ...
18548 * video/fb/fbfill.c: ..here. Replaced 'vbe' with 'fb'.
18549 * video/i386/pc/vbeutil.c: Moved from here ...
18550 * video/fb/fbutil.c: ..here. Replaced 'vbe' with 'fb'.
18551 * include/grub/i386/pc/vbeblit.h: Moved from here ...
18552 * include/grub/fbblit.h: ... here. Replaced 'vbe' with 'fb'.
18553 * include/grub/i386/pc/vbefill.h: Moved from here ...
18554 * include/grub/fbfill.h: ... here. Replaced 'vbe' with 'fb'.
18555 * include/grub/i386/pc/vbeutil.h: Moved from here ...
18556 * include/grub/fbutil.h: ... here. Replaced 'vbe' with 'fb'.
18557 * include/grub/i386/pc/vbe.h: Moved framebuffer part ...
18558 * include/grub/video_fb.h: ... here. Replaced 'vbe' with 'fb'.
18559 * include/grub/video.h (GRUB_VIDEO_RENDER_TARGET_FRONT_BUFFER): Removed.
18560 (GRUB_VIDEO_RENDER_TARGET_BACK_BUFFER): Likewise.
18561 (grub_video_adapter): Added 'get_info_and_fini'.
18562 (grub_video_get_info_and_fini): New prototype.
18563 (grub_video_set_mode): make modestring const char *.
18564 * loader/i386/linux.c (grub_linux_setup_video): Use
18565 grub_video_get_info_and_fini.
18566 (grub_linux_boot): Move modesetting just before booting.
18567 * loader/i386/pc/xnu.c (grub_xnu_set_video): Use
18568 grub_video_get_info_and_fini.
18569 * video/i386/pc/vbe.c: Moved framebuffer part ...
18570 * video/fb/video_fb.c: ... here. Replaced 'vbe' with 'fb'.
18571 * video/i386/pc/vbe.c (grub_vbe_set_video_mode): Use
18572 grub_video_fbstd_colors and grub_video_fb_set_palette.
18573 (grub_video_vbe_init): Clear 'framebuffer' variable and use
18574 grub_video_fb_init.
18575 (grub_video_vbe_fini): Use grub_video_fb_fini.
18576 (grub_video_vbe_setup): Use framebuffer.render_target instead of
18577 render_target and use grub_video_fb_set_active_render_target and
18578 grub_video_fb_set_palette.
18579 (grub_video_vbe_set_palette): Use grub_video_fb_set_palette.
18580 (grub_video_vbe_set_viewport): Use grub_video_fb_set_viewport.
18581 (grub_video_vbe_adapter): Use framebuffer.
18582 * video/video.c (grub_video_get_info_and_fini): New function.
18583 (grub_video_set_mode): Make modestring const char *.
18584 (GRUB_MOD_INIT(video_video)): Don't set variables to 0 since these
18585 values are already initialised.
18586
d404ee56 185872009-08-14 Pavel Roskin <proski@gnu.org>
18588
18589 * boot/i386/pc/cdboot.S: Use LOCAL for local labels. Eliminate
18590 ABS and APPLE_CC.
18591 * boot/i386/pc/diskboot.S: Likewise.
18592 * boot/i386/pc/lnxboot.S: Likewise. Hardcode the number of code
18593 sectors allow compilation on MacOSX.
18594 * conf/i386-pc.rmk: Enable unconditional compilation of
18595 lnxboot.img.
18596
9a10df16 185972009-08-13 Colin Watson <cjwatson@ubuntu.com>
18598
18599 * util/grub-mkconfig.in: Export GRUB_HIDDEN_TIMEOUT.
18600 * util/grub.d/00_header.in: Enter interruptible sleep if
18601 GRUB_HIDDEN_TIMEOUT is set.
18602
be3c9ca7 186032009-08-13 Yves Blusseau <blusseau@zetam.org>
18604
18605 * include/grub/symbol.h: Add the LOCAL macro.
18606 * boot/i386/pc/boot.S: Use the LOCAL macro for all labels
18607 starting with "L_".
18608
1f9e557e 186092009-08-13 Pavel Roskin <proski@gnu.org>
18610
9ca62843 18611 * boot/i386/pc/boot.S: Remove ABS macro, it's not required by
18612 any modern compilers we support.
18613
1f9e557e 18614 * boot/i386/pc/boot.S: Remove all code dependent on APPLE_CC.
18615 Use local labels starting with "L_" so that Apple assembler
18616 knows they are local.
18617
81623db6 186182009-08-10 Robert Millan <rmh.grub@aybabtu.com>
18619
18620 * include/grub/i386/bsd.h (KERNEL_TYPE_NONE, KERNEL_TYPE_FREEBSD)
18621 (KERNEL_TYPE_OPENBSD, KERNEL_TYPE_NETBSD): Convert to ...
18622 (bsd_kernel_types): ... this enum.
18623
18624 * loader/i386/bsd.c (grub_cmd_freebsd_loadenv, grub_cmd_freebsd_module)
18625 (grub_cmd_freebsd_module_elf): Abort with "You need to load the
18626 kernel first." when `kernel_type' is set to KERNEL_TYPE_NONE.
18627
18628 (grub_bsd_load_aout, grub_bsd_load, grub_cmd_freebsd_loadenv)
18629 (grub_cmd_freebsd_module, grub_cmd_freebsd_module_elf)
18630 (GRUB_MOD_INIT (bsd)): Fix capitalization in a few error
18631 messages.
18632
f5d35e7a 186332009-08-08 Robert Millan <rmh.grub@aybabtu.com>
18634
18635 * util/grub-dumpdevtree: Moved from here ...
18636 * util/i386/efi/grub-dumpdevtree: ... to here.
18637 (hexify): New function. Converts a string to its hex version.
18638 Generate hex versions of "efi" and "device-properties" by calling
18639 hexify() on the ASCII strings rather than by hardcoding numbers.
18640
d1e1d527 186412009-08-08 Robert Millan <rmh.grub@aybabtu.com>
18642
18643 * fs/jfs.c: Update copyright year.
18644
1ebbe064 186452009-08-08 Felix Zielcke <fzielcke@z-51.de>
18646
18647 * util/grub.d/00_header.in: Fix a comment.
18648 * util/grub.d/10_linux.in: Likewise.
18649 * util/grub.d/10_windows.in: Likewise.
18650 * util/grub.d/10_hurd.in: Likewise.
18651
a78c8d24 186522009-08-08 Felix Zielcke <fzielcke@z-51.de>
18653
18654 * util/grub-mkconfig.in: Allow the user to specify the used font
18655 with GRUB_FONT.
18656
29a6b9e8 186572009-08-08 Pavel Roskin <proski@gnu.org>
18658
b5f16cc4 18659 * include/grub/powerpc/libgcc.h: Export __ashrdi3() if
18660 available, xfs.mod needs it now.
18661
2f5cb827 18662 * util/grub-mkconfig_lib.in (version_test_numeric): Don't use
18663 the "g" modifier in sed when the intention is to strip something
18664 once. This fixes comparison of kernels with multiple dashes.
18665
29a6b9e8 18666 * util/grub-mkconfig.in: Define datarootdir, datadir may depend
18667 on it. Add missing space before closing bracket. Fix
18668 misleading formatting.
18669
892a3d98 186702009-08-07 Robert Millan <rmh.grub@aybabtu.com>
18671
18672 * docs/grub.texi: Major overhaul. Remove all sections that are
18673 specific to GRUB Legacy, or mostly composed of Legacy-specific
18674 information.
18675
ed94253f 186762009-08-07 Robert Millan <rmh.grub@aybabtu.com>
18677
18678 * docs/version.texi: New file. Provides version information for
18679 grub.texi.
18680
126d6628 186812009-08-07 Robert Millan <rmh.grub@aybabtu.com>
18682
18683 * docs/grub.texi: Update CVS information to SVN.
18684 Replace outdated "GRUB 2 will include" phrase with "GRUB 2 includes".
18685
998b5aa9 186862009-08-07 Felix Zielcke <fzielcke@z-51.de>
18687
18688 * util/grub-mkconfig.in: Remove a wrong `fi'.
18689
818e094a 186902009-08-07 Felix Zielcke <fzielcke@z-51.de>
18691
18692 * fs/uuid.c (grub_jfs_superblock): New fields unused2 and uuid.
18693 (grub_jfs_uuid): New function.
18694 (grub_jfs_fs): Set uuid field to grub_jfs_uuid.
18695
b969c52f 186962009-08-07 Felix Zielcke <fzielcke@z-51.de>
18697
18698 * util/grub-mkconfig_lib.in (font_path): Move the functionality
18699 of it to ...
18700 * util/grub-mkconfig.in: ... here. Prefer unicode.pf2 and
18701 unifont.pf2 over ascii.pf2. Export LANG=C in case ascii.pf2 gets used.
18702
7a4894cc 187032009-08-07 Robert Millan <rmh.grub@aybabtu.com>
18704
18705 * util/grub.d/10_linux.in (test_numeric): Moved from here ...
18706 * util/grub-mkconfig_lib.in (version_test_numeric): ... to here.
18707 Update all users.
18708
18709 * util/grub.d/10_linux.in (test_gt): Strip any basename prefix,
18710 not just "vmlinu[zx]".
18711 Moved from here ...
18712 * util/grub-mkconfig_lib.in (version_test_gt): ... to here. Update
18713 all users.
18714
18715 * util/grub.d/10_linux.in (find_latest): Moved from here ...
18716 * util/grub-mkconfig_lib.in (version_find_latest): ... to here. Update
18717 all users.
18718
4e2171f8 187192009-08-07 Robert Millan <rmh.grub@aybabtu.com>
18720
18721 * util/grub.d/10_freebsd.in: Use an absolute device path for
18722 `vfs.root.mountfrom'. Set `vfs.root.mountfrom.options=rw'.
18723
6dcfcb32 187242009-08-06 Felix Zielcke <fzielcke@z-51.de>
18725
18726 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Fix
18727 handling of multiple abstraction modules.
18728
f56a8756 187292009-08-04 Robert Millan <rmh.grub@aybabtu.com>
18730
18731 Fix a bug resulting in black screen when loading Linux using a
18732 packed video mode.
18733
18734 * kern/i386/pc/startup.S (grub_vbe_bios_getset_dac_palette_width): New
18735 function.
18736
18737 * include/grub/i386/pc/vbe.h (GRUB_VBE_CAPABILITY_DACWIDTH): New macro.
18738 (grub_vbe_bios_getset_dac_palette_width): New function.
18739 (grub_vbe_bios_get_dac_palette_width)
18740 (grub_vbe_bios_set_dac_palette_width): New macros (act as wrappers for
18741 grub_vbe_bios_getset_dac_palette_width()).
18742
18743 * video/i386/pc/vbe.c (grub_vbe_probe): Use `GRUB_VBE_STATUS_OK' to
18744 check for return status.
18745 (grub_vbe_get_video_mode_info): When getting information for a packed
18746 mode (<= 8 bpp), obtain DAC palette width using
18747 grub_vbe_bios_getset_dac_palette_width(), and use that for initializing
18748 {red,green,blue}_mark_size.
18749
222671b2 187502009-08-04 Felix Zielcke <fzielcke@z-51.de>
18751
ecb1a6d9 18752 * commands/search.c (options): Fix help output to match actual code.
222671b2 18753
f84114f5 187542009-08-02 Vladimir Serbinenko <phcoder@gmail.com>
18755
18756 * commands/hexdump.c (grub_cmd_hexdump): Use grub_disk_read instead
18757 of homegrown code.
18758
bd288a20 187592009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
e768b770 18760
18761 * util/hostfs.c (grub_hostfs_dir): Don't use DT_DIR: It doesn't work
18762 on XFS or ReiserFS.
18763
8aab5e25 187642009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
18765
18766 Support Apple partition map with sector size different from 512 bytes.
18767
18768 * partmap/apple.c (grub_apple_header): New field 'blocksize'.
18769 (apple_partition_map_iterate): Respect 'aheader.blocksize'
18770 and 'apart.partmap_size'.
18771
6ad6258a 187722009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
187732009-08-01 Robert Millan <rmh.grub@aybabtu.com>
18774
18775 Fix cpuid command.
18776
18777 * commands/i386/cpuid.c (options): New variable.
18778 (grub_cmd_cpuid): Return real error.
18779 (GRUB_MOD_INIT(cpuid)): Declare options.
18780
67459bc6 187812009-07-31 Vladimir Serbinenko <phcoder@gmail.com>
18782
18783 * partmap/pc.c (pc_partition_map_iterate): Check that boot flags are
18784 valid.
18785
fbc6ab54 187862009-07-31 Bean <bean123ch@gmail.com>
18787
18788 * fs/xfs.c (grub_xfs_sblock): Change unused5 field to log2_sect and
18789 log2_inode.
18790 (grub_fshelp_node): Move inode field to the end.
18791 (grub_xfs_data): Remove inode field.
18792 (grub_xfs_inode_block): Calculate inode size using sblock.
18793 (grub_xfs_inode_offset): Likewise.
18794 (grub_xfs_read_inode): Calculate inode size using sblock.
18795 (grub_xfs_read_block): Replace XFS_INODE_EXTENTS with nrec.
18796 (grub_xfs_iterate_dir): Calculate inode size using sblock.
18797 (grub_xfs_mount): Use grub_zalloc instead of grub_malloc. Realloc data
18798 to match inode size.
18799 (grub_xfs_dir): goto mount_fail when mount fails, as data->diropen is
18800 not accessible when data is null.
18801 (grub_xfs_open): Likewise.
18802
f45d6cfc 188032009-07-31 Bean <bean123ch@gmail.com>
18804
18805 * disk/lvm.c (grub_lvm_scan_device): Ignore extra copy of metadata.
18806 Don't change pv->disk if it's already set.
18807
18808 * disk/raid.c (grub_raid_scan_device): Merge this function into ...
18809 (grub_raid_register): ... here.
18810 (grub_raid_rescan): Removed.
18811
18812 * include/grub/raid.h (grub_raid_rescan): Removed.
18813
18814 * util/grub-fstest.c: Remove include file <grub/raid.h>.
18815 (fstest): Replace grub_raid_rescan with module fini function followed
18816 by init function.
18817
18818 * util/grub-probe.c: Add include file <grub/raid.h>.
18819 (probe_raid_level): New function.
18820 (probe): Detect abstraction by walking the disk device, support two
18821 level of abstraction (LVM on RAID) when detecting partition map.
18822
24443b5a 188232009-07-31 Pavel Roskin <proski@gnu.org>
18824
18825 * disk/raid5_recover.c (grub_raid5_recover): Revert conversion
18826 to grub_zalloc(), it was erroneous.
18827 Reported by Bean <bean123ch@gmail.com>
18828
a275d9e7 188292009-07-30 Vladimir Serbinenko <phcoder@gmail.com>
18830
18831 * util/i386/pc/grub-setup.c (setup): Check that no partition is in
ad8ea1f4 18832 embedding zone, not only the first one.
a275d9e7 18833
56c5a47f 188342009-07-29 Joe Auricchio <jauricchio@gmail.com>
18835
18836 * term/gfxterm.c (clear_char): New function.
18837 (grub_virtual_screen_setup): Use clear_char.
18838 (scroll_up): Likewise.
18839 (grub_virtual_screen_cls): Likewise.
18840
67bb323a 188412009-07-29 Felix Zielcke <fzielcke@z-51.de>
18842
18843 * util/deviceiter.c (get_acceleraid_disk_name): New static
18844 function.
18845 (grub_util_iterate_devices): Handle Accelraid devices.
18846 * util/hostdisk.c (convert_system_partition_to_system_disk): Likewise.
18847
388a7c75 188482009-07-28 Robert Millan <rmh.grub@aybabtu.com>
18849
18850 * loader/i386/linux.c (grub_cmd_linux): Use ',' rather than ';' as
18851 separator for the suggested gfxpayload string (';' collides with the
18852 parser and needs escaping).
18853
3bb7abcf 188542009-07-28 Vladimir Serbinenko <phcoder@gmail.com>
18855
18856 * loader/i386/multiboot_helper.S (grub_multiboot_backward_relocator):
18857 Clear direction flag before jumping to OS.
18858 (grub_multiboot2_real_boot): Likewise.
18859
2ddd36d7 188602009-07-28 Felix Zielcke <fzielcke@z-51.de>
18861
18862 * util/i386/pc/grub-install: Fix parsing of --disk-module
18863 option.
18864
c521b62b 188652009-07-28 Felix Zielcke <fzielcke@z-51.de>
18866
18867 * util/i386/pc/grub-setup.c (setup): Fix 2 incorrect checks
18868 when embedding.
18869
880e0a0c 188702009-07-26 Felix Zielcke <fzielcke@z-51.de>
18871
18872 * util/grub-mkconfig.in (package_version): New variable.
18873 Use it do display the version.
18874
2366e356 188752009-07-25 Felix Zielcke <fzielcke@z-51.de>
18876
18877 * kern/file.c (grub_file_open): Revert to previous check with
18878 grub_errno.
18879
7ad8c80e 188802009-07-25 Vladimir Serbinenko <phcoder@gmail.com>
18881
18882 * commands/probe.c (GRUB_MOD_INIT (probe)): Remove "[--target=target]"
18883 from help line. It's out of sync with code.
18884
72b9658b 188852009-07-25 Vladimir Serbinenko <phcoder@gmail.com>
18886
18887 * kern/parser.c (grub_parser_execute): Fix a bug causing truncated
18888 entries on failed boot.
18889
77435277 188902009-07-25 Felix Zielcke <fzielcke@z-51.de>
18891
18892 * kern/file.c (grub_file_open): Fix an error check.
18893
fcaa8b21 188942009-07-24 Vladimir Serbinenko <phcoder@gmail.com>
18895
35d16c74 18896 * util/i386/pc/grub-setup.c (setup): Fix segmentation fault when
18897 partition map couldn't be identified.
fcaa8b21 18898
48904cd1 188992009-07-23 Pavel Roskin <proski@gnu.org>
18900
ef3c317f 18901 * commands/xnu_uuid.c (transform): Use GRUB_CPU_WORDS_BIGENDIAN
18902 instead of WORDS_BIGENDIAN. Use grub_le_to_cpu32(), so that the
18903 case of little endian words becomes just an optimization.
18904 Respect const modifier.
ad8ea1f4 18905 (md5_final): Use code that doesn't depend on endianness.
ef3c317f 18906
48904cd1 18907 * include/grub/misc.h (ALIGN_UP): Cast align to the type of addr
18908 to avoid loss of upper bits if align is unsigned and shorter
18909 than addr.
18910
260c9a89 189112009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
18912
18913 UUID support for UFS
18914
18915 * fs/ufs.c (grub_ufs_sblock): Add uuidhi and uuidlow.
18916 (grub_ufs_uuid): New function.
18917 (grub_ufs_fs): add .uuid
18918
f76ce889 189192009-07-21 Pavel Roskin <proski@gnu.org>
18920
18921 * kern/dl.c (grub_dl_check_header): Make static.
18922
6a6cbcaf 189232009-07-21 Felix Zielcke <fzielcke@z-51.de>
18924
18925 * util/grub.d/30_os-prober.in: Remove unused CHAINROOT. Don't
18926 add drivemap for Vista. It breaks Windows 7.
18927
cffcddb2 189282009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
18929
18930 * fs/ufs.c (grub_ufs_sblock): Fix offset of mtime2 which was off by
18931 128 bytes
18932
1ef44b80 189332009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
18934
18935 Add BFS support
18936
18937 * conf/common.rmk (grub_probe_SOURCES): Add fs/befs.c.
18938 (grub_fstest_SOURCES): Likewise.
18939 (pkglib_MODULES): Add befs.mod.
18940 (befs_mod_SOURCES): New variable.
18941 (befs_mod_CFLAGS): Likewise.
18942 (befs_mod_LDFLAGS): Likewise.
18943 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
18944 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
18945 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
18946 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
18947 (grub_setup_SOURCES): Likewise.
18948 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
18949 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
18950 (grub_setup_SOURCES): Likewise.
18951 * fs/befs.c: New file.
18952 * fs/afs.c (GRUB_AFS_FSNAME): New declaration.
18953 (GRUB_AFS_SBLOCK_SECTOR): Likewise.
18954 (GRUB_AFS_SBLOCK_MAGIC1) [MODE_BFS]: New conditional declaration.
18955 (GRUB_AFS_BTREE_MAGIC) [MODE_BFS]: Likewise
18956 (B_KEY_INDEX_ALIGN): New declaration.
18957 (B_KEY_INDEX_OFFSET): Use B_KEY_INDEX_ALIGN.
18958 (grub_afs_bnode) [MODE_BFS]: Make key_count and key_size 16-bit
18959 (grub_afs_btree) [MODE_BFS]: New conditional declaration.
18960 (grub_afs_sblock) [MODE_BFS]: Remove link_count.
18961 (grub_afs_validate_sblock) [MODE_BFS]: Support BFS
18962 (grub_afs_mount) [MODE_BFS]: Likewise.
18963 (grub_afs_dir) [MODE_BFS]: Divide mtime by 65536 and not 1000000.
18964 (grub_afs_fs): Use GRUB_AFS_FSNAME
18965 (GRUB_MOD_INIT (afs)) [MODE_BFS]: Rename to ...
18966 (GRUB_MOD_INIT (befs)) [MODE_BFS]: ... this
18967 (GRUB_MOD_FINI (afs)) [MODE_BFS]: Rename to ...
18968 (GRUB_MOD_FINI (befs)) [MODE_BFS]: ... this
18969
4f253044 189702009-07-19 Yves BLUSSEAU <yves.grub-devel@zetam.org>
18971
18972 * util/getroot.c (find_root_device): Add support for MacOSX.
18973 * util/hostdisk.c: Likewise.
18974
57a55913 189752009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
18976
18977 * font/font.c (find_glyph): Check whether a font is present to avoid
18978 segmentation fault.
75421ca9 18979
189802009-07-20 Joe Auricchio <jauricchio@gmail.com>
04c7c429 18981
18982 * term/gfxterm.c (grub_virtual_screen_setup): Clear virtual_screen.
18983
e98cd0c2 189842009-07-20 Pavel Roskin <proski@gnu.org>
18985
18986 * configure.ac: Trim excessively wordy excuses.
18987
1d2d169a 189882009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
18989
18990 Add symlink, mtime and label support to AtheFS.
18991
18992 * fs/afs.c (grub_afs_sblock): Declare `name' as char.
18993 (grub_afs_iterate_dir): Handle symlinks.
18994 (grub_afs_open): Use grub_afs_read_symlink.
18995 (grub_afs_dir): Likewise.
18996 Pass mtime.
18997 (grub_afs_label): New function.
18998 (grub_afs_fs): Add grub_afs_label.
18999 (grub_afs_read_symlink): New function.
19000
186f3189 190012009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
19002
19003 Fix AtheFS support.
19004
19005 * fs/afs.c: Fix comments style.
19006 (grub_afs_blockrun): Declare as packed.
19007 (grub_afs_datastream): Likewise.
19008 (grub_afs_bnode): Likewise.
19009 (grub_afs_btree): Likewise.
19010 (grub_afs_sblock): Likewise.
19011 Declare `name' as char.
19012 (grub_afs_inode): Declare as packed.
19013 Change void *vnode to grub_uint32_t unused.
19014 (grub_afs_iterate_dir): Check that key_size is positive.
19015 (grub_afs_mount): Don't read superblock twice.
75421ca9 19016 (grub_afs_dir): Don't free node in case of error,
186f3189 19017 grub_fshelp_find_file already handles this.
19018 (grub_afs_open): Likewise.
19019
5680109e 190202009-07-19 Pavel Roskin <proski@gnu.org>
19021
19022 * Makefile.in: Remove LIBLZO and enable_lzo.
19023 * conf/i386-pc.rmk: Remove lzo support.
19024 * configure.ac: Remove checks for lzo, don't define ENABLE_LZMA.
19025 * include/grub/i386/pc/kernel.h: Define ENABLE_LZMA. Remove lzo
19026 support.
19027 * kern/i386/pc/lzo1x.S: Remove.
19028 * kern/i386/pc/startup.S: Remove lzo support.
19029 * util/i386/pc/grub-mkimage.c: Likewise.
19030
ac70fa32 190312009-07-19 Vladimir Serbinenko <phcoder@gmail.com>
19032
19033 * disk/usbms.c (grub_usbms_transfer): Fix double semicolon.
19034 * fs/xfs.c (grub_xfs_dir): Likewise.
19035 * fs/afs.c (grub_afs_dir): Likewise.
19036 * fs/iso9660.c (grub_iso9660_iterate_dir): Likewise.
19037 (grub_iso9660_open): Likewise.
19038 * fs/jfs.c (grub_jfs_open): Likewise.
19039 * fs/ext2.c (grub_ext2_dir): Likewise.
19040 * include/grub/macho.h (grub_macho_fat_arch): Likewise.
19041 * script/sh/lexer.c (grub_script_yylex): Likewise.
75421ca9 19042
eab58da2 190432009-07-16 Pavel Roskin <proski@gnu.org>
19044
d2838156 19045 * configure.ac: Never add "-c" to CFLAGS.
19046
55c70904 19047 * configure.ac: Fix incorrect comparison for grub_cv_cc_efiemu.
19048
43e6200c 19049 * configure.ac: Fix wrong use of grub_cv_cc_no_red_zone where
19050 grub_cv_cc_efiemu should be used.
19051
ce7a733d 19052 * configure.ac: Typo fixes.
19053
eab58da2 19054 * kern/mm.c (grub_zalloc): New function.
19055 (grub_debug_zalloc): Likewise.
19056 * include/grub/mm.h: Declare grub_zalloc() and
19057 grub_debug_zalloc().
19058 * util/misc.c (grub_zalloc): New function.
19059 * bus/usb/uhci.c (grub_uhci_pci_iter): Use grub_zalloc()
19060 instead of grub_malloc(), remove unneeded initializations.
19061 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Likewise.
19062 * commands/extcmd.c (grub_extcmd_dispatcher): Likewise.
19063 * commands/parttool.c (grub_cmd_parttool): Likewise.
19064 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Likewise.
19065 * disk/raid5_recover.c (grub_raid5_recover): Likewise.
19066 * disk/raid6_recover.c (grub_raid6_recover): Likewise.
19067 * disk/usbms.c (grub_usbms_finddevs): Likewise.
19068 * efiemu/mm.c (grub_efiemu_request_memalign): Likewise.
19069 * efiemu/pnvram.c (grub_efiemu_pnvram): Likewise.
19070 (grub_cmd_efiemu_pnvram): Likewise.
19071 * fs/i386/pc/pxe.c (grub_pxefs_open): Likewise.
19072 * fs/iso9660.c (grub_iso9660_mount): Likewise.
19073 (grub_iso9660_iterate_dir): Likewise.
19074 * fs/jfs.c (grub_jfs_opendir): Likewise.
19075 * fs/ntfs.c (list_file): Likewise.
19076 (grub_ntfs_mount): Likewise.
19077 * kern/disk.c (grub_disk_open): Likewise.
19078 * kern/dl.c (grub_dl_load_core): Likewise.
19079 * kern/elf.c (grub_elf_file): Likewise.
19080 * kern/env.c (grub_env_context_open): Likewise.
19081 (grub_env_set): Likewise.
19082 (grub_env_set_data_slot): Likewise.
19083 * kern/file.c (grub_file_open): Likewise.
19084 * kern/fs.c (grub_fs_blocklist_open): Likewise.
19085 * loader/i386/multiboot.c (grub_module): Likewise.
19086 * loader/xnu.c (grub_xnu_create_key): Likewise.
19087 (grub_xnu_create_value): Likewise.
19088 * normal/main.c (grub_normal_add_menu_entry): Likewise.
19089 (read_config_file): Likewise.
19090 * normal/menu_entry.c (make_screen): Likewise.
19091 * partmap/sun.c (sun_partition_map_iterate): Likewise.
19092 * script/sh/lexer.c (grub_script_lexer_init): Likewise.
19093 * script/sh/script.c (grub_script_parse): Likewise.
19094 * video/bitmap.c (grub_video_bitmap_create): Likewise.
19095 * video/readers/jpeg.c (grub_video_reader_jpeg): Likewise.
19096 * video/readers/png.c (grub_png_output_byte): Likewise.
19097 (grub_video_reader_png): Likewise.
19098
830afef7 190992009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
5ce5507f 19100
19101 Enable all targets that can be built by default
19102
830afef7 19103 * configure.ac: enable efiemu runtime, grub-emu, grub-emu-usb,
5ce5507f 19104 grub-mkfont and grub-fstest if they can be built
19105
ee293aee 191062009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
19107
19108 Fix hang and segmentation fault in grub-emu-usb
19109
19110 * disk/scsi.c (grub_scsi_open): return err and not grub_errno
19111 * util/usb.c (grub_libusb_devices): likewise
19112 (grub_libusb_init): rename to ...
19113 (GRUB_MOD_INIT (libusb)):...this
19114 (grub_libusb_fini): rename to ..
19115 (GRUB_MOD_FINI (libusb)):...this
19116 * disk/usbms.c (grub_usbms_transfer): fix retry logic
19117 * include/grub/disk.h (grub_raid_init): removed, it's useless
19118 (grub_raid_fini): likewise
19119 (grub_lvm_init): likewise
19120 (grub_lvm_fini): likewise
19121 * util/grub-emu.c (main): don't call grub_libusb_init, it's done
19122 by grub_init_all
19123
94414221 191242009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
19125
19126 Fix libusb
19127
19128 * Makefile.in (LIBUSB): new macro
19129 * genmk.rb (Utility/print_tail): new method
19130 (Utility/rule): use intermediary variable #{prefix}_OBJECTS
19131 (top level): call util.print_tail at the end.
19132
59ade63d 191332009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
19134
19135 Make FreeBSD accept zpool.cache
19136
19137 * loader/i386/bsd.c (grub_freebsd_add_meta_module): spoof filename if
19138 type is /boot/zfs/zpool.cache
19139
a58da8c7 191402009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
19141
19142 Fix 64-bit efiemu
19143
19144 * include/grub/efiemu/efiemu.h (grub_efiemu_configuration_table64_t):
19145 correct wrong typedef
19146 * efiemu/prepare.c (SUFFIX (grub_efiemu_prepare)): minor style fixes
19147
20591577 191482009-07-15 Pavel Roskin <proski@gnu.org>
19149
560ca572 19150 * include/grub/disk.h (struct grub_disk_dev): Use enum for id.
19151 * kern/disk.c (struct grub_disk_cache): Likewise.
19152
e8e8e4fd 19153 * commands/probe.c (options): Typo fix.
19154
fde24e10 19155 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_BPB_END):
19156 Increase to 0x5a to accommodate FAT32. Adjust other offsets
19157 accordingly.
19158 Original patch by Yves Blusseau <yves.grub-devel@zetam.org>
19159
379c54c1 19160 * boot/i386/pc/boot.S (general_error_string): Add DOS newline at
19161 the end of "Error" to make the message more readable.
19162
7bd8f5bf 19163 * boot/i386/pc/boot.S (kernel_segment): Remove.
19164 (copy_buffer): Use GRUB_BOOT_MACHINE_KERNEL_ADDR in segment 0
19165 for destination.
19166
40b132c5 19167 * boot/i386/pc/boot.S (boot_version): Remove.
19168 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_VER_MAJ):
19169 Remove.
19170
20591577 19171 * include/grub/i386/pc/boot.h: Sort all offsets.
19172 (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Remove, it's unused.
19173 (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Likewise.
19174 * boot/i386/pc/boot.S: Assert location of every offset listed in
19175 include/grub/i386/pc/boot.h.
19176
2df32b2c 191772009-07-13 Pavel Roskin <proski@gnu.org>
19178
44b5d879 19179 * include/grub/i386/coreboot/machine.h: Rename
19180 GRUB_MACHINE_LINUXBIOS to GRUB_MACHINE_COREBOOT.
19181 * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Allow
19182 multiboot 1 for GRUB_MACHINE_COREBOOT and GRUB_MACHINE_QEMU.
19183
17dc3751 19184 * kern/dl.c: Force native word size to suppress warnings when
19185 compiling grub-emu.
19186
2df32b2c 19187 * kern/device.c (grub_device_iterate): Change struct part_ent to
19188 hold the name, not a pointer to it. Use one grub_malloc() per
19189 partition, not two. Free partition_name if grub_malloc() fails.
19190 Set ents to NULL only before grub_partition_iterate() is called.
19191
75c59f59 191922009-07-11 Bean <bean123ch@gmail.com>
19193
19194 * kern/ieee1275/openfw.c (grub_children_iterate): Fix size of
19195 childname.
19196
0ae1bf88 191972009-07-10 Bean <bean123ch@gmail.com>
191982009-07-10 Robert Millan <rmh.grub@aybabtu.com>
19199
19200 * kern/ieee1275/openfw.c (grub_children_iterate)
19201 (grub_devalias_iterate): Fix size evaluation for property or path
19202 strings, which was broken since r2132.
19203
8279cade 192042009-07-07 Pavel Roskin <proski@gnu.org>
19205
7d8a52d3 19206 * commands/search.c (search_file): Merge into ...
19207 (search_fs): ... this. Accept search type as argument.
19208 (grub_cmd_search): Pass search type to search_fs().
19209
25f9a05a 19210 * include/grub/util/console.h: New file.
19211 * util/console.c: Use it instead of grub/machine/console.h.
19212 * util/grub-emu.c: Likewise.
19213
8279cade 19214 * lib/arg.c (find_long_option): Remove.
19215 (find_long): Add `len' argument, make `s' const char *.
19216 (grub_arg_parse): Parse long options in place, not in a
19217 temporary buffer.
19218
4a11b60f 192192009-07-06 Pavel Roskin <proski@gnu.org>
19220
99f68041 19221 * commands/search.c (search_fs): Fix potential NULL pointer
19222 dereference.
19223
4a11b60f 19224 * commands/search.c (search_fs): Replace QUID macro with quid_fn
19225 function pointer.
19226
e110f4de 192272009-07-06 Daniel Mierswa <impulze@impulze.org>
19228
19229 * commands/search.c (search_fs): Use grub_strcasecmp() for UUID
19230 comparison.
19231
46eeb6a2 192322009-07-05 Pavel Roskin <proski@gnu.org>
19233
bab74958 19234 * include/grub/i386/linux.h (struct linux_kernel_params):
19235 Restore padding3, it's still needed.
19236
46eeb6a2 19237 * util/grub.d/10_freebsd.in: Fix spelling of `device.hints' on
19238 FreeBSD.
19239 * util/osdetect.lua: Likewise.
19240
b4a1dc79 192412009-07-05 Bean <bean123ch@gmail.com>
19242
19243 * conf/common.rmk (lua_mode_SOURCES): Add script/lua/lstrlib.c.
19244
19245 * script/lua/grub_lib.c (grub_lua_run): Check input parameter.
19246 (grub_lua_getenv): Likewise.
19247 (grub_lua_setenv): Likewise.
19248 (save_errno): New function.
19249 (push_result): Likewise.
19250 (grub_lua_enum_device): Likewise.
19251 (grub_lua_enum_file): Likewise.
19252 (grub_lua_file_open): Likewise.
19253 (grub_lua_file_close): Likewise.
19254 (grub_lua_file_seek): Likewise.
19255 (grub_lua_file_read): Likewise.
19256 (grub_lua_file_getline): Likewise.
19257 (grub_lua_file_getsize): Likewise.
19258 (grub_lua_file_getpos): Likewise.
19259 (grub_lua_file_eof): Likewise.
19260 (grub_lua_file_exist): Likewise.
19261 (grub_lua_add_menu): Likewise.
19262
19263 * script/lua/grub_lua.h (isupper): New inline function.
19264 (islower): Likewise.
19265 (ispunct): Likewise.
19266 (isxdigit): Likewise.
19267 (strcspn): Change to normal function.
19268 (strpbkr): New function declaration.
19269 (memchr): Likewise.
19270
19271 * script/lua/grub_main.c (scan_str): New function.
19272 (strcspn): Likewise.
19273 (strpbrk): Likewise.
19274 (memchr): Likewise.
19275
19276 * script/lua/linit.c (lualibs): Enable the string library.
19277
19278 * util/osdetect.lua: New file.
19279
2da92295 192802009-07-04 Robert Millan <rmh.grub@aybabtu.com>
19281
19282 * include/grub/i386/linux.h (struct linux_kernel_params): Add
19283 `capabilities' member.
19284
b2582ec9 192852009-07-02 Pavel Roskin <proski@gnu.org>
19286
19287 * genparttoollist.sh: Add missing newline at the end.
19288
32622956 192892009-07-01 Pavel Roskin <proski@gnu.org>
19290
87a7339e 19291 * kern/x86_64/efi/callwrap.S: Add missing newline at the end.
19292
d23af54e 19293 * util/hostdisk.c (open_device): Remove `const' from
19294 `sysctl_size', as sysctlbyname() can change it (in this case it
19295 doesn't actually happen).
19296
c94b18a9 19297 * include/grub/types.h: Define GRUB_LONG_MAX and GRUB_LONG_MIN
19298 using signed long int constants.
19299
c6cd3ef0 19300 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Make `p'
19301 constant to avoid a warning on FreeBSD.
19302
0df63420 19303 * util/hostdisk.c (device_is_wholedisk): Compile only on systems
19304 where it's needed.
19305
999577f1 19306 * Makefile.in: Install include/grub/machine symlink.
19307
6f41557f 19308 * Makefile.in: When installing symlinks, use "cp -fR", which
19309 works on FreeBSD and MacOSX.
19310 From Yves Blusseau <cl7m42e02@sneakemail.com>
19311
c8d22988 19312 * kern/dl.c (grub_dl_resolve_symbol): Make static.
19313 * include/grub/dl.h: Remove grub_dl_resolve_symbol().
19314
1b96e952 19315 * util/misc.c: Move grub_reboot() and grub_halt() ...
19316 * util/grub-emu.c: ... here. Make main_env static.
19317 * include/grub/util/misc.h: Remove main_env.
19318
2ef0084d 19319 * kern/mm.c: Use correct format to print size_t.
19320
32622956 19321 * include/grub/elf.h: Define Elf_Sword and Elf_Xword.
19322 * kern/i386/dl.c: Use ELF symbols without "32" or "64".
19323 * kern/powerpc/dl.c: Likewise.
19324 * kern/sparc64/dl.c: Likewise.
19325 * kern/x86_64/dl.c: Likewise.
19326
3f7f0cd0 193272009-07-01 Robert Millan <rmh.grub@aybabtu.com>
19328
19329 Fix grub-emu build on sparc64-ieee1275.
19330
75421ca9 19331 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Synchronize with ...
3f7f0cd0 19332 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): ... this.
19333
211d06b5 193342009-07-01 Robert Millan <rmh.grub@aybabtu.com>
19335
19336 * util/misc.c: Include `<setjmp.h>' and `<grub/machine/machine.h>'.
19337 (grub_reboot, grub_halt): New functions.
19338
19339 * util/i386/pc/misc.c: Delete. Update all users.
19340 * util/sparc64/ieee1275/misc.c: Likewise.
19341 * util/powerpc/ieee1275/misc.c: Likewise.
19342
aaf53e3c 193432009-07-01 Robert Millan <rmh.grub@aybabtu.com>
19344
19345 * conf/i386.rmk (setjmp_mod_SOURCES)
19346 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Move to ...
19347 * conf/common.rmk (setjmp_mod_SOURCES)
19348 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): ... here, and modify
19349 to use $(target_cpu).
19350 * conf/x86_64-efi.rmk (setjmp_mod_SOURCES)
19351 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Remove.
19352 * conf/powerpc-ieee1275.rmk: Likewise.
19353 * conf/sparc64-ieee1275.rmk: Likewise.
19354
19355 * conf/i386-pc.rmk (kernel_img_SOURCES): Use
19356 $(target_cpu) for kern/$(target_cpu)/dl.c.
19357 * conf/i386-efi.rmk: Likewise.
19358 * conf/i386-ieee1275.rmk: Likewise.
19359 * conf/x86_64-efi.rmk: Likewise.
19360 * conf/i386-coreboot.rmk: Likewise.
19361 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Use
19362 $(target_cpu) for kern/$(target_cpu)/dl.c and for
19363 kern/$(target_cpu)/cache.S.
19364 * conf/sparc64-ieee1275.rmk: Likewise.
19365
a337130b 193662009-07-01 Robert Millan <rmh.grub@aybabtu.com>
19367
19368 * include/grub/i386/linux.h (linux_kernel_params): Change `mmap_size'
19369 type to `grub_uint8_t', and adjust `padding9' accordingly.
19370
c6fe4d53 193712009-06-29 Robert Millan <rmh.grub@aybabtu.com>
19372
b09db61d 19373 * include/grub/i386/linux.h (GRUB_VIDEO_TYPE_TEXT): New macro.
19374
c6fe4d53 19375 * loader/i386/linux.c [__i386__] (grub_linux_boot): Simplify inline
19376 assembly in final jump, using register constraints.
19377
b09db61d 19378 (grub_linux_boot): For text mode, initialize `have_vga' using
19379 GRUB_VIDEO_TYPE_TEXT rather than 0 (this changes its value to 1).
19380
19381 Initialize `video_cursor_x' and `video_cursor_y' as late as possible,
19382 right before the final jump.
19383
19384 Set `video_mode' to 0x3.
19385
19386 Document initialization of `video_page', `video_mode' and
19387 `video_ega_bx'.
19388
28333ad0 193892009-06-29 Robert Millan <rmh.grub@aybabtu.com>
19390
19391 * include/grub/i386/linux.h (GRUB_LINUX_FLAG_QUIET): New macro.
19392 * loader/i386/linux.c (grub_cmd_linux): Recognize "quiet" option,
75421ca9 19393 and set GRUB_LINUX_FLAG_QUIET appropriately.
28333ad0 19394
02164e1b 193952009-06-29 Robert Millan <rmh.grub@aybabtu.com>
19396
19397 Fix build on Debian / sparc.
19398
19399 * configure.ac: Recognize `sparc' target_cpu (as sparc64).
19400
18b6c557 194012009-06-28 Pavel Roskin <proski@gnu.org>
19402
85f2aab6 19403 * kern/i386/qemu/mmap.c (grub_machine_mmap_iterate): Use cast to
19404 fix a warning.
19405
18b6c557 19406 * util/grub.d/10_linux.in: Match SUSE style initrd names.
19407
ad760f81 194082009-06-27 Robert Millan <rmh.grub@aybabtu.com>
19409
19410 * loader/i386/linux.c (grub_linux_boot): Fix uninitialized use of
19411 `err'.
19412
87a4623b 194132009-06-27 Robert Millan <rmh.grub@aybabtu.com>
19414
19415 Revert r2338.
19416
19417 * loader/i386/linux.c (grub_cmd_linux): Don't call grub_error when
19418 file can't be opened. grub_file_open() is already supposed to set
75421ca9 19419 grub_errno / grub_errmsg appropriately.
87a4623b 19420 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
19421
8231fb77 194222009-06-27 Pavel Roskin <proski@gnu.org>
194232009-06-27 Robert Millan <rmh.grub@aybabtu.com>
19424
19425 * include/grub/dl.h: Include grub/elf.h.
19426 (struct grub_dl): Add symtab field.
19427 * kern/dl.c [GRUB_MACHINE_QEMU]: Define
19428 GRUB_MODULES_MACHINE_READONLY.
19429 (grub_dl_resolve_symbols): Populate mod->symtab, making a copy
19430 of the header for read-only modules.
19431 (grub_dl_unload): Free mod->symtab for read-only modules.
19432 * kern/i386/dl.c: Use mod->symtab.
19433 * kern/powerpc/dl.c: Likewise.
19434 * kern/sparc64/dl.c: Likewise.
19435 * kern/x86_64/dl.c: Likewise.
19436
19437 * conf/i386-qemu.rmk: New file.
19438 * kern/i386/qemu/startup.S: Likewise.
19439 * kern/i386/qemu/mmap.c: Likewise.
19440 * boot/i386/qemu/boot.S: Likewise.
19441 * include/grub/i386/qemu/time.h: Likewise.
19442 * include/grub/i386/qemu/serial.h: Likewise.
19443 * include/grub/i386/qemu/kernel.h: Likewise.
19444 * include/grub/i386/qemu/console.h: Likewise.
19445 * include/grub/i386/qemu/boot.h: Likewise.
19446 * include/grub/i386/qemu/init.h: Likewise.
19447 * include/grub/i386/qemu/machine.h: Likewise.
19448 * include/grub/i386/qemu/loader.h: Likewise.
19449 * include/grub/i386/qemu/memory.h: Likewise.
19450
19451 * conf/i386-coreboot.rmk (GRUB_BOOT_MACHINE_LINK_ADDR)
19452 (GRUB_KERNEL_MACHINE_LINK_ADDR): New variables.
19453 [qemu] (pkglib_IMAGES): Add `boot.img'.
19454 [qemu] (boot_img_SOURCES, boot_img_ASFLAGS, boot_img_LDFLAGS)
19455 [qemu] (boot_img_FORMAT): New variables.
19456 [qemu] (bin_UTILITIES): Add `grub-mkimage'.
19457 [qemu] (grub_mkimage_SOURCES, grub_mkimage_CFLAGS): New variables.
19458 [qemu] (kernel_img_SOURCES, kernel_img_HEADERS, kernel_img_CFLAGS)
19459 [qemu] (kernel_img_ASFLAGS, kernel_img_LDFLAGS)
19460 [qemu] (kernel_img_FORMAT): New variables.
19461
19462 * configure.ac: Recognise `i386-qemu'.
19463
19464 * util/i386/pc/grub-mkimage.c (compress_kernel): Add dummy variant
19465 (for no compression).
19466 [GRUB_MACHINE_QEMU] (generate_image): Misc adjustments to produce
19467 a valid i386 ROM image. Make `GRUB_KERNEL_MACHINE_COMPRESSED_SIZE',
19468 `GRUB_KERNEL_MACHINE_INSTALL_DOS_PART' and
19469 `GRUB_KERNEL_MACHINE_INSTALL_BSD_PART' optional features (with
19470 ifdefs).
19471
97fe384e 194722009-06-27 Pavel Roskin <proski@gnu.org>
19473
19474 * efiemu/prepare.c: Eliminate TYPE macro, it makes code hard to
19475 read.
19476 * efiemu/prepare32.c: Likewise.
19477 * efiemu/prepare64.c: Likewise.
19478
c402ab17 194792009-06-26 Pavel Roskin <proski@gnu.org>
19480
19481 * include/grub/types.h: Define GRUB_TARGET_WORDSIZE.
19482 * include/grub/elf.h: Define symbols without "32" or "64" based
19483 on GRUB_TARGET_WORDSIZE.
19484 * include/grub/multiboot2.h: Use GRUB_TARGET_WORDSIZE.
19485 * efiemu/loadcore32.c: Redefine GRUB_TARGET_WORDSIZE, remove own
19486 ELF definitions.
19487 * efiemu/loadcore64.c: Likewise.
19488 * loader/i386/bsd32.c: Likewise.
19489 * loader/i386/bsd64.c: Likewise.
19490 * kern/dl.c: Remove own ELF definitions.
19491 * util/i386/efi/grub-mkimage.c: Likewise.
19492
9bbdfd4d 194932009-06-23 Robert Millan <rmh.grub@aybabtu.com>
19494
19495 * kern/i386/pc/startup.S (real_to_prot): Access `gdtdesc' using
19496 segment 0x0 unconditionally, because the reference generated by
19497 GAS is an absolute address.
19498
a42ce6e9 194992009-06-22 Robert Millan <rmh.grub@aybabtu.com>
19500
19501 * include/grub/i386/kernel.h: Include `<grub/machine/machine.h>'.
19502 [! GRUB_MACHINE_IEEE1275]: Set `GRUB_MOD_ALIGN' to 0x1.
19503
c952cf92 195042009-06-22 Robert Millan <rmh.grub@aybabtu.com>
19505
19506 * commands/search.c (grub_cmd_search): Macroify hardcoded args[]
19507 indexes. Check for -f explicitly.
cc3752ad 19508 (search_file): Improve error message.
19509 (GRUB_MOD_INIT(search)): Add missing `-n' to help output.
c952cf92 19510
132a0a59 195112009-06-22 Robert Millan <rmh.grub@aybabtu.com>
19512
19513 * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): Rename to ...
19514 (GRUB_KERNEL_MACHINE_LINK_ADDR): ... this. Update all users.
19515
387a140c 195162009-06-22 Robert Millan <rmh.grub@aybabtu.com>
19517
19518 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/misc.S'.
19519 * conf/i386-ieee1275.rmk: Likewise.
19520 * conf/i386-coreboot.rmk: Likewise.
19521
19522 * kern/i386/pc/startup.S (grub_stop): Remove function.
19523 * kern/i386/ieee1275/startup.S: Likewise.
19524 * kern/i386/coreboot/startup.S: Likewise.
19525 * kern/i386/misc.S (grub_stop): New function.
19526
41da9665 195272009-06-22 Robert Millan <rmh.grub@aybabtu.com>
19528
19529 * kern/i386/pc/startup.S (real_to_prot): Move from here ...
19530 * kern/i386/realmode.S (real_to_prot): ... to here.
19531
bf337234 195322009-06-22 Robert Millan <rmh.grub@aybabtu.com>
19533
19534 * conf/i386-ieee1275.rmk (pkglib_PROGRAMS): Replace `kernel.elf'
19535 with `kernel.img'.
19536 (kernel_elf_SOURCES): Rename to ...
19537 (kernel_img_SOURCES): ... this.
19538 (kernel_elf_HEADERS): Rename to ...
19539 (kernel_img_HEADERS): ... this. Update all users.
19540 (kernel_elf_ASFLAGS): Rename to ...
19541 (kernel_img_ASFLAGS): ... this.
19542 (kernel_elf_CFLAGS): Rename to ...
19543 (kernel_img_CFLAGS): ... this.
19544 (kernel_elf_LDFLAGS): Rename to ...
19545 (kernel_img_LDFLAGS): ... this.
19546 * conf/i386-coreboot.rmk: Likewise.
19547 * conf/powerpc-ieee1275.rmk: Likewise.
19548
19549 * util/elf/grub-mkimage.c (add_segments): Replace "kernel.elf"
19550 with "kernel.img".
19551
f52196ff 195522009-06-21 Pavel Roskin <proski@gnu.org>
19553
c3cee413 19554 * loader/powerpc/ieee1275/linux.c (offset_phdr): Fix prototypes
19555 to match nested functions.
19556 * loader/sparc64/ieee1275/linux.c: Likewise.
19557
f52196ff 19558 * conf/i386-ieee1275.rmk: Define kernel_elf_ASFLAGS.
19559
58750afc 195602009-06-21 Robert Millan <rmh.grub@aybabtu.com>
19561
19562 * configure.ac: Enable `END_SYMBOL' / `BSS_START_SYMBOL' test on
19563 all i386 platforms.
19564
15355c7d 195652009-06-21 Robert Millan <rmh.grub@aybabtu.com>
19566
19567 Fix asm file handling on ELF, and remove workarounds.
19568
19569 * genmk.rb (class Programs): Detect assembly files, and set ASFLAGS
75421ca9 19570 and -DASM_FILE=1 appropriately (copied from `class Images' stanza).
15355c7d 19571 * kern/i386/ieee1275/startup.S (ASM_FILE): Remove macro.
19572 * kern/i386/coreboot/startup.S (ASM_FILE): Likewise.
19573
3f3ec72b 195742009-06-21 Vladimir Serbinenko <phcoder@gmail.com>
19575
19576 Load BSD ELF modules
19577
19578 * conf/i386-pc.rmk (bsd_mod_SOURCES): Add loader/i386/bsd32.c
19579 and loader/i386/bsd64.c
19580 * include/grub/i386/bsd.h (FREEBSD_MODTYPE_MODULE): Remove
19581 (FREEBSD_MODTYPE_ELF_MODULE): New definition
19582 (FREEBSD_MODTYPE_ELF_MODULE_OBJ): Likewise
19583 (grub_freebsd_load_elfmodule32): New declaration
19584 (grub_freebsd_load_elfmoduleobj64): Likewise
19585 (grub_freebsd_load_elf_meta32): Likewise
19586 (grub_freebsd_load_elf_meta64): Likewise
19587 (grub_freebsd_add_meta): Likewise
19588 (grub_freebsd_add_meta_module): Likewise
19589 * loader/i386/bsd.c (grub_freebsd_add_meta): Make global
19590 (grub_freebsd_add_meta_module): Likewise and move module-specific
19591 parts to grub_cmd_freebsd and grub_cmd_freebsd_module
19592 (grub_cmd_freebsd): Add elf-kernel specific parts
19593 based on grub_freebsd_add_meta_module
19594 (grub_cmd_freebsd_module): Add type parsing moved from
19595 grub_freebsd_add_meta_module
19596 (grub_cmd_freebsd_module_elf): New function
19597 (cmd_freebsd_module_elf): New variable
19598 (GRUB_MOD_INIT): Register freebsd_module_elf
19599 * loader/i386/bsd32.c: New file
19600 * loader/i386/bsd64.c: Likewise
19601 * loader/i386/bsdXX.c: Likewise
19602 * kern/elf.c (grub_elf32_load): Let hook decide which pheaders to load
19603 (grub_elf64_load): Likewise
19604 * include/grub/elfload.h (grub_elf32_load_hook_t): New parameter do_load
19605 All users updated
19606 (grub_elf64_load_hook_t): Likewise
19607
0db15301 196082009-06-21 Colin Watson <cjwatson@ubuntu.com>
19609
19610 * util/grub-mkconfig.in (GRUB_DISABLE_LINUX_RECOVERY): Export
19611 variable.
19612 * util/grub.d/10_linux.in: If GRUB_DISABLE_LINUX_RECOVERY is true,
19613 don't write a menu entry for recovery mode.
19614
546796c1 196152009-06-20 Robert Millan <rmh.grub@aybabtu.com>
19616
19617 * util/i386/pc/grub-mkimage.c (main): Oops, free `output' only
19618 after it's no longer needed.
19619
cd7310d5 196202009-06-20 Robert Millan <rmh.grub@aybabtu.com>
19621
19622 * include/grub/i386/loader.h (grub_linux_prot_size)
19623 (grub_linux_tmp_addr, grub_linux_real_addr)
19624 (grub_linux_is_bzimage, grub_linux16_boot): Declare only on
19625 GRUB_MACHINE_PCBIOS.
19626 * util/i386/pc/grub-mkimage.c (compress_kernel): Move
19627 common grub_util_info() call to ...
19628 (generate_image): ... here.
19629 Fix use of uninitialized memory, comparison of signed with
19630 unsigned integers and memory leak.
19631 Remove bogus module address message.
19632
ab32d3b5 196332009-06-20 Vladimir Serbinenko <phcoder@gmail.com>
19634
19635 * disk/mdraid_linux.c (GRUB_MOD_FINI): use grub_raid_unregister and not
19636 grub_raid_register
19637 * disk/dmraid_nvidia.c (GRUB_MOD_FINI): likewise
19638
024ef597 196392009-06-19 Pavel Roskin <proski@gnu.org>
19640
19641 * configure.ac: Remove stray AC_MSG_CHECKING.
19642
3ac72b51 196432009-06-19 Vladimir Serbinenko <phcoder@gmail.com>
19644
19645 * disk/scsi.c (grub_scsi_open): use continue instead of big if
dd74360c 19646
e14cd814 196472009-06-18 Pavel Roskin <proski@gnu.org>
19648
19649 * conf/common.rmk: Add fs_file.mod.
19650 * disk/fs_file.c: New file.
19651 * include/grub/disk.h (enum grub_disk_dev_id): Add
19652 GRUB_DISK_DEVICE_FILE_ID.
19653
26586d98 196542009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
19655
19656 Fix build with Apple's toolchain. Part 2
19657
19658 * aclocal.m4 (grub_PROG_TARGET_CC): add missing prototype for main and
19659 a fake start
19660
26de2bcd 196612009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
19662
19663 Fix build with Apple's toolchain. Part 1
19664
19665 * commands/i386/pc/drivemap_int13h.S: use assembly-time constants
19666 for long calls
19667 * configure.ac: remove a leftover AC_MSG_RESULT
dd74360c 19668 (CFLAGS): don't add -Wl,--defsym,___main=0x8100 when building with
26de2bcd 19669 Apple's toolchain
19670
09b3490b 196712009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
19672
19673 Fix warnings
19674
19675 * fs/ntfscomp.c (decomp_get16): initialize c1 and c2
19676 (decomp_block): initialize ch
19677 use grub_memcpy instead of memcpy
19678
c22a006a 196792009-06-17 Pavel Roskin <proski@gnu.org>
19680
d3638678 19681 * include/grub/i386/coreboot/console.h: Don't use the i386-pc
19682 version, use declarations needed to use vga_text as the startup
19683 console.
19684
c22a006a 19685 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Remove
19686 term/i386/pc/at_keyboard.c, it doesn't need to be compiled into
19687 the kernel.
19688 * kern/i386/coreboot/init.c: Don't call grub_at_keyboard_init()
19689 and grub_at_keyboard_fini(), it's done on module load and
19690 unload.
19691
05b129e0 196922009-06-17 Felix Zielcke <fzielcke@z-51.de>
19693
19694 * loader/i386/linux.c (grub_cmd_linux): Set grub_error if the
19695 file can't be found.
19696 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
19697
cf24ed9e 196982009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
19699
19700 Fix newline handling
19701
19702 * include/grub/script_sh.h (grub_lexer_param): new field was_newline
dd74360c 19703 * script/sh/lexer.c (grub_script_lexer_init): initialize was_newline
cf24ed9e 19704 (grub_script_yylex): don't segfault on unterminated script
19705 newline terminates command and variable
19706
74aa8e4b 197072009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
19708
19709 avoid double grub_adjust_range call. Bug reported by David Simner
19710
19711 * kern/disk.c (grub_disk_write): change to raw disk access before
19712 calling disk_read
19713
1bd265f3 197142009-06-17 Colin Watson <cjwatson@ubuntu.com>
19715
19716 * util/elf/grub-mkimage.c (usage): Prefix each option line with two
19717 spaces, for the benefit of help2man.
19718 * util/i386/efi/grub-mkimage.c (usage): Likewise.
19719
a2d08c06 197202009-06-16 Pavel Roskin <proski@gnu.org>
19721
19722 * kern/i386/halt.c: Include grub/machine/init.h.
19723 * kern/i386/reboot.c: Include grub/cpu/reboot.h.
19724
b97bcb19 197252009-06-16 Felix Zielcke <fzielcke@z-51.de>
19726
19727 * util/grub.d/30_os-prober.in: Use ${root} in the generated
19728 drivemap menuentry.
19729
0644f96c 197302009-06-16 James Jarvis <James.Jarvis@ed.ac.uk>
19731
19732 * commands/help.c GRUB_MOD_INIT(echo): Fix the help output of
19733 `echo' command.
19734
3ef17a2e 197352009-06-16 Pavel Roskin <proski@gnu.org>
19736
19737 * boot/i386/pc/boot.S: Remove root_drive. Assert offset of
19738 boot_drive_check by using GRUB_BOOT_MACHINE_DRIVE_CHECK. Don't
19739 save %dx, we only need %dl and we never change it.
19740 * boot/i386/pc/cdboot.S: Don't set the root drive.
19741 * boot/i386/pc/pxeboot.S: Likewise.
19742 * include/grub/i386/pc/boot.h: Remove
19743 GRUB_BOOT_MACHINE_ROOT_DRIVE, adjust
19744 GRUB_BOOT_MACHINE_DRIVE_CHECK.
19745 * include/grub/i386/pc/kernel.h: Remove grub_root_drive.
19746 * kern/i386/pc/init.c (make_install_device): Remove references
19747 to grub_root_drive.
19748 * kern/i386/pc/startup.S: Likewise.
19749 * util/i386/pc/grub-setup.c (setup): Don't set root_drive.
19750
693fe637 197512009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
19752
19753 xnu_uuid command
19754
19755 * commands/xnu_uuid.c: new file
19756 * conf/common.rmk (pkglib_MODULES): add xnu_uuid.mod
19757 (xnu_uuid_mod_SOURCES): new variable
19758 (xnu_uuid_mod_CFLAGS): likewise
19759 (xnu_uuid_mod_LDFLAGS): likewise
19760 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
19761 * conf/i386-ieee1275.rmk: likewise
19762 * conf/i386-pc.rmk: likewise
19763 * conf/powerpc-ieee1275.rmk: likewise
19764 * conf/sparc64-ieee1275.rmk: likewise
19765 * util/grub.d/30_os-prober.in: use UUID for Mac OS X/Darwin
19766
c9da87d0 197672009-06-16 Pavel Roskin <proski@gnu.org>
19768
19769 * configure.ac: Avoid '==' in test command, it's not portable.
19770
9c6f4596 197712009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
19772
19773 Probe command
19774
19775 * commands/probe.c: new file
19776 * conf/common.rmk (pkglib_MODULES): add probe.mod
19777 (probe_mod_SOURCES): new variable
19778 (probe_mod_CFLAGS): likewise
19779 (probe_mod_LDFLAGS): likewise
19780 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
19781 * conf/i386-ieee1275.rmk: likewise
19782 * conf/i386-pc.rmk: likewise
19783 * conf/powerpc-ieee1275.rmk: likewise
19784 * conf/sparc64-ieee1275.rmk: likewise
19785
70b7f9fd 197862009-06-15 Vladimir Serbinenko <phcoder@gmail.com>
19787
19788 Fix handling of string like \"hello\" and "a
19789 b"
19790
19791 * script/sh/lexer.c (check_textstate): accept GRUB_PARSER_STATE_ESC
19792 (grub_script_yylex): fix parsing of quoting, escaping and newline
19793
71c79a6b 197942009-06-13 Vladimir Serbinenko <phcoder@gmail.com>
19795
dd74360c 19796 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): fix partition
71c79a6b 19797 handling
dd74360c 19798
0644f96c 197992009-06-13 Jun Inoue <jun.lambda@gmail.com>
880fc3c4 19800
19801 * util/grub-mkconfig.in: Fix parsing of --output option.
19802
e40893c3 198032009-06-12 Pavel Roskin <proski@gnu.org>
19804
19805 * Makefile.in (pkgdata_SRCDIR): Remove. genmodsrc.sh and
19806 genmk.rb don't need to be generated or installed.
19807
3a1acfe2 198082009-06-12 Vladimir Serbinenko <phcoder@gmail.com>
19809
19810 * commands/i386/pc/drivemap_int13h.S: add more comments
19811
3a4575d4 198122009-06-11 Pavel Roskin <proski@gnu.org>
19813
0658e928 19814 * Makefile.in (uninstall): Uninstall manuals.
19815
ca0388f0 19816 * Makefile.in: Rename lib_DATA to lib_SCRIPTS, move it from
19817 PKGLIB to SCRIPTS. This fixes installation of grub-mkconfig_lib
19818 and update-grub_lib in two places.
19819 * conf/common.rmk: Rename lib_DATA to lib_SCRIPTS.
19820
e3b27c39 19821 * disk/usbms.c (grub_usbms_transfer): Initialize `err' to fix
19822 a compiler warning.
19823
3a4575d4 19824 * loader/i386/bsd.c (grub_freebsd_boot): Rename `entry' to
19825 `entry_lo' to fix variable shadowing.
19826
af1f4f55 198272009-06-11 Christian Franke <franke@computer.org>
19828
19829 * kern/misc.c (__enable_execute_stack): Add missing return type
19830 to prevent gcc warning.
19831
5225e649 198322009-06-11 Felix Zielcke <fzielcke@z-51.de>
19833
19834 * conf/i386-ieee1275.rmk (COMMON_LDFLAGS): Remove `-static -lgcc'.
19835
7d83bd47 198362009-06-11 Pavel Roskin <proski@gnu.org>
19837
c1cb63ba 19838 * Makefile.in: Don't rely on any scripts being executable.
19839 Always use $(SHELL) to run shell scripts.
19840
7d83bd47 19841 * configure.ac: Always define ___main if using -nostdlib. This
19842 fixes tests on Cygwin.
19843
948f48e7 198442009-06-11 Giuseppe Caizzone <acaizzo@gmail.com>
19845
19846 UDF fix
19847
7d83bd47 19848 * fs/udf.c (grub_udf_read_block): handle the fact that ad->length
948f48e7 19849 is in bytes and not in blocks
7d83bd47 19850
8ada9bc1 198512009-06-11 Pavel Roskin <proski@gnu.org>
19852
19853 * kern/i386/halt.c (grub_halt): Make `i' unsigned to fix a
19854 warning.
19855
25ad2323 198562009-06-11 Felix Zielcke <fzielcke@z-51.de>
19857
19858 * util/grub.d/30_os-prober.in: Fix a comment. Source
19859 ${libdir}/grub/grub-mkconfig_lib. Use prepare_grub_to_access_device
19860 to set the root device. Place drivemap command in the generated
19861 chain entry.
19862
e65acb0c 198632009-06-11 Pavel Roskin <proski@gnu.org>
19864
19865 * configure.ac: Remove host_m32. Issues with 64-bit utilities
19866 have long been resolved.
19867
f285fe2d 198682009-06-11 Colin Watson <cjwatson@ubuntu.com>
19869
bd47b0b5 19870 * util/grub.d/10_linux.in: Capitalise "Linux".
19871
f285fe2d 19872 * util/grub-pe2elf.c (usage): Fix references to grub-editenv.
19873
a0c62e4e 198742009-06-11 Pavel Roskin <proski@gnu.org>
19875
b6783cb2 19876 * kern/efi/efi.c (grub_exit): Add infinite loop at the end to
19877 fix a gcc warning and ensure that the function won't ever exit.
19878
dde032e8 19879 * kern/i386/ieee1275/init.c: Add missing prototype for
19880 grub_stop_floppy().
19881
22cd079d 19882 * loader/ieee1275/multiboot2.c [__i386__]: Include
19883 grub/cpu/multiboot.h.
19884
a0c62e4e 19885 * term/i386/pc/serial.c (serial_translate_key_sequence): Avoid
19886 casts to short - they are not portable and cause warnings. Fix
19887 use of uninitialized values in input_buf. Use ARRAY_SIZE.
19888
63963d17 198892009-06-11 Vladimir Serbinenko <phcoder@gmail.com>
19890
19891 Drivemap fixes
19892
19893 * commands/i386/pc/drivemap.c (grub_get_root_biosnumber_drivemap):
19894 new function
19895 (grub_get_root_biosnumber_saved): new variable
19896 (GRUB_MOD_INIT): register grub_get_root_biosnumber_drivemap
19897 (GRUB_MOD_FINI): unregister grub_get_root_biosnumber_drivemap
775dbc4d 19898 * commands/i386/pc/drivemap_int13h.S (grub_drivemap_handler): restore
63963d17 19899 %dx after the call if necessary
19900 * conf/common.rmk (pkglib_MODULES): remove boot.mod
19901 (boot_mod_SOURCES): remove
19902 (boot_mod_CFLAGS): remove
19903 (boot_mod_LDFLAGS): remove
19904 * conf/i386-coreboot.rmk (pkglib_MODULES): add boot.mod
19905 (boot_mod_SOURCES): new variable
19906 (boot_mod_CFLAGS): likewise
19907 (boot_mod_LDFLAGS): likewise
19908 * conf/i386-efi.rmk: likewise
19909 * conf/i386-ieee1275.rmk: likewise
19910 * conf/i386-pc.rmk: likewise
19911 * conf/powerpc-ieee1275.rmk: likewise
19912 * conf/sparc64-ieee1275.rmk: likewise
19913 * conf/x86_64-efi.rmk: likewise
19914 * include/grub/i386/pc/biosnum.h: new file
19915 * lib/i386/pc/biosnum.c: likewise
19916 * loader/i386/bsd.c (grub_bsd_get_device): use grub_get_root_biosnumber
19917 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): likewise
19918 * loader/i386/pc/chainloader.c (grub_chainloader_cmd): likewise
775dbc4d 19919
33abf7ae 199202009-06-10 Pavel Roskin <proski@gnu.org>
19921
5ac35b35 19922 * io/gzio.c (test_header): Don't reuse one buffer for all data.
19923 Use separate variables. Read only the file size at the end, but
19924 not the checksum that we don't use.
19925
5c5215d5 19926 * kern/file.c (grub_file_read): Use void pointer for the buffer.
19927 Adjust all callers.
19928
27d5fef7 19929 * kern/ieee1275/openfw.c: Remove libc includes.
19930 * kern/ieee1275/cmain.c: Likewise.
19931 * include/grub/ieee1275/ieee1275.h: Likewise.
19932
33abf7ae 19933 * kern/i386/coreboot/init.c: Include grub/cpu/tsc.h to fix
19934 compiler warnings.
19935
19d50c2b 199362009-06-10 Felix Zielcke <fzielcke@z-51.de>
19937
19938 * Makefile.in: Remove all trailing whitespace.
19939 * conf/i386-pc.rmk: Likewise.
19940 * conf/powerpc-ieee1275.rmk: Likewise.
19941 * conf/sparc64-ieee1275.rmk: Likewise.
19942 * docs/grub.texi: Likewise.
19943 * docs/texinfo.tex: Likewise.
19944 * disk/fs_uuid.c: Likewise.
19945 * disk/lvm.c: Likewise.
19946 * disk/scsi.c: Likewise.
19947 * disk/ata.c: Likewise.
19948 * disk/ieee1275/ofdisk.c: Likewise.
19949 * disk/i386/pc/biosdisk.c: Likewise.
19950 * disk/host.c: Likewise.
19951 * disk/raid.c: Likewise.
19952 * disk/efi/efidisk.c: Likewise.
19953 * disk/usbms.c: Likewise.
19954 * disk/memdisk.c: Likewise.
19955 * disk/loopback.c: Likewise.
19956 * kern/powerpc/dl.c: Likewise.
19957 * kern/device.c: Likewise.
19958 * kern/dl.c: Likewise.
19959 * kern/sparc64/dl.c: Likewise.
19960 * kern/ieee1275/ieee1275.c: Likewise.
19961 * kern/term.c: Likewise.
19962 * kern/fs.c: Likewise.
19963 * kern/i386/dl.c: Likewise.
19964 * kern/i386/pc/startup.S: Likewise.
19965 * kern/i386/pc/init.c: Likewise.
19966 * kern/i386/pc/mmap.c: Likewise.
19967 * kern/i386/pc/lzo1x.S: Likewise.
19968 * kern/i386/ieee1275/init.c: Likewise.
19969 * kern/i386/realmode.S: Likewise.
19970 * kern/i386/tsc.c: Likewise.
19971 * kern/partition.c: Likewise.
19972 * kern/corecmd.c: Likewise.
19973 * kern/file.c: Likewise.
19974 * kern/efi/efi.c: Likewise.
19975 * kern/efi/init.c: Likewise.
19976 * kern/efi/mm.c: Likewise.
19977 * kern/main.c: Likewise.
19978 * kern/err.c: Likewise.
19979 * kern/env.c: Likewise.
19980 * kern/disk.c: Likewise.
19981 * kern/generic/millisleep.c: Likewise.
19982 * kern/generic/rtc_get_time_ms.c: Likewise.
19983 * kern/misc.c: Likewise.
19984 * kern/parser.c: Likewise.
19985 * genmk.rb: Likewise.
19986 * configure.ac: Likewise.
19987 * boot/i386/pc/diskboot.S: Likewise.
19988 * boot/i386/pc/pxeboot.S: Likewise.
19989 * boot/i386/pc/boot.S: Likewise.
19990 * boot/i386/pc/lnxboot.S: Likewise.
19991 * boot/i386/pc/cdboot.S: Likewise.
19992 * parttool/pcpart.c: Likewise.
19993 * video/readers/tga.c: Likewise.
19994 * video/video.c: Likewise.
19995 * video/bitmap.c: Likewise.
19996 * lib/envblk.c: Likewise.
19997 * lib/i386/setjmp.S: Likewise.
19998 * fs/xfs.c: Likewise.
19999 * fs/afs.c: Likewise.
20000 * fs/fat.c: Likewise.
20001 * fs/ntfs.c: Likewise.
20002 * fs/udf.c: Likewise.
20003 * fs/affs.c: Likewise.
20004 * fs/iso9660.c: Likewise.
20005 * fs/hfs.c: Likewise.
20006 * fs/fshelp.c: Likewise.
20007 * fs/ext2.c: Likewise.
20008 * fs/jfs.c: Likewise.
20009 * fs/reiserfs.c: Likewise.
20010 * fs/hfsplus.c: Likewise.
20011 * fs/minix.c: Likewise.
20012 * fs/cpio.c: Likewise.
20013 * fs/sfs.c: Likewise.
20014 * fs/ufs.c: Likewise.
20015 * efiemu/prepare.c: Likewise.
20016 * efiemu/loadcore_common.c: Likewise.
20017 * efiemu/runtime/efiemu.sh: Likewise.
20018 * efiemu/runtime/efiemu.S: Likewise.
20019 * efiemu/runtime/efiemu.c: Likewise.
20020 * efiemu/pnvram.c: Likewise.
20021 * efiemu/main.c: Likewise.
20022 * efiemu/i386/pc/cfgtables.c: Likewise.
20023 * efiemu/i386/loadcore64.c: Likewise.
20024 * efiemu/i386/loadcore32.c: Likewise.
20025 * efiemu/loadcore.c: Likewise.
20026 * efiemu/symbols.c: Likewise.
20027 * efiemu/mm.c: Likewise.
20028 * include/grub/autoefi.h: Likewise.
20029 * include/grub/datetime.h: Likewise.
20030 * include/grub/term.h: Likewise.
20031 * include/grub/hfs.h: Likewise.
20032 * include/grub/lvm.h: Likewise.
20033 * include/grub/i386/tsc.h: Likewise.
20034 * include/grub/i386/linux.h: Likewise.
20035 * include/grub/i386/xnu.h: Likewise.
20036 * include/grub/i386/efiemu.h: Likewise.
20037 * include/grub/i386/pc/biosdisk.h: Likewise.
20038 * include/grub/i386/pc/memory.h: Likewise.
20039 * include/grub/i386/pc/vbe.h: Likewise.
20040 * include/grub/parttool.h: Likewise.
20041 * include/grub/video.h: Likewise.
20042 * include/grub/memory.h: Likewise.
20043 * include/grub/fs.h: Likewise.
20044 * include/grub/partition.h: Likewise.
20045 * include/grub/xnu.h: Likewise.
20046 * include/grub/efi/api.h: Likewise.
20047 * include/grub/efi/pe32.h: Likewise.
20048 * include/grub/efi/memory.h: Likewise.
20049 * include/grub/multiboot.h: Likewise.
20050 * include/grub/usbdesc.h: Likewise.
20051 * include/grub/multiboot2.h: Likewise.
20052 * include/grub/acpi.h: Likewise.
20053 * include/grub/efiemu/efiemu.h: Likewise.
20054 * include/grub/disk.h: Likewise.
20055 * include/grub/ieee1275/ieee1275.h: Likewise.
20056 * include/grub/net.h: Likewise.
20057 * include/grub/machoload.h: Likewise.
20058 * include/grub/macho.h: Likewise.
20059 * include/multiboot.h: Likewise.
20060 * genmoddep.awk: Likewise.
20061 * normal/main.c: Likewise.
20062 * normal/menu_entry.c: Likewise.
20063 * normal/menu_viewer.c: Likewise.
20064 * normal/completion.c: Likewise.
20065 * normal/cmdline.c: Likewise.
20066 * normal/misc.c: Likewise.
20067 * normal/datetime.c: Likewise.
20068 * bus/usb/usbtrans.c: Likewise.
20069 * bus/usb/ohci.c: Likewise.
20070 * bus/usb/uhci.c: Likewise.
20071 * bus/usb/usb.c: Likewise.
20072 * mmap/efi/mmap.c: Likewise.
20073 * mmap/i386/pc/mmap_helper.S: Likewise.
20074 * mmap/i386/pc/mmap.c: Likewise.
20075 * mmap/i386/mmap.c: Likewise.
20076 * mmap/i386/uppermem.c: Likewise.
20077 * mmap/mmap.c: Likewise.
20078 * commands/acpi.c: Likewise.
20079 * commands/echo.c: Likewise.
20080 * commands/blocklist.c: Likewise.
20081 * commands/loadenv.c: Likewise.
20082 * commands/usbtest.c: Likewise.
20083 * commands/boot.c: Likewise.
20084 * commands/parttool.c: Likewise.
20085 * commands/search.c: Likewise.
20086 * commands/cat.c: Likewise.
20087 * commands/i386/pc/play.c: Likewise.
20088 * commands/i386/pc/drivemap.c: Likewise.
20089 * commands/i386/pc/vbeinfo.c: Likewise.
20090 * commands/i386/pc/acpi.c: Likewise.
20091 * commands/i386/pc/vbetest.c: Likewise.
20092 * commands/ls.c: Likewise.
20093 * commands/cmp.c: Likewise.
20094 * commands/test.c: Likewise.
20095 * commands/efi/acpi.c: Likewise.
20096 * commands/gptsync.c: Likewise.
20097 * commands/help.c: Likewise.
20098 * partmap/amiga.c: Likewise.
20099 * partmap/apple.c: Likewise.
20100 * partmap/acorn.c: Likewise.
20101 * partmap/pc.c: Likewise.
20102 * partmap/sun.c: Likewise.
20103 * partmap/gpt.c: Likewise.
20104 * script/sh/lexer.c: Likewise.
20105 * script/sh/function.c: Likewise.
20106 * font/font.c: Likewise.
20107 * font/font_cmd.c: Likewise.
20108 * loader/powerpc/ieee1275/linux.c: Likewise.
20109 * loader/efi/chainloader.c: Likewise.
20110 * loader/multiboot_loader.c: Likewise.
20111 * loader/macho.c: Likewise.
20112 * loader/i386/multiboot.c: Likewise.
20113 * loader/i386/linux.c: Likewise.
20114 * loader/i386/pc/linux.c: Likewise.
20115 * loader/i386/pc/multiboot2.c: Likewise.
20116 * loader/i386/pc/chainloader.c: Likewise.
20117 * loader/i386/pc/xnu.c: Likewise.
20118 * loader/i386/bsd_trampoline.S: Likewise.
20119 * loader/i386/efi/linux.c: Likewise.
20120 * loader/i386/multiboot_elfxx.c: Likewise.
20121 * loader/i386/bsd_helper.S: Likewise.
20122 * loader/i386/bsd.c: Likewise.
20123 * loader/i386/linux_trampoline.S: Likewise.
20124 * loader/i386/xnu_helper.S: Likewise.
20125 * loader/i386/xnu.c: Likewise.
20126 * loader/i386/bsd_pagetable.c: Likewise.
20127 * loader/i386/multiboot_helper.S: Likewise.
20128 * loader/xnu.c: Likewise.
20129 * loader/xnu_resume.c: Likewise.
20130 * io/gzio.c: Likewise.
20131 * term/efi/console.c: Likewise.
20132 * term/terminfo.c: Likewise.
20133 * term/ieee1275/ofconsole.c: Likewise.
20134 * term/i386/pc/serial.c: Likewise.
20135 * term/i386/pc/vesafb.c: Likewise.
20136 * term/i386/pc/vga.c: Likewise.
20137 * term/usb_keyboard.c: Likewise.
20138 * term/gfxterm.c: Likewise.
20139 * aclocal.m4: Likewise.
20140 * util/lvm.c: Likewise.
20141 * util/grub.d/30_os-prober.in: Likewise.
20142 * util/grub.d/10_hurd.in: Likewise.
20143 * util/console.c: Likewise.
20144 * util/grub-macho2img.c: Likewise.
20145 * util/grub-probe.c: Likewise.
20146 * util/hostfs.c: Likewise.
20147 * util/i386/pc/grub-mkimage.c: Likewise.
20148 * util/i386/pc/grub-setup.c: Likewise.
20149 * util/i386/efi/grub-mkimage.c: Likewise.
20150 * util/grub-mkconfig.in: Likewise.
20151 * util/raid.c: Likewise.
20152 * util/resolve.c: Likewise.
20153 * util/grub-mkdevicemap.c: Likewise.
20154 * util/grub-emu.c: Likewise.
20155 * util/getroot.c: Likewise.
20156 * util/hostdisk.c: Likewise.
20157 * util/usb.c: Likewise.
20158 * util/grub-editenv.c: Likewise.
20159 * util/misc.c: Likewise.
20160
d2d49665 201612009-06-10 Felix Zielcke <fzielcke@z-51.de>
20162
20163 * gendistlist.sh (EXTRA_DISTFILES): Add `genhandlerlist.sh' and
20164 `genparttoollist.sh'.
20165 (DISTDIRS): Add `efiemu', `mmap', `parttool' and `script'.
20166 Add `*.sh' to the list find searches for and change `mdate.sh'
20167 to `mdate-sh'.
20168
fe052e37 201692009-06-10 Pavel Roskin <proski@gnu.org>
20170
2763ac18 20171 * include/grub/multiboot2.h: Provide compatibility defines for
20172 multiboot2.h.
20173 * include/multiboot2.h: Include stdint.h only if needed, using
20174 angle brackets.
20175 * loader/i386/pc/multiboot2.c: Include multiboot2.h after
20176 grub/multiboot2.h.
20177 * loader/ieee1275/multiboot2.c: Likewise.
20178 * loader/multiboot2.c: Likewise.
20179 * loader/multiboot_loader.c: Likewise.
20180
437e6adc 20181 * configure.ac: Use -nostdlib when probing for the target. It
20182 should not be required to have libc for the target.
20183
06a6836c 20184 * configure.ac: Remove checks for __bswapsi2 and __bswapdi2,
20185 they fail without libc headers for the target.
20186 * include/grub/powerpc/libgcc.h: Use weak attribute for all
20187 exports.
20188 * include/grub/sparc64/libgcc.h: Likewise. Don't use
20189 preprocessor conditionals.
20190
fe052e37 20191 * conf/common.rmk: Compile tar.mod from tar.c, not cpio.c. The
20192 build system doesn't need to be aware of the tar.c internals.
20193
afd22553 201942009-06-09 Michel Hermier <michel.hermier@gmail.com>
87b8f28c 20195
afd22553 20196 * fs/i386/pc/pxe.c (grub_pxefs_read): Fix returned values.
8ec4a6d0 20197
6b787c4f 201982009-06-09 Robert Millan <rmh.grub@aybabtu.com>
20199
20200 * util/deviceiter.c (grub_util_iterate_devices): Increase number of
20201 disk limit to 26 for IDE, Virtio, Xen and SCSI.
20202
202032009-06-09 Felix Zielcke <fzielcke@z-51.de>
20204
20205 * util/i386/pc/grub-install.in: Change the error message if UUIDs
473d1e45 20206 aren't available if ata.mod gets used.
6b787c4f 20207
473d1e45 202082009-06-09 Oliver Henshaw <oliver.henshaw@gmail.com>
e23721e8 20209
473d1e45 20210 * bus/usb/ohci.c (grub_ohci_pci_iter): Link struct only after
e23721e8 20211 initialising controller.
473d1e45 20212 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
e23721e8 20213
255a27d4 202142009-06-08 Felix Zielcke <fzielcke@z-51.de>
20215
20216 * util/i386/pc/grub-install.in: Add a parameter --disk-module
20217 to choose between ata and biosdisk module on i386-pc.
20218
473d1e45 202192009-06-08 Oliver Henshaw <oliver.henshaw@gmail.com>
69da8877 20220
d55842d8 20221 * bus/usb/ohci.c (grub_ohci_pci_iter): Define the Class,
20222 Subclass and Programming Interface fields in terms of the 3 byte
20223 Class Code register.
20224 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
20225
fa5db0b1 20226 * bus/usb/ohci.c (grub_ohci_pci_iter): Check that programming
20227 interface is OHCI. Add grub_dprintf for symmetry with
20228 bus/usb/uhci.c.
20229 * bus/usb/uhci.c (grub_uhci_pci_iter): Check that programming
20230 interface is UHCI. Add interf variable for programming
20231 interface. Print interface with class/subclass.
20232
c0947beb 20233 * bus/usb/ohci.c: Set interf with correct field.
20234
69da8877 20235 * bus/usb/uhci.c: Remove unneeded doubled lines.
20236 * bus/usb/ohci.c: Likewise. Change interf to grub_uint32_t.
20237 Remove whitespace inside comment.
20238
9e172e30 202392009-06-08 Robert Millan <rmh.grub@aybabtu.com>
20240
20241 * loader/i386/linux.c (grub_cmd_linux): When processing `vga=', use
20242 as fallback an equivalent option without depth.
20243
de65ee2b 202442009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
20245
20246 Not fail if unable to retrieve C/H/S on LBA disks
20247
473d1e45 20248 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): behave gracefully
de65ee2b 20249 if unable to retrieve C/H/S on LBA disks
20250
b57ea2c9 202512009-06-08 Pavel Roskin <proski@gnu.org>
20252
20253 * fs/hfs.c (grub_hfs_find_dir): Use union to avoid a warning
20254 about aliasing.
20255
af361263 202562009-06-08 Felix Zielcke <fzielcke@z-51.de>
20257
20258 * Makefile.in (uninstall): Remove all $lib_DATA files.
20259
4c9ec6b3 202602009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
20261
20262 Bugfix: install on partitionless device
20263
20264 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): check if os_dev
20265 is a whole disk
20266
e76fc924 202672009-06-08 Felix Zielcke <fzielcke@z-51.de>
20268
20269 * Makefile.in (uninstall): Remove all $include_DATA files.
20270
ba5a0d05 202712009-06-08 Felix Zielcke <fzielcke@z-51.de>
20272
20273 * commands/true.c: New file. Implement the true and false commands.
20274 * conf/common.rmk.c (pkglib_MODULES): Add `true.mod'.
20275 (true_mod_SOURCES): New variable.
20276 (true_mod_CFLAGS): Likewise.
20277 (true_mod_LDFLAGS): Likewise.
20278
c8048e32 202792009-06-05 Colin D Bennett <colin@gibibit.com>
20280
20281 Optimized font character lookup using binary search instead of linear
20282 search. Fonts now are required to have the character index ordered by
20283 code point.
20284
20285 * font/font.c (load_font_index): Verify that fonts have ordered
20286 character indices.
20287 (find_glyph): Use binary search instead of linear search to find a
20288 character in a font.
20289
408305be 202902009-06-05 Michael Scherer <misc@mandriva.org>
20291
20292 * fs/hfsplus.c (grub_hfsplus_mount): Determine if the filesystem
20293 uses case sensitive btree.
20294 (grub_hfsplus_iterate_dir): Use GRUB_FSHELP_CASE_INSENSITIVE
20295 only for case insensitive filesystems.
20296
8ee1e0d9 202972009-06-05 Vladimir Serbinenko <phcoder@gmail.com>
20298
20299 * conf/i386-pc.rmk (efiemu_mod_CFLAGS): remove -Werror -Wall
20300 * conf/common.rmk (search_mod_CFLAGS): likewise
20301
a9966eb1 203022009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
20303
473d1e45 20304 * kern/i386/pc/startup.S [APPLE_CC]: block of nops to
a9966eb1 20305 compensate a compiler bug
20306
9e7100fb 203072009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
20308
473d1e45 20309 * include/grub/term.h (GRUB_TERM_BACKSPACE): explicitly define as 8
9e7100fb 20310 instead of '\b'
473d1e45 20311
ede21d71 203122009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
20313
20314 Definitions for creating asm symbols with Apple's CC
20315
20316 * include/grub/symbol.h [APPLE_CC] (FUNCTION): new macro
20317 [APPLE_CC] (VARIABLE): likewise
20318
9dbf7653 203192009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
20320
20321 Disable lnxboot.img when compiled
20322 with Apple's CC
20323
20324 * conf/i386-pc.rmk (pkglib_IMAGES): remove lnxboot.img
20325 pkglib_IMAGES [! TARGET_APPLE_CC] (pkglib_IMAGES): add lnxboot.img
20326 * boot/i386/pc/lnxboot.S [APPLE_CC]: define an #error
20327 [! APPLE_CC] (CODE_LENG): skip
20328 [! APPLE_CC] (setup_sects): likewise
20329 [! APPLE_CC]: skip filling
473d1e45 20330
e93cdc3d 203312009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
20332
20333 Address in trampolines based on 32-bit registers when compiled
20334 with Apple's CC
20335
473d1e45 20336 * loader/i386/xnu_helper.S [APPLE_CC]: use 32-bit registers
e93cdc3d 20337 for addresses
20338 * loader/i386/linux_trampoline.S [APPLE_CC]: likewise
20339
6c688477 203402009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
20341
20342 Avoid aliases when compiling with Apple's CC for PCBIOS machine
20343
20344 * kern/misc.c [APPLE_CC] (memcpy): new function
20345 [APPLE_CC] (memmove): likewise
20346 [APPLE_CC && !GRUB_UTIL] (grub_err_printf): likewise
473d1e45 20347 (memcpy): define alias conditionally on !APPLE_CC
6c688477 20348 (memset): likewise
20349 (abort): likewise
20350 * include/grub/misc.h (memove): don't define when both GRUB_UTIL and
20351 APPLE_CC are defined
20352 * include/grub/list.h [APPLE_CC] (grub_assert_fail): new function
20353 (grub_assert_fail): make prototype conditional
20354
e37ffc5c 203552009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
20356
20357 Use grub-macho2img when compiling with Apple's CC for PCBIOS machine
20358
473d1e45 20359 * conf/common.rmk (bin_UTILITIES): add (on false on condition)
20360 grub-macho2img
e37ffc5c 20361 (CLEANFILES): add grub-macho2img
20362 (grub_macho2img_SOURCES): new variable
20363 * kern/i386/pc/startup.S (bss_start): new variable
20364 (bss_end): likewise
20365 * genmk.rb: use grub-macho2img for *.img when compiled with Apple's CC
20366 * util/grub-macho2img.c: new file
20367
cf00df31 203682009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
20369
20370 Use objconv when compiling with Apple's CC
20371
20372 * conf/i386-pc.rmk (efiemu32.o): use OBJCONV if defined
20373 (efiemu64.o): likewise
20374 (efiemu64_c.o): omit -mcmodel=large and add -DAPPLE_CC=1
20375 when compiling with Apple's CC
20376 (efiemu64_s.o): likewise
20377 * configure.ac: check for objconv when compiling with Apple's CC
20378 * genmk.rb: use objconv for modules when compiled with Apple's CC
473d1e45 20379
d119a20c 203802009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
20381
20382 Define segment as well as section when compiling with
20383 Apple's CC
20384
20385 * efiemu/runtime/efiemu.c (PHYSICAL_ATTRIBUTE): new definition
20386 (efiemu_set_virtual_address_map): declare with PHYSICAL_ATTRIBUTE
20387 (efiemu_convert_pointer): likewise
20388 (efiemu_set_virtual_address_map): likewise
20389 (efiemu_convert_pointer): likewise
20390 (efiemu_getcrc32): likewise
20391 (init_crc32_table): likewise
20392 (reflect): likewise
20393 * include/grub/dl.h (GRUB_MOD_NAME): define segment with Apple's CC
20394 (GRUB_MOD_DEP): likewise
473d1e45 20395
c8600122 203962009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
20397
20398 Allow a compilation without -mcmodel=large
20399
20400 * kern/efi/mm.c (grub_efi_allocate_pages): don't allocate >4GiB
20401 when compiled without -mcmodel=large
473d1e45 20402 (filter_memory_map): remove memory post 4 GiB when compiled
c8600122 20403 without -mcmodel=large
473d1e45 20404 * configure.ac: fail gracefully and add -DMCMODEL_SMALL=1 to
c8600122 20405 TARGET_CFLAGS when -mcmodel=large isn't supported
473d1e45 20406
e8df1d4e 204072009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
20408
20409 Remove nested functions in efiemu core
20410
20411 * efiemu/runtime/efiemu.c (reflect): make static instead of nested
473d1e45 20412
cc6c3ac1 204132009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
20414
20415 Avoid clobbering %ebx/%rbx in inline assembly with Apple's CC
20416
20417 * efiemu/runtime/efiemu.c (write_cmos): use %cl instead of %bl as
20418 temporary storage
473d1e45 20419 * include/grub/i386/tsc.h (grub_get_tsc): restore %rbx/%ebx when
20420 using Apple's CC
cc6c3ac1 20421 (grub_cpu_is_tsc_supported): likewise
20422 * loader/i386/xnu.c (guessfsb): restore %rbx/%ebx in inline assembly
473d1e45 20423
3e325901 204242009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
20425
20426 Absolute addressing through constant with Apple's cc
20427
20428 * kern/i386/pc/startup.S: Define necessary constants
20429 and address through it when using ABS with Apple's CC
20430 * boot/i386/pc/diskboot.S: likewise
20431 * boot/i386/pc/boot.S: likewise
20432 * boot/i386/pc/lnxboot.S: likewise
20433 * boot/i386/pc/cdboot.S: likewise
20434 * mmap/i386/pc/mmap_helper.S: likewise
20435 * commands/i386/pc/drivemap_int13h.S: likewise
20436
2b167a72 204372009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
20438
20439 Check if compiler is apple cc
20440
20441 * Makefile.in (ASFLAGS): new variable
20442 (TARGET_ASFLAGS): likewise
20443 (TARGET_MODULE_FORMAT): likewise
20444 (TARGET_APPLE_CC): likewise
20445 (OBJCONV): likewise
20446 (TARGET_IMG_CFLAGS): likewise
20447 (TARGET_CPPFLAGS): add includedir
20448 * configure.ac: call grub_apple_cc and grub_apple_target_cc
20449 (TARGET_IMG_LDFLAGS): Add -Wl,-Ttext,. All users updated
20450 Check for linker script only if compiler isn't Apple's CC
20451 (TARGET_MODULE_FORMAT): set
20452 (TARGET_APPLE_CC): likewise
20453 (TARGET_ASFLAGS): likewise
20454 (ASFLAGS): likewise
20455 Check for objcopy only if compiler isn't Apple's CC
20456 Check for BSS symbol only if compiler isn't Apple's CC
20457 * genmk.rb: adapt nm options if we use Apple's utils
20458 * aclocal.m4 (grub_apple_cc): new test
20459 (grub_apple_target_cc): likewise
473d1e45 20460
fb14123e 204612009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
20462
20463 Simplify sed expressions and improve awk
20464
20465 * Makefile.in (install-local): simplify sed expression
20466 * gencmdlist.sh: likewise
20467 * genmoddep.awk: avoid adding module as a dependency of itself
20468
5b889789 204692009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
20470
20471 Add missing start symbols
20472
20473 * boot/i386/pc/boot.S: add start
fb14123e 20474 * boot/i386/pc/pxeboot.S: likewise
473d1e45 20475
fd2bf2e3 204762009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
20477
20478 Fix wrong assumptions with grub-mkimage on EFI
473d1e45 20479
20480 * i386/efi/grub-mkimage.c (read_kernel_module): don't write prefix here
fd2bf2e3 20481 (relocate_addresses): consider both r_addend and value at offset
20482 (make_mods_section): zerofill modinfo and header
20483 (convert_elf): write prefix here
473d1e45 20484
5389763d 204852009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
20486
20487 Use .asciz instead of .string
20488
20489 * i386/pc/diskboot.S: use .asciz instead of .string
20490 * i386/pc/boot.S: likewise
20491 * include/grub/dl.h (GRUB_MOD_DEP): likewise
20492 (GRUB_MOD_NAME): likewise
473d1e45 20493
3eb5ed4e 204942009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
20495
20496 gfxpayload support
20497
20498 * commands/videotest.c (grub_cmd_videotest): use grub_video_set_mode
20499 * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_PURE_TEXT): new definition
20500 (grub_video_setup): remove
20501 (grub_video_set_mode): new prototype
20502 * loader/i386/linux.c (DEFAULT_VIDEO_MODE): new definition
20503 (vid_mode): remove
20504 (linux_vesafb_res): compile only on PCBIOS
20505 (grub_linux_boot): support gfxpayload
20506 * loader/i386/pc/xnu.c (video_hook): new function
20507 (grub_xnu_set_video): support gfxpayload
20508 * term/gfxterm.c (DEFAULT_VIDEO_WIDTH): removed
20509 (DEFAULT_VIDEO_HEIGHT): likewise
20510 (DEFAULT_VIDEO_FLAGS): likewise
20511 (DEFAULT_VIDEO_MODE): new definition
20512 (video_hook): new function
20513 (grub_gfxterm_init): use grub_video_set_mode
473d1e45 20514 * util/grub.d/30_os-prober.in: remove explicit modesetting before
3eb5ed4e 20515 loading xnu
20516 * video/video.c (grub_video_setup): removed
473d1e45 20517 (grub_video_set_mode): new function based on grub_gfxterm_init and
3eb5ed4e 20518 grub_video_setup
20519
4b0e1143 205202009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
20521
20522 Avoid calling biosdisk in drivemap
20523
20524 * commands/i386/pc/drivemap.c (parse_biosdisk): remove
20525 (revparse_biosdisk): likewise
20526 (list_mappings): derive name from id directly
20527 (grub_cmd_drivemap): use tryparse_diskstring
473d1e45 20528
fda6cb98 205292009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
20530
20531 Script fixes
20532
20533 * include/grub/script_sh.h (grub_script_cmdline): remove cmdline
20534 (grub_lexer_param): add tokenonhold
20535 (grub_script_create_cmdline): remove cmdline. All callers updated
20536 (grub_script_function_create): make functionname
20537 grub_script_arg. All callers updated
20538 (grub_script_execute_argument_to_string): new prototype
20539 * kern/parser.c (state_transitions): reorder
20540 (grub_parser_cmdline_state): fix a bug and make more compact
473d1e45 20541 * script/sh/execute.c (grub_script_execute_argument_to_string):
fda6cb98 20542 make global
20543 (grub_script_execute_cmdline): use new format
20544 * script/sh/function.c (grub_script_function_create): make functionname
20545 grub_script_arg. All callers updated
473d1e45 20546 * script/sh/lexer.c (grub_script_lexer_init): initialize tokenonhold
fda6cb98 20547 (grub_script_yylex): remove
20548 (grub_script_yylex2): renamed to ...
20549 (grub_script_yylex): ...renamed
20550 parse the expressions like a${b}c
20551 * script/sh/parser.y (GRUB_PARSER_TOKEN_ARG): new typed terminal
20552 (GRUB_PARSER_TOKEN_VAR): remove
20553 (GRUB_PARSER_TOKEN_NAME): likewise
20554 ("if"): declare as typeless
20555 ("while"): likewise
20556 ("function"): likewise
20557 ("else"): likewise
20558 ("then"): likewise
20559 ("fi"): likewise
20560 (text): remove
20561 (argument): likewise
20562 (script): accept empty scripts and make exit on error
20563 (arguments): use GRUB_PARSER_TOKEN_ARG
20564 (function): likewise
20565 (command): move error handling to script
20566 (menuentry): move grub_script_lexer_ref before
473d1e45 20567 * script/sh/script.c (grub_script_create_cmdline): remove cmdline
fda6cb98 20568 argument. All callers updated
20569
f4448a07 205702009-06-04 Robert Millan <rmh.grub@aybabtu.com>
20571
20572 Prevent GRUB from probing floppies during boot.
20573
20574 * conf/common.rmk (search_mod_CFLAGS): Use `-Werror -Wall'.
20575 * commands/search.c (options): Add --no-floppy.
20576 (search_fs, search_file, grub_cmd_search): Support --no-floppy.
20577 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Use
20578 --no-floppy when searching for UUIDs.
20579
2bf5885a 205802009-06-04 Robert Millan <rmh.grub@aybabtu.com>
20581
20582 Simplify the code duplication in commands/search.c.
20583
20584 * commands/search.c (search_label, search_fs_uuid): Merge into ...
20585 (search_fs): ... this. Update all users.
20586
f6fd460a 205872009-06-03 Felix Zielcke <fzielcke@z-51.de>
20588
20589 * util/grub-mkconfig.in (update_grub_dir): Rename to grub_mkconfig_dir.
20590
cbb3c83e 205912009-05-28 Pavel Roskin <proski@gnu.org>
20592
57788cfd 20593 * Makefile.in: Don't use "cp -d", it doesn't work on FreeBSD.
20594 Remove the original symlink explicitly.
20595
cbb3c83e 20596 * fs/hfs.c (grub_hfs_find_dir): Skip sequences of slashes, not
20597 just one slash. That's how grub_fshelp_find_file() does it.
20598
cd0d5e30 205992009-05-26 Pavel Roskin <proski@gnu.org>
20600
f0f8bbe2 20601 * genmk.rb: Avoid shadowing variable `s', rename the outer `s'
20602 to `str'.
20603
cd0d5e30 20604 * util/getroot.c (grub_util_get_dev_abstraction): Mark os_dev as
20605 possibly unused.
20606
8c2cab51 206072009-05-25 Christian Franke <franke@computer.org>
20608
20609 * disk/ata.c (grub_ata_wait_not_busy): Add debug output of status
20610 register.
20611 (grub_atapi_identify): Add wait after drive select.
20612 (grub_ata_identify): Do more strict status register check before
20613 calling grub_atapi_identify (). Suppress error message if status
20614 register is 0x00 after command failure. Add status register
20615 check after PIO read to avoid bogus identify due to stuck DRQ.
20616 Thanks to Pavel Roskin for testing.
20617 (grub_device_initialize): Remove unsafe status register check.
20618 Thanks to 'phcoder' for problem report and patch.
20619 Prevent sign extension in debug message.
20620
230c0ad6 206212009-05-23 Colin D Bennett <colin@gibibit.com>
20622
20623 Cleaned up `include/grub/normal.h'. Grouped prototypes by
20624 definition file, and functions defined in `normal/menu.c' have had
20625 their prototypes moved to `include/grub/menu.h' for consistency.
20626
20627 * include/grub/menu.h (grub_menu_execute_callback): Added; moved
20628 from normal.h.
20629 (grub_menu_get_entry): Likewise.
20630 (grub_menu_get_timeout): Likewise.
20631 (grub_menu_set_timeout): Likewise.
20632 (grub_menu_execute_entry): Likewise.
20633 (grub_menu_execute_with_fallback): Likewise.
20634 (grub_menu_entry_run): Likewise.
20635
20636 * include/grub/normal.h: Re-ordered and grouped function
20637 prototypes by file that the function is defined in.
20638 (grub_menu_execute_callback): Removed; moved to menu.h.
20639 (grub_menu_get_entry): Likewise.
20640 (grub_menu_get_timeout): Likewise.
20641 (grub_menu_set_timeout): Likewise.
20642 (grub_menu_execute_entry): Likewise.
20643 (grub_menu_execute_with_fallback): Likewise.
20644 (grub_menu_entry_run): Likewise.
20645 (grub_menu_addentry): Renamed from this ...
20646 (grub_normal_add_menu_entry): ... to this.
20647
20648 * normal/main.c (grub_menu_addentry): Renamed from this ...
20649 (grub_normal_add_menu_entry): ... to this.
20650
20651 * script/sh/execute.c (grub_script_execute_menuentry): Update
20652 reference to renamed grub_menu_addentry function.
20653
861f03a5 206542009-05-23 Felix Zielcke <fzielcke@z-51.de>
20655
20656 * commands/i386/pc/drivemap.c (MODNAME): Remove. Update all users.
20657
96b1619a 206582009-05-22 Pavel Roskin <proski@gnu.org>
20659
bf6a5fb2 20660 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Remove.
20661 * configure.ac: Don't call grub_I386_CHECK_REGPARM_BUG. Define
20662 NESTED_FUNC_ATTR using AH_BOTTOM. Use regparm(1) only when
20663 compiling for the i386 targets, but not for the utilities.
20664
96b1619a 20665 * include/grub/i386/pc/kernel.h (grub_boot_drive): Change type
20666 to grub_uint8_t.
20667 (grub_root_drive): Likewise.
20668 * kern/i386/pc/startup.S (grub_boot_drive): Change size to byte,
20669 remove alignment.
20670 (grub_root_drive): Change size to byte.
20671 (grub_start_addr): Remove.
20672 (grub_end_addr): Likewise.
20673 (grub_apm_bios_info): Likewise.
20674
b729776b 206752009-05-21 Felix Zielcke <fzielcke@z-51.de>
20676
20677 * normal/i386: Remove.
20678 * normal/powerpc: Likewise.
20679 * normal/sparc64: Likewise.
20680 * normal/x86_64: Likewise.
20681
0a15ce80 206822009-05-19 Vladimir Serbinenko <phcoder@gmail.com>
20683
20684 * conf/x86_64-efi.rmk (linux_mod_ASFLAGS): Add missing variable
473d1e45 20685 * loader/i386/linux_trampoline.S: Fix indentation
0a15ce80 20686 * loader/i386/xnu_helper.S: Likewise
d6da58e6 20687
33db9015 206882009-05-18 Colin D Bennett <colin@gibibit.com>
20689
d6da58e6 20690 Display error messages when parsing a Lua statement fails.
20691 Previously, executing a syntactically invalid statement like
20692 ")foo" or "bar;" would silently fail.
33db9015 20693
20694 * script/lua/grub_main.c (handle_lua_error): New function.
d6da58e6 20695 (grub_lua_parse_line): Improved reporting of Lua parser and
20696 execution errors.
33db9015 20697
46422c89 206982009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
20699
20700 Remove -Werror which causes build to fail on some systems
20701
20702 * conf/i386-pc.rmk (xnu_mod_CFLAGS): Remove -Werror -Wall
20703 * conf/i386-efi.rmk (xnu_mod_CFLAGS): Likewise
20704 * conf/x86_64-efi.rmk (xnu_mod_CFLAGS): Likewise
18f547ad 20705
22f53a96 207062009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
20707
20708 trampoline for linux on 64-bit platform
20709
18f547ad 20710 * conf/x86_64-efi.rmk (linux_mod_SOURCES): added
20711 loader/i386/efi/linux_trampoline.S
20712 * include/grub/x86_64/efi/loader.h (grub_linux_real_boot): removed
473d1e45 20713 declaration
d6da58e6 20714 * kern/x86_64/efi/startup.S (grub_linux_real_boot): moved from
20715 here
22f53a96 20716 * loader/i386/linux_trampoline.S: moved here
d6da58e6 20717 * loader/i386/efi/linux.c (allocate_pages): reserve space for
20718 trampoline
22f53a96 20719 (jumpvector): removed
20720 (grub_linux_trampoline_start): new declaration
20721 (grub_linux_trampoline_end): likewise
20722 (grub_linux_boot): use trampoline when on 64-bit platform
20723 * loader/i386/linux.c: likewise
20724
cb5a0f40 207252009-05-16 Pavel Roskin <proski@gnu.org>
20726
20727 * script/lua/grub_lib.c (grub_lua_getenv): Make name and value
20728 const to avoid a warning.
20729 (grub_lua_setenv): Likewise.
20730 * script/lua/grub_main.c (grub_lua_parse_line): Use size_t for
20731 lmsg to fix a warning.
20732
334f2c28 207332009-05-16 Felix Zielcke <fzielcke@z-51.de>
20734
20735 * conf/i386.rmk (setjmp_mod_CFLAGS): Rename to ...
7dd10fce 20736 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
20737 * conf/x86_64-efi.rmk (setjmp_mod_CFLAGS): Rename to ...
20738 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
20739 * conf/powerpc-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
20740 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
20741 * conf/sparc64-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
20742 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
334f2c28 20743
59e5d3ec 207442009-05-16 Felix Zielcke <fzielcke@z-51.de>
20745
20746 * util/grub-mkconfig.in: Export GRUB_TERMINAL_INPUT.
20747
9d87a1ba 207482009-05-16 Bean <bean123ch@gmail.com>
20749
20750 * conf/common.rmk (pkglib_MODULES): Add lua.mod.
20751 (lua_mod_SOURCES): New variable.
20752 (lua_mod_CFLAGS): Likewise.
20753 (lua_mod_LDFLAGS): Likewise.
20754
20755 * conf/i386.rmk (pkglib_MODULES): Add setjmp.mod.
20756 (setjmp_mod_SOURCES): New variable.
20757 (setjmp_mod_CFLAGS): Likewise.
20758 (setjmp_LDFLAGS): Likewise.
20759
20760 * conf/x86_64-efi.rmk (pkglib_MODULES): Add setjmp.mod.
20761 (setjmp_mod_SOURCES): New variable.
20762 (setjmp_mod_CFLAGS): Likewise.
20763 (setjmp_LDFLAGS): Likewise.
20764
20765 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
20766 (setjmp_mod_SOURCES): New variable.
20767 (setjmp_mod_CFLAGS): Likewise.
20768 (setjmp_LDFLAGS): Likewise.
20769
20770 * conf/sparc64-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
20771 (setjmp_mod_SOURCES): New variable.
20772 (setjmp_mod_CFLAGS): Likewise.
20773 (setjmp_LDFLAGS): Likewise.
20774
20775 * normal/i386/setjmp.S: Moved from here ...
20776 * lib/i386/setjmp.S: ... Moved here
20777 * normal/x86_64/setjmp.S: Moved from here ...
20778 * lib/x86_64/setjmp.S: ... Moved here
20779 * normal/powerpc/setjmp.S: Moved from here ...
20780 * lib/powerpc/setjmp.S: ... Moved here
20781 * normal/sparc64/setjmp.S: Moved from here ...
20782 * lib/sparc64/setjmp.S: ... Moved here
20783
20784 * include/grub/i386/setjmp.h (grub_setjmp): Don't use attribute
20785 returns_twice in mingw.
20786
20787 * script/lua/grub_lib.c: New file.
20788 * script/lua/grub_lib.h: Likewise.
20789 * script/lua/grub_lua.h: Likewise.
20790 * script/lua/grub_main.c: Likewise.
20791 * script/lua/lapi.c: Likewise.
20792 * script/lua/lapi.h: Likewise.
20793 * script/lua/lauxlib.c: Likewise.
20794 * script/lua/lauxlib.h: Likewise.
20795 * script/lua/lbaselib.c: Likewise.
20796 * script/lua/lcode.c: Likewise.
20797 * script/lua/lcode.h: Likewise.
20798 * script/lua/ldblib.c: Likewise.
20799 * script/lua/ldebug.c: Likewise.
20800 * script/lua/ldebug.h: Likewise.
20801 * script/lua/ldo.c: Likewise.
20802 * script/lua/ldo.h: Likewise.
20803 * script/lua/ldump.c: Likewise.
20804 * script/lua/lfunc.c: Likewise.
20805 * script/lua/lfunc.h: Likewise.
20806 * script/lua/lgc.c: Likewise.
20807 * script/lua/lgc.h: Likewise.
20808 * script/lua/linit.c: Likewise.
20809 * script/lua/liolib.c: Likewise.
20810 * script/lua/llex.c: Likewise.
20811 * script/lua/llex.h: Likewise.
20812 * script/lua/llimits.h: Likewise.
20813 * script/lua/lmathlib.c: Likewise.
20814 * script/lua/lmem.c: Likewise.
20815 * script/lua/lmem.h: Likewise.
20816 * script/lua/loadlib.c: Likewise.
20817 * script/lua/lobject.c: Likewise.
20818 * script/lua/lobject.h: Likewise.
20819 * script/lua/lopcodes.c: Likewise.
20820 * script/lua/lopcodes.h: Likewise.
20821 * script/lua/loslib.c: Likewise.
20822 * script/lua/lparser.c: Likewise.
20823 * script/lua/lparser.h: Likewise.
20824 * script/lua/lstate.c: Likewise.
20825 * script/lua/lstate.h: Likewise.
20826 * script/lua/lstring.c: Likewise.
20827 * script/lua/lstring.h: Likewise.
20828 * script/lua/lstrlib.c: Likewise.
20829 * script/lua/ltable.c: Likewise.
20830 * script/lua/ltable.h: Likewise.
20831 * script/lua/ltablib.c: Likewise.
20832 * script/lua/ltm.c: Likewise.
20833 * script/lua/ltm.h: Likewise.
20834 * script/lua/lua.h: Likewise.
20835 * script/lua/luaconf.h: Likewise.
20836 * script/lua/lualib.h: Likewise.
20837 * script/lua/lundump.c: Likewise.
20838 * script/lua/lundump.h: Likewise.
20839 * script/lua/lvm.c: Likewise.
20840 * script/lua/lvm.h: Likewise.
20841 * script/lua/lzio.c: Likewise.
20842 * script/lua/lzio.h: Likewise.
20843
5e898c9d 208442009-05-16 Bean <bean123ch@gmail.com>
20845
20846 * include/grub/kernel.h (grub_module_header_types): Add type
20847 OBJ_TYPE_CONFIG.
20848
20849 * kern/main.c (grub_load_config): New function.
20850 (grub_main): Call grub_load_config to read boot config.
20851
20852 * grub-mkimage (generate_image): New parameter config_path.
20853 (options): New option --config.
20854 (main): Parse --config option, and pass it to generate_image.
20855
cf353a47 208562009-05-14 Christian Franke <franke@computer.org>
20857
20858 * commands/i386/pc/drivemap_int13h.S: Add missing EXT_C for symbols.
20859 This fixes build on Cygwin.
20860
3834887f 208612009-05-14 Pavel Roskin <proski@gnu.org>
20862
20863 * commands/i386/pc/drivemap_int13h.S: Eliminate unconditional
20864 jump. This saves two bytes, so the typical case of 2 swapped
20865 drives would fit 32 bytes.
20866
8090fc01 208672009-05-13 Pavel Roskin <proski@gnu.org>
20868
ac963883 20869 * loader/i386/multiboot.c (grub_multiboot): Cast mmap_addr to
20870 grub_uint32_t to avoid a warning.
20871
8090fc01 20872 * loader/i386/linux.c (allocate_pages): When assigning
20873 real_mode_mem, cast through grub_size_t to fix a warning. The
20874 code already makes sure that the value would fit a pointer.
20875 (grub_linux_setup_video): Cast render_target->data to
20876 grub_size_t to fix a warning.
20877
18f547ad 208782009-05-13 Javier Martín <lordhabbit@gmail.com>
4246b8a9 20879
20880 * commands/i386/pc/drivemap.c: New file - implement drivemap
20881 command.
20882 * commands/i386/pc/drivemap_int13h.S: New file - int13 handler.
20883 * conf/i386-pc.rmk: Add drivemap.c and drivemap_int13h.S.
20884
6f6a8b28 208852009-05-13 Pavel Roskin <proski@gnu.org>
20886
20887 * util/i386/pc/grub-setup.c (setup): Remove unused variable
20888 embedding_area_exists.
20889
15fbf4c4 208902009-05-13 Robert Millan <rmh.grub@aybabtu.com>
20891
20892 * util/i386/pc/grub-setup.c (setup): Restructure code flow to make
20893 it easier to understand / work with.
59978c8a 20894 Improve warning messages for cases where there's no embedding area,
20895 or when it is too small (or core.img too large).
15fbf4c4 20896
238e871f 208972009-05-13 Pavel Roskin <proski@gnu.org>
20898
0ab3a9a4 20899 * loader/i386/pc/multiboot2.c: Add necessary includes for
20900 grub_multiboot2_real_boot().
20901
a2c8c5f8 20902 * fs/iso9660.c (grub_iso9660_iterate_dir): The file mode in the
20903 PX record is always little-endian. We only need the lower 2
20904 bytes of the mode.
20905
faec96af 20906 * fs/cpio.c: Use the same name "struct head" for tar and cpio to
20907 facilitate code reuse.
20908 (grub_cpio_mount): Use "struct head", not a char buffer. This
20909 fixes a warning reported by gcc 4.4.
20910
238e871f 20911 * kernel/disk.c (grub_disk_read): Use void pointer for the
20912 buffer.
20913 (grub_disk_write): Use const void pointer for the buffer.
20914 Adjust all callers. Remove unnecessary casts.
20915
901d2f0c 209162009-05-10 Robert Millan <rmh.grub@aybabtu.com>
20917
20918 * util/i386/pc/grub-install.in: Update copyright year.
20919
18f547ad 209202009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
2eac4c16 20921
20922 gptsync
20923
20924 * commands/gptsync.c: new file
20925 * conf/common.rmk (pkglib_MODULES): add gptsync.mod
20926 (gptsync_mod_SOURCES): new variable
20927 (gptsync_mod_CFLAGS): likewise
20928 (gptsync_mod_LDFLAGS): likewise
18f547ad 20929 * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_NTFS):
2eac4c16 20930 new definition
20931 (GRUB_PC_PARTITION_TYPE_HFS): likewise
20932 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/gptsync.c
20933 * conf/i386-ieee1275.rmk: likewise
20934 * conf/i386-pc.rmk: likewise
20935 * conf/powerpc-ieee1275.rmk: likewise
20936
b4ba690a 209372009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
20938
20939 Fixed grub-emu
20940
20941 * kern/dl.c (grub_dl_ref): omit when compiling grub-emu
20942 (grub_dl_ref): likewise
20943
317e1a44 209442009-05-08 Robert Millan <rmh.grub@aybabtu.com>
20945
20946 * util/i386/pc/grub-setup.c (setup): Factorize find_usable_region(),
20947 split in two functions (one for msdos and one for gpt).
20948
041b8094 209492009-05-08 Pavel Roskin <proski@gnu.org>
20950
752473c2 20951 * disk/raid.c (grub_raid_block_xor): Make buf2 constant, it's
20952 not modified.
20953
041b8094 20954 * disk/raid6_recover.c (grub_raid6_recover): Fix warnings about
20955 uninitialized err[0] and err[1]. Rename them to bad1 and bad2.
20956 Initialize them with -1. Add sanity check for bad1. Eliminate
20957 nerr variable.
20958
172800ce 209592009-05-08 David S. Miller <davem@davemloft.net>
20960
20961 * util/sparc64/ieee1275/grub-ofpathname.c (main): Set progname.
20962
29aa5e81 209632009-05-06 Robert Millan <rmh.grub@aybabtu.com>
20964
20965 * util/i386/pc/grub-setup.c (setup): Fix check for embed region
473d1e45 20966 existence.
29aa5e81 20967
96613b62 209682009-05-05 Felix Zielcke <fzielcke@z-51.de>
20969
20970 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
1905c57b 20971 `kern/rescue_reader.c', `kern/rescue_parser.c' and `normal/autofs.c'.
96613b62 20972
eef73c8a 209732009-05-05 David S. Miller <davem@davemloft.net>
20974
20975 * util/sparc64/ieee1275/grub-install.in: Fix sed arg quoting.
20976
119494b5 209772009-05-05 Pavel Roskin <proski@gnu.org>
20978
20979 * include/grub/dl.h [GRUB_UTIL]: Provide inline implementations
20980 of grub_dl_ref() and grub_dl_unref().
20981 * commands/parttool.c: Remove preprocessor conditionals around
20982 grub_dl_ref() and grub_dl_unref().
20983 * fs/affs.c: Likewise.
20984 * fs/afs.c: Likewise.
20985 * fs/cpio.c: Likewise.
20986 * fs/ext2.c: Likewise.
20987 * fs/fat.c: Likewise.
20988 * fs/hfs.c: Likewise.
20989 * fs/hfsplus.c: Likewise.
20990 * fs/iso9660.c: Likewise.
20991 * fs/jfs.c: Likewise.
20992 * fs/minix.c: Likewise.
20993 * fs/ntfs.c: Likewise.
20994 * fs/reiserfs.c: Likewise.
20995 * fs/sfs.c: Likewise.
20996 * fs/udf.c: Likewise.
20997 * fs/ufs.c: Likewise.
20998 * fs/xfs.c: Likewise.
20999 * include/grub/dl.h: Likewise.
21000 * loader/xnu.c: Likewise.
21001
de5fd76e 210022009-05-04 Pavel Roskin <proski@gnu.org>
21003
21004 * commands/acpi.c: Remove unused variable my_mod.
21005 * partmap/amiga.c: Likewise.
21006 * partmap/apple.c: Likewise.
21007 * partmap/gpt.c: Likewise.
21008 * partmap/pc.c: Likewise.
21009 * partmap/sun.c: Likewise.
21010 * term/gfxterm.c: Likewise.
21011 * term/i386/pc/vesafb.c: Likewise.
21012 * term/i386/pc/vga.c: Likewise.
21013
983598ad 210142009-05-04 David S. Miller <davem@davemloft.net>
21015
21016 * kern/ieee1275/openfw.c (grub_children_iterate): Fix string
21017 pointer args to grub_ieee1275_get_property().
21018
8aadec43 21019 * conf/sparc64-ieee1275.rmk: Fix build due to missing '\'.
21020
9554b15e 21021 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Bypass cdrom
21022 devices, and do not traverse down under controller nodes.
21023
67e23c90 21024 * disk/ieee1275/ofdisk.c (compute_dev_path): New.
21025 (grub_ofdisk_open): Use it to un-escape "," characters.
21026 * kern/disk.c (find_part_sep): New.
21027 (grub_disk_open): Use it to find the first non-escaped ','
21028 character in the disk name.
21029 * util/ieee1275/devicemap.c (escape_of_path): New.
21030 (grub_util_emit_devicemap_entry): Use it.
21031 * util/sparc64/ieee1275/grub-install.in: Update script to
21032 strip partition specifiers properly by not triggering on
21033 '\' escaped ',' characters.
21034
74bfdd2f 210352009-05-04 Robert Millan <rmh.grub@aybabtu.com>
21036
21037 * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START): Set
21038 to 0x300.
21039 * loader/i386/linux.c (vga_modes, linux_vesafb_res): Add a few
21040 resolutions.
21041 (linux_vesafb_modes): Add a lot of additional modes to the list (based
21042 on documentation from Wikipedia).
21043
4241d2b1 210442009-05-04 Pavel Roskin <proski@gnu.org>
21045
21046 * disk/ata.c: Spelling fixes.
21047 * disk/raid.c: Likewise.
21048 * disk/usbms.c: Likewise.
21049 * disk/dmraid_nvidia.c: Likewise.
21050 * kern/ieee1275/openfw.c: Likewise.
21051 * kern/ieee1275/init.c: Likewise.
21052 * kern/ieee1275/cmain.c: Likewise.
21053 * boot/i386/pc/cdboot.S: Likewise.
21054 * video/readers/png.c: Likewise.
21055 * video/i386/pc/vbe.c: Likewise.
21056 * fs/udf.c: Likewise.
21057 * fs/hfs.c: Likewise.
21058 * fs/reiserfs.c: Likewise.
21059 * efiemu/runtime/efiemu.c: Likewise.
21060 * efiemu/main.c: Likewise.
21061 * efiemu/mm.c: Likewise.
21062 * include/grub/elf.h: Likewise.
21063 * include/grub/xnu.h: Likewise.
21064 * include/grub/usbdesc.h: Likewise.
21065 * include/grub/usb.h: Likewise.
21066 * include/grub/script_sh.h: Likewise.
21067 * include/grub/lib/LzmaEnc.h: Likewise.
21068 * include/grub/efiemu/efiemu.h: Likewise.
21069 * include/grub/command.h: Likewise.
21070 * normal/menu.c: Likewise.
21071 * normal/main.c: Likewise.
21072 * normal/datetime.c: Likewise.
21073 * bus/usb/uhci.c: Likewise.
21074 * mmap/i386/uppermem.c: Likewise.
21075 * mmap/mmap.c: Likewise.
21076 * commands/acpi.c: Likewise.
21077 * commands/test.c: Likewise.
21078 * partmap/apple.c: Likewise.
21079 * font/font.c: Likewise.
21080 * loader/sparc64/ieee1275/linux.c: Likewise.
21081 * loader/macho.c: Likewise.
21082 * loader/i386/bsd_trampoline.S: Likewise.
21083 * loader/i386/bsd.c: Likewise.
21084 * loader/xnu.c: Likewise.
21085 * term/i386/pc/vesafb.c: Likewise.
21086 * term/usb_keyboard.c: Likewise.
21087 * util/resolve.c: Likewise.
21088 * util/getroot.c: Likewise.
21089
0cfc0083 210902009-05-04 Felix Zielcke <fzielcke@z-51.de>
21091
21092 * conf/i386-pc.rmk (libpkg_DATA): Rename to pkglib_DATA.
21093
7c1d00cd 210942009-05-04 Robert Millan <rmh.grub@aybabtu.com>
21095
21096 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (grub_cmd_linux): Fix
21097 build error.
21098
b01f0548 210992009-05-04 Robert Millan <rmh.grub@aybabtu.com>
21100
21101 * loader/i386/linux.c (grub_cmd_linux): Make "vga=" compatibility
21102 parameter only available on BIOS.
21103
ecc3eb22 211042009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
21105
21106 Removed wrong semicolon in declaration
21107
21108 * grub/misc.h (grub_dprintf): remove semicolon
21109
112972a9 211102009-05-04 Robert Millan <rmh.grub@aybabtu.com>
21111
21112 * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT): New macro.
21113 (grub_linux_boot): Don't check for `linux_vesafb_modes' bounds (this
21114 is done by grub_cmd_linux() now).
21115 [! GRUB_ASSUME_LINUX_HAS_FB_SUPPORT]: If "vga=" parameter wasn't set,
21116 restore video to text mode.
21117 (grub_cmd_linux): Default `vid_mode' initialization to 0, which
21118 indicates lack of "vga=" parameter. "vga=0" is mapped to
21119 `GRUB_LINUX_VID_MODE_NORMAL'.
21120
afd5c115 211212009-05-04 Felix Zielcke <fzielcke@z-51.de>
21122
21123 * conf/i386-efi.rmk (grub_emu_SOURCES): Remove `normal/execute.c',
21124 `normal/lexer.c', `kern/rescue.c', `normal/function.c', `normal/misc.c'
21125 and `normal/script.c'. Add `kern/rescue_reader.c',
18f547ad 21126 `kern/rescue_parser.c', `script/sh/main.c', `script/sh/execute.c',
afd5c115 21127 `script/sh/function.c', `script/sh/lexer.c', `script/sh/script.c' and
21128 `grub_script.tab.c'.
21129
21130 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
21131 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
21132 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
21133 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
21134 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
21135
faa517ce 21136 * Makefile.in: Remove duplicated 2008 in Copyright line.
21137
ae0c0bdc 211382009-05-04 Robert Millan <rmh.grub@aybabtu.com>
21139
473d1e45 21140 * util/misc.c (grub_util_warn): New function. Emits a warning
ae0c0bdc 21141 unconditionally.
21142 * include/grub/util/misc.h (grub_util_warn): New declaration.
21143
21144 * util/i386/pc/grub-install.in: Understand --force and pass it down
21145 to grub-setup.
21146
21147 * util/i386/pc/grub-setup.c (main): Understand --force and pass it
21148 down to setup().
21149 (setup): Improve error messages and add warnings when requested to
21150 install in odd layouts. Refuse to install using blocklists unless
21151 --force was set.
21152
18f547ad 211532009-05-04 martin f. krafft <madduck@madduck.net>
c149b500 21154
21155 * disk/raid.c (grub_raid_scan_device): Improve debug message.
21156
6d260daa 211572009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
21158
21159 Updated copyright year
21160
21161 * fs/hfsplus.c: updated copyright year
18f547ad 21162
69f853f8 211632009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
21164
21165 HFS+ UUID
21166
18f547ad 21167 * fs/hfsplus.c (grub_hfsplus_volheader): added num_serial field
69f853f8 21168 in the space previously used by unused3
21169 (grub_hfsplus_uuid): new function
21170 (grub_hfsplus_fs): added uuid field
21171
4c402e73 211722009-05-03 Pavel Roskin <proski@gnu.org>
21173
21174 * disk/ata.c: Don't cast mod to void in GRUB_MOD_INIT to
21175 suppress warnings. It's no longer needed.
21176 * disk/host.c: Likewise.
21177 * disk/ata_pthru.c: Likewise.
21178 * disk/loopback.c: Likewise.
21179 * hook/datehook.c: Likewise.
21180 * parttool/pcpart.c: Likewise.
21181 * fs/i386/pc/pxe.c: Likewise.
21182 * fs/ntfscomp.c: Likewise.
21183 * efiemu/main.c: Likewise.
21184 * mmap/mmap.c: Likewise.
21185 * commands/crc.c: Likewise.
21186 * commands/hexdump.c: Likewise.
21187 * commands/hdparm.c: Likewise.
21188 * commands/acpi.c: Likewise.
21189 * commands/echo.c: Likewise.
21190 * commands/minicmd.c: Likewise.
21191 * commands/blocklist.c: Likewise.
21192 * commands/memrw.c: Likewise.
21193 * commands/loadenv.c: Likewise.
21194 * commands/usbtest.c: Likewise.
21195 * commands/lsmmap.c: Likewise.
21196 * commands/boot.c: Likewise.
21197 * commands/parttool.c: Likewise.
21198 * commands/configfile.c: Likewise.
21199 * commands/search.c: Likewise.
21200 * commands/ieee1275/suspend.c: Likewise.
21201 * commands/cat.c: Likewise.
21202 * commands/i386/pc/pxecmd.c: Likewise.
21203 * commands/i386/pc/play.c: Likewise.
21204 * commands/i386/pc/halt.c: Likewise.
21205 * commands/i386/pc/vbeinfo.c: Likewise.
21206 * commands/i386/pc/vbetest.c: Likewise.
21207 * commands/lspci.c: Likewise.
21208 * commands/date.c: Likewise.
21209 * commands/handler.c: Likewise.
21210 * commands/ls.c: Likewise.
21211 * commands/test.c: Likewise.
21212 * commands/cmp.c: Likewise.
21213 * commands/efi/loadbios.c: Likewise.
21214 * commands/efi/fixvideo.c: Likewise.
21215 * commands/halt.c: Likewise.
21216 * commands/help.c: Likewise.
21217 * commands/reboot.c: Likewise.
21218 * hello/hello.c: Likewise.
21219 * script/sh/main.c: Likewise.
21220 * loader/xnu.c: Likewise.
21221 * term/terminfo.c: Likewise.
21222 * term/i386/pc/serial.c: Likewise.
21223 * term/usb_keyboard.c: Likewise.
21224
515b5079 212252009-05-03 David S. Miller <davem@davemloft.net>
21226
21227 * normal/menu.c: Include grub/parser.h
21228
dfc31a22 212292009-05-03 Pavel Roskin <proski@gnu.org>
21230
2fee74f1 21231 * mmap/efi/mmap.c (grub_mmap_malign_and_register): Return void*,
21232 not char*.
21233 * mmap/i386/mmap.c (grub_mmap_malign_and_register): Likewise.
21234 Suggested by Javier Martín <lordhabbit@gmail.com>
21235
dfc31a22 21236 * util/i386/pc/grub-mkrescue.in: Allow for the case when
21237 efiemu??.o doesn't exist.
21238 * util/i386/pc/grub-install.in: Likewise. Use "cp -f" for
21239 copying.
21240
18f547ad 212412009-05-03 Bean <bean123ch@gmail.com> Vladimir Serbinenko <phcoder@gmail.com>
cef17233 21242
21243 FreeBSD 64-bit support
21244
18f547ad 21245 * conf/i386-pc.rmk (bsd_mod_SOURCES): add loader/i386/bsd_helper.S
cef17233 21246 and loader/i386/bsd_trampoline.S
21247 (bsd_mod_ASFLAGS): new variable
21248 * include/grub/i386/bsd.h (FREEBSD_MODINFOMD_SMAP): new definition
21249 (FREEBSD_MODTYPE_KERNEL64): likewise
21250 (grub_bsd64_trampoline_start): likewise
21251 (grub_bsd64_trampoline_end): likewise
21252 (grub_bsd64_trampoline_selfjump): likewise
21253 (grub_bsd64_trampoline_gdt): likewise
21254 * include/grub/i386/loader.h (grub_unix_real_boot): moved from here ...
21255 * include/grub/i386/bsd.h (grub_unix_real_boot): ... moved here
21256 * kern/i386/loader.S (grub_unix_real_boot): moved from here ...
21257 * loader/i386/bsd_helper.S (grub_unix_real_boot): moved here
18f547ad 21258 * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
cef17233 21259 of "attrib" member
21260 * loader/i386/bsd_pagetable.c: new file
21261 * loader/i386/bsd_trampoline.S: likewise
21262 * loader/i386/bsd.c (ALIGN_QWORD): new macro
21263 (ALIGN_VAR): likewise
21264 (entry_hi): new variable
21265 (kern_end_mdofs): likewise
21266 (is_64bit): likewise
21267 (grub_freebsd_add_meta): use ALIGN_VAR
21268 (grub_e820_mmap): new declaration
21269 (grub_freebsd_add_mmap): new function
21270 (grub_freebsd_add_meta_module): support 64 bit kernels
21271 (grub_freebsd_list_modules): use ALIGN_VAR
21272 (gdt_descriptor): new declaration
21273 (grub_freebsd_boot): support 64 bit kernels
21274 (grub_bsd_elf64_hook): new function
21275 (grub_bsd_load_elf): support elf64
21276
038c5720 212772009-05-03 Bean <bean123ch@gmail.com>
21278
21279 * script/sh/execute.c (grub_script_execute_cmdif): Reset grub_errno
21280 after we get the result of if statement.
21281
fc45fb58 212822009-05-03 Bean <bean123ch@gmail.com>
21283
21284 * Makefile.in (enable_efiemu): New variable.
21285
21286 * conf/i386-pc.rmk: Only compile efiemu runtimes when enable_efiemu is
21287 set.
21288 (efiemu32.o): Use macro $< for source file, add $(srcdir) to include
21289 path.
21290 (efi64_c.o): Use macro $< for source file, add $(srcdir) to include
21291 path, add -mno-red-zone option.
21292 (efiemu64_s.o): Likewise.
21293 (efiemu64.o): Use macro $^ for source file.
21294
21295 * configure.ac (--enable-efiemu): New option.
21296
bbee0f2b 212972009-05-03 Vladimir Serbinenko <phcoder@gmail.com>
21298
21299 xnu support
21300
21301 * conf/i386-efi.rmk (kernel_mod_HEADERS): added i386/pit.h
21302 (pkglib_MODULES): add xnu.mod
21303 (xnu_mod_SOURCES): new variable
21304 (xnu_mod_CFLAGS): likewise
21305 (xnu_mod_LDFLAGS): likewise
21306 (xnu_mod_ASFLAGS): likewise
21307 * conf/i386-pc.rmk: likewise
21308 * conf/x86_64-efi.rmk: likewise
7dd4a573 21309 * include/grub/efi/efi.h (grub_efi_finish_boot_services):
bbee0f2b 21310 new declaration
21311 * include/grub/i386/macho.h: new file
21312 * include/grub/i386/xnu.h: likewise
21313 * include/grub/macho.h: likewise
21314 * include/grub/machoload.h: likewise
21315 * include/grub/x86_64/macho.h: likewise
21316 * include/grub/x86_64/xnu.h: likewise
21317 * include/grub/xnu.h: likewise
21318 * kern/efi/efi.c (grub_efi_finish_boot_services): new function
21319 * kern/efi/mm.c (MAX_HEAP_SIZE): increase
21320 * loader/i386/efi/xnu.c: new file
21321 * loader/i386/pc/xnu.c: likewise
21322 * loader/i386/xnu.c: likewise
21323 * loader/i386/xnu_helper.S: likewise
21324 * loader/macho.c: likewise
21325 * loader/xnu.c: likewise
21326 * loader/xnu_resume.c: likewise
21327 * util/grub-dumpdevtree: likewise
21328 * include/grub/i386/pit.h: include grub/err.h
21329 (grub_pit_wait): export
21330 * util/grub.d/30_os-prober.in: support Darwin/Mac OS X
7dd4a573 21331
5caf964d 213322009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
21333
21334 Efiemu
7dd4a573 21335
5caf964d 21336 * conf/i386-pc.rmk: new modules efiemu, efiemu_acpi, efiemu_pnvram,
7dd4a573 21337 _linux_efi, linux_efi.
21338 new files in grub-emu
5caf964d 21339 new targets efiemu32.o and efiemu64.o
21340 * loader/linux_normal_efiemu.c: likewise
21341 * loader/i386/efi/linux.c: added preliminary efiemu support
7dd4a573 21342 * util/i386/pc/grub-install.in: add efiemu??.o to the list of
5caf964d 21343 files to copy
21344 * include/grub/autoefi.h: new file
7dd4a573 21345 * include/grub/i386/efiemu.h: likewise
5caf964d 21346 * include/grub/i386/pc/efiemu.h: likewise
21347 * include/grub/efi/api.h: add LL suffix when necessary
21348 new definitions relating to tables
21349 * include/grub/efiemu/efiemu.h: new file
21350 * include/grub/efiemu/runtime.h: likewise
21351 * efiemu/prepare.c: likewise
21352 * efiemu/loadcore_common.c: likewise
21353 * efiemu/loadcore64.c: likewise
21354 * efiemu/runtime/efiemu.sh: likewise
21355 * efiemu/runtime/efiemu.S: likewise
21356 * efiemu/runtime/efiemu.c: likewise
21357 * efiemu/runtime/config.h: likewise
21358 * efiemu/prepare32.c: likewise
21359 * efiemu/main.c: likewise
21360 * efiemu/modules/pnvram.c: likewise
21361 * efiemu/modules/i386: likewise
21362 * efiemu/modules/i386/pc: likewise
21363 * efiemu/modules/acpi.c: likewise
21364 * efiemu/i386/pc/cfgtables.c: likewise
21365 * efiemu/i386/loadcore64.c: likewise
21366 * efiemu/i386/loadcore32.c: likewise
21367 * efiemu/prepare64.c: likewise
21368 * efiemu/loadcore.c: likewise
21369 * efiemu/symbols.c: likewise
21370 * efiemu/mm.c: likewise
21371 * efiemu/loadcore32.c: likewise
7dd4a573 21372
213732009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
f8efe3ad 21374
21375 ACPI spoofing
21376
21377 * commands/acpi.c: new file
21378 * commands/i386/pc/acpi.c: likewise
21379 * commands/efi/acpi.c: likewise
21380 * include/grub/acpi.h: likewise
21381 * conf/i386-pc.rmk (pkglib_MODULES): added acpi.mod
21382 (acpi_mod_SOURCES): new variable
21383 (acpi_mod_CFLAGS): likewise
21384 (acpi_mod_LDFLAGS): likewise
21385 * conf/i386-efi.rmk: likewise
21386 * conf/x86_64-efi.rmk: likewise
21387
7dd4a573 213882009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
28a85665 21389
21390 Missing part from mmap patch
21391
21392 * mmap/efi/mmap.c (grub_machine_mmap_unregister): renamed to
21393 (grub_mmap_unregister)
21394 (grub_mmap_free_and_unregister): use grub_mmap_register
21395
7dd4a573 213962009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
09d842b9 21397
21398 Mmap services
21399
21400 * loader/i386/efi/linux.c (grub_linux_boot): use grub_mmap_iterate
21401 * loader/i386/linux.c (find_mmap_size): likewise
21402 (allocate_pages): likewise
21403 * loader/i386/multiboot.c (grub_get_multiboot_mmap_len): likewise
21404 (grub_fill_multiboot_mmap): likewise
21405 (grub_multiboot): use grub_mmap_get_lower and grub_mmap_get_upper
21406 * loader/i386/pc/linux.c (grub_cmd_linux): use grub_mmap_get_lower
21407 * include/grub/i386/bsd.h (OPENBSD_MMAP_AVAILABLE): new definition
21408 (OPENBSD_MMAP_RESERVED): likewise
21409 * include/grub/i386/pc/memory.h: include grub/memory.h
21410 (grub_lower_mem): removed
21411 (grub_upper_mem): likewise
21412 (GRUB_MACHINE_MEMORY_ACPI): new definition
21413 (GRUB_MACHINE_MEMORY_NVS): likewise
21414 (GRUB_MACHINE_MEMORY_MAX_TYPE): likewise
21415 (GRUB_MACHINE_MEMORY_HOLE): likewise
21416 (grub_machine_mmap_register): likewise
21417 (grub_machine_mmap_unregister): likewise
21418 (grub_machine_get_upper): likewise
21419 (grub_machine_get_lower): likewise
21420 (grub_machine_get_post64): likewise
21421 * include/grub/i386/efi/memory.h: new file
21422 * include/grub/x86_64/efi/memory.h: likewise
21423 * include/grub/efi/memory.h: likewise
21424 * conf/i386-pc.rmk (pkglib_MODULES): added mmap.mod
21425 (mmap_mod_SOURCES): new variable
21426 (mmap_mod_LDFLAGS): likewise
21427 (mmap_mod_ASFLAGS): likewise
21428 * conf/i386-coreboot.rmk: likewise
21429 * conf/i386-ieee1275.rmk: likewise
21430 * conf/i386-efi.rmk: likewise
21431 * conf/x86_64-efi.rmk: likewise
21432 * include/grub/types.h (UINT_TO_PTR): new macro
21433 (PTR_TO_UINT32): likewise
21434 (PTR_TO_UINT64): likewise
21435 * include/grub/memory.h: new file
21436 * mmap/i386/pc/mmap.c: likewise
21437 * mmap/i386/pc/mmap_helper.S: likewise
21438 * mmap/i386/uppermem.c: likewise
21439 * mmap/mmap.c: likewise
21440 * mmap/efi/mmap.c: likewise
7dd4a573 21441 * kern/i386/coreboot/init.c (grub_machine_init): don't use
09d842b9 21442 grub_upper_mem
21443 * kern/i386/pc/init.c (grub_lower_mem): removed variable
21444 (grub_upper_mem): likewise
21445 (grub_machine_init): don't use grub_upper_mem,
21446 make grub_lower_mem local
21447 * loader/i386/bsd.c (grub_openbsd_boot): use grub_mmap_get_lower,
21448 grub_mmap_iterate and grub_mmap_get_upper
21449 (grub_netbsd_boot): use grub_mmap_get_lower and grub_mmap_get_upper
21450
d558e6b5 214512009-05-02 Bean <bean123ch@gmail.com>
21452
21453 * conf/common.rmk (grub_script.tab.c): Change normal/parser.y to
21454 script/sh/parser.y.
21455 (pkglib_MODULES): Add normal.mod and sh.mod.
21456 (normal_SOURCES): New variable.
21457 (normal_mod_CFLAGS): Likewise.
21458 (normal_mod_LDFLAGS): Likewise.
21459 (sh_mod_SOURCES): Likewise.
21460 (sh_mod_CFLAGS): Likewise.
21461 (sh_mod_LDFLAGS): Likewise.
21462
21463 * conf/i386-pc.rmk (normal/lexer.c_DEPENDENCIES): Changed to
21464 script/sh/lexer.c_DEPENDENCIES.
21465 (kernel_img_SOURCES): Remove kern/rescue.c, and kern/reader.c,
21466 kern/rescue_reader.c and kern/rescue_parser.c.
21467 (kernel_img_HEADERS): Remove rescue.h, add reader.h.
21468 (grub_emu_SOURCES): Change source files.
21469 (pkglib_MODULES): Remove normal.mod.
21470 (normal_SOURCES): Removed.
21471 (normal_mod_CFLAGS): Likewise.
21472 (normal_mod_LDFLAGS): Likewise.
21473 * conf/i386-coreboot.rmk: Likewise.
21474 * conf/i386-efi.rmk: Likewise.
21475 * conf/i386-ieee1276.rmk: Likewise.
21476 * conf/powerpc-ieee1275.rmk: Likewise.
21477 * conf/sparc64-ieee1275.rmk: Likewise.
21478 * conf/x86_64-efi.rmk: Likewise.
21479
21480 * include/grub/command.h (grub_command_execute): New inline function.
21481
21482 * include/grub/menu.h (grub_menu_entry): Removed commands field.
21483
21484 * include/grub/normal.h: Remove <grub/setjmp.h>.
21485 (grub_fs_module_list): Moved to normal/autofs.c.
21486 (grub_exit_env): Removed.
21487 (grub_command_execute): Likewise.
21488 (grub_normal_menu_addentry): Renamed to grub_menu_addentry, removed
21489 parameter script.
21490 (read_command_list): New function declaration.
21491 (read_fs_list): Likewise.
21492
21493 * include/parser.h: Include <grub/reader.h>.
21494 (grub_parser_split_cmdline): Change type of getline parameter.
21495 (grub_parser): New structure.
21496 (grub_parser_class): New variable.
21497 (grub_parser_execute): New function declaration.
21498 (grub_register_rescue_parser): Likewise.
21499 (grub_parser_register): New inline function.
21500 (grub_parser_unregister): Likewise.
21501 (grub_parser_get_current): Likewise.
21502 (grub_parser_set_current): Likewise.
21503
21504 * include/grub/reader.h: New file.
21505 * kern/reader.c: Likewise.
21506 * kern/rescue_parser.c: Likewise.
21507 * kern/rescue_reader.c: Likewise.
21508 * normal/autofs.c: Likewise.
21509 * normal/dyncmd.c: Likewise.
21510
21511 * include/grub/rescue.h: Removed.
21512 * normal/command.h: Likewise.
21513
21514 * include/grub/script.h: Moved to ...
21515 * include/grub/script_sh.h: ... Moved here.
21516 * normal/execute.c: Moved to ...
21517 * script/sh/execute.c: ... Moved here.
21518 * normal/function.c: Moved to ...
21519 * script/sh/function.c: ... Moved here.
21520 * normal/lexer.c: Moved to ...
21521 * script/sh/lexer.c: ... Moved here.
21522 * normal/parser.y: Moved to ...
21523 * script/sh/parser.y: ... Moved here.
21524 * normal/script.c: Moved to ...
21525 * script/sh/script.c: ... Moved here.
21526
21527 * normal/main.c: Remove <grub/rescue.h> and <grub/script.h>, include
21528 <grub/reader.h>.
21529 (grub_exit_env): Removed.
21530 (fs_module_list): Moved to normal/autofs.c.
21531 (grub_file_getline): Don't handle comment here.
21532 (free_menu): Skip removed field entry->commands.
21533 (grub_normal_menu_addentry): Removed as grub_menu_entry, removed
21534 script parameter.
21535 (read_config_file): Removed nested parameter, change getline function.
21536 (grub_enter_normal_mode): Removed.
21537 (grub_dyncmd_dispatcher): Moved to normal/dyncmd.c.
21538 (read_command_list): Likewise.
21539 (autoload_fs_module): Moved to normal/autofs.c.
21540 (read_fs_list): Likewise.
21541 (reader_nested): New variable.
21542 (grub_normal_execute): Run parser.sh to switch to sh parser.
21543 (grub_cmd_rescue): Removed.
21544 (cmd_normal): Removed.
21545 (grub_cmd_normal): Unregister itself at the beginning. Don't register
21546 rescue command.
21547 (grub_cmdline_run): New function.
21548 (grub_normal_reader_init): Likewise.
21549 (grub_normal_read_line): Likewise.
21550 (grub_env_write_pager): Likewise.
21551 (cmdline): New variable.
21552 (grub_normal_reader): Likewise.
21553 (GRUB_MOD_INIT): Register normal reader and set as current, register
21554 pager hook, register normal command with grub_register_command_prio,
21555 so that it won't show up in command.lst.
21556 (GRUB_MOD_FINI): Unregister normal reader, unhook pager, clear
21557 grub_fs_autoload_hook.
21558
21559 * normal/menu.c: Remove <grub/script.h>, add <grub/command.h>.
21560 (grub_menu_execute_entry): Replace grub_script_execute with
21561 grub_parser_execute, change parameter to grub_command_execute.
21562
21563 * normal/menu_text.c: Remove <grub/script.h>.
21564
21565 * normal/menu_entry.c: Remove <grub/script.h>, add <grub/command.h>
21566 and <grub/parser.h>.
21567 (run): Change editor_getline to use new parser interface. Change
21568 parameter to grub_command_execute.
21569
21570 * kern/main.c: Remove <grub/rescue.h>, include <grub/command.h>,
21571 <grub/reader.h> and <grub/parser.h>.
21572 (grub_load_normal_mode): Execute normal command.
21573 (grub_main): Call grub_register_core_commands,
21574 grub_register_rescue_parser and grub_register_rescue_reader, use
21575 grub_reader_loop to enter input loop.
21576
7dd4a573 21577 * kern/parser.c (grub_parser_split_cmdline): Change type of
21578 getline parameter.
d558e6b5 21579 (grub_parser_class): New variable.
21580 (grub_parser_execute): New function.
21581
21582 * loader/i386/multiboot.c: Remove <grub/rescue.h>.
21583 * loader/multiboot2.c: Likewise.
21584 * loader/sparc64/ieee1275/linux.c: Likewise.
21585
21586 * util/grub-emu.c (read_command_list): New dummy function.
21587
18db813d 215882009-05-02 Robert Millan <rmh.grub@aybabtu.com>
21589
21590 * util/deviceiter.c (grub_util_iterate_devices): Increase max drive
21591 count to 16 for CCISS and IDA.
21592
6c67de15 215932009-05-02 Robert Millan <rmh.grub@aybabtu.com>
21594
21595 * normal/menu_text.c (grub_wait_after_message): Print a newline
21596 after waiting for user input.
21597
21598 * loader/i386/linux.c: Include `<grub/normal.h>'.
21599 (grub_cmd_linux): Improve the error message about `ask' mode, by
21600 waiting for user input so it's not missed (we can do this, since
21601 user requested interaction).
21602
d9dc87b0 216032009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
21604
21605 Added missing lst to grub-mkrescue
21606
21607 * util/i386/pc/grub-mkrescue.in: added ${input_dir}/handler.lst
21608 and ${input_dir}/parttool.lst
21609
ac8a2baa 216102009-04-30 David S. Miller <davem@davemloft.net>
21611
ad22a610 21612 * util/hostdisk.c (device_is_wholedisk): New function.
21613 (grub_util_biosdisk_get_grub_dev): Shortcut when hdg.start is
21614 zero only if device_is_wholedisk() returns true.
21615
6966215d 21616 * util/hostdisk.c (convert_system_partition_to_system_disk):
21617 Handle virtual disk devices named /dev/vdiskX as found on sparc
21618 and powerpc.
21619
ac8a2baa 21620 * kern/sparc64/ieee1275/init.c (grub_machine_set_prefix): If
21621 lettered partition specifier is found, convert to numbered.
21622
979b4fb4 216232009-04-29 David S. Miller <davem@davemloft.net>
21624
e2bf39b2 21625 * include/grub/powerpc/ieee1275/memory.h: Include ieee1275.h.
21626 * include/grub/sparc64/ieee1275/memory.h: Likewise.
21627
3c64e104 21628 * normal/command.c: Add missing newline at end of file.
21629
979b4fb4 21630 * commands/lsmmap.c (grub_cmd_lsmmap): Add casts to avoid printf
21631 warnings.
21632 * kern/ieee1275/openfw.c (grub_claimmap): Likewise.
21633 * disk/ieee1275/ofdisk.c (grub_ofdisk_open, grub_ofdisk_close,
21634 grub_ofdisk_read): Likewise, and deal similarly with the fact that
21635 ihandles have a 32-bit type but need to be stored in a "void *".
21636
136d9f82 216372009-04-28 Pavel Roskin <proski@gnu.org>
21638
9459c306 21639 * disk/fs_uuid.c (grub_fs_uuid_open): Use parent->data for dev,
21640 not disk. Adjust all dependencies.
2e08a26a 21641 (grub_fs_uuid_close): Use grub_device_close(), not
9459c306 21642 grub_disk_close().
21643
136d9f82 21644 * disk/fs_uuid.c (grub_fs_uuid_open): Allocate memory to copy
21645 parent's partition, don't copy it by reference, as it gets freed
21646 on close.
21647
7dd4a573 216482009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
75a807cf 21649
21650 Preboot hooks support
21651
21652 * commands/boot.c (struct grub_preboot_t): new declaration
21653 (preboots_head): new variable
21654 (preboots_tail): likewise
21655 (grub_loader_register_preboot_hook): new function
21656 (grub_loader_unregister_preboot_hook): likewise
21657 (grub_loader_set): launch preboot hooks
21658 * include/grub/loader.h (grub_loader_preboot_hook_prio_t): new type
21659 (grub_loader_register_preboot_hook): new declaration
21660 (grub_loader_unregister_preboot_hook): likewise
21661
5af922b5 216622009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
21663
21664 Warning fix
21665
7dd4a573 21666 * disk/scsi.c (grub_scsi_open): added missing cast when
5af922b5 21667 calling grub_dprintf
21668
a5562c30 216692009-04-26 Vladimir Serbinenko <phcoder@gmail.com>
21670
21671 Bug and warning fixes
21672
7dd4a573 21673 * include/grub/i386/pc/init.h (grub_stop_floppy): added missing
a5562c30 21674 declaration
21675 * commands/test.c (test_parse): fixed bug with file tests and corrected
21676 declaration of find_file
21677
4006f85c 216782009-04-26 Pavel Roskin <proski@gnu.org>
21679
21680 * Makefile.in: Don't install empty manual pages if help2man is
21681 missing. Use help2man option for output, not shell redirection.
21682
5c77c3de 216832009-04-26 David S. Miller <davem@davemloft.net>
21684
21685 * util/grub-mkdevicemap.c (make_device_map): Add missing
21686 NESTED_FUNC_ATTR to process_device().
21687
033b10a8 216882009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
21689
21690 Test command
21691
21692 * commands/test.c: rewritten to use bash-like test
21693
e4343593 216942009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
21695
21696 Parttool autoloading and improvements
21697
7dd4a573 21698 * Makefile.in (pkglib_DATA): add parttool.lst
e4343593 21699 (parttool.lst): new target
21700 * genmk.rb: generate parttool-*
21701 (CLEANFILES): add #{parttool}
21702 (PARTTOOLFILES): new variable
21703 * genparttoollist.sh: new file
7dd4a573 21704 * parttool/pcpart.c (grub_pcpart_boot): more feedback
e4343593 21705 (grub_pcpart_type): likewise
21706 * commands/parttool.c (helpmsg): new variable
21707 (grub_cmd_parttool): output help if not enough arguments are supplied
21708 autoload modules
21709 (GRUB_MOD_INIT(parttool)): use helpmsg
21710
0d312500 217112009-04-24 David S. Miller <davem@davemloft.net>
21712
7dd4a573 21713 Avoiding opening same device multiple times in device iterator.
0d312500 21714
21715 * kern/device.c: (grub_device_iterate): Define struct part_ent,
7dd4a573 21716 and use it to build a list of partitions in iterate_disk() and
0d312500 21717 iterate_partition().
21718
ac20caff 21719 * disk/fs_uuid.c (grub_fs_uuid_close): Call grub_disk_close()
21720 on disk->data.
21721
0dcf7495 21722 * disk/ieee1275/nand.c (grub_nand_iterate): Return
21723 grub_devalias_iterate() result instead of unconditional 0.
21724 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Likewise.
21725 Also, capture hook return value, either directly or via
21726 grub_children_iterate(), and propagate to caller.
21727 * include/grub/ieee1275/ieee1275.h (grub_devalias_iterate,
21728 grub_children_iterate): Return value is now 'int' instead of
21729 'grub_err_t'.
21730 * kern/ieee1275/openfw.c (grub_children_iterate): Fix to behave
21731 like a proper iterator, stopping when hooks return non-zero.
21732 (grub_devalias_iterate): Likewise.
21733
c8c08833 217342009-04-23 David S. Miller <davem@davemloft.net>
21735
21736 * kern/sparc64/ieee1275/openfw.c: Unused, delete.
21737
f01005a8 217382009-04-22 David S. Miller <davem@davemloft.net>
21739
21740 * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): If size_cells
21741 is larger than address_cells, use that value for address_cells too.
21742
4e8269da 21743 * include/grub/ieee1275/ieee1275.h (IEEE1275_MAX_PROP_LEN,
21744 IEEE1275_MAX_PATH_LEN): Define.
21745 * kern/ieee1275/openfw.c (grub_children_iterate): Dynamically
21746 allocate 'childtype', 'childpath', 'childname', and 'fullname'.
21747 (grub_devalias_iterate): Dynamically allocate 'aliasname' and
21748 'devtype'. Explicitly NULL terminate devalias expansion.
21749
a1447506 21750 * util/sparc64/ieee1275/misc.c: New file.
21751 * util/sparc64/ieee1275/grub-setup.c: New file.
21752 * util/sparc64/ieee1275/grub-ofpathname.c: New file.
21753 * util/sparc64/ieee1275/grub-mkimage.c: New file.
21754 * util/sparc64/ieee1275/grub-install.in: New file.
21755 * util/ieee1275/ofpath.c: New file.
21756 * util/ieee1275/devicemap.c: New file.
21757 * util/devicemap.c: New file.
21758 * util/deviceiter.c: New file.
21759 * kern/sparc64/ieee1275/init.c: New file.
21760 * include/grub/util/ofpath.h: New file.
21761 * include/grub/util/deviceiter.h: New file.
21762 * util/grub-mkdevicemap.c: Include deviceiter.h.
21763 Implement using grub_util_emit_devicemap_entry and
21764 grub_util_iterate_devices.
21765 * conf/i386-corebook.rmk: Build util/deviceiter.c and
21766 util/devicemap.c into grub-mkdevicemap
21767 * conf/i386-efi.rmk: Likewise.
21768 * conf/i386-ieee1275.rmk: Likewise.
21769 * conf/i386-pc.rmk: Likewise.
21770 * conf/powerpc-ieee1275.rmk: Likewise.
21771 * conf/sparc64-ieee1275.rmk: Add rules to build boot block
21772 images and installation utilities. Build kernel as image
21773 instead of as elf binary. Use common rules as much as possible.
21774
7dd4a573 217752009-04-19 Vladimir Serbinenko <phcoder@gmail.com>
0aefc632 21776
21777 Correct GPT definition
21778
7dd4a573 21779 * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
0aefc632 21780 of "attrib" member
21781
c6c5219f 217822009-04-19 Felix Zielcke <fzielcke@z-51.de>
21783
21784 * INSTALL: Replace `autogen.sh' with `./autogen.sh'.
21785
0552ff9f 217862009-04-19 David S. Miller <davem@davemloft.net>
21787
21788 * loader/sparc64/ieee1275/linux.c: Include grub/command.h
21789 (grub_rescue_cmd_linux): Rename to...
21790 (grub_cmd_linux): and fix prototype.
21791 (grub_rescue_cmd_initrd): Rename to...
21792 (grub_cmd_initrd): and fix prototype.
21793 (cmd_linux, cmd_initrd): New.
21794 (GRUB_MOD_INIT(linux)): Use grub_register_command().
21795 (GRUB_MOD_FINI(linux): Use grub_unregister_command().
21796
d1a282fc 217972009-04-17 Pavel Roskin <proski@gnu.org>
21798
07c5039f 21799 * bus/usb/ohci.c (grub_ohci_transaction): Fix incorrect printf
21800 format.
21801 (grub_ohci_transfer): Likewise.
21802
b012002d 21803 * bus/usb/usbtrans.c (grub_usb_control_msg): Warning fix.
21804
1bc09c35 21805 * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Fix
21806 return without a value. Fix inconsistent indentation.
21807
e0ff9126 21808 * fs/i386/pc/pxe.c (grub_pxefs_dir): Fix function prototype to
21809 match struct grub_fs.
21810
d1a282fc 21811 * disk/ata.c (grub_ata_pciinit): Use NESTED_FUNC_ATTR.
21812 * bus/usb/ohci.c (grub_ohci_pci_iter): Likewise.
21813 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
21814 * commands/lspci.c (grub_lspci_iter): Likewise.
21815
a96df3f2 218162009-04-16 Bean <bean123ch@gmail.com>
21817
21818 * commands/efi/loadbios.c (grub_cmd_fakebios): Add missing return
21819 value.
21820
41bb0fe9 218212009-04-15 Pavel Roskin <proski@gnu.org>
21822
21823 * include/grub/types.h: Rename ULONG_MAX to GRUB_ULONG_MAX and
21824 LONG_MAX to GRUB_LONG_MAX. Introduce GRUB_LONG_MIN. Update all
21825 users of ULONG_MAX, LONG_MAX and LONG_MIN to use the new
21826 definitions.
21827
596c6970 218282009-04-15 Felix Zielcke <fzielcke@z-51.de>
21829
21830 * disk/lvm.c (grub_lvm_scan_device): Add `LVM' to the error messages,
7dd4a573 21831 that no multiple data or metadata areas are supported and `Unknown
596c6970 21832 metadata header'.
21833
7dd4a573 218342009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
0d5d5653 21835
21836 Move loader out of the kernel
21837
21838 * kern/loader.c: moved to ...
21839 * commands/boot.c: ... moved here
21840 * commands/minicmd.c (grub_mini_cmd_boot): moved to ...
21841 * commands/boot.c (grub_cmd_boot): moved here. All users updated
21842 * include/grub/kernel.h (grub_machine_fini): export
21843 * include/grub/loader.h (grub_loader_is_loaded): update declaration
21844 (grub_loader_set): likewise
21845 (grub_loader_unset): likewise
21846 (grub_loader_boot): likewise
21847 * conf/common.rmk: new module boot.mod
21848 (pkglib_MODULES): add boot.mod
21849 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): remove kern/loader.c
21850 (grub_emu_SOURCES): likewise
21851 * conf/i386-efi.rmk (kernel_elf_SOURCES): likewise
21852 (grub_emu_SOURCES): likewise
21853 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): likewise
21854 (grub_emu_SOURCES): likewise
21855 * conf/i386-pc.rmk (kernel_elf_SOURCES): likewise
21856 (grub_emu_SOURCES): likewise
21857 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): likewise
21858 (grub_emu_SOURCES): likewise
7dd4a573 21859 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): likewise
21860 (grub_emu_SOURCES): likewise
0d5d5653 21861 * conf/x86_64-efi.rmk (kernel_elf_SOURCES): likewise
7dd4a573 21862 (grub_emu_SOURCES): likewise
0d5d5653 21863
7dd4a573 218642009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
5999d619 21865
21866 use grub_lltoa instead of grub_itoa and grub_ltoa for all purposes
7dd4a573 21867
5999d619 21868 * kern/misc.c (grub_itoa): Removed function
21869 (grub_ltoa): likewise
21870 (grub_vsprintf): use grub_lltoa
21871
7dd4a573 218722009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
13c00781 21873
21874 Restore grub-emu
21875
21876 * conf/i386-pc.rmk (grub_emu_SOURCES): add normal/handler.c
21877 * conf/i386-coreboot.rmk: likewise
21878 * conf/i386-ieee1275.rmk: likewise
21879 * conf/powerpc-ieee1275.rmk: likewise
7dd4a573 21880
20318222 218812009-04-15 Felix Zielcke <fzielcke@z-51.de>
21882
21883 * INSTALL: Add that `./autogen.sh' needs to be run before
21884 `./configure.'.
21885
d05f0df3 218862009-04-14 Bean <bean123ch@gmail.com>
21887
21888 * Makefile.in (pkglib_DATA): Add handler.lst.
21889 (handler.lst): New rule.
21890
21891 * conf/i386-pc.rmk (normal_mod_SOURCES): Add normal/handler.c.
21892 * conf/i386-coreboot.rmk: Likewise.
21893 * conf/i386-ieee1275.rmk: Likewise.
21894 * conf/i386-efi.rmk: Likewise.
21895 * conf/x86_64-efi.rmk: Likewise.
21896 * conf/powerpc-ieee1275.rmk: Likewise.
21897 * conf/sparc64-ieee1275.rmk: Likewise.
21898
21899 * genhandlerlist.sh: New file.
21900
21901 * genmk.rb: Add rules to generate handler.lst.
21902
21903 * include/grub/normal.h (grub_file_getline): New function definition.
21904 (read_handler_list): Likewise.
21905 (free_handler_list): Likewise.
21906
21907 * include/grub/term.h (grub_term_register_input): Add name parameter
21908 for auto generation of handler.lst.
21909 (grub_term_register_output): Likewise.
21910
21911 * normal/handler.c: New file.
21912
21913 * normal/main.c (get_line): Renamed to grub_file_getline.
21914 (read_config_file): Use the newly renamed grub_file_getline.
21915 (read_command_list): Likewise.
21916 (read_fs_list): Likewise.
21917 (grub_normal_execute): Call read_handler_list to parse handler.lst.
21918 (GRUB_MOD_FINI): Call free_handler_list to free handler list.
21919
21920 * term/efi/console.c (grub_console_init): Add name parameter for auto
21921 generation of handler.lst.
21922 * term/gfxterm.c: Likewise.
21923 * term/i386/pc/at_keyboard.c: Likewise.
21924 * term/i386/pc/console.c: Likewise.
21925 * term/i386/pc/serial.c: Likewise.
21926 * term/i386/pc/vesafb.c: Likewise.
21927 * term/i386/pc/vga.c: Likewise.
21928 * term/i386/pc/vga_text.c: Likewise.
21929 * term/ieee1275/ofconsole.c: Likewise.
21930 * term/usb_keyboard.c: Likewise.
21931
33c846be 219322009-04-14 Bean <bean123ch@gmail.com>
21933
21934 * util/grub-pe2elf.c (write_symbol_table): Terminate short name symbol
21935 properly with null character.
21936
4484e01e 219372009-04-14 Felix Zielcke <fzielcke@z-51.de>
21938
21939 * configure: Remove.
21940 * config.h.in: Likewise.
f93d668e 21941 * stamp-h.in: Likewise.
4484e01e 21942 * DISTLIST: Likewise.
21943 * conf/common.mk: Likewise.
21944 * conf/i386-coreboot.mk: Likewise.
21945 * conf/i386-efi.mk: Likewise.
21946 * conf/i386-ieee1275.mk: Likewise.
21947 * conf/i386.mk: Likewise.
21948 * conf/i386-pc.mk: Likewise.
21949 * conf/powerpc-ieee1275.mk: Likewise.
21950 * conf/sparc64-ieee1275.mk: Likewise.
21951 * conf/x86_64-efi.mk: Likewise.
21952
21953 * INSTALL: Remove the sentence that Ruby and autoconf are only required if you
21954 develop on GRUB.
21955
7dd4a573 219562009-04-14 John Stanley <jpsinthemix@verizon.net>
5c5bf96a 21957 David S. Miller <davem@davemloft.net>
21958
21959 * util/hostdisk.c (make_device_name): Fix buffer length
21960 calculations.
21961
e25b5a8c 219622009-04-14 Felix Zielcke <fzielcke@z-51.de>
21963
21964 * util/hostdisk.c [__FreeBSD__ || __FreeBSD_kernel__]: Include
21965 <sys/param.h> and <sys/sysctl.h>.
21966 (open_device) [__FreeBSD__ || __FreeBSD_kernel_]: Use sysctlgetbyname()
21967 to add 0x10 to `kern.geom.debugflags' if it's not already set, before
21968 opening the device and reset them afterwards.
21969
1f1f580c 219702009-04-13 Pavel Roskin <proski@gnu.org>
21971
21972 * conf/common.rmk (grub_fstest_SOURCES): Add normal/datetime.c.
21973 Reported by John Stanley <jpsinthemix@verizon.net>
21974
7ebc2d6b 219752009-04-13 Robert Millan <rmh@aybabtu.com>
21976
21977 * util/grub.d/10_freebsd.in: Detect Debian GNU/kFreeBSD and use
7dd4a573 21978 that name for menuentries when appropriate.
7ebc2d6b 21979
d8ba3667 219802009-04-13 Felix Zielcke <fzielcke@z-51.de>
21981
21982 * util/grub.d/10_freebsd.in: Add a missing `fi'.
21983
cba416eb 219842009-04-13 Robert Millan <rmh@aybabtu.com>
21985
21986 * loader/i386/linux.c (grub_cmd_linux): Don't pass `vga=ask' parameter
21987 to Linux, simply abort telling the user it's no longer supported.
21988
a547a745 219892009-04-13 Felix Zielcke <fzielcke@z-51.de>
21990
21991 * util/grub.d/10_freebsd.in: Don't exit if /boot/devices.hints
7dd4a573 21992 doesn't exist. Check also for /boot/kernel/kernel.gz. Print
a547a745 21993 `freebsd_loadenv' only when devices.hints exist.
21994
232a769c 219952009-04-13 Pavel Roskin <proski@gnu.org>
21996
21997 * term/usb_keyboard.c (grub_usb_keyboard_getkey): Warning fixes.
21998
c3012039 219992009-04-13 Felix Zielcke <fzielcke@z-51.de>
22000
22001 * util/i386/pc/grub-install.in (install_drive): Remove the BSD
22002 partition number.
22003 (grub_drive): Likewise.
22004
234022fe 220052009-04-13 David S. Miller <davem@davemloft.net>
22006
22007 * kern/sparc64/ieee1275/ieee1275.c: New file.
22008 * include/grub/sparc64/ieee1275/ieee1275.h (IEEE1275_MAP_WRITE,
22009 IEEE1275_MAP_READ, IEEE1275_MAP_EXEC, IEEE1275_MAP_LOCKED,
22010 IEEE1275_MAP_CACHED, IEEE1275_MAP_SE, IEEE1275_MAP_GLOBAL,
22011 IEEE1275_MAP_IE, IEEE1275_MAP_DEFAULT): Define.
22012 (grub_ieee1275_map_physical, grub_ieee1275_claim_vaddr,
22013 grub_ieee1275_alloc_physmem): Declare new exported functions.
22014
d8e1836c 22015 * include/grub/sparc64/ieee1275/loader.h: New file.
22016 * include/grub/sparc64/ieee1275/memory.h: Likewise.
22017 * include/grub/sparc64/kernel.h: Likewise.
22018 * loader/sparc64/ieee1275/linux.c: Likewise.
22019
96bd81ec 22020 * conf/common.rmk (grub_probe_SOURCES): Add Sun partition module.
22021 (grub_fstest_SOURCES): Likewise.
22022
6a4737e5 22023 * util/hostdisk.c (make_device_name): Do not make any assumptions
22024 about the length of drive names.
22025
1d7a72fd 22026 * kern/dl.c (grub_dl_load_file): Close file immediately when
22027 we are done using it.
22028
56bc2471 220292009-04-12 David S. Miller <davem@davemloft.net>
22030
22031 * kern/misc.c (grub_ltoa): Fix cast when handling negative
22032 values. Noticed by Pavel Roskin.
22033
df38d0bb 22034 * configure.ac: Check for __bswapsi2 and__bswapdi2 using
22035 target compiler.
7dd4a573 22036
e382e93a 22037 * genmk.rb: Add more flexible image type specification, also
22038 pass --strip-unneeded to objcopy.
22039 * conf/i386-pc.rmk: Use *_FORMAT.
22040 * conf/i386-pc.mk: Rebuilt.
22041
f5dbbca9 22042 * disk/ieee1275/ofdisk.c (struct ofdisk_hash_ent): New struct.
22043 (OFDISK_HASH_SZ): Define.
22044 (ofdisk_hash): New hash table.
22045 (ofdisk_hash_fn, ofdisk_hash_find, ofdisk_hash_add): New functions.
22046 (grub_ofdisk_open): Use ofdisk_hash_ent address as disk->id
22047 instead of device phandle which is not unique.
22048
91c88b12 22049 * kern/sparc64/ieee1275/init.c: Delete, replace with...
22050 * kern/sparc64/ieee1275/crt0.S: assembler implementation.
22051 * include/grub/sparc64/ieee1275/kernel.h: Declare grub_prefix[].
22052 (GRUB_MOD_ALIGN, GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_TOTAL_MODULE_SIZE,
22053 GRUB_KERNEL_MACHINE_KERNEL_IMAGE_SIZE,
22054 GRUB_KERNEL_MACHINE_COMPRESSED_SIZE, GRUB_KERNEL_MACHINE_PREFIX,
22055 GRUB_KERNEL_MACHINE_DATA_END): Define.
22056 (grub_kernel_image_size, grub_total_module_size): Declare.
22057
5b5d4aa5 220582009-04-12 Pavel Roskin <proski@gnu.org>
22059
7dd4a573 22060 * configure.ac: Change the logic when we check for target tools.
22061 Do it when the target is specified and it's different from the
22062 specified value of the host.
5b5d4aa5 22063
c91e1793 220642009-04-11 Felix Zielcke <fzielcke@z-51.de>
22065
22066 * util/hostdisk.c [__FreeBSD_kernel__]: Include sys/disk.h.
22067 (grub_util_biosdisk_open) [__FreeBSD_kernel__]: Add support for
22068 GNU/kFreeBSD. Check if a device is a character device. Use
22069 DIOCGMEDIASIZE to get the size.
22070 (convert_system_partition_to_system_disk) [__FreeBSD_kernel__]: Add
22071 support for GNU/kFreeBSD.
22072 (grub_util_biosdisk_get_grub_dev) [__FreeBSD_kernel__]: Check if OS_DEV
22073 is a character device instead of a block device. Add support for
22074 FreeBSD device names.
22075
22076 * util/getroot.c (find_root_device) [__FreeBSD_kernel__]: Check if ENT
22077 is a character device instead of a block device.
22078
22079 * util/grub-probe.c (probe) [__FreeBSD_kernel__]: Check if DEVICE_NAME
22080 is a character device instead of a block device.
22081
b1ac8644 220822009-04-11 Andrey Shuvikov <mr_hyro@yahoo.com>
22083
22084 * util/hostdisk.c [__FreeBSD__]: Include sys/disk.h.
22085 (grub_util_biosdisk_open) [__FreeBSD__]: Add support for
22086 FreeBSD. Check if a device is a character device. Use
22087 DIOCGMEDIASIZE to get the size.
22088 (convert_system_partition_to_system_disk) [__FreeBSD__]: Add
22089 support for FreeBSD.
22090 (grub_util_biosdisk_get_grub_dev) [__FreeBSD__]: Check if OS_DEV
22091 is a character device instead of a block device. Add support for
22092 FreeBSD device names.
22093
22094 * util/getroot.c (find_root_device) [__FreeBSD__]: Check if ENT is
22095 a character device instead of a block device.
22096 (grub_util_check_char_device): New function.
22097
22098 * util/grub-probe.c (probe) [__FreeBSD__]: Check if DEVICE_NAME is
22099 a character device instead of a block device.
22100
22101 * include/grub/util/getroot.h (grub_util_check_char_device): New
22102 prototype.
22103
a3f7515a 221042009-04-11 David S. Miller <davem@davemloft.net>
22105
22106 * conf/sparc64-ieee1275.rmk (kernel_img_LDFLAGS): Link with
22107 static libgcc.
22108 * configure.ac: Check for __bswapsi2 and __bswapdi2 presence.
22109 * include/grub/sparc64/libgcc.h (__bswapsi2): Export libgcc
22110 function, if present.
22111 (__bswapdi2): Likewise.
22112
0d44993d 22113 * include/grub/sparc64/ieee1275/boot.h: New file.
22114 * boot/sparc64/ieee1275/boot.S: Likewise.
22115 * boot/sparc64/ieee1275/diskboot.S: Likewise.
22116
ed3d2bc2 22117 * kern/misc.c (grub_ltoa): New function.
22118 (grub_vsprintf): Use it to format 'long' integers.
22119
d3bfb59c 221202009-04-10 David S. Miller <davem@davemloft.net>
22121
22122 * disk/ieee1275/nand.c (grub_nand_open): All ieee1275 call arg
22123 slots are of type grub_ieee1275_cell_t.
22124 (grub_nand_read): Likewise.
22125 * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_INVALID,
22126 IEEE1275_IHANDLE_INVALID): Use grub_ieee1275_cell_t since these
22127 macros are used to compare values in arg/ret block of the call.
22128 (grub_ieee1275_finddevice, grub_ieee1275_get_property,
22129 grub_ieee1275_next_property, grub_ieee1275_get_property_length,
22130 grub_ieee1275_instance_to_package, grub_ieee1275_package_to_path,
22131 grub_ieee1275_instance_to_path, grub_ieee1275_write,
22132 grub_ieee1275_read, grub_ieee1275_seek, grub_ieee1275_peer,
22133 grub_ieee1275_child, grub_ieee1275_parent, grub_ieee1275_open,
22134 grub_ieee1275_close, grub_ieee1275_set_property,
22135 grub_ieee1275_set_color): All ieee1275 call arg slots are of type
22136 grub_ieee1275_cell_t.
22137 * kern/ieee1275/openfw.c (grub_map): Likewise.
22138 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_ihandle_t,
22139 grub_ieee1275_phandle_t): Define as grub_unit32_t type.
22140
450e2238 22141 * kern/ieee1275/init.c (grub_machine_init): Make 'actual' grub_ssize_t.
22142 * kern/ieee1275/openfw.c (grub_children_iterate): Likewise.
22143 (grub_devalias_iterate): Likewise.
22144
7dd4a573 221452009-04-10 Vladimir Serbinenko <phcoder@gmail.com>
6df8cc76 22146
22147 UFS improvements
22148
22149 * fs/ufs.c (INODE_NBLOCKS): new definition
22150 (struct grub_ufs_dirent): added fields for non-BSD dirents
22151 (grub_ufs_get_file_block): fixed double indirect handling
22152 (grub_ufs_lookup_symlink): use more robust way to determine whether
22153 symlink is inline
22154 (grub_ufs_find_file): support for non-BSD dirents
22155 (grub_ufs_dir): support for non-BSD dirents
22156
e7e6862a 221572009-04-10 Bean <bean123ch@gnail.com>
22158
22159 * include/grub/efi/api.h (grub_efi_configuration_table): Add packed
22160 attribute, otherwise the size would be wrong for i386 platform.
22161
22162 * include/grub/pci.h (grub_pci_read_word): New inline function.
22163 (grub_pci_read_byte): Likewise.
22164 (grub_pci_write): Likewise.
22165 (grub_pci_write_word): Likewise.
22166 (grub_pci_write_byte): Likewise.
22167
22168 * include/grub/pci.h (grub_pci_iteratefunc_t): Add NESTED_FUNC_ATTR.
22169
22170 * loader/i386/efi/linux.c (fake_bios_data): Moved to loadbios module.
22171 (find_framebuf): Scan pci to locate the frame buffer address.
22172
22173 * commands/efi/fixvideo.c: New file.
22174
22175 * commands/efi/loadbios.c: Likewise.
22176
22177 * commands/memrw.c: Likewise.
22178
22179 * util/grub-dumpbios.in: Likewise.
22180
22181 * conf/common.rmk (grub-dumpbios): New utility.
22182 (pkglib_MODULES): New module memrw.mod.
22183 (memrw_mod_SOURCE): New macro.
22184 (memrw_mod_CFLAGS): Likewise.
22185 (memrw_mod_LDFLAGS): Likewise.
22186
7dd4a573 22187 * conf/i386-efi.rmk (pkglib_MODULES): New module loadbios.mod and
e7e6862a 22188 fixvideo.mod.
22189 (loadbios_mod_SOURCE): New macro.
22190 (loadbios_mod_CFLAGS): Likewise.
22191 (loadbios_mod_LDFLAGS): Likewise.
22192 (fixvideo_mod_SOURCE): Likewise.
22193 (fixvideo_mod_CFLAGS): Likewise.
22194 (fixvideo_mod_LDFLAGS): Likewise.
22195
7dd4a573 22196 * conf/x86_64.rmk (pkglib_MODULES): New module loadbios.mod and
e7e6862a 22197 fixvideo.mod.
22198 (loadbios_mod_SOURCE): New macro.
22199 (loadbios_mod_CFLAGS): Likewise.
22200 (loadbios_mod_LDFLAGS): Likewise.
22201 (fixvideo_mod_SOURCE): Likewise.
22202 (fixvideo_mod_CFLAGS): Likewise.
22203 (fixvideo_mod_LDFLAGS): Likewise.
22204
af63ada2 222052009-04-08 Felix Zielcke <fzielcke@z-51.de>
22206
22207 * disk/lvm.c (grub_lvm_scan_device): Add a missing NULL check.
22208
c2cdde70 222092009-04-07 David S. Miller <davem@davemloft.net>
22210
22211 * kern/sparc64/dl.c (grub_arch_dl_relocate_symbols): Add
22212 support for R_SPARC_OLO10 relocations. Fix compile warning for
22213 R_SPARC_WDISP30 case.
ea3f72cf 22214 * kern/sparc64/cache.S: Fix grub_arch_sync_caches implementation.
c2cdde70 22215
761319cf 222162009-04-06 Pavel Roskin <proski@gnu.org>
22217
1007d1f5 22218 * include/grub/misc.h (ARRAY_SIZE): New macro.
22219 * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START):
22220 New macro.
22221 * loader/i386/linux.c (allocate_pages): Use free_pages().
22222 (grub_linux_unload): Don't use free_pages().
22223 (grub_linux_boot): Prevent accessing linux_vesafb_modes with a
22224 wrong index. Treat all other modes as text modes.
22225 (grub_cmd_linux): Initialize vid_mode unconditionally to
22226 GRUB_LINUX_VID_MODE_NORMAL. Recognize and support "vga=ask".
22227
761319cf 22228 * commands/help.c (print_command_help): Use cmd->prio, not
22229 cmd->flags to check for GRUB_PRIO_LIST_FLAG_ACTIVE.
22230
ea761d40 222312009-04-06 Vladimir Serbinenko <phcoder@gmail.com>
7dd4a573 22232
ea761d40 22233 Parttool
22234
22235 * parttool/pcpart.c: new file
22236 * commands/parttool.c: likewise
22237 * conf/common.rmk (pkglib_MODULES): Added parttool.mod and pcpart.mod
22238 (parttool_mod_SOURCES): new variable
22239 (parttool_mod_CFLAGS): likewise
22240 (parttool_mod_LDFLAGS): likewise
22241 (pcpart_mod_SOURCES): likewise
22242 (pcpart_mod_CFLAGS): likewise
22243 (pcpart_mod_LDFLAGS): likewise
7dd4a573 22244 * conf/i386-coreboot.rmk (grub_emu_SOURCES): added commands/parttool.c
ea761d40 22245 and parttool/pcpart.c
22246 * conf/i386-efi.rmk: likewise
22247 * conf/i386-ieee1275.rmk: likewise
22248 * conf/i386-pc.rmk: likewise
22249 * conf/powerpc-ieee1275.rmk: likewise
22250 * conf/sparc64-ieee1275.rmk: likewise
22251 * conf/x86_64-ieee1275.rmk: likewise
22252
05aaebfb 222532009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
22254
22255 Support for mtime and further expandability of dir command
22256
22257 * include/grub/lib/datetime.h: moved to ...
7dd4a573 22258 * include/grub/datetime.h: ... moved here and added
05aaebfb 22259 declaration of grub_unixtime2datetime. All users updated
7dd4a573 22260 * include/grub/fs.h: new syntax for dir and mtime functions in
22261 struct grub_fs
05aaebfb 22262 * include/grub/fshelp.h: new declarations of GRUB_FSHELP_TYPE_MASK
22263 and GRUB_FSHELP_FLAGS_MASK
22264 * commands/ls.c (grub_ls_list_files): Write mtime in long format
22265 * fs/ext2.c (grub_ext2_dir): use new dir syntax and supply mtime
22266 (grub_ext2_mtime): new function
22267 * fs/hfsplus.c (grub_hfsplus_dir): use new dir syntax and supply mtime
22268 (grub_hfsplus_mtime): new function
22269 * fs/ufs.c (GRUB_UFS_ATTR_TYPE): new definition
22270 (GRUB_UFS_ATTR_FILE): likewise
22271 (GRUB_UFS_ATTR_LNK): likewise
22272 (struct grub_ufs_sblock): new fields mtime
22273 (grub_ufs_read_inode): new parameter to read inode to a separate buffer
22274 all users updated
22275 (grub_ufs_dir): mtime support
22276 (grub_ufs_mtime): new function
22277 * fs/affs.c (grub_affs_dir): use new dir syntax
22278 * fs/afs.c (grub_afs_dir): likewise
22279 * fs/cpio.c (grub_cpio_dir): likewise
22280 * fs/fat.c (grub_fat_find_dir): likewise
22281 * fs/hfs.c (grub_hfs_dir): likewise
22282 * fs/iso9660.c (grub_iso9660_dir): likewise
22283 * fs/jfs.c (grub_jfs_dir): likewise
22284 * fs/minix.c (grub_minix_dir): likewise
22285 * fs/ntfs.c (grub_ntfs_dir): likewise
22286 * fs/reiserfs.c (grub_reiserfs_dir): likewise
22287 * fs/sfs.c (grub_sfs_dir): likewise
22288 * fs/xfs.c (grub_xfs_dir): likewise
22289 * util/hostfs.c (grub_hostfs_dir): likewise
22290 * lib/datetime.c: moved to ...
22291 * normal/datetime.c: ... moved here
22292 (grub_unixtime2datetime): new function
22293 * kern/rescue.c (grub_rescue_print_files): use new dir syntax
7dd4a573 22294 * normal/completion.c (iterate_dir): use new dir syntax
22295 * normal/misc.c (grub_normal_print_device_info): tell the
05aaebfb 22296 last modification time of a volume
7dd4a573 22297 * kern/fs.c (grub_fs_probe): updated dummy function to use new syntax
05aaebfb 22298 * conf/common.rmk: added lib/datetime.c to ls.mod
7dd4a573 22299 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add normal/datetime.c
05aaebfb 22300 (normal_mod_SOURCES): likewise
22301 (datetime_mod_SOURCES): Removed lib/datetime.c
22302 * conf/i386-efi.rmk: likewise
7dd4a573 22303 * conf/i386-ieee1275.rmk: likewise
05aaebfb 22304 * conf/i386-pc.rmk: likewise
22305 * conf/powerpc-ieee1275.rmk: likewise
7dd4a573 22306 * conf/sparc64-ieee1275.rmk: likewise
22307 * conf/x86_64-efi.rmk: likewise
05aaebfb 22308
8a7e1a14 223092009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
22310
22311 Trim trailing spaces in FAT label and support mtools-like labels
7dd4a573 22312
22313 * fs/fat.c (grub_fat_iterate_dir): New function based
8a7e1a14 22314 on grub_fat_find_dir
22315 (grub_fat_find_dir): use grub_fat_iterate_dir
22316 (grub_fat_label): likewise
22317
04186a9c 223182009-04-04 Vladimir Serbinenko <phcoder@gmail.com>
22319
7dd4a573 22320 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): add list.h
04186a9c 22321 and command.h
22322 remove extraneous kernel_elf_HEADERS
22323
da4c0bb6 223242009-04-04 Bean <bean123ch@gnail.com>
22325
22326 * include/grub/util/misc.h: Add dummy function fsync for mingw.
22327
22328 * util/misc.c: Likewise.
22329
54ad9555 223302009-04-04 Yoshinori K. Okuji <okuji@enbug.org>
22331
22332 * loader/i386/efi/linux.c (fake_bios_data): Use grub_dprintf
22333 instead of grub_printf.
22334
7a6bf9f2 223352009-04-03 Robert Millan <rmh@aybabtu.com>
22336
22337 * loader/i386/linux.c (grub_linux_setup_video): Fill
22338 `params->{red,green,blue,reserved}_{mask_size,field_pos}' with
22339 values from `mode info' structure instead of hardcoded
22340 values.
22341
3fcc2083 223422009-04-01 Pavel Roskin <proski@gnu.org>
22343
22344 * Makefile.in: Remove all references to MODULE_LDFLAGS, it's
22345 unused now.
22346 * genmk.rb: Likewise.
22347 * configure.ac: Likewise.
22348
5ec9740b 223492009-04-01 Manoel Abranches <mrabran@linux.vnet.ibm.com>
22350
22351 * aclocal.m4: Move --build-id=none from MODULE_LDFLAGS to
22352 TARGET_LDFLAGS. This corrects a problem with grub-mkelfimage.
22353
5270cec8 223542009-04-01 David S. Miller <davem@davemloft.net>
22355
22356 * normal/sparc64/setjmp.S: Fix setjmp implementation.
7dd4a573 22357 * include/grub/sparc64/setjmp.h (grub_jmp_buf): Update.
5270cec8 22358 (grub_setjmp): Mark with 'returns_twice' attribute.
22359 * include/grub/i386/setjmp.h (grub_setjmp): Likewise
22360 * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise.
22361 * include/grub/x86_64/setjmp.h (grub_setjmp): Likewise.
22362
9c3dd854 223632009-04-01 Robert Millan <rmh@aybabtu.com>
22364
22365 Reapply fix from 2008-07-28 which was accidentally reverted; also
22366 perform the same fix to a similar check in same function.
22367
22368 * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
22369 with the same number are found, just use issue a warning with
22370 grub_dprintf(), as this error has been reported to be non-fatal.
22371
0d818b7e 223722009-03-31 Pavel Roskin <proski@gnu.org>
22373
22374 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Provide safe default
22375 for cross-compilation.
22376
95646d92 223772009-03-30 Robert Millan <rmh@aybabtu.com>
22378
22379 Fix i386-ieee1275 build.
22380
22381 * include/grub/i386/ieee1275/loader.h (grub_multiboot2_real_boot):
22382 Remove declaration.
22383
6a003ed1 223842009-03-30 Pavel Roskin <proski@gnu.org>
22385
22386 * fs/hfs.c (grub_hfs_strncasecmp): Integrate into ...
22387 (grub_hfs_cmp_catkeys): ... this. Don't assume strings to be
22388 zero-terminated, rely only on the strlen value. Fix comparison
22389 of strings differing in length.
22390
92f33540 223912009-03-30 Robert Millan <rmh@aybabtu.com>
22392
22393 * loader/i386/linux.c (grub_cmd_linux): Check for zImage before
22394 checking for abi version. Improve error messages on BIOS to notify
22395 user about `linux16' command.
22396
a8c48fd5 223972009-03-29 Vladimir Serbinenko <phcoder@gmail.com>
22398
f968172e 22399 Leak fixes
a8c48fd5 22400
f968172e 22401 * kern/disk.c (grub_disk_cache_store): Invalidate previous cache
22402 in case of collision
22403 * disk/scsi.c (grub_scsi_open): free scsi in case of error
a8c48fd5 22404
9c323f09 224052009-03-29 Robert Millan <rmh@aybabtu.com>
22406
22407 * loader/i386/linux.c (grub_cmd_linux): Parse "vga=" parameter and
22408 set `vid_mode' accordingly.
22409 (grub_linux_boot): Process `vid_mode' and set video mode.
22410
ae68f423 224112009-03-29 Robert Millan <rmh@aybabtu.com>
22412
22413 * util/grub.d/10_linux.in (linux_entry): New function.
22414 Factorize generation of Linux boot entries.
22415
5709cfc4 224162009-03-29 Yoshinori K. Okuji <okuji@enbug.org>
22417
22418 Make the format of Environment Block plain text. The boot loader
22419 part is not tested well yet.
7dd4a573 22420
5709cfc4 22421 * util/grub-editenv.c (DEFAULT_ENVBLK_SIZE): New macro.
22422 (buffer): Removed.
22423 (envblk): Likewise.
22424 (usage): Remove "info" and "clear". Add "unset". Update the
22425 description of "set", as this does not delete variables any
22426 longer.
22427 (create_envblk_file): Complete rewrite.
22428 (open_envblk_file): Likewise.
22429 (cmd_info): Removed.
22430 (cmd_list): Likewise.
22431 (cmd_set): Likewise.
22432 (cmd_clear): Likewise.
22433 (list_variables): New function.
22434 (write_envblk): Likewise.
22435 (set_variables): Likewise.
22436 (unset_variables): Likewise.
22437 (main): Complete rewrite.
22438
22439 * commands/loadenv.c (buffer): Removed.
22440 (envblk): Likewise.
22441 (open_envblk_file): New function.
22442 (read_envblk_file): Complete rewrite.
22443 (grub_cmd_load_env): Likewise.
22444 (grub_cmd_list_env): Likewise.
22445 (struct blocklist): New struct.
22446 (free_blocklists): New function.
22447 (check_blocklists): Likewise.
22448 (write_blocklists): Likewise.
22449 (grub_cmd_save_env): Complete rewrite.
22450
22451 * include/grub/lib/envblk.h (GRUB_ENVBLK_SIGNATURE): Replaced with
22452 a plain text signature.
22453 (GRUB_ENVBLK_MAXLEN): Removed.
22454 (struct grub_envblk): Complete rewrite.
22455 (grub_envblk_find): Removed.
22456 (grub_envblk_insert): Likewise.
22457 (grub_envblk_open): New prototype.
22458 (grub_envblk_set): Likewise.
22459 (grub_envblk_delete): Put const to VALUE.
22460 (grub_envblk_iterate): Put const to NAME and VALUE.
22461 (grub_envblk_close): New prototype.
22462 (grub_envblk_buffer): New inline function.
22463 (grub_envblk_size): Likewise.
22464
22465 * lib/envblk.c: Include grub/mm.h.
22466 (grub_env_find): Removed.
22467 (grub_envblk_open): New function.
22468 (grub_envblk_close): Likewise.
22469 (escaped_value_len): Likewise.
22470 (find_next_line): Likewise.
22471 (grub_envblk_insert): Removed.
22472 (grub_envblk_set): New function.
22473 (grub_envblk_delete): Complete rewrite.
22474 (grub_envblk_iterate): Likewise.
22475
a9368fd3 224762009-03-28 Robert Millan <rmh@aybabtu.com>
22477
22478 * conf/i386-pc.rmk (pkglib_MODULES): Add `linux16.mod'.
22479 (linux16_mod_SOURCES, linux16_mod_CFLAGS, linux16_mod_LDFLAGS): New
22480 variables. Use 16-bit loader.
22481 (linux_mod_SOURCES, linux_mod_CFLAGS, linux_mod_LDFLAGS): Use 32-bit
22482 loader.
22483 * kern/i386/loader.S (grub_linux_boot): Rename to ...
22484 (grub_linux16_boot): ... this. Update all users.
22485 * loader/i386/linux.c (grub_linux32_boot): Rename to ...
22486 (grub_linux_boot): ... this. Update all users.
22487
22488 * loader/i386/pc/linux.c (GRUB_MOD_INIT(linux)): Rename to ...
22489 (GRUB_MOD_INIT(linux16)): ... this. Rename `linux' and `initrd'
22490 commands to `linux16' and `initrd16'.
22491 (GRUB_MOD_FINI(linux)): Rename to ...
22492 (GRUB_MOD_FINI(linux16)): ... this.
22493
e4dd5a7e 224942009-03-24 Pavel Roskin <proski@gnu.org>
22495
22496 * genmk.rb: Define ASM_FILE for *.S files for *.lst generation,
22497 not just for compilation.
22498
c04d6e05 224992009-03-22 Vladimir Serbinenko <phcoder@gmail.com>
22500
22501 Move multiboot helper out of kernel
22502
22503 * conf/i386-pc.rmk (multiboot_mod_SOURCES): Add
22504 `loader/i386/multiboot_helper.S'.
22505 * conf/i386-coreboot.rmk: Likewise
22506 * conf/i386-ieee1275.rmk: Likewise
22507
22508 * kern/i386/loader.S: Move multiboot helpers from here...
22509 * loader/i386/multiboot_helper.S: ...moved here
22510 * include/grub/i386/loader.h: Move declarations of multiboot
22511 helpers from here...
22512 * include/grub/i386/multiboot.h: ...moved here
22513 * loader/i386/multiboot.c: Added include of grub/cpu/multiboot.h
22514
42a5b3fc 225152009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
22516
22517 * kern/env.c (grub_env_context_open): Added an argument to specify
22518 whether a new context inherits exported variables from current
22519 one. This is useful when making a sandbox to interpret a config
22520 file.
22521 All callers updated.
22522
22523 * include/grub/env.h (grub_env_context_open): Updated the prototype.
22524
b28bbc4e 225252009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
22526
22527 * kern/env.c (grub_env_context_close): Fix memory leaks.
22528
f04f02e4 225292009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
22530
22531 * normal/main.c (grub_normal_execute): Added an argument
22532 BATCH to specify if an interactive interface should be provided
22533 after reading a config file.
22534 All callers updated.
22535 (read_command_list): Prevent being executed twice.
22536 (read_fs_list): Likewise.
22537
42a5b3fc 22538 * include/grub/normal.h (grub_normal_execute): Updated the
22539 prototype.
f04f02e4 22540
41473ac2 225412009-03-22 Pavel Roskin <proski@gno.org>
22542
fbc00b0c 22543 * kern/powerpc/ieee1275/startup.S: Replace EXT_C(start) with
22544 _start.
22545 * kern/i386/pc/startup.S: Likewise.
22546 * kern/i386/efi/startup.S: Likewise.
22547 * kern/i386/ieee1275/startup.S: Likewise.
22548 * kern/i386/coreboot/startup.S: Likewise.
22549 * kern/x86_64/efi/startup.S: Likewise.
22550
41473ac2 22551 * aclocal.m4 (grub_CHECK_START_SYMBOL): Remove.
22552 * configure.ac: Don't call grub_CHECK_START_SYMBOL.
22553 * kern/i386/pc/startup.S: Use _start instead of START_SYMBOL.
22554
2274cc8f 225552009-03-21 Vladimir Serbinenko <phcoder@gmail.com>
22556
22557 Bugfixes in multiboot for bugs uncovered by solaris kernel.
22558
22559 * loader/i386/multiboot_elfxx.c (grub_multiboot_load_elf): Corrected
22560 limit detection.
22561 Use vaddr of correct segment for entry_point.
22562
b1b797cb 225632009-03-21 Bean <bean123ch@gmail.com>
22564
22565 * commands/blocklist.c: Add include file <grub/command.h>, remove
22566 <grub/normal.h> and <grub/arg.h>.
22567 (grub_cmd_blocklist): Use the new command interface.
22568 (GRUB_MOD_INIT): Likewise.
22569 (GRUB_MOD_FINI): Likewise.
22570 * commands/boot.c: Likewise.
22571 * commands/cat.c: Likewise.
22572 * commands/cmp.c: Likewise.
22573 * commands/configfile.c: Likewise.
22574 * commands/crc.c: Likewise.
22575 * commands/echo.c: Likewise.
22576 * commands/halt.c: Likewise.
22577 * commands/handler.c: Likewise.
22578 * commands/hdparm.c: Likewise.
22579 * commands/help.c: Likewise.
22580 * commands/hexdump.c: Likewise.
22581 * commands/loadenv.c: Likewise.
22582 * commands/ls.c: Likewise.
22583 * commands/lsmmap.c: Likewise.
22584 * commands/lspci.c: Likewise.
22585 * commands/loadenv.c: Likewise.
22586 * commands/read.c: Likewise.
22587 * commands/reboot.c: Likewise.
22588 * commands/search.c: Likewise.
22589 * commands/sleep.c: Likewise.
22590 * commands/test.c: Likewise.
22591 * commands/usbtest.c: Likewise.
22592 * commands/videotest.c: Likewise.
22593 * commands/i386/cpuid.c: Likewise.
22594 * commands/i386/pc/halt.c: Likewise.
22595 * commands/i386/pc/play.c: Likewise.
22596 * commands/i386/pc/pxecmd.c: Likewise.
22597 * commands/i386/pc/vbeinfo.c: Likewise.
22598 * commands/i386/pc/vbetest.c: Likewise.
22599 * commands/ieee1275/suspend.c: Likewise.
22600 * disk/loopback.c: Likewise.
22601 * font/font_cmd.c: Likewise.
22602 * hello/hello.c: Likewise.
22603 * loader/efi/appleloader.c: Likewise.
22604 * loader/efi/chainloader.c: Likewise.
22605 * loader/i386/bsd.c: Likewise.
22606 * loader/i386/efi/linux.c: Likewise.
22607 * loader/i386/ieee1275/linux.c: Likewise.
22608 * loader/i386/linux.c: Likewise.
22609 * loader/i386/pc/chainloader.c: Likewise.
22610 * loader/i386/pc/linux.c: Likewise.
22611 * loader/powerpc/ieee1275/linux.c: Likewise.
22612 * loader/multiboot_loader.c: Likewise.
22613 * term/gfxterm.c: Likewise.
22614 * term/i386/pc/serial.c: Likewise.
22615 * term/terminfo.c: Likewise.
22616
22617 * term/i386/pc/vesafb.c: Removed <grub/arg.h>.
22618 * term/i386/pc/vga.c: Likewise.
22619 * video/readers/jpeg.c: Likewise.
22620 * video/readers/png.c: Likewise.
22621 * video/readers/tga.c: Likewise.
22622
22623 * util/grub-fstest (cmd_loopback): Removed.
22624 (cmd_blocklist): Likewise.
22625 (cmd_ls): Likewise.
22626 (grub_register_command): Likewise.
22627 (grub_unregister_command): Likewise.
22628 (execute_command): Use grub_command_find to locate command and execute
22629 it.
22630
22631 * include/grub/efi/chainloader.h: Removed.
22632 * loader/efi/chainloader_normal.c: Likewise.
22633 * loader/i386/bsd_normal.c: Likewise.
22634 * loader/i386/pc/chainloader_normal.c: Likewise.
22635 * loader/i386/pc/multiboot_normal.c: Likewise.
22636 * loader/linux_normal.c: Likewise.
22637 * loader/multiboot_loader_normal.c: Likewise.
22638 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
22639
22640 * gencmdlist.sh: Scan new registration command grub_register_extcmd
22641 and grub_register_command_p1.
22642
22643 * conf/common.rmk (grub_fstest_SOURCES): Add kern/list.c,
22644 kern/command.c, lib/arg.c and commands/extcmd.c.
22645 (pkglib_MODULES): Remove boot.mod, and minicmd.mod and extcmd.mod.
22646 (minicmd_mod_SOURCES): New variable.
22647 (minicmd_mod_CFLAGS): Likewise.
22648 (minicmd_mod_LDFLAGS): Likewise.
22649 (extcmd_mod_SOURCES): Likewise.
22650 (extcmd_mod_CFLAGS): Likewise.
22651 (extcmd_mod_LDFLAGS): Likewise.
22652 (boot_mod_SOURCES): Removed.
22653 (boot_mod_CFLAGS): Likewise.
22654 (boot_mod_LDFLAGS): Likewise.
22655
22656 * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/command.c and
22657 kern/corecmd.c.
22658 (kernel_img_HEADERS): Add command.h.
22659 (grub_emu_SOURCES): Remove commands/boot.c and normal/arg.c, add
22660 commands/minicmd.c, kern/command.c, kern/corecmd.c, commands/extcmd.c
22661 and lib/arg.c.
22662 (pkglib_MODULES): Change _linux.mod, _chain.mod, _bsd.mod and
22663 _multiboot.mod as linux.mod, chain.mod, bsd.mod and multiboot.mod,
22664 remove the corresponding normal mode command.
22665 (normal_mod_SOURCES): Remove normal/arg.c.
22666 * conf/i386-coreboot.rmk: Likewise.
22667 * conf/i386-efi.rmk: Likewise.
22668 * conf/i386-ieee1275.rmk: Likewise.
22669 * conf/powerpc-ieee1275.rmk: Likewise.
22670 * conf/x86_64-efi.rmk: Likewise.
22671
22672 * include/grub/arg.h: Move from here ...
22673 * include/grub/lib/arg.h: ... to here.
22674
22675 * normal/arg.c: Move from here ...
22676 * lib/arg.c: ... to here.
22677
22678 * commands/extcmd.c: New file.
22679 * commands/minicmd.c: Likewise.
22680 * include/grub/command.h: Likewise.
22681 * include/grub/extcmd.h: Likewise.
22682 * kern/command.c: Likewise.
22683 * kern/corecmd.c: Likewise.
22684
22685 * kern/list.c (grub_list_iterate): Return int instead of void.
22686 (grub_list_insert): New function.
22687 (grub_prio_list_insert): Likewise.
22688
22689 * kern/rescue.c (grub_rescue_command): Removed.
22690 (grub_rescue_command_list): Likewise.
22691 (grub_rescue_register_command): Likewise.
22692 (grub_rescue_unregister_command): Likewise.
22693 (grub_rescue_cmd_boot): Move to minicmd.c
22694 (grub_rescue_cmd_help): Likewise.
22695 (grub_rescue_cmd_info): Likewise.
22696 (grub_rescue_cmd_boot): Likewise.
22697 (grub_rescue_cmd_testload): Likewise.
22698 (grub_rescue_cmd_dump): Likewise.
22699 (grub_rescue_cmd_rmmod): Likewise.
22700 (grub_rescue_cmd_lsmod): Likewise.
22701 (grub_rescue_cmd_exit): Likewise.
22702 (grub_rescue_print_devices): Moved to corecmd.c.
22703 (grub_rescue_print_files): Likewise.
22704 (grub_rescue_cmd_ls): Likewise.
22705 (grub_rescue_cmd_insmod): Likewise.
22706 (grub_rescue_cmd_set): Likewise.
22707 (grub_rescue_cmd_unset): Likewise.
7d074e3c 22708 (attempt_normal_mode): Use grub_command_find to get normal module.
b1b797cb 22709 (grub_enter_rescue_mode): Use grub_register_core_commands to register
7d074e3c 22710 commands, remove grub_rescue_register_command calls.
b1b797cb 22711
7d074e3c 22712 * normal/command.c (grub_register_command): Removed.
b1b797cb 22713 (grub_unregister_command): Likewise.
22714 (grub_command_find): Likewise.
22715 (grub_iterate_commands): Likewise.
22716 (rescue_command): Likewise.
22717 (export_command): Moved to corecmd.c.
22718 (set_command): Removed.
22719 (unset_command): Likewise.
22720 (insmod_command): Likewise.
22721 (rmmod_command): Likewise.
22722 (lsmod_command): Likewise.
22723 (grub_command_init): Likewise.
22724
22725 * normal/completion.c (iterate_command): Use cmd->prio to check for
22726 active command.
22727 (complete_arguments): Use grub_extcmd_t structure to find options.
22728 (grub_normal_do_completion): Change function grub_iterate_commands to
22729 grub_command_iterate.
22730
22731 * normal/execute.c (grub_script_execute_cmd): No need to parse
22732 argument here.
22733
22734 * normal/main.c (grub_dyncmd_dispatcher): New function.
22735 (read_command_list): Register unload commands as dyncmd.
22736 (grub_cmd_normal): Use new command interface, register rescue,
22737 unregister normal at entry, register normal, unregister rescue at exit.
22738
22739 * include/grub/list.h (grub_list_test_t): New type.
22740 (grub_list_iterate): Return int instead of void.
22741 (grub_list_insert): New function.
22742 (GRUB_AS_NAMED_LIST_P): New macro.
22743 (GRUB_AS_PRIO_LIST): Likewise.
22744 (GRUB_AS_PRIO_LIST_P): Likewise.
22745 (GRUB_PRIO_LIST_PRIO_MASK): New constant.
22746 (GRUB_PRIO_LIST_FLAG_ACTIVE): Likewise.
22747 (grub_prio_list): New structure.
22748 (grub_prio_list_insert): New function.
22749 (grub_prio_list_remove): New inline function.
22750
22751 * include/grub/normal.h: Remove <grub/arg.h>, add <grub/command.h>.
22752 (GRUB_COMMAND_FLAG_CMDLINE): Moved to command.h.
22753 (GRUB_COMMAND_FLAG_MENU): Likewise.
22754 (GRUB_COMMAND_FLAG_BOTH): Likewise.
22755 (GRUB_COMMAND_FLAG_TITLE): Likewise.
22756 (GRUB_COMMAND_FLAG_NO_ECHO): Likewise.
22757 (GRUB_COMMAND_FLAG_NO_ARG_PARSE): Removed.
22758 (GRUB_COMMAND_FLAG_NOT_LOADED): Likewise.
22759 (grub_command): Likewise.
22760 (grub_register_command): Likewise.
22761 (grub_command_find): Likewise.
22762 (grub_iterate_commands): Likewise.
22763 (grub_command_init): Likewise.
22764 (grub_arg_parse): Likewise.
22765 (grub_arg_show_help): Likewise.
22766
22767 * include/grub/rescue.h (grub_rescue_register_command): Removed.
22768 (grub_rescue_unregister_command): Likewise.
22769
22770 * include/grub/i386/bsd.h: Remove grub_rescue_cmd_freebsd,
22771 grub_rescue_cmd_openbsd, grub_rescue_cmd_netbsd,
22772 grub_rescue_cmd_freebsd_loadenv and grub_rescue_cmd_freebsd_module.
22773
22774 * include/grub/i386/efi/loader.h: Remove grub_rescue_cmd_linux and
22775 grub_rescue_cmd_initrd.
22776 * include/grub/i386/loader.h: Likewise.
22777 * include/grub/x86_64/loader.h: Likewise.
22778
22779 * include/grub/i386/pc/chainloader.h: Remove grub_chainloader_cmd.
22780
1f4147aa 227812009-03-21 Bean <bean123ch@gmail.com>
22782
22783 * util/hostdisk.c (read_device_map): Use grub_util_get_disk_size
22784 instead of stat in mingw environment.
22785
22786 * util/misc.c (grub_millisleep): Use Sleep in mingw environment.
22787
22788 * aclocal.m4 (grub_CHECK_LINK_DIR): New function.
22789
22790 * configure.ac: Use grub_CHECK_LINK_DIR to determine whether to use
22791 AC_CONFIG_LINKS.
22792
2156d5ba 227932009-03-21 Bean <bean123ch@gmail.com>
22794
22795 * fs/ext2.c (grub_ext2_mount): Change errno to GRUB_ERR_BAD_FS for
22796 out of range error.
22797
177b82ca 227982009-03-18 Michel Dänzer <michel@daenzer.net>
22799
22800 * fs/ext2.c (grub_ext2_read_block): Take endianness into account when
22801 checking inode flags for EXT4_EXTENTS_FLAG.
22802
14aad807 228032009-03-18 Robert Millan <rmh@aybabtu.com>
22804
22805 * loader/i386/linux.c: Include `<grub/video.h>' and
22806 `<grub/i386/pc/vbe.h>'..
22807 (grub_linux_setup_video): New function. Loosely based on the EFI one.
22808 (grub_linux32_boot): Attempt to configure video settings with
22809 grub_linux_setup_video().
22810 (grub_rescue_cmd_linux): Set noreturn=0 in grub_loader_set, in order
22811 to avoid grub_console_fini() which would step out of graphical mode
22812 unconditionally.
22813
8cf83a27 228142009-03-14 Robert Millan <rmh@aybabtu.com>
22815
22816 Fix build on powerpc.
22817 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Add `handler.h'.
22818
40164e75 228192009-03-12 Vladimir Serbinenko <phcoder@gmail.com>
22820
22821 * term/gfxterm.c (GRUB_MOD_FINI(term_gfxterm)): Correct name of
22822 background image command.
22823
c58bc32a 228242009-03-12 Colin D Bennett <colin@gibibit.com>
22825
22826 * term/gfxterm.c (draw_cursor): Ensure character is redrawn.
22827 (grub_gfxterm_putchar): Extract pairs of identical calls to
22828 draw_cursor out of conditional blocks.
22829
5415144a 228302009-03-11 Pavel Roskin <proski@gnu.org>
22831
22832 * fs/hfs.c (grub_hfs_strncasecmp): New function.
22833 (grub_hfs_cmp_catkeys): Use HFS specific string comparison.
22834
6394042e 228352009-03-11 Robert Millan <rmh@aybabtu.com>
22836
22837 * loader/i386/multiboot_elfxx.c
22838 (CONCAT(grub_multiboot_load_elf, XX)): Do not reject ET_DYN files.
22839
b7b50e5f 228402009-03-11 Felix Zielcke <fzielcke@z-51.de>
22841
22842 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add `kern/list.c' and
22843 `kern/handler.c'.
22844
1ca7fc96 228452009-03-11 Robert Millan <rmh@aybabtu.com>
22846
22847 * loader/i386/multiboot.c (code_size): New variable.
22848 (grub_multiboot): Define offsets by adding to `code_size' rather
7d074e3c 22849 than subtracting from `grub_multiboot_payload_size'. Provide
1ca7fc96 22850 4-byte alignment to MBI and others by increasing
7d074e3c 22851 `boot_loader_name_length' appropriately.
1ca7fc96 22852
22853 * loader/i386/multiboot_elfxx.c
22854 (CONCAT(grub_multiboot_load_elf, XX)): Initialize `code_size'.
22855
a83ea1d2 228562009-03-09 Felix Zielcke <fzielcke@z-51.de>
22857
22858 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove duplicated
22859 `fs/ext2.c'.
22860
aa9f3bff 228612009-03-08 Robert Millan <rmh@aybabtu.com>
22862
22863 Make loader/i386/linux.c usable on i386-pc again.
22864
22865 * kern/i386/pc/init.c (grub_machine_init): Disable addition of low
22866 memory to heap.
22867 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (allocate_pages): Remove
22868 `#error' stanza.
22869
d8b3b60e 228702009-03-07 Bean <bean123ch@gmail.com>
22871
22872 * loader/i386/efi/linux.c (grub_rescue_cmd_initrd): Fix a bug in initrd
22873 allocation.
22874
b362c9e9 228752009-03-06 Robert Millan <rmh@aybabtu.com>
22876
22877 Fix display issue on terminals with screen size other than 80x25
22878 (e.g. gfxterm with resolution higher than 640x480).
22879
22880 * normal/main.c (grub_normal_init_page): Display title text in a
7d074e3c 22881 position relative to the center of the terminal instead of relying
b362c9e9 22882 on a hardcoded offset.
22883
9304eef1 228842009-03-04 Robert Millan <rmh@aybabtu.com>
22885
22886 Filter /etc/grub.d/10_* so that only add-ons for native kernels are
22887 installed.
22888
22889 * Makefile.in (host_kernel): New variable.
22890 * conf/common.rmk (grub-mkconfig_SCRIPTS): Conditionalize all 10_*.in
22891 scripts instead of just the windows one.
22892 * configure.ac: Initialize and AC_SUBST `host_kernel'.
22893
eabc95fb 228942009-03-04 Felix Zielcke <fzielcke@z-51.de>
2ba60b62 22895
22896 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `kern/list.c' and
22897 `kern/handler.c'.
22898 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
22899 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
22900 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
22901 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
22902 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
22903 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
22904
ceb1223c 229052009-03-04 Felix Zielcke <fzielcke@z-51.de>
22906
22907 * partmap/pc.c (pc_partition_map_iterate): Skip over invalid BSD partitions
22908 or if there's no space for the disk label and print the partition number on a
22909 invalid magic.
22910
4910684a 229112009-03-04 Felix Zielcke <fzielcke@z-51.de>
22912
22913 * util/misc.c: Include <time.h>.
22914 (grub_millisleep): New function.
22915
7e9ca17a 229162009-03-04 Bean <bean123ch@gmail.com>
22917
22918 * configure.ac: Only test -mcmodel=large option in x86_64-efi, also add
22919 another option -mno-red-zone.
22920
22921 * commands/handler.c: Change module description.
22922
22923 * kern/handler.c: Add missing space at the end of description line.
22924
22925 * kern/list.c: Likewise.
22926
f501677c 229272009-03-03 Robert Millan <rmh@aybabtu.com>
22928
22929 Move more components to the relocation area, and fix mbi pointer
22930 handling to use the destination rather than the origin (thanks to
22931 Vladimir Serbinenko for spotting).
22932
22933 * loader/i386/multiboot.c (mbi_dest): New variable.
22934 (grub_multiboot_boot): Use `mbi_dest' instead of `mbi'.
22935 (grub_multiboot): Put cmdline, boot_loader_name and mbi in the
22936 relocation area.
22937
9902d047 229382009-03-01 Bean <bean123ch@gmail.com>
22939
50fb7002 22940 * include/grub/efi/api.h (GRUB_EFI_MPS_TABLE_GUID): New constant.
9902d047 22941 (GRUB_EFI_ACPI_TABLE_GUID): Likewise.
22942 (GRUB_EFI_ACPI_20_TABLE_GUID): Likewise.
22943 (GRUB_EFI_SMBIOS_TABLE_GUID): Likewise.
22944
22945 * loader/i386/efi/linux.c (acpi_guid): New variable.
22946 (acpi_guid): Likewise.
22947 (EBDA_SEG_ADDR): New constant.
22948 (LOW_MEM_ADDR): Likewise.
22949 (FAKE_EBDA_SEG): Likewise.
22950 (fake_bios_data): New function.
22951 (grub_linux_boot): Call fake_bios_data.
22952
71b9f361 229532009-03-01 Bean <bean123ch@gmail.com>
22954
22955 * commands/terminal.c: Removed.
22956
22957 * commands/handler.c: New file.
22958
22959 * include/grub/list.h: Likewise.
22960
22961 * include/grub/handler.h: Likewise.
22962
22963 * kern/list.c: Likewise.
22964
22965 * kern/handler.c: Likewise.
22966
22967 * kern/term.h: Include header file <grub/handler.h>.
22968 (grub_term_input): Move next field to the beginning.
22969 (grub_term_output): Likewise.
22970 (grub_term_input_class): New variable.
22971 (grub_term_output_class): Likewise.
22972 (grub_term_register_input): Changed to inline function.
22973 (grub_term_register_output): Likewise.
22974 (grub_term_unregister_input): Likewise.
22975 (grub_term_unregister_output): Likewise.
22976 (grub_term_set_current_input): Likewise.
22977 (grub_term_set_current_output): Likewise.
22978 (grub_term_get_current_input): Likewise.
22979 (grub_term_get_current_output): Likewise.
22980 (grub_term_iterate_input): Removed.
22981 (grub_term_iterate_output): Likewise.
22982
22983 * kern/term.c (grub_term_list_input): Removed.
22984 (grub_term_list_output): Likewise.
22985 (grub_term_input_class): New variable.
22986 (grub_term_output_class): Likewise.
50fb7002 22987 (grub_cur_term_input): Change variable as macro.
71b9f361 22988 (grub_cur_term_output): Likewise.
22989 (grub_term_register_input): Removed.
22990 (grub_term_register_output): Likewise.
22991 (grub_term_unregister_input): Likewise.
22992 (grub_term_unregister_output): Likewise.
22993 (grub_term_set_current_input): Likewise.
22994 (grub_term_set_current_output): Likewise.
22995 (grub_term_iterate_input): Likewise.
22996 (grub_term_iterate_output): Likewise.
22997 (grub_term_get_current_input): Likewise.
22998 (grub_term_get_current_output): Likewise.
22999
23000 * util/grub-editenv.c: Include header file <grub/handler.h>.
23001 (grub_term_get_current_input): Removed.
23002 (grub_term_get_current_output): Likewise.
23003 (grub_term_input_class): New variable.
50fb7002 23004 (grub_term_output_class): Likewise.
71b9f361 23005
23006 * util/grub-fstest.c (grub_term_get_current_input): Removed.
23007 (grub_term_get_current_output): Likewise.
23008 (grub_term_input_class): New variable.
50fb7002 23009 (grub_term_output_class): Likewise.
71b9f361 23010
23011 * util/grub-probe.c (grub_term_get_current_input): Removed.
23012 (grub_term_get_current_output): Likewise.
23013 (grub_term_input_class): New variable.
50fb7002 23014 (grub_term_output_class): Likewise.
71b9f361 23015
23016 * util/i386/pc/grub-setup.c (grub_term_get_current_input): Removed.
23017 (grub_term_get_current_output): Likewise.
23018 (grub_term_input_class): New variable.
50fb7002 23019 (grub_term_output_class): Likewise.
71b9f361 23020
23021 * conf/common.rmk (pkglib_MODULES): Replace terminal with handler.
23022 (terminal_mod_SOURCES): Likewise.
23023 (terminal_mod_CFLAGS): Likewise.
23024 (terminal_mod_LDFLAGS): Likewise.
23025
23026 * conf/i386-pc.rmk (grub_emu_SOURCES): Replace terminal.c with
23027 handler.c.
23028 (kernel_img_SOURCES): Add list.c and handler.c.
23029 (kernel_img_HEADERS): Add list.h and handler.h.
23030
23031 * conf/i386-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
23032 handler.c.
23033 (kernel_mod_SOURCES): Add list.c and handler.c.
23034 (kernel_mod_HEADERS): Add list.h and handler.h.
23035
23036 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Replace terminal.c with
23037 handler.c.
23038 (kernel_elf_SOURCES): Add list.c and handler.c.
23039 (kernel_elf_HEADERS): Add list.h and handler.h.
23040
23041 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
23042 handler.c.
23043 (kernel_elf_SOURCES): Add list.c and handler.c.
23044 (kernel_elf_HEADERS): Add list.h and handler.h.
23045
23046 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
23047 handler.c.
23048 (kernel_mod_SOURCES): Add list.c and handler.c.
23049 (kernel_mod_HEADERS): Add list.h and handler.h.
23050
23051 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
23052 handler.c.
23053 (kernel_elf_SOURCES): Add list.c and handler.c.
23054 (kernel_elf_HEADERS): Add list.h and handler.h.
23055
8a31787f 230562009-02-27 Robert Millan <rmh@aybabtu.com>
23057
23058 Factorize elf32 / elf64 code in Multiboot loader. This will
23059 prevent it from getting out of sync again.
23060
23061 * loader/i386/multiboot.c (grub_multiboot_is_elf32,
23062 grub_multiboot_load_elf32, grub_multiboot_is_elf64,
23063 grub_multiboot_load_elf64): Move from here ...
23064 * loader/i386/multiboot_elfxx.c (grub_multiboot_is_elf,
23065 grub_multiboot_load_elf): ... to here (new file).
23066
51cd3dfc 230672009-02-27 Robert Millan <rmh@aybabtu.com>
23068
23069 * util/grub.d/10_linux.in: Rename "single-user mode" to
23070 "recovery mode".
23071
6e8c9c3a 230722009-02-27 Vladimir Serbinenko <phcoder@gmail.com>
23073
23074 Don't leak in SCSI code.
23075 * disk/scsi.c (grub_scsi_close): free `scsi'.
23076
4b6bf4f9 230772009-02-27 Robert Millan <rmh@aybabtu.com>
23078
23079 * loader/i386/pc/multiboot.c: Move from here ...
23080 * loader/i386/multiboot.c: ... to here. Update all users.
23081
b9413424 230822009-02-27 Robert Millan <rmh@aybabtu.com>
23083
23084 Patch from Alexandre Bique <bique.alexandre@gmail.com>
23085 * util/i386/pc/grub-setup.c (setup): Fix directory path.
23086
50fb7002 230872009-02-27 Krzysztof Smiechowicz <deadwood@wp.pl>
34519c3f 23088
23089 * fs/sfs.c (grub_sfs_read_extent): Correction to traversing extent
23090 b-tree.
23091
8cc50345 230922009-02-27 Robert Millan <rmh@aybabtu.com>
23093
23094 * kern/misc.c (grub_strtoull): Fix bug (it mistakenly parsed the
23095 `0x' qualifier as 0 when base is specified as parameter).
23096
6e09b8b7 230972009-02-24 Bean <bean123ch@gmail.com>
23098
23099 * configure.ac: Check for -mcmodel=large in x86_64 target.
23100
23101 * include/grub/efi/api.h (efi_call_10): New macro.
23102 (efi_wrap_10): New function.
23103
23104 * include/grub/efi/pe32.h (GRUB_PE32_REL_BASE_HIGH): New macro.
23105 (GRUB_PE32_REL_BASED_HIGH): Likewise.
23106 (GRUB_PE32_REL_BASED_LOW): Likewise.
23107 (GRUB_PE32_REL_BASED_HIGHLOW): Likewise.
23108 (GRUB_PE32_REL_BASED_HIGHADJ): Likewise.
23109 (GRUB_PE32_REL_BASED_MIPS_JMPADDR): Likewise.
23110 (GRUB_PE32_REL_BASED_SECTION): Likewise.
23111 (GRUB_PE32_REL_BASED_REL): Likewise.
23112 (GRUB_PE32_REL_BASED_IA64_IMM64): Likewise.
23113 (GRUB_PE32_REL_BASED_DIR64): Likewise.
23114 (GRUB_PE32_REL_BASED_HIGH3ADJ): Likewise.
23115
23116 * kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Fixed relocation
23117 issue.
23118
23119 * kern/x86_64/efi/callwrap.S (efi_wrap_6): Bug fix.
23120 (efi_wrap_10): New function.
23121
23122 * kern/x86_64/efi/startup.S (codestart): Use relative addressing.
23123
23124 * loader/efi/appleloader.c (devpath_5): Add support for late 2008
23125 MB/MBP model (NV chipset).
23126 (devdata_devs): Add devpath_5 to the list.
23127
23128 * load/i386/efi/linux.c (video_base): Remove variable.
23129 (RGB_MASK): New macro.
23130 (RGB_MAGIC): Likewise.
23131 (LINE_MIN): Likewise.
23132 (LINE_MAX): Likewise.
23133 (FBTEST_STEP): Likewise.
23134 (FBTEST_COUNT): Likewise.
23135 (fb_list): New variable.
23136 (grub_find_video_card): Remove function.
23137 (find_framebuf): New function.
23138 (grub_linux_setup_video): Use find_framebuf to get frame buffer and
23139 line length.
23140
23141 * util/i386/efi/grub-mkimage.c (grub_reloc_section): Fix relocation
23142 problem for x86_64.
23143
74b21bee 231442009-02-22 Vesa Jääskeläinen <chaac@nic.fi>
23145
23146 Patch #25624 by Kevin Lacquement <kevin@lacqui>.
23147
23148 * util/grub-mkconfig.in: Use ${grub_mkdevicemap} instead of hard
23149 coding tool name.
23150
a455f472 231512009-02-22 Robert Millan <rmh@aybabtu.com>
23152
23153 * include/multiboot.h (MULTIBOOT_INFO_ALIGN): New macro.
23154 * loader/i386/pc/multiboot.c (grub_multiboot): Include the MBI
23155 in our relocation, instead of using it directly from heap. Also
23156 use `MULTIBOOT_INFO_ALIGN' to ensure it is aligned.
23157
6374daf3 231582009-02-21 Robert Millan <rmh@aybabtu.com>
23159
23160 Implement USB keyboard support (based on patch by Marco Gerards)
23161
23162 * conf/i386-pc.rmk (pkglib_MODULES): Add `usb_keyboard.mod'.
23163 (usb_keyboard_mod_SOURCES, usb_keyboard_mod_CFLAGS)
23164 (usb_keyboard_mod_LDFLAGS): New variables.
23165
23166 * term/usb_keyboard.c: New file.
23167
8fa4ea70 231682009-02-14 Vladimir Serbinenko <phcoder@gmail.com>
23169
23170 Corrected wrong declaration
23171
23172 * kern/disk.c: corrected declaration of grub_disk_ata_pass_through.
23173
353976ac 231742009-02-14 Christian Franke <franke@computer.org>
23175
23176 * commands/lspci.c (grub_pci_classes): Add `SATA Controller'.
23177 (grub_lspci_iter): Print class code and programming interface byte.
23178
6aa1169b 231792009-02-14 Christian Franke <franke@computer.org>
23180
23181 * gendistlist.sh: Ignore `.svn' directories.
23182
265372ca 231832009-02-14 Felix Zielcke <fzielcke@z-51.de>
23184
23185 * fs/fat.c: Add 2009 to Copyright line.
23186
9ff516f3 231872009-02-14 Christian Franke <franke@computer.org>
23188
23189 * commands/hdparm.c: New file. Provides `hdparm' command
23190 which sends ATA commands via grub_disk_ata_pass_through ().
23191
23192 * conf/i386-pc.rmk: Add ata_pthru.mod and hdparm.mod.
23193
23194 * disk/ata.c: Include <grub/ata.h>. Move <grub/misc.h>
23195 and <grub/cpu/io.h> to include/grub/ata.h.
23196 (enum grub_ata_addressing_t): Move to include/grub/ata.h.
23197 (GRUB_CDROM_SECTOR_SIZE): Remove.
23198 (GRUB_ATA_*): Move to include/grub/ata.h.
23199 (GRUB_ATAPI_*): Likewise.
23200 (enum grub_ata_commands): Likewise.
23201 (enum grub_ata_timeout_milliseconds): Likewise.
23202 (struct grub_ata_device): Likewise.
23203 (grub_ata_regset): Likewise.
23204 (grub_ata_regget): Likewise.
23205 (grub_ata_regset2): Likewise.
23206 (grub_ata_regget2): Likewise.
23207 (grub_ata_check_ready): Likewise.
23208 (grub_ata_wait_not_busy): Remove static, exported in
23209 include/grub/ata.h.
23210 (grub_ata_wait_drq): Likewise.
23211 (grub_ata_pio_read): Likewise.
23212
23213 * disk/ata_pthru.c: New file. Provides grub_ata_pass_through ()
23214 function for hdparm.mod.
23215
23216 * include/grub/ata.h: New file, contains declarations from
23217 disk/ata.c.
23218 (enum grub_ata_commands): Add new commands for commands/hdparm.c.
23219
23220 * include/grub/disk.h (grub_disk_ata_pass_through_parms): New struct.
23221 (grub_disk_ata_pass_through): New exported variable.
23222
23223 * kern/disk.c (grub_disk_ata_pass_through): New variable.
23224
772e23da 232252009-02-13 Colin D Bennett <colin@gibibit.com>
23226
23227 Support multiple fallback entries, and provide an API to support
23228 executing default+fallback menu entries. Renamed the `terminal' menu
23229 viewer to `text'.
23230
23231 * include/grub/normal.h (grub_normal_text_menu_viewer): New global
23232 variable declaration.
23233 (grub_menu_execute_callback): New structure declaration.
23234 (grub_menu_execute_callback_t): New typedef.
23235 (grub_menu_execute_with_fallback): New function declaration.
23236 (grub_menu_get_entry): Likewise.
23237 (grub_menu_get_timeout): Likewise.
23238 (grub_menu_set_timeout): Likewise.
23239
23240 * normal/main.c (GRUB_MOD_INIT(normal)): Refer to new variable name.
23241
23242 * normal/menu.c (grub_wait_after_message): Moved to
23243 `normal/menu_text.c'.
23244 (draw_border): Likewise.
23245 (print_message): Likewise.
23246 (print_entry): Likewise.
23247 (print_entries): Likewise.
23248 (grub_menu_init_page): Likewise.
23249 (get_entry_number): Likewise.
23250 (print_timeout): Likewise.
23251 (run_menu): Likewise.
23252 (grub_menu_execute_entry): Likewise.
23253 (show_text_menu): Likewise.
23254 (get_and_remove_first_entry_number): New function.
23255 (grub_menu_execute_with_fallback): Likewise.
23256 (get_entry): Renamed to ...
23257 (grub_menu_get_entry): .. this and made it global.
23258 (get_timeout): Renamed to ...
23259 (grub_menu_get_timeout): ... this and made it global.
23260 (set_timeout): Renamed to ...
23261 (grub_menu_set_timeout): ... this and made it global.
23262 (grub_normal_terminal_menu_viewer): Renamed to ...
23263 (grub_normal_text_menu_viewer): ... this.
23264
23265 * normal/menu_text.c: New file. Extracted text-menu-specific code
23266 from normal/menu.c.
23267
23268 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add `normal/menu_text.c'.
23269 (normal_mod_SOURCES): Likewise.
23270
23271 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
23272 (normal_mod_SOURCES): Likewise.
23273
23274 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
23275 (normal_mod_SOURCES): Likewise.
23276
23277 * conf/i386-pc.rmk, (grub_emu_SOURCES): Likewise.
23278 (normal_mod_SOURCES): Likewise.
23279
23280 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
23281 (normal_mod_SOURCES): Likewise.
23282
23283 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
23284 (normal_mod_SOURCES): Likewise.
23285
23286 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
23287 (normal_mod_SOURCES): Likewise.
23288
16ac430e 232892009-02-11 Robert Millan <rmh@aybabtu.com>
23290
23291 * util/grub.d/00_header.in: Update old reference to `font' command.
23292
06ff20fc 232932009-02-10 Felix Zielcke <fzielcke@z-51.de>
23294
23295 * fs/fat.c (grub_fat_mount): Fix wrong comparison.
23296
23297 Based on patch from Javier Martín.
23298
96da9407 232992009-02-09 Felix Zielcke <fzielcke@z-51.de>
23300
23301 * conf/common.rmk (grub_probe_SOURCES): Move fs/ext2.c before fs/fat.c
50fb7002 23302 to avoid false positives with FAT.
96da9407 23303 (grub_fstest_SOURCES): Likewise.
23304 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
23305 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
23306 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
23307 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
23308 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
23309 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
23310
6dca6fe4 233112009-02-09 Felix Zielcke <fzielcke@z-51.de>
23312
06ff20fc 23313 * fs/fat.c (grub_fat_mount): Try to avoid false positives by checking
6dca6fe4 23314 bpb.version_specific.fat12_or_fat16.fstype and
23315 bpb.version_specific.fat32.fstype.
23316
2550c62f 233172009-02-08 Robert Millan <rmh@aybabtu.com>
23318
be110b30 23319 * fs/tar.c: Replace "fs/cpio.c" with "cpio.c".
2550c62f 23320
56978920 233212009-02-08 Robert Millan <rmh@aybabtu.com>
23322
23323 * Makefile.in (host_os, host_cpu): New variables.
23324 (target_os): Remove. Update all users.
23325
d64399b5 233262009-02-08 Marco Gerards <marco@gnu.org>
23327
23328 * Makefile.in (enable_grub_emu_usb): New variable.
23329 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/scsi.c'.
23330 (grub_emu_SOURCES) [grub_emu_SOURCES]: Add `disk/usbms.c',
23331 `util/usb.c', `bus/usb/usb.c' and `commands/usbtest.c'.
23332 (grub_emu_LDFLAGS): Add `$(LIBUSB)'.
23333 (pkglib_MODULES): Add `usb.mod', `uhci.mod', `ohci.mod',
23334 `usbtest.mod' and `usbms.mod'.
23335 (usb_mod_SOURCES, usb_mod_CFLAGS, usb_mod_LDFLAGS)
23336 (usbtest_mod_SOURCES, usbtest_mod_CFLAGS, usbtest_mod_LDFLAGS)
23337 (uhci_mod_SOURCES, uhci_mod_CFLAGS, uhci_mod_LDFLAGS,
23338 (ohci_mod_SOURCES, ohci_mod_CFLAGS, ohci_mod_LDFLAGS)
23339 (usbms_mod_SOURCES, usbms_mod_CFLAGS, usbms_mod_LDFLAGS): New
23340 variables.
23341
23342 * disk/usbms.c: New file.
23343
23344 * include/grub/usb.h: Likewise.
23345
23346 * include/grub/usbtrans.h: Likewise.
23347
23348 * include/grub/usbdesc.h: Likewise.
23349
23350 * bus/usb/usbtrans.c: Likewise.
23351
23352 * bus/usb/ohci.c: Likewise.
23353
23354 * bus/usb/uhci.c: Likewise.
23355
23356 * bus/usb/usbhub.c: Likewise.
23357
23358 * bus/usb/usb.c: Likewise.
23359
23360 * commands/usbtest.c: Likewise.
23361
23362 * util/usb.c: Likewise.
50fb7002 23363
d64399b5 23364 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_IO'.
23365
23366 * configure.ac: Test for libusb presence.
50fb7002 23367
d64399b5 23368 * util/grub-emu.c (main) [HAVE_LIBUSB_H]: Call `grub_libusb_init'.
23369
2b40d6bb 233702009-02-08 Vesa Jääskeläinen <chaac@nic.fi>
23371
23372 * kern/mm.c: Add more comments.
23373
73a4ce81 233742009-02-08 Robert Millan <rmh@aybabtu.com>
23375
23376 Patch from Javier Martín.
23377 * fs/ext2.c (EXT2_DRIVER_SUPPORTED_INCOMPAT): Add
23378 `EXT4_FEATURE_INCOMPAT_FLEX_BG'.
23379
f821ce59 233802009-02-08 Robert Millan <rmh@aybabtu.com>
23381
23382 * fs/cpio.c: Split tar functionality to ...
23383 * fs/tar.c: ... here (new file). Update all users.
23384
aebfc4b0 233852009-02-07 Robert Millan <rmh@aybabtu.com>
23386
23387 * fs/ext2.c (grub_ext2_mount): Avoid mounting filesystems with
23388 backward-incompatible features.
23389
23390 Based on patch from Javier Martín, with some adjustments.
23391
50fb7002 233922009-02-07 Michael Scherer <misc@mandriva.org>
cea15bca 23393
23394 * fs/hfs.c (grub_hfsplus_iterate_dir): Treat hfs+ as case insensitive.
23395
0bb5115e 233962009-02-07 Robert Millan <rmh@aybabtu.com>
23397
23398 * conf/common.rmk (grub_probe_SOURCES, grub_fstest_SOURCES): Move
23399 position of `disk/lvm.c' to ensure grub_init_all() always picks it
23400 after the RAID stuff.
23401
38a0f8e7 234022009-02-05 Vesa Jääskeläinen <chaac@nic.fi>
23403
50fb7002 23404 Fixes problem when running vbetest command as reported by
38a0f8e7 23405 Vladimir Serbinenko <phcoder@gmail.com>.
23406
23407 * (grub_vbe_set_video_mode): Fixed problem with text modes.
23408
3143cc1c 234092009-02-04 Felix Zielcke <fzielcke@z-51.de>
23410
23411 util/getroot.c (grub_util_get_grub_dev): Add support for /dev/mdNpN and
23412 /dev/md/NpN style mdraid devices.
23413
9cba6fce 234142009-02-03 Felix Zielcke <fzielcke@z-51.de>
23415
23416 * util/unifont2pff.rb: Remove.
23417
e507a2c1 234182009-02-03 Felix Zielcke <fzielcke@z-51.de>
23419
23420 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add a missing trailing
23421 `#'.
23422
d2c2b4cd 234232009-02-03 Felix Zielcke <fzielcke@z-51.de>
23424
23425 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/menu_viewer.c'.
23426 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
23427 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
23428 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
23429 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
23430 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
23431 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
23432
b4315fb0 234332009-02-02 Christian Franke <franke@computer.org>
23434
23435 * lib/hexdump.c (hexdump): Print at most 3 lines if data is identical.
23436
de3aa260 234372009-02-01 Felix Zielcke <fzielcke@z-51.de>
23438
7c3ff286 23439 * INSTALL: Note that we now require at least autoconf 2.59 and
23440 that LZO is optional.
de3aa260 23441
825a182b 234422009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
23443
23444 Base on patch on bug #24154 created by Tomas Tintera
23445 <trosos@seznam.cz>.
23446
23447 * video/i386/pc/vbe.c (grub_video_vbe_scroll): Fix downward scrolling.
23448
a69ef770 234492009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
23450
7c3ff286 23451 Based on patch on bug #25318 created by Bernhard Rosenkraenzer
a69ef770 23452 <bero@arklinux.org>.
23453
23454 * normal/parser.y (script_init): Add missing semicolon.
23455
6fa42fa6 234562009-01-31 Colin D Bennett <colin@gibibit.com>
23457
7c3ff286 23458 * normal/main.c: Add include to grub/menu_viewer.h.
6fa42fa6 23459 (free_menu_entry_classes): Added.
23460 (grub_normal_menu_addentry): Added class property handling.
23461 (grub_normal_execute): Changed to use new menu viewer for menu viewing.
23462 (GRUB_MOD_INIT(normal)): Added register for text based menu viewer.
23463
23464 * normal/menu_viewer.c: New file.
23465
23466 * normal/menu.c (run_menu_entry): Renamed to ...
23467 (grub_menu_execute_entry): ... this and made it as global.
23468 (grub_menu_run): Renamed to ...
23469 (show_text_menu): ... this and made it local.
23470 (show_text_menu): Adapt to new function names.
23471 (grub_normal_terminal_menu_viewer): New global variable.
23472
23473 * include/grub/menu.h: New file.
23474
23475 * include/grub/menu_viewer.h: New file.
23476
23477 * include/grub/normal.h: Added include to grub/menu.h.
23478 (grub_menu_entry): Moved to include/grub/menu.h.
23479 (grub_menu_entry_t): Likewise.
23480 (grub_menu): Likewise.
23481 (grub_menu_t): Likewise.
23482 (grub_normal_terminal_menu_viewer): Added.
23483 (grub_menu_execute_entry): Likewise.
23484 (grub_menu_run): Removed.
23485
23486 * DISTLIST: Added include/grub/menu.h.
23487 Added include/grub/menu_viewer.h.
23488 Added normal/menu_viewer.c.
23489
234902009-01-31 Vesa Jääskeläinen <chaac@nic.fi>
23491
23492 * normal/execute.c (grub_script_execute_menuentry): Changed to use
23493 arglist for menutitle arguments.
23494
23495 * normal/main.c (grub_normal_menu_addentry): Likewise.
23496
23497 * normal/parser.y (menuentry): Likewise.
23498
23499 * normal/script.c (grub_script_create_cmdmenu): Likewise.
23500
23501 * include/grub/script.h (grub_script_cmd_menuentry): Likewise.
23502 (grub_script_create_cmdmenu): Likewise.
23503
23504 * include/grub/normal.h (grub_normal_menu_addentry): Likewise.
23505
23506 * conf/i386-pc.rmk (normal_mod_SOURCES): Adapt Colin D Bennett's
23507 changes.
23508
23509 * conf/x86_64-efi.rmk (normal_mod_SOURCES): Likewise.
23510
23511 * conf/i386-coreboot.rmk (normal_mod_SOURCES): Likewise.
23512
23513 * conf/i386-efi.rmk (normal_mod_SOURCES): Likewise.
23514
23515 * conf/i386-ieee1275.rmk (normal_mod_SOURCES): Likewise.
23516
23517 * conf/powerpc-ieee1275.rmk (normal_mod_SOURCES): Likewise.
23518
23519 * conf/sparc64-ieee1275.rmk (normal_mod_SOURCES): Likewise.
23520
56192c23 235212009-01-30 Christian Franke <franke@computer.org>
23522
23523 * normal/arg.c (grub_arg_show_help): Add indentation if '\n' appears
23524 in option help text.
23525
d72521b3 235262009-01-27 Pavel Roskin <proski@gnu.org>
23527
23528 * disk/fs_uuid.c (search_fs_uuid): Ignore case of the UUID.
23529
994b5e84 235302009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
23531
23532 * commands/lsmmap.c: Add include to grub/machine/memory.h.
23533
23534 * fs/i386/pc/pxe.c (grub_pxefs_open): Fix sign problem.
23535
23536 * term/i386/pc/at_keyboard.c (GRUB_MOD_FINI(at_keyboard)): Use proper
23537 unregister function.
23538
6a7eab2c 235392009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
23540
23541 * disk/scsi.c (grub_scsi_read): Fix sign problem.
23542
23543 * term/i386/pc/vga_text.c (grub_vga_text_init_fini). Fix declaration.
23544
23545 * util/grub-mkfont.c (usage): Fix typo.
23546
23547 * util/elf/grub-mkimage.c (load_modules): Fix warning.
23548
1806b56e 235492009-01-26 Daniel Mierswa <impulze@impulze.org>
23550
3fb18f09 23551 * fs/fat.c (grub_fat_uuid): Fix shift of the first two bytes.
23552
336e1fb9 23553 * commands/search.c (search_fs_uuid): Ignore case of the UUID.
23554
1806b56e 23555 * kern/misc.c (grub_strcasecmp): New function.
23556 (grub_strcasecmp): Use grub_size_t instead of int for length.
23557 Fix return value.
23558 * include/grub/misc.h: Update function prototypes.
23559
580b2a0f 235602009-01-26 Robert Millan <rmh@aybabtu.com>
23561
23562 * configure.ac: Fix cross-compilation check.
ef257b36 23563
d31c24f1 235642009-01-22 Christian Franke <franke@computer.org>
23565
23566 * kern/misc.c (grub_vsprintf): Fix size and termination of `format2'
23567 (precision) digit string. Allow `.format2' without `format1' (width).
23568 Limit input chars for `%s' output to `format2' if specified. This is
23569 compatible with standard printf ().
23570
3138b44c 235712009-01-22 Christian Franke <franke@computer.org>
23572
23573 * disk/ata.c (grub_ata_wait_status): Replace by ...
23574 (grub_ata_wait_not_busy): ... this function. Checks only BSY bit,
23575 other status bits may be invalid while BSY is asserted.
23576 (grub_ata_check_ready): New function.
23577 (grub_ata_cmd): Removed.
23578 (grub_ata_wait_drq): New function.
23579 (grub_ata_strncpy): Remove inline.
23580 (grub_ata_pio_read): Reduce to actual block transfer. BSY wait
23581 and error check now done by grub_ata_wait_drq ().
23582 (grub_ata_pio_write): Likewise.
23583 (grub_atapi_identify): Set DEV before check for !BSY. Use
23584 grub_ata_wait_drq () to wait for data.
23585 (grub_ata_device_initialize): Add status register check to
23586 detect missing SATA slave devices. Add debug messages.
23587 (grub_atapi_wait_drq): Use grub_ata_wait_not_busy ().
23588 (grub_atapi_packet): Set DEV before check for !BSY. Replace
23589 transfer loop by grub_ata_pio_write ().
23590 (grub_ata_identify): Set DEV before check for !BSY. Use
23591 grub_ata_wait_drq () to wait for data.
ef257b36 23592 (grub_ata_setaddress): Set DEV before check for !BSY.
3138b44c 23593 (grub_ata_readwrite): Remove duplicate code, handle batch/rest and
23594 read/write in one loop. Fix invalid command on write. Fix incomplete
23595 command on (size % batch) == 0. Add missing error check after write of
23596 last block. Add debug messages.
23597 (grub_atapi_read): Replace transfer loop by grub_ata_pio_read ().
23598
59a64ef6 235992009-01-19 Christian Franke <franke@computer.org>
23600
23601 * disk/ata.c (GRUB_ATAPI_REG_*): New defines.
23602 (GRUB_ATAPI_IREASON_*): Likewise.
23603 (grub_ata_pio_write): Fix timeout error return.
23604 (grub_atapi_identify): Add grub_ata_wait () after cmd.
23605 (grub_atapi_wait_drq): New function.
23606 (grub_atapi_packet): New parameter `size'.
23607 Use grub_atapi_wait_drq () and direct write instead of
23608 grub_ata_pio_write ().
23609 (grub_atapi_read): Replace grub_ata_pio_read () by a loop which
23610 reads the number of bytes requested by the device for each DRQ
23611 assertion.
23612 (grub_atapi_write): Remove old implementation, return not
23613 implemented instead.
23614
1cfe20b3 236152009-01-19 Christian Franke <franke@computer.org>
23616
23617 * disk/scsi.c (grub_scsi_read10): Use scsi->blocksize instead
23618 of 512 to calculate data size.
23619 (grub_scsi_read12): Likewise.
23620 (grub_scsi_write10): Likewise.
23621 (grub_scsi_write12): Likewise.
23622 (grub_scsi_read): Adjust size according to blocksize.
23623 Add checks for invalid blocksize and unaligned transfer.
23624
bee5fe5d 236252009-01-19 Vesa Jääskeläinen <chaac@nic.fi>
23626
23627 * font/font.c (grub_font_loader_init): Re-position unknown glyph.
23628
ef257b36 23629 * term/gfxterm.c (write_char): Fix background rendering for wide
bee5fe5d 23630 width glyphs.
23631
3e643f8c 236322009-01-19 Robert Millan <rmh@aybabtu.com>
23633
23634 * config.guess: Update to latest version from config git.
23635 * config.sub: Likewise.
23636
4fa80998 236372009-01-17 Felix Zielcke <fzielcke@z-51.de>
23638
23639 * Makefile.in: Change font compilation to use new grub-mkfont instead
23640 of java version.
23641
23642 * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: Remove.
23643 * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
23644 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
23645 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
23646 * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
23647 * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
23648 * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
23649 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
23650 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
23651
7086085b 236522009-01-16 Christian Franke <franke@computer.org>
23653
23654 * disk/ata.c (enum grub_ata_commands): Remove EXEC_DEV_DIAGNOSTICS.
23655 (enum grub_ata_timeout_milliseconds): New enum.
23656 (grub_ata_wait_status): Add parameter milliseconds.
23657 (grub_ata_cmd): Remove variable `err'. Remove wait for !DRQ to allow
23658 recovery from timed-out commands.
23659 (grub_ata_pio_read): Add parameter milliseconds. Fix error return,
23660 return grub_errno instead of REG_ERROR.
23661 (grub_ata_pio_write): Add parameter milliseconds.
23662 (grub_atapi_identify): Fix size of ATAPI IDENTIFY sector.
23663 Pass milliseconds to grub_ata_wait_status () and
23664 grub_ata_pio_read ().
23665 (grub_atapi_packet): Pass milliseconds to grub_ata_pio_write ().
23666 (grub_ata_identify): Remove variable `ataerr'. Pass milliseconds to
23667 grub_ata_wait_status (). Fix IDENTIFY timeout check.
23668 (grub_ata_device_initialize): Remove EXECUTE DEVICE DIAGNOSTICS.
23669 It is not suitable for device detection, because DEV bit is ignored,
23670 the command may run too long, and not all devices set the signature
23671 properly.
23672 (grub_ata_pciinit): Clear grub_errno before grub_ata_device_initialize ().
23673 (grub_ata_setaddress): Pass milliseconds to grub_ata_wait_status ().
23674 Fix device selection, DEV bit must be set first to address the registers
23675 of the correct device.
23676 (grub_ata_readwrite): Pass milliseconds to grub_ata_wait_status () and
23677 grub_ata_pio_read/write ().
23678 (grub_atapi_read): Pass milliseconds to grub_ata_pio_read ().
23679 (grub_atapi_write): Pass milliseconds to grub_ata_pio_write ().
23680
4a412913 236812009-01-13 Carles Pina i Estany <carles@pina.cat>
23682
23683 * util/grub-editenv.c (main): Use fseeko(), not fseek().
23684
7795c55e 236852009-01-13 Bean <bean123ch@gmail.com>
d913988c 23686
23687 * util/grub-mkfont.c (write_font): forget to remove some debug code.
23688
7795c55e 236892009-01-13 Bean <bean123ch@gmail.com>
e52db1f7 23690
23691 * Makefile.in: (enable_grub_mkfont): New variable.
23692 (freetype_cflags): Likewise.
23693 (freetype_libs): Likewise.
23694
23695 * common.rmk (bin_UTILITIES): Add `grub-mkfont' if requested.
23696 (grub_mkfont_SOURCES): New variable.
23697 (grub_mkfont_CFLAGS): Likewise.
23698 (grub_mkfont_LDFLAGS): Likewise.
23699
23700 * configure.ac (--enable-grub-mkfont): New option. Check for freetype2
23701 library if `--enable-grub-mkfont' is requested.
23702 (enable_grub_mkfont): New variable.
23703 (freetype_cflags): Likewise.
23704 (freetype_libs): Likewise.
23705
23706 * util/grub-mkfont.c: New file.
23707
093af1fe 237082009-01-12 Christian Franke <franke@computer.org>
23709
23710 * disk/ata.c (grub_ata_pciinit): Fix bit numbers of compatibility
23711 mode check. Fix setting of compat_use[].
23712
f36cc108 237132009-01-10 Robert Millan <rmh@aybabtu.com>
23714
23715 Update a few copyright years which we forgot to do in 2008 (only for
23716 files whose changes made in 2008 were copyright-significant)
23717
23718 * Makefile.in: Add 2008 to Copyright line.
23719 * disk/ieee1275/ofdisk.c: Likewise.
23720 * disk/efi/efidisk.c: Likewise.
23721 * kern/dl.c: Likewise.
23722 * kern/sparc64/ieee1275/init.c: Likewise.
23723 * kern/mm.c: Likewise.
23724 * kern/efi/mm.c: Likewise.
23725 * boot/i386/pc/boot.S: Likewise.
23726 * genfslist.sh: Likewise.
23727 * fs/iso9660.c: Likewise.
23728 * fs/hfs.c: Likewise.
23729 * fs/jfs.c: Likewise.
23730 * fs/minix.c: Likewise.
23731 * fs/ufs.c: Likewise.
23732 * gensymlist.sh.in: Likewise.
23733 * genkernsyms.sh.in: Likewise.
23734 * include/grub/misc.h: Likewise.
23735 * include/grub/types.h: Likewise.
23736 * include/grub/symbol.h: Likewise.
23737 * include/grub/elf.h: Likewise.
23738 * include/grub/kernel.h: Likewise.
23739 * include/grub/disk.h: Likewise.
23740 * include/grub/dl.h: Likewise.
23741 * include/grub/i386/linux.h: Likewise.
23742 * include/grub/i386/pc/biosdisk.h: Likewise.
23743 * include/grub/efi/api.h: Likewise.
23744 * include/grub/efi/pe32.h: Likewise.
23745 * include/grub/util/misc.h: Likewise.
23746 * normal/execute.c: Likewise.
23747 * normal/arg.c: Likewise.
23748 * normal/completion.c: Likewise.
23749 * normal/lexer.c: Likewise.
23750 * normal/parser.y: Likewise.
23751 * normal/misc.c: Likewise.
23752 * commands/i386/pc/vbeinfo.c: Likewise.
23753 * commands/hexdump.c: Likewise.
23754 * commands/terminal.c: Likewise.
23755 * commands/ls.c: Likewise.
23756 * commands/help.c: Likewise.
23757 * partmap/pc.c: Likewise.
23758 * loader/efi/chainloader.c: Likewise.
23759 * loader/multiboot_loader.c: Likewise.
23760 * loader/i386/pc/multiboot2.c: Likewise.
23761 * term/efi/console.c: Likewise.
23762 * term/i386/pc/serial.c: Likewise.
23763 * util/lvm.c: Likewise.
23764 * util/console.c: Likewise.
23765 * util/i386/efi/grub-mkimage.c: Likewise.
23766 * util/raid.c: Likewise.
23767
7f02114b 237682009-01-06 Vesa Jääskeläinen <chaac@nic.fi>
23769
23770 * commands/videotest.c: Removed include to grub/machine/memory.h.
23771
23772 * conf/i386-pc.rmk (pkglib_MODULES): Removed video.mod, gfxterm.mod,
23773 videotest.mod, bitmap.mod, tga.mod, jpeg.mod, png.mod.
23774 (video_mod_SOURCES): Removed.
23775 (video_mod_CFLAGS): Likewise.
23776 (video_mod_LDFLAGS): Likewise.
23777 (gfxterm_mod_SOURCES): Likewise.
23778 (gfxterm_mod_CFLAGS): Likewise.
23779 (gfxterm_mod_LDFLAGS): Likewise.
23780 (videotest_mod_SOURCES): Likewise.
23781 (videotest_mod_CFLAGS): Likewise.
23782 (videotest_mod_LDFLAGS): Likewise.
23783 (bitmap_mod_SOURCES): Likewise.
23784 (bitmap_mod_CFLAGS): Likewise.
23785 (bitmap_mod_LDFLAGS): Likewise.
23786 (tga_mod_SOURCES): Likewise.
23787 (tga_mod_CFLAGS): Likewise.
23788 (tga_mod_LDFLAGS): Likewise.
23789 (jpeg_mod_SOURCES): Likewise.
23790 (jpeg_mod_CFLAGS): Likewise.
23791 (jpeg_mod_LDFLAGS): Likewise.
23792 (png_mod_SOURCES): Likewise.
23793 (png_mod_CFLAGS): Likewise.
23794 (png_mod_LDFLAGS): Likewise.
23795
23796 * conf/common.rmk (pkglib_MODULES): Added video.mod, videotest.mod,
23797 bitmap.mod, tga.mod, jpeg.mod, png.mod, font.mod, gfxterm.mod
23798 (video_mod_SOURCES): Added.
23799 (video_mod_CFLAGS): Likewise.
23800 (video_mod_LDFLAGS): Likewise.
23801 (videotest_mod_SOURCES): Likewise.
23802 (videotest_mod_CFLAGS): Likewise.
23803 (videotest_mod_LDFLAGS): Likewise.
23804 (bitmap_mod_SOURCES): Likewise.
23805 (bitmap_mod_CFLAGS): Likewise.
23806 (bitmap_mod_LDFLAGS): Likewise.
23807 (tga_mod_SOURCES): Likewise.
23808 (tga_mod_CFLAGS): Likewise.
23809 (tga_mod_LDFLAGS): Likewise.
23810 (jpeg_mod_SOURCES): Likewise.
23811 (jpeg_mod_CFLAGS): Likewise.
23812 (jpeg_mod_LDFLAGS): Likewise.
23813 (png_mod_SOURCES): Likewise.
23814 (png_mod_CFLAGS): Likewise.
23815 (png_mod_LDFLAGS): Likewise.
23816 (gfxterm_mod_SOURCES): Likewise.
23817 (gfxterm_mod_CFLAGS): Likewise.
7795c55e 23818 (gfxterm_mod_LDFLAGS): Likewise.
7f02114b 23819
23820 * term/gfxterm.c: Removed include to grub/machine/memory.h,
23821 grub/machine/console.h.
23822
644fff97 238232009-01-04 Jerone Young <jerone@gmail.com>
23824
23825 Make on screen instructions clearer
23826
23827 Based on patch created by Jidanni <jidanni@jidanni.org>
23828
23829 * normal/menu.c: print clearer instructions on the screen
23830
1e901a75 238312009-01-02 Colin D Bennett <colin@gibibit.com>
23832
23833 New font engine.
34c44600 23834
1e901a75 23835 Additional changes by Vesa Jääskeläinen <chaac@nic.fi> to adapt to
23836 build system and fixed gfxterm.c to work with different sized fonts.
23837
23838 * configure.ac: Changed UNIFONT_HEX to UNIFONT_BDF.
34c44600 23839
1e901a75 23840 * configure: Re-generated.
34c44600 23841
1e901a75 23842 * DISTLIST: Removed font/manager.c.
23843 Added font/font.c.
23844 Added font/font_cmd.c.
34c44600 23845
1e901a75 23846 * Makefile.in: Changed UNIFONT_HEX to UNIFONT_BDF. Added Font tool
23847 compilation.
34c44600 23848
1e901a75 23849 * include/grub/misc.h (grub_utf8_to_ucs4): Changed prototype. Changed users.
34c44600 23850
23851 * kern/misc.c (grub_utf8_to_ucs4): Changed prototype.
1e901a75 23852
23853 * kern/term.c: Changed users of grub_utf8_to_ucs4.
34c44600 23854
1e901a75 23855 * normal/menu.c: Likewise.
34c44600 23856
1e901a75 23857 * conf/common.rmk (font_mod_SOURCES): Removed font/manager.c.
23858 (font_mod_SOURCES): Added font/font_cmd.c, font/font.c.
34c44600 23859
1e901a75 23860 * include/grub/font.h: Replaced with new file.
34c44600 23861
1e901a75 23862 * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_ALPHA): Changed value.
23863 (GRUB_VIDEO_MODE_TYPE_DOUBLE_BUFFERED): Likewise.
23864 (GRUB_VIDEO_MODE_TYPE_COLOR_MASK): Likewise.
23865 (GRUB_VIDEO_MODE_TYPE_1BIT_BITMAP): Added.
23866 (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED.
34c44600 23867 (grub_video_mode_info): Added bg_red, bg_green, bg_blue, bg_alpha,
1e901a75 23868 fg_red, fg_green, fg_blue, fg_alpha.
23869 (grub_video_adapter): Removed blit_glyph.
34c44600 23870 (grub_video_blit_glyph): Removed.
23871
1e901a75 23872 * font/manager.c: Removed file.
34c44600 23873
23874 * font/font.c: New file.
23875
1e901a75 23876 * font/font_cmd.c: Likewise.
34c44600 23877
1e901a75 23878 * video/video.c (grub_video_blit_glyph): Removed.
34c44600 23879
1e901a75 23880 * video/i386/pc/vbe.c (grub_video_vbe_map_rgb): Added 1-bit support.
23881 (grub_video_vbe_map_rgba): Likewise.
23882 (grub_video_vbe_unmap_color_int): Likewise.
23883 (grub_video_vbe_blit_glyph): Removed.
23884 (grub_video_vbe_adapter): Removed blit_glyph.
34c44600 23885
1e901a75 23886 * video/i386/pc/vbeutil.c (get_data_ptr): Added 1-bit support.
23887 (get_pixel): Likewise.
34c44600 23888 (set_pixel): Likewise.
23889
1e901a75 23890 * commands/videotest.c (grub_cmd_videotest): Added more tests for fonts.
34c44600 23891
1e901a75 23892 * term/gfxterm.c: Adapted to new font engine.
34c44600 23893
1e901a75 23894 * term/i386/pc/vesafb.c: Marked as deprecated. Made it compile.
34c44600 23895
1e901a75 23896 * term/i386/pc/vga.c: Likewise.
34c44600 23897
1e901a75 23898 * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: New file.
34c44600 23899
1e901a75 23900 * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
34c44600 23901
1e901a75 23902 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
34c44600 23903
1e901a75 23904 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
34c44600 23905
1e901a75 23906 * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
34c44600 23907
1e901a75 23908 * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
34c44600 23909
1e901a75 23910 * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
34c44600 23911
1e901a75 23912 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
34c44600 23913
1e901a75 23914 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
23915
23916 * util/grub.d/00_header.in: Changed to use new loadfont command.
34c44600 23917
1e901a75 23918 * util/grub-mkconfig_lib.in: Changed font extension.
23919
278922e8 239202008-12-28 Felix Zielcke <fzielcke@z-51.de>
23921
23922 * util/getroot.c (grub_util_get_grub_dev): Add support for
23923 /dev/md/dNNpNN style partitionable mdraid devices.
23924
3ced05cf 239252008-12-12 Alex Smith <alex@alex-smith.me.uk>
23926
23927 * fs/i386/pc/pxe.c (grub_pxefs_open): Handle the one open connection
23928 at a time limit of the PXE TFTP API correctly.
23929 (grub_pxefs_close): Likewise.
23930
7fd0ee30 239312008-11-29 Robert Millan <rmh@aybabtu.com>
23932
34c44600 23933 * disk/ata.c (grub_ata_pciinit): Handle errors raised by
7fd0ee30 23934 grub_ata_device_initialize() calls.
23935
34c44600 239362008-11-28 Krzysztof Smiechowicz <deadwood@wp.pl>
0c5e79ab 23937
23938 * fs/affs.c (grub_affs_iterate_dir): Return failure when directory
23939 iteration failed.
23940 * fs/sfs.c (grub_sfs_iterate_dir): Likewise.
23941
89313780 239422008-11-28 Robert Millan <rmh@aybabtu.com>
23943
23944 Fix build on powerpc-ieee1275. Based on patch created by
23945 Manoel Abranches <mrabran@linux.vnet.ibm.com>.
23946 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
23947 `kern/ieee1275/mmap.c'.
23948 * include/grub/powerpc/ieee1275/memory.h: New file.
23949
15257703 23950 Provide grub-install on coreboot.
23951 * conf/i386-coreboot.rmk (sbin_SCRIPTS): Add `grub-install'.
23952 (grub_install_SOURCES): New variable.
23953 * util/i386/pc/grub-install.in: Add a few condition checks to make it
23954 usable on coreboot.
23955
9fc5388a 239562008-11-25 Felix Zielcke <fzielcke@z-51.de>
23957
23958 * util/grub-fstest.c (grub_term_get_current_input): Change return type
23959 to `grub_term_input_t'.
23960 (grub_term_get_current_output): Change return type to
23961 `grub_term_output_t'.
23962
bc3a2f31 239632008-11-22 Robert Millan <rmh@aybabtu.com>
23964
34c44600 23965 Fix breakage on coreboot due to declaration mismatch.
bc3a2f31 23966 * term/i386/pc/vga_text.c (grub_vga_text_init_fini): New function.
23967 (grub_vga_text_term): Use grub_vga_text_init_fini() instead of
23968 grub_vga_text_cls().
23969
80fc88f2 23970 * kern/i386/loader.S (grub_multiboot_backward_relocator): Improve
34c44600 23971 comments. Avoid copying one more byte than necessary (just in case).
80fc88f2 23972
cbf36fd3 23973 * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Change link address
23974 to 0x200000 (avoids trouble with some OFW implementations, and matches
23975 with the one in Yaboot).
23976 Reported by Manoel Abranches
23977
73e8e268 239782008-11-20 Robert Millan <rmh@aybabtu.com>
3cf6ac19 23979
23980 * kern/i386/coreboot/init.c (grub_time_tics): Remove variable.
23981 (grub_get_rtc, grub_exit): Abort with grub_fatal() if called.
23982
73e8e268 23983 * util/grub-mkconfig_lib.in (grub_warn): New function.
23984 (convert_system_path_to_grub_path): Use grub_warn() when issuing
23985 warnings, to obtain consistent formatting.
23986 * util/grub.d/00_header.in: Likewise.
23987 * util/update-grub_lib.in: Likewise.
23988
e94045a1 23989 * loader/i386/linux.c (allocate_pages): Fix a warning.
40f9faa4 23990 Move comment text to `#error' stanza.
e94045a1 23991
79d29fd7 23992 Harmonize ieee1275's grub_available_iterate() with the generic
23993 grub_machine_mmap_iterate() interface (fixes a recently-introduced
23994 build problem on i386-ieee1275):
23995 * kern/ieee1275/openfw.c (grub_available_iterate): Moved from here ...
23996 * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): ... here. Add third
23997 parameter `type'. Update all users of this function.
23998 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
23999 `kern/ieee1275/mmap.c'.
24000 * kern/ieee1275/init.c
24001 * include/grub/ieee1275/ieee1275.h (grub_available_iterate): Replace
24002 with ...
24003 (grub_machine_mmap_iterate): ... this.
24004 * include/grub/i386/pc/memory.h (grub_machine_mmap_iterate): Change
24005 return type to `grub_err_t'. Update all implementations of this
24006 function prototype.
24007 * include/grub/i386/coreboot/memory.h (grub_machine_mmap_iterate):
24008 Likewise.
24009
60d6b16e 24010 Add `lsmmap' command (lists firmware-provided memory map):
24011 * commands/lsmmap.c: New file.
24012 * conf/i386-pc.rmk (pkglib_MODULES): Add `lsmmap.mod'.
24013 (lsmmap_mod_SOURCES, lsmmap_mod_CFLAGS, lsmmap_mod_LDFLAGS): New
24014 variables.
24015 * conf/powerpc-ieee1275.rmk: Likewise.
24016 * conf/i386-coreboot.rmk: Likewise.
24017 * conf/i386-ieee1275.rmk: Likewise.
24018
ebaaf49b 240192008-11-19 Robert Millan <rmh@aybabtu.com>
24020
24021 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Fix a typo.
92907110 24022 * loader/i386/linux.c (grub_rescue_cmd_initrd): Implement a few needed
24023 constraints to initrd allocation (based on code from
24024 loader/i386/pc/linux.c). Without them, initrd was allocated too high
24025 for Linux to find it.
ebaaf49b 24026
dfab719f 240272008-11-14 Robert Millan <rmh@aybabtu.com>
24028
24029 * fs/cpio.c (grub_cpio_open): Compare `name' and `fn' by hand in
24030 order to cope with duplicate slashes.
24031
10fc3eb9 240322008-11-14 Robert Millan <rmh@aybabtu.com>
24033
24034 * include/grub/i386/coreboot/memory.h (GRUB_MEMORY_MACHINE_LOWER_SIZE):
24035 Redefine to match with GRUB_MEMORY_MACHINE_UPPER_START (0x100000). We
24036 don't want to mess with lower memory, because it is used in the Linux
24037 loader.
24038
24039 * loader/i386/linux.c (allocate_pages): Allocate `real_mode_mem' in
34c44600 24040 an appropriate place in lower memory, between 0x10000 and 0x90000,
10fc3eb9 24041 like loader/i386/efi/linux.c does. Linux often panics if real_mode_mem
24042 is in our heap (probably as a result of it being corrupted during
2f2a3442 24043 decompression). Add #error instance with comment to explain why this
24044 loader isn't currently usable on PC/BIOS.
10fc3eb9 24045
e2e07847 240462008-11-14 Robert Millan <rmh@aybabtu.com>
24047
24048 * term/i386/pc/serial.c [! GRUB_MACHINE_PCBIOS]
34c44600 24049 (GRUB_SERIAL_PORT_NUM): Fix miscalculation.
e2e07847 24050
fe8e8d69 240512008-11-12 Robert Millan <rmh@aybabtu.com>
24052
24053 Make loader/i386/linux.c buildable on i386-pc (although disabled).
24054
24055 * include/grub/i386/pc/init.h: Include `<grub/machine/memory.h>'.
24056 (struct grub_machine_mmap_entry, grub_machine_mmap_iterate): Move
24057 from here ...
24058 * include/grub/i386/pc/memory.h: ... to here.
24059
976b07d0 240602008-11-12 Robert Millan <rmh@aybabtu.com>
24061
24062 Fix build problems on i386-ieee1275 and *-efi (introduced by vga_text
24063 split).
24064
24065 * include/grub/i386/pc/console.h: Include `<grub/i386/vga_common.h>'.
24066 (grub_console_cur_color, grub_console_real_putchar)
24067 (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
24068 (grub_console_setcolorstate, grub_console_setcolor)
24069 (grub_console_getcolor): Move from here ...
24070 * include/grub/i386/vga_common.h: ... to here (new file).
24071
24072 * term/i386/pc/vga_text.c: Replace `<grub/machine/console.h>' with
24073 `<grub/i386/vga_common.h>' and `<grub/cpu/io.h>' with
24074 `<grub/i386/io.h>'.
24075 * term/i386/vga_common.c: Replace `<grub/machine/console.h>' with
24076 `<grub/i386/vga_common.h>'.
24077
76679cd3 240782008-11-12 Robert Millan <rmh@aybabtu.com>
24079
24080 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `term/i386/vga_common.c'.
24081 * conf/i386.rmk (pkglib_MODULES): Add `vga_text.mod'.
24082 (vga_text_mod_SOURCES, vga_text_mod_CFLAGS, vga_text_mod_LDFLAGS): New
24083 variables.
24084 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
24085 `term/i386/pc/console.c' with `term/i386/vga_common.c'.
24086
24087 * kern/i386/coreboot/init.c (grub_machine_init): Replace call to
24088 grub_console_init() with call to grub_vga_text_init().
24089 (grub_machine_fini): Replace call to
24090 grub_console_fini() with call to grub_vga_text_fini() and
24091 grub_at_keyboard_fini().
24092
24093 * include/grub/i386/pc/console.h: Include `<grub/term.h>'.
24094 (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
24095 (grub_console_setcolorstate, grub_console_setcolor)
24096 (grub_console_getcolor): New function prototypes.
24097
24098 * term/i386/pc/vga_text.c: Include `<grub/dl.h>'.
24099 (grub_vga_text_getxy, grub_vga_text_gotoxy, grub_vga_text_cls)
24100 (grub_vga_text_setcursor): Static-ize.
24101 (grub_vga_text_term): New structure.
24102 (GRUB_MOD_INIT(vga_text), GRUB_MOD_FINI(vga_text)): New functions.
24103
24104 * term/i386/pc/console.c: Remove `<grub/machine/machine.h>'.
24105 (grub_console_cur_color, grub_console_standard_color)
24106 (grub_console_normal_color, grub_console_highlight_color)
24107 (map_char, grub_console_putchar, grub_console_getcharwidth)
24108 (grub_console_getwh, grub_console_setcolorstate, grub_console_setcolor)
24109 (grub_console_getcolor): Move from here ...
24110 * term/i386/vga_common.c: ... to here (same function names).
24111
95b841d3 241122008-11-12 Robert Millan <rmh@aybabtu.com>
24113
24114 Use newly-added Multiboot support in coreboot.
24115
24116 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
24117 `kern/i386/coreboot/mmap.c' with `kern/i386/multiboot_mmap.c'.
24118
24119 * kern/i386/coreboot/startup.S: Enable Multiboot header, fix its
24120 alignment, set `MULTIBOOT_MEMORY_INFO' flag.
24121 (codestart): Store the MBI in `startup_multiboot_info' when we're
24122 being loaded using Multiboot.
24123
24124 * kern/i386/coreboot/init.c (grub_machine_init): Move
24125 grub_at_keyboard_init() call to beginning of function (useful for
24126 debugging). Call grub_machine_mmap_init() before attempting to use
24127 grub_machine_mmap_iterate().
24128 (grub_lower_mem, grub_upper_mem): Move from here ...
24129 * kern/i386/multiboot_mmap.c (grub_lower_mem, grub_upper_mem): ... to
24130 here (new file).
24131
24132 * include/grub/i386/coreboot/memory.h (grub_machine_mmap_init): New
24133 function prototype.
24134
761ca975 241352008-11-12 Robert Millan <rmh@aybabtu.com>
24136
24137 Fix a regression introduced by the at_keyboard.mod split. Because
24138 some terminals are default on some platforms and non-default on
24139 others, the first terminal being registered determines which is
24140 going to be default.
24141
24142 * kern/term.c (grub_term_register_input): If this is the first
24143 terminal being registered, set it as the current one.
24144 (grub_term_register_output): Likewise.
24145
24146 * term/efi/console.c (grub_console_init): Do not call
24147 grub_term_set_current_output() or grub_term_set_current_input().
24148 * term/ieee1275/ofconsole.c (grub_console_init): Likewise.
24149 * term/i386/pc/console.c (grub_console_init): Likewise.
24150 (grub_console_fini): Do not call grub_term_set_current_input()
24151 (but leave grub_term_set_current_output() to restore text mode).
24152
6c529df7 241532008-11-10 Robert Millan <rmh@aybabtu.com>
24154
24155 * util/grub.d/00_header.in: Add backward compatibility check for
24156 versions of terminal.mod that don't understand `terminal_input' or
24157 `terminal_output'.
24158
132e4113 241592008-11-09 Robert Millan <rmh@aybabtu.com>
24160
24161 * commands/terminal.c (GRUB_MOD_FINI(terminal)): Unregister
24162 `terminal_input' / `terminal_output', not `terminal'.
24163
ac293d50 241642008-11-08 Robert Millan <rmh@aybabtu.com>
24165
24166 * Makefile.in (include_DATA): Fix srcdir=. assumption.
2a9c5940 24167 (DISTCLEANFILES): Add `build_env.mk'.
ac293d50 24168
0025933a 241692008-11-08 Robert Millan <rmh@aybabtu.com>
24170
24171 * term/i386/pc/vesafb.c (grub_vesafb_term): Change type to
dba3f844 24172 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
0025933a 24173 members. Update all users.
24174 * util/console.c (grub_ncurses_term): Split in ...
24175 (grub_ncurses_term_input): ... this, and ...
24176 (grub_ncurses_term_output): ... this. Update all users.
dcb6fa0a 24177 * term/ieee1275/ofconsole.c: Remove stale `#endif'.
0025933a 24178
37c86336 241792008-11-08 Robert Millan <rmh@aybabtu.com>
24180
24181 * Makefile.in (PKGLIB): Add $(pkglib_BUILDDIR).
24182 (PKGDATA): Add $(pkgdata_SRCDIR).
24183 (pkglib_BUILDDIR): New variable.
24184 (pkgdata_SRCDIR): New variable.
24185 (build_env.mk): New target.
24186 (include_DATA): New variable.
24187 (install-local): Install $(include_DATA) files in $(includedir).
24188
b6c15a2d 241892008-11-07 Pavel Roskin <proski@gnu.org>
24190
d99d46f1 24191 * gendistlist.sh: Use C locale for sorting to ensure consistent
24192 output on all systems.
24193
b6c15a2d 24194 * util/grub.d/00_header.in: Remove incorrect space before
24195 "serial".
24196
c32ee8c9 241972008-11-07 Robert Millan <rmh@aybabtu.com>
24198
24199 * include/multiboot2.h (struct multiboot_header): Add `flags' member as
24200 per specification.
24201 * loader/multiboot2.c (grub_multiboot2): Fix Multiboot2 header check.
24202 * loader/multiboot_loader.c (find_multi_boot2_header): New function
24203 (based on find_multi_boot1_header).
24204 (grub_rescue_cmd_multiboot_loader): Check for Multiboot2 header,
24205 using find_multi_boot2_header(), and abort if neither Multiboot or
24206 Multiboot headers were found.
24207
651c29b7 242082008-11-07 Robert Millan <rmh@aybabtu.com>
24209
24210 Modularize at_keyboard.mod:
24211
24212 * conf/i386.rmk (pkglib_MODULES): Add `at_keyboard.mod'.
24213 (at_keyboard_mod_SOURCES, at_keyboard_mod_CFLAGS)
24214 (at_keyboard_mod_LDFLAGS): New variables.
24215
24216 Actual terminal split:
24217
24218 * include/grub/term.h (struct grub_term): Split in ...
24219 (struct grub_term_input): ... this, and ...
24220 (struct grub_term_output): ... this. Update all users.
24221 (grub_term_set_current): Split in ...
24222 (grub_term_set_current_input): ... this, and ...
24223 (grub_term_set_current_output): ... this.
24224 (grub_term_get_current): Split in ...
24225 (grub_term_get_current_input): ... this, and ...
24226 (grub_term_get_current_output): ... this.
24227 (grub_term_register): Split in ...
24228 (grub_term_register_input): ... this, and ...
24229 (grub_term_register_output): ... this.
24230 (grub_term_unregister): Split in ...
24231 (grub_term_unregister_input): ... this, and ...
24232 (grub_term_unregister_output): ... this.
24233 (grub_term_iterate): Split in ...
24234 (grub_term_iterate_input): ... this, and ...
24235 (grub_term_iterate_output): ... this.
24236
24237 * kern/term.c (grub_term_list): Split in ...
24238 (grub_term_list_input): ... this, and ...
24239 (grub_term_list_output): ... this. Update all users.
24240 (grub_cur_term): Split in ...
24241 (grub_cur_term_input): ... this, and ...
24242 (grub_cur_term_output): ... this. Update all users.
24243 (grub_term_set_current): Split in ...
24244 (grub_term_set_current_input): ... this, and ...
24245 (grub_term_set_current_output): ... this.
24246 (grub_term_get_current): Split in ...
24247 (grub_term_get_current_input): ... this, and ...
24248 (grub_term_get_current_output): ... this.
24249 (grub_term_register): Split in ...
24250 (grub_term_register_input): ... this, and ...
24251 (grub_term_register_output): ... this.
24252 (grub_term_unregister): Split in ...
24253 (grub_term_unregister_input): ... this, and ...
24254 (grub_term_unregister_output): ... this.
24255 (grub_term_iterate): Split in ...
24256 (grub_term_iterate_input): ... this, and ...
24257 (grub_term_iterate_output): ... this.
24258
24259 * kern/misc.c (grub_abort): Split use of grub_term_get_current() into
24260 a check for input and one for output (and only attempt to get keys
24261 from user when input works).
24262
24263 * util/grub-probe.c (grub_term_get_current): Split in ...
24264 (grub_term_get_current_input): ... this, and ...
24265 (grub_term_get_current_output): ... this.
24266 * util/grub-fstest.c: Likewise.
24267 * util/i386/pc/grub-setup.c: Likewise.
24268 * util/grub-editenv.c: Likewise.
24269
24270 Portability adjustments:
24271
24272 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Remove
24273 `term/i386/pc/at_keyboard.c'.
24274 * kern/ieee1275/init.c [__i386__] (grub_machine_init): Remove call to
24275 grub_keyboard_controller_init() (now handled by terminal .init).
24276 * kern/i386/coreboot/init.c (grub_machine_init): Add call to
24277 grub_at_keyboard_init().
24278 * include/grub/i386/ieee1275/console.h (grub_keyboard_controller_init)
24279 (grub_console_checkkey, grub_console_getkey): Remove (now provided by
24280 at_keyboard.mod via input terminal interface).
24281 * include/grub/i386/coreboot/console.h: Convert into a stub for
24282 `<grub/i386/pc/console.h>'.
24283
24284 Migrate full terminals to new API:
24285
24286 * term/efi/console.c (grub_console_term): Split into ...
24287 (grub_console_term_input): ... this, and ...
24288 (grub_console_term_output): ... this. Update all users.
24289 * term/ieee1275/ofconsole.c: Remove __i386__ hack.
24290 (grub_ofconsole_init): Split into ...
24291 (grub_ofconsole_init_input): ... this, and ...
24292 (grub_ofconsole_init_output): ... this.
24293 (grub_ofconsole_term): Split into ...
24294 (grub_ofconsole_term_input): ... this, and ...
24295 (grub_ofconsole_term_output): ... this. Update all users.
24296 * term/i386/pc/serial.c (grub_serial_term): Split into ...
24297 (grub_serial_term_input): ... this, and ...
24298 (grub_serial_term_output): ... this. Update all users.
24299 * term/i386/pc/console.c (grub_console_term): Split into ...
24300 (grub_console_term_input): ... this, and ...
24301 (grub_console_term_output): ... this. Update all users.
24302 (grub_console_term_input): Only enable it on PC/BIOS platform.
24303 (grub_console_init): Remove grub_keyboard_controller_init() call.
24304
24305 Migrate input terminals to new API:
24306
24307 * term/i386/pc/at_keyboard.c: Replace `cpu' and `machine' with
24308 `i386' and `i386/pc' to enable build on x86_64 (this driver is
24309 i386-specific anyway).
24310 (grub_console_checkkey): Rename to ...
24311 (grub_at_keyboard_checkkey): ... this. Static-ize. Update all
24312 users.
24313 (grub_keyboard_controller_orig): New variable.
24314 (grub_console_getkey): Rename to ...
24315 (grub_at_keyboard_getkey): ... this. Static-ize. Update all
24316 users.
24317 (grub_keyboard_controller_init): Static-ize. Save original
24318 controller value so that it can be restored ...
24319 (grub_keyboard_controller_fini): ... here (new function).
24320 (grub_at_keyboard_term): New structure.
24321 (GRUB_MOD_INIT(at_keyboard), GRUB_MOD_FINI(at_keyboard)): New
24322 functions.
24323
24324 Migrate output terminals to new API:
24325
24326 * term/i386/pc/vga.c (grub_vga_term): Change type to
24327 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
24328 members. Update all users.
24329 * term/gfxterm.c (grub_video_term): Change type to
24330 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
24331 members. Update all users.
24332 * include/grub/i386/pc/console.h (grub_console_checkkey)
24333 (grub_console_getkey): Do not export (no longer needed by gfxterm,
24334 etc).
24335
24336 Migrate `terminal' command and userland tools to new API:
24337
24338 * commands/terminal.c (grub_cmd_terminal): Split into ...
24339 (grub_cmd_terminal_input): ... this, and ...
24340 (grub_cmd_terminal_output): ... this.
24341 (GRUB_MOD_INIT(terminal)): Split `terminal' command in two commands:
24342 `terminal_input' and `terminal_output'.
24343 * util/grub.d/00_header.in: Adjust `terminal' calls to new
24344 `terminal_input' / `terminal_output' API.
24345 * util/grub-mkconfig.in: Export ${GRUB_TERMINAL_INPUT} and
24346 ${GRUB_TERMINAL_OUTPUT} instead of ${GRUB_TERMINAL} (and if user
24347 provided ${GRUB_TERMINAL}, convert it).
24348
96e5d876 243492008-11-04 Robert Millan <rmh@aybabtu.com>
24350
24351 * util/grub.d/10_freebsd.in: New file. Generate grub configuration
24352 for FreeBSD.
24353 * conf/common.rmk (grub-mkconfig_SCRIPTS): Add 10_freebsd.
24354
556f3775 243552008-11-03 Bean <bean123ch@gmail.com>
24356
24357 * kern/elf.c (grub_elf32_load): Revert to previous code.
24358 (grub_elf64_load): Likewise.
24359
24360 * loader/i386/bsd.c (grub_bsd_elf32_hook): Change return address.
24361
926b9823 243622008-11-01 Robert Millan <rmh@aybabtu.com>
24363
24364 * Makefile.in (CPPFLAGS): Fix builddir=. assumption.
24365 (TARGET_CPPFLAGS): Likewise.
24366 * genmk.rb (mod_src): Fix builddir=. and srcdir=. assumptions.
24367
1432e958 243682008-11-01 Carles Pina i Estany <carles@pina.cat>
24369
24370 * normal/menu.c (run_menu): Add Previous and Next Page keys in menu.
24371
dba3f844 243722008-10-29 Guillem Jover <guillem.jover@nokia.com>
de4fa71c 24373
24374 * disk/lvm.c (grub_lvm_scan_device): Fix error recovery by delaying the
24375 addition of objects until the code is not going to be able to fail.
24376
dba3f844 243772008-10-29 Guillem Jover <guillem.jover@nokia.com>
b7279447 24378
24379 * disk/lvm.c (grub_lvm_scan_device): Fix possible NULL value handling
24380 (add a missing NULL check, and correct them by moving the pointer
24381 operations after the actual check).
24382
7ab28c21 243832008-10-29 Robert Millan <rmh@aybabtu.com>
24384
24385 * util/i386/pc/grub-install.in: Handle empty string as output from
24386 make_system_path_relative_to_its_root().
24387
1b7748eb 243882008-10-05 Hans Lambermont <hans@lambermont.dyndns.org>
24389
24390 * disk/lvm.c (grub_lvm_scan_device): Allocate buffer space for the
24391 circular metadata worst case scenario. If the metadata is circular
24392 then copy the wrap in place.
24393 * include/grub/lvm.h: Add GRUB_LVM_MDA_HEADER_SIZE, from the LVM2
24394 project lib/format_text/layout.h
24395 Circular metadata bug found and patch debugged by Jan Derk Gerlings.
24396
c9618ab2 243972008-10-03 Felix Zielcke <fzielcke@z-51.de>
24398
7a36edca 24399 * util/i386/pc/grub-install.in: Source grub-mkconfig_lib instead of update-grub_lib.
c9618ab2 24400
bf981c62 244012008-10-03 Felix Zielcke <fzielcke@z-51.de>
24402
24403 * util/update-grub_lib.in: Mention filename in warning message.
24404
6d994591 244052008-09-29 Felix Zielcke <fzielcke@z-51.de>
24406
24407 * NEWS: Update for rename of update-grub to grub-mkconfig.
24408
18ade780 244092008-09-29 Felix Zielcke <fzielcke@z-51.de>
24410
24411 * util/update-grub_lib.in: Copy to ...
24412 * util/grub-mkconfig_lib.in: ... this. Update all users.
7c3ff286 24413 * util/update-grub_lib.in: Make it a stub to `grub-mkconfig_lib.in'.
18ade780 24414 * util/update-grub.in: Rename to ...
24415 * util/grub-mkconfig.in: ... this. Update all users. Remove `-y'
24416 option. Add `--output' option to allow users to specify the generated
24417 configuration file. Default to stdout.
24418 (update_grub_dir): Rename to ...
24419 (grub_mkconfig_dir): ... this.
24420 (grub_cfg): Default to an empty string.
24421 * conf/common.rmk (update-grub): Rename to ...
24422 (grub-mkconfig): ... this.
24423 (update-grub_lib): Copy to ...
24424 (grub-mkconfig_lib): ... this.
24425 (update-grub_SCRIPTS): Copy to ...
24426 (grub-mkconfig_SCRIPTS): ... this. Update all users.
24427 (update-grub_DATA): Rename to ...
24428 (grub-mkconfig_DATA): ... this.
24429
556ce6ac 244302008-09-28 Robert Millan <rmh@aybabtu.com>
24431
24432 * fs/iso9660.c (struct grub_iso9660_primary_voldesc): Rename `created'
24433 to `modified'. Add the real `created' field.
24434 (grub_iso9660_uuid): Use `modified' rather than `created' for
24435 constructing the UUID.
24436
244372008-09-28 Felix Zielcke <fzielcke@z-51.de>
eb079ba9 24438
24439 fs/jfs.c (grub_jfs_find_file): Treat multiple slashes like one.
24440 Based on code from Tomas Ebenlendr <ebik@ucw.cz>.
24441
92274e85 244422008-09-28 Bean <bean123ch@gmail.com>
24443
24444 * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a bug in the previous patch.
24445 Thanks to Christian Franke for finding this bug.
24446
add6f17a 244472008-09-25 Robert Millan <rmh@aybabtu.com>
24448
24449 * util/grub-mkdevicemap.c (make_device_map): Actually replace all
24450 instances of grub_util_get_disk_name() (see previous commit).
24451
d2a367b8 244522008-09-25 Robert Millan <rmh@aybabtu.com>
24453
24454 * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Remove
24455 `util/i386/get_disk_name.c'.
24456 * conf/i386-efi.rmk: Likewise.
24457 * conf/x86_64-efi.rmk: Likewise.
24458 * conf/i386-coreboot.rmk: Likewise.
24459 * conf/i386-ieee1275.rmk: Likewise.
24460 * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Remove
24461 `util/ieee1275/get_disk_name.c'.
24462 * include/grub/util/misc.h (grub_util_get_disk_name): Remove.
24463 * util/ieee1275/get_disk_name.c: Remove file.
24464 * util/i386/get_disk_name.c: Remove file.
24465 * util/grub-mkdevicemap.c (make_device_map): Back to hardcoding
24466 "hd%d" for device.map entries, rather than using
24467 grub_util_get_disk_name().
24468
81a06771 244692008-09-24 Carles Pina i Estany <carles@pina.cat>
b0c301f7 24470
24471 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Fix `unused parameter'
24472 warning.
24473 * commands/i386/pc/pxecmd.c (dmraid_nvidia): Likewise.
24474
5a004279 244752008-09-24 Carles Pina i Estany <carles@pina.cat>
24476
24477 * include/grub/i386/pc/console.h (GRUB_TERM_NPAGE):
24478 Changed to 0x5100.
24479 (GRUB_TERM_PPAGE): Changed to 0x4900.
24480
397093d3 244812008-09-24 Robert Millan <rmh@aybabtu.com>
24482
24483 * include/grub/powerpc/ieee1275/console.h (GRUB_CONSOLE_KEY_*): Remove
24484 macros (they were i386-pc specific).
24485 * include/grub/sparc64/ieee1275/console.h: Likewise.
24486 * include/grub/efi/console.h: Likewise.
24487
a91b6c7c 244882008-09-22 Bean <bean123ch@gmail.com>
24489
24490 * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a rare case where $BITMAP is
24491 resident and in attribute list.
24492
24493 * include/grub/ntfs.h (BMP_LEN): Removed.
24494
c40fd116 244952008-09-22 Bean <bean123ch@gmail.com>
24496
81a06771 24497 * disk/ata.c (grub_atapi_open): Initialize devfnd, no need to set
c40fd116 24498 scsi->name and scsi->luns, as they will be set in grub_scsi_open.
24499
24500 * disk/scsi.c (grub_scsi_open): Don't call p->close (scsi) here when
24501 error occurs, as grub_disk_open will call grub_disk_close, which will
24502 call p->close (scsi).
24503
81a06771 245042008-09-21 Felix Zielcke <fzielcke@z-51.de>
eb73121d 24505
24506 * configure.ac (AC_INIT): Quote `GRUB' string and version number.
24507 (AC_PREREQ): Bumped to 2.59.
24508 (AC_TRY_COMPILE): Replace obsolete macro with ...
24509 (AC_COMPILE_IFELSE): ... this.
24510 * aclocal.m4 (AC_TRY_LINK): Replace obsolete macro with ...
24511 (AC_LINK_IFELSE): ... this.
24512
5dc43410 245132008-09-21 Felix Zielcke <fzielcke@z-51.de>
24514
24515 * autogen.sh: Add a call to `gendistlist.sh'.
24516
9035dce4 245172008-09-19 Christian Franke <franke@computer.org>
24518
24519 * aclocal.m4 (grub_CHECK_ENABLE_EXECUTE_STACK): New function.
24520 * configure.ac: Call grub_CHECK_ENABLE_EXECUTE_STACK.
24521 * include/grub/misc.h [NEED_ENABLE_EXECUTE_STACK]:
24522 Export __enable_execute_stack() to modules.
24523 * kern/misc.c [NEED_ENABLE_EXECUTE_STACK] (__enable_execute_stack):
24524 New function.
24525
7fd75377 245262008-09-09 Felix Zielcke <fzielcke@z-51.de>
24527
040030b3 24528 * Makefile.in (RMKFILES): Add `i386.rmk' and `x86_64-efi.rmk'.
24529 Sort the list.
24530
245312008-09-09 Felix Zielcke <fzielcke@z-51.de>
24532
24533 * util/hostdisk.c: Replace #include <grub/util/biosdisk.h> with
7fd75377 24534 #include <grub/util/hostdisk.h>.
24535
89d5ffcf 245362008-09-08 Robert Millan <rmh@aybabtu.com>
24537
24538 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Skip
24539 segments when their filesz is zero (grub_file_read() interprets
81a06771 24540 zero-size as "read until EOF", which results in memory corruption).
89d5ffcf 24541 Use `lowest_segment' rather than 0 for calculating the current
24542 segment load address.
24543
40da438f 245442008-09-08 Robert Millan <rmh@aybabtu.com>
24545
24546 * util/hostdisk.c (open_device): Replace a grub_util_info() call
24547 with grub_dprintf("hostdisk", ...), as it was so verbose that it
24548 clobbered useful information.
24549
ddbf5556 245502008-09-08 Robert Millan <rmh@aybabtu.com>
24551
24552 * include/grub/util/biosdisk.h: Move to ...
24553 * include/grub/util/hostdisk.h: ... here. Update all users.
24554 * util/biosdisk.c: Move to ...
24555 * util/hostdisk.c: ... here. Update all users.
24556
783d0f48 245572008-09-07 Robert Millan <rmh@aybabtu.com>
24558
24559 * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): Remove
24560 variables.
24561 (grub_multiboot): Move `mbi' allocation upwards, so that mmap address
24562 and length can be stored directly in the `mbi->mmap_addr' and
24563 `mbi->mmap_length' struct fields.
24564
548e2ea5 245652008-09-07 Robert Millan <rmh@aybabtu.com>
24566
24567 * conf/i386.rmk: New file. Provides declaration for building
24568 `cpuid.mod'.
24569 * conf/i386-pc.rmk (pkglib_MODULES): Remove `cpuid.mod'.
24570 (cpuid_mod_SOURCES, cpuid_mod_CFLAGS, cpuid_mod_LDFLAGS): Remove
24571 variables.
24572 Include `conf/i386.mk'.
24573 * conf/i386-efi.rmk: Likewise.
24574 * conf/x86_64-efi.rmk: Likewise.
24575 * conf/i386-coreboot.rmk: Likewise.
24576 * conf/i386-ieee1275.rmk: Likewise.
24577
0ea85a37 245782008-09-07 Vesa Jääskeläinen <chaac@nic.fi>
24579
24580 Based on patch created by Colin D Bennett <colin@gibibit.com>.
24581 Adds optimization support for BGR based modes.
24582
24583 * include/grub/i386/pc/vbeblit.h (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8) Removed.
24584 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
24585 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
24586 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
24587 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
24588 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
24589 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
24590 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
24591 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
24592 (grub_video_i386_vbeblit_index_index): Likewise.
24593 (grub_video_i386_vbeblit_replace_directN): Added.
24594 (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
24595 (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
24596 (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
24597 (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
24598 (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
24599 (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
81a06771 24600 (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
0ea85a37 24601 (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
24602 (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
24603 (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
24604 (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
24605 (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
24606 (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
24607
24608 * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8) Removed.
24609 (grub_video_i386_vbefill_R8G8B8): Likewise.
24610 (grub_video_i386_vbefill_index): Likewise.
24611 (grub_video_i386_vbefill_direct32): Added.
24612 (grub_video_i386_vbefill_direct24): Likewise.
24613 (grub_video_i386_vbefill_direct16): Likewise.
24614 (grub_video_i386_vbefill_direct8): Likewise.
24615
81a06771 24616 * include/grub/video.h (grub_video_blit_format): Removed
0ea85a37 24617 GRUB_VIDEO_BLIT_FORMAT_R8G8B8A8, GRUB_VIDEO_BLIT_FORMAT_R8G8B8.
24618 (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_RGBA_8888,
24619 GRUB_VIDEO_BLIT_FORMAT_BGRA_8888, GRUB_VIDEO_BLIT_FORMAT_RGB_888,
24620 GRUB_VIDEO_BLIT_FORMAT_BGR_888, GRUB_VIDEO_BLIT_FORMAT_RGB_565,
24621 GRUB_VIDEO_BLIT_FORMAT_BGR_565.
81a06771 24622
0ea85a37 24623 * video/video.c (grub_video_get_blit_format): Updated to use new
24624 blit formats. Added handling for 16 bit color modes.
81a06771 24625
24626 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Updated to use new
0ea85a37 24627 fillers.
24628 (common_blitter): Updated to use new blitters.
24629
24630 * video/i386/pc/vbeblit.c (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8):
24631 Removed.
24632 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
24633 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
24634 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
24635 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
24636 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
24637 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
24638 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
24639 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
24640 (grub_video_i386_vbeblit_index_index): Likewise.
24641 (grub_video_i386_vbeblit_replace_directN): Added.
24642 (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
24643 (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
24644 (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
24645 (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
24646 (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
24647 (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
24648 (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
24649 (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
24650 (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
24651 (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
24652 (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
24653 (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
24654 (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
81a06771 24655
0ea85a37 24656 * video/i386/pc/vbefill.c (grub_video_i386_vbefill_R8G8B8A8): Removed.
24657 (grub_video_i386_vbefill_R8G8B8): Likewise.
24658 (grub_video_i386_vbefill_index): Likewise.
24659 (grub_video_i386_vbefill_direct32): Added.
24660 (grub_video_i386_vbefill_direct24): Likewise.
24661 (grub_video_i386_vbefill_direct16): Likewise.
24662 (grub_video_i386_vbefill_direct8): Likewise.
81a06771 24663
0ea85a37 24664 * video/readers/jpeg.c (grub_jpeg_decode_sos): Adapt to new blitter
24665 types.
81a06771 24666
0ea85a37 24667 * video/readers/tga.c (grub_video_reader_tga): Adapt to new blitter
24668 types.
81a06771 24669
0ea85a37 24670 * video/readers/png.c (grub_png_decode_image_header): Adapt to new
24671 blitter types.
81a06771 24672
0ea85a37 24673 * video/bitmap.c (grub_video_bitmap_create): Adapt to new blitter
24674 types.
24675
e8a83df6 246762008-09-06 Felix Zielcke <fzielcke@z-51.de>
24677
24678 * disk/raid.c (insert_array): Set `array->chunk_size' to 64 for
24679 RAID level 1.
24680
6bcd8ee5 246812008-09-06 Felix Zielcke <fzielcke@z-51.de>
c375ae58 24682
6bcd8ee5 24683 * fs/iso9660.c (grub_iso9660_date): New structure.
24684 (grub_iso9660_primary_voldesc): Add `grub_iso9660_date' member.
24685 (grub_iso9660_uuid): New function.
c375ae58 24686
59261157 246872008-09-05 Bean <bean123ch@gmail.com>
24688
24689 * fs/fshelp.c (grub_fshelp_find_file): Handle case insensitive names.
24690
24691 * fs/ntfs.c (list_file): Ignore names in DOS namespace, set the case
24692 insensitive bit for names in Win32 and Win32 & DOS namespace.
24693
24694 * include/grub/fshelp.h (GRUB_FSHELP_CASE_INSENSITIVE): New macro.
24695
24696 * include/grub/types.h (LONG_MAX): Likewise.
24697
58b6645a 246982008-09-04 Felix Zielcke <fzielcke@z-51.de>
24699
4ee55921 24700 * util/getroot.c: Include <config.h>.
24701 (grub_util_get_grub_dev): Rewrite to use asprintf for mdraid devices,
24702 add support for /dev/md/N devices and handle LVM double dash escaping.
24703
247042008-09-04 Felix Zielcke <fzielcke@z-51.de>
24705
24706 * config.guess: Update to latest version from config git.
24707 * config.sub: Likewise.
58b6645a 24708
9124f65d 247092008-09-03 Robert Millan <rmh@aybabtu.com>
24710
24711 * disk/scsi.c (grub_scsi_open): Remove size limit when printing
24712 `disk->total_sectors'.
24713
81a06771 247142008-09-01 Colin D Bennett <colin@gibibit.com>
a0224a4e 24715
24716 * include/grub/normal.h: Fixed incorrect comment for
24717 GRUB_COMMAND_FLAG_NO_ARG_PARSE.
24718
81a06771 247192008-09-01 Colin D Bennett <colin@gibibit.com>
f0619958 24720
24721 * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Replaced constant
24722 values with defines.
24723
24724 * include/grub/i386/pc/vbe.h (GRUB_VBE_MODEATTR_SUPPORTED): Added.
24725 (GRUB_VBE_MODEATTR_RESERVED_1): Likewise.
24726 (GRUB_VBE_MODEATTR_BIOS_TTY_OUTPUT_SUPPORT): Likewise.
24727 (GRUB_VBE_MODEATTR_COLOR): Likewise.
24728 (GRUB_VBE_MODEATTR_GRAPHICS): Likewise.
24729 (GRUB_VBE_MODEATTR_VGA_COMPATIBLE): Likewise.
24730 (GRUB_VBE_MODEATTR_VGA_WINDOWED_AVAIL): Likewise.
24731 (GRUB_VBE_MODEATTR_LFB_AVAIL): Likewise.
24732 (GRUB_VBE_MODEATTR_DOUBLE_SCAN_AVAIL): Likewise.
24733 (GRUB_VBE_MODEATTR_INTERLACED_AVAIL): Likewise.
24734 (GRUB_VBE_MODEATTR_TRIPLE_BUF_AVAIL): Likewise.
24735 (GRUB_VBE_MODEATTR_STEREO_AVAIL): Likewise.
24736 (GRUB_VBE_MODEATTR_DUAL_DISPLAY_START): Likewise.
24737 (GRUB_VBE_MEMORY_MODEL_TEXT): Likewise.
24738 (GRUB_VBE_MEMORY_MODEL_CGA): Likewise.
24739 (GRUB_VBE_MEMORY_MODEL_HERCULES): Likewise.
24740 (GRUB_VBE_MEMORY_MODEL_PLANAR): Likewise.
24741 (GRUB_VBE_MEMORY_MODEL_NONCHAIN4_256): Likewise.
24742 (GRUB_VBE_MEMORY_MODEL_YUV): Likewise.
24743
93d5cbf8 247442008-08-31 Robert Millan <rmh@aybabtu.com>
24745
24746 * loader/i386/pc/multiboot.c (grub_get_multiboot_mmap_len): Fix
24747 declaration.
24748 (grub_multiboot): Fix a few warnings.
24749
21751d50 247502008-08-31 Robert Millan <rmh@aybabtu.com>
24751
24752 * loader/i386/pc/multiboot.c: Update comment not to say that
24753 boot_device support is unimplemented.
24754
e27a75c5 247552008-08-31 Robert Millan <rmh@aybabtu.com>
24756
24757 * loader/i386/pc/multiboot.c: Update comment not to say that a.out
24758 or memory map support are unimplemented.
24759
81a06771 247602008-08-31 Colin D Bennett <colin@gibibit.com>
64d2d53c 24761
24762 * util/i386/pc/grub-mkrescue.in: Support multiple overlay directories.
24763
81a06771 247642008-08-31 Colin D Bennett <colin@gibibit.com>
c08a6c18 24765
24766 * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Show VBE version and
24767 total video memory in 'vbeinfo' output; show color format details for
24768 each video mode.
24769
7c5d8d95 247702008-08-30 Pavel Roskin <proski@gnu.org>
24771
24772 * util/genmoddep.c: Remove for real this time.
24773 * DISTLIST: Remove util/genmoddep.c.
24774
4cebd25a 247752008-08-30 Robert Millan <rmh@aybabtu.com>
24776
24777 * kern/i386/pc/startup.S (multiboot_header): Force 4-byte alignment
24778 as required by Multiboot spec (it was already 4-byte aligned, but
24779 only by chance).
24780
b497a269 247812008-08-29 Pavel Roskin <proski@gnu.org>
24782
e3925185 24783 * kern/powerpc/ieee1275/crt0.S: Rename to ...
24784 * kern/powerpc/ieee1275/startup.S: ... this.
24785 * conf/powerpc-ieee1275.rmk: Adjust for the above.
24786 * DISTLIST: Likewise.
24787
b497a269 24788 * kern/powerpc/ieee1275/crt0.S: Include grub/symbol.h and
24789 grub/cpu/kernel.h. Add start label for consistency with other
24790 platforms. Add grub_prefix immediately after start. Add jump
24791 to the code after grub_prefix.
24792 * include/grub/powerpc/kernel.h: Provide valid values for
24793 GRUB_KERNEL_CPU_PREFIX and GRUB_KERNEL_CPU_DATA_END.
24794
6e5a42fe 247952008-08-29 Bean <bean123ch@gmail.com>
24796
24797 * configure.ac: Change host_os to cygwin for mingw.
24798 (asprintf): New check for function.
24799
24800 * include/grub/symbol.h: Replace #ifndef __CYGWIN__ with
24801 #if ! defined (__CYGWIN__) && ! defined (__MINGW32__).
24802
24803 * include/grub/util/misc.h: #include <config.h> and <grub/types.h>,
81a06771 24804 declare asprintf if HAVE_ASPRINTF is not set, declare fseeko, ftello,
6e5a42fe 24805 sync, sleep and grub_util_get_disk_size for mingw.
24806
24807 * util/biosdisk.c (grub_util_biosdisk_open): Use grub_util_get_disk_size
24808 to get size in mingw.
24809 (open_device): Use flag O_BINARY if it's defined.
24810 (find_root_device): Add dummy code for mingw.
24811
24812 * util/grub-mkdevicemap.c (get_floppy_disk_name): Return 0 for mingw.
24813 (get_ide_disk_name): Return //./PHYSICALDRIVE%d for mingw.
24814 (get_scsi_disk_name): Return 0 for mingw.
24815
24816 * util/hostfs.c: #include <grub/util/misc.h>.
24817 (grub_hostfs_open): Use "rb" flag to open file, use
24818 grub_util_get_disk_size to get disk size for mingw.
24819
24820 * util/misc.c: #include <windows.h> and <winioctl.h> in mingw.
24821 (asprintf): New function if HAVE_ASPRINTF is not set.
24822 (sync): New function for mingw.
24823 (sleep): Likewise.
24824 (grub_util_get_disk_size): Likewise.
24825
ab3f2673 248262008-08-28 Pavel Roskin <proski@gnu.org>
24827
24828 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
24829 kern/time.c.
24830
1c282483 248312008-08-28 Robert Millan <rmh@aybabtu.com>
24832
24833 * util/biosdisk.c (find_grub_drive): Declare missing `i' variable.
24834
678e849c 248352008-08-28 Robert Millan <rmh@aybabtu.com>
24836
24837 Change find_grub_drive() syntax so it doesn't prevent it from
24838 detecting NULL names as errors.
24839
24840 * util/biosdisk.c (find_grub_drive): Move free slot search code
24841 from here ...
24842 (find_free_slot): ... to here.
24843 (read_device_map): Use find_free_slot() to search for free slots.
24844
965c75ca 248452008-08-27 Marco Gerards <marco@gnu.org>
24846
24847 * conf/common.rmk (pkglib_MODULES): Add scsi.mod.
24848 (scsi_mod_SOURCES): New variable.
24849 (scsi_mod_CFLAGS): Likewise
24850 (scsi_mod_LDFLAGS): Likewise.
24851
24852 * disk/scsi.c: New file.
24853
24854 * include/grub/scsi.h: Likewise.
24855
24856 * include/grub/scsicmd.h: Likewise.
24857
24858 * disk/ata.c: Include <grub/scsi.h>.
24859 (grub_atapi_packet): Do not use grub_ata_cmd, use registers
24860 instead.
24861 (grub_ata_iterate): Skip ATAPI devices.
24862 (grub_ata_open): Only handle ATAPI devices.
24863 (struct grub_atapi_read): Removed.
24864 (grub_atapi_readsector): Likewise.
24865 (grub_ata_read): No longer handle ATAPI devices.
24866 (grub_ata_write): Likewise.
24867 (grub_atapi_iterate): New function.
24868 (grub_atapi_read): Likewise.
24869 (grub_atapi_write): Likewise.
24870 (grub_atapi_open): Likewise.
24871 (grub_atapi_close): Likewise.
24872 (grub_atapi_dev): New variable.
24873 (GRUB_MOD_INIT(ata)): Register ATAPI as SCSI device.
24874 (GRUB_MOD_FINI(ata)): Unregister ATAPI.
24875
24876 * include/grub/disk.h (enum grub_disk_dev_id): Add
24877 `GRUB_DISK_DEVICE_SCSI_ID'.
24878
c07ae501 248792008-08-26 Robert Millan <rmh@aybabtu.com>
24880
24881 * util/biosdisk.c (grub_util_biosdisk_open, open_device)
24882 (grub_util_biosdisk_get_grub_dev): Make error messages a bit more
24883 descriptive.
24884
5ed20adc 248852008-08-23 Bean <bean123ch@gmail.com>
24886
24887 * conf/common.rmk (grub_probe_SOURCES): Add disk/mdraid_linux.c.
24888 (grub_fstest_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
24889 disk/mdraid_linux.c and disk/dmraid_nvidia.c and lib/crc.c.
24890 (pkglib_MODULES): Add raid5rec.mod, raid6rec.mod, mdraid.mod and
24891 dm_nv.mod.
24892 (raid5rec_mod_SOURCES): New macro.
24893 (raid5rec_mod_CFLAGS): Likewise.
24894 (raid5rec_mod_LDFLAGS): Likewise.
24895 (raid6rec_mod_SOURCES): Likewise.
24896 (raid6rec_mod_CFLAGS): Likewise.
24897 (raid6rec_mod_LDFLAGS): Likewise.
24898 (mdraid_mod_SOURCES): Likewise.
24899 (mdraid_mod_CFLAGS): Likewise.
24900 (mdraid_mod_LDFLAGS): Likewise.
24901 (dm_nv_mod_SOURCES): Likewise.
24902 (dm_nv_mod_CFLAGS): Likewise.
24903 (dm_nv_mod_LDFLAGS): Likewise.
24904
24905 * conf/i386-pc.rmk (grub_setup_SOURCES): Add disk/mdraid_linux.c.
24906 (grub_emu_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
24907 disk/mdraid_linux.c and disk/dmraid_nvidia.c.
24908
24909 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add disk/raid5_recover.c,
24910 disk/raid6_recover.c, disk/mdraid_linux.c and disk/dmraid_nvidia.c.
24911
24912 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
24913
24914 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
24915
24916 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
24917
24918 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
24919
24920 * disk/raid5_recover.c: New file.
24921
24922 * disk/raid6_recover.c: Likewise.
24923
24924 * disk/mdraid_linux.c: Likewise.
24925
24926 * disk/dmraid_nvidia.c: Likewise.
24927
24928 * disk/i386/pc/biosdisk.c: Set total_sectors of cdrom device to
24929 ULONG_MAX.
24930
24931 * disk/raid.c (grub_raid_open): Use the size of the smallest disk to
24932 calculate the size of raid device.
24933 (grub_raid_read): Simplify raid0 code. Support raid4, raid6 and four
24934 different layout of raid5.
24935 (grub_raid_scan_device): Remove code specific to mdraid.
24936 (grub_raid_list): New variable.
24937 (free_array): New function.
24938 (grub_raid_register): Likewise.
24939 (grub_raid_unregister): Likewise.
24940 (grub_raid_rescan): Likewise.
24941 (GRUB_MOD_INIT): Don't iterate device here.
24942 (GRUB_MOD_FINI): Use free_array to release resource.
24943
24944 * include/grub/raid.h: Remove macro and structure specific to mdraid.
24945 (grub_raid5_recover_func_t): New function variable type.
24946 (grub_raid6_recover_func_t): Likewise.
24947 (grub_raid5_recover_func): New variable.
24948 (grub_raid6_recover_func): Likewise.
24949 (grub_raid_register): New function.
24950 (grub_raid_unregister): Likewise.
24951 (grub_raid_rescan): Likewise.
24952 (grub_raid_block_xor): Likewise.
24953
24954 * util/grub-fstest.c: Add #include <grub/raid.h> and <grub/lib/crc.h>.
24955 (CMD_CRC): New macro.
24956 (part): Removed.
24957 (read_file): Handle device as well as file.
24958 (cmd_crc): New function.
24959 (fstest): Handle multiple disks.
24960 (options): Remove part, raw and long, add root and diskcount.
24961 (usage): Add crc, remove -p, -r, -l, add -r and -c.
dba3f844 24962 (main): Find the first non option entry and ignore subsequent options,
5ed20adc 24963 add handling for the new options, support multiple disks.
24964
24965 * util/grub-probe.c (probe): Add mdraid to abstraction_name.
24966
29c18915 249672008-08-23 Bean <bean123ch@gmail.com>
24968
24969 * normal/x86_64/setjmp.S (grub_longjmp): Return 1 when val = 0.
24970
24971 * genfslist.sh: Ignore kernel.mod.
24972
24973 * genpartmaplist.sh: Likewise.
24974
8415f261 249752008-08-23 Robert Millan <rmh@aybabtu.com>
24976
24977 * util/getroot.c (find_root_device): Skip anything that starts with
24978 a dot, not just directories. This avoids things like /dev/.tmp.md0.
24979
d5a7dc5b 249802008-08-22 Felix Zielcke <fzielcke@z-51.de>
81a06771 24981
d5a7dc5b 24982 * util/update-grub.in (GRUB_GFXMODE): Export variable.
24983 * util/grub.d/00_header.in: Allow the administrator to change default
24984 gfxmode via ${GRUB_GFXMODE}.
24985
380cfbb4 249862008-08-21 Felix Zielcke <fzielcke@z-51.de>
24987
24988 * fs/ntfs.c (grub_ntfs_mount): Fix a memory leak.
24989
c9baafe7 249902008-08-21 Robert Millan <rmh@aybabtu.com>
24991
24992 * loader/i386/linux.c: New file. Implements generic 32-bit Linux
24993 loader.
24994 * conf/i386-coreboot.rmk (_linux_mod_SOURCES): Replace
24995 `loader/i386/pc/linux.c' with `loader/i386/linux.c'.
24996
e290bef2 249972008-08-20 Carles Pina i Estany <carles@pina.cat>
24998
24999 * menu/normal.c (run_menu): Replace hardcoded numbers with macros
25000 (16 for GRUB_TERM_UP and 14 for GRUB_TERM_DOWN)
25001
f9dbfc96 250022008-08-19 Robert Millan <rmh@aybabtu.com>
25003
25004 * term/gfxterm.c (DEFAULT_CURSOR_COLOR): Remove.
25005 (struct grub_virtual_screen): Remove `cursor_color'.
25006 (grub_virtual_screen_setup): Remove `virtual_screen.cursor_color'
25007 initialization.
25008 (write_cursor): Use `virtual_screen.fg_color' to draw cursor.
25009
dd6bd6ab 250102008-08-18 Robert Millan <rmh@aybabtu.com>
25011
25012 Unify (identical) linux_normal.c files.
25013 * loader/i386/efi/linux_normal.c: Move from here ...
25014 * loader/linux_normal.c: ... to here. Update all users.
25015 * loader/i386/pc/linux_normal.c: Delete. Update all users.
25016 * loader/i386/ieee1275/linux_normal.c: Likewise.
25017
7f42f83e 250182008-08-18 Robert Millan <rmh@aybabtu.com>
25019
25020 * include/grub/i386/linux.h (LINUX_LOADER_ID_LILO)
25021 (LINUX_LOADER_ID_LOADLIN, LINUX_LOADER_ID_BOOTSECT)
25022 (LINUX_LOADER_ID_SYSLINUX, LINUX_LOADER_ID_ETHERBOOT)
25023 (LINUX_LOADER_ID_ELILO, LINUX_LOADER_ID_GRUB, LINUX_LOADER_ID_UBOOT)
25024 (LINUX_LOADER_ID_XEN, LINUX_LOADER_ID_GUJIN, LINUX_LOADER_ID_QEMU):
25025 New macros.
25026 (GRUB_LINUX_CL_OFFSET, GRUB_LINUX_CL_END_OFFSET): Move from here ...
25027 * loader/i386/pc/linux.c (GRUB_LINUX_CL_OFFSET)
25028 (GRUB_LINUX_CL_END_OFFSET): ... to here.
25029 * loader/i386/efi/linux.c (GRUB_EFI_CL_OFFSET): Rename to ...
25030 (GRUB_LINUX_CL_OFFSET): ... this. Update all users.
25031 (GRUB_EFI_CL_END_OFFSET): Rename to ...
25032 (GRUB_LINUX_CL_END_OFFSET): ... this. Update all users.
25033 (grub_rescue_cmd_linux): Macroify `type_of_loader' initialization.
25034 Initialize `params->video_cursor_x' and `params->video_cursor_y'
25035 portably using grub_getxy().
25036 Replace `-EFI' with `-bzImage' in boot message.
25037
38487ddb 250382008-08-17 Robert Millan <rmh@aybabtu.com>
25039
25040 * include/grub/x86_64/kernel.h: New file (<grub/i386/kernel.h> stub).
25041
deceb3ec 250422008-08-17 Robert Millan <rmh@aybabtu.com>
25043
25044 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pc/mmap.c'.
25045
25046 * include/grub/i386/pc/init.h (GRUB_MACHINE_MEMORY_AVAILABLE)
25047 (GRUB_MACHINE_MEMORY_RESERVED): New macros.
25048 (grub_machine_mmap_iterate): New function declaration.
25049 * include/grub/multiboot.h (struct grub_multiboot_mmap_entry): New
25050 structure.
25051 (GRUB_MMAP_MEMORY_AVAILABLE, GRUB_MMAP_MEMORY_RESERVED): New
25052 macros.
25053
25054 * kern/i386/pc/init.c (grub_machine_init): Replace hardcoded region
25055 type check value with `GRUB_MACHINE_MEMORY_AVAILABLE'.
25056 Move e820 parsing from here ...
25057 * kern/i386/pc/mmap.c: New file.
25058 (grub_machine_mmap_iterate): ... to here.
25059
25060 * include/grub/i386/coreboot/memory.h: Remove `<grub/err.h>'.
25061 (GRUB_LINUXBIOS_MEMORY_AVAILABLE): Rename (for consistency) to ...
25062 (GRUB_MACHINE_MEMORY_AVAILABLE): ... this. Update all users.
25063 (grub_available_iterate): Redeclare to return `void', and redeclare
25064 its hook to use grub_uint64_t as addr and size parameters, and rename
25065 to ...
25066 (grub_machine_mmap_iterate): ... this. Update all users.
25067
25068 * kern/i386/coreboot/mmap.c (grub_mmap_iterate): Simplify parser loop
25069 to make it more readable. Rename to ...
25070 (grub_machine_mmap_iterate): ... this.
25071
25072 * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): New variables.
25073 (grub_get_multiboot_mmap_len, grub_fill_multiboot_mmap): New functions.
25074 (grub_multiboot): Allocate an extra region after the payload, and fill
25075 it with a Multiboot memory map. Adjust a.out loader to calculate size
25076 with the extra space.
25077 (grub_multiboot_load_elf32): Adjust elf32 loader to calculate size
25078 with the extra space.
25079
f8aa0f43 250802008-08-17 Carles Pina i Estany <carles@pina.cat>
25081
9807deb9 25082 * menu/normal.c (run_menu): Add Home and End keys in grub-menu.
f8aa0f43 25083
605f5bb6 250842008-08-17 Felix Zielcke <fzielcke@z-51.de>
25085
25086 * gendistlist.sh: Add *.y, *.tex, *.texi, grub.cfg, README, *.sc,
25087 mdate-sh to the list `find' searches for.
25088 * DISTLIST: Regenerated.
25089
210db6c6 250902008-08-16 Felix Zielcke <fzielcke@z-51.de>
25091
25092 * gendistlist.sh (EXTRA_DISTFILES): Remove gensymlist.sh,
25093 genkernsyms.sh. Add geninit.sh, geninitheader.sh, genkernsyms.sh.in,
48cdbfd4 25094 genmoddep.awk, gensymlist.sh.in.
25095 (DISTDIRS): Add bus, docs, hook, lib.
210db6c6 25096 * DISTLIST: Regenerated.
48cdbfd4 25097 * NEWS: Add cygwin support and change the `os-prober' entry a bit.
210db6c6 25098
1082b929 250992008-08-16 Robert Millan <rmh@aybabtu.com>
25100
25101 * disk/raid.c (grub_raid_init): Handle/report errors set by
25102 grub_device_iterate().
25103 * disk/lvm.c (grub_lvm_init): Likewise.
25104
42ce5170 251052008-08-15 Bean <bean123ch@gmail.com>
25106
25107 * conf/i386-pc.rmk (pkglib_MODULES): Add datetime.mod, date.mod
25108 and datehook.mod.
25109 (datetime_mod_SOURCES): New macro.
25110 (datetime_mod_CFLAGS): Likewise.
25111 (datetime_mod_LDFLAGS): Likewise.
25112 (date_mod_SOURCES): Likewise.
25113 (date_mod_CFLAGS): Likewise.
25114 (date_mod_LDFLAGS): Likewise.
25115 (datehook_mod_SOURCES): Likewise.
25116 (datehook_mod_CFLAGS): Likewise.
25117 (datehook_mod_LDFLAGS): Likewise.
25118
25119 * conf/i386-coreboot.rmk (pkglib_MODULES): Add datetime.mod, date.mod
25120 and datehook.mod.
25121 (datetime_mod_SOURCES): New macro.
25122 (datetime_mod_CFLAGS): Likewise.
25123 (datetime_mod_LDFLAGS): Likewise.
25124 (date_mod_SOURCES): Likewise.
25125 (date_mod_CFLAGS): Likewise.
25126 (date_mod_LDFLAGS): Likewise.
25127 (datehook_mod_SOURCES): Likewise.
25128 (datehook_mod_CFLAGS): Likewise.
25129 (datehook_mod_LDFLAGS): Likewise.
25130
25131 * conf/i386-ieee1275.rmk (pkglib_MODULES): Add datetime.mod, date.mod
25132 and datehook.mod.
25133 (datetime_mod_SOURCES): New macro.
25134 (datetime_mod_CFLAGS): Likewise.
25135 (datetime_mod_LDFLAGS): Likewise.
25136 (date_mod_SOURCES): Likewise.
25137 (date_mod_CFLAGS): Likewise.
25138 (date_mod_LDFLAGS): Likewise.
25139 (datehook_mod_SOURCES): Likewise.
25140 (datehook_mod_CFLAGS): Likewise.
25141 (datehook_mod_LDFLAGS): Likewise.
25142
25143 * conf/i386-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
25144 and datehook.mod.
25145 (datetime_mod_SOURCES): New macro.
25146 (datetime_mod_CFLAGS): Likewise.
25147 (datetime_mod_LDFLAGS): Likewise.
25148 (date_mod_SOURCES): Likewise.
25149 (date_mod_CFLAGS): Likewise.
25150 (date_mod_LDFLAGS): Likewise.
25151 (datehook_mod_SOURCES): Likewise.
25152 (datehook_mod_CFLAGS): Likewise.
25153 (datehook_mod_LDFLAGS): Likewise.
25154
25155 * conf/x86_64-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
25156 and datehook.mod.
25157 (datetime_mod_SOURCES): New macro.
25158 (datetime_mod_CFLAGS): Likewise.
25159 (datetime_mod_LDFLAGS): Likewise.
25160 (date_mod_SOURCES): Likewise.
25161 (date_mod_CFLAGS): Likewise.
25162 (date_mod_LDFLAGS): Likewise.
25163 (datehook_mod_SOURCES): Likewise.
25164 (datehook_mod_CFLAGS): Likewise.
25165 (datehook_mod_LDFLAGS): Likewise.
25166
25167 * kern/env.c (grub_env_insert): Fix a bug in prevp pointer.
25168
25169 * commands/date.c: New file.
25170
25171 * hook/datehook.c: Likewise.
25172
25173 * include/grub/lib/datetime.h: Likewise.
25174
25175 * include/grub/i386/cmos.h: Likewise.
25176
25177 * lib/datetime.c: Likewise.
25178
25179 * lib/i386/datetime.c: Likewise.
25180
25181 * lib/efi/datetime.c: Likewise.
25182
0e9242da 251832008-08-14 Robert Millan <rmh@aybabtu.com>
25184
25185 * conf/common.rmk (bin_UTILITIES): Add `grub-mkelfimage'.
25186 (grub_mkelfimage_SOURCES): New variable.
25187 (util/elf/grub-mkimage.c_DEPENDENCIES): Likewise.
25188
25189 * conf/i386-coreboot.rmk (bin_UTILITIES, grub_mkimage_SOURCES)
25190 (grub_mkimage_LDFLAGS, util/elf/grub-mkimage.c_DEPENDENCIES): Remove.
25191 * conf/powerpc-ieee1275.rmk: Likewise.
25192 * conf/i386-ieee1275.rmk: Likewise.
25193
25194 * kern/ieee1275/init.c: Include `<grub/cpu/kernel.h>'.
25195 * kern/i386/coreboot/init.c: Likewise.
25196
25197 * kern/i386/ieee1275/startup.S: Replace `<grub/machine/kernel.h>'
25198 with `<grub/cpu/kernel.h>'.
25199 (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Renamed
25200 to ...
25201 (GRUB_KERNEL_CPU_PREFIX, GRUB_KERNEL_CPU_DATA_END): ... this.
25202 * kern/i386/coreboot/startup.S: Likewise.
25203
25204 * include/grub/powerpc/ieee1275/kernel.h (GRUB_MOD_ALIGN)
25205 (GRUB_MOD_GAP): Remove.
25206 * include/grub/powerpc/kernel.h: New file.
25207 * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX)
25208 (GRUB_KERNEL_MACHINE_DATA_END): Remove.
25209 * include/grub/i386/kernel.h: New file.
25210 * include/grub/i386/coreboot/kernel.h (GRUB_MOD_ALIGN)
25211 (GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_PREFIX)
25212 (GRUB_KERNEL_MACHINE_DATA_END): Remove.
25213
25214 * util/ieee1275/grub-install.in (grub_mkimage): Initialize to use
25215 `grub-mkelfimage'.
25216 Use --directory when invoking grub_mkimage.
25217
25218 * util/elf/grub-mkimage.c: Include `<grub/cpu/kernel.h>'.
25219 (add_segments): Replace GRUB_KERNEL_MACHINE_DATA_END and
25220 GRUB_KERNEL_MACHINE_PREFIX with GRUB_KERNEL_CPU_DATA_END
25221 and GRUB_KERNEL_CPU_PREFIX.
25222
b86408f8 252232008-08-14 Felix Zielcke <fzielcke@z-51.de>
25224
d5e619ca 25225 * include/grub/err.h (grub_err_printf): New function prototype.
25226 * util/misc.c (grub_err_printf): New function.
25227 * kern/misc.c [! GRUB_UTIL] (grub_err_printf): New alias for
25228 grub_printf.
25229 * kern/err.c (grub_print_error): Use grub_err_printf.
b86408f8 25230
7161f0e0 252312008-08-13 Robert Millan <rmh@aybabtu.com>
25232
25233 * docs/grub.cfg: Remove `/dev/' prefix in GNU/Hurd boot entry.
25234
a1967522 252352008-08-13 Robert Millan <rmh@aybabtu.com>
25236
25237 * docs/grub.cfg: Use the native device name for the example GNU/Hurd
25238 boot entry.
25239
371458b5 252402008-08-12 Robert Millan <rmh@aybabtu.com>
25241
25242 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Move part
25243 of the relocation code from here ...
25244 (grub_multiboot): ... to here.
25245 (forward_relocator, backward_relocator): Move from here ...
25246 * kern/i386/loader.S (grub_multiboot_forward_relocator)
25247 (grub_multiboot_backward_relocator): ... to here.
25248 (grub_multiboot_real_boot): Use %edx for entry offset. Put Multiboot
25249 magic in %eax. Use %ebp for jumping (so %edx is not trashed).
25250 * include/grub/i386/loader.h (grub_multiboot_forward_relocator)
25251 (grub_multiboot_forward_relocator_end)
25252 (grub_multiboot_backward_relocator)
25253 (grub_multiboot_backward_relocator_end): New variables.
25254
05f9452b 252552008-08-12 Bean <bean123ch@gmail.com>
25256
25257 * disk/raid.c (grub_raid_read): Fix a bug in raid0 code.
25258
20024ab0 252592008-08-11 Robert Millan <rmh@aybabtu.com>
25260
25261 * kern/i386/linuxbios/startup.S: Move from here ...
25262 * kern/i386/coreboot/startup.S: ... to here.
25263
25264 * kern/i386/linuxbios/init.c: Move from here ...
25265 * kern/i386/coreboot/init.c: ... to here.
25266
25267 * kern/i386/linuxbios/table.c: Move from here ...
25268 * kern/i386/coreboot/mmap.c: ... to here.
25269
25270 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Update moved files.
25271
e352e9cd 252722008-08-11 Robert Millan <rmh@aybabtu.com>
25273
25274 * kern/device.c (grub_device_open): Do not handle grub_disk_open()
25275 errors. Leave it to the upper layer to handle them.
25276
2d05bc6a 252772008-08-09 Christian Franke <franke@computer.org>
25278
25279 * Makefile.in: Add `target_os' and `enable_grub_pe2elf'.
25280 * conf/common.rmk: Install `grub-pe2elf' only if requested.
25281 Install `grub.d/10_windows' only on Cygwin.
25282 * configure.ac: Add subst of `target_os'.
25283 Check `target_os' also before setting TARGET_OBJ2ELF.
25284 Add `--enable-grub-pe2elf'.
25285
042bd419 252862008-08-08 Robert Millan <rmh@aybabtu.com>
25287
25288 * kern/disk.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
25289 (grub_last_time): Change type to grub_uint64_t.
25290 (grub_disk_open): Migrate code from to using grub_get_time_ms().
25291 (grub_disk_close): Likewise.
25292
25293 * normal/menu.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
25294 (run_menu): Migrate code from to using grub_get_time_ms().
25295
25296 * util/misc.c (grub_get_time_ms): New function.
25297
7f280db5 252982008-08-08 Marco Gerards <marco@gnu.org>
25299
25300 * disk/ata.c (grub_ata_regget): Change return type to
25301 `grub_uint8_t'.
25302 (grub_ata_regget2): Likewise.
25303 (grub_ata_wait_status): New function.
25304 (grub_ata_wait_busy): Removed function, updated all users to use
25305 `grub_ata_wait_status'.
25306 (grub_ata_wait_drq): Likewise.
25307 (grub_ata_cmd): New function.
25308 (grub_ata_pio_read): Change return type to `grub_uint8_t'. Add
25309 error handling.
25310 (grub_ata_pio_write): Add error handling.
25311 (grub_atapi_identify): Likewise.
25312 (grub_atapi_packet): Use `grub_ata_cmd' and improve error
25313 handling.
25314 (grub_ata_identify): Use `grub_ata_cmd' and improve error
25315 handling. Actually use the detected registers. Reorder the
25316 detection logic such that it is easier to read.
25317 (grub_ata_pciinit): Do not assign the same ID to each controller.
25318 (grub_ata_setaddress): Use `grub_ata_cmd' and improve error
25319 handling.
25320 (grub_atapi_readsector): Check the result of `grub_ata_pio_read'.
25321
25322 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TIMEOUT'.
25323
1fbc5e66 253242008-08-08 Marco Gerards <marco@gnu.org>
25325
25326 * NEWS: Update.
25327
819ce6c0 253282008-08-07 Bean <bean123ch@gmail.com>
25329
25330 * include/grub/x86_64/pci.h: New file.
25331
5c41d44d 253322008-08-07 Christian Franke <franke@computer.org>
25333
25334 * kern/i386/pit.c (TIMER2_SPEAKER): New define.
25335 (TIMER2_GATE): Likewise.
25336 (grub_pit_wait): Add enable/disable of the timer2 gate
25337 bit of port 0x61. This fixes a possible infinite loop.
25338
5ebc275d 253392008-08-07 Bean <bean123ch@gmail.com>
25340
25341 * conf/x86_64-efi.rmk (kernel_mod_SOURCES): Add kern/time.c,
25342 kern/i386/tsc.c and kern/i386/pit.c.
25343
25344 * include/grub/i386/tsc.h (grub_cpu_is_cpuid_supported): Handle
25345 x86_64 platform.
25346
25347 * kern/i386/efi/init.c: Replace <grub/cpu/tsc.h> with
25348 <grub/i386/tsc.h>.
25349
25350 * kern/i386/pit.c: Replace <grub/cpu/io.h> with <grub/i386/io.h>.
25351
e383b3d0 253522008-08-07 Bean <bean123ch@gmail.com>
25353
25354 * conf/i386-efi.rmk (kernel_mod_SOURCES): Add kern/time.c.
25355
25356 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add kern/time.c,
25357
25358 * include/grub/i386/pit.h: Use macro KERNEL_CPU_PIT_HEADER to avoid
25359 multiple inclusion. Add #include <grub/types.h>.
25360
1cbb58ac 253612008-08-06 Christian Franke <franke@computer.org>
25362
25363 * conf/common.rmk: Build and install `10_windows'.
25364 * util/grub.d/10_windows.in: New script.
25365
337f5a1e 253662008-08-06 Pavel Roskin <proski@gnu.org>
25367
25368 * kern/i386/pit.c: Include `<grub/i386/pit.h>'.
25369
057bc4ac 253702008-08-06 Robert Millan <rmh@aybabtu.com>
25371
25372 * conf/i386-coreboot.rmk (kernel_elf_ASFLAGS): New variable.
25373 * kern/i386/tsc.c: Include `<grub/i386/pit.h>'.
25374
2b99f123 253752008-08-06 Bean <bean123ch@gmail.com>
25376
25377 * fs/i386/pc/pxe.c (grub_pxe_data): New member block_size.
25378 (grub_pxefs_fs_int): Remove dummy definition.
25379 (grub_pxefs_open): Use data->block_size to store the current block
25380 size setting.
25381 (grub_pxefs_read): Use block size stored in data->block_size. As the
25382 value of grub_pxe_blksize can be changed after the file is opened.
25383
9f0234cb 253842008-08-06 Bean <bean123ch@gmail.com>
25385
25386 * fs/i386/pc/pxe.c (curr_file): new variable.
25387 (grub_pxefs_open): Simply the handling of pxe file system. Don't
25388 require the dummy internal file system anymore.
25389 (grub_pxefs_read): Removed.
25390 (grub_pxefs_close): Likewise.
25391 (grub_pxefs_fs_int): Likewise.
25392 (grub_pxefs_read_int): Renamed to grub_pxefs_read. Reinitialize tftp
25393 connection when we switch file.
25394 (grub_pxefs_close_int): Renamed to grub_pxefs_close.
25395
a55d42e0 253962008-08-06 Robert Millan <rmh@aybabtu.com>
25397
25398 * conf/i386-coreboot.rmk (pkglib_MODULES): Add `reboot.mod' and
25399 `halt.mod'.
25400 (reboot_mod_SOURCES, reboot_mod_CFLAGS, reboot_mod_LDFLAGS)
25401 (halt_mod_SOURCES, halt_mod_CFLAGS, halt_mod_LDFLAGS): New variables.
25402
25403 * kern/i386/halt.c: New file.
25404 * kern/i386/reboot.c: Likewise.
25405 * include/grub/i386/reboot.h: Likewise.
25406 * include/grub/i386/halt.h: Likewise.
25407
25408 * commands/halt.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]:
25409 Include `<grub/cpu/halt.h>'.
25410 * commands/reboot.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]
25411 [! GRUB_MACHINE_PCBIOS]: Include `<grub/cpu/reboot.h>'.
25412
25413 * term/i386/pc/at_keyboard.c: Include `<grub/cpu/at_keyboard.h>'.
25414 (SHIFT_L, SHIFT_R, CTRL, ALT, CAPS_LOCK, KEYBOARD_REG_DATA)
25415 (KEYBOARD_REG_STATUS, KEYBOARD_COMMAND_ISREADY, KEYBOARD_COMMAND_READ)
25416 (KEYBOARD_COMMAND_WRITE, KEYBOARD_COMMAND_REBOOT)
25417 (KEYBOARD_SCANCODE_SET1, KEYBOARD_ISMAKE, KEYBOARD_ISREADY)
25418 (KEYBOARD_SCANCODE, OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): Move
25419 from here ...
25420 * include/grub/i386/at_keyboard.h: ... to here.
25421
24371d26 254222008-08-05 Robert Millan <rmh@aybabtu.com>
25423
25424 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pit.c'.
25425 * conf/i386-efi.rmk (kernel_mod_SOURCES): Likewise.
25426 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Likewise. Also add
25427 `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
25428 `kern/generic/millisleep.c'.
25429
25430 * kern/i386/tsc.c (calibrate_tsc): Rewrite using grub_pit_wait()
25431 instead of grub_get_rtc().
25432 (grub_tsc_init): Initialize `tsc_boot_time'.
25433
25434 * kern/i386/linuxbios/init.c (grub_millisleep): Remove stub.
25435 (grub_machine_init): Use grub_tsc_init() rather than
25436 installing an RTC-based handler via grub_install_get_time_ms().
25437
25438 * kern/i386/pit.c: New file.
25439 * include/grub/i386/pit.h: Likewise.
25440
9e7007b3 254412008-08-05 Bean <bean123ch@gmail.com>
25442
25443 * boot/i386/pc/pxeboot.S (_start): Use drive number 0x7F for pxe.
25444
25445 * conf/i386-pc.rmk (kernel_img_HEADERS): Add machine/pxe.h.
25446 (pkglib_MODULES): Add pxe.mod and pxecmd.mod.
25447 (pxe_mod_SOURCES): New macro.
25448 (pxe_mod_CFLAGS): Likewise.
25449 (pxe_mod_LDFLAGS): Likewise.
25450 (pxecmd_mod_SOURCES): Likewise.
25451 (pxecmd_mod_CFLAGS): Likewise.
25452 (pxecmd_mod_LDFLAGS): Likewise.
25453
25454 * kern/i386/pc/startup.S (grub_pxe_scan): New function.
25455 (grub_pxe_call): Likewise.
25456
25457 * include/grub/disk.h (grub_disk_dev_id): Add GRUB_DISK_DEVICE_PXE_ID.
25458
25459 * commands/i386/pc/pxecmd.c: New file.
25460
9f0234cb 25461 * fs/i386/pc/pxe.c: Likewise.
9e7007b3 25462
25463 * include/grub/i386/pc/pxe.h: Likewise.
25464
6977d49f 254652008-08-05 Bean <bean123ch@gmail.com>
25466
25467 * util/console.c (grub_console_cur_color): New variable.
25468 (grub_console_standard_color): Likewise.
25469 (grub_console_normal_color): Likewise.
25470 (grub_console_highlight_color): Likewise.
25471 (color_map): Likewise.
25472 (use_color): Likewise.
25473 (NUM_COLORS): New macro.
25474 (grub_ncurses_setcolorstate): Handle color properly.
25475 (grub_ncurses_setcolor): Don't change color here, just remember the
25476 settings, color will be set in grub_ncurses_setcolorstate.
25477 (grub_ncurses_getcolor): New function.
25478 (grub_ncurses_init): Initialize color pairs.
25479 (grub_ncurses_term): New member grub_ncurses_getcolor.
25480
9c2ff3ee 254812008-08-05 Colin D Bennett <colin@gibibit.com>
337f5a1e 25482
9c2ff3ee 25483 High resolution timer support. Implemented for x86 CPUs using TSC.
25484 Extracted generic grub_millisleep() so it's linked in only as needed.
25485 This requires a Pentium compatible CPU; if the RDTSC instruction is
25486 not supported, then it falls back on the generic grub_get_time_ms()
25487 implementation that uses the machine's RTC.
25488
25489 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/time.c',
25490 `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
25491 `kern/generic/millisleep.c'.
25492
25493 * conf/i386-efi.rmk (kernel_mod_SOURCES): Add `kern/i386/tsc.c',
25494 `kern/generic/rtc_get_time_ms.c' and `kern/generic/millisleep.c'.
25495
25496 * conf/x86_64-efi.rml (kernel_mod_SOURCES): Add
25497 `kern/generic/millisleep.c' and `kern/generic/rtc_get_time_ms.c'.
25498
25499 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
25500
25501 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
25502 `kern/generic/millisleep.c'.
25503
25504 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
25505
25506 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Add `kern/time.c'.
25507
25508 * kern/generic/rtc_get_time_ms.c: New file.
25509
25510 * kern/generic/millisleep.c: New file.
337f5a1e 25511
9c2ff3ee 25512 * kern/misc.c: Don't include
25513 <kern/time.h> anymore.
25514 (grub_millisleep_generic): Removed.
25515
25516 * commands/sleep.c (grub_interruptible_millisleep): Uses
25517 grub_get_time_ms() instead of grub_get_rtc().
25518
25519 * include/grub/i386/tsc.h (grub_get_tsc): New file. New inline
25520 function.
25521 (grub_cpu_is_cpuid_supported): New inline function.
25522 (grub_cpu_is_tsc_supported): New inline function.
25523 (grub_tsc_init): New function prototype.
25524 (grub_tsc_get_time_ms): New function prototype.
25525
25526 * kern/i386/tsc.c (grub_get_time_ms): New file.
25527
25528 * include/grub/time.h: Include <grub/types.h.
25529 (grub_millisleep_generic): Removed.
25530 (grub_get_time_ms): New prototype.
25531 (grub_install_get_time_ms): New prototype.
25532 (grub_rtc_get_time_ms): New prototype.
25533
25534 * kern/time.c (grub_get_time_ms): New function.
25535 (grub_install_get_time_ms): New function.
25536
25537 * kern/i386/efi/init.c: Include <grub/cpu/tsc.h>. Don't include
25538 <grub/time.h> anymore.
25539 (grub_millisleep): Removed.
25540 (grub_machine_init): Call grub_tsc_init.
25541
25542 * kern/i386/linuxbios/init.c (grub_machine_init): Install the RTC
25543 get_time_ms() implementation.
25544
25545 * kern/sparc64/ieee1275/init.c (grub_millisleep): Removed.
25546 (ieee1275_get_time_ms): New function.
25547 (grub_machine_init): Install get_time_ms() implementation.
25548
25549 * kern/i386/pc/init.c: Include <grub/cpu/tsc.h>.
25550 (grub_machine_init): Call grub_tsc_init().
25551 (grub_millisleep): Removed.
bf06a93f 25552
9c2ff3ee 25553 * kern/ieee1275/init.c (grub_millisleep): Removed.
25554 (grub_machine_init): Install ieee1275_get_time_ms()
25555 implementation.
25556 (ieee1275_get_time_ms): New function.
25557 (grub_get_rtc): Now calls ieee1275_get_time_ms(), which does the
25558 real work.
25559
9ec92aaf 255602008-08-05 Marco Gerards <marco@gnu.org>
25561
25562 * disk/ata.c: Include <grub/pci.h>.
25563 (enum grub_ata_commands): Add `GRUB_ATA_CMD_EXEC_DEV_DIAGNOSTICS'.
25564 (grub_ata_initialize): Rewritten.
25565 (grub_ata_device_initialize): New function.
25566
8d23f507 255672008-08-04 Pavel Roskin <proski@gnu.org>
25568
25569 * kern/main.c: Include grub/mm.h.
25570
5e15ee3d 255712008-08-04 Robert Millan <rmh@aybabtu.com>
25572
25573 * conf/i386-coreboot.rmk (COMMON_ASFLAGS, COMMON_CFLAGS)
25574 (COMMON_LDFLAGS): Harmonize with i386-pc version (fixes a code
25575 corruption problem).
25576
a9053f8f 255772008-08-04 Robert Millan <rmh@aybabtu.com>
25578
25579 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Fix misc
25580 warnings introduced in my last commit.
25581
dd19c7d7 255822008-08-03 Robert Millan <rmh@aybabtu.com>
25583
25584 Make PCI available on all i386 architectures.
25585
25586 * include/grub/i386/pc/pci.h: Move from here ...
25587 * include/grub/i386/pci.h: ... to here.
25588
25589 * include/grub/i386/pc/pci.h: Remove.
25590 * include/grub/i386/efi/pci.h: Remove.
25591 * include/grub/x86_64/efi/pci.h: Remove.
25592
25593 * include/grub/pci.h: Replace `<grub/machine/pci.h>' with
25594 `<grub/cpu/pci.h>'.
25595
25596 * conf/i386-coreboot.rmk (pkglib_MODULES): Add `pci' and `lspci'.
25597 (pci_mod_SOURCES, pci_mod_CFLAGS, pci_mod_LDFLAGS, lspci_mod_SOURCES)
25598 (lspci_mod_CFLAGS, lspci_mod_LDFLAGS): New variables.
25599
25600 * conf/i386-ieee1275.rmk: Likewise.
25601
e14a6184 256022008-08-03 Robert Millan <rmh@aybabtu.com>
25603
25604 * term/i386/pc/vga_text.c (CRTC_CURSOR_DISABLE): New macro.
25605 (grub_console_setcursor): Make it possible to set cursor off.
25606
52768e37 256072008-08-03 Robert Millan <rmh@aybabtu.com>
25608
25609 * util/grub.d/00_header.in: Be platform-agnostic. Probe for existence
25610 of modules instead of assuming which platform provides what.
25611 * util/update-grub.in: Likewise.
25612
2d52f57f 256132008-08-03 Robert Millan <rmh@aybabtu.com>
25614
25615 * kern/i386/pc/init.c (make_install_device): Check for `grub_prefix'
25616 instead of `grub_install_dos_part' to determine whether a drive needs
25617 to be prepended to prefix (`grub_install_dos_part' is not reliable,
825aa57a 25618 because it can be overridden when loading GRUB via Multiboot).
2d52f57f 25619
2a5cd121 256202008-08-02 Robert Millan <rmh@aybabtu.com>
25621
25622 * util/i386/pc/grub-install.in: Remove trailing slash from prefix.
25623
93808428 256242008-08-02 Robert Millan <rmh@aybabtu.com>
25625
25626 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Add a pair
25627 of informational grub_dprintf() calls.
25628
3bd0a12a 256292008-08-02 Robert Millan <rmh@aybabtu.com>
25630
25631 * disk/memdisk.c (memdisk_size): Don't initialize.
25632 (GRUB_MOD_INIT(memdisk)): Find memdisk using grub_module_iterate().
25633
25634 * include/grub/i386/pc/kernel.h
25635 (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): Remove macro.
25636 (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Shift.
25637 (grub_memdisk_image_size, grub_arch_memdisk_addr)
25638 (grub_arch_memdisk_size): Remove.
25639
25640 * include/grub/kernel.h (struct grub_module_header): Remove `offset'
25641 field (was only used to transfer a constant). Add `type' field to
25642 support multiple module types.
25643 (grub_module_iterate): New function.
25644
25645 * kern/device.c (grub_device_open): Do not hide error messages
25646 when grub_disk_open() fails. Use grub_print_error() instead.
25647
25648 * kern/i386/pc/init.c (grub_arch_modules_addr)
25649 (grub_arch_memdisk_size): Remove functions.
25650 (grub_arch_modules_addr): Return the module address in high memory
25651 (now that it isn't copied anymore).
25652
25653 * kern/i386/pc/startup.S (grub_memdisk_image_size): Remove variable.
25654 (codestart): Don't add grub_memdisk_image_size to %ecx in LZMA
25655 decompression routine (grub_total_module_size already includes that
25656 now). Don't copy modules back to low memory.
25657
25658 * kern/main.c: Include `<grub/mm.h>'.
25659 (grub_load_modules): Split out (and use) ...
25660 (grub_module_iterate): ... this function, which iterates through
25661 module objects and runs a hook.
25662 Comment out grub_mm_init_region() call, as it would cause non-ELF
25663 modules to be overwritten.
25664
25665 * util/i386/pc/grub-mkimage.c (generate_image): Instead of appending
25666 the memdisk image in its own region, make it part of the module list.
25667 * util/elf/grub-mkimage.c (options): Add "memdisk"|'m' option.
25668 (main): Parse --memdisk|-m option, and pass user-provided path as
25669 parameter to generate_image().
25670 (add_segments): Pass `memdisk_path' down to load_modules().
25671 (load_modules): Embed memdisk image in module section when requested.
25672 * util/i386/efi/grub-mkimage.c (make_mods_section): Initialize
25673 `header.type' instead of `header.offset'.
25674
25675 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add `memdisk.mod'.
25676 (memdisk_mod_SOURCES, memdisk_mod_CFLAGS)
25677 (memdisk_mod_LDFLAGS): New variables.
25678 * conf/i386-coreboot.rmk: Likewise.
25679 * conf/i386-ieee1275.rmk: Likewise.
25680
a927cc73 256812008-08-02 Robert Millan <rmh@aybabtu.com>
25682
25683 * loader/i386/pc/multiboot.c (playground, forward_relocator)
25684 (backward_relocator): New variables. Used to allocate and relocate
25685 the payload, respectively.
25686 (grub_multiboot_load_elf32): Load into heap instead of requested
825aa57a 25687 address, install the appropriate relocator code in each bound of
a927cc73 25688 the payload, and set the entry point such that
25689 grub_multiboot_real_boot() will jump to one of them.
25690
25691 * kern/i386/loader.S (grub_multiboot_payload_size)
25692 (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
25693 (grub_multiboot_payload_entry_offset): New variables.
25694 (grub_multiboot_real_boot): Set cpu context to what the relocator
25695 expects, and jump to the relocator instead of the payload.
25696
25697 * include/grub/i386/loader.h (grub_multiboot_payload_size)
25698 (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
25699 (grub_multiboot_payload_entry_offset): Export.
25700
b15d8a0c 257012008-08-01 Bean <bean123ch@gmail.com>
25702
25703 * normal/menu_entry.c (editor_getline): Don't return the original
25704 string as result, as it will be released by lexer once it has done
25705 using it.
25706
cdfb3d22 257072008-08-01 Robert Millan <rmh@aybabtu.com>
25708
25709 * util/grub.d/10_linux.in: Use prepare_grub_to_access_device() from
25710 within menuentries, not before them.
25711 util/grub.d/10_hurd.in: Likewise.
25712
9175e93d 257132008-08-01 Bean <bean123ch@gmail.com>
25714
25715 * conf/common.rmk (pkglib_MODULES): Add bufio.mod.
25716 (bufio_mod_SOURCES): New macro.
25717 (bufio_mod_CFLAGS): Likewise.
25718 (bufio_mod_LDFLAGS): Likewise.
25719
25720 * include/grub/bufio.h: New file.
25721
25722 * io/bufio.c: Likewise.
25723
25724 * video/png.c: Replace <grub/file.h> with <grub/bufio.h>.
25725 (grub_video_reader_png): Use grub_buffile_open to open file.
25726
25727 * video/jpeg.c: Replace <grub/file.h> with <grub/bufio.h>.
25728 (grub_video_reader_jpeg): Use grub_buffile_open to open file.
25729
25730 * video/tga.c: Replace <grub/file.h> with <grub/bufio.h>.
25731 (grub_video_reader_tga): Use grub_buffile_open to open file.
25732
25733 * font/manager.c: Include <grub/bufio.h>.
25734 (add_font): Use grub_buffile_open to open file.
25735
3d8383e7 257362008-07-31 Robert Millan <rmh@aybabtu.com>
25737
25738 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): When loading
25739 ELF segments, use a macro for arbitrarily accessing any of them instead
25740 of preparing a pointer that allows access to one at a time.
25741 (grub_multiboot_load_elf64): Likewise.
25742
16e641b6 257432008-07-31 Bean <bean123ch@gmail.com>
25744
25745 * boot/i386/pc/lnxboot.S (real_code_2): Replace 0x50 with
25746 GRUB_KERNEL_MACHINE_DATA_END.
25747
59198b72 257482008-07-30 Robert Millan <rmh@aybabtu.com>
25749
25750 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_DATA_END):
25751 Increase from 0x50 to 0x60.
25752 * util/i386/pc/grub-install.in: Detect cross-disk installs, and
25753 use UUIDs to identify the root drive for them. If that's not
25754 possible, abort.
25755 * util/i386/pc/grub-setup.c (setup): Do not special-case, or even
25756 check, for cross-disk installs.
25757
ae88bca3 257582008-07-30 Robert Millan <rmh@aybabtu.com>
25759
25760 * kern/ieee1275/init.c (grub_machine_set_prefix): If `grub_prefix'
25761 is non-empty, use it to set the `prefix' environment variable instead
25762 of the usual approach.
25763 * kern/i386/linuxbios/init.c (make_install_device): Remove function.
25764 (grub_machine_set_prefix): Use `grub_prefix' to set the `prefix'
25765 environment variable instead of dummy make_install_device().
25766
25767 * kern/i386/ieee1275/startup.S: Include `<grub/machine/kernel.h>'.
25768 (start): Insert a data section, with `grub_prefix' variable.
825aa57a 25769 * kern/i386/linuxbios/startup.S: Likewise.
ae88bca3 25770
25771 * include/grub/powerpc/ieee1275/kernel.h [!ASM_FILE] (grub_prefix):
25772 New variable reference.
25773 * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX):
25774 New macro. Defines offset of `grub_prefix' within startup.S (relative
25775 to `start').
25776 (GRUB_KERNEL_MACHINE_DATA_END): New macro. Defines the end of data
25777 section within startup.S (relative to `start').
25778 * include/grub/i386/coreboot/kernel.h: Likewise.
25779
25780 * util/elf/grub-mkimage.c (add_segments): Receive `prefix' parameter.
25781 Overwrite grub_prefix with its contents, at the beginning of the
25782 first segment.
25783 (main): Understand -p|--prefix.
25784
14f41dd1 257852008-07-30 Robert Millan <rmh@aybabtu.com>
25786
25787 * util/grub.d/10_hurd.in: Source ${libdir}/grub/update-grub_lib.
25788
4ca049a3 257892008-07-30 Robert Millan <rmh@aybabtu.com>
25790
25791 * term/i386/pc/vga_text.c (grub_console_cls): Use
25792 grub_console_gotoxy() to go back to beginning of the screen.
25793 Found by Patrick Georgi <patrick.georgi@coresystems.de>
25794
2921d337 257952008-07-29 Christian Franke <franke@computer.org>
25796
25797 * util/update-grub_lib.in (make_system_path_relative_to_its_root):
25798 Add conversion of emulated mount points on Cygwin.
25799
b609876d 258002008-07-29 Christian Franke <franke@computer.org>
25801
25802 * util/update-grub.in: Add a check for admin
25803 group on Cygwin.
25804 Remove old `grub.cfg.new' before creation.
25805 Add `-f' to `mv' to handle the different filesystem
25806 semantics of Windows.
25807
e93e4679 258082008-07-29 Bean <bean123ch@gmail.com>
25809
25810 * normal/main.c (get_line): Fix buffer overflow bug.
25811
41694fd0 258122008-07-28 Robert Millan <rmh@aybabtu.com>
25813
25814 * partmap/apple.c (GRUB_APPLE_HEADER_MAGIC): New macro.
25815 (struct grub_apple_header): New struct. Describes the layout of
25816 the partmap header.
25817 (apple_partition_map_iterate): Check the header magic as well as the
25818 partition magic (which was already being checked).
25819
cfd0b4e6 258202008-07-28 Pavel Roskin <proski@gnu.org>
25821
25822 * genmk.rb: Add a warning to the beginning of the output that
25823 it's a generated file and should not be edited.
25824
93cce016 258252008-07-28 Robert Millan <rmh@aybabtu.com>
25826
25827 * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
25828 with the same number are found, just use issue a warning with
25829 grub_dprintf(), as this error has been reported to be non-fatal.
c298def0 25830
cd1df915 258312008-07-27 Robert Millan <rmh@aybabtu.com>
25832
25833 * disk/ata.c (grub_ata_dumpinfo): Use grub_dprintf() for debugging
25834 information.
25835
b70a8427 258362008-07-27 Bean <bean123ch@gmail.com>
25837
25838 * fs/fat.c (GRUB_FAT_MAXFILE): New constant.
25839 (grub_fat_find_dir): Ignore case when comparing filename.
25840
8f5e379f 258412008-07-27 Bean <bean123ch@gmail.com>
25842
25843 * fs/xfs.c (grub_xfs_dir_header): Change field i8count back to
25844 smallino, as it's more descriptive, and i8count can be confused with
25845 the other field count.
25846 (grub_xfs_iterate_dir): Adjust grub_xfs_dir_entry pointer for small
25847 inode type.
25848
a85cd5a0 258492008-07-27 Bean <bean123ch@gmail.com>
25850
25851 * commands/crc.c: New file.
25852
25853 * lib/crc.c: Likewise.
25854
25855 * include/grub/lib/crc.h: Likewise.
25856
25857 * util/grub-fstest.c: grub/hexdump.h => grub/lib/hexdump.h.
25858
25859 * commands/hexdump.c: grub/hexdump.h => grub/lib/hexdump.h.
25860 (hexdump): Move this function to ...
25861
25862 * lib/hexdump.c: ... here.
25863
25864 * include/grub/hexdump.h: Renamed to ...
25865
25866 * include/grub/lib/hexdump.h: ... this.
25867
25868 * commands/loadenv.c: grub/envblk.h => grub/lib/envblk.h
25869
25870 * util/grub-editenv.c: Likewise.
25871
25872 * include/envblk.h: Renamed to ...
25873
25874 * include/lib/envblk.h: ... this.
25875
25876 * util/envblk.c: Renamed to ...
25877
25878 * lib/envblk.c: ... this.
25879
25880 * conf/common.rmk (grub_fstest_SOURCES): commands/hexdump.c =>
25881 lib/hexdump.c.
25882 (grub_editenv_SOURCES): util/envblk.c => lib/envblk.c
25883 (pkglib_MODULES): Add crc.mod.
25884 (hexdump_mod_SOURCES): Add lib/hexdump.c.
25885 (loadenv_mod_SOURCES): util/envblk.c => lib/envblk.c.
25886 (crc_mod_SOURCES): New macro.
25887 (crc_mod_CFLAGS): Likewise.
25888 (crc_mod_LDFLAGS): Likewise.
25889
25890 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add lib/hexdump.c.
25891
25892 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
25893
25894 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
25895
25896 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
25897
25898 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
25899
c298def0 259002008-07-27 Felix Zielcke <fzielcke@z-51.de>
8749e9e5 25901
25902 * commands/help.c: Include <grub/term.h>.
25903 (TERM_WIDTH): Removed. Updated all users.
25904
cc349fb3 259052008-07-27 Pavel Roskin <proski@gnu.org>
25906
25907 * util/getroot.c (find_root_device): Rephrase a comment to avoid
25908 spurious warnings about a comment within a comment.
25909
9051607e 259102008-07-25 Robert Millan <rmh@aybabtu.com>
25911
25912 * util/getroot.c (find_root_device): Skip devices that match
25913 /dev/dm-[0-9]. This lets the real device be found for any type of
25914 abstraction (LVM, EVMS, RAID..).
25915 (grub_guess_root_device): Do not traverse /dev/mapper (for LVM)
25916 and /dev/evms (for EVMS) before traversing /dev. If a /dev/dm-[0-9]
25917 device is found first, find_root_device() will now skip it.
25918
01453bfc 259192008-07-24 Pavel Roskin <proski@gnu.org>
25920
25921 * include/grub/types.h: Use __builtin_bswap32() and
25922 __builtin_bswap64() with gcc 4.3 and newer.
25923
6af9849f 259242008-07-24 Christian Franke <franke@computer.org>
25925
3a0fa256 25926 * util/i386/pc/grub-install.in: If `--debug' is specified,
25927 pass `--verbose' to grub-setup.
25928 Abort script if make_system_path_relative_to_its_root() fails.
25929
7810e747 259302008-07-24 Bean <bean123ch@gmail.com>
25931
25932 * configure.ac: Fixed a bug caused by the previous cygwin patch,
25933 variable `target_platform' should be `platform'.
25934
42290e17 259352008-07-24 Bean <bean123ch@gmail.com>
25936
51cc5193 25937 * video/reader/png.c (DEFLATE_HLIT_MAX): Change value.
42290e17 25938 (grub_png_init_fixed_block): New function.
25939 (grub_png_decode_image_data): Handle fixed huffman code compression.
25940
2a8a80e4 259412008-07-24 Bean <bean123ch@gmail.com>
25942
25943 * common.rmk (bin_UTILITIES): Add grub-pe2elf.
25944 (grub_pe2elf_SOURCES): New macro.
25945 (CLEANFILES): Add grub-pe2elf.
25946
25947 * include/grub/efi/pe32.h (GRUB_PE32_SCN_ALIGN_1BYTES): New constant.
25948 (GRUB_PE32_SCN_ALIGN_2BYTES): Likewise.
25949 (GRUB_PE32_SCN_ALIGN_4BYTES): Likewise.
25950 (GRUB_PE32_SCN_ALIGN_8BYTES): Likewise.
25951 (GRUB_PE32_SCN_ALIGN_16BYTES): Likewise.
25952 (GRUB_PE32_SCN_ALIGN_32BYTES): Likewise.
25953 (GRUB_PE32_SCN_ALIGN_64BYTES): Likewise.
25954 (GRUB_PE32_SCN_ALIGN_SHIFT): Likewise.
25955 (GRUB_PE32_SCN_ALIGN_MASK): Likewise.
25956 (GRUB_PE32_SYM_CLASS_EXTERNAL): Likewise.
25957 (GRUB_PE32_SYM_CLASS_STATIC): Likewise.
25958 (GRUB_PE32_SYM_CLASS_FILE): Likewise.
25959 (GRUB_PE32_DT_FUNCTION): Likewise.
25960 (GRUB_PE32_REL_I386_DIR32): Likewise.
25961 (GRUB_PE32_REL_I386_REL32): Likewise.
25962 (grub_pe32_symbol): New structure.
25963 (grub_pe32_reloc): Likewise.
25964
25965 * util/grub-pe2elf.c: New file.
25966
25967 * configure.ac: Set TARGET_OBJ2ELF if host os is cygwin. Don't test for
25968 start symbol in non pc platform.
25969
25970 * genmk.rb: Use TARGET_OBJ2ELF to convert native object format to elf.
25971
25972 The following patches are from Christian Franke.
25973
25974 * include/grub/dl.h: Remove .previous, gas supports this only
25975 for ELF format.
25976
25977 * include/grub/symbol.h [__CYGWIN__] (#define FUNCTION/VARIABLE):
25978 Remove .type, gas supports this only for ELF format.
25979
25980 * kern/dl.c (grub_dl_resolve_dependencies): Add check for trailing
25981 nullbytes in symbol table. This fixes an infinite loop if table is
25982 zero filled.
25983
25984 * Makefile.in: Add autoconf replacements TARGET_IMG_LDSCRIPT,
25985 TARGET_IMG_LDFLAGS and EXEEXT.
25986
25987 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Replace -Wl,-N by
25988 TARGET_IMG_LDFLAGS_AC.
25989 (grub_CHECK_STACK_ARG_PROBE): New function.
25990
25991 * conf/i386-pc.rmk: Replace -Wl,-N by TARGET_IMG_LDFLAGS.
25992
25993 * conf/i386-pc-cygwin-ld-img.sc: New linker script.
25994
25995 * configure.ac: Add check for linker script "conf/${target}-img-ld.c"
25996 to set TARGET_IMG_LD* accordingly.
25997 Add check for Cygwin to set TARGET_MOD_OBJCOPY accordingly.
25998 Add call to grub_CHECK_STACK_ARG_PROBE.
25999 Use TARGET_IMG_LDFLAGS to check start, bss_start, end symbols.
26000
26001 * genkernsyms.sh.in: Handle HAVE_ASM_USCORE case.
26002
26003 * genmk.rb: Add EXEEXT to CLEANFILES.
26004
12ccdb75 260052008-07-23 Robert Millan <rmh@aybabtu.com>
26006
26007 * Makefile.in (UNICODE_ARROWS, UNICODE_LINES): New variables (they
26008 define the codes for arrows and lines used for the menu).
26009 (ascii.pff): Generate fonts for $(UNICODE_ARROWS) and $(UNICODE_LINES)
26010 as well.
26011
26012 * util/update-grub_lib.in (font_path): Prefer ascii.pff over complete
26013 fonts, because the latter are too slow.
26014
18eeaf04 260152008-07-21 Bean <bean123ch@gmail.com>
26016
26017 * kern/i386/pc/startup.S (gate_a20_try_bios): Change test order for
26018 a20. Run keyboard test last, as it will cause macbook to halt.
26019
b095e2ad 260202008-07-18 Pavel Roskin <proski@gnu.org>
26021
26022 * kern/dl.c: Go back to using GRUB_CPU_SIZEOF_VOID_P. We cannot
26023 load foreign architecture modules correctly anyway. Keep
26024 support for loading host architecture modules, whether we
26025 compile them or not.
26026
737feb35 260272008-07-17 Pavel Roskin <proski@gnu.org>
26028
3f4ce737 26029 * configure.ac: Use -m32 or -m64 regardless of whether we had to
26030 change target_cpu. The compiler default can mismatch target_cpu
26031 in any case.
26032
4ad2d049 26033 * disk/efi/efidisk.c: Fix format warnings on x86_64.
26034 * kern/efi/efi.c: Likewise.
26035
f6130a12 26036 * aclocal.m4 (grub_PROG_TARGET_CC): New macro. Check if the
26037 target compiler is functional.
26038 * configure.ac: Call grub_PROG_TARGET_CC once all target flags
26039 are set up.
26040
58393a2d 26041 * configure.ac: Default to efi platform for x86_64-apple. Allow
26042 powerpc64 CPU, default to ieee1275 platform for it. Split CPU
26043 adjustments from the rest, only do them if target is not
26044 explicitly given. Merge other adjustments with the final sanity
26045 check. Remove an extraneous check for supported CPU. Be
26046 specific which CPU and which platform is not supported.
26047
737feb35 26048 * configure.ac: Default to pc platform for x86_64.
26049
546f966a 260502008-07-17 Robert Millan <rmh@aybabtu.com>
26051
26052 Partial LinuxBIOS -> Coreboot rename.
26053
26054 * conf/i386-linuxbios.rmk: Renamed to ...
26055 * conf/i386-coreboot.rmk: ... this.
26056 * Makefile.in (RMKFILES): s/i386-linuxbios.rmk/i386-coreboot.rmk/g.
26057 * configure.ac: Accept "coreboot" as input platform (but maintain
26058 compatibility with "linuxbios").
26059 * include/grub/i386/linuxbios: Renamed to ...
26060 * include/grub/i386/coreboot: ... this.
26061
20011694 260622008-07-17 Bean <bean123ch@gmail.com>
26063
26064 * conf/i386/efi.rmk (pkglib_MODULES): add pci.mod and lspci.mod.
c11f6d16 26065 (appleldr_mod_SOURCE): New variable.
20011694 26066 (appleldr_mod_CFLAGS): Likewise.
26067 (appleldr_mod_LDFLAGS): Likewise.
26068 (pci_mod_SOURCES): Likewise.
26069 (pci_mod_CFLAGS): Likewise.
26070 (pci_mod_LDFLAGS): Likewise.
26071 (lspci_mod_SOURCES): Likewise.
26072 (lspci_mod_CFLAGS): Likewise.
26073 (lspci_mod_LDFLAGS): Likewise.
26074
26075 * conf/x86_64-efi.rmk: New file.
26076
26077 * disk/efi/efidisk.c (grub_efidisk_read): Wrap efi calls with efi_call_N
26078 macro.
26079 (grub_efidisk_write): Likewise.
26080
26081 * include/efi/api.h (efi_call_0): New macro.
26082 (efi_call_1): Likewise.
26083 (efi_call_2): Likewise.
26084 (efi_call_3): Likewise.
26085 (efi_call_4): Likewise.
26086 (efi_call_5): Likewise.
26087 (efi_call_6): Likewise.
26088
26089 * include/grub/efi/chainloader.h (grub_chainloader_cmd): Rename to
26090 grub_rescue_cmd_chainloader.
26091
26092 * include/grub/efi/pe32.h (GRUB_PE32_MACHINE_X86_64): New macro.
26093 (grub_pe32_optional_header): Change some fields based on i386 or
26094 x86_64 platform.
26095 (GRUB_PE32_PE32_MAGIC): Likewise.
26096
26097 * include/grub/efi/uga_draw.h: New file.
26098
26099 * include/grub/elf.h (STN_ABS): New constant.
26100 (R_X86_64_NONE): Relocation constant for x86_64.
26101 (R_X86_64_64): Likewise.
26102 (R_X86_64_PC32): Likewise.
26103 (R_X86_64_GOT32): Likewise.
26104 (R_X86_64_PLT32): Likewise.
26105 (R_X86_64_COPY): Likewise.
26106 (R_X86_64_GLOB_DAT): Likewise.
26107 (R_X86_64_JUMP_SLOT): Likewise.
26108 (R_X86_64_RELATIVE): Likewise.
26109 (R_X86_64_GOTPCREL): Likewise.
26110 (R_X86_64_32): Likewise.
26111 (R_X86_64_32S): Likewise.
26112 (R_X86_64_16): Likewise.
26113 (R_X86_64_PC16): Likewise.
26114 (R_X86_64_8): Likewise.
26115 (R_X86_64_PC8): Likewise.
26116
26117 * include/grub/i386/efi/pci.h: New file.
26118
26119 * include/grub/i386/linux.h (GRUB_LINUX_EFI_SIGNATURE):
26120 Change it value based on platform.
26121 (GRUB_LINUX_EFI_SIGNATURE_0204): New constant.
26122 (GRUB_E820_RAM): Likewise.
26123 (GRUB_E820_RESERVED): Likewise.
26124 (GRUB_E820_ACPI): Likewise.
26125 (GRUB_E820_NVS): Likewise.
26126 (GRUB_E820_EXEC_CODE): Likewise.
26127 (GRUB_E820_MAX_ENTRY): Likewise.
26128 (grub_e820_mmap): New structure.
26129 (linux_kernel_header): Change the efi field according to different
26130 kernel version, also field from linux_kernel_header.
26131
26132 * include/grub/kernel.h (grub_module_info): Add padding for x86_64.
26133
26134 * include/grub/pci.h (GRUB_PCI_ADDR_SPACE_MASK): New constant.
26135 (GRUB_PCI_ADDR_SPACE_MEMORY): Likewise.
26136 (GRUB_PCI_ADDR_SPACE_IO): Likewise.
26137 (GRUB_PCI_ADDR_MEM_TYPE_MASK): Likewise.
26138 (GRUB_PCI_ADDR_MEM_TYPE_32): Likewise.
26139 (GRUB_PCI_ADDR_MEM_TYPE_1M): Likewise.
26140 (GRUB_PCI_ADDR_MEM_TYPE_64): Likewise.
26141 (GRUB_PCI_ADDR_MEM_PREFETCH): Likewise.
26142 (GRUB_PCI_ADDR_MEM_MASK): Likewise.
26143 (GRUB_PCI_ADDR_IO_MASK): Likewise.
26144
26145 * include/grub/x86_64/efi/kernel.h: New file.
26146
26147 * include/grub/x86_64/efi/loader.h: Likewise.
26148
26149 * include/grub/x86_64/efi/machine.h: Likewise.
26150
26151 * include/grub/x86_64/efi/pci.h: Likewise.
26152
26153 * include/grub/x86_64/efi/time.h: Likewise.
26154
26155 * include/grub/x86_64/linux.h: Likewise.
26156
26157 * include/grub/x86_64/setjmp.h: Likewise.
26158
26159 * include/grub/x86_64/time.h: Likewise.
26160
26161 * include/grub/x86_64/types.h: Likewise.
26162
26163 * kern/dl.c (GRUB_CPU_SIZEOF_VOID_P): Changed to
26164 GRUB_TARGET_SIZEOF_VOID_P.
26165
26166 * kern/efi/efi.c (grub_efi_locate_protocol): Wrap efi calls.
26167 (grub_efi_locate_handle): Likewise.
26168 (grub_efi_open_protocol): Likewise.
26169 (grub_efi_set_text_mode): Likewise.
26170 (grub_efi_stall): Likewise.
26171 (grub_exit): Likewise.
26172 (grub_reboot): Likewise.
26173 (grub_halt): Likewise.
26174 (grub_efi_exit_boot_services): Likewise.
26175 (grub_get_rtc): Likewise.
26176
26177 * kern/efi/mm.c (MEMORY_MAP_SIZE): Change to 0x3000 for new models.
26178 (GRUB_CPU_SIZEOF_VOID_P): Changed to GRUB_TARGET_SIZEOF_VOID_P.
26179 (grub_efi_allocate_pages): Wrap efi calls.
26180 (grub_efi_free_pages): Wrap efi calls.
26181 (grub_efi_get_memory_map): Wrap efi calls.
26182
26183 * kern/x86_64/dl.c: New file.
26184
26185 * kern/x86_64/efi/callwrap.S: Likewise.
26186
26187 * kern/x86_64/efi/startup.S: Likewise.
26188
26189 * loader/efi/appleloader.c: Likewise.
26190
26191 * loader/efi/chainloader.c (cmdline): New variable.
26192 (grub_chainloader_unload): Wrap efi calls.
26193 (grub_chainloader_boot): Likewise.
26194 (grub_rescue_cmd_chainloader): Wrap efi calls, handle
26195 command line.
26196
26197 * loader/efi/chainloader_normal.c (chainloader_command):
26198 Change grub_chainloader_cmd to grub_rescue_cmd_chainloader, pass
26199 command line.
26200
26201 * loader/i386/efi/linux.c (allocate_pages): Change allocation
26202 method.
26203 (grub_e820_add_region): New function.
26204 (grub_linux_boot): Construct e820 map from efi map, handle x86_64
26205 booting.
26206 (grub_find_video_card): New function.
26207 (grub_linux_setup_video): New function.
26208 (grub_rescue_cmd_linux): Probe for video information.
26209
26210 * normal/x86_64/setjmp.S: New file.
26211
26212 * term/efi/console.c (map_char): New function.
26213 (grub_console_putchar): Map unicode char.
26214 (grub_console_checkkey): Wrap efi calls.
26215 (grub_console_getkey): Likewise.
26216 (grub_console_getwh): Likewise.
26217 (grub_console_gotoxy): Likewise.
26218 (grub_console_cls): Likewise.
26219 (grub_console_setcolorstate): Likewise.
26220 (grub_console_setcursor): Likewise.
26221
26222 * util/i386/efi/grub-mkimage.c: Add support for x86_64.
26223
59652a20 262242008-07-16 Pavel Roskin <proski@gnu.org>
26225
ef294055 26226 * loader/i386/efi/linux.c (allocate_pages): Fix warnings in
26227 format strings.
26228
59652a20 26229 * util/i386/efi/grub-mkimage.c (get_target_address): Return a
26230 pointer, not an integer. This fixes a warning and prevents
26231 precision loss on 64-bit systems.
26232 (relocate_addresses): Remove unneeded cast.
26233
afc3b5d7 262342008-07-15 Pavel Roskin <proski@gnu.org>
26235
506b2b3e 26236 * kern/i386/ieee1275/init.c: Include grub/cache.h.
26237
62ead89c 26238 * term/ieee1275/ofconsole.c: Disable code unused on i386.
26239
c4cd51d7 26240 * kern/ieee1275/ieee1275.c (grub_ieee1275_get_integer_property):
26241 Fix comparison between signed and unsigned.
26242
0d3d8f28 26243 * include/grub/i386/ieee1275/console.h: Declare
26244 grub_console_init() and grub_console_fini().
26245
8804b286 26246 * loader/i386/ieee1275/linux.c (grub_set_bootpath): Remove.
26247 It's empty and unused.
26248
ee01cf35 26249 * fs/ext2.c (grub_ext2_read_block): Initialize blknr in the
26250 beginning to avoid warnings with some compilers.
26251
afc3b5d7 26252 * loader/ieee1275/multiboot2.c: Include grub/machine/loader.h.
26253 [__i386__] (grub_mb2_arch_boot): Avoid unnecessary cast.
26254
e4e8eaa5 262552008-07-14 Pavel Roskin <proski@gnu.org>
26256
407aceb4 26257 * kern/env.c (grub_register_variable_hook): Don't copy empty
26258 string, it leaks memory. Pass "" to grub_env_set(), it should
26259 handle constant strings.
26260
e4e8eaa5 26261 * commands/blocklist.c (grub_cmd_blocklist): Fix format warning.
26262 * commands/cmp.c (grub_cmd_cmp): Likewise.
26263 * kern/dl.c (grub_dl_flush_cache): Likewise.
26264 (grub_dl_load_core): Likewise.
26265 * kern/elf.c (grub_elf32_load_phdrs): Likewise.
26266 (grub_elf64_load_phdrs): Likewise.
26267
d4e2dad3 262682008-07-13 Pavel Roskin <proski@gnu.org>
26269
26270 * lib/LzmaEnc.c (LzmaEnc_SetProps): Fix warning about comparison
26271 between signed and unsigned.
26272 (LzmaEnc_Finish): Fix warning about an unused parameter.
26273
aa24b516 262742008-07-13 Bean <bean123ch@gmail.com>
26275
26276 * Makefile.in (enable_lzo): New rule.
26277
26278 * conf/i386-pc.rmk (grub_mkimage_SOURCES): New test with enable_lzo.
26279
26280 * configure.ac (ENABLE_LZO): New option --enable-lzo.
26281
26282 * boot/i386/pc/lnxboot.S: #include <config.h>.
26283
26284 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE): Change
fe987087 26285 its value according to the compression algorithm used, lzo or lzma.
aa24b516 26286
26287 * util/i386/pc/grub-mkimage.c (compress_kernel): Use different
26288 compression algorithm according to configure macro.
26289
26290 * kern/i386/pc/startup.S (codestart): Likewise.
26291
26292 * kern/i386/pc/lzma_decode.S: New file.
26293
26294 * include/grub/lib/LzFind.h: Likewise.
26295
26296 * include/grub/lib/LzHash.h: Likewise.
26297
26298 * include/grub/lib/LzmaDec.h: Likewise.
26299
26300 * include/grub/lib/LzmaEnc.h: Likewise.
26301
26302 * include/grub/lib/LzmaTypes.h: Likewise.
26303
26304 * lib/LzFind.c: Likewise.
26305
26306 * lib/LzmaDec.c: Likewise.
26307
26308 * lib/LzmaEnc.c: Likewise.
26309
4ae821ac 263102008-07-13 Bean <bean123ch@gmail.com>
26311
26312 * fs/ext2.c (EXT4_EXTENTS_FLAG): New macro.
26313 (grub_ext4_extent_header): New structure.
26314 (grub_ext4_extent): Likewise.
26315 (grub_ext4_extent_idx): Likewise.
26316 (grub_ext4_find_leaf): New function.
26317 (grub_ext2_read_block): Handle extents.
26318
9a745147 263192008-07-12 Robert Millan <rmh@aybabtu.com>
26320
26321 * util/i386/pc/grub-mkrescue.in: s/grub-install/grub-mkrescue/g.
26322
d49a4cf6 263232008-07-11 Robert Millan <rmh@aybabtu.com>
26324
26325 * util/grub.d/40_custom.in: New file. Example on how to add custom
26326 entries to /etc/grub.d.
26327 * conf/common.rmk (%, update-grub_SCRIPTS, CLEANFILES): Install
26328 40_custom (implicitly, by merging all the grub.d rules).
26329
947414b4 263302008-07-11 Pavel Roskin <proski@gnu.org>
26331
0059cf6f 26332 * commands/read.c (grub_getline): Fix invalid memory access.
26333 Don't add newline to the variable value.
26334
947414b4 26335 * term/i386/pc/serial.c (GRUB_SERIAL_PORT_NUM): New constant.
26336 [!GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Add COM2 and COM3.
26337 (serial_hw_get_port): Check validity of the port number.
26338 (grub_cmd_serial): Check return value of serial_hw_get_port().
26339
62a02d00 263402008-07-07 Pavel Roskin <proski@gnu.org>
26341
26342 * boot/i386/pc/diskboot.S (notification_string): Replace
26343 "Loading kernel" with just "loading". This is shorter, less
26344 confusing and saves a few bytes for possible future changes.
26345
3e5581b0 263462008-07-05 Pavel Roskin <proski@gnu.org>
26347
ea387a48 26348 * disk/ata.c (grub_ata_dumpinfo): Don't output addressing and
26349 size for ATAPI devices, they are undefined. Output sector
26350 number in decimal form.
26351
3e5581b0 26352 * disk/ata.c: Use named constants for status bits.
26353
fdecb8fd 263542008-07-04 Pavel Roskin <proski@gnu.org>
26355
bcd35b90 26356 * kern/i386/linuxbios/init.c (grub_machine_init): Cast addr to
26357 grub_addr_t before casting it to the void pointer to fix a
26358 warning. Non-addressable regions are discarded earlier.
26359 (grub_arch_modules_addr): Cast _end to grub_addr_t.
26360 * kern/i386/linuxbios/table.c: Include grub/misc.h.
26361 (check_signature): Don't shadow table_header.
26362 (grub_linuxbios_table_iterate): Cast numeric constants to
26363 grub_linuxbios_table_header_t.
26364 * include/grub/i386/linuxbios/init.h: Add noreturn attribute to
26365 grub_stop().
26366
af58ab3d 26367 * kern/ieee1275/init.c: Cast _start and _end to grub_addr_t to
26368 prevent warnings.
26369
1759aa57 26370 * include/grub/misc.h (ALIGN_UP): Avoid unnecessary cast to a
26371 pointer, which can cause warnings. Support 64-bit addresses.
26372
fdecb8fd 26373 * util/elf/grub-mkimage.c: Use GRUB_TARGET_SIZEOF_LONG instead
26374 of sizeof(long). This fixes PowerPC image generation on x86_64.
26375
8516d2a8 263762008-07-04 Robert Millan <rmh@aybabtu.com>
26377
26378 This fixes a performance issue when pc & gpt partmap iterators
26379 didn't abort iteration even after our hook found what it was
fe987087 26380 looking for (often causing expensive probes of non-existent drives).
8516d2a8 26381
26382 Some callers relied on previous buggy behaviour, since they would
34c44600 26383 raise an error when their own hooks caused early abortion of its
8516d2a8 26384 iteration.
26385
26386 * kern/device.c (grub_device_open): Improve error message.
26387 * disk/lvm.c (grub_lvm_open): Likewise.
26388 * disk/raid.c (grub_raid_open): Likewise.
26389
26390 * partmap/pc.c (pc_partition_map_iterate): Abort parent iteration
26391 when hook requests it, independently of grub_errno.
26392 (pc_partition_map_probe): Do not fail when find_func() caused
26393 early abortion of pc_partition_map_iterate().
26394
26395 * partmap/gpt.c (gpt_partition_map_iterate): Abort parent iteration
26396 when hook requests it, independently of grub_errno.
26397 (gpt_partition_map_probe): Do not fail when find_func() caused
26398 early abortion of gpt_partition_map_iterate().
26399
26400 * kern/partition.c (grub_partition_iterate): Abort parent iteration
26401 when hook requests it, independently of grub_errno. Do not fail when
26402 part_map_iterate_hook() caused early abortion of p->iterate().
26403
26404 * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Do not fail
26405 when grub_partition_iterate() returned with non-zero.
26406
277d0de9 264072008-07-03 Pavel Roskin <proski@gnu.org>
26408
26409 * disk/ata.c (grub_ata_pio_write): Check status before writing,
26410 like we do in grub_ata_pio_read().
26411 (grub_ata_readwrite): Always write individual sectors. Fix the
26412 sector count for the remainder.
26413 (grub_ata_write): Enable writing to ATA devices. Correctly
26414 report error for ATAPI devices.
26415
d4c9b428 264162008-07-02 Pavel Roskin <proski@gnu.org>
26417
e43fc690 26418 * boot/i386/pc/cdboot.S: Add _start entry to fix a linker
26419 warning.
26420
f707af42 26421 * disk/ata.c (grub_ata_readwrite): Don't increment sector number
26422 for every read sector, we already increment it for the whole
26423 batch. This fixes reading more than 256 sectors at once.
26424
11e16b15 26425 * util/grub-editenv.c (cmd_info): Cast argument to long
26426 explicitly. ptrdiff_t reduces to int on i386.
26427
cbabfdd4 26428 * util/grub-editenv.c (main): Be specific which parameter is
26429 missing.
26430
b8fbce0a 26431 * disk/memdisk.c (memdisk_addr): Make a pointer to fix warnings.
26432 (memdisk): Make memdisk_orig_addr a pointer.
26433
c9c8e606 26434 * fs/reiserfs.c (grub_reiserfs_read): Fix misuse of grub_size_t
26435 for file offsets, use grub_off_t instead. Fix printf format
26436 warnings.
26437
ca62e598 26438 * fs/reiserfs.c: Remove #warning, TODO list items don't belong
26439 there. Real unexpected warnings should not drown in the noise
26440 about known problems.
26441
ce8d1766 26442 * commands/hexdump.c (grub_cmd_hexdump): Fix misuse of
26443 grub_disk_addr_t for memory addresses.
26444
00c7a56a 26445 * loader/aout.c (grub_aout_load): Cast load_addr to pointer
26446 explicitly to fix a warning.
26447
08d3ef09 26448 * util/grub-editenv.c (cmd_info): Fix warning in printf format.
26449
cb71ba20 26450 * Makefile.in (MODULE_LDFLAGS): New variable.
26451 * aclocal.m4 (grub_PROG_LD_BUILD_ID_NONE): New macro. Check if
26452 the linker accepts --build-id=none.
26453 * configure.ac: Call grub_PROG_LD_BUILD_ID_NONE. Substitute
26454 MODULE_LDFLAGS.
26455 * genmk.rb: Use MODULE_LDFLAGS when linking modules.
26456
d4c9b428 26457 * fs/xfs.c (struct grub_xfs_dir_header): Use names similar to
26458 those in Linux XFS code. Provide a way to access 64-bit parent
26459 inode.
26460 (grub_xfs_iterate_dir): Use the new names. Avoid reading past
26461 the end of struct grub_xfs_dir_header.
26462
d4156eee 264632008-07-02 Bean <bean123ch@gmail.com>
26464
26465 * include/grub/ieee1275.h (grub_ieee1275_flag): New constant
26466 GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
26467 and GRUB_IEEE1275_FLAG_NO_ANSI.
26468
26469 * kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set flag
26470 GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
26471 and GRUB_IEEE1275_FLAG_NO_ANSI for Open Hackware.
26472
26473 * kern/ieee1275/ieee1275.c (grub_ieee1275_interpret): Return
26474 immediately if GRUB_IEEE1275_FLAG_CANNOT_INTERPRET is set.
26475
26476 * kern/ieee1275/init.c (grub_claim_heap): Claim memory directly if
26477 GRUB_IEEE1275_FLAG_FORCE_CLAIM is set.
26478
26479 * term/ieee1275/ofconsole.c (grub_ofconsole_writeesc): Don't output
26480 esc sequence on non ANSI terminal.
26481 (grub_ofconsole_gotoxy): Emulate backspace key on non ANSI terminal.
26482
26483 * util/elf/grub-mkimage.c (add_segments): Move ELF header to the
26484 beginning of file.
26485
2270f77b 264862008-07-02 Bean <bean123ch@gmail.com>
26487
26488 * conf/common.rmk (bin_UTILITIES): Add grub-editenv.
26489 (grub_editenv_SOURCES): New variable.
26490 (pkglib_MODULES): Add loadenv.mod.
26491 (loadenv_mod_SOURCES): New variable.
26492 (loadenv_mod_CFLAGS): Likewise.
26493 (loadenv_mod_LDFLAGS): Likewise.
26494
26495 * include/grub/envblk.h: New file.
26496
26497 * util/envblk.c: New file.
26498
26499 * util/grub-editenv.c: New file.
26500
26501 * commands/loadenv.c: New file.
26502
0e9e51ec 265032008-07-01 Pavel Roskin <proski@gnu.org>
26504
d89b7634 26505 * include/multiboot2.h (struct multiboot_tag_module): Use char,
26506 not unsigned char. This fixes warnings and is consistent with
26507 other tags.
26508
bf1835b1 26509 * disk/fs_uuid.c (search_fs_uuid): Correctly increment count.
26510
8222a04b 26511 * normal/parser.y: Define YYENABLE_NLS as 0 to fix warnings.
26512
6a42d99d 26513 * term/tparm.c (analyze): Always set *popcount.
26514
10b159d1 26515 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Remove useless
26516 cast to fix a warning.
26517
b8789f6c 26518 * loader/i386/pc/multiboot2.c (grub_mb2_arch_module_alloc): Use
26519 cast to suppress a warning.
26520
29d7e38a 26521 * fs/afs.c (grub_afs_read_block): Return grub_disk_addr_t, as
26522 grub_fshelp_read_file() expects.
26523
f341f669 26524 * fs/fat.c: Fix UUID calculation on big-endian systems. We
26525 write uuid as a 32-bit value in CPU byte order, so declare and
26526 use it as such.
26527
0e9e51ec 26528 * disk/raid.c: Cast grub_dprintf() arguments to unsigned long
26529 long if the format specifier expects it.
26530 * partmap/gpt.c (gpt_partition_map_iterate): Likewise.
26531 * partmap/pc.c (pc_partition_map_iterate): Likewise.
26532 * fs/ntfs.c (grub_ntfs_uuid): Cast data->uuid to unsigned long
26533 long to fix a warning.
26534 * fs/reiserfs.c (grub_reiserfs_read): Change casts in
26535 grub_dprintf() arguments to fix warnings.
26536
3aefa857 265372008-06-30 Pavel Roskin <proski@gnu.org>
26538
56c7668b 26539 * util/i386/pc/grub-setup.c (setup): Write install_dos_part and
26540 install_bsd_part immediately before core.img is embedded or
26541 modified on disk. This fixes core.img verification if core.img
26542 cannot be embedded.
26543
3aefa857 26544 * util/i386/pc/grub-setup.c (setup): Use core_path_dev, not
26545 core_path to calculate the blocklist.
26546 Patch from Javier Martín <lordhabbit@gmail.com>
26547
5444088d 265482008-06-29 Robert Millan <rmh@aybabtu.com>
26549
26550 * fs/xfs.c (GRUB_XFS_FSB_TO_BLOCK): New macro. Maps filesystem
26551 block to disk block.
26552 (grub_xfs_read_block): Use GRUB_XFS_FSB_TO_BLOCK() on result.
26553 Patch from Niels Böhm <bitbucket@arcor.de>
26554
674835c8 265552008-06-29 Robert Millan <rmh@aybabtu.com>
26556
26557 * util/update-grub_lib.in (font_path): Search for fonts in
26558 /boot/grub first, which is more likely to be readable (we aren't
26559 deciding where fonts live, just looking for them).
26560
f527dbc8 265612008-06-26 Pavel Roskin <proski@gnu.org>
26562
6c2d8df6 26563 * util/biosdisk.c (read_device_map): Don't leave dead map
26564 entries for devices failing stat() check.
26565
f527dbc8 26566 * util/i386/pc/grub-setup.c (setup): Don't reuse core_path, use
26567 core_path_dev for the core.img path on the target device.
26568
aebe3d13 265692008-06-26 Robert Millan <rmh@aybabtu.com>
26570
26571 * disk/fs_uuid.c: New file.
26572 * conf/common.rmk (pkglib_MODULES): Add `fs_uuid.mod'.
26573 (fs_uuid_mod_SOURCES, fs_uuid_mod_CFLAGS)
26574 (fs_uuid_mod_LDFLAGS): New variables.
26575 * include/grub/disk.h (grub_disk_dev_id): Add
26576 `GRUB_DISK_DEVICE_UUID_ID'.
26577 * kern/disk.c (grub_disk_dev_iterate): Allow disk devices not to
26578 implement iterate().
26579
37aaf354 265802008-06-26 Robert Millan <rmh@aybabtu.com>
26581
26582 * util/grub.d/10_linux.in: Avoid passing UUIDs to Linux when either
26583 "/dev/disk/by-uuid/${GRUB_DEVICE_UUID}" does not exist, or when a
26584 Linux image includes no initrd.
26585
25ff262a 265862008-06-21 Javier Martín <lordhabbit@gmail.com>
26587
26588 * util/i386/pc/grub-setup.c (setup): Remove literal "core.img" in a
26589 call to resolve the core image location that effectively appended the
26590 name twice.
26591
76a2bd44 265922008-06-21 Robert Millan <rmh@aybabtu.com>
26593
26594 * util/grub.d/00_header.in: Move last prepare_grub_to_access_device()
26595 call from here ...
26596
26597 * util/grub.d/10_hurd.in: ... to here ...
26598 * util/grub.d/10_linux.in: ... and here.
26599
650e1c79 266002008-06-19 Robert Millan <rmh@aybabtu.com>
26601
fe987087 26602 * kern/main.c (grub_main): Export `prefix' variable immediately
650e1c79 26603 after it has been set by grub_machine_set_prefix().
26604
6ce63911 266052008-06-19 Robert Millan <rmh@aybabtu.com>
26606
26607 * commands/search.c (search_label, search_fs_uuid, search_file): Print
26608 search result when not saving to variable, not the other way around.
26609 When saving to variable, abort iteration as soon as a match is found.
26610
73940cec 266112008-06-19 Robert Millan <rmh@aybabtu.com>
26612
26613 * util/update-grub_lib.in (prepare_grub_to_access_device): Remove
26614 check for partition that provides /boot/grub. Its logic is flawed,
26615 as it prevents prepare_grub_to_access_device() from being called
26616 multiple times.
26617
3c62a39d 266182008-06-19 Robert Millan <rmh@aybabtu.com>
26619
26620 * util/update-grub_lib.in (prepare_grub_to_access_device): Issue
26621 "insmod" command directly when abstraction modules are needed,
fe987087 26622 instead of relying on GRUB_PRELOAD_MODULES (which had no effect
3c62a39d 26623 since it had already been processed).
26624
47395a42 266252008-06-19 Pavel Roskin <proski@gnu.org>
26626
26627 * conf/i386-efi.rmk: Recompile grub-mkimage.c if Makefile has
26628 changed. This is needed in case GRUB_LIBDIR changes.
26629 * conf/i386-ieee1275.rmk: Likewise.
26630 * conf/i386-linuxbios.rmk: Likewise.
26631 * conf/i386-pc.rmk: Likewise.
26632 * conf/powerpc-ieee1275.rmk: Likewise.
26633
a145ac2d 266342008-06-18 Pavel Roskin <proski@gnu.org>
26635
26636 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Rename
26637 kernel_elf_symlist.c to symlist.c for consistency with other
26638 architectures. Update all users.
26639 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
26640
7847c51e 266412008-06-18 Robert Millan <rmh@aybabtu.com>
26642
26643 * util/i386/pc/grub-install.in: If the drive is LVM or RAID, prepend
26644 it in prefix.
26645
26646 * util/i386/pc/grub-setup.c (main): Don't handle prefix at all. Set
26647 `must_embed' to 1 when root_dev is a RAID device. When dest_dev is
26648 a RAID device, run setup() for all members independently on whether
26649 LVM abstraction is being used.
26650 (setup): Don't handle prefix at all; let grub-mkimage take care of it.
26651 If grub-mkimage has set `*install_dos_part == -2', don't override this
26652 value.
26653 Perform *install_dos_part adjustments independently on whether
26654 we're embedding or not.
26655 Clarify error message when image is too big for embedding.
26656 Remove duplicate *install_dos_part stanza.
26657
b23e5644 266582008-06-17 Robert Millan <rmh@aybabtu.com>
26659
26660 * term/ieee1275/ofconsole.c (fgcolor, bgcolor): Remove variables.
26661 (grub_ofconsole_normal_color, grub_ofconsole_highlight_color): New
26662 variables.
26663 (grub_ofconsole_setcolor, grub_ofconsole_getcolor): Load/store
26664 values in grub_ofconsole_normal_color and
26665 grub_ofconsole_highlight_color (they're not directly related to
26666 background and foreground).
26667 (grub_ofconsole_setcolorstate): Extract background and foreground
26668 from grub_ofconsole_normal_color and grub_ofconsole_highlight_color.
26669
0aac2f79 266702008-06-17 Robert Millan <rmh@aybabtu.com>
26671
26672 * util/update-grub_lib.in (prepare_grub_to_access_device): Use
26673 /boot/grub for the check in last commit, not /boot (they could be
26674 different partitions).
26675
3cca7ef3 266762008-06-16 Robert Millan <rmh@aybabtu.com>
26677
26678 * util/update-grub_lib.in (prepare_grub_to_access_device): If we were
26679 asked to setup access for the same partition that provides /boot,
26680 don't bother using UUIDs since our root already has the value we
26681 want.
26682
347396d8 266832008-06-16 Robert Millan <rmh@aybabtu.com>
26684
26685 * util/biosdisk.c (convert_system_partition_to_system_disk): Detect
26686 I2O devices.
26687 Patch from Sven Mueller <sven@debian.org>.
26688
991477f8 266892008-06-16 Robert Millan <rmh@aybabtu.com>
26690
26691 * util/update-grub.in: Check for $EUID instead of $UID.
26692 Reported by Vincent Zweije.
26693
d31a32a1 266942008-06-16 Bean <bean123ch@gmail.com>
26695
fe987087 26696 * fs/ext2.c (grub_ext2_blockgroup): Revert to pre-journal state.
d31a32a1 26697 (grub_ext2_read_block): Likewise.
26698 (grub_ext2_read_inode): Likewise.
26699 (grub_ext2_mount): Likewise.
26700 (grub_ext2_close): Likewise.
26701 (grub_ext3_get_journal): Removed.
26702
fe987087 26703 * fs/reiserfs.c (grub_reiserfs_get_item): Revert to pre-journal state.
d31a32a1 26704 (grub_reiserfs_read_symlink): Likewise.
26705 (grub_reiserfs_mount): Likewise.
26706 (grub_reiserfs_open): Likewise.
26707 (grub_reiserfs_read): Likewise.
26708 (grub_reiserfs_close): Likewise.
26709 (grub_reiserfs_get_journal): Removed.
26710
26711 * fs/fshelp.c (grub_fshelp_read): Removed.
26712 (grub_fshelp_map_block): Likewise.
26713
26714 * include/grub/fshelp.h (grub_fshelp_journal_type): Removed.
26715 (grub_fshelp_journal): Likewise.
26716 (grub_fshelp_read): Likewise.
26717 (grub_fshelp_map_block): Likewise.
26718
3540a760 267192008-06-16 Pavel Roskin <proski@gnu.org>
26720
26721 * conf/powerpc-ieee1275.rmk: Remove -msoft-float, we don't use
26722 floating point anymore.
26723 * include/grub/powerpc/libgcc.h: Leave only necessary exports.
26724
95614c84 267252008-06-15 Pavel Roskin <proski@gnu.org>
26726
26727 * commands/ls.c (grub_ls_list_files): Use integer calculations
26728 for human readable format, avoid floating point use.
26729 * kern/misc.c (grub_ftoa): Remove.
26730 (grub_vsprintf): Remove floating point support.
26731
50465dd6 267322008-06-15 Robert Millan <rmh@aybabtu.com>
26733
fe6b695a 26734 * util/grub.d/10_linux.in: Use the underlying device for loop-AES
50465dd6 26735 devices.
26736 Reported by Max Vozeler.
26737
a9207284 267382008-06-15 Robert Millan <rmh@aybabtu.com>
26739
26740 * util/i386/pc/grub-mkimage.c (generate_image): If we included a drive
26741 in our prefix, set install_{dos,bsd}_part = -2 to indicate this can be
26742 skipped later.
26743 (main): If a memdisk was requested, add "(memdisk)" drive explicitly to
26744 the beginning of the prefix.
26745
26746 * kern/i386/pc/init.c (make_install_device): Remove memdisk check.
26747 It is assumed that if we have a memdisk, grub-mkimage has set
26748 grub_prefix to include the "(memdisk)" drive in it.
26749
a7cbd45a 267502008-06-15 Robert Millan <rmh@aybabtu.com>
26751
26752 * term/i386/pc/console.c [GRUB_MACHINE_LINUXBIOS] (grub_console_init):
26753 Initialize keyboard controller after registering the terminal, so that
26754 grub_printf() can be called from grub_keyboard_controller_init().
26755
21cf716a 267562008-06-15 Robert Millan <rmh@aybabtu.com>
26757
26758 * fs/sfs.c (grub_sfs_read_extent): Fix the count of nodes in
26759 extent-btree which is written as big endian on disk.
26760 Reported by Alain Greppin <al@chilibi.org>.
26761
23a64d8e 267622008-06-14 Robert Millan <rmh@aybabtu.com>
26763
26764 * util/i386/efi/grub-install.in (modules): Remove `_chain'.
26765 * util/i386/pc/grub-install.in (modules): Likewise.
26766
d687651c 267672008-06-13 Pavel Roskin <proski@gnu.org>
26768
26769 * commands/ls.c (grub_ls_list_files): Fix format warnings.
26770
dfe9ddd4 267712008-06-13 Bean <bean123ch@gmail.com>
26772
26773 * commands/hexdump.c (grub_cmd_hexdump): Adjust offset for partition.
26774
26775 * fs/ext2.c (grub_ext3_get_journal): Fix revoke block handling.
26776
26777 * fs/fshelp.c (grub_fshelp_map_block): Don't map block 0 as it's used
26778 to indicate sparse block.
26779
16ae7781 267802008-06-12 Pavel Roskin <proski@gnu.org>
26781
e6d1a308 26782 * fs/ext2.c (grub_ext2_read_inode): Don't normalize block
26783 number, grub_fshelp_read() does it for us.
26784
16ae7781 26785 * fs/fshelp.c (grub_fshelp_read): New function. Implement
26786 linear disk read with journal translation.
26787 * fs/ext2.c: Use grub_fshelp_read() instead of grub_disk_read().
26788 * include/grub/fshelp.h: Declare grub_fshelp_read().
26789
40fd3a2b 267902008-06-09 Pavel Roskin <proski@gnu.org>
26791
26792 * fs/minix.c (grub_minix_mount): Handle error reading
26793 superblock.
26794
f5679726 267952008-06-08 Robert Millan <rmh@aybabtu.com>
26796
26797 * util/i386/pc/grub-setup.c (main): If install drive is an LVM,
26798 don't append the RAID prefix afterwards.
26799 Reported by Clint Adams.
26800
ce525529 268012008-06-08 Robert Millan <rmh@aybabtu.com>
26802
26803 Based on description from Pavel:
26804 * kern/disk.c (grub_disk_check_range): Rename to ...
26805 (grub_disk_adjust_range): ... this. Add a comment explaining the
26806 tasks performed by this function.
26807
ad4936a0 268082008-06-08 Robert Millan <rmh@aybabtu.com>
26809
26810 * include/grub/ntfs.h (struct grub_ntfs_bpb): Rename `serial_number' to
26811 `num_serial' (for consistency with other variables).
26812 (struct grub_ntfs_data): Add `uuid' member.
26813 * fs/ntfs.c (grub_ntfs_mount): Initialize `data->uuid'.
26814 (grub_ntfs_uuid): New function.
26815 (grub_ntfs_fs): Reference grub_ntfs_uuid() in `uuid' struct member.
26816
dc20b0f9 268172008-06-07 Pavel Roskin <proski@gnu.org>
26818
26819 * util/biosdisk.c (open_device): Revert last change to the
26820 function, it broke installation. The sector needs to be
26821 different dependent on which device is opened.
26822
c5e3cfba 268232008-06-06 Robert Millan <rmh@aybabtu.com>
26824
26825 Ensure GRUB_KERNEL_MACHINE_DATA_END is always consistent with the
26826 rest of GRUB, and breakage doesn't happen if its value were modified.
26827
26828 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
26829 Redefine as an offset from `GRUB_KERNEL_MACHINE_DATA_END' instead of
26830 a constant (same value).
26831 * kern/i386/pc/startup.S: Replace hardcoded `0x50' with
26832 `GRUB_KERNEL_MACHINE_DATA_END' (same value).
26833
26a1f8c4 268342008-06-06 Robert Millan <rmh@aybabtu.com>
26835
26836 * util/biosdisk.c (open_device): Do not modify sector offset when
26837 accessing a partition. kern/disk.c already handles this for us.
26838
25d6b327 268392008-06-06 Robert Millan <rmh@aybabtu.com>
26840
26841 * util/grub-emu.c (grub_machine_init): Move code in this function from
26842 here ...
26843 (main): ... to here (before grub_util_biosdisk_init() call, to prevent
26844 segfault in case grub_printf() is called).
26845
26846 * util/i386/pc/grub-install.in: Append `--device-map=${device_map}' to
26847 grub_probe. Update all users not to explicitly add it again.
26848 (grub_device): New variable; contains corresponding device for grubdir.
26849 (fs_module, partmap_module, devabstraction_module): Pass
26850 `--device ${grub_device}' to grub_probe to avoid traversing /dev
26851 every time.
26852
9ece62fb 268532008-06-05 Robert Millan <rmh@aybabtu.com>
26854
26855 * normal/misc.c (grub_normal_print_device_info): When a filesystem UUID
26856 is found, print it (same layout as with labels).
26857
1ad36d37 268582008-06-04 Robert Millan <rmh@aybabtu.com>
26859
26860 * util/biosdisk.c (get_drive): Rename to ...
26861 (find_grub_drive): ... this. Update all users.
26862
26863 (get_os_disk): Rename to ...
26864 (convert_system_partition_to_system_disk): ... this. Update all users.
26865
26866 (find_drive): Rename to ...
26867 (find_system_device): ... this. Update all users.
26868
e6a30859 268692008-06-04 Robert Millan <rmh@aybabtu.com>
26870
26871 * util/biosdisk.c (get_os_disk): Handle IDA devices.
26872 * util/grub-mkdevicemap.c (get_mmc_disk_name)
26873 (make_device_map): Likewise.
26874
00c108a4 268752008-06-01 Robert Millan <rmh@aybabtu.com>
26876
26877 * util/biosdisk.c (get_drive): Verify that `map[i].drive' is non-NULL
26878 before dereferencing it.
26879
26880 * fs/fat.c (struct grub_fat_bpb): Move fat32-specific fields into a
26881 union with fat12/fat16-specific ones. Add some new fields, including
26882 `num_serial' for both versions.
26883 (struct grub_fat_data): Add `uuid' member.
26884 (grub_fat_mount): Refer to fat32-specific fields in `bpb' by their new
26885 names. Initialize `data->uuid' using `num_serial'.
26886 (grub_fat_uuid): New function.
26887 (grub_fat_fs): Reference grub_fat_uuid() in `uuid' struct member.
26888
26889 * fs/reiserfs.c (grub_reiserfs_superblock): Add `uuid' field.
26890 (grub_reiserfs_uuid): New function.
26891 (grub_reiserfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct
26892 member.
26893
26894 * fs/xfs.c (grub_xfs_sblock): Add `uuid' field.
26895 (grub_xfs_uuid): New function.
26896 (grub_xfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct member.
26897
1385c5bb 268982008-06-01 Robert Millan <rmh@aybabtu.com>
26899
26900 * util/update-grub_lib.in (prepare_grub_to_access_device): Generate
26901 code that is backward compatible with pre-uuid search command.
26902
c682dfd7 269032008-05-31 Robert Millan <rmh@aybabtu.com>
26904
26905 * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Iterate through
26906 floppies after everything else, to ensure floppy drive isn't accessed
26907 unnecessarily (patch from Bean).
26908
b7db5d47 269092008-05-31 Robert Millan <rmh@aybabtu.com>
26910
26911 * commands/search.c (search_label, search_fs_uuid, search_file): Do
26912 not print device names when we were asked to set a variable.
26913
6e037aa9 269142008-05-31 Robert Millan <rmh@aybabtu.com>
26915
26916 * term/ieee1275/ofconsole.c (grub_ofconsole_setcursor): Implement
26917 using "cursor-on" and "cursor-off" commands (understood at least by
26918 the Open Firmware flavour on OLPC).
26919
41305bc8 269202008-05-31 Michael Gorven <michael@gorven.za.net>
26921
26922 * term/terminfo.c (grub_terminfo_set_current): Correct vt100 cursor
26923 on and off sequences.
26924
69ba137e 269252008-05-31 Robert Millan <rmh@aybabtu.com>
26926
26927 * util/update-grub_lib.in: Replace `grub-probe' with `${grub_probe}'.
26928 * util/update-grub.in: Likewise.
26929
520ae21b 269302008-05-30 Pavel Roskin <proski@gnu.org>
26931
26932 * util/biosdisk.c (linux_find_partition): Simplify logic and
26933 make the code more universal. Keep special processing for
26934 devfs, but use a simple rule for all other devices. If the
26935 device ends with a number, append 'p' and the partition number.
26936 Otherwise, append only the partition number.
26937
5786569b 269382008-05-30 Robert Millan <rmh@aybabtu.com>
26939
26940 * util/update-grub.in (GRUB_DISABLE_LINUX_UUID): Export variable.
26941 * util/grub.d/10_linux.in: If GRUB_DEVICE_UUID is set, and
26942 GRUB_DISABLE_LINUX_UUID isn't true, use the filesystem UUIDs as
26943 the `root' parameter to Linux.
26944
51500452 269452008-05-30 Robert Millan <rmh@aybabtu.com>
26946
26947 * commands/search.c (options): Rename --fs_uuid to --fs-uuid.
26948 * util/update-grub_lib.in (prepare_grub_to_access_device): Replace
26949 --fs_uuid with --fs-uuid.
26950 * util/update-grub.in: Allow filesystem UUID probes to fail (since not
26951 all filesystems support them).
26952
811d3878 269532008-05-30 Robert Millan <rmh@aybabtu.com>
26954
26955 * fs/ext2.c (grub_ext2_uuid): Use `04x' instead of '02x' as
f19dbdb7 26956 grub_printf() flags, since we're printing in units of 2 bytes.
811d3878 26957
cab63c95 269582008-05-30 Robert Millan <rmh@aybabtu.com>
26959
26960 * util/grub.d/00_header.in: Remove obsolete comment referencing
26961 convert_system_path_to_grub_path().
26962 * util/update-grub.in: Likewise.
26963 * util/update-grub_lib.in (is_path_readable_by_grub): New function.
26964 (convert_system_path_to_grub_path): Add a warning message explaining
26965 that this function is deprecated. Rely on is_path_readable_by_grub()
26966 for the readability checks.
26967 (font_path): Use is_path_readable_by_grub() for the readability
26968 check rather than convert_system_path_to_grub_path().
26969
972e2f7a 269702008-05-30 Robert Millan <rmh@aybabtu.com>
26971
26972 * util/update-grub_lib.in (prepare_grub_to_access_device): New function.
26973 * util/update-grub.in: Set `GRUB_FONT_PATH' to the system path, without
26974 converting it first.
26975 * util/grub.d/00_header.in: Use prepare_grub_to_access_device() to setup
26976 grub.cfg for access to font file, and afterwards call it again to set
26977 the root device.
26978
62191274 269792008-05-30 Robert Millan <rmh@aybabtu.com>
26980
26981 * commands/search.c (options): Add --fs_uuid option.
26982 (search_fs_uuid): New function.
26983 (grub_cmd_search): Fix --set argument passing.
26984 Use search_fs_uuid() when requested via --fs_uuid.
26985 (grub_search_init): Update help message.
26986 * fs/ext2.c (struct grub_ext2_sblock): Rename `unique_id' to `uuid'
26987 and redeclare it as an array of 16-bit words.
26988 (grub_ext2_uuid): New function.
26989 (grub_ext2_fs): Reference grub_ext2_uuid() in `uuid' struct member.
26990 * include/grub/fs.h (struct grub_fs): Add `uuid' struct member.
26991 * util/update-grub.in (GRUB_DEVICE_UUID, GRUB_DEVICE_BOOT)
26992 (GRUB_DEVICE_BOOT_UUID): New variables.
26993 (GRUB_DRIVE. GRUB_DRIVE_BOOT. GRUB_DRIVE_BOOT_GRUB): Remove.
26994 * util/grub.d/00_header.in: Set root using `search --fs_uuid' command
26995 whenever possible.
26996 * util/grub.d/10_hurd.in: Avoid explicit use of root drive. Instead,
26997 just assume `root' variable has the right value.
26998 * util/grub.d/10_linux.in: Likewise.
26999 * util/grub-probe.c (probe): Probe for filesystem UUID when requested
27000 via PRINT_FS_UUID.
27001 (main): Recognise `-t fs_uuid' argument.
27002
01b73ec8 270032008-05-30 Robert Millan <rmh@aybabtu.com>
27004
27005 * util/biosdisk.c (map): Redefine structure to hold information
27006 about GRUB drive name.
fe6b695a 27007 (get_drive): Reimplement without assuming (and verifying) BIOS-like
01b73ec8 27008 drive names.
27009 (call_hook): Remove.
27010 (grub_util_biosdisk_iterate): Access drive names via `.drive' struct
27011 member. Assume drive has partitions.
27012 (grub_util_biosdisk_open): Access device names via `.device' struct
27013 member.
27014 (open_device): Likewise.
27015 (find_drive): Likewise.
27016 (read_device_map): Adjust map[] usage to match the new struct
27017 definition. Don't check for duplicates (still possible, but not cheap
27018 anymore).
27019 (grub_util_biosdisk_fini): Free malloced buffers referenced by map[].
27020 (make_device_name): Remove assumption of BIOS-like drive names.
27021
22f16596 270222008-05-30 Pavel Roskin <proski@gnu.org>
27023
27024 * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Remove, as
27025 compiling execute.c doesn't need grub_script.tab.h anymore.
27026 (normal/command.c_DEPENDENCIES): Likewise.
27027 (normal/function.c_DEPENDENCIES): Likewise.
27028 * conf/i386-ieee1275.rmk: Likewise.
27029 * conf/i386-linuxbios.rmk: Likewise.
27030 * conf/i386-pc.rmk: Likewise.
27031 * conf/powerpc-ieee1275.rmk: Likewise.
27032 * conf/sparc64-ieee1275.rmk: Likewise.
27033
528ad8f2 270342008-05-29 Pavel Roskin <proski@gnu.org>
27035
d1dff95d 27036 * disk/lvm.c (grub_lvm_scan_device): Check for the buffer end
27037 when scanning metadata for volume group name.
27038
528ad8f2 27039 * include/grub/script.h: Don't include grub_script.tab.h. It's
27040 a generated file, which may only be included from the files with
27041 DEPENDENCIES rules in the makefile. Don't use typedef YYSTYPE,
27042 use union YYSTYPE, as the later allows forward declaration.
27043 * normal/lexer.c: Don't use typedef YYSTYPE, use union YYSTYPE.
27044
47248e08 270452008-05-29 Robert Millan <rmh@aybabtu.com>
27046
27047 * term/i386/pc/at_keyboard.c: Include `grub/machine/machine.h'.
27048 (OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): New macros.
27049 [GRUB_MACHINE_IEEE1275] (keyboard_map): Add OLPC scan codes
27050 (grub_console_checkkey): Add grub_dprintf() call to report unknown
27051 scan codes.
27052
ee632529 270532008-05-29 Robert Millan <rmh@aybabtu.com>
27054
27055 * term/i386/pc/at_keyboard.c (grub_console_checkkey): Add support for
27056 control key combinations.
27057
eee96e08 270582008-05-29 Robert Millan <rmh@aybabtu.com>
27059
27060 * util/powerpc/ieee1275/grub-install.in: Move from here ...
27061 * util/ieee1275/grub-install.in: ... to here.
27062 * powerpc-ieee1275.rmk (grub_install_SOURCES): Update location.
27063 * i386-ieee1275.rmk (sbin_SCRIPTS): New variable.
27064 (grub_install_SOURCES): Likewise.
27065
da9a6a94 270662008-05-29 Robert Millan <rmh@aybabtu.com>
27067
27068 * fs/affs.c: Update copyright year.
27069 * fs/ext2.c: Likewise.
27070 * fs/fshelp.c: Likewise.
27071 * fs/hfsplus.c: Likewise.
27072 * fs/ntfs.c: Likewise.
27073 * fs/xfs.c: Likewise.
27074 * include/grub/fshelp.h: Likewise.
27075 * util/grub-mkdevicemap.c: Likewise.
27076
12e65f3a 270772008-05-28 Robert Millan <rmh@aybabtu.com>
27078
27079 * util/update-grub.in: Allow chmod call to fail, since /boot/grub/
27080 might need to be fatfs to support some firmware implementations
27081 (e.g. OFW or EFI).
27082
23023641 270832008-05-28 Robert Millan <rmh@aybabtu.com>
27084
27085 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle MMC
27086 devices.
27087 * util/grub-mkdevicemap.c (get_mmc_disk_name)
27088 (make_device_map): Likewise.
27089
887d2619 270902008-05-20 Bean <bean123ch@gmail.com>
27091
27092 * fs/fshelp.c (grub_fshelp_map_block): New function.
27093 (grub_fshelp_find_file): Use 64-bit type for pos and block address.
27094 Use `>>' and `&' operator to avoid 64-bit divide and modulo.
27095
27096 * include/grub/fshelp.h (grub_fshelp_journal_type): New enum.
27097 (GRUB_FSHELP_JOURNAL_UNUSED_MAPPING): New macro.
27098 (grub_fshelp_journal): New structure.
27099 (grub_fshelp_map_block): New function prototype.
27100 (grub_fshelp_read_file): Use grub_disk_addr_t as block type.
27101 (grub_fshelp_map_block): Likewise.
27102
27103 * fs/ext2.c (EXT3_FEATURE_COMPAT_HAS_JOURNAL): New macro.
27104 (EXT3_JOURNAL_MAGIC_NUMBER): Likewise.
27105 (EXT3_JOURNAL_DESCRIPTOR_BLOCK): Likewise.
27106 (EXT3_JOURNAL_COMMIT_BLOCK): Likewise.
27107 (EXT3_JOURNAL_SUPERBLOCK_V1): Likewise.
27108 (EXT3_JOURNAL_SUPERBLOCK_V2): Likewise.
27109 (EXT3_JOURNAL_REVOKE_BLOCK): Likewise.
27110 (EXT3_JOURNAL_FLAG_ESCAPE): Likewise.
27111 (EXT3_JOURNAL_FLAG_SAME_UUID): Likewise.
27112 (EXT3_JOURNAL_FLAG_DELETED): Likewise.
27113 (EXT3_JOURNAL_FLAG_LAST_TAG): Likewise.
27114 (grub_ext2_sblock): New members for journal support.
27115 (grub_ext3_journal_header): New structure.
27116 (grub_ext3_journal_revoke_header): Likewise.
27117 (grub_ext3_journal_block_tag): Likewise.
27118 (grub_ext3_journal_sblock): Likewise.
27119 (grub_fshelp_node): New members logfile and journal.
27120 (grub_ext2_read_block): Change block type to grub_disk_addr_t. Use
27121 grub_fshelp_map_block to get real block number.
27122 (grub_ext2_blockgroup): Use grub_fshelp_map_block to get real block
27123 number.
27124 (grub_ext2_read_inode): Likewise.
27125 (grub_ext3_get_journal): New function.
27126 (grub_read_inode): Initialize journal using grub_ext3_get_journal.
27127 (grub_ext2_close): Release memory used by journal.
27128
27129 * fs/reiserfs.c (REISERFS_MAGIC_STRING): Changed to "ReIsEr".
27130 (REISERFS_MAGIC_DESC_BLOCK): New macro.
27131 (grub_reiserfs_transaction_header): Renamed to
27132 grub_reiserfs_description_block, replace field data with real_blocks.
27133 (grub_reiserfs_commit_block): New structure.
27134 (grub_reiserfs_data): New member journal.
27135 (grub_reiserfs_get_item): Use grub_fshelp_map_block to get real block
27136 number.
27137 (grub_reiserfs_read_symlink): Likewise.
27138 (grub_reiserfs_iterate_dir): Likewise.
27139 (grub_reiserfs_open): Likewise.
27140 (grub_reiserfs_read): Likewise.
27141 (grub_reiserfs_get_journal): New function.
27142 (grub_reiserfs_mount): Use "ReIsEr" as super block magic, as there are
27143 three varieties ReIsErFs, ReIsEr2Fs and ReIsEr3Fs. Initialize journal
27144 using grub_reiserfs_get_journal.
27145 (grub_reiserfs_close): Release memory used by journal.
27146
27147 * fs/affs.c (grub_affs_read_block): Change block type to
27148 grub_disk_addr_t. Use grub_divmod64 to do 64-bit division.
27149
27150 * fs/afs.c (grub_afs_read_block): Change block type to grub_disk_addr_t.
27151
27152 * fs/hfsplus.c (grub_hfsplus_read_block): Likewise.
27153
27154 * fs/ntfs.c (grub_ntfs_read_block): Likewise.
27155
27156 * fs/udf.c (grub_udf_read_block): Change block type to
27157 grub_disk_addr_t. Use type cast to avoid warning.
27158
27159 * fs/xfs.c (grub_xfs_read_block): Likewise.
27160
b7c6bed5 271612008-05-16 Christian Franke <franke@computer.org>
27162
27163 * commands/cat.c (grub_cmd_cat): Remove non-ESC keys from keyboard queue
27164 to ensure that break with ESC will always work.
27165 * commands/sleep.c (grub_interruptible_millisleep): Likewise.
27166 Remove ESC from keyboard queue.
27167
eedf167f 271682008-05-16 Christian Franke <franke@computer.org>
27169
27170 * util/biosdisk.c: [__CYGWIN__] Add includes.
27171 (grub_util_biosdisk_open): Use Linux code also for Cygwin.
27172 (get_os_disk): Move variable declarations to OS specific
27173 parts to avoid warning.
27174 [__GNU__] (get_os_disk): Fix /dev/sdXsN case.
27175 [__CYGWIN__] (get_os_disk): Add Cygwin /dev/sdXN device names.
27176 (grub_util_biosdisk_get_grub_dev): Use Linux code also for
27177 Cygwin.
27178 * util/getroot.c: [__CYGWIN__] Add includes.
27179 (strip_extra_slashes): Fix "/" case.
27180 [__CYGWIN__] (get_win32_path): New function.
27181 [__CYGWIN__] (grub_get_prefix): Add conversion to win32 path.
27182 [__CYGWIN__] (find_root_device): Disable.
27183 [__CYGWIN__] (get_bootsec_serial): New function.
27184 [__CYGWIN__] (find_cygwin_root_device): Likewise.
27185 [__linux__] (grub_guess_root_device): Add early returns to simplify
27186 structure.
27187 [__CYGWIN__] (grub_guess_root_device): Call find_cygwin_root_device.
27188 [__linux__] (grub_util_get_dev_abstraction): Enable LVM and RAID
27189 check for Linux only.
27190
a079699e 271912008-05-15 Bean <bean123ch@gmail.com>
27192
27193 * kern/i386/pc/startup.S (grub_console_getkey): Workaround for the
27194 keyboard hang problem in apple's intel mac.
27195
1cf4059a 271962008-05-09 Robert Millan <rmh@aybabtu.com>
27197
27198 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle Virtio
27199 devices.
27200 * util/grub-mkdevicemap.c (get_virtio_disk_name)
27201 (make_device_map): Likewise.
27202 Reported by Aurelien Jarno <aurel32@debian.org>
27203
ed759390 272042008-05-07 Ian Campbell <ijc@hellion.org.uk>
27205
27206 * util/biosdisk.c (get_os_disk): Recognise xvd type disks.
27207 * util/grub-mkdevicemap.c (get_xvd_disk_name): New function.
27208 (make_device_map): Output entries for xvd type disks.
27209
b56c4eaa 272102008-05-07 Robert Millan <rmh@aybabtu.com>
27211
27212 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle CCISS
27213 devices.
27214 * util/grub-mkdevicemap.c (get_cciss_disk_name)
27215 (make_device_map): Likewise.
27216 Reported by Roland Dreier <rdreier@cisco.com>
27217
7f8866ed 272182008-05-07 Robert Millan <rmh@aybabtu.com>
27219
27220 * disk/lvm.c (grub_lvm_scan_device): Detect errors in an additional
27221 grub_strstr() call. Correct a few mistakes in failure path handling.
27222
b0346e0f 272232008-05-06 Robert Millan <rmh@aybabtu.com>
27224
27225 * util/update-grub_lib.in (make_system_path_relative_to_its_root):
27226 Do not print a trailing slash (therefore, the root directory is an
27227 empty string).
27228 (convert_system_path_to_grub_path): Do not remove trailing slash
27229 from make_system_path_relative_to_its_root() output.
27230
27231 * util/i386/pc/grub-install.in: Add trailing slash to output from
27232 make_system_path_relative_to_its_root().
27233
6cf12cbd 272342008-05-06 Robert Millan <rmh@aybabtu.com>
27235
27236 * util/grub-fstest.c (grub_refresh): Call `fflush (stdout)'. This
27237 ensures that output lines aren't intermangled with those sent to
27238 stderr (via grub_util_info()).
27239 * util/grub-probe.c (grub_refresh): Likewise.
27240 * util/i386/pc/grub-setup.c (grub_refresh): Likewise.
27241
0fbb3117 272422008-05-05 Christian Franke <franke@computer.org>
27243
27244 * util/grub-mkdevicemap.c (get_floppy_disk_name) [__CYGWIN__]:
27245 Add Cygwin device names.
27246 (get_ide_disk_name) [__CYGWIN__]: Likewise.
27247 (get_scsi_disk_name) [__CYGWIN__]: Likewise.
27248 (check_device): Return error instead of success on empty name.
27249 (make_device_map): Move label inside linux specific code to
27250 prevent compiler warning.
27251
8124cdb7 272522008-04-30 Robert Millan <rmh@aybabtu.com>
27253
27254 Based on patch from Fabian Greffrath <greffrath@leat.rub.de>
27255 * util/grub.d/10_linux.in: Add ${GRUB_CMDLINE_LINUX_DEFAULT} to the
27256 first boot option.
27257 * util/update-grub.in: Export GRUB_CMDLINE_LINUX_DEFAULT.
27258
094c01d0 272592008-04-29 Robert Millan <rmh@aybabtu.com>
27260
27261 * docs/grub.cfg: New file (example GRUB configuration).
27262
f4b1fc02 272632008-04-26 Robert Millan <rmh@aybabtu.com>
27264
329ce2a5 27265 * DISTLIST: Sort (sort -u < DISTLIST | sponge DISTLIST). Add
27266 `loader/i386/ieee1275/linux.c', `loader/i386/ieee1275/linux_normal.c'
27267 and `disk/ieee1275/nand.c'.
f4b1fc02 27268
25f16ec1 272692008-04-25 Bean <bean123ch@gmail.com>
f19dbdb7 27270
25f16ec1 27271 * Makefile.in (RMKFILES): Add missing arch i386-ieee1275 and
27272 i386-linuxbios.
27273
27274 * commands/hexdump.c (grub_cmd_hexdump): Support dumping of device,
27275 change the buffer size to 4096 for cdrom device.
27276
27277 * conf/i386-ieee1275.rmk (pkglib_MODULES): Add _linux.mod, linux.mod
27278 and nand.mod.
27279 (_linux_mod_SOURCES): New variable.
27280 (_linux_mod_CFLAGS): Likewise.
27281 (_linux_mod_LDFLAGS): Likewise.
27282 (linux_mod_SOURCES): Likewise.
27283 (linux_mod_CFLAGS): Likewise.
27284 (linux_mod_LDFLAGS): Likewise.
27285 (nand_mod_SOURCES): Likewise.
27286 (nand_mod_CFLAGS): Likewise.
27287 (nand_mod_LDFLAGS): Likewise.
27288
27289 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Return
27290 GRUB_ERR_UNKNOWN_DEVICE instead of GRUB_ERR_BAD_DEVICE if no device
27291 type property. (nand device in olpc don't have this property)
27292
27293 * include/grub/disk.h (grub_disk_dev_id): New macro
27294 GRUB_DISK_DEVICE_NAND_ID.
27295
27296 * include/grub/i386/ieee1275/loader.h (grub_rescue_cmd_linux): New
27297 function prototype.
27298 (grub_rescue_cmd_initrd): Likewise.
27299
27300 * include/grub/i386/linux.h (GRUB_LINUX_OFW_SIGNATURE): New macro.
27301 (linux_kernel_params): Add new member ofw_signature, ofw_num_items,
27302 ofw_cif_handler and ofw_idt, adjust padding number.
f19dbdb7 27303
25f16ec1 27304 * include/grub/i386/pc/memory.h (grub_upper_mem): Export it if
27305 GRUB_MACHINE_IEEE1275 is defined.
27306
27307 * include/grub/ieee1275/ieee1275.h (grub_available_iterate):
27308 Use NESTED_FUNC_ATTR attribute on the hook parameter.
27309
27310 * kern/powerpc/ieee1275/init.c (grub_claim_heap): Use NESTED_FUNC_ATTR
27311 on nested function heap_init.
27312 (grub_upper_mem): New variable for i386-ieee1275.
27313 (grub_get_extended_memory): New function for i386-ieee1275.
27314 (grub_machine_init): Call grub_get_extended_memory for i386-ieee1275.
27315
27316 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Use
27317 NESTED_FUNC_ATTR on the hook parameter. Don't quit if no device type
27318 property.
f19dbdb7 27319
25f16ec1 27320 * loader/i386/ieee1275/linux.c: New file.
27321
27322 * loader/i386/ieee1275/linux_normal.c: New file.
27323
27324 * disk/ieee1275/nand.c: New file.
27325
e89d61e9 273262008-04-18 Thomas Schwinge <tschwinge@gnu.org>
27327
27328 * util/i386/pc/grub-mkrescue.in (grub_mkimage): Don't overwrite correct
27329 value.
27330 * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Likewise.
27331
602566f6 273322008-04-18 Robert Millan <rmh@aybabtu.com>
27333
27334 Restructures early code path on ieee1275 to unify grub_main() as
27335 the first C function that is executed in every platform.
27336
27337 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_init): New prototype.
27338 * kern/i386/ieee1275/startup.S (_start): Jump to grub_main() instead of
27339 cmain().
27340 * kern/powerpc/ieee1275/crt0.S (_start): Likewise.
27341 * kern/ieee1275/cmain.c (cmain): Rename to ...
27342 * kern/ieee1275/cmain.c (grub_ieee1275_init): ... this.
27343 * kern/ieee1275/init.c (grub_machine_init): Call grub_ieee1275_init()
27344 at the beginning.
27345
57490c2b 273462008-04-18 Robert Millan <rmh@aybabtu.com>
27347
27348 * util/update-grub.in: Fix syntax error when setting
27349 `GRUB_PRELOAD_MODULES'.
27350 Reported by Stephane Chazelas <stephane@artesyncp.com>
27351
1977517d 273522008-04-17 Lubomir Kundrak <lkundrak@redhat.com>
27353
27354 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): take only .text
27355 section into account, newer toolchains generate unique build ids
27356 * configure.ac: remove the test for --build-id=none acceptance,
e0c5dacb 27357 we want build ids to be preserved
1977517d 27358 * genmk.rb: add -R .note.gnu.build-id to objcopy, so build id
27359 far from other sections don't cause the raw binary images grow
27360 size
27361
bfb1f1a2 273622008-04-15 Robert Millan <rmh@aybabtu.com>
27363
27364 * disk/lvm.c: Update copyright year.
27365 * kern/misc.c: Likewise.
27366
01979850 273672008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
27368
27369 * disk/lvm.c (grub_lvm_scan_device): Add forgotten failure path when
f19dbdb7 27370 there is no memory left for physical volume name.
01979850 27371
0a1150e2 273722008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
27373
27374 * disk/lvm.c (grub_lvm_scan_device): Fix logical volume's physical
27375 volume name mapping to support bigger than 9 character names properly.
27376
82ead3fe 273772008-04-13 Robert Millan <rmh@aybabtu.com>
27378
27379 * disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Fix CHS limit check,
27380 as per http://www.allensmith.net/Storage/HDDlimit/Int13h.htm
27381
e54a72f5 273822008-04-13 Christian Franke <franke@computer.org>
27383
27384 * util/i386/pc/grub-mkrescue.in: Add --emulation=floppy
27385 to create a floppy emulation boot CD when non emulation mode
27386 does not work.
27387 Enable Joliet CD filesystem extension.
27388
9fe86034 273892008-04-13 Robert Millan <rmh@aybabtu.com>
27390
27391 * kern/misc.c (grub_strncat): Fix off-by-one error.
27392 Reported by Zhang Huan <zhanghuan@nrchpc.ac.cn>
27393
27394 * kern/env.c (grub_env_context_close): Clear current context, not
27395 previous one.
27396 Patch from Zhang Huan <zhanghuan@nrchpc.ac.cn>
27397
27398 * kern/misc.c (grub_strcat): Minor speed optimization (same code size).
27399
7ceeee39 274002008-04-13 Robert Millan <rmh@aybabtu.com>
27401
27402 Improve robustness when handling LVM.
27403
27404 * disk/lvm.c (grub_lvm_getvalue): Return 0 when `*p' is NULL
f19dbdb7 27405 (and leave `*p' unmodified).
7ceeee39 27406 (grub_lvm_iterate): Don't assume `vg->lvs != NULL' when iterating
27407 through it.
27408 (grub_lvm_memberlist): Don't assume `lv->vg->pvs != NULL' when
27409 iterating through it.
27410 (grub_lvm_open): Don't assume `vg->lvs != NULL' when iterating
27411 through it.
fe6b695a 27412 (grub_lvm_scan_device): Check the return value (and fail gracefully
7ceeee39 27413 when due) on each grub_lvm_getvalue() or grub_strstr() call.
27414 Don't assume `vg->pvs != NULL' when iterating through it.
27415
58cd3d85 274162008-04-13 Robert Millan <rmh@aybabtu.com>
27417
27418 * gendistlist.sh (EXTRA_DISTFILES): Add `genpartmaplist.sh'.
27419 * genmk.rb (partmap): New variable.
27420 (CLEANFILES, PARTMAPFILES): Add #{partmap}.
27421 (#{partmap}): New target rule.
27422 * genpartmaplist.sh: New file.
27423 * Makefile.in (pkglib_DATA): Add partmap.lst.
27424 (partmap.lst): New target rule.
27425 * util/i386/pc/grub-mkrescue.in: Generate grub.cfg that loads needed
27426 modules (including all partition maps), instead of preloading them.
27427
78b51059 274282007-04-13 Fabian Greffrath <fabian.greffrath@web.de>
27429
27430 * util/grub.d/30_os-prober.in: New script. Use `os-prober' and
27431 `linux-boot-prober' (if installed) to detect other operating
27432 systems which are installed on the computer and add them to
27433 the boot menu.
27434 * conf/common.rmk: Build and install 30_os-prober.
27435
a91627b4 274362008-04-12 Robert Millan <rmh@aybabtu.com>
27437
27438 * kern/powerpc/ieee1275/init.c: Move from here ...
27439 * kern/ieee1275/init.c: ... to here. Update all users.
27440
27441 * kern/powerpc/ieee1275/cmain.c: Move from here ...
27442 * kern/ieee1275/cmain.c: ... to here. Update all users.
27443
27444 * kern/powerpc/ieee1275/openfw.c: Move from here ...
27445 * kern/ieee1275/openfw.c: ... to here. Update all users.
27446
27447 * loader/powerpc/ieee1275/multiboot2.c: Move from here ...
27448 * loader/ieee1275/multiboot2.c: ... to here. Update all users.
27449
322562ea 274502008-04-10 Pavel Roskin <proski@gnu.org>
27451
27452 * configure.ac: Always use "_cv_" in cache variables for
27453 compatibility with Autoconf 2.62.
27454
a02a73c5 274552008-04-07 Robert Millan <rmh@aybabtu.com>
27456
27457 Revert grub/machine/init.h addition by Pavel (since it breaks on
27458 i386-ieee1275 and others):
27459 * util/i386/pc/misc.c: Remove grub/machine/init.h.
27460 * util/powerpc/ieee1275/misc.c: Likewise.
27461
25c024b1 274622008-04-07 Robert Millan <rmh@aybabtu.com>
27463
27464 * util/grub-probe.c (probe): Improve error message.
27465
3cbd2f98 274662008-04-07 Robert Millan <rmh@aybabtu.com>
27467
27468 * util/biosdisk.c (read_device_map): Skip devices that don't exist
27469 (this prevents the presence of a bogus entry from ruining the whole
27470 thing).
27471
87a297bf 274722008-04-06 Pavel Roskin <proski@gnu.org>
27473
36747a62 27474 * util/biosdisk.c: Include grub/util/biosdisk.h.
27475 * util/grub-fstest.c (execute_command): Make static.
27476 * util/grub-mkdevicemap.c (check_device): Likewise.
27477 * util/i386/pc/misc.c: Include grub/machine/init.h.
27478 * util/powerpc/ieee1275/misc.c: Likewise.
27479 * util/lvm.c: Include grub/util/lvm.h.
27480 * util/misc.c: Include grub/kernel.h, grub/misc.h and
27481 grub/cache.h.
27482 * util/raid.c: Include grub/util/raid.h.
27483 (grub_util_getdiskname): Make static.
27484
87a297bf 27485 * util/grub-emu.c (main): Remove calls to grub_hostfs_init() and
27486 grub_hostfs_fini(), as they are called from grub_init_all() and
27487 grub_fini_all() respectively. This fixes an infinite loop in
27488 grub-fstest due to double registration of hostfs.
27489 Reported by Christian Franke <Christian.Franke@t-online.de>
27490
f6ce7629 274912008-04-05 Pavel Roskin <proski@gnu.org>
27492
27493 * bus/pci.c (grub_pci_iterate): For multifunction devices, probe
27494 all 8 functions. Otherwise, probe function 0 only.
27495
070e49e4 274962008-04-04 Pavel Roskin <proski@gnu.org>
27497
8b088a4c 27498 * commands/lspci.c (grub_lspci_iter): Print the bus number
27499 correctly.
27500
4f657021 27501 * commands/lspci.c (grub_pci_classes): Fix typos.
27502 (grub_lspci_iter): Don't print func twice. Print vendor ID
27503 before device ID, as it's normally done.
27504
070e49e4 27505 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
27506 Fix signedness warnings.
27507 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate):
27508 Likewise.
27509 * util/ieee1275/get_disk_name.c: Include config.h so that
27510 _GNU_SOURCE is defined and getline() is declared. Mark an
27511 unused argument as such. Fix a signedness warning.
27512
ba7328dc 275132008-04-02 Pavel Roskin <proski@gnu.org>
27514
26887f22 27515 * genkernsyms.sh.in: Use more robust assignments for CC and
27516 srcdir. Quote srcdir.
27517 * gensymlist.sh.in: Likewise. Assert at the compile time that
27518 the symbol table is not empty.
27519
ba7328dc 27520 * disk/raid.c (grub_raid_memberlist): Fix a signedness warning.
27521 * fs/cpio.c (grub_cpio_read): Likewise.
27522
0f582c6b 275232008-04-01 Pavel Roskin <proski@gnu.org>
27524
4b6e1995 27525 * disk/ata.c (grub_ata_open): Don't lose precision in disk->id.
27526 * disk/host.c (grub_host_open): Likewise.
27527 * disk/loopback.c (grub_loopback_open): Likewise.
27528 * disk/memdisk.c (grub_memdisk_open): Use a string pointer for
27529 disk->id as in disk/host.c, not a multi-character constant.
27530
828a2768 27531 * util/grub-fstest.c (cmd_cmp): Use fseeko(), not fseek(). The
27532 later is obsolete, potentially dangerous and sets a bad example.
27533 * util/i386/efi/grub-mkimage.c (make_header): Likewise.
27534 * util/misc.c (grub_util_get_image_size): Likewise.
27535
2bb4fb47 27536 * disk/loopback.c (options): Improve help for "--partitions".
27537
0f582c6b 27538 * normal/arg.c (grub_arg_show_help): Fix spacing of the long
27539 options to align them with the short options, e.g. "echo -e".
27540
a33224e0 275412008-03-31 Bean <bean123ch@gmail.com>
27542
27543 * video/reader/png.c (grub_png_data): New member is_16bit and
27544 image_data.
27545 (grub_png_decode_image_header): Detect 16 bit png image.
27546 (grub_png_convert_image): New function to convert 16 bit image to 8 bit.
27547 (grub_png_decode_png): Call grub_png_convert_image for 16 bit image.
27548 (grub_video_reader_png): Release memory occupied by image_data.
27549
27550 * fs/ntfs.c (find_attr): Handle non-resident attribute list larger than
27551 4096 bytes.
27552 (grub_nfs_mount): Skip the test for sector per cluster.
27553
27554 * include/grub/ntfs.h (MAX_SPC): Removed.
27555
86cb4f54 275562008-03-31 Bean <bean123ch@gmail.com>
27557
27558 * conf/common.rmk (pkgdata_MODULES): Add afs.mod.
27559 (grub_probe_SOURCES): Add fs/afs.c.
27560 (grub_fstest_SOURCES): Likewise.
27561 (afs_mod_SOURCES): New variable.
27562 (afs_mod_CFLAGS): Likewise.
27563 (afs_mod_LDFLAGS): Likewise.
27564
27565 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/afs.c.
27566 (grub_emu_SOURCES): Likewise.
27567
27568 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
27569
27570 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
27571
27572 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
27573
27574 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
27575
27576 * fs/afs.c: New file.
27577
17c74c21 275782008-03-30 Pavel Roskin <proski@gnu.org>
27579
4cb68e89 27580 * disk/host.c: Include grub/misc.h to fix a warning.
27581 * util/hostfs.c: Use GRUB_MOD_INIT and GRUB_MOD_FINI to fix
27582 warnings about implicit declarations.
27583
8790bb04 27584 * fs/udf.c (grub_udf_mount): Fix warning about a shadowing a
27585 variable.
27586 * include/grub/i386/loader.h: Change declaration of
27587 grub_linux_boot() to match what grub_loader_set() expects.
27588 * util/getroot.c (grub_guess_root_device): Return const char* to
27589 fix a warning.
27590 * util/grub-probe.c (probe): Fix a warning about uninitialized
27591 abstraction_name variable.
27592 * util/i386/get_disk_name.c (grub_util_get_disk_name): Mark
27593 second argument as unused to fix a warning.
27594
9a3f3296 27595 * loader/i386/pc/multiboot2.c (grub_mb2_arch_elf64_hook): Add
27596 missing grub_error() call.
27597
0ecef90d 27598 * util/update-grub_lib.in: Define datarootdir, since Autoconf
27599 2.60 and newer uses it to define datadir.
27600
0bf6d401 27601 * commands/sleep.c: Fix warning about implicit declaration.
27602 * disk/memdisk.c: Likewise.
27603 * loader/aout.c: Likewise.
27604 * loader/i386/bsd_normal.c: Likewise.
27605 * util/grub-probe.c: Likewise.
27606
7cdacf97 27607 * commands/i386/cpuid.c (has_longmode): Make static.
27608 * disk/i386/pc/biosdisk.c (cd_drive): Likewise.
27609 * include/grub/i386/bsd.h (bios_memmap_t): Remove, it's unused.
27610
17c74c21 27611 * kern/i386/pc/startup.S (real_to_prot): Use %cs prefix to load
27612 GDT. This is more robust, as %ds can change.
27613 (grub_biosdisk_rw_int13_extensions): Don't clear %ds before
27614 calling real_to_prot().
27615 (grub_biosdisk_get_diskinfo_int13_extensions): Likewise.
27616
80a3e68b 276172008-03-28 Pavel Roskin <proski@gnu.org>
27618
27619 * kern/i386/pc/startup.S: Assert that uncompressed functions
27620 don't spill beyond GRUB_KERNEL_MACHINE_RAW_SIZE.
27621 * kern/i386/pc/lzo1x.S: Remove all .align directives in the
27622 code, as they push parts of the code (error handlers) beyond
27623 GRUB_KERNEL_MACHINE_RAW_SIZE. Speed is not as important in this
27624 code as correctness and size.
27625
77bcd272 276262008-03-28 Pavel Roskin <proski@gnu.org>
27627
27628 * kern/i386/pc/startup.S
27629 (grub_biosdisk_get_diskinfo_int13_extensions): When converting
27630 data block address to the real mode, keep offset minimal. This
27631 works around a bug in AWARD BIOS on old Athlon systems, which
27632 makes CD detection hang.
27633
c5dfd43b 276342008-03-26 Pavel Roskin <proski@gnu.org>
27635
27636 * normal/color.c (grub_parse_color_name_pair): Make `name' a
27637 const.
27638 * include/grub/normal.h: Add grub_parse_color_name_pair()
27639 declaration.
27640
bf962df2 276412008-03-24 Bean <bean123ch@gmail.com>
27642
27643 * disk/i386/pc/biosdisk.c (cd_start): Removed.
27644 (cd_count): Removed.
27645 (cd_drive): New variable.
27646 (grub_biosdisk_get_drive): Don't check for (cdN) device.
27647 (grub_biosdisk_call_hook): Likewise.
27648 (grub_biosdisk_iterate): Change cdrom detection method.
27649 (grub_biosdisk_open): Replace cd_start with cd_drive.
27650 (GRUB_MOD_INIT): Use grub_biosdisk_get_cdinfo_int13_extension to
27651 detect cdrom device.
27652
27653 * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_MACHINE_CDROM_START):
27654 Removed.
27655 (GRUB_BIOSDISK_MACHINE_CDROM_END): Removed.
27656 (GRUB_BIOSDISK_CDTYPE_NO_EMUL): New macro.
27657 (GRUB_BIOSDISK_CDTYPE_1_2_M): Likewise.
27658 (GRUB_BIOSDISK_CDTYPE_1_44_M): Likewise.
27659 (GRUB_BIOSDISK_CDTYPE_2_88_M): Likewise.
27660 (GRUB_BIOSDISK_CDTYPE_HARDDISK): Likewise.
27661 (GRUB_BIOSDISK_CDTYPE_MASK): Likewise.
27662 (grub_biosdisk_cdrp): New structure.
27663 (grub_biosdisk_get_cdinfo_int13_extensions): New function.
27664
27665 * include/grub/i386/pc/kernel.h (grub_boot_drive): Export this variable.
27666
27667 * kern/i386/pc/init.c (make_install_device): Don't use (cdN) as root
27668 device.
27669
27670 * kern/i386/pc/startup.S (grub_biosdisk_get_cdinfo_int13_extensions):
27671 New function.
27672
68e7fc7a 276732008-03-20 Robert Millan <rmh@aybabtu.com>
27674
27675 Remove 2 TiB limit in ata.mod.
27676 * disk/ata.c (grub_ata_device): Promote `size' to grub_uint64_t.
27677 (grub_ata_dumpinfo): Print sector count with 0x%llx.
27678 (grub_ata_identify): Interpret `&info16[100]' as a pointer to
27679 grub_uint64_t instead of grub_uint32_t.
27680
38ad2cf5 276812008-03-05 Bean <bean123ch@gmail.com>
27682
27683 * loader/i386/pc/multiboot.c (grub_multiboot_get_bootdev): New function.
27684 (grub_multiboot): Set boot device.
27685
27686 * boot/i386/pc/lnxboot.S (real_code_2): Set %dh to 0xFF.
27687
2b89344e 276882008-03-02 Bean <bean123ch@gmail.com>
27689
27690 * fs/reiserfs.c (grub_reiserfs_read_symlink): Add 0 at the end of
27691 symlink_buffer.
27692
87a95d1f 276932008-03-01 Yoshinori K. Okuji <okuji@enbug.org>
27694
27695 * DISTLIST: Added docs/fdl.texi, docs/grub.texi, docs/mdate-sh and
27696 texinfo.tex.
27697
27698 * docs/grub.texi: New file. Copied from GRUB Legacy, and slightly
27699 modified.
27700
27701 * docs/fdl.texi: New file.
f19dbdb7 27702
87a95d1f 27703 * docs/mdate-sh: New file. Copied from gnulib.
27704 * docs/texinfo.tex: Likewise.
27705
27706 * config.guess: Updated from gnulib.
27707 * install-sh: Likewise.
27708
7dc15d8e 277092008-02-28 Robert Millan <rmh@aybabtu.com>
27710
27711 * conf/i386-linuxbios.rmk (pkglib_MODULES): Add aout.mod.
27712 (aout_mod_SOURCES): New variable.
27713 (aout_mod_CFLAGS): Likewise.
27714 (aout_mod_LDFLAGS): Likewise.
27715
27716 * conf/i386-ieee1275.rmk: Likewise.
27717
b00ab696 277182008-02-28 Robert Millan <rmh@aybabtu.com>
27719
27720 * util/update-grub.in: Reorganise terminal validity check. Accept
27721 `ieee1275:console' (OLPC) and `*:gfxterm' as valid too.
27722 Based on suggestion by Franklin PIAT.
27723
79ca2d78 277242008-02-28 Fabian Greffrath <greffrath@leat.rub.de>
27725
27726 * include/grub/util/getroot.h (grub_util_check_block_device): Export new
27727 function.
27728 * util/getroot.c (grub_util_check_block_device): New function that
27729 returns the given argument if it is a block device and returns NULL else.
27730 * util/grub-probe.c (argument_is_device): New variable.
27731 (probe): Promote device_name from a variable to an argument. Receive
27732 device_name from grub_util_check_block_device() if path is NULL and from
27733 grub_guess_root_device() else. Do not free() device_name anymore.
f19dbdb7 27734 (options): Introduce new parameter '-d, --device'.
79ca2d78 27735 (main): Add description of the new parameter to the help screen.
27736 Rename path variable to argument. Set argument_is_device if the '-d'
27737 option is given. Pass argument to probe() depending on
27738 argument_is_device.
27739
0d16e571 277402008-02-24 Bean <bean123ch@gmail.com>
27741
27742 * fs/iso9660.c (GRUB_ISO9660_VOLDESC_BOOT): New macro.
27743 (GRUB_ISO9660_VOLDESC_PRIMARY): Likewise.
27744 (GRUB_ISO9660_VOLDESC_SUPP): Likewise.
27745 (GRUB_ISO9660_VOLDESC_PART): Likewise.
27746 (GRUB_ISO9660_VOLDESC_END): Likewise.
27747 (grub_iso9660_primary_voldesc): New member escape.
27748 (grub_iso9660_data): New member joliet.
27749 (grub_iso9660_convert_string): New function.
27750 (grub_iso9660_mount): Detect joliet extension.
27751 (grub_iso9660_iterate_dir): Convert filename when joliet is detected.
27752 (grub_iso9660_iso9660_label): Likewise.
27753
27754 * conf/common.rmk (pkgdata_MODULES): Add udf.mod.
27755 (grub_setup_SOURCES): Add fs/udf.c.
27756 (grub_fstest_SOURCES): Likewise.
27757 (udf_mod_SOURCES): New variable.
27758 (udf_mod_CFLAGS): Likewise.
27759 (udf_mod_LDFLAGS): Likewise.
27760
27761 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/udf.c.
27762 (grub_emu_SOURCES): Likewise.
27763
27764 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
27765
27766 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
27767
27768 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
27769
27770 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
27771
27772 * fs/udf.c: New file.
27773
8a594a17 277742008-02-24 Robert Millan <rmh@aybabtu.com>
27775
27776 * conf/i386-efi.rmk (normal/function.c_DEPENDENCIES)
27777 (normal/lexer.c_DEPENDENCIES): New variables.
27778 * conf/i386-ieee1275.rmk (normal/function.c_DEPENDENCIES)
27779 (normal/lexer.c_DEPENDENCIES): Likewise.
27780 * conf/i386-linuxbios.rmk (normal/function.c_DEPENDENCIES)
27781 (normal/lexer.c_DEPENDENCIES): Likewise.
27782 * conf/i386-pc.rmk (normal/function.c_DEPENDENCIES)
27783 (normal/lexer.c_DEPENDENCIES): Likewise.
27784 * conf/powerpc-ieee1275.rmk (normal/function.c_DEPENDENCIES)
27785 (normal/lexer.c_DEPENDENCIES): Likewise.
27786 * conf/sparc64-ieee1275.rmk (normal/function.c_DEPENDENCIES)
27787 (normal/lexer.c_DEPENDENCIES): Likewise.
27788
2dc33c03 277892008-02-23 Robert Millan <rmh@aybabtu.com>
27790
27791 * partmap/gpt.c (grub_gpt_magic): Add `0x' qualifier to each member,
27792 since they were intended to be in hex. This didn't break previously
27793 because of a bug in gpt_partition_map_iterate() (see below).
27794
27795 (gpt_partition_map_iterate): Replace `grub_memcmp' with `! grub_memcmp'
27796 when checking the validity of GPT header.
27797 Remove `partno', since it always provides the same information as `i'.
27798
f6f4cfb0 277992008-02-21 Yoshinori K. Okuji <okuji@enbug.org>
27800
27801 * include/grub/efi/time.h: Fix a wrong comment.
27802
79ff665f 278032008-02-19 Pavel Roskin <proski@gnu.org>
27804
27805 * kern/rescue.c (grub_enter_rescue_mode): Improve initial
27806 message.
27807
d38e24c2 278082008-02-19 Bean <bean123ch@gmail.com>
27809
27810 * conf/i386-pc.rmk (pkglib_MODULES): Add aout.mod _bsd.mod and bsd.mod.
27811 (aout_mod_SOURCES): New variable.
27812 (aout_mod_CFLAGS): Likewise.
27813 (aout_mod_LDFLAGS): Likewise.
27814 (_bsd_mod_SOURCES): New variable.
27815 (_bsd_mod_CFLAGS): Likewise.
27816 (_bsd_mod_LDFLAGS): Likewise.
27817 (bsd_mod_SOURCES): New variable.
27818 (bsd_mod_CFLAGS): Likewise.
27819 (bsd_mod_LDFLAGS): Likewise.
27820
27821 * include/grub/aout.h: New file.
27822
27823 * include/grub/i386/loader.h (grub_unix_real_boot): New function.
27824
27825 * include/grub/i386/bsd.h: New file.
27826
27827 * include/grub/i386/pc/init.h (grub_get_mmap_entry): Use EXPORT_FUNC
27828 to make it public.
27829
27830 * kern/elf.c (grub_elf32_load): Get the physical address after the hook
27831 function is called, so that it's possible to change it inside the hook.
27832 (grub_elf64_load): Likewise.
27833 (grub_elf_file): Don't close the file if elf header is not found.
27834 (grub_elf_close): Close the file if grub_elf_file fails (The new
27835 grub_elf_file won't close it).
27836 (grub_elf32_size): Use NESTED_FUNC_ATTR for nested function calcsize.
27837 (grub_elf64_size): Likewise.
27838
27839 * kern/i386/loader.S (grub_unix_real_boot): New function.
27840
27841 * loader/aout.c: New file.
27842
27843 * loader/i386/bsd.c: New file.
27844
27845 * loader/i386/bsd_normal.c: New file.
27846
27847 * loader/i386/pc/multiboot.c (grub_multiboot): Handle a.out format.
27848
27849 * loader/multiboot2.c (grub_multiboot2): Reset grub_errno so that it
fe987087 27850 can test other formats.
d38e24c2 27851
b93bdb0f 278522008-02-19 Robert Millan <rmh@aybabtu.com>
27853
27854 * partmap/gpt.c: Include `<grub/gpt_partition.h>'.
27855 (grub_gpt_partition_type_empty): Redefine with macro from
27856 `<grub/gpt_partition.h>'.
27857 (gpt_partition_map_iterate): Adjust partition type comparison.
27858
27859 Export `entry' as partmap-specific `part.data' struct.
27860 (grub_gpt_header, grub_gpt_partentry): Move from here ...
27861
27862 * include/grub/gpt_partition.h (grub_gpt_header)
27863 (grub_gpt_partentry): ... to here (new file).
27864
27865 * util/i386/pc/grub-setup.c: Include `<grub/gpt_partition.h>'.
27866
27867 (grub_gpt_partition_type_bios_boot): New const variable, defined
27868 with macro from `<grub/gpt_partition.h>'.
27869
27870 (setup): Replace `first_start' with `embed_region', which keeps
27871 track of the embed region (and is partmap-agnostic).
27872
27873 Replace find_first_partition_start() with find_usable_region(),
27874 which finds a usable region for embedding using partmap-specific
27875 knowledge (supports PC/MSDOS and GPT).
27876
27877 Fix all assumptions that the embed region start at sector 1, using
27878 `embed_region.start' from now on. Similarly, use `embed_region.end'
27879 rather than `first_start' to calculate available size.
27880
27881 In grub_util_info() message, replace "into after the MBR" with an
27882 indication of the specific sector our embed region starts at.
27883
66cb40f6 278842008-02-19 Robert Millan <rmh@aybabtu.com>
27885
27886 * DISTLIST: Replace `commands/ieee1275/halt.c' and
27887 `commands/ieee1275/reboot.c' with `commands/halt.c' and
27888 `commands/reboot.c'.
27889 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
27890 (halt_mod_SOURCES): Likewise.
27891 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
27892 (halt_mod_SOURCES): Likewise.
27893
b7202015 278942008-02-17 Christian Franke <franke@computer.org>
27895
27896 * commands/cat.c (grub_cmd_cat): Add break on GRUB_TERM_ESC key.
27897
32b0fc49 278982008-02-17 Robert Millan <rmh@aybabtu.com>
27899
27900 * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
27901 set `first_start' to 0 for non-PC/MSDOS partition maps.
27902
aca63502 279032008-02-16 Robert Millan <rmh@aybabtu.com>
27904
27905 * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
27906 do not assume partition map is PC/MSDOS before performing checks that
27907 are specific to that layout.
27908
0de8be86 279092008-02-13 Robert Millan <rmh@aybabtu.com>
27910
27911 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Remove
27912 `commands/i386/pc/halt.c' and `commands/i386/pc/reboot.c'.
27913 * kern/i386/linuxbios/init.c (grub_halt, grub_reboot): Remove stubs.
27914
c3db8364 279152008-02-13 Yoshinori K. Okuji <okuji@enbug.org>
27916
27917 * configure.ac: Only a cosmetic change on the handling of
27918 -fno-stack-protector.
27919
f714229e 279202008-02-12 Alexandre Boeglin <alex@boeglin.org>
27921
c3db8364 27922 * conf/i386-efi.rmk (grub_emu_SOURCES): Replace
27923 commands/i386/pc/halt.c and reboot.c by commands/halt.c and
27924 reboot.c.
f714229e 27925 (grub_install_SOURCES): Add halt.mod and reboot.mod.
27926 (halt_mod_SOURCES): New variable.
27927 (halt_mod_CFLAGS): Likewise.
27928 (halt_mod_LDFLAGS): Likewise.
27929 (reboot_mod_SOURCES): Likewise.
27930 (reboot_mod_CFLAGS): Likewise.
27931 (reboot_mod_LDFLAGS): Likewise.
27932
c3db8364 27933 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace
27934 commands/ieee1275/halt.c and reboot.c by commands/halt.c and
27935 reboot.c.
f714229e 27936 (halt_mod_SOURCES): Likewise.
27937 (reboot_mod_SOURCES): Likewise.
27938
c3db8364 27939 * conf/i386-pc.rmk (grub_emu_SOURCES): Replace
27940 commands/i386/pc/reboot.c by commands/reboot.c.
f714229e 27941 (reboot_mod_SOURCES): Likewise.
27942
27943 * commands/i386/pc/reboot.c: merge this file ...
27944
27945 * commands/ieee1275/reboot.c: ... and this file ...
27946
27947 * commands/reboot.c: ... to this file.
c3db8364 27948 Add some precompiler directive to include the correct header for
27949 each machine.
f714229e 27950
27951 * commands/ieee1275/halt.c: move this file ...
27952
27953 * commands/halt.c: ... to here.
c3db8364 27954 Add some precompiler directive to include the correct header for
27955 each machine.
f714229e 27956
27957 * include/grub/efi/efi.h (grub_reboot): New function declaration.
27958 (grub_halt): Likewise.
27959
27960 * kern/efi/efi.c (grub_reboot): New function.
27961 (grub_halt): Likewise.
27962
c74493e0 279632008-02-12 Robert Millan <rmh@aybabtu.com>
27964
27965 * util/getroot.c (grub_guess_root_device): Inspect /dev/evms before
27966 /dev (like it is done for /dev/mapper). This doesn't provide support
27967 for EVMS, but at least it is now easy to identify the problem when it
27968 arises.
27969
d0db4b04 279702008-02-11 Robert Millan <rmh@aybabtu.com>
27971
27972 * util/biosdisk.c (grub_util_biosdisk_open, linux_find_partition)
27973 (grub_util_biosdisk_get_grub_dev): Check open() exit status by
27974 comparing it with -1, not 0.
27975
bf748642 279762008-02-10 Robert Millan <rmh@aybabtu.com>
27977
27978 * conf/i386-efi.rmk (grub_emu_SOURCES): Add `disk/raid.c' and
27979 `disk/lvm.c'.
27980 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
27981 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
27982
27983 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Move `disk/raid.c' and
27984 `disk/lvm.c' to the end of the list.
27985 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
27986 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
27987
b5db202a 279882008-02-10 Robert Millan <rmh@aybabtu.com>
27989
27990 * kern/main.c (grub_load_normal_mode): Do not reset `grub_errno'. Call
27991 grub_print_error() instead. This will let user know why we're entering
27992 rescue mode.
27993 Based on suggestions from Sam Morris.
27994
83abee31 279952008-02-10 Alexandre Boeglin <alex@boeglin.org>
27996
27997 * normal/arg.c (grub_arg_parse): If one of the args is "--", call add_arg()
27998 on remaining N args, instead of "--" arg N times.
27999
78d5a08b 280002008-02-09 Vesa Jaaskelainen <chaac@nic.fi>
28001
28002 * font/manager.c (unknown_glyph): Added variable for unknown glyph.
28003 (fill_with_default_glyph): Changed to use unknown_glyph for fill
28004 pattern for unknown glyphs.
28005
68807e5f 280062008-02-09 Robert Millan <rmh@aybabtu.com>
28007
28008 * configure.ac: Probe for `help2man'.
28009 * Makefile.in (builddir): New variable.
28010 (HELP2MAN): Likewise. Set to `true' when @HELP2MAN@ doesn't provide it,
28011 or otherwise add a few flags/options to it.
28012 (install-local): For every executable utility or script that is
28013 installed, invoke $(HELP2MAN) to install a manpage based on --help
28014 output.
28015
28016 * util/i386/pc/grub-install.in: Move down `update-grub_lib' sourcing, so
28017 that it doesn't prevent --help from working in build tree.
28018
28019 * util/i386/pc/grub-mkrescue.in (usage): Replace `grub-devel@gnu.org'
28020 with `bug-grub@gnu.org'.
28021 * util/powerpc/ieee1275/grub-mkrescue.in (usage): Likewise.
28022 * util/update-grub.in (usage): New function.
28023 Implement proper argument check, with support for --help and --version
28024 (as well as existing -y).
28025
280262008-02-09 Christian Franke <franke@computer.org>
0d9ff7f0 28027
28028 * commands/cat.c (grub_cmd_cat): Print '\r' as hex to
28029 avoid overwriting previous output.
28030 * kern/rescue.c (grub_rescue_cmd_cat): Likewise.
28031
c1962162 280322008-02-09 Robert Millan <rmh@aybabtu.com>
28033
28034 * normal/menu.c (run_menu): If timeout is set to zero, don't bother
28035 drawing the menu.
28036
3dac2e3f 280372008-02-09 Robert Millan <rmh@aybabtu.com>
28038
28039 * commands/sleep.c: New file.
28040 * conf/common.rmk (pkglib_MODULES): Add `commands/sleep.c'.
28041 (sleep_mod_SOURCES): New variable.
28042 (sleep_mod_CFLAGS): Likewise.
28043 (sleep_mod_LDFLAGS): Likewise.
28044
7a634e08 280452008-02-09 Robert Millan <rmh@aybabtu.com>
28046
28047 * disk/raid.c (grub_raid_scan_device): Add a pair of sanity checks for
28048 situations in which we can deduce the RAID size and the superblock
28049 doesn't match it.
28050
b92f0c18 280512008-02-09 Robert Millan <rmh@aybabtu.com>
28052
28053 * disk/lvm.c [GRUB_UTIL] (grub_lvm_memberlist): New function. Construct
28054 and return a grub_diskmemberlist_t composed of LVM physical volumes.
28055 [GRUB_UTIL] (grub_lvm_dev): Add `memberlist' member.
28056
28057 * disk/raid.c [GRUB_UTIL] (grub_raid_memberlist): New function. Construct
28058 and return a grub_diskmemberlist_t composed of physical array members.
28059 [GRUB_UTIL] (grub_raid_dev): Add `memberlist' member.
28060
28061 * include/grub/disk.h [GRUB_UTIL] (grub_disk_memberlist): New struct
28062 prototype.
28063 [GRUB_UTIL] (struct grub_disk_dev): Add `memberlist' function pointer.
28064 [GRUB_UTIL] (struct grub_disk_memberlist): New struct declaration.
28065 [GRUB_UTIL] (grub_disk_memberlist_t): New typedef.
28066
28067 * util/grub-probe.c (probe): Move partmap probing code from here ...
28068 (probe_partmap): ... to here.
28069 (probe): Use probe_partmap() once for the disk we're probing, and
28070 additionally, when such disk contains a memberlist() struct member,
28071 once for each disk that is contained in the structure returned by
28072 memberlist().
28073
91a4bf68 280742008-02-09 Robert Millan <rmh@aybabtu.com>
28075
28076 * util/grub-probe.c (main): When `verbosity > 1', set `debug'
28077 environment variable to 'all' in order to obtain debug output from
28078 non-util/ code.
28079 * util/i386/pc/grub-setup.c (main): Likewise.
28080
a96f9caa 280812008-02-08 Robert Millan <rmh@aybabtu.com>
28082
28083 * disk/raid.c (grub_raid_scan_device): Check for
28084 `array->device[sb.this_disk.number]' rather than for
28085 `array->device[sb.this_disk.number]->name', since the latter is not
fe6b695a 28086 guaranteed to be accessible.
a96f9caa 28087
b37a9222 280882008-02-08 Robert Millan <rmh@aybabtu.com>
28089
28090 * disk/raid.c: Update copyright.
28091 * fs/cpio.c: Likewise.
28092 * include/grub/raid.h: Likewise.
28093 * loader/i386/pc/multiboot.c: Likewise.
28094 * util/hostfs.c: Likewise.
28095
5626aee1 280962008-02-08 Robert Millan <rmh@aybabtu.com>
28097
28098 * include/grub/raid.h (struct grub_raid_array): Change type of `device'
28099 to a grub_disk_t array.
28100 * disk/raid.c (grub_raid_read): Replace `device[x].disk' accesses with
28101 `device[x]'.
28102 (grub_raid_scan_device): Replace `device[x].name' accesses with
28103 `device[x]->name'. Simplify initialization of `array->device[x]'.
28104
554f0187 281052008-02-08 Robert Millan <rmh@aybabtu.com>
28106
28107 * disk/raid.c (grub_raid_open, grub_raid_scan_device): Add a few
28108 grub_dprintf() calls.
28109 * kern/disk.c (grub_disk_read): Include grub_errmsg in out of range
28110 error message.
28111
1ec8425d 281122008-02-07 Christian Franke <franke@computer.org>
28113
28114 * util/hostfs.c (grub_hostfs_open): Use fseeko and ftello
28115 instead of fseek and ftell to support large files.
28116 (grub_hostfs_read): Likewise.
28117
f2156fda 281182008-02-07 Robert Millan <rmh@aybabtu.com>
28119
28120 Patch from Jeroen Dekkers.
28121 * disk/raid.c (grub_raid_scan_device): Reset `grub_errno' on disk
fe6b695a 28122 failure, since successfully reading all array members might not be
f2156fda 28123 required.
28124
9216e0e7 281252008-02-06 Robert Millan <rmh@aybabtu.com>
28126
28127 * util/grub-probe.c (probe): Simplify partmap probing (with the
28128 assumption that the first word up to the underscore equals to
28129 the module name).
28130
b0dfd29a 281312008-02-06 Christian Franke <franke@computer.org>
28132
28133 * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_NONE
28134 (and set *ofs = 0) instead of GRUB_ERR_FILE_NOT_FOUND on
28135 last block of a cpio or tar stream.
28136 Check for "TRAILER!!!" instead of any empty data
28137 block to detect last block of a cpio stream.
28138 (grub_cpio_dir): Fix constness of variable np.
28139 (grub_cpio_open): Return GRUB_ERR_FILE_NOT_FOUND if
28140 cpio or tar trailer is detected. This fixes a crash
28141 on open of a non existing file.
28142
c32865bf 281432008-02-05 Bean <bean123ch@gmail.com>
28144
28145 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Get physical
28146 address of entry.
28147 (grub_multiboot_load_elf64): Likewise.
28148 (grub_multiboot): Initialize mbi structure.
28149
28150 * util/grub-fstest.c: Don't include unused header file script.h.
28151
fe6b695a 28152 * conf/common.rmk (grub-fstest.c_DEPENDENCIES): Move to the beginning
c32865bf 28153 of file.
28154 (grub_fstest_SOURCES): Likewise.
28155
409480b7 281562008-02-05 Robert Millan <rmh@aybabtu.com>
28157
28158 * include/grub/term.h (GRUB_TERM_LEFT, GRUB_TERM_RIGHT)
28159 (GRUB_TERM_UP, GRUB_TERM_DOWN, GRUB_TERM_HOME, GRUB_TERM_END)
28160 (GRUB_TERM_DC, GRUB_TERM_PPAGE, GRUB_TERM_NPAGE, GRUB_TERM_ESC)
28161 (GRUB_TERM_TAB, GRUB_TERM_BACKSPACE): New macros.
28162
28163 * kern/i386/pc/startup.S: Include `<grub/term.h>'.
28164 (translation_table): Replace hardcoded values with macros
28165 provided by `<grub/term.h>'.
28166
28167 * term/i386/pc/at_keyboard.c: Include `<grub/term.h>'.
28168 (keyboard_map): Correct/add a few values, with macros provided
28169 by `<grub/term.h>'.
28170 (keyboard_map_shift): Zero values that don't differ from their
28171 `keyboard_map' equivalents.
28172 (grub_console_checkkey): Optimize KEYBOARD_STATUS_CAPS_LOCK toggling.
28173 Discard the second scan code that is always sent by Caps lock.
28174 Only use `keyboard_map_shift' when it provides a non-zero value,
28175 otherwise fallback to `keyboard_map'.
28176
99fadbaa 281772008-02-04 Bean <bean123ch@gmail.com>
28178
28179 * Makefile.in (enable_grub_fstest): New variable.
28180
28181 * conf/common.rmk (grub_fstest_init.lst): New rule.
28182 (grub_fstest_init.h): Likewise.
28183 (grub_fstest_init.c): Likewise.
28184 (util/grub-fstest.c_DEPENDENCIES): New variable.
28185 (grub_fstest_SOURCES): Likewise.
28186
28187 * configure.ac (enable_grub_fstest): Check for --enable-grub-fstest.
28188
28189 * util/grub-fstest.c: New file.
28190
bf567c50 281912008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
28192
28193 Make grub-setup handle a separate root device.
f19dbdb7 28194
bf567c50 28195 * util/i386/pc/grub-setup.c (setup): Always open the root device,
28196 so that the root device can be compared with the destination
28197 device.
28198 When embedding the core image, if the root and destination devices
28199 are different, set ROOT_DRIVE to ROOT_DEV->DISK->ID. Otherwise, to
28200 0xFF.
28201 When not embedding, set ROOT_DRIVE to 0xFF.
f19dbdb7 28202
9be6b98b 282032008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
28204
28205 Add support for having a grub directory in a different drive. This
28206 is still only the data handling part.
f19dbdb7 28207
9be6b98b 28208 * kern/i386/pc/startup.S (multiboot_trampoline): Set %dh to 0xFF.
28209 (codestart): Save %dh in GRUB_ROOT_DRIVE.
28210 (grub_root_drive): New variable.
28211
28212 * kern/i386/pc/init.c (make_install_device): Use GRUB_ROOT_DRIVE
28213 instead of GRUB_BOOT_DRIVE to construct a device name. Set
28214 GRUB_ROOT_DRIVE to GRUB_BOOT_DRIVE if it is 0xFF, otherwise use it
28215 as it was.
28216
28217 * include/grub/i386/pc/kernel.h (grub_root_drive): New prototype.
28218
28219 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_ROOT_DRIVE): New
28220 macro.
28221 (GRUB_BOOT_MACHINE_DRIVE_CHECK): Set to 0x4f.
28222
28223 * boot/i386/pc/pxeboot.S (_start): Set %dh to 0xFF. For now, this
28224 is bogus, because PXE booting does not specify any drive
28225 correctly.
28226
28227 * boot/i386/pc/lnxboot.S (reg_edx): Set the second byte to 0xFF. I
28228 am not sure if this is really correct.
28229
28230 * boot/i386/pc/cdboot.S: Set %dh to 0xFF, because the root drive
28231 is always identical to the boot drive when booting from a CD.
28232
28233 * boot/i386/pc/boot.S (MOV_MEM_TO_AL): Removed. Not needed any
28234 longer.
28235 (root_drive): New variable.
28236 (real_start): Unconditionally set %dh to ROOT_DRIVE.
28237 (setup_sectors): Push %dx right after popping it, because %dh will
28238 be modified later.
28239 (copy_buffer): Restore %dx.
28240
e0ca0677 282412008-02-03 Robert Millan <rmh@aybabtu.com>
28242
28243 * util/i386/pc/grub-mkrescue.in: Rewrite most of image generation to
28244 use `cdboot.img' for cdrom images.
28245
3b3f6629 282462008-02-03 Robert Millan <rmh@aybabtu.com>
28247
28248 * util/grub.d/00_header.in: Issue scripting commands for GRUB to
28249 only setup gfxterm when `font' command has succeeded.
28250
d42b3672 282512008-02-03 Robert Millan <rmh@aybabtu.com>
28252
28253 * loader/multiboot_loader.c [GRUB_MACHINE_LINUXBIOS]
28254 (grub_rescue_cmd_multiboot_loader)
28255 (grub_rescue_cmd_module_loader): Enable multiboot1 calls.
28256
fa370ea6 282572008-02-03 Pavel Roskin <proski@gnu.org>
28258
e0c5dacb 28259 * kern/i386/pc/startup.S (grub_chainloader_real_boot): Pop
fa370ea6 28260 %edx and %esi from stack only after grub_gate_a20() is called.
28261 grub_gate_a20() clobbers %edx.
28262
f2a76e1d 282632008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
28264
28265 * configure.ac (AC_INIT): Bumped to 1.96.
28266
28267 * DISTLIST: Added boot/i386/pc/cdboot.S, bus/pci.c,
28268 commands/lspci.c,disk/memdisk.c, include/grub/pci.h,
28269 include/grub/i386/pc/pci.h, video/readers/jpeg.c, and
28270 video/readers/png.c.
28271
90fd32d1 282722008-02-03 Bean <bean123ch@gmail.com>
9be665dd 28273
28274 * conf/i386-pc.rmk (pkglib_IMAGES): Add cdboot.img.
28275 (cdboot_img_SOURCES): New variable.
28276 (cdboot_img_ASFLAGS): New variable.
28277 (cdboot_img_LDFLAGS): New variable.
28278
28279 * boot/i386/pc/cdboot.S: New file.
28280
28281 * disk/i386/pc/biosdisk.c (cd_start): New variable.
28282 (cd_count): Likewise.
28283 (grub_biosdisk_get_drive): Add support for cd device.
28284 (grub_biosdisk_call_hook): Likewise.
28285 (grub_biosdisk_iterate): Likewise.
28286 (grub_biosdisk_open): Likewise.
28287 (GRUB_BIOSDISK_CDROM_RETRY_COUNT): New macro.
28288 (grub_biosdisk_rw): Support reading from cd device.
28289 (GRUB_MOD_INIT): Iterate cd devices.
28290
28291 * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_FLAG_CDROM): New macro.
28292 (GRUB_BIOSDISK_MACHINE_CDROM_START): Likewise.
28293 (GRUB_BIOSDISK_MACHINE_CDROM_END): Likewise.
28294
28295 * kern/i386/pc/init.c (make_install_device): Check for cd device.
28296
4020aa53 282972008-02-02 Robert Millan <rmh@aybabtu.com>
28298
28299 * commands/read.c: New file.
28300 * conf/common.rmk (pkglib_MODULES): Add `commands/read.c'.
28301 (read_mod_SOURCES): New variable.
28302 (read_mod_CFLAGS): Likewise.
28303 (read_mod_LDFLAGS): Likewise.
28304
e03a1132 283052008-02-02 Robert Millan <rmh@aybabtu.com>
28306
28307 * normal/main.c (grub_normal_execute): Check for `menu->size' when
28308 determining whether menu has to be displayed.
28309
58c69220 283102008-02-02 Marco Gerards <marco@gnu.org>
28311
28312 * bus/pci.c: New file.
28313
28314 * include/grub/pci.h: Likewise.
28315
28316 * include/grub/i386/pc/pci.h: Likewise.
28317
28318 * commands/lspci.c: Likewise.
28319
28320 * conf/i386-pc.rmk (pkglib_MODULES): Add `pci.mod' and
28321 `lspci.mod'.
28322 (pci_mod_SOURCES): New variable.
28323 (pci_mod_CFLAGS): Likewise.
28324 (pci_mod_LDFLAGS): Likewise.
28325 (lspci_mod_SOURCES): Likewise.
28326 (lspci_mod_CFLAGS): Likewise.
f19dbdb7 28327 (lspci_mod_LDFLAGS): Likewise.
58c69220 28328
c004e1b4 283292008-02-02 Bean <bean123ch@gmail.com>
28330
28331 * fs/ufs.c (INODE_BLKSZ): Fix incorrect value.
28332 (grub_ufs_get_file_block): Fix indirect block calculation problem.
28333
28334 * fs/xfs.c (grub_xfs_sblock): New member log2_dirblk.
28335 (grub_xfs_btree_node): New structure.
28336 (grub_xfs_btree_root): New structure.
28337 (grub_xfs_inode): New members nblocks, extsize, nextents and btree.
28338 (GRUB_XFS_EXTENT_OFFSET): Use exts instead of inode->data.extents.
28339 (GRUB_XFS_EXTENT_BLOCK): Likewise.
28340 (GRUB_XFS_EXTENT_SIZE): Likewise.
28341 (grub_xfs_read_block): Support btree format type.
28342 (grub_xfs_iterate_dir): Use NESTED_FUNC_ATTR in call_hook.
28343 Use directory block as basic unit.
28344
28345 * fs/fshelp.c (grub_fshelp_read_file): Bug fix for sparse block.
28346
28347 * aclocal.m4 (grub_i386_CHECK_REGPARM_BUG): Define NESTED_FUNC_ATTR as
28348 __attribute__ ((__regparm__ (1))).
28349
f95562bf 283502008-02-01 Robert Millan <rmh@aybabtu.com>
28351
28352 Correct a mistake in previous commit.
28353
28354 * conf/i386-pc.rmk (normal/execute.c_DEPENDENCIES): Move to the
28355 top.
28356 (normal/command.c_DEPENDENCIES): New variable.
28357
7d31f41f 283582008-02-01 Robert Millan <rmh@aybabtu.com>
28359
28360 * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Move to the
28361 top.
28362 (normal/command.c_DEPENDENCIES): New variable.
28363 (grub-emu_DEPENDENCIES, normal_mod_DEPENDENCIES): Remove variables.
28364 * conf/i386-ieee1275.rmk: Likewise.
28365 * conf/i386-linuxbios.rmk: Likewise.
28366 * conf/i386-pc.rmk: Likewise.
28367 * conf/sparc64-ieee1275.rmk: Likewise.
28368 * conf/powerpc-ieee1275.rmk: Likewise.
28369 (grub_emu_SOURCES): Add `fs/fshelp.c'.
28370
28371 * genmk.rb: Add `$(#{src}_DEPENDENCIES)' in targets that require it.
28372
60b6be74 283732008-02-01 Robert Millan <rmh@aybabtu.com>
28374
28375 * kern/disk.c (grub_disk_read, grub_disk_write): Add grub_dprintf()
28376 call at beginning of function.
28377
078522ab 283782008-01-31 Pavel Roskin <proski@gnu.org>
28379
28380 * util/powerpc/ieee1275/grub-mkrescue.in: New file.
d2c11005 28381 * conf/powerpc-ieee1275.rmk (bin_SCRIPTS): New variable.
28382 (grub_mkrescue_SOURCES): Likewise.
078522ab 28383 * DISTLIST: Add util/powerpc/ieee1275/grub-mkrescue.in.
28384
ccaa8a5f 283852008-01-30 Robert Millan <rmh@aybabtu.com>
28386
28387 * conf/i386-pc.rmk (sbin_UTILITIES): Remove `grub-probe'.
28388 (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Moved from here ...
28389 * conf/common.rmk (util/grub-probe.c_DEPENDENCIES)
28390 (grub_probe_SOURCES): ... to here.
28391
28392 * conf/i386-efi.rmk (sbin_UTILITIES): Remove `grub-probe'.
28393 (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Remove.
28394 * conf/i386-ieee1275.rmk: Likewise.
28395 * conf/i386-linuxbios.rmk: Likewise.
28396 * conf/powerpc-ieee1275.rmk: Likewise.
28397
ae5a9cd7 283982008-01-30 Tristan Gingold <gingold@free.fr>
28399
28400 * kern/rescue.c: Silently accept empty lines.
28401
70bc2ef2 284022008-01-29 Bean <bean123ch@gmail.com>
28403
28404 * boot/i386/pc/lnxboot.S (data_start): Code cleanup.
28405 (real_code_2): Code cleanup and change comment style.
28406 (move_memory): Avoid using 32-bit address mode.
28407
6a4d50ea 284082008-01-29 Bean <bean123ch@gmail.com>
28409
28410 * conf/i386-pc.rmk (pkglib_MODULES): Add `png.mod'.
28411 (png_mod_SOURCES): New variable.
28412 (png_mod_CFLAGS): Likewise.
28413 (png_mod_LDFLAGS): Likewise.
28414
28415 * video/readers/png.c: New file.
28416
11cc30ac 284172008-01-28 Robert Millan <rmh@aybabtu.com>
28418
28419 * include/grub/i386/linuxbios/kernel.h (GRUB_MOD_GAP): New macro.
28420 * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Remove
28421 `ifndef GRUB_MOD_GAP' hack.
28422 * util/elf/grub-mkimage.c (add_segments): Likewise.
28423
3abc589f 284242008-01-27 Robert Millan <rmh@aybabtu.com>
28425
28426 * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Skip
28427 `GRUB_MOD_GAP' for platforms in which it's not defined.
962ca133 28428 * util/elf/grub-mkimage.c (add_segments): Likewise.
3abc589f 28429
e1907778 284302008-01-27 Robert Millan <rmh@aybabtu.com>
28431
28432 Get grub-emu to build again (including parallel builds).
28433
28434 * conf/i386-pc.rmk (util/grub-emu.c_DEPENDENCIES): Remove variable.
28435 Split into ...
28436 (util/grub-emu.c_DEPENDENCIES): ... this, ...
28437 (normal/execute.c_DEPENDENCIES): ... this, ...
28438 (grub-emu_DEPENDENCIES): ... and this.
28439
28440 * conf/i386-efi.rmk: Likewise.
28441 * conf/i386-linuxbios.rmk: Likewise.
28442 * conf/i386-ieee1275.rmk: Likewise.
28443 * conf/powerpc-ieee1275.rmk: Likewise.
28444 (grub_emu_SOURCES): Remove duplicated `kern/file.c'.
28445
2216b101 284462008-01-27 Robert Millan <rmh@aybabtu.com>
28447
28448 * NEWS: Add a few items.
28449
f75172d9 284502008-01-27 Robert Millan <rmh@aybabtu.com>
28451
28452 Fix parallel builds with grub-emu. Based on earlier commit for
28453 grub-probe and grub-setup.
28454
28455 * conf/i386-pc.rmk (grub-emu_DEPENDENCIES): Renamed to ...
28456 (util/grub-emu.c_DEPENDENCIES): ... this.
28457 * conf/i386-efi.rmk (grub-emu_DEPENDENCIES): Renamed to ...
28458 (util/grub-emu.c_DEPENDENCIES): ... this.
28459 * conf/i386-linuxbios.rmk (grub-emu_DEPENDENCIES): Renamed to ...
28460 (util/grub-emu.c_DEPENDENCIES): ... this.
28461 * conf/i386-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
28462 (util/grub-emu.c_DEPENDENCIES): ... this.
28463 * conf/powerpc-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
28464 (util/grub-emu.c_DEPENDENCIES): ... this.
28465
3f51de77 284662008-01-27 Pavel Roskin <proski@gnu.org>
28467
28468 * include/grub/powerpc/ieee1275/kernel.h: Introduce GRUB_MOD_GAP
28469 to create a gap between _end and the modules added to the image
28470 with grub-mkrescue. That fixes "CLAIM failed" on PowerMAC.
28471 * kern/powerpc/ieee1275/init.c: Use GRUB_MOD_GAP.
28472 * util/elf/grub-mkimage.c (add_segments): Likewise.
28473
2033f53e 284742008-01-26 Pavel Roskin <proski@gnu.org>
28475
28476 * kern/dl.c (grub_dl_load): Don't abort if prefix is not set,
28477 just return an error.
28478
22da1f6f 284792008-01-26 Bean <bean123ch@gmail.com>
28480
28481 * fs/reiserfs.c (grub_fshelp_node): New member next_offset.
28482 (grub_reiserfs_get_item): Save offset of the next item.
28483 (grub_reiserfs_iterate_dir): Use next_offset to find next item.
28484
2a9525e6 284852008-01-25 Robert Millan <rmh@aybabtu.com>
28486
28487 * conf/i386-pc.rmk (grub_setup_SOURCES, grub_emu_SOURCES): Regroup to
28488 make all filesystem sources appear together (possibly fixing omissions
28489 while at it).
28490 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
28491 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
28492 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
28493 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
28494
28495 * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise. Additionally,
28496 add `kern/file.c'.
28497 * conf/i386-efi.rmk (grub_probe_SOURCES): Likewise.
28498 * conf/i386-ieee1275.rmk (grub_probe_SOURCES): Likewise.
28499 * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Likewise.
28500 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Likewise.
28501
28502 * util/grub-probe.c: Include `<grub/file.h>' and `<sys/stat.h>'.
28503 (probe): Add a sanity check to make sure of our ability to read
28504 requested files when probing for filesystem type.
28505
28506 * genmk.rb: Update copyright year (2007).
28507
28508 * include/grub/fs.h (grub_fat_init, grub_fat_fini, grub_ext2_init)
28509 (grub_ext2_fini, grub_ufs_init, grub_ufs_fini, grub_minix_init)
28510 (grub_minix_fini, grub_hfs_init, grub_hfs_fini, grub_jfs_init)
28511 (grub_jfs_fini, grub_xfs_init, grub_xfs_fini, grub_affs_init)
28512 (grub_affs_fini, grub_sfs_init, grub_sfs_fini, grub_iso9660_init)
28513 : Remove function prototypes.
28514
b95f71b5 285152008-01-25 Robert Millan <rmh@aybabtu.com>
28516
28517 Revert my previous commits (based on wrong assumption of how grub_errno
28518 works).
28519
fe6b695a 28520 * kern/disk.c (grub_disk_open): Stop resetting grub_errno.
b95f71b5 28521 * kern/file.c (grub_file_open): Likewise.
28522
d08bbb49 285232008-01-24 Pavel Roskin <proski@gnu.org>
28524
28525 * include/grub/ieee1275/ieee1275.h: Introduce flag for firmwares
28526 that hang if GRUB tries to setup colors.
28527 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Don't set
28528 colors for firmwares that don't support it.
28529 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag):
28530 Recognize Open Hack'Ware, set flags to work around its
28531 limitations.
28532
605e36ed 285332008-01-24 Robert Millan <rmh@aybabtu.com>
28534
28535 * kern/file.c (grub_file_open): Do not account previous failures of
28536 unrelated functions when grub_errno is checked for.
28537 Reported by Oleg Strikov.
28538
bac332a1 285392008-01-24 Bean <bean123ch@gmail.com>
28540
28541 * fs/ufs.c (GRUB_UFS_VOLNAME_LEN): New macro.
28542 (grub_ufs_sblock): New member volume name.
28543 (grub_ufs_find_file): Fix string copy bug.
28544 (grub_ufs_label): Implement this function properly.
28545
28546 * fs/hfs.c (grub_hfs_cnid_type): New enum.
28547 (grub_hfs_iterate_records): Use the correct file number for extents
28548 and catalog file. Fix problem in next index calculation.
28549 (grub_hfs_find_node): Replace recursive function call with loop.
28550 (grub_hfs_iterate_dir): Replace recursive function call with loop.
28551
15c80c09 285522008-01-23 Robert Millan <rmh@aybabtu.com>
28553
28554 * include/grub/i386/ieee1275/loader.h: Include `<grub/types.h>',
28555 `<grub/symbol.h>' and `<grub/multiboot.h>'.
28556 (grub_multiboot2_real_boot): New function prototype.
28557
28558 * include/grub/i386/pc/memory.h: Include `<grub/machine/machine.h>'.
28559 [!GRUB_MACHINE_IEEE1275] (grub_lower_mem, grub_upper_mem): Disable.
28560
28561 * kern/i386/ieee1275/init.c (grub_os_area_addr)
28562 (grub_os_area_size, grub_lower_mem, grub_upper_mem): Remove variables.
28563
305338fd 285642008-01-23 Robert Millan <rmh@aybabtu.com>
28565
28566 * kern/mm.c (grub_mm_init_region): Replace grub_dprintf() call with
28567 #ifdef'ed out grub_printf().
28568
3ea52685 285692008-01-23 Robert Millan <rmh@aybabtu.com>
28570
28571 * term/i386/pc/at_keyboard.c (grub_keyboard_isr): #ifdef out
28572 grub_dprintf calls, since they make "debug=all" mode unusable.
28573 (grub_console_checkkey): Likewise.
28574
5882ae4b 285752008-01-23 Robert Millan <rmh@aybabtu.com>
28576
28577 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
28578 `term/i386/pc/at_keyboard.c'.
28579 (pkglib_MODULES): Add `serial.mod'.
28580 (serial_mod_SOURCES): New variable.
28581 (serial_mod_CFLAGS): Likewise.
28582 (serial_mod_LDFLAGS): Likewise.
28583
28584 * include/grub/i386/ieee1275/console.h: Add `<grub/symbol.h>'. Remove
28585 `<grub/powerpc/ieee1275/console.h>'.
28586 (grub_keyboard_controller_init): New function prototype.
28587 (grub_console_checkkey): Likewise.
28588 (grub_console_getkey): Likewise.
28589
28590 * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize AT
28591 keyboard on i386.
28592
28593 * term/ieee1275/ofconsole.c (grub_ofconsole_term): On i386, use
28594 grub_ofconsole_checkkey() and grub_ofconsole_getkey() for input.
28595
06ab5303 285962008-01-23 Robert Millan <rmh@aybabtu.com>
28597
28598 * kern/i386/pc/init.c (make_install_device): When memdisk image is
28599 present, "(memdisk)/boot/grub" becomes the default prefix.
28600
28601 * util/i386/pc/grub-mkrescue.in: Switch to a minimal core.img plus
28602 a memdisk tarball with all the modules. Add --overlay=DIR option that
28603 allows users to overlay additional files into the image.
28604
dbb475a4 286052008-01-23 Robert Millan <rmh@aybabtu.com>
28606
28607 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add `machine/loader.h'
28608 and `machine/memory.h'.
28609 (pkglib_MODULES): Add `multiboot.mod' and `_multiboot.mod'.
28610 (_multiboot_mod_SOURCES): New variable.
28611 (_multiboot_mod_CFLAGS): Likewise.
28612 (_multiboot_mod_LDFLAGS): Likewise.
28613 (multiboot_mod_SOURCES): Likewise.
28614 (multiboot_mod_CFLAGS): Likewise.
28615 (multiboot_mod_LDFLAGS): Likewise.
28616
28617 * include/grub/i386/ieee1275/loader.h: New file.
28618
28619 * include/grub/i386/ieee1275/machine.h: Likewise.
28620
28621 * include/grub/i386/ieee1275/memory.h: Likewise.
28622
28623 * include/grub/i386/pc/init.h (grub_os_area_addr): Remove (redundant)
28624 variable declaration.
28625 (grub_os_area_size): Likewise.
28626
28627 * kern/i386/ieee1275/init.c (grub_os_area_addr, grub_os_area_size)
28628 (grub_lower_mem, grub_upper_mem): New variables.
28629 (grub_stop_floppy): New function (just to make
28630 grub_multiboot2_real_boot() happy).
28631
28632 * kern/i386/ieee1275/startup.S: Include `<grub/machine/memory.h>',
28633 `<grub/cpu/linux.h>', `<multiboot.h>' and `<multiboot2.h>'.
28634 (grub_stop): New function.
28635 Include `"../realmode.S"' and `"../loader.S"'.
28636
28637 * loader/multiboot_loader.c: Include `<grub/machine/machine.h>'.
28638 Replace `__i386__' #ifdefs with `GRUB_MACHINE_PCBIOS'.
28639
28640 * loader/powerpc/ieee1275/multiboot2.c (grub_mb2_arch_boot): On i386,
28641 rely on grub_multiboot2_real_boot() for final boot.
28642
25638629 286432008-01-22 Robert Millan <rmh@aybabtu.com>
28644
28645 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): When
28646 `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag is set, skip any
28647 device that doesn't look like an SD card.
28648 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
28649 `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag.
28650 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag): Detect
28651 OLPC laptop, and set `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' when
28652 found.
28653
9dad816d 286542008-01-22 Robert Millan <rmh@aybabtu.com>
28655
28656 * kern/powerpc/ieee1275/init.c (grub_claim_heap): Add sanity check to
28657 avoid claiming over our own code.
28658
34842f2d 286592008-01-22 Bean <bean123ch@gmail.com>
28660
28661 * conf/i386-pc.rmk (pkglib_MODULES): Add `jpeg.mod'.
28662 (jpeg_mod_SOURCES): New variable.
28663 (jpeg_mod_CFLAGS): Likewise.
28664 (jpeg_mod_LDFLAGS): Likewise.
28665
28666 * video/readers/jpeg.c : New file.
28667
44023a28 286682008-01-22 Bean <bean123ch@gmail.com>
28669
28670 * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_FILE_NOT_FOUND when
28671 there are no more items.
28672
bc2d8ac6 286732008-01-21 Robert Millan <rmh@aybabtu.com>
28674
28675 * kern/mm.c (grub_mm_init_region): Improve debug message.
28676
261bd4bc 286772008-01-21 Robert Millan <rmh@aybabtu.com>
28678
28679 * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): New variable.
28680 (kernel_img_LDFLAGS): Use `GRUB_MEMORY_MACHINE_LINK_ADDR' as link
28681 address.
28682 (grub_mkimage_CFLAGS): Propagate `GRUB_MEMORY_MACHINE_LINK_ADDR' as
28683 a C macro.
28684 * include/grub/i386/pc/memory.h (GRUB_MEMORY_MACHINE_UPPER): New macro.
28685 Indicates start of upper memory.
28686 * util/i386/pc/grub-mkimage.c: Include `<grub/machine/memory.h>'.
28687 (generate_image): Abort when image size is big enough to corrupt
28688 upper memory.
28689
28690 * include/grub/i386/pc/vga.h: Include `<grub/machine/memory.h>'.
28691 (GRUB_MEMORY_MACHINE_VGA_ADDR): Alias for `GRUB_MEMORY_MACHINE_UPPER'.
28692 * term/i386/pc/vga.c (VGA_MEM): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
28693 instead of hardcoding 0xA0000.
28694 * video/i386/pc/vbe.c: Include `<grub/machine/vga.h>'.
28695 (grub_vbe_set_video_mode): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
28696 instead of hardcoding 0xA0000.
28697
f970b55e 286982008-01-21 Robert Millan <rmh@aybabtu.com>
28699
28700 * disk/memdisk.c (memdisk_size): New variable.
28701 (grub_memdisk_open): Replace grub_arch_memdisk_size() call with
28702 `memdisk_size'.
28703 (grub_memdisk_init): Initialize `memdisk_size'. Reallocate memdisk
28704 image to dynamic memory.
28705 (grub_memdisk_fini): Replace grub_arch_memdisk_size() call with
28706 `memdisk_size'. Free memdisk block.
28707
1a8b0526 287082008-01-21 Robert Millan <rmh@aybabtu.com>
28709
28710 Fix detection of very small filesystems (like tar).
28711
28712 * fs/reiserfs.c (grub_reiserfs_mount): When disk is too small to
28713 contain a ReiserFS, abort with GRUB_ERR_BAD_FS rather than
28714 GRUB_ERR_OUT_OF_RANGE (which made the upper layer think there's
28715 a problem with this disk).
28716
6e9b4aab 287172008-01-21 Robert Millan <rmh@aybabtu.com>
28718
28719 * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Add debug message
28720 on grub_biosdisk_rw_standard() error.
28721
0d8837b2 287222008-01-21 Robert Millan <rmh@aybabtu.com>
28723
28724 * include/grub/ieee1275/ieee1275.h: Add 2008 to Copyright line for
28725 recent changes.
28726 * kern/elf.c: Likewise.
28727 * kern/ieee1275/ieee1275.c: Likewise.
28728 * kern/powerpc/ieee1275/openfw.c: Likewise.
28729 * term/ieee1275/ofconsole.c: Likewise.
28730
ffd36e34 287312008-01-21 Robert Millan <rmh@aybabtu.com>
28732
28733 * include/grub/i386/pc/kernel.h: Include `<grub/symbol.h>'.
28734
3f0093d0 28735 * include/grub/kernel.h (grub_arch_memdisk_addr)
28736 (grub_arch_memdisk_size): Moved from here ...
ffd36e34 28737
3f0093d0 28738 * include/grub/i386/pc/kernel.h (grub_arch_memdisk_addr)
28739 (grub_arch_memdisk_size): ... to here.
ffd36e34 28740
6c391b21 287412008-01-21 Robert Millan <rmh@aybabtu.com>
28742
28743 Mostly based on bugfix from Bean.
28744
28745 * kern/elf.c (grub_elf32_phdr_iterate): Use `NESTED_FUNC_ATTR'
28746 attribute with hook() parameter.
28747 (grub_elf32_load): Use `NESTED_FUNC_ATTR' with grub_elf32_load_segment()
28748 declaration.
28749 (grub_elf64_phdr_iterate): Use `NESTED_FUNC_ATTR'
28750 attribute with hook() parameter.
28751 (grub_elf64_load): Use `NESTED_FUNC_ATTR' with grub_elf64_load_segment()
28752 declaration.
28753
55a581dc 287542008-01-21 Robert Millan <rmh@aybabtu.com>
28755
28756 * conf/i386-pc.rmk (kernel_img_HEADERS): Add `machine/kernel.h'.
28757 (pkglib_MODULES): Add `memdisk.mod'.
28758 (memdisk_mod_SOURCES): New variable.
28759 (memdisk_mod_CFLAGS): Likewise.
28760 (memdisk_mod_LDFLAGS): Likewise.
28761
28762 * disk/memdisk.c: New file.
28763
28764 * include/grub/disk.h (grub_disk_dev_id): Add
28765 `GRUB_DISK_DEVICE_MEMDISK_ID'.
28766
28767 * include/grub/i386/pc/kernel.h
28768 (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): New macro.
28769 (GRUB_KERNEL_MACHINE_PREFIX): Increment by 4.
28770 (grub_kernel_image_size): New variable declaration.
28771 (grub_total_module_size): Likewise.
28772 (grub_memdisk_image_size): Likewise.
28773
28774 * include/grub/i386/pc/memory.h
28775 (GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR): New macro.
28776
28777 * include/grub/kernel.h: Include `<grub/symbol.h>'.
28778 (grub_arch_memdisk_addr): New variable declaration.
28779 (grub_arch_memdisk_size): Likewise.
28780
28781 * kern/i386/pc/init.c (grub_arch_memdisk_addr): New function.
28782 (grub_arch_memdisk_size): Likewise.
28783
28784 * kern/i386/pc/startup.S (grub_memdisk_image_size): New variable.
28785 (codestart): Replace hardcoded `0x100000' with
28786 `GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR' macro.
28787
28788 * util/i386/pc/grub-mkimage.c: Include `<grub/misc.h>'.
28789 (generate_image): Add `memdisk_path' parameter. When `memdisk_path' is
28790 not NULL, append the contents of the file it refers to, at the end of
28791 the compressed kernel image. Initialize `grub_memdisk_image_size'
28792 variable (at `GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE' offset).
28793 (options): Add "memdisk"|'m' option.
28794 (main): Parse --memdisk|-m option, and pass user-provided path as
28795 parameter to generate_image().
28796
3d7f54c9 287972008-01-20 Robert Millan <rmh@aybabtu.com>
28798
28799 * kern/sparc64/ieee1275/openfw.c (grub_devalias_iterate): Copy debug
28800 grub_dprintf() calls from here ...
28801 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): ... to here.
28802
0bf74728 288032008-01-20 Robert Millan <rmh@aybabtu.com>
28804
28805 Fix detection of "real mode" when /options/real-mode? doesn't exist.
28806
28807 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_mmu): New variable
28808 declaration.
28809 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_mmu): New variable.
28810 (grub_ieee1275_find_options): If `grub_ieee1275_mmu' is 0, set
28811 `GRUB_IEEE1275_FLAG_REAL_MODE'.
fe6b695a 28812 (cmain): Initialize `grub_ieee1275_mmu' (using /chosen/mmu integer
0bf74728 28813 property).
28814 * kern/powerpc/ieee1275/openfw.c (grub_map): Rely on pre-initialized
28815 `grub_ieee1275_mmu' rather than obtaining a handler on every call.
28816
33bf70a7 288172008-01-19 Robert Millan <rmh@aybabtu.com>
28818
fe6b695a 28819 Get rid of confusing function (superseded by
33bf70a7 28820 `grub_ieee1275_get_integer_property')
28821 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_decode_int_4): Remove
28822 prototype.
28823 * kern/ieee1275/ieee1275.c (grub_ieee1275_decode_int_4): Remove
28824 function.
28825 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid use of
28826 grub_ieee1275_decode_int_4(), by obtaining integer properties directly
fe987087 28827 in native endianness from grub_ieee1275_get_integer_property().
33bf70a7 28828
e2da7d26 288292008-01-19 Robert Millan <rmh@aybabtu.com>
28830
28831 * kern/powerpc/ieee1275/openfw.c (grub_halt): Issue "power-off"
28832 command after "shut-down", since implementations differ on which
28833 the command for halt is.
28834
59f1fd8d 288352008-01-19 Robert Millan <rmh@aybabtu.com>
28836
28837 * include/grub/i386/linuxbios/console.h: Add header protection.
28838 (grub_keyboard_controller_init): New function prototype.
28839 * term/i386/pc/at_keyboard.c (KEYBOARD_COMMAND_ISREADY): New macro.
28840 (KEYBOARD_COMMAND_READ): Likewise.
28841 (KEYBOARD_COMMAND_WRITE): Likewise.
28842 (KEYBOARD_SCANCODE_SET1): Likewise.
28843 (grub_keyboard_controller_write): New function.
28844 (grub_keyboard_controller_read): Likewise.
28845 (grub_keyboard_controller_init): Likewise.
28846
28847 * term/i386/pc/console.c: Include `<grub/machine/machine.h>'.
28848 (grub_console_init): On coreboot/LinuxBIOS, call
28849 grub_keyboard_controller_init().
28850
5f5a7c15 288512008-01-19 Robert Millan <rmh@aybabtu.com>
28852
28853 PowerPC changes provided by Pavel Roskin.
28854
28855 * kern/powerpc/ieee1275/cmain.c (cmain): Don't take any arguments.
28856 * kern/powerpc/ieee1275/crt0.S: Store r5 in grub_ieee1275_entry_fn,
28857 don't rely on cmain() doing it.
28858 * kern/i386/ieee1275/startup.S (_start): Store %eax in
28859 grub_ieee1275_entry_fn, don't rely on cmain() doing it.
28860
1210e168 288612008-01-16 Robert Millan <rmh@aybabtu.com>
28862
28863 * include/grub/i386/linuxbios/memory.h
28864 (GRUB_MEMORY_MACHINE_LINUXBIOS_TABLE_ADDR): Remove macro.
28865 * kern/i386/linuxbios/table.c (grub_linuxbios_table_iterate): Do not
28866 receive `table_header' as argument. Instead, probe for it in the
28867 known memory ranges where it can be present.
28868 (grub_available_iterate): Do not pass a fixed `table_header' address
28869 to grub_linuxbios_table_iterate().
28870
3d04eab8 288712008-01-15 Robert Millan <rmh@aybabtu.com>
28872
28873 * configure.ac: Add `i386-ieee1275' to the list of supported targets.
28874 * conf/i386-ieee1275.rmk: New file.
28875 * include/grub/i386/ieee1275/console.h: Likewise.
28876 * include/grub/i386/ieee1275/ieee1275.h: Likewise.
28877 * include/grub/i386/ieee1275/kernel.h: Likewise.
28878 * include/grub/i386/ieee1275/time.h: Likewise.
28879 * kern/i386/ieee1275/init.c: Likewise.
28880 * kern/i386/ieee1275/startup.S: Likewise.
28881
d1bc1b73 288822008-01-15 Robert Millan <rmh@aybabtu.com>
28883
28884 * kern/misc.c (grub_vsprintf): Do not reset `longlongfmt' to zero
28885 when pointers are 32-bit (but still do set it to one when they are
28886 64-bit).
28887
66a65807 288882008-01-15 Robert Millan <rmh@aybabtu.com>
28889
28890 * include/grub/ieee1275/ieee1275.h
28891 (grub_ieee1275_get_integer_property): New function prototype.
28892
28893 * kern/ieee1275/ieee1275.c: Include `<grub/types.h>'.
28894 (grub_ieee1275_get_integer_property): New function. Wraps around
fe987087 28895 grub_ieee1275_get_property() to handle endianness.
66a65807 28896
28897 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Replace
28898 grub_ieee1275_get_property() with grub_ieee1275_get_integer_property()
fe6b695a 28899 where appropriate.
66a65807 28900 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Likewise.
28901 (grub_map): Likewise.
28902 * kern/sparc64/ieee1275/openfw.c (grub_map): Likewise.
28903
a83ccafd 289042008-01-15 Bean <bean123ch@gmail.com>
28905
28906 * normal/execute.c (grub_script_exec_argument_to_string): Check for undefined variable.
28907 (grub_script_execute_cmdline): Reset grub_errno.
28908
28909 * normal/main.c (read_config_file): Reset grub_errno.
28910
28911 * normal/parse.y (script_init): New.
28912 (script): Move function and menuentry here.
28913 (delimiter): New.
28914 (command): Add delimiter at the end of command.
28915 (commands): Adjust to match the new command.
28916 (commandblock): Remove grub_script_lexer_record_start.
f19dbdb7 28917 (menuentry): Add grub_script_lexer_record_start, use the new commands.
a83ccafd 28918 (if): Use the new commands.
28919
28920 * conf/common.rmk (pkgdata_MODULES): Add echo.mod.
28921
df6ecfc6 289222008-01-15 Robert Millan <rmh@aybabtu.com>
28923
28924 * normal/menu.c (run_menu): Move timeout message from here ...
28925 (print_timeout): ... to here.
28926 (run_menu): Use print_timeout() once during initial draw to print
28927 the whole message, and again in every clock tick to update only
28928 the number of seconds.
28929
87ae25eb 289302008-01-15 Robert Millan <rmh@aybabtu.com>
28931
28932 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Obtain
28933 actual size of `available' from grub_ieee1275_get_property(), and
28934 restrict parsing to that bound.
28935
47bf09a4 289362008-01-15 Christian Franke <franke@computer.org>
28937
28938 * util/grub-emu.c: Replace <argp.h> by <getopt.h>.
28939 (argp_program_version): Remove variable.
28940 (argp_program_bug_address): Likewise.
28941 (options): Convert from struct argp_option to struct option.
28942 (struct arguments): Remove.
28943 (parse_opt): Remove.
28944 (usage): New function.
28945 (main): Replace struct args members by simple variables.
28946 Replace argp_parse() by getopt_long().
28947 Add switch to evaluate options.
28948 Add missing "(...)" around root_dev in prefix string.
28949
c86f1469 289502008-01-14 Robert Millan <rmh@aybabtu.com>
28951
28952 * kern/powerpc/ieee1275/init.c (grub_exit): Reimplement as a wrapper
28953 for grub_ieee1275_exit(), in order to improve portability.
28954
e622c559 289552008-01-14 Robert Millan <rmh@aybabtu.com>
28956
28957 * util/grub.d/10_linux.in (prefix): Define.
28958 (exec_prefix): Likewise. Both definitions are later used by `libdir'.
28959
44cb1ec8 289602008-01-13 Pavel Roskin <proski@gnu.org>
28961
28962 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Don't use
28963 grub_errno if no errors have been detected.
28964
1eb8c802 289652008-01-12 Robert Millan <rmh@aybabtu.com>
28966
28967 * include/grub/util/getroot.h (grub_dev_abstraction_types): New enum.
28968 (grub_util_get_dev_abstraction): New function prototype.
28969
28970 * util/getroot.c: Include `<grub/util/getroot.h>'
28971 (grub_util_get_grub_dev): Move detection of abstraction type to ...
28972 (grub_util_get_dev_abstraction): ... here (new function).
28973
28974 * util/grub-probe.c: Convert PRINT_* to an enum. Add
28975 `PRINT_ABSTRACTION'.
28976 (probe): Probe for abstraction type when requested.
28977 (main): Understand `--target=abstraction'.
28978
28979 * util/i386/efi/grub-install.in: Add abstraction module to core
28980 image when it is found to be necessary.
28981 * util/i386/pc/grub-install.in: Likewise.
28982 * util/powerpc/ieee1275/grub-install.in: Likewise.
28983
28984 * util/update-grub_lib.in (font_path): Return system path without
28985 converting to GRUB path.
28986 * util/update-grub.in: Convert system path returned by font_path()
28987 to a GRUB path. Use `grub-probe -t abstraction' to determine what
28988 abstraction module is needed for loading fonts (if any). Export
28989 that as `GRUB_PRELOAD_MODULES'.
28990 * util/grub.d/00_header.in: Process `GRUB_PRELOAD_MODULES' (print
28991 insmod commands).
28992
52bd3de9 289932008-01-12 Yoshinori K. Okuji <okuji@enbug.org>
28994
28995 Remove some unused code from reiserfs.
f19dbdb7 28996
52bd3de9 28997 * fs/reiserfs.c (struct grub_reiserfs_key)
28998 [GRUB_REISERFS_KEYV2_BITFIELD]: Removed offset and type.
28999 (struct grub_reiserfs_node_body): Removed.
29000 (grub_reiserfs_get_key_v2_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
29001 Likewise.
29002 (grub_reiserfs_get_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
29003 Likewise.
29004 (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
29005 Likewise.
29006 (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
29007 Likewise.
29008 (grub_reiserfs_set_key_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
29009 Likewise.
29010 (grub_reiserfs_iterate_dir) [GRUB_REISERFS_KEYV2_BITFIELD]:
29011 Likewise.
29012 (grub_reiserfs_open) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
29013 (grub_reiserfs_read) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
29014 (grub_reiserfs_dir) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
29015
2f80039d 290162008-01-10 Robert Millan <rmh@aybabtu.com>
29017
29018 * util/update-grub_lib.in (grub_file_is_not_garbage): New function.
29019 Determines if a file is garbage left by packaging systems, etc.
29020 * util/update-grub.in: Use grub_file_is_not_garbage() as a condition
29021 for processing /etc/grub.d scripts.
29022 * util/grub.d/10_hurd.in: Fix `GRUB_DISTRIBUTOR' comparison.
29023 * util/grub.d/10_linux.in: Likewise. Use grub_file_is_not_garbage()
29024 as a condition for processing Linux images.
29025
87888032 290262008-01-10 Pavel Roskin <proski@gnu.org>
29027
29028 * include/grub/powerpc/libgcc.h (__ucmpdi2): New export. Needed
29029 to compile reiserfs.c on PowerPC.
29030
7e54fced 290312008-01-10 Robert Millan <rmh@aybabtu.com>
de9993e0 29032
29033 * kern/device.c (grub_device_iterate): Do not abort device iteration
29034 when one of the devices cannot be opened.
29035 * kern/disk.c (grub_disk_open): Do not account previous failures of
29036 unrelated functions when grub_errno is checked for.
29037
5aa541e6 290382008-01-08 Robert Millan <rmh@aybabtu.com>
29039
29040 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): For
29041 `! grub_linux_is_bzimage', change order of address comparison to make
29042 it more intuitive, and improve "too big zImage" error message.
29043
7076340d 290442008-01-08 Robert Millan <rmh@aybabtu.com>
29045
29046 * Makefile.in (uninstall): Handle `$(update-grub_SCRIPTS)' and
29047 `$(update-grub_DATA)'.
29048 (distcheck): Fix race condition when invoking `$(MAKE)' on multiple
29049 targets.
29050
9ca70333 290512008-01-07 Robert Millan <rmh@aybabtu.com>
29052
29053 * boot/i386/pc/boot.S (boot_drive_check): Add a comment indicating
29054 which instruction is modified by grub-setup during installation
29055 (since it wasn't obvious by only looking at this file).
29056
38ccf575 290572008-01-07 Robert Millan <rmh@aybabtu.com>
29058
29059 * TODO: Rewrite. Just refer to the wiki and the BTS instead of
29060 listing actual TODO items.
29061
f5db4291 290622008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
29063
868967cf 29064 * fs/reiserfs.c (grub_reiserfs_get_key_v2_type): Handle endianness
29065 correctly.
29066 (grub_reiserfs_get_key_offset): Likewise.
29067 (grub_reiserfs_set_key_offset): Likewise.
29068 (grub_reiserfs_set_key_type): Likewise.
fe6b695a 29069 (grub_reiserfs_iterate_dir): Return 1 if found, otherwise 0.
868967cf 29070
29071 (GRUB_REISERFS_KEYV2_BITFIELD): Undefined. Probably it would be
29072 better to remove the bitfield version completely.
f19dbdb7 29073
868967cf 290742008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
f19dbdb7 29075
f5db4291 29076 * fs/reiserfs.c (grub_reiserfs_iterate_dir): ENTRY_ITEM must be
29077 allocated from the heap, due to the fshelp implementation.
29078 (grub_reiserfs_dir): Free NODE, due to the same reason.
29079
492e6d9d 290802008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
29081
29082 Mostly from Vincent Pelletier:
f19dbdb7 29083
492e6d9d 29084 * fs/reiserfs.c: New file.
f19dbdb7 29085
492e6d9d 29086 * conf/common.rmk (pkglib_MODULES): Added reiserfs.mod.
29087 (reiserfs_mod_SOURCES): New variable.
29088 (reiserfs_mod_CFLAGS): Likewise.
29089 (reiserfs_mod_LDFLAGS): Likewise.
29090
29091 * DISTLIST: Added boot/i386/pc/lnxboot.S, commands/hexdump.c,
29092 disk/ata.c, fs/cpio.c, fs/ntfscomp.c, fs/reiserfs.c,
29093 include/grub/ntfs.h, include/grub/i386/pc/machine.h, and
29094 normal/color.c.
29095
9ce3e7c1 290962008-01-06 Robert Millan <rmh@aybabtu.com>
29097
29098 * normal/color.c: Remove `<grub/env.h>'.
29099
f3b58148 291002008-01-05 Jeroen Dekkers <jeroen@dekkers.cx>
29101
29102 * include/grub/normal.h: Include <grub/env.h>.
29103
7ac3bcfa 291042008-01-05 Robert Millan <rmh@aybabtu.com>
29105
29106 * util/i386/pc/grub-setup.c (usage): Replace obsolete `(hd0,0)' in
29107 usage example with `(hd0,1)'.
fb358190 29108 Reported by Samuel Thibault.
7ac3bcfa 29109
c8ee99d7 291102008-01-05 Robert Millan <rmh@aybabtu.com>
29111
29112 * kern/i386/loader.S (grub_linux_is_bzimage): New variable.
29113 (grub_linux_boot_zimage): Rename to ...
29114 (grub_linux_boot): ... this.
29115 (grub_linux_boot_bzimage): Merge with `grub_linux_boot_zimage'.
29116 (grub_linux_boot_zimage): Conditionalize zImage copy.
29117
29118 * include/grub/i386/loader.h (grub_linux_is_bzimage): Add prototype.
29119 (grub_linux_boot_bzimage): Remove prototype.
29120 (grub_linux_boot_zimage): Rename to ...
29121 (grub_linux_boot): ... this.
29122
29123 * loader/i386/pc/linux.c (big_linux): Replace with `grub_linux_is_bzimage'.
29124 (grub_linux_boot): Remove function.
29125
0ece25b1 291262008-01-05 Robert Millan <rmh@aybabtu.com>
29127
29128 * include/grub/normal.h (grub_env_write_color_normal): New prototype.
29129 (grub_env_write_color_highlight): Likewise.
29130 (grub_wait_after_message): Likewise.
29131
29132 * normal/color.c: New file.
29133
29134 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/color.c'.
29135 (normal_mod_DEPENDENCIES): Likewise.
29136
29137 * conf/i386-efi.rmk (grub_emu_SOURCES): Add `normal/color.c'.
29138 (normal_mod_DEPENDENCIES): Likewise.
29139
29140 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add `normal/color.c'.
29141 (normal_mod_DEPENDENCIES): Likewise.
29142
29143 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `normal/color.c'.
29144 (normal_mod_DEPENDENCIES): Likewise.
29145
29146 * normal/menu_entry.c (run): Rely on grub_wait_after_message()
29147 for waiting after a message is printed.
29148 * normal/main.c (read_config_file): Likewise.
29149 (grub_normal_init): Register grub_env_write_color_normal() and
29150 grub_env_write_color_highlight() hooks. Mark `color_normal' and
29151 `color_highlight' variables as global.
29152
29153 * normal/menu.c (grub_wait_after_message): New function.
29154 (grub_color_menu_normal): New variable. Replaces ...
29155 (GRUB_COLOR_MENU_NORMAL): ... this macro.
29156 (grub_color_menu_highlight): New variable. Replaces ...
29157 (GRUB_COLOR_MENU_HIGHLIGHT): ... this macro.
29158 (draw_border): Set color state to `GRUB_TERM_COLOR_NORMAL' instead of
29159 `GRUB_TERM_COLOR_STANDARD'.
29160 (print_message): Use `grub_setcolorstate' to reload colors. Rename
29161 `normal_code' and `highlight_code' to `old_color_normal' and
29162 `old_color_highlight', respectively.
29163 (grub_menu_init_page): Update colors when drawing the menu, based on
29164 `menu_color_normal' and `menu_color_highlight' variables.
29165 (grub_menu_run): Rely on grub_wait_after_message() for waiting after
29166 a message is printed.
29167
182dd4e5 291682008-01-05 Robert Millan <rmh@aybabtu.com>
29169
29170 * kern/env.c (grub_env_context_open): Propagate hooks for global
29171 variables to new context.
29172
29173 * kern/main.c (grub_set_root_dev): Export `root' variable.
29174
ddf8f6ad 291752008-01-05 Robert Millan <rmh@aybabtu.com>
29176
29177 * util/biosdisk.c (get_os_disk): Check for devfs-style IDE and SCSI
fe6b695a 29178 discs unconditionally, since udev and others have options to provide
ddf8f6ad 29179 them.
29180
d8b43d9b 291812008-01-05 Robert Millan <rmh@aybabtu.com>
29182
29183 * normal/completion.c (iterate_dir): Skip `.' and `..' directories.
29184
2bff2de3 291852008-01-04 Christian Franke <franke@computer.org>
29186
29187 * kern/i386/pc/init.c (grub_machine_init): Fix evaluation
29188 of eisa_mmap.
29189
97eab917 291902008-01-03 Pavel Roskin <proski@gnu.org>
29191
29192 * kern/i386/linuxbios/init.c: Put "void" to all function
29193 declarations with no arguments.
29194 * kern/powerpc/ieee1275/init.c: Likewise.
29195 * term/i386/pc/at_keyboard.c: Likewise.
29196 * term/i386/pc/vga_text.c: Likewise.
29197 * util/grub-mkdevicemap.c: Likewise.
29198
b9416d00 291992008-01-02 Robert Millan <rmh@aybabtu.com>
29200
29201 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Improve error
29202 message when loaded image is out of bounds.
29203 (grub_multiboot_load_elf64): Likewise.
29204
92695df9 292052008-01-02 Pavel Roskin <proski@gnu.org>
29206
29207 * util/grub.d/10_linux.in: Try version without ".old" when
29208 looking for initrd. It's better to use initrd from the newer
29209 kernel of the same version than no initrd at all.
29210
d98d9cad 292112008-01-01 Robert Millan <rmh@aybabtu.com>
29212
29213 * util/biosdisk.c (get_os_disk): Fix check for IDE or SCSI discs.
29214
dbfdce36 292152008-01-01 Vesa Jaaskelainen <chaac@nic.fi>
29216
f19dbdb7 29217 * include/grub/video.h: Added grub_video_unmap_color and
dbfdce36 29218 grub_video_get_active_render_target.
29219 (grub_video_adapter): Added unmap_color and get_active_render_target.
29220
f19dbdb7 29221 * video/video.c: Added grub_video_unmap_color and
dbfdce36 29222 grub_video_get_active_render_target.
29223 (grub_video_get_info): Changed method to accept NULL pointer as an
29224 argument to allow detection of active video adapter.
29225
29226 * video/i386/pc/vbe.c: Renamed grub_video_vbe_unmap_color as
29227 grub_video_vbe_unmap_color_int.
29228 Added grub_video_vbe_unmap_color and
29229 grub_video_vbe_get_active_render_target.
29230 (grub_video_vbe_adapter): Added unmap_color and
29231 get_active_render_target.
29232
f19dbdb7 29233 * video/i386/pc/vbeblit.c: Replaced grub_video_vbe_unmap_color usage
dbfdce36 29234 with grub_video_vbe_unmap_color_int.
29235
29236 * term/gfxterm.c (DEFAULT_STANDARD_COLOR): Added.
29237 (DEFAULT_NORMAL_COLOR): Likewise.
29238 (DEFAULT_HIGHLIGHT_COLOR) Likewise.
29239 (DEFAULT_FG_COLOR): Removed.
29240 (DEFAULT_BG_COLOR): Likewise.
29241 (DEFAULT_CURSOR_COLOR): Changed value.
29242 (grub_virtual_screen): Added standard_color_setting,
29243 normal_color_setting, highlight_color_setting and term_color.
29244 (grub_virtual_screen): Removed fg_color_setting and bg_color_setting.
29245 (bitmap_width): Added.
29246 (bitmap_height): Likewise.
29247 (bitmap): Likewise.
29248 (set_term_color): Likewise.
29249 (grub_virtual_screen_setup): Changed to use new terminal coloring
29250 settings.
29251 (grub_gfxterm_init): Added init for bitmap.
29252 (grub_gfxterm_fini): Added destroy for bitmap.
29253 (redraw_screen_rect): Updated to use background bitmap and new
29254 terminal coloring.
29255 (scroll_up): Added optimization for case when there is no bitmap.
29256 (grub_gfxterm_cls): Fixed to use correct background color.
29257 (grub_virtual_screen_setcolorstate): Changed to use new terminal
29258 coloring.
29259 (grub_virtual_screen_setcolor): Likewise.
29260 (grub_virtual_screen_getcolor): Added.
29261 (grub_gfxterm_background_image_cmd): Likewise.
29262 (grub_video_term): Added setcolor and getcolor.
29263 (MOD_INIT): Added registration of background_image command.
29264 (MOD_TERM): Added unregistration for background_image command.
29265
c3c20931 292662007-12-30 Pavel Roskin <proski@gnu.org>
29267
29268 * loader/multiboot_loader.c: Fix multiboot command
29269 unregistration. Fix all typos in the word "multiboot".
29270
df266716 292712007-12-29 Pavel Roskin <proski@gnu.org>
94239199 29272
29273 * util/grub.d/10_linux.in: Refactor search for initrd. Add
29274 support for initrd names used in Fedora.
29275
fc6e896c 292762007-12-26 Bean <bean123ch@gmail.com>
29277
29278 * conf/common.rmk (pkgdata_MODULES): Add cpio.mod.
29279 (cpio_mod_SOURCES): New variable.
29280 (cpio_mod_CFLAGS): Likewise.
29281 (cpio_mod_LDFLAGS): Likewise.
29282
29283 * fs/cpio.c: New file.
29284
29285 * conf/i386-pc.rmk (grub_emu_SOURCES): Add cpio.c.
29286
29287 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
29288
29289 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
29290
29291 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
29292
533110ad 292932007-12-25 Robert Millan <rmh@aybabtu.com>
29294
29295 * include/grub/term.h (struct grub_term): Add `getcolor' function.
29296 (grub_getcolor): New function.
29297
29298 * kern/term.c (grub_getcolor): New function.
29299 * normal/menu.c (GRUB_COLOR_MENU_NORMAL): New macro.
29300 (GRUB_COLOR_MENU_HIGHLIGHT): New macro.
29301 (print_entry): Set normal and highlight colors to
29302 `GRUB_COLOR_MENU_NORMAL' and `GRUB_COLOR_MENU_HIGHLIGHT',
29303 respectively, before printing and restore them to old
29304 values afterwards.
29305 (grub_menu_init_page): Likewise. Fill an additional colored space
29306 that would otherwise be left blank.
29307
29308 * term/efi/console.c (grub_console_getcolor): New function.
29309 (struct grub_console_term.getcolor): New variable.
29310 * term/i386/pc/console.c (grub_console_getcolor): New function.
29311 (struct grub_console_term.getcolor): New variable.
29312 * term/ieee1275/ofconsole.c (grub_ofconsole_getcolor): New function.
29313 (struct grub_console_term.getcolor): New variable.
29314
29315 * term/i386/pc/serial.c (grub_serial_setcolor): Remove function.
29316 (struct grub_console_term.setcolor): Remove variable.
29317 * term/i386/pc/vesafb.c (grub_virtual_screen_setcolor): Remove function.
29318 (struct grub_console_term.setcolor): Remove variable.
29319 * term/i386/pc/vga.c (grub_vga_setcolor): Remove function.
29320 (struct grub_console_term.setcolor): Remove variable.
29321 * term/gfxterm.c (grub_virtual_screen_setcolor): Remove function.
29322 (struct grub_console_term.setcolor): Remove variable.
29323
4931827f 293242007-12-25 Robert Millan <rmh@aybabtu.com>
29325
29326 * configure.ac: Search for possible unifont.hex locations, and
29327 define UNIFONT_HEX if found.
29328
29329 * Makefile.in (UNIFONT_HEX): Define variable.
29330 (DATA): Rename to ...
29331 (PKGLIB): ... this. Update all users.
29332 (PKGDATA): New variable.
29333 (pkgdata_IMAGES): Rename to ...
29334 (pkglib_IMAGES): ... this. Update all users.
29335 (pkgdata_MODULES): Rename to ...
29336 (pkglib_MODULES): ... this. Update all users.
29337 (pkgdata_PROGRAMS): Rename to ...
29338 (pkglib_PROGRAMS): ... this. Update all users.
29339 (pkgdata_DATA): Rename to ...
29340 (pkglib_DATA): ... this. Update all users.
29341 (CLEANFILES): Redefine to `$(pkglib_DATA) $(pkgdata_DATA)'.
29342 (unicode.pff, ascii.pff): New rules.
29343 (all-local): Add `$(PKGDATA)' dependency.
29344 (install-local): Process `$(PKGDATA)'.
29345
29346 * util/update-grub_lib.in (font_path): Search for *.pff files in
29347 a few more locations, including `${pkgdata}'.
29348
57e57e31 293492007-12-23 Robert Millan <rmh@aybabtu.com>
29350
29351 Patch from Bean <bean123ch@gmail.com>:
29352 * disk/loopback.c (grub_loopback_read): Add missing bit shift to
29353 `size'.
29354
4bc72aa9 293552007-12-21 Bean <bean123ch@gmail.com>
29356
29357 * conf/common.rmk (pkgdata_MODULES): Add ntfscomp.mod.
29358 (ntfscomp_mod_SOURCES): New variable.
29359 (ntfscomp_mod_CFLAGS): Likewise.
29360 (ntfscomp_mod_LDFLAGS): Likewise.
29361
29362 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfscomp.c.
29363 (grub_probe_SOURCES): Likewise.
29364 (grub_emu_SOURCES): Likewise.
29365
29366 * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
29367 (grub_emu_SOURCES): Likewise.
29368
29369 * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
29370 (grub_emu_SOURCES): Likewise.
29371
29372 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
29373 (grub_emu_SOURCES): Likewise.
29374
29375 * fs/ntfs.c (grub_ntfscomp_func): New variable.
29376 (read_run_list): Renamed to grub_ntfs_read_run_list.
29377 (decomp_nextvcn): Moved to ntfscomp.c.
29378 (decomp_getch): Likewise.
29379 (decomp_get16): Likewise.
29380 (decomp_block): Likewise.
29381 (read_block): Likewise.
29382 (read_data): Partially moved to ntfscomp.c.
29383 (fixup): Change unsigned to grub_uint16_t.
29384 (read_mft): Change unsigned long to grub_uint32_t.
29385 (read_attr): Likewise.
29386 (read_data): Likewise.
29387 (read_run_data): Likewise.
29388 (read_run_list): Likewise.
29389 (read_mft): Likewise.
29390
29391 * fs/ntfscomp.c: New file.
29392
29393 * include/grub/ntfs.h: New file.
29394
af680a87 293952007-12-16 Robert Millan <rmh@aybabtu.com>
29396
29397 * util/grub-mkdevicemap.c (make_device_map): Iterate up to 20 for
29398 IDE disk check, since Linux is known to support 20 IDE disks.
29399 Reported by Colin Watson.
29400
84be7599 294012007-12-15 Bean <bean123ch@gmail.com>
29402
29403 * conf/i386-pc.rmk (pkgdata_IMAGES): Add lnxboot.img.
29404 (lnxboot_img_SOURCES): New variable.
29405 (lnxboot_img_ASFLAGS): Likewise.
29406 (lnxboot_img_LDFLAGS): Likewise.
29407
29408 * boot/i386/pc/lnxboot.S: New file.
29409
6af9db01 294102007-11-24 Pavel Roskin <proski@gnu.org>
29411
29412 * configure.ac: Test if '--build-id=none' is supported by the
29413 linker. If yes, add it to TARGET_LDFLAGS. Build ID causes
29414 objcopy to generate incorrect binary files (binutils
29415 2.17.50.0.18-1 as shipped by Fedora 8).
29416 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Use LDFLAGS when
29417 linking, so that build ID doesn't break the test.
29418
7361cfe6 294192007-11-24 Pavel Roskin <proski@gnu.org>
29420
29421 * include/grub/i386/time.h: use "void" in the argument list
29422 of grub_cpu_idle().
29423 * include/grub/powerpc/time.h: Likewise.
29424 * include/grub/sparc64/time.h: Likewise.
29425
1593e10c 294262007-11-18 Christian Franke <franke@computer.org>
29427
29428 * util/console.c (grub_ncurses_getkey): Change curses KEY_* mapping,
29429 now return control chars instead of GRUB_CONSOLE_KEY_* constants.
29430 This fixes the problem that function keys did not work in grub-emu.
29431
3b8db1a8 294322007-11-18 Christian Franke <franke@computer.org>
29433
29434 * disk/host.c (grub_host_open): Remove attribute unused from
29435 name parameter. Add check for "host". This fixes the problem
29436 that grub-emu does not find partitions.
29437
2e29408d 294382007-11-18 Christian Franke <franke@computer.org>
29439
29440 * util/hostfs.c (is_dir): New function.
29441 (grub_hostfs_dir): Handle missing dirent.d_type case.
29442 (grub_hostfs_read): Add missing fseek().
29443 (grub_hostfs_label): Clear label pointer. This fixes a crash
29444 of grub-emu on "ls (host)".
29445
398cd047 294462007-11-18 Christian Franke <franke@computer.org>
29447
29448 * include/grub/i386/pc/init.h (struct grub_machine_mmap_entry):
29449 Add attribute packed, gcc 3.4.4 on Cygwin aligns this
29450 to 64 bit boundary by default.
29451
c405c391 294522007-11-18 Bean <bean123ch@gmail.com>
29453
29454 * conf/common.rmk (pkgdata_MODULES): Add hexdump.mod.
29455 (hexdump_mod_SOURCES): New variable.
29456 (hexdump_mod_CFLAGS): Likewise.
29457 (hexdump_mod_LDFLAGS): Likewise.
f19dbdb7 29458
c405c391 29459 * conf/i386-pc.rmk (grub_emu_SOURCES): Add command/hexdump.c.
29460
29461 * conf/i386-efi.rmk (grub_emu_SOURCES): Add command/hexdump.c.
29462
29463 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add command/hexdump.c.
29464
29465 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add command/hexdump.c.
29466
29467 * include/grub/hexdump.h: New file.
29468
29469 * commands/hexdump.c: New file.
29470
5cced7fd 294712007-11-10 Robert Millan <rmh@aybabtu.com>
29472
29473 * commands/i386/pc/play.c (beep_off): Switch order of arguments
29474 in grub_outb() calls.
29475 (beep_on): Likewise.
29476
8b714eb0 294772007-11-10 Christian Franke <franke@computer.org>
29478
29479 * normal/menu.c (run_menu): Check for empty menu to avoid crash.
29480 (grub_menu_run): Likewise.
29481
ce0f1839 294822007-11-10 Robert Millan <rmh@aybabtu.com>
29483
29484 * include/grub/i386/efi/machine.h: New file.
29485 * include/grub/i386/linuxbios/machine.h: Likewise.
29486 * include/grub/i386/pc/machine.h: Likewise.
29487 * include/grub/powerpc/ieee1275/machine.h: Likewise.
29488 * include/grub/sparc64/ieee1275/machine.h: Likewise.
29489
29490 * term/i386/pc/serial.c: Include <grub/machine/machine.h>.
29491 (serial_hw_io_addr): New variable.
29492 (serial_hw_get_port): Obtain port address from `serial_hw_io_addr'
29493 instead of `(unsigned short *) 0x400'.
29494
270c237d 294952007-11-10 Bean <bean123ch@gmail.com>
29496
29497 * fs/ntfs.c (read_block): Fix a bug caused by adjacent blocks.
29498
a87783bf 294992007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
29500
29501 * conf/i386-pc.rmk (pkgdata_MODULES): Added vga.mod.
29502 (vga_mod_SOURCES): Added.
29503 (vga_mod_CFLAGS): Likewise.
29504 (vga_mod_LDFLAGS): Likewise.
29505
29506 * term/i386/pc/vga.c (get_map_mask): Switch order of arguments in
29507 grub_outb() calls.
29508 (set_map_mask): Likewise.
29509 (set_read_map): Likewise.
29510 (set_read_address): Likewise.
29511 (vga_font): Removed variable.
29512 (get_vga_glyph): Removed function.
29513 (invalidate_char): Likewise.
29514 (write_char): Changed to use grub_font_get_glyph() for font
29515 information.
29516 (grub_vga_putchar): Likewise.
29517 (grub_vga_getcharwidth): Likewise.
29518
6433b448 295192007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
29520
29521 * conf/i386-pc.rmk (boot_img_LDFLAGS): Use COMMON_LDFLAGS for target
29522 flags.
29523 (pxeboot_img_LDFLAGS): Likewise.
29524 (diskboot_img_LDFLAGS): Likewise.
29525 (kernel_img_LDFLAGS): Likewise.
29526
49178511 295272007-11-06 Robert Millan <rmh@aybabtu.com>
29528
29529 * term/i386/pc/serial.c (serial_hw_put): Switch order of arguments
29530 in grub_outb() calls.
29531 (serial_hw_init): Likewise.
29532
53b052de 295332007-11-05 Robert Millan <rmh@aybabtu.com>
29534
29535 * util/update-grub.in: Allow files in ${update_grub_dir} to contain
29536 spaces. Skip non-regular files.
29537
5ab33bba 295382007-11-05 Robert Millan <rmh@aybabtu.com>
29539
29540 * kern/disk.c (grub_disk_firmware_fini)
29541 (grub_disk_firmware_is_tainted): New variables.
29542
29543 * include/grub/disk.h (grub_disk_firmware_fini)
29544 (grub_disk_firmware_is_tainted): Likewise.
29545
29546 * disk/i386/pc/biosdisk.c (GRUB_MOD_FINI(biosdisk)): Moved from here ...
29547 (grub_disk_biosdisk_fini): ... to here.
29548 (GRUB_MOD_FINI(biosdisk)): Implement using grub_disk_biosdisk_fini().
29549 (GRUB_MOD_INIT(biosdisk)): Abort when `grub_disk_firmware_is_tainted'
29550 is set. Register grub_disk_biosdisk_fini() in
29551 `grub_disk_firmware_fini'.
29552
29553 * disk/ata.c: Remove `<grub/machine/biosdisk.h>'.
29554 (GRUB_MOD_INIT(ata)): Remove grub_biosdisk_fini() call.
29555 Use `grub_disk_firmware_is_tainted' and `grub_disk_firmware_fini'
29556 to finish existing firmware disk interface.
29557
29558 * conf/i386-linuxbios.rmk (pkgdata_MODULES): Add `ata.mod'.
29559 (ata_mod_SOURCES): New variable.
29560 (ata_mod_CFLAGS): Likewise.
29561 (ata_mod_LDFLAGS): Likewise.
29562
0149ab7c 295632007-11-05 Robert Millan <rmh@aybabtu.com>
29564
29565 * disk/ata.c: Remove `<grub/machine/time.h>'. Include `<grub/time.h>'.
29566 (grub_ata_wait): Reimplement using grub_millisleep().
29567
29568 * include/grub/misc.h (grub_div_roundup): Fix parenthesization.
29569 * include/grub/i386/time.h (grub_cpu_idle): Disable `hlt' instruction.
29570
be7ac41e 295712007-11-03 Marco Gerards <marco@gnu.org>
29572
29573 * term/i386/pc/vga_text.c: Include <grub/cpu/io.h>.
29574 (CRTC_ADDR_PORT): New macro.
29575 (CRTC_DATA_PORT): Likewise.
29576 (CRTC_CURSOR): Likewise.
29577 (CRTC_CURSOR_ADDR_HIGH): Likewise.
29578 (CRTC_CURSOR_ADDR_LOW): Likewise.
29579 (update_cursor): New function.
29580 (grub_console_real_putchar): Call `update_cursor'.
29581 (grub_console_gotoxy): Likewise.
29582 (grub_console_cls): Set the default color when clearing the
29583 screen.
29584 (grub_console_setcursor): Implemented.
29585
bb06ab2e 295862007-11-03 Marco Gerards <marco@gnu.org>
29587
29588 * disk/ata.c (grub_ata_pio_read): Don't wait for the command to
29589 become activate.
29590 (grub_ata_pio_write): Likewise.
29591
29592 (grub_atapi_identify): Wait after issuing an ATA command.
29593 (grub_atapi_packet): Likewise.
29594 (grub_ata_identify): Likewise.
29595 (grub_ata_readwrite): Likewise.
29596
cf8f780b 295972007-11-03 Marco Gerards <marco@gnu.org>
29598
29599 * disk/ata.c (grub_ata_pio_read): Detect and return the error code.
29600 (grub_ata_pio_write): Likewise.
29601 (grub_ata_readwrite): Use `grub_error', instead of
29602 returning `grub_errno'.
29603
ed649e54 296042007-11-03 Marco Gerards <marco@gnu.org>
29605
29606 * disk/ata.c (grub_ata_readwrite): Call grub_ata_pio_read and
29607 grub_ata_pio_write once for every single sector, instead of for
29608 multiple sectors.
29609
ca25d8f0 296102007-10-31 Robert Millan <rmh@aybabtu.com>
29611
29612 * configure.ac: Add `i386-linuxbios' to the list of supported targets.
29613
29614 * conf/i386-linuxbios.rmk: New file.
29615
29616 * kern/i386/pc/hardware.c: Likewise.
29617 * term/i386/pc/at_keyboard.c: Likewise.
29618 * term/i386/pc/vga_text.c: Likewise.
29619
29620 * include/grub/i386/linuxbios/boot.h: Likewise.
29621 * include/grub/i386/linuxbios/console.h: Likewise.
29622 * include/grub/i386/linuxbios/init.h: Likewise.
29623 * include/grub/i386/linuxbios/kernel.h: Likewise.
29624 * include/grub/i386/linuxbios/loader.h: Likewise.
29625 * include/grub/i386/linuxbios/memory.h: Likewise.
29626 * include/grub/i386/linuxbios/serial.h: Likewise.
29627 * include/grub/i386/linuxbios/time.h: Likewise.
29628
29629 * kern/i386/linuxbios/init.c: Likewise.
29630 * kern/i386/linuxbios/startup.S: Likewise.
29631 * kern/i386/linuxbios/table.c: Likewise.
29632
e911ecc1 296332007-10-31 Marco Gerards <marco@gnu.org>
29634
29635 * conf/i386-pc.rmk (pkgdata_MODULES): Add `ata.mod'.
29636 (ata_mod_SOURCES): New variable.
29637 (ata_mod_CFLAGS): Likewise.
29638 (ata_mod_LDFLAGS): Likewise.
29639
29640 * disk/ata.c: New file.
29641
29642 * include/grub/disk.h (grub_disk_dev_id): Add
29643 `GRUB_DISK_DEV_ATA_ID'.
f19dbdb7 29644
7f66d0e0 296452007-10-31 Robert Millan <rmh@aybabtu.com>
29646
29647 * include/grub/i386/pc/init.h (grub_lower_mem): Moved from here ...
29648 * include/grub/i386/pc/memory.h (grub_lower_mem): ... to here.
29649
29650 * include/grub/i386/pc/init.h (grub_upper_mem): Moved from here ...
29651 * include/grub/i386/pc/memory.h (grub_upper_mem): ... to here.
29652
29653 * include/grub/i386/pc/memory.h: Include `<grub/symbol.h>' and
29654 `<grub/types.h>'.
29655
29656 * loader/i386/pc/multiboot.c: Include `<grub/machine/memory.h>'.
29657
5cd7dd46 296582007-10-27 Robert Millan <rmh@aybabtu.com>
29659
3236ca65 29660 * include/grub/types.h (ULONG_MAX): Define macro.
5cd7dd46 29661
2ebfc90f 296622007-10-22 Robert Millan <rmh@aybabtu.com>
29663
29664 * kern/i386/pc/startup.S: Remove `"kern/i386/realmode.S"'. Include
29665 `"../realmode.S"'.
29666 Remove `"kern/i386/loader.S"'. Include `"../loader.S"'.
29667
73fcb0f3 296682007-10-22 Robert Millan <rmh@aybabtu.com>
29669
29670 * conf/i386-pc.rmk (kernel_img_SOURCES): Remove `disk/i386/pc/biosdisk.c'.
29671 (pkgdata_MODULES): Add `biosdisk.mod'.
29672 (biosdisk_mod_SOURCES, biosdisk_mod_CFLAGS, biosdisk_mod_LDFLAGS): New
29673 variables.
29674
29675 * disk/i386/pc/biosdisk.c: Include `<grub/dl.h>'.
29676 (grub_biosdisk_init): Replace with ...
29677 (GRUB_MOD_INIT(biosdisk)): ... this.
29678 (grub_biosdisk_fini): Replace with ...
29679 (GRUB_MOD_FINI(biosdisk)): ... this.
29680
29681 * kern/i386/pc/init.c: Remove `<grub/machine/biosdisk.h>'.
29682 (grub_machine_init): Remove call to grub_biosdisk_init().
29683 (grub_machine_fini): Remove call to grub_machine_fini().
29684
29685 * util/i386/pc/grub-install.in (modules): Add `biosdisk'.
29686
3381d274 296872007-10-22 Robert Millan <rmh@aybabtu.com>
29688
29689 * include/grub/time.h: New file.
29690 * include/grub/i386/time.h: Likewise.
29691 * include/grub/powerpc/time.h: Likewise.
29692 * include/grub/sparc64/time.h: Likewise.
29693
29694 * include/grub/i386/pc/time.h (KERNEL_TIME_HEADER): Rename all
29695 instances to ...
29696 (KERNEL_MACHINE_TIME_HEADER): ... this.
29697 * include/grub/powerpc/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
29698 instances to ...
29699 (KERNEL_MACHINE_TIME_HEADER): ... this.
29700 * include/grub/sparc64/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
29701 instances to ...
29702 (KERNEL_MACHINE_TIME_HEADER): ... this.
29703
29704 * kern/i386/efi/init.c: Include `<grub/time.h>'.
29705 (grub_millisleep): New function.
29706 * kern/i386/pc/init.c: Include `<grub/time.h>'.
29707 (grub_millisleep): New function.
29708 * kern/powerpc/ieee1275/init.c: Include `<grub/time.h>'.
29709 Remove `grub/machine/time.h' include.
29710 (grub_millisleep): New function.
29711 * kern/sparc64/ieee1275/init.c: Include `<grub/time.h>'.
29712 Remove `grub/machine/time.h' include.
29713 (grub_millisleep): New function.
29714
29715 * include/grub/misc.h (grub_div_roundup): New function.
29716
29717 * kern/misc.c: Include `<grub/time.h>'.
29718 (grub_millisleep_generic): New function.
29719
29720 * conf/i386-efi.rmk (kernel_mod_HEADERS): Remove `i386/efi/time.h'.
29721 Add `time.h'.
29722 * conf/i386-pc.rmk (kernel_img_HEADERS): Remove `machine/time.h'.
29723 Add `time.h'.
29724 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Remove
29725 `machine/time.h'. Add `time.h'.
29726 * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
29727
a39a0312 297282007-10-21 Robert Millan <rmh@aybabtu.com>
29729
29730 * include/grub/misc.h (grub_max): New function.
29731
2aad70e2 297322007-10-21 Robert Millan <rmh@aybabtu.com>
29733
29734 * util/misc.c (grub_util_info): Call fflush() before returning.
29735
54b71c4b 297362007-10-20 Robert Millan <rmh@aybabtu.com>
29737
29738 * genmk.rb (Image): Copy `extra_flags' from here ...
29739 (PModule): ... to here. Use it in `#{obj}: #{src}' rule.
29740
29741 * commands/i386/cpuid.c (grub_cmd_cpuid): Add __attribute__ ((unused))
29742 to `argc' and `args' arguments.
29743
a979f513 297442007-10-17 Robert Millan <rmh@aybabtu.com>
29745
29746 * kern/i386/loader.S: New file.
29747
29748 * kern/i386/pc/startup.S (grub_linux_prot_size): Moved from here ...
29749 * kern/i386/loader.S (grub_linux_prot_size)... to here.
29750 * kern/i386/pc/startup.S (grub_linux_tmp_addr): Moved from here ...
29751 * kern/i386/loader.S (grub_linux_tmp_addr)... to here.
29752 * kern/i386/pc/startup.S (grub_linux_real_addr): Moved from here ...
29753 * kern/i386/loader.S (grub_linux_real_addr)... to here.
29754 * kern/i386/pc/startup.S (grub_linux_boot_zimage): Moved from here ...
29755 * kern/i386/loader.S (grub_linux_boot_zimage)... to here.
29756 * kern/i386/pc/startup.S (grub_linux_boot_bzimage): Moved from here ...
29757 * kern/i386/loader.S (grub_linux_boot_bzimage)... to here.
29758 * kern/i386/pc/startup.S (grub_multiboot_real_boot): Moved from here ...
29759 * kern/i386/loader.S (grub_multiboot_real_boot)... to here.
29760 * kern/i386/pc/startup.S (grub_multiboot2_real_boot): Moved from here ...
29761 * kern/i386/loader.S (grub_multiboot2_real_boot)... to here.
29762
29763 * kern/i386/realmode.S: New file.
29764
29765 * kern/i386/pc/startup.S (protstack): Moved from here ...
29766 * kern/i386/realmode.S (protstack)... to here.
29767 * kern/i386/pc/startup.S (gdt): Moved from here ...
29768 * kern/i386/realmode.S (gdt)... to here.
29769 * kern/i386/pc/startup.S (prot_to_real): Moved from here ...
29770 * kern/i386/realmode.S (prot_to_real)... to here.
29771
29772 * kern/i386/pc/startup.S: Include `kern/i386/loader.S' and
29773 `kern/i386/realmode.S'.
29774
825fc8fd 297752007-10-17 Robert Millan <rmh@aybabtu.com>
29776
29777 * include/grub/i386/loader.h: New file.
29778
29779 * include/grub/i386/pc/loader.h (grub_linux_prot_size)
29780 (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
29781 (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
29782 (grub_multiboot_real_boot, grub_multiboot2_real_boot)
29783 (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): Moved from here ...
29784 * include/grub/i386/loader.h (grub_linux_prot_size)
29785 (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
29786 (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
29787 (grub_multiboot_real_boot, grub_multiboot2_real_boot)
29788 (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): ... to here.
29789
29790 * include/grub/i386/pc/loader.h: Include `grub/cpu/loader.h'.
29791
e179b2f4 297922007-10-15 Robert Millan <rmh@aybabtu.com>
29793
29794 * normal/misc.c (grub_normal_print_device_info): Do not probe for
29795 filesystem when dev->disk is unset.
29796 Do probe for filesystem even when dev->disk->has_partitions is set.
29797 In case a filesystem is found, always report it.
29798 In case it isn't, if dev->disk->has_partitions is set, report that
29799 a partition table was found instead of reporting that no filesystem
29800 could be identified.
29801
5db82af6 298022007-10-12 Robert Millan <rmh@aybabtu.com>
29803
29804 * conf/powerpc-ieee1275.rmk (grub_mkimage_SOURCES): Replace reference
29805 to util/powerpc/ieee1275/grub-mkimage.c with util/elf/grub-mkimage.c.
29806
68f6ac74 29807 * include/grub/types.h (grub_host_to_target16): New macro.
29808 (grub_host_to_target32): Likewise.
29809 (grub_host_to_target64): Likewise.
29810 (grub_target_to_host16): Likewise.
29811 (grub_target_to_host32): Likewise.
29812 (grub_target_to_host64): Likewise.
5db82af6 29813
29814 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
29815 Renamed from to ...
29816 (GRUB_MOD_ALIGN): ...this. Update all users.
29817
68f6ac74 29818 * util/elf/grub-mkimage.c (load_note): Replace grub_cpu_to_be32 with
29819 grub_host_to_target32.
29820 Replace grub_be_to_cpu32 with grub_target_to_host32.
29821 (load_modules): Likewise.
29822 (add_segments): Replace grub_be_to_cpu16 with grub_target_to_host16.
29823 Replace grub_be_to_cpu32 with grub_target_to_host32.
29824 Replace grub_cpu_to_be16 with grub_host_to_target16.
29825 Replace grub_cpu_to_be32 grub_host_to_target32.
5db82af6 29826
3cf497cc 298272007-10-12 Robert Millan <rmh@aybabtu.com>
29828
29829 * util/powerpc/ieee1275/grub-mkimage.c: Moved to ...
29830 * util/elf/grub-mkimage.c: ... here.
29831
29832 * DISTLIST: Add `util/elf/grub-mkimage.c'. Remove
29833 `util/powerpc/ieee1275/grub-mkimage.c'.
29834
c8cc3692 298352007-10-07 Robert Millan <rmh@aybabtu.com>
adbc4c9d 29836
c8cc3692 29837 * kern/powerpc/ieee1275/init.c: Rename HEAP_LIMIT to HEAP_MAX_ADDR,
29838 and make it easier to figure out.
29839 Add HEAP_MIN_SIZE and HEAP_MAX_ADDR definitions.
29840 (grub_claim_heap): Use HEAP_MAX_ADDR rather than taking a parameter.
29841 Do not avoid claiming a region above HEAP_MAX_ADDR if that would
29842 leave us with less than HEAP_MIN_SIZE total heap.
29843 Avoid our total amount of heap to surpass HEAP_MAX_SIZE.
adbc4c9d 29844
5c58b791 298452007-10-03 Robert Millan <rmh@aybabtu.com>
29846
29847 * include/grub/i386/io.h: New file.
29848 * commands/i386/pc/play.c (inb): Removed.
29849 (outb): Removed.
29850 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
29851 with grub_outb().
afcd2ef8 29852 * term/i386/pc/serial.c (inb): Removed.
29853 (outb): Removed.
29854 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
29855 with grub_outb().
29856 * term/i386/pc/vga.c (inb): Removed.
29857 (outb): Removed.
29858 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
29859 with grub_outb().
5c58b791 29860
1a477ed6 298612007-10-02 Robert Millan <rmh@aybabtu.com>
29862
29863 * conf/i386-efi.rmk (grub_emu_SOURCES): Add util/hostfs.c.
29864 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
29865 Reported by Marcin Kurek.
29866
6b5d80fa 298672007-09-07 Robert Millan <rmh@aybabtu.com>
29868
29869 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_test_flag): Detect
29870 SmartFirmware version updates (as released by Sven Luther), and avoid
29871 setting GRUB_IEEE1275_FLAG_NO_PARTITION_0 or
29872 GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS unless the running version is
29873 known broken.
29874
5618afbf 298752007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
29876
29877 From Hitoshi Ozeki:
29878 * kern/i386/pc/init.c (compact_mem_regions): Decrease NUM_REGIONS
29879 when merging two regions.
29880
6139dcd9 298812007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
29882
508e39ee 29883 * kern/rescue.c (grub_enter_rescue_mode): Free ARGS.
29884 * normal/completion.c (grub_normal_do_completion): Likewise.
29885 Reported by Hitoshi Ozeki.
29886
298872007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
f19dbdb7 29888
6139dcd9 29889 Do not use devices at boot in chainloading.
f19dbdb7 29890
6139dcd9 29891 * loader/i386/pc/chainloader.c (boot_drive): New variable.
29892 (boot_part_addr): Likewise.
29893 (grub_chainloader_boot): Simply call grub_chainloader_real_boot
29894 with BOOT_DRIVE and BOOT_PART_ADDR.
29895 (grub_chainloader_cmd): Set BOOT_DRIVE and BOOT_PART_ADDR.
29896 Reported by Hitoshi Ozeki <h-ozeki@ck2.so-net.ne.jp>.
29897
38da6516 298982007-08-29 Robert Millan <rmh@aybabtu.com>
29899
29900 Patch from Simon Peter <dn.tlp@gmx.net>:
29901 * genmk.rb (Utility): Append $(#{src}_DEPENDENCIES) to #{obj} targets.
29902 * conf/i386-pc.rmk: Replace grub-probe_DEPENDENCIES with
29903 util/grub-probe.c_DEPENDENCIES. Replace grub-setup_DEPENDENCIES with
29904 util/i386/pc/grub-setup.c_DEPENDENCIES.
29905 * conf/i386-efi.rmk: Replace grub-probe_DEPENDENCIES with
29906 util/grub-probe.c_DEPENDENCIES.
29907 * conf/powerpc-ieee1275.rmk: Likewise.
29908
29d0928c 299092007-08-28 Robert Millan <rmh@aybabtu.com>
29910
29911 * util/i386/get_disk_name.c: New. Implement grub_util_get_disk_name()
29912 to tell grub-mkdevicemap how to name devices.
29913 * util/ieee1275/get_disk_name.c: Likewise (using "ofpathname -a"
29914 feature).
29915
29916 * conf/i386-efi.rmk (grub_mkdevicemap_SOURCES): Add
29917 util/i386/get_disk_name.c.
29918 * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Likewise.
29919 * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Add
29920 util/ieee1275/get_disk_name.c.
29921
29922 * include/grub/util/misc.h: grub_util_get_disk_name() declaration.
29923
29924 * DISTLIST: Add util/i386/get_disk_name.c and
29925 util/ieee1275/get_disk_name.c.
29926
29927 * util/grub-mkdevicemap.c: Replace device naming logic with
29928 grub_util_get_disk_name() calls.
29929
5a0d3cca 299302007-08-20 Robert Millan <rmh@aybabtu.com>
29931
29932 * normal/menu.c (run_menu): Refer to seconds as "s" not "seconds"
29933 (so that it works for both plural and singular quantities).
29934
8b72db2f 299352007-08-05 Robert Millan <rmh@aybabtu.com>
29936
29937 * util/grub.d/10_linux.in (test_gt): Strip out vmlinu[xz]- prefix
29938 so that [xz] isn't taken into account when determining order.
29939
352466bf 299402007-08-02 Marco Gerards <marco@gnu.org>
29941
29942 * DISTLIST: Add `disk/host.c', `fs/ntfs.c', `include/multiboot.h',
29943 `include/multiboot2.h', `include/grub/elfload.h',
29944 `include/multiboot.h', `include/grub/multiboot.h',
29945 `include/grub/multiboot_loader.h', `include/grub/multiboot2.h',
29946 `include/grub/i386/pc/biosdisk.h', `include/grub/util/biosdisk.h',
29947 `kern/elf.c', `loader/multiboot_loader.c',
29948 `loader/multiboot_loader_normal.c', `loader/multiboot2.c',
29949 `loader/i386/pc/multiboot2.c',
29950 `loader/powerpc/ieee1275/multiboot2.c', `util/hostfs.c' and
29951 `util/i386/pc/grub-mkrescue.in'. Remove
29952 `include/grub/biosdisk.h', `include/grub/i386/pc/multiboot.h',
29953 `include/grub/i386/pc/util/biosdisk.h' and
29954 `include/grub/powerpc/ieee1275/multiboot.h'.
29955
8f096014 299562007-08-02 Bean <bean123ch@gmail.com>
29957
29958 * conf/common.rmk (pkgdata_MODULES): Add ntfs.mod.
29959 (ntfs_mod_SOURCES): New variable.
29960 (ntfs_mod_CFLAGS): Likewise.
29961 (ntfs_mod_LDFLAGS): Likewise.
29962
29963 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfs.c.
29964 (grub_probe_SOURCES): Likewise.
29965 (grub_emu_SOURCES): Likewise.
29966
29967 * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
29968 (grub_emu_SOURCES): Likewise.
29969
29970 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
29971 (grub_emu_SOURCES): Likewise.
f19dbdb7 29972
8f096014 29973 * conf/misc.c (grub_utf16_to_utf8): Fix unicode conversion bug.
29974
29975 * fs/ntfs.c: New file.
29976
9959f7db 299772007-08-02 Bean <bean123ch@gmail.com>
29978
29979 * disk.h (grub_disk): Use NESTED_FUNC_ATTR.
29980
29981 * file.h (grub_file): Likewise.
29982
29983 * fshelp.h (grub_fshelp_read_file): Likewise.
29984
29985 * util/i386/pc/grub-setup.c (setup): Likewise.
29986 (save_first_sector): Likewise.
29987 (save_blocklists): Likewise.
f19dbdb7 29988
9959f7db 29989 * fs/affs.c (grub_affs_read_file): Likewise.
29990
29991 * fs/ext2.c (grub_ext2_read_file): Likewise.
29992
29993 * fs/fat.c (grub_fat_read_data): Likewise.
29994
29995 * fs/fshelp.c (grub_fshelp_read_file): Likewise.
29996
29997 * fs/hfs.c (grub_hfs_read_file): Likewise.
29998
29999 * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
30000
30001 * fs/jfs.c (grub_jfs_read_file): Likewise.
30002
30003 * fs/minix.c (grub_minix_read_file): Likewise.
30004
30005 * fs/sfs.c (grub_sfs_read_file): Likewise.
30006
30007 * fs/ufs.c (grub_ufs_read_file): Likewise.
f19dbdb7 30008
9959f7db 30009 * fs/xfs.c (grub_xfs_read_file): Likewise.
30010
30011 * command/blocklist.c (read_blocklist): Likewise.
30012 (print_blocklist): Likewise.
30013
0a203f83 300142007-08-02 Marco Gerards <marco@gnu.org>
30015
30016 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/host.c' and
30017 `util/hostfs.c'.
30018
30019 * disk/host.c: New file.
30020
30021 * util/hostfs.c: Likewise.
30022
30023 * fs/hfsplus.c (grub_hfsplus_mount): When reading out of disk,
30024 return `GRUB_ERR_BAD_FS'.
30025 * fs/sfs.c (grub_sfs_mount): Likewise.
30026 * fs/xfs.c (grub_xfs_mount): Likewise.
30027
30028 * include/grub/disk.h (enum grub_disk_dev_id): Add
30029 `GRUB_DISK_DEVICE_HOST_ID'.
30030
30031 * util/grub-emu.c (main): Initialize and de-initialize hostfs.
30032
e5dfe777 300332007-07-24 Jerone Young <jerone@gmail.com>
30034
f19dbdb7 30035 * conf/i386-pc.rmk: Add Multiboot loader and multiboot 2 to multiboot
e5dfe777 30036 modules for compilation.
30037 * conf/powerpc-ieee1275.rmk: Likewise.
30038
30039 * include/multiboot.h: Move multiboot definitions to one file. Rename
30040 many definitions to not get grub specific.
30041 * include/multiboot2.h: Create header with multiboot 2 definitions.
30042 * include/grub/multiboot.h: Header for grub specific function
30043 prototypes and definitions.
30044 * include/grub/multiboot2.h: Likewise.
30045 * include/grub/multiboot_loader.h: Likewise.
30046 * include/grub/i386/pc/multiboot.h: Removed.
30047 * include/grub/powerpc/ieee1275/multiboot.h: Removed.
30048
30049 * loader/multiboot_loader.c: Created to act as a proxy for multiboot 1
30050 and 2 to allow for one multiboot and module commands.
30051 * loader/multiboot2.c: Add multiboot2 functionality.
30052 * loader/i386/pc/multiboot.c: Modify for new multiboot header location
30053 and definition names.
30054 * loader/i386/pc/multiboot2.c: Created to add i386 specific multiboot
30055 2 functions.
30056 * loader/powerpc/ieee1275/multiboot2.c: Created to add powerpc
30057 ieee1275 specific multiboot2 code.
30058
30059 * kern/i386/pc/startup.S: Change headers and definition names for
30060 multiboot. Add function grub_multiboot2_real_boot for multiboot 2.
30061
daf0f0ba 300622007-07-22 Robert Millan <rmh@aybabtu.com>
30063
30064 * geninitheader.sh: Process file specified in first parameter rather
30065 than hardcoding grub_modules_init.lst.
fe6b695a 30066 * geninit.sh: Likewise. Also, construct header name dynamically rather
daf0f0ba 30067 than hardcoding grub_modules_init.h.
30068
30069 * conf/common.rmk: Rename grub_modules_init.[ch] files associated with
30070 grub-emu to grub_emu_init.[ch]. Add rules to build analogous
30071 grub_probe_init.[ch] and grub_setup_init.[ch].
30072
30073 * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Replace
30074 grub_modules_init.h with grub_emu_init.h.
30075 (grub_probe_DEPENDENCIES, grub_probe_SOURCES): Add new
30076 grub_probe_init.[ch] files.
30077 * conf/i386-efi.rmk: Likewise.
30078 * conf/i386-pc.rmk: Likewise.
30079 (grub_setup_DEPENDENCIES, grub_setup_SOURCES): Add new
30080 grub_setup_init.[ch] files.
30081
30082 * util/grub-emu.c: Replace grub_modules_init.h with grub_emu_init.h.
30083 * util/grub-probe.c: Include grub_probe_init.h. Use grub_init_all()
30084 to initialize modules rather than a list of hardcoded functions.
30085 * util/i386/pc/grub-setup.c: Include grub_setup_init.h. Use
30086 grub_init_all() to initialize modules rather than a list of hardcoded
30087 functions.
30088
54cdc1cc 300892007-07-22 Robert Millan <rmh@aybabtu.com>
30090
30091 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set
30092 GRUB_IEEE1275_FLAG_NO_PARTITION_0 flag when running on SmartFirmware.
30093
ad0686cc 300942007-07-22 Robert Millan <rmh@aybabtu.com>
30095
30096 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
30097 GRUB_IEEE1275_FLAG_BROKEN_OUTPUT flag.
30098 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set this
30099 flag when running on SmartFirmware.
30100 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid running
30101 "output-device output" command when GRUB_IEEE1275_FLAG_BROKEN_OUTPUT
30102 was set.
30103
30104 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
30105 Increase partno when GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS flag is set,
30106 rather than decreasing it.
30107
30108 * util/i386/pc/grub-setup.c (setup): When embedding is required, but
30109 there's not enough space to do it, fail in the same way as when it
30110 can't be done because there are no partitions.
30111
30112 * util/powerpc/ieee1275/grub-install.in: Improve error message shown
30113 when nvsetenv failed.
30114
969c02ec 301152007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
30116
30117 * conf/i386-pc.rmk (CLEANFILES): Removed for grub-mkrescue,
30118 because this rule is automatically generated.
30119 (grub-mkrescue): Removed for the same reason as above.
30120
5a79f472 301212007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
30122
30123 Migrate to GNU General Public License Version 3.
f19dbdb7 30124
5a79f472 30125 * COPYING: Replaced with the plain text version of GPLv3.
30126
30127 * config.guess: Updated from gnulib.
30128 * config.sub: Likewise.
30129
30130 * geninit.sh: Output a GPLv3 copyright notice.
30131 * geninitheader.sh: Likewise.
30132 * genmodsrc.sh: Likewise.
30133 * gensymlist.sh.in: Likewise.
30134
30135 * boot/i386/pc/boot.S: Upgraded to GPLv3.
30136 * boot/i386/pc/diskboot.S: Likewise.
30137 * boot/i386/pc/pxeboot.S: Likewise.
30138 * commands/blocklist.c: Likewise.
30139 * commands/boot.c: Likewise.
30140 * commands/cat.c: Likewise.
30141 * commands/cmp.c: Likewise.
30142 * commands/configfile.c: Likewise.
30143 * commands/echo.c: Likewise.
30144 * commands/help.c: Likewise.
30145 * commands/ls.c: Likewise.
30146 * commands/search.c: Likewise.
30147 * commands/terminal.c: Likewise.
30148 * commands/test.c: Likewise.
30149 * commands/videotest.c: Likewise.
30150 * commands/i386/cpuid.c: Likewise.
30151 * commands/i386/pc/halt.c: Likewise.
30152 * commands/i386/pc/play.c: Likewise.
30153 * commands/i386/pc/reboot.c: Likewise.
30154 * commands/i386/pc/vbeinfo.c: Likewise.
30155 * commands/i386/pc/vbetest.c: Likewise.
30156 * commands/ieee1275/halt.c: Likewise.
30157 * commands/ieee1275/reboot.c: Likewise.
30158 * commands/ieee1275/suspend.c: Likewise.
30159 * disk/loopback.c: Likewise.
30160 * disk/lvm.c: Likewise.
30161 * disk/raid.c: Likewise.
30162 * disk/efi/efidisk.c: Likewise.
30163 * disk/i386/pc/biosdisk.c: Likewise.
30164 * disk/ieee1275/ofdisk.c: Likewise.
30165 * font/manager.c: Likewise.
30166 * fs/affs.c: Likewise.
30167 * fs/ext2.c: Likewise.
30168 * fs/fat.c: Likewise.
30169 * fs/fshelp.c: Likewise.
30170 * fs/hfs.c: Likewise.
30171 * fs/hfsplus.c: Likewise.
30172 * fs/iso9660.c: Likewise.
30173 * fs/jfs.c: Likewise.
30174 * fs/minix.c: Likewise.
30175 * fs/sfs.c: Likewise.
30176 * fs/ufs.c: Likewise.
30177 * fs/xfs.c: Likewise.
30178 * hello/hello.c: Likewise.
30179 * include/grub/acorn_filecore.h: Likewise.
30180 * include/grub/arg.h: Likewise.
30181 * include/grub/bitmap.h: Likewise.
30182 * include/grub/boot.h: Likewise.
30183 * include/grub/cache.h: Likewise.
30184 * include/grub/device.h: Likewise.
30185 * include/grub/disk.h: Likewise.
30186 * include/grub/dl.h: Likewise.
30187 * include/grub/elfload.h: Likewise.
30188 * include/grub/env.h: Likewise.
30189 * include/grub/err.h: Likewise.
30190 * include/grub/file.h: Likewise.
30191 * include/grub/font.h: Likewise.
30192 * include/grub/fs.h: Likewise.
30193 * include/grub/fshelp.h: Likewise.
30194 * include/grub/gzio.h: Likewise.
30195 * include/grub/hfs.h: Likewise.
30196 * include/grub/kernel.h: Likewise.
30197 * include/grub/loader.h: Likewise.
30198 * include/grub/lvm.h: Likewise.
30199 * include/grub/misc.h: Likewise.
30200 * include/grub/mm.h: Likewise.
30201 * include/grub/net.h: Likewise.
30202 * include/grub/normal.h: Likewise.
30203 * include/grub/parser.h: Likewise.
30204 * include/grub/partition.h: Likewise.
30205 * include/grub/pc_partition.h: Likewise.
30206 * include/grub/raid.h: Likewise.
30207 * include/grub/rescue.h: Likewise.
30208 * include/grub/script.h: Likewise.
30209 * include/grub/setjmp.h: Likewise.
30210 * include/grub/symbol.h: Likewise.
30211 * include/grub/term.h: Likewise.
30212 * include/grub/terminfo.h: Likewise.
30213 * include/grub/tparm.h: Likewise.
30214 * include/grub/types.h: Likewise.
30215 * include/grub/video.h: Likewise.
30216 * include/grub/efi/api.h: Likewise.
30217 * include/grub/efi/chainloader.h: Likewise.
30218 * include/grub/efi/console.h: Likewise.
30219 * include/grub/efi/console_control.h: Likewise.
30220 * include/grub/efi/disk.h: Likewise.
30221 * include/grub/efi/efi.h: Likewise.
30222 * include/grub/efi/pe32.h: Likewise.
30223 * include/grub/efi/time.h: Likewise.
30224 * include/grub/i386/linux.h: Likewise.
30225 * include/grub/i386/setjmp.h: Likewise.
30226 * include/grub/i386/types.h: Likewise.
30227 * include/grub/i386/efi/kernel.h: Likewise.
30228 * include/grub/i386/efi/loader.h: Likewise.
30229 * include/grub/i386/efi/time.h: Likewise.
30230 * include/grub/i386/pc/biosdisk.h: Likewise.
30231 * include/grub/i386/pc/boot.h: Likewise.
30232 * include/grub/i386/pc/chainloader.h: Likewise.
30233 * include/grub/i386/pc/console.h: Likewise.
30234 * include/grub/i386/pc/init.h: Likewise.
30235 * include/grub/i386/pc/kernel.h: Likewise.
30236 * include/grub/i386/pc/loader.h: Likewise.
30237 * include/grub/i386/pc/memory.h: Likewise.
30238 * include/grub/i386/pc/multiboot.h: Likewise.
30239 * include/grub/i386/pc/serial.h: Likewise.
30240 * include/grub/i386/pc/time.h: Likewise.
30241 * include/grub/i386/pc/vbe.h: Likewise.
30242 * include/grub/i386/pc/vbeblit.h: Likewise.
30243 * include/grub/i386/pc/vbefill.h: Likewise.
30244 * include/grub/i386/pc/vbeutil.h: Likewise.
30245 * include/grub/i386/pc/vga.h: Likewise.
30246 * include/grub/ieee1275/ieee1275.h: Likewise.
30247 * include/grub/ieee1275/ofdisk.h: Likewise.
30248 * include/grub/powerpc/libgcc.h: Likewise.
30249 * include/grub/powerpc/setjmp.h: Likewise.
30250 * include/grub/powerpc/types.h: Likewise.
30251 * include/grub/powerpc/ieee1275/biosdisk.h: Likewise.
30252 * include/grub/powerpc/ieee1275/console.h: Likewise.
30253 * include/grub/powerpc/ieee1275/ieee1275.h: Likewise.
30254 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
30255 * include/grub/powerpc/ieee1275/loader.h: Likewise.
30256 * include/grub/powerpc/ieee1275/multiboot.h: Likewise.
30257 * include/grub/powerpc/ieee1275/time.h: Likewise.
30258 * include/grub/powerpc/ieee1275/util/biosdisk.h: Likewise.
30259 * include/grub/sparc64/libgcc.h: Likewise.
30260 * include/grub/sparc64/setjmp.h: Likewise.
30261 * include/grub/sparc64/types.h: Likewise.
30262 * include/grub/sparc64/ieee1275/console.h: Likewise.
30263 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
30264 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
30265 * include/grub/sparc64/ieee1275/time.h: Likewise.
30266 * include/grub/util/biosdisk.h: Likewise.
30267 * include/grub/util/getroot.h: Likewise.
30268 * include/grub/util/lvm.h: Likewise.
30269 * include/grub/util/misc.h: Likewise.
30270 * include/grub/util/raid.h: Likewise.
30271 * include/grub/util/resolve.h: Likewise.
30272 * io/gzio.c: Likewise.
30273 * kern/device.c: Likewise.
30274 * kern/disk.c: Likewise.
30275 * kern/dl.c: Likewise.
30276 * kern/elf.c: Likewise.
30277 * kern/env.c: Likewise.
30278 * kern/err.c: Likewise.
30279 * kern/file.c: Likewise.
30280 * kern/fs.c: Likewise.
30281 * kern/loader.c: Likewise.
30282 * kern/main.c: Likewise.
30283 * kern/misc.c: Likewise.
30284 * kern/mm.c: Likewise.
30285 * kern/parser.c: Likewise.
30286 * kern/partition.c: Likewise.
30287 * kern/rescue.c: Likewise.
30288 * kern/term.c: Likewise.
30289 * kern/efi/efi.c: Likewise.
30290 * kern/efi/init.c: Likewise.
30291 * kern/efi/mm.c: Likewise.
30292 * kern/i386/dl.c: Likewise.
30293 * kern/i386/efi/init.c: Likewise.
30294 * kern/i386/efi/startup.S: Likewise.
30295 * kern/i386/pc/init.c: Likewise.
30296 * kern/i386/pc/lzo1x.S: Likewise.
30297 * kern/i386/pc/startup.S: Likewise.
30298 * kern/ieee1275/ieee1275.c: Likewise.
30299 * kern/powerpc/cache.S: Likewise.
30300 * kern/powerpc/dl.c: Likewise.
30301 * kern/powerpc/ieee1275/cmain.c: Likewise.
30302 * kern/powerpc/ieee1275/crt0.S: Likewise.
30303 * kern/powerpc/ieee1275/init.c: Likewise.
30304 * kern/powerpc/ieee1275/openfw.c: Likewise.
30305 * kern/sparc64/cache.S: Likewise.
30306 * kern/sparc64/dl.c: Likewise.
30307 * kern/sparc64/ieee1275/init.c: Likewise.
30308 * kern/sparc64/ieee1275/openfw.c: Likewise.
30309 * loader/efi/chainloader.c: Likewise.
30310 * loader/efi/chainloader_normal.c: Likewise.
30311 * loader/i386/efi/linux.c: Likewise.
30312 * loader/i386/efi/linux_normal.c: Likewise.
30313 * loader/i386/pc/chainloader.c: Likewise.
30314 * loader/i386/pc/chainloader_normal.c: Likewise.
30315 * loader/i386/pc/linux.c: Likewise.
30316 * loader/i386/pc/linux_normal.c: Likewise.
30317 * loader/i386/pc/multiboot.c: Likewise.
30318 * loader/i386/pc/multiboot_normal.c: Likewise.
30319 * loader/powerpc/ieee1275/linux.c: Likewise.
30320 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
30321 * normal/arg.c: Likewise.
30322 * normal/cmdline.c: Likewise.
30323 * normal/command.c: Likewise.
30324 * normal/completion.c: Likewise.
30325 * normal/execute.c: Likewise.
30326 * normal/function.c: Likewise.
30327 * normal/lexer.c: Likewise.
30328 * normal/main.c: Likewise.
30329 * normal/menu.c: Likewise.
30330 * normal/menu_entry.c: Likewise.
30331 * normal/misc.c: Likewise.
30332 * normal/parser.y: Likewise.
30333 * normal/script.c: Likewise.
30334 * normal/i386/setjmp.S: Likewise.
30335 * normal/powerpc/setjmp.S: Likewise.
30336 * normal/sparc64/setjmp.S: Likewise.
30337 * partmap/acorn.c: Likewise.
30338 * partmap/amiga.c: Likewise.
30339 * partmap/apple.c: Likewise.
30340 * partmap/gpt.c: Likewise.
30341 * partmap/pc.c: Likewise.
30342 * partmap/sun.c: Likewise.
30343 * term/gfxterm.c: Likewise.
30344 * term/terminfo.c: Likewise.
30345 * term/efi/console.c: Likewise.
30346 * term/i386/pc/console.c: Likewise.
30347 * term/i386/pc/serial.c: Likewise.
30348 * term/i386/pc/vesafb.c: Likewise.
30349 * term/i386/pc/vga.c: Likewise.
30350 * term/ieee1275/ofconsole.c: Likewise.
30351 * util/biosdisk.c: Likewise.
30352 * util/console.c: Likewise.
30353 * util/genmoddep.c: Likewise.
30354 * util/getroot.c: Likewise.
30355 * util/grub-emu.c: Likewise.
30356 * util/grub-mkdevicemap.c: Likewise.
30357 * util/grub-probe.c: Likewise.
30358 * util/lvm.c: Likewise.
30359 * util/misc.c: Likewise.
30360 * util/raid.c: Likewise.
30361 * util/resolve.c: Likewise.
30362 * util/update-grub.in: Likewise.
30363 * util/update-grub_lib.in: Likewise.
30364 * util/grub.d/00_header.in: Likewise.
30365 * util/grub.d/10_hurd.in: Likewise.
30366 * util/grub.d/10_linux.in: Likewise.
30367 * util/i386/efi/grub-install.in: Likewise.
30368 * util/i386/efi/grub-mkimage.c: Likewise.
30369 * util/i386/pc/grub-install.in: Likewise.
30370 * util/i386/pc/grub-mkimage.c: Likewise.
30371 * util/i386/pc/grub-mkrescue.in: Likewise.
30372 * util/i386/pc/grub-setup.c: Likewise.
30373 * util/i386/pc/misc.c: Likewise.
30374 * util/powerpc/ieee1275/grub-install.in: Likewise.
30375 * util/powerpc/ieee1275/grub-mkimage.c: Likewise.
30376 * util/powerpc/ieee1275/misc.c: Likewise.
30377 * video/bitmap.c: Likewise.
30378 * video/video.c: Likewise.
30379 * video/i386/pc/vbe.c: Likewise.
30380 * video/i386/pc/vbeblit.c: Likewise.
30381 * video/i386/pc/vbefill.c: Likewise.
30382 * video/i386/pc/vbeutil.c: Likewise.
30383 * video/readers/tga.c: Likewise.
30384
3572d015 303852007-07-02 Robert Millan <rmh@aybabtu.com>
30386
30387 * conf/i386-efi.rmk: Replace obsolete reference to
30388 util/i386/pc/biosdisk.c with util/biosdisk.c, and util/i386/pc/getroot.c
30389 with util/getroot.c.
30390 * conf/powerpc-ieee1275.rmk: Likewise.
30391 * conf/sparc64-ieee1275.rmk: Likewise.
30392
30393 * util/grub-emu.c (main): Fix unchecked pointer handling.
30394
2c2a681b 303952007-07-02 Robert Millan <rmh@aybabtu.com>
30396
30397 * util/i386/efi/grub-install.in: Allow `grub_probe --target=partmap'
30398 invocation to fail, in order to support partition-less media.
30399
30400 * util/i386/pc/grub-install.in: Likewise.
30401
30402 * util/powerpc/ieee1275/grub-install.in: Use grub-probe to determine
30403 which fs or partmap modules are needed (akin to its sister scripts).
30404
30405 Also use grub-probe to get rid of unportable /proc/mounts check.
30406
30407 Print the same informational message that the other scripts do, before
fe6b695a 30408 exiting.
2c2a681b 30409
6193defe 304102007-06-23 Robert Millan <rmh@aybabtu.com>
30411
fe6b695a 30412 * util/update-grub_lib.in (font_path): New function. Determine whether
6193defe 30413 a font file can be found and, if so, echo the GRUB path to it.
30414
30415 * util/update-grub.in: Handle multiple terminals depending on user
30416 input, platform availability and font file presence. Propagate
30417 variables of our findings to /etc/grub.d/ children.
30418
30419 * util/grub.d/00_header.in: Handle multiple terminals, based on
30420 environment setup by update-grub.
30421
eface1dc 304222007-06-23 Robert Millan <rmh@aybabtu.com>
30423
ba50d28f 30424 * conf/i386-pc.rmk (pkgdata_MODULES): Add serial.mod.
eface1dc 30425
bf697e28 304262007-06-21 Robert Millan <rmh@aybabtu.com>
30427
30428 * include/grub/i386/pc/kernel.h: Define GRUB_KERNEL_MACHINE_DATA_END to
30429 indicate end of data section in kernel image.
30430 * include/grub/i386/efi/kernel.h: Define GRUB_KERNEL_MACHINE_PREFIX and
30431 GRUB_KERNEL_MACHINE_DATA_END.
30432
30433 * kern/i386/pc/startup.S: Do not initialize grub_prefix, only reserve
30434 space for it.
30435 * kern/i386/efi/startup.S: Likewise.
30436
30437 * util/i386/pc/grub-mkimage.c: Initialize grub_prefix to /boot/grub
30438 during image generation. Implement --prefix option to override this
30439 patch.
30440 * util/i386/efi/grub-mkimage.c: Likewise.
30441
30442 * util/update-grub_lib.in (convert_system_path_to_grub_path): Split
30443 code to make path relative to its root into a separate function.
30444
30445 * util/i386/pc/grub-install.in: Use newly provided
30446 make_system_path_relative_to_its_root() to convert ${grubdir}, then
30447 pass the result to grub-install --prefix.
30448
baa574b4 304492007-06-13 Robert Millan <rmh@aybabtu.com>
30450
30451 * include/grub/util/misc.h: Define DEFAULT_DIRECTORY and
30452 DEFAULT_DEVICE_MAP.
30453 * util/grub-emu.c: Use above definitions from misc.h instead of
30454 defining them.
30455 * util/grub-mkdevicemap.c: Likewise.
30456 * util/i386/pc/grub-setup.c: Likewise.
30457 * util/grub-probe.c: Likewise.
30458 (probe): Abort with grub_util_error() when either
30459 grub_guess_root_device or grub_util_get_grub_dev fails.
30460
0215dcbf 304612007-06-12 Robert Millan <rmh@aybabtu.com>
30462
30463 * normal/command.c (grub_command_execute): Use NULL rather than 0 for
30464 "pager" assignment.
30465 * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Likewise for
30466 "pcdata".
30467 * util/grub-probe.c (probe): Likewise for "drive_name".
30468
8af2ab7b 304692007-06-11 Robert Millan <rmh@aybabtu.com>
30470
30471 * util/i386/pc/grub-mkrescue.in: Pad both floppy images with zeroes,
30472 not just the cdrom one.
30473
59d31694 304742007-06-11 Robert Millan <rmh@aybabtu.com>
30475
30476 * util/i386/pc/grub-mkrescue.in: Add "set -e".
30477 Add --pkglibdir=DIR option to override pkglibdir.
30478 Mention --image-type=TYPE in help output.
30479 Fix --grub-mkimage (it was a no-op).
fe6b695a 30480 Abort gracefully when no parameter is given.
59d31694 30481
7ee367e4 304822007-06-11 Robert Millan <rmh@aybabtu.com>
30483
30484 * util/i386/pc/grub-mkrescue.in: New file.
30485 * conf/i386-pc.rmk: Add its build declarations. Put it in bin_SCRIPTS.
30486 * Makefile.in: Handle bin_SCRIPTS.
30487
29b0ed46 304882007-06-10 Vesa Jaaskelainen <chaac@nic.fi>
30489
30490 * term/gfxterm.c (grub_gfxterm_init): Added support for specifying
30491 list of video modes.
30492
c0f90770 304932007-06-06 Robert Millan <rmh@aybabtu.com>
30494
30495 * util/update-grub_lib.in (convert_system_path_to_grub_path): Abort if
30496 file doesn't exist, or if it is in a filesystem grub can't read.
30497
30498 * util/update-grub.in: Set fallback for GRUB_FS check to "unknown". Do
30499 not abort if GRUB_DRIVE could not be defined. Rearrange generated
30500 header comment to fit in 80 columns when the variables are resolved.
30501
30502 * util/grub.d/00_header.in: Only set root variable when GRUB_DRIVE
30503 could be identified by update-grub. Remove redundant check for
fe6b695a 30504 unifont.pff existence (since convert_system_path_to_grub_path now
c0f90770 30505 handles that).
30506
fb36dc26 305072007-06-04 Robert Millan <rmh@aybabtu.com>
30508
30509 * conf/i386-efi.rmk (grub_probe_SOURCES): Add partmap/apple.c.
30510
30511 * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise.
30512
30513 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add partmap/pc.c.
30514
0c68c93e 305152007-06-04 Robert Millan <rmh@aybabtu.com>
30516
30517 * conf/powerpc-ieee1275.rmk: Enable grub-mkdevicemap and grub-probe.
30518
30519 * include/grub/partition.h: Declare grub_apple_partition_map_init and
30520 grub_apple_partition_map_fini.
30521
30522 * util/biosdisk.c
30523 (grub_util_biosdisk_open): Replace BLKGETSIZE with BLKGETSIZE64 (needed
30524 to access >2 TiB disks).
30525
30526 Print disk->total_sectors with %llu instead of %lu, since this
30527 variable is always 64-bit (prevents wrong disk size from being displayed
30528 on either >2 TiB disk or big-endian CPU).
30529
30530 (grub_util_biosdisk_get_grub_dev): Convert gpt_partition_map handling
30531 into a generic case that supports all (sane) partition maps.
30532
30533 Stop using grub_cpu_to_le32() on dos_part / bsd_part since it actually
30534 breaks big-endian.
30535
30536 * util/grub-probe.c: Call grub_apple_partition_map_init() before probe()
30537 and grub_apple_partition_map_fini() after that.
30538
0f23eb74 305392007-06-01 Robert Millan <rmh@aybabtu.com>
30540
30541 * util/update-grub.in: Export GRUB_CMDLINE_LINUX.
30542
30543 * util/grub.d/00_header.in: Only enable gfxterm when
30544 convert_system_path_to_grub_path() succeeds.
30545
42c71976 305462007-05-20 Robert Millan <rmh@aybabtu.com>
30547
30548 * util/update-grub_lib.in: New file.
30549 * DISTLIST: Add update-grub_lib.in.
30550 * conf/common.rmk: Generate update-grub_lib and install it in
30551 $(lib_DATA).
30552 * Makefile.in: Add install routine for $(lib_DATA).
30553
30554 * util/grub.d/00_header.in: Use convert_system_path_to_grub_path()
30555 function provided by update-grub_lib to support arbitrary paths of
30556 unifont.pff.
30557 * util/update-grub.in: Use convert_system_path_to_grub_path() to
30558 initialize GRUB_DRIVE_BOOT and GRUB_DRIVE_BOOT_GRUB variables.
30559
5beb2291 305602007-05-19 Robert Millan <rmh@aybabtu.com>
30561
30562 * commands/i386/cpuid.c: New module.
30563 * DISTLIST: Add it.
30564 * conf/i386-efi.rmk: Enable cpuid.mod.
30565 * conf/i386-pc.rmk: Likewise.
30566
7262eca1 305672007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
30568
30569 * kern/disk.c (grub_disk_read): Check return value of
30570 grub_realloc().
30571
260ba823 305722007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
30573
30574 * util/getroot.c (grub_util_get_grub_dev): Support partitionable
30575 arrays.
30576 * disk/raid.c (grub_raid_open): Likewise.
30577
1ecb6cf2 305782007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
30579
30580 * util/biosdisk.c (linux_find_partition): Allocate real_dev on the
30581 stack instead of on the heap.
30582
30583 * kern/disk.c (grub_disk_read): Make sure tmp_buf is big enough
30584 before doing a read on it.
30585
30586 * configure.ac: Only use -fno-stack-protector for the target
30587 environment.
f19dbdb7 30588
21c8cbb1 305892007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
30590
30591 * video/i386/pc/vbe.c (grub_video_vbe_create_render_target): Add
30592 __attribute_ ((unused)) to mode_type argument.
30593
30594 * util/getroot.c (grub_guess_root_device): Fix #endif.
f19dbdb7 30595
21c8cbb1 30596 * kern/misc.c (memcmp): Fix prototype.
30597
30598 * include/grub/partition.h [GRUB_UTIL]
30599 (grub_gpt_partition_map_init): Add prototype.
30600 (grub_gpt_partition_map_fini): Likewise.
30601
30602 * fs/jfs.c (struct grub_jfs_inode): Put __attribute__ ((packed)
30603 at the right place.
30604
30605 * fs/fat.c (grub_fat_mount): Replace ~0UL with ~0U.
30606 (grub_fat_read_data): Likewise.
30607 (grub_fat_find_dir): Likewise.
30608
30609 * font/manager.c (find_glyph): Make table a const.
30610 (grub_font_get_glyph): Remove bitmap from if statement.
f19dbdb7 30611
849d55d3 306122007-05-16 Jeroen Dekkers <jeroen@dekkers.cx>
30613
30614 * util/getroot.c (grub_guess_root_device): Remove RAID and LVM
30615 code, first search for device in /dev/mapper, then in /dev.
30616 (grub_util_get_grub_dev): New function.
30617 * include/grub/util/getroot.h (grub_util_get_grub_dev): Add
30618 prototype.
30619 * util/grub-probe.c (probe): Remove check for RAID, call
30620 grub_util_get_grub_dev() instead of
30621 grub_util_biosdisk_get_grub_dev().
30622 * util/grub-emu.c (main): Call grub_util_get_grub_dev() instead of
30623 grub_util_biosdisk_get_grub_dev().
30624 * util/i386/pc/grub-setup.c (main): Likewise.
30625
8fff7c2f 306262007-05-16 Robert Millan <rmh@aybabtu.com>
30627
30628 * DISTLIST: Update for the latest changes.
30629 * conf/i386-pc.rmk: Use the new paths for util/getroot.c,
30630 util/grub-mkdevicemap.c, util/grub-probe.c and util/biosdisk.c.
30631 * util/grub-emu.c: Replace grub/i386/pc/util/biosdisk.h with
30632 grub/util/biosdisk.h.
30633 * util/i386/pc/grub-setup.c: Replace grub/machine/util/biosdisk.h with
30634 grub/util/biosdisk.h.
30635
48e12b52 306362007-05-16 Robert Millan <rmh@aybabtu.com>
30637
30638 * util/grub.d/00_header.in: Set default gfxmode to `640x480'.
30639
46b9d128 306402007-05-16 Robert Millan <rmh@aybabtu.com>
30641
30642 * util/i386/efi/grub-install.in: New.
30643 * conf/i386-efi.rmk: Enable grub-mkdevicemap, grub-probe and the
30644 newly added grub-install.
30645 * util/biosdisk.c: Remove unnecessary grub/machine/biosdisk.h
30646 include.
30647 * util/getroot.c: Replace grub/i386/pc/util/biosdisk.h with
30648 grub/util/biosdisk.h.
30649 * util/grub-probe.c: Replace grub/machine/util/biosdisk.h with
30650 grub/util/biosdisk.h.
30651
2d1a40a9 306522007-05-16 Robert Millan <rmh@aybabtu.com>
30653
30654 * include/grub/i386/pc/util/biosdisk.h: Moved to ...
30655 * include/grub/util/biosdisk.h: ... here.
30656 * util/i386/pc/biosdisk.c: Moved to ...
30657 * util/biosdisk.c: ... here.
30658 * util/i386/pc/getroot.c: Moved to ...
30659 * util/getroot.c: ... here.
30660 * util/i386/pc/grub-mkdevicemap.c: Moved to ...
30661 * util/grub-mkdevicemap.c: ... here.
30662 * util/i386/pc/grub-probe.c: Moved to ...
30663 * util/grub-probe.c: ... here.
30664
9e26e3bc 306652007-05-15 Robert Millan <rmh@aybabtu.com>
30666
30667 * util/update-grub.in: Remove duplicated line in grub.cfg header
30668 message.
30669
57f96397 306702007-05-13 Robert Millan <rmh@aybabtu.com>
30671
30672 * util/update-grub.in: Fix a few assumptions about the devices holding
30673 /, /boot and /boot/grub being the same.
30674 * util/grub.d/00_header.in: Likewise.
30675 * util/grub.d/10_hurd.in: Likewise.
30676 * util/grub.d/10_linux.in: Likewise.
30677
30678 * util/grub.d/10_linux.in: Implement Linux image sorting with arbitrary
30679 patterns. Use that to define the `.old' suffix as older than `'.
30680
30681 * util/grub.d/00_header.in: Set default gfxmode to `800x600x16'.
30682
30683 * util/update-grub.in: Add a reference to ${sysconfdir}/default/grub in
30684 the grub.cfg header message.
30685
2e610d62 306862007-05-11 Robert Millan <rmh@aybabtu.com>
30687
30688 * util/update-grub.in: Create device.map if it doesn't already exist,
30689 before attempting to run grub-probe.
30690 Check for grub-probe and grub-mkdevicemap with the same code
30691 grub-install is using.
30692 Remove test mode.
30693
3f6a10ef 306942007-05-09 Jeroen Dekkers <jeroen@dekkers.cx>
30695
30696 * Makefile.in: Add the datarootdir autoconf variable.
30697
02e7b75e 306982007-05-09 Robert Millan <rmh@aybabtu.com>
30699
30700 * util/i386/pc/grub-probe.c (probe): When detecting partition map,
f19dbdb7 30701 fail gracefully if dev->disk->partition == NULL.
02e7b75e 30702
75f396cc 307032007-05-07 Robert Millan <rmh@aybabtu.com>
30704
30705 * util/i386/pc/grub-probe.c: Add `grub-probe -t partmap' parameter to
30706 determine partition map module.
30707 * util/i386/pc/grub-install.in: Use this feature to decide which
30708 partition module to load, instead of hardcoding pc and gpt.
30709
da65cb36 307102007-05-07 Robert Millan <rmh@aybabtu.com>
30711
30712 * Makefile.in: Fix assumption that $(srcdir) has a trailing slash when
30713 source directory differs from build directory.
30714
b57d6a91 307152007-05-05 Robert Millan <rmh@aybabtu.com>
30716
30717 * util/powerpc/ieee1275/grub-install.in: Fix syntax error in pkglibdir
30718 initialisation.
30719
509d00f1 307202007-05-05 Robert Millan <rmh@aybabtu.com>
30721
30722 * util/update-grub.in: Create ${grub_prefix} if it doesn't exist.
30723
c48f23ef 307242007-05-05 Robert Millan <rmh@aybabtu.com>
30725
30726 * util/grub.d/10_linux.in: Allow the administrator to insert Linux
30727 command-line arguments via ${GRUB_CMDLINE_LINUX}.
30728
20b97658 307292007-05-05 Robert Millan <rmh@aybabtu.com>
30730
30731 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/gpt.c.
30732 (grub_probe_SOURCES): Likewise.
30733 * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): Detect
30734 GPT and initialize dos_part and bsd_part accordingly.
30735 * util/i386/pc/grub-setup.c (setup): Ditto for install_dos_part and
30736 install_bsd_part.
30737 (main): Activate gpt module for use during partition identification,
30738 and deactivate it afterwards.
30739 * util/i386/pc/grub-install.in: Add gpt module to core.img.
30740 * util/i386/pc/grub-probe.c (main): Activate gpt module for use during
30741 partition identification, and deactivate it afterwards.
30742
99123174 307432007-05-05 Robert Millan <rmh@aybabtu.com>
30744
30745 * term/i386/pc/console.c (grub_console_fini): Call
30746 grub_term_set_current() before grub_term_unregister().
30747
ebd97f6e 307482007-05-04 Robert Millan <rmh@aybabtu.com>
30749
30750 * DISTLIST: Add util/update-grub.in, util/grub.d/00_header.in,
30751 util/grub.d/10_hurd.in, util/grub.d/10_linux.in and util/grub.d/README.
30752 * Makefile.in: Build update-grub_SCRIPTS. Install update-grub_SCRIPTS
30753 and update-grub_DATA.
30754 * conf/common.rmk: Build and install update-grub components.
30755 * conf/common.mk: Regenerate.
30756 * util/update-grub.in: New. Core of update-grub.
30757 * util/grub.d/00_header.in: New. Generates grub.cfg header.
30758 * util/grub.d/10_hurd.in: New. Generates boot entries for the Hurd.
30759 * util/grub.d/10_linux.in: New. Generates boot entries for Linux.
30760 * util/grub.d/README: New. Document grub.d directory layout.
30761
b06a264d 307622007-05-01 Robert Millan <rmh@aybabtu.com>
30763
30764 * util/grub-emu.c: Move initialization functions
30765 grub_util_biosdisk_init() and grub_init_all() before
30766 grub_util_biosdisk_get_grub_dev(), which relies on them.
30767
41f0050e 307682007-04-19 Robert Millan <rmh@aybabtu.com>
30769
30770 * util/powerpc/ieee1275/grub-install.in: Initialize ${bindir}, since
30771 it is used later.
30772
04582bb3 307732007-04-18 Jerone Young <jerone@gmail.com>
30774
f19dbdb7 30775 * kernel/elf.c: Add missing parenthesis for conditional statement
04582bb3 30776 stanza.
30777
08db4632 307782007-04-10 Jerone Young <jerone@gmail.com>
49892fdf 30779
08db4632 30780 * util/i386/pc/getroot.c: Update so that if root device is /dev/root ,
30781 continue on and look for device node with real device name.
30782
801b76be 307832007-04-10 Jerone Young <jerone@gmail.com>
f19dbdb7 30784
fe6b695a 30785 * configure.ac: Add argument for autoconf to use transformation
1d543c3e 30786 ability.
30787 * Makefile.in: Add autoconf package transformation code.
30788 * util/i386/pc/grub-install.in: Likewise.
30789 * util/powerpc/ieee1275/grub-install.in: Likewise.
30790
6795c4e1 307912007-03-19 Yoshinori K. Okuji <okuji@enbug.org>
30792
30793 * fs/ext2.c (EXT2_GOOD_OLD_REVISION): New macro.
30794 (EXT2_GOOD_OLD_INODE_SIZE): Likewise.
30795 (EXT2_REVISION): Likewise.
30796 (EXT2_INODE_SIZE): Likewise.
30797 (struct grub_ext2_block_group): Added a missing member
30798 "used_dirs".
30799 (grub_ext2_read_inode): Divide by the inode size in a superblock
30800 instead of 128 to obtain INODES_PER_BLOCK.
30801 Use the macro EXT2_INODE_SIZE instead of directly using
30802 SBLOCK->INODE_SIZE.
30803
d70af616 308042007-03-18 Yoshinori K. Okuji <okuji@enbug.org>
30805
30806 * fs/ext2.c (grub_ext2_read_inode): Use the inode size in a
30807 superblock instead of the structure size to compute an
30808 offset. This fixes the problem that GRUB could not read a
30809 filesystem when inode size is different from 128-byte.
30810
3b801603 308112007-03-05 Marco Gerards <marco@gnu.org>
30812
30813 * normal/main.c (read_config_file): When "menu" is not set, create
30814 an initial context.
30815
4785bfe4 308162007-02-21 Hollis Blanchard <hollis@penguinppc.org>
30817
30818 * kern/powerpc/ieee1275/init.c (HEAP_SIZE): Removed.
30819 (HEAP_LIMIT): New macro.
30820 (grub_claim_heap): Claim memory up to `heaplimit'.
30821
a0cbb023 308222007-02-21 Hollis Blanchard <hollis@penguinppc.org>
30823
30824 * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Link at 64KB.
30825 * kern/powerpc/ieee1275/init.c (_end): Add declaration.
30826 (_start): Likewise.
30827 (grub_arch_modules_addr): Return address after `_end'.
30828 * util/powerpc/ieee1275/grub-mkimage.c: Include grub/misc.h.
30829 (load_modules): Use new parameter as `p_paddr' and `p_vaddr'.
30830 (add_segments): Calculate `_end' from phdr size and location.
30831 (ALIGN_UP): Moved to ...
30832 * include/grub/misc.h: here.
30833 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
30834 New macro.
30835 (GRUB_IEEE1275_MODULE_BASE): Removed.
30836
fd7d8eba 308372007-02-20 Hollis Blanchard <hollis@penguinppc.org>
30838
30839 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Correct
30840 loop boundary.
30841
9b09e6fc 308422007-02-20 Hollis Blanchard <hollis@penguinppc.org>
30843
30844 * include/grub/elfload.h (grub_elf32_load_hook_t): Return grub_err_t.
30845 All users updated.
30846 (grub_elf64_load_hook_t): Likewise.
30847 * kern/elf.c: Call `grub_error_push' before `grub_error'. Improve
30848 debug output.
30849
3ce27299 308502007-02-20 Hollis Blanchard <hollis@penguinppc.org>
30851
30852 * kern/mm.c: Update copyright.
30853 (grub_mm_debug): Correct syntax error.
30854 (grub_mm_dump_free): New function.
30855 (grub_debug_free): Call `grub_free'.
30856 * include/grub/mm.h: Update copyright.
30857 (grub_mm_dump_free): Add declaration.
30858
077d5fee 308592007-02-12 Hollis Blanchard <hollis@penguinppc.org>
30860
30861 * include/grub/ieee1275/ieee1275.h: Update copyright.
30862 * kern/powerpc/ieee1275/init.c: Likewise.
30863 * kern/powerpc/ieee1275/openfw.c: Likewise.
30864
30865 * loader/powerpc/ieee1275/linux.c: Likewise.
30866 * include/grub/elfload.h: Likewise.
30867 * kern/elf.c: Likewise.
30868 (grub_elf32_load): Pass `base' and `size' parameters. Update all
30869 callers.
30870 (grub_elf64_load): Likewise.
30871 (grub_elf32_load_segment): Move to a nested function.
30872 (grub_elf64_load_segment): Likewise.
30873
dc946850 308742007-02-12 Hollis Blanchard <hollis@penguinppc.org>
30875
30876 * include/grub/ieee1275/ieee1275.h (grub_available_iterate): New
30877 prototype.
30878 * kern/powerpc/ieee1275/init.c (grub_heap_start): Removed.
30879 (grub_heap_len): Likewise.
30880 (HEAP_SIZE): New macro.
30881 (grub_claim_heap): New function.
30882 (grub_machine_init): Don't claim heap directly. Call
30883 `grub_claim_heap'.
30884 * kern/powerpc/ieee1275/openfw.c: Include alloca.h.
30885 (grub_available_iterate): New function.
30886
baa2a121 308872007-02-03 Thomas Schwinge <tschwinge@gnu.org>
30888
30889 * aclocal.m4 (grub_CHECK_STACK_PROTECTOR): New definition.
30890 * configure.ac: Use it for testing the HOST and TARGET compilers.
30891
4fe9862e 308922006-12-13 Thomas Schwinge <tschwinge@gnu.org>
30893
30894 * Makefile.in (enable_grub_emu): New variable.
30895 * configure.ac (--enable-grub-emu): New option.
30896 Do the checks for (n)curses only if `--enable-grub-emu' is requested.
30897 * conf/i386-efi.rmk (sbin_UTILITIES): Add `grub-emu' only if requested.
30898 * conf/i386-pc.rmk: Likewise.
30899 * conf/powerpc-ieee1275.rmk: Likewise.
30900 * conf/sparc64-ieee1275.rmk (bin_UTILITIES): Likewise.
30901
a8aa5762 309022006-12-12 Marco Gerards <marco@gnu.org>
30903
30904 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_MENU'.
30905
30906 * kern/env.c (grub_env_unset): Don't free the member `value' when
30907 the type is GRUB_ENV_VAR_DATA, in this case it's a user defined
30908 pointer.
30909
30910 * normal/main.c (current_menu): Removed.
30911 (free_menu): Unset the `menu' environment variable.
30912 (grub_normal_menu_addentry): Make use of the environment variable
30913 `menu', instead of using the global `current_menu'. Allocate
30914 memory for the sourcecode of this entry.
30915 (read_config_file): New argument `nested', changed all callers.
30916 Only in the case of a new context, initialize a new menu. Set the
30917 `menu' environment variable.
30918 (grub_normal_execute): Don't set and unset the environment
30919 variable `menu' here anymore. Only free the menu when leaving the
30920 context.
30921
30922 * util/i386/pc/biosdisk.c (linux_find_partition): Fixed a memory
30923 leak.
30924
957b3a3e 309252006-12-11 Marco Gerards <marco@gnu.org>
30926
30927 * normal/menu_entry.c (run): Fix off by one bug so the last line
30928 is executed. Move the loader check to outside the loop.
30929
ef875714 309302006-12-08 Hollis Blanchard <hollis@penguinppc.org>
30931
30932 * kern/powerpc/ieee1275/cmain.c (cmain): Mark r3 and r4 as `UNUSED'.
30933
4e739985 309342006-11-25 Yoshinori K. Okuji <okuji@enbug.org>
30935
30936 * util/i386/pc/grub-mkimage.c (generate_image): Fix the offset of
30937 the number of sectors. Reported by Andrey Shuvikov
30938 <mr_hyro@yahoo.com>.
f19dbdb7 30939
790707f2 309402006-11-11 Jeroen Dekkers <jeroen@dekkers.cx>
30941
30942 * kern/disk.c (grub_disk_read): When there is a read error, always
30943 try to read only the necessary data.
f19dbdb7 30944
790707f2 30945 * conf/i386-pc.rmk (grub_probe_SOURCES): Add disk/lvm.c and
30946 disk/raid.c.
30947 * include/grub/disk.h [GRUB_UTIL] (grub_raid_init): New
30948 prototype.
30949 [GRUB_UTIL] (grub_raid_fini): Likewise.
30950 [GRUB_UTIL] (grub_lvm_init): Likewise.
f19dbdb7 30951 [GRUB_UTIL] (grub_lvm_fini): Likewise.
790707f2 30952 * util/i386/pc/grub-probe.c (probe): Check whether DEVICE_NAME is
30953 RAID device and copy DEVICE_NAME to DRIVE_NAME in that case.
30954 (main): Call grub_raid_init(), grub_lvm_init(), grub_lvm_fini()
30955 and grub_raid_fini().
f19dbdb7 30956
03e58196 309572006-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
30958
30959 * include/grub/types.h (__unused): Rename to UNUSED.
30960 * kern/elf.c (grub_elf32_size): Use UNUSED instead of __unused.
30961 (grub_elf64_size): Likewise.
f19dbdb7 30962
ae4f23bf 309632006-11-03 Hollis Blanchard <hollis@penguinppc.org>
30964
30965 * kern/elf.c (grub_elf_file): Call grub_file_seek. Call
30966 grub_error_push and grub_error_pop in the error-handling path.
30967 (grub_elf32_load_segment): Only call grub_file_read with non-zero
30968 length.
30969
2166cc83 309702006-11-03 Hollis Blanchard <hollis@penguinppc.org>
30971
30972 * conf/i386-efi.rmk (grub_emu_SOURCES): Add kern/elf.c.
30973 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
30974 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
30975 (kernel_elf_SOURCES): Likewise.
30976 * conf/i386-efi.rmk (kernel_mod_HEADERS): Add elfload.h and cache.h.
30977 * conf/i386-pc.rmk (kernel_mod_HEADERS): Likewise.
30978 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
30979 * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
30980 * conf/common.rmk (pkgdata_MODULES): Add elf.mod.
30981 (elf_mod_SOURCES): New variable.
30982 (elf_mod_CFLAGS): Likewise.
30983 (elf_mod_LDFLAGS): Likewise.
30984 * include/grub/types.h (__unused): New macro.
30985 * include/grub/elfload.h: New file.
30986 * kern/elf.c: Likewise.
30987 * loader/powerpc/ieee1275/linux.c: Include elfload.h.
30988 (ELF32_LOADMASK): New macro.
30989 (ELF64_LOADMASK): Likewise.
30990 (vmlinux): Removed.
30991 (grub_linux_load32): New function.
30992 (grub_linux_load64): Likewise.
30993 (grub_rescue_cmd_linux): Call grub_linux_load32 or grub_linux_load64.
30994 Use grub_elf_t instead of grub_file_t.
30995
a09d5aa5 309962006-11-02 Hollis Blanchard <hollis@penguinppc.org>
30997
30998 * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): Add
30999 `catch_result' to struct set_color_args.
31000
d976fc51 310012006-10-28 Yoshinori K. Okuji <okuji@enbug.org>
31002
31003 * normal/menu.c: Include grub/script.h.
31004 * normal/menu_entry.c: Likewise.
31005 * include/grub/normal.h: Do not include grub/script.h.
31006
67507549 310072006-10-27 Hollis Blanchard <hollis@penguinppc.org>
31008
31009 * kern/disk.c (grub_disk_read): Correct debug printf formatting.
31010
69203a99 310112006-10-27 Hollis Blanchard <hollis@penguinppc.org>
31012
31013 * kern/disk.c (grub_disk_open): Print debug messages when opening a
31014 disk.
31015 (grub_disk_close): Print debug messages when closing a disk.
31016 (grub_disk_read): Print debug messages when disk read fails.
31017 * kern/fs.c (grub_fs_probe): Print debug messages when detecting
31018 filesystem type.
31019 * kern/partition.c: Include misc.h.
31020 (grub_partition_iterate): Print debug messages when detecting
31021 partition type.
31022
e2b8278c 310232006-10-27 Hollis Blanchard <hollis@penguinppc.org>
31024
31025 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Return error if `status'
31026 is negative.
31027 * kern/ieee1275/ieee1275.c (IEEE1275_IHANDLE_INVALID): Change to 0.
31028
97b2f2ff 310292006-10-26 Hollis Blanchard <hollis@penguinppc.org>
31030
31031 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
31032 Reverse GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS test.
31033
6555d655 310342006-10-25 Jeroen Dekkers <jeroen@dekkers.cx>
31035
31036 * disk/lvm.c (grub_lvm_scan_device): Malloc sizeof(*lv) bytes
31037 instead of sizeof(lv). Patch by Michael Guntsche.
31038
4d42b77f 310392006-10-18 Jeroen Dekkers <jeroen@dekkers.cx>
31040
31041 * disk/lvm.c: Rename VGS to VG_LIST.
31042 (grub_lvm_iterate): Change VGS->LV to VG-LV.
31043 (grub_lvm_open): Likewise.
31044 Thanks to Michael Guntsche for finding this bug.
31045
5d74d927 310462006-10-15 Yoshinori K. Okuji <okuji@enbug.org>
31047
31048 * configure.ac (AC_INIT): Bumped to 1.95.
31049
a1bb27e4 310502006-10-14 Robert Millan <rmh@aybabtu.com>
31051
31052 * util/i386/pc/getroot.c (grub_guess_root_device): Don't compare os_dev
31053 with "/dev/.static/dev/md".
31054
e0994b8b 310552006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
31056
31057 * util/i386/pc/grub-probe.c (probe): Print DEVICE_NAME instead of
31058 DRIVE_NAME when grub_util_biosdisk_get_grub_dev fails. Open
31059 DRIVE_NAME instead of DEVICE_NAME. Make sure that DEVICE_NAME and
31060 DRIVE_NAME are always freed.
31061
31062 * util/i386/pc/biosdisk.c (make_device_name): Add one into
31063 DOS_PART, as a DOS partition is counted from one instead of zero
31064 now. Reported by Robert Millan.
31065
ddd5cee9 310662006-10-14 Robert Millan <rmh@aybabtu.com>
31067
31068 * util/i386/pc/getroot.c (grub_guess_root_device): Stop using
31069 grub_util_biosdisk_get_grub_dev to convert system device to GRUB device.
31070 * util/grub-emu.c (main): Use grub_util_biosdisk_get_grub_dev with the
31071 string returned by grub_guess_root_device.
31072 * util/i386/pc/grub-setup.c: Likewise.
31073 * util/i386/pc/grub-probefs.c: Likewise.
31074
31075 * util/i386/pc/grub-probefs.c: Rename to ...
31076 * util/i386/pc/grub-probe.c: ... this.
31077 * DISTLIST: Remove grub-probefs, add grub-probe.
31078 * conf/i386-efi.rmk: Likewise.
31079 * conf/i386-pc.rmk: Likewise.
31080 * util/i386/pc/grub-install.in: Likewise.
31081
31082 * util/i386/pc/grub-probe.c: Add --target=(fs|device|drive) option to
31083 choose which information we want to print.
31084
2b002173 310852006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
31086
31087 * DISTLIST: Added commands/echo.c, disk/lvm.c, disk/raid.c,
31088 include/grub/bitmap.h, include/grub/lvm.h, include/grub/raid.h,
31089 include/grub/i386/pc/vbeutil.h, include/grub/util/lvm.h,
31090 include/grub/util/raid.h, util/lvm.c, util/raid.c, video/bitmap.c,
31091 video/readers/tga.c and video/i386/pc/vbeutil.c.
31092
310932006-10-14 Jeroen Dekkers <jeroen@dekkers.cx>
31094
31095 Added support for RAID and LVM.
f19dbdb7 31096
2b002173 31097 * disk/lvm.c: New file.
31098 * disk/raid.c: Likewise.
31099 * include/grub/lvm.h: Likewise.
f19dbdb7 31100 * include/grub/raid.h: Likewise.
2b002173 31101 * include/grub/util/lvm.h: Likewise.
31102 * include/grub/util/raid.h: Likewise.
31103 * util/lvm.c: Likewise.
31104 * util/raid.c: Likewise.
31105
31106 * include/grub/disk.h (grub_disk_dev_id): Add
31107 GRUB_DISK_DEVICE_RAID_ID and GRUB_DISK_DEVICE_LVM_ID.
31108 (grub_disk_get_size): New prototype.
31109 * kern/disk.c (grub_disk_open): Check whether grub_partition_probe()
31110 returns a partition.
31111 (grub_disk_get_size): New function.
f19dbdb7 31112
2b002173 31113 * kern/i386/pc/init.c (make_install_device): Copy the prefix
31114 verbatim if grub_install_dos_part is -2.
31115
31116 * util/i386/pc/getroot.c (grub_guess_root_device): Support RAID
31117 and LVM devices.
31118
31119 * util/i386/pc/grub-setup.c (setup): New argument
31120 MUST_EMBED. Force embedding of GRUB when the argument is
31121 true. Close FILE before returning.
31122 (main): Add support for RAID and LVM.
f19dbdb7 31123
2b002173 31124 * conf/common.rmk: Add RAID and LVM modules.
31125 * conf/i386-pc.rmk (grub_setup_SOURCES): Add util/raid.c and
31126 util/lvm.c.
31127 (grub_emu_SOURCES): Add disk/raid.c and disk/lvm.c.
31128
31129 * kern/misc.c (grub_strstr): New function.
31130 * include/grub/misc.h (grub_strstr): New prototype.
31131
050548d0 311322006-10-10 Tristan Gingold <tristan.gingold@bull.net>
31133
31134 * include/grub/efi/api.h (GRUB_EFI_ERROR_CODE): Long constant.
31135
da849d2d 311362006-10-05 Tristan Gingold <tristan.gingold@bull.net>
31137
31138 * kern/misc.c (grub_strtoull): Guess the base only if not
31139 specified.
31140
97b2f2ff 311412006-10-01 Hollis Blanchard <hollis@penguinppc.org>
4f0acd39 31142
31143 * kern/powerpc/ieee1275/cmain.c (cmain): Remove incomplete Old World
31144 PowerMac support.
31145
97b2f2ff 311462006-10-01 Hollis Blanchard <hollis@penguinppc.org>
fba51f48 31147
31148 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Cast `size' to long.
31149
31150 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_next_property):
31151 Remove `flags' argument. All callers changed.
31152 * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_ROOT): Removed.
31153 (IEEE1275_IHANDLE_INVALID): New variable.
31154 (IEEE1275_CELL_INVALID): New variable.
31155 (grub_ieee1275_finddevice, grub_ieee1275_get_property,
31156 grub_ieee1275_get_property_length, grub_ieee1275_instance_to_package,
31157 grub_ieee1275_package_to_path, grub_ieee1275_instance_to_path,
31158 grub_ieee1275_peer, grub_ieee1275_child, grub_ieee1275_open,
31159 grub_ieee1275_claim, grub_ieee1275_set_property): Error-check return
31160 codes from Open Firmware. All callers updated.
31161 (grub_ieee1275_next_property): Directly return Open Firmware return
31162 code.
31163 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
31164 Standardize error checking from `grub_ieee1275_get_property'.
31165 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Rename
31166 `devalias' to `aliases'. Correct comments. Consolidate error paths.
31167
97b2f2ff 311682006-10-01 Hollis Blanchard <hollis@penguinppc.org>
cc6d3df3 31169
31170 * kern/ieee1275/ieee1275.c (grub_ieee1275_instance_to_path): Rename
31171 `instance_to_package_args' to `instance_to_path_args'.
31172
31173 * kern/powerpc/ieee1275/init.c (grub_machine_init): Use
31174 `grub_ieee1275_chosen'.
31175
31176 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Call
31177 `grub_ieee1275_interpret'.
31178
97b2f2ff 311792006-09-25 Hollis Blanchard <hollis@penguinppc.org>
02bb8acc 31180
31181 * util/powerpc/ieee1275/grub-mkimage.c: Include config.h.
31182
97b2f2ff 311832006-09-25 Hollis Blanchard <hollis@penguinppc.org>
663b72f0 31184
31185 * include/grub/powerpc/libgcc.h (__floatdisf): New prototype.
31186 (__cmpdi): Likewise.
31187
31188 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Pass 0 as
31189 `flags' to `grub_ieee1275_next_property'. Change `pathlen' to type
31190 `grub_ssize_t'.
31191
02bb8acc 31192 * kern/powerpc/ieee1275/cmain.c: Include grub/misc.h.
663b72f0 31193
31194 * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Change `actual'
31195 to type `grub_ssize_t'.
31196 (grub_rescue_cmd_linux): Cast -1 to `grub_off_t'.
31197
7f9a8531 311982006-09-22 Marco Gerards <marco@gnu.org>
31199
31200 * normal/script.c (grub_script_create_cmdmenu): Skip leading
31201 newlines.
31202
b5ef1102 312032006-09-22 Marco Gerards <marco@gnu.org>
31204
31205 * commands/echo.c: New file.
31206
31207 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/echo.c'.
31208
31209 * conf/common.rmk (echo_mod_SOURCES): New variable.
31210 (echo_mod_CFLAGS): Likewise.
31211 (echo_mod_LDFLAGS): Likewise.
31212
2cff3677 312132006-09-22 Marco Gerards <marco@gnu.org>
31214
31215 * normal/main.c (get_line): Malloc memory instead of using
31216 preallocated memory. Removed the arguments `cmdline' and
31217 `max_len'. Updated all callers.
31218
6ba4688b 312192006-09-22 Marco Gerards <marco@gnu.org>
31220
31221 * conf/i386-efi.rmk (grub_emu_DEPENDENCIES): New variable.
31222 (normal_mod_DEPENDENCIES): Likewise.
31223
31224 * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Likewise.
31225 (normal_mod_DEPENDENCIES): Likewise.
31226
31227 * conf/sparc64-ieee1275.rmk (normal_mod_DEPENDENCIES): Likewise.
31228
e02ac02c 312292006-09-22 Johan Rydberg <jrydberg@gnu.org>
31230
31231 * genmk.rb: Add DEPENDENCIES variables to modules, utilities, and
31232 programs.
31233 * conf/i386-pc.rmk (grub_emu_DEPENDENCIES): Declare.
31234 (normal_mod_DEPENDENCIES): Likewise.
31235 * conf/i386-pc.mk: Regenerate.
31236 * conf/i386-efi.mk: Likewise
31237 * conf/common.mk: Likewise.
31238 * conf/powerpc-ieee1275.mk: Likewise.
31239 * conf/sparc64-ieee1275.mk: Likewise.
f19dbdb7 31240
8d252e44 312412006-09-22 Robert Millan <rmh@aybabtu.com>
31242
31243 Sync with i386 version.
31244 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Remove grub-emu, add grub-mkimage.
31245 * conf/powerpc-ieee1275.rmk (sbin_UTILITIES): Remove grub-mkimage, add grub-emu.
31246
209bf7ac 312472006-09-21 Robert Millan <rmh@aybabtu.com>
31248
31249 Import from GRUB Legacy (lib/device.c):
31250 * util/i386/pc/grub-mkdevicemap.c (get_i2o_disk_name): New function.
31251 (init_device_map) [__linux__]: Add support for I2O devices.
31252
6b146090 312532006-09-14 Marco Gerards <marco@gnu.org>
31254
31255 * conf/i386-pc.rmk (COMMON_LDFLAGS): Use `-m32' instead of
31256 `-melf_i386'.
31257
e38600a8 312582006-09-14 Robert Millan <rmh@aybabtu.com>
2952da5d 31259
31260 * util/i386/pc/grub-install.in: Skip menu.lst when removing
31261 /boot/grub/*.lst.
78fa1790 31262
2952da5d 31263 * util/i386/pc/getroot.c: Don't recurse into dotdirs (e.g. ".static").
6b146090 31264
2952da5d 31265 * util/i386/pc/grub-mkdevicemap.c: Make sure the floppy device exists
31266 before adding it to device.map.
31267
01b82a64 312682006-08-15 Johan Rydberg <jrydberg@gnu.org>
31269
fe6b695a 31270 * genmk.rb: Let GCC generate dependencies the first time it
01b82a64 31271 compiles a file; using the -MD option.
31272 * conf/common.mk: Regenerate.
31273 * conf/i386-pc.mk: Likewise.
31274 * conf/i386-efi.mk: Likewise.
31275 * conf/powerpc-ieee1275.mk: Likewise.
31276 * conf/sparc64-ieee1275.mk: Likewise.
f19dbdb7 31277
1064790d 312782006-08-04 Yoshinori K. Okuji <okuji@enbug.org>
31279
31280 Move the prototypes of grub_setjmp and grub_longjmp to
31281 cpu/setjmp.h, so that each architecture may specify different
31282 attributes.
f19dbdb7 31283
1064790d 31284 * include/grub/i386/setjmp.h (grub_setjmp): New prototype.
31285 (grub_longjmp): Likewise.
31286 * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise..
31287 (grub_longjmp): Likewise.
31288 * include/grub/sparc64/setjmp.h (grub_setjmp): Likewise..
31289 (grub_longjmp): Likewise.
31290
31291 * include/grub/setjmp.h [!GRUB_UTIL] (grub_setjmp): Removed.
31292 [!GRUB_UTIL] (grub_longjmp): Removed.
31293
29dda3ed 312942006-08-01 Pelletier Vincent <subdino2004@yahoo.fr>
31295
31296 * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): IEEE1275
31297 "color!" method does not return any value.
31298
ad2a06ed 312992006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
31300
31301 * include/grub/bitmap.h: New file.
31302
31303 * include/grub/i386/pc/vbeutil.h: Likewise.
31304
31305 * video/bitmap.c: Likewise.
31306
31307 * video/readers/tga.c: Likewise.
31308
31309 * video/i386/pc/vbeutil.c: Likewise.
31310
31311 * commands/videotest.c: Code cleanup and updated to reflect to new
31312 video API.
31313
31314 * term/gfxterm.c: Likewise.
31315
31316 * video/video.c: Likewise.
31317
31318 * conf/i386-pc.rmk (pkgdata_MODULES): Added tga.mod and bitmap.mod.
31319 (vbe_mod_SOURCES): Added video/i386/pc/vbeutil.c.
31320 (bitmap_mod_SOURCES): New entry.
31321 (bitmap_mod_CFLAGS): Likewise.
31322 (bitmap_mod_LDFLAGS): Likewise.
31323 (tga_mod_SOURCES): Likewise.
31324 (tga_mod_CFLAGS): Likewise.
31325 (tga_mod_LDFLAGS): Likewise.
31326
31327 * include/grub/video.h (grub_video_blit_operators): New enum type.
31328 (grub_video_render_target): Changed as forward declaration and moved
31329 actual definition to be video driver specific.
31330 (grub_video_adapter.blit_bitmap): Added blitting operator.
31331 (grub_video_adapter.blit_render_target): Likewise.
31332 (grub_video_blit_bitmap): Likewise.
31333 (grub_video_blit_render_target): Likewise.
31334
31335 * include/grub/i386/pc/vbe.h (grub_video_render_target): Added
31336 driver specific render target definition.
31337 (grub_video_vbe_map_rgba): Added driver internal helper.
31338 (grub_video_vbe_unmap_color): Updated to use
31339 grub_video_i386_vbeblit_info.
31340 (grub_video_vbe_get_video_ptr): Likewise.
31341
31342 * include/grub/i386/pc/vbeblit.h
31343 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8): Updated to use
31344 grub_video_i386_vbeblit_info.
31345 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
31346 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
31347 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
31348 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
31349 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
31350 (grub_video_i386_vbeblit_index_index): Likewise.
31351 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): New blitter function.
31352 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
31353 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
31354 (grub_video_i386_vbeblit_blend): Added generic blitter for blend
31355 operator.
31356 (grub_video_i386_vbeblit_replace): Added generic blitter for replace
31357 operator.
31358
31359 * video/i386/pc/vbeblit.c: Updated to reflect changes on
31360 include/grub/i386/pc/vbeblit.h.
31361
31362 * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8):
31363 Updated to use grub_video_i386_vbeblit_info.
31364 (grub_video_i386_vbefill_R8G8B8): Likewise.
31365 (grub_video_i386_vbefill_index): Likewise.
31366 (grub_video_i386_vbefill): Added generic filler.
31367
31368 * video/i386/pc/vbefill.c: Updated to reflect changes on
31369 include/grub/i386/pc/vbefill.h.
31370
31371 * video/i386/pc/vbe.c (grub_video_vbe_get_video_ptr): Updated to use
31372 grub_video_i386_vbeblit_info.
31373 (grub_video_vbe_unmap_color): Likewise.
31374 (grub_video_vbe_blit_glyph): Likewise.
31375 (grub_video_vbe_scroll): Likewise.
31376 (grub_video_vbe_draw_pixel): Removed function.
31377 (grub_video_vbe_get_pixel): Likewise.
31378 (grub_video_vbe_fill_rect): Moved all blitters to vbefill.c and
31379 updated code to use it.
31380 (common_blitter): Added common blitter for render target and bitmap.
31381 (grub_video_vbe_blit_bitmap): Updated to use common_blitter.
31382 (grub_video_vbe_blit_render_target): Likewise.
31383
bc8c036d 313842006-07-30 Johan Rydberg <jrydberg@gnu.org>
31385
31386 * kern/efi/efi.c (grub_efi_set_text_mode): Assume console already
31387 is in text mode if there is no console control protocol instance
31388 available.
31389
684a8eff 313902006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
31391
31392 * include/grub/video.h: Code cleanup.
31393
31394 * include/grub/i386/pc/vbe.h: Likewise.
31395
31396 * video/i386/pc/vbe.c: Likewise.
31397
31398 * video/i386/pc/vbeblit.c: Likewise.
31399
31400 * video/i386/pc/vbefill.c: Likewise.
31401
31402 * video/video.c: Likewise. Also added more comments.
31403
5915059b 314042006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
31405
31406 * disk/i386/pc/biosdisk.c (struct grub_biosdisk_drp): Moved to ...
31407 (struct grub_biosdisk_dap): Likewise.
31408
31409 * include/grub/i386/pc/biosdisk.h: ... to here. Also corrected
31410 linkage settings for all functions.
31411
90ce5d56 314122006-07-12 Marco Gerards <marco@gnu.org>
31413
31414 * configure.ac (--enable-mm-debug): Fix typo.
31415
31416 * genkernsyms.sh.in: Use proper quoting for `CC'.
31417
43e7f879 314182006-07-02 Jeroen Dekkers <jeroen@dekkers.cx>
31419
31420 * conf/i386-pc.rmk (COMMON_ASFLAGS): Add "-m32".
31421 (normal_mod_ASFLAGS): Remove "-m32".
31422
4889bdec 314232006-06-14 Yoshinori K. Okuji <okuji@enbug.org>
31424
31425 * util/misc.c: Include config.h.
31426 [!HAVE_MEMALIGN]: Do not include malloc.h.
31427 (grub_memalign): Use posix_memalign, if present. Then, use
31428 memalign, if present. Otherwise, emit an error.
31429
31430 * util/grub-emu.c: Do not include malloc.h.
31431
31432 * include/grub/util/misc.h: Include unistd.h. This is required for
31433 FreeBSD, because off_t is defined in unistd.h. Reported by Harley
31434 D. Eades III <hde@foobar-qux.org>.
31435
31436 * configure.ac (AC_GNU_SOURCE): Added.
31437 (AC_CHECK_FUNCS): Check posix_memalign and memalign for the host
31438 type.
31439
fd39d4da 314402006-06-09 Yoshinori K. Okuji <okuji@enbug.org>
31441
31442 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Make sure that
31443 ADDR_MAX does not exceed GRUB_LINUX_INITRD_MAX_ADDRESS.
31444
b786f3b5 314452006-06-07 Jeroen Dekkers <jeroen@dekkers.cx>
31446
31447 * include/grub/types.h (grub_host_addr_t): Rename to
31448 grub_target_addr_t.
31449 (grub_host_off_t): Rename to grub_target_off_t.
31450 (grub_host_size_t): Rename to grub_target_size_t.
31451 (grub_host_ssize_t): Rename to grub_target_ssize_t.
31452 Refer to GRUB_TARGET_SIZEOF_VOID_P to define those variables.
31453
31454 * include/grub/kernel.h (struct grub_module_header): Change type
31455 of OFFSET to grub_target_off_t and type of SIZE to grub_target_size_t.
31456 (grub_module_info): Likewise.
f19dbdb7 31457
051988bb 314582006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
31459
31460 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): The conditional
31461 of checking LINUX_MEM_SIZE was reverse. Reported by Jesus
31462 Velazquez <jesus.velazquez@gmail.com>.
31463
deae281b 314642006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
31465
31466 Count partitions from 1 instead of 0 in the string representation
31467 of partitions. Still use 0-based internally.
f19dbdb7 31468
deae281b 31469 * partmap/sun.c (grub_sun_is_valid): A cosmetic change.
31470 (sun_partition_map_iterate): Use grub_partition_t instead of
31471 struct grub_partition *. Cast DESC->START_CYLINDER to
31472 grub_uint64_t after converting the endian.
31473 (sun_partition_map_probe): Subtract 1 for PARTNUM.
31474 (sun_partition_map_get_name): Add 1 to P->INDEX.
31475
31476 * partmap/pc.c (grub_partition_parse): Subtract 1 for
31477 PCDATA->DOS_PART.
31478 (pc_partition_map_get_name): Add 1 into PCDATA->DOS_PART.
31479
31480 * partmap/gpt.c (gpt_partition_map_iterate): Initialize PARTNO to
31481 zero instead of one.
31482 (gpt_partition_map_probe): Subtract 1 for PARTNUM.
31483 (gpt_partition_map_get_name): Add 1 into P->INDEX.
31484
31485 * partmap/apple.c (apple_partition_map_iterate): Change the type
31486 of POS to unsigned.
31487 (apple_partition_map_probe): Subtract 1 for PARTNUM.
31488 (apple_partition_map_get_name): Add 1 into P->INDEX.
31489
31490 * partmap/amiga.c (amiga_partition_map_iterate): Change the type
31491 of POS to unsigned.
31492 (amiga_partition_map_iterate): Cast NEXT to grub_off_t to
31493 calculate the offset of a partition.
31494 (amiga_partition_map_probe): Subtract 1 for PARTNUM.
31495 (amiga_partition_map_get_name): Add 1 into P->INDEX.
31496
31497 * partmap/acorn.c (acorn_partition_map_find): Change the type of
31498 SECTOR to grub_disk_addr_t.
31499 (acorn_partition_map_iterate): Likewise.
31500 (acorn_partition_map_probe): Subtract 1 for PARTNUM.
31501 Change the type of SECTOR to grub_disk_addr_t. Declare P on the
31502 top.
31503 (acorn_partition_map_get_name): Add 1 into P->INDEX.
31504
31505 * kern/i386/pc/init.c (make_install_device): Add 1 into
31506 GRUB_INSTALL_DOS_PART.
31507
31508 * fs/iso9660.c (grub_iso9660_mount): Fixed a reversed
31509 conditional.
31510
524a1e6a 315112006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
31512
31513 Clean up the code to support 64-bit addressing in disks and
31514 files. This change is not enough for filesystems yet.
f19dbdb7 31515
524a1e6a 31516 * util/i386/pc/grub-setup.c (struct boot_blocklist): Change the
31517 type of "start" to grub_uint64_t.
31518 (setup): Change the types of KERNEL_SECTOR and FIRST_SECTOR to
31519 grub_disk_addr_t * and grub_disk_addr_t. Fix the format string in
31520 save_first_sector and save_blocklists. Use grub_le_to_cpu64 to
31521 convert addresses.
31522
31523 * util/i386/pc/biosdisk.c (open_device): Change the type of SECTOR
31524 to grub_disk_addr_t.
31525
31526 * partmap/gpt.c (gpt_partition_map_iterate): Fix the format
31527 string.
31528
31529 * partmap/pc.c (pc_partition_map_iterate): Likewise.
31530
31531 * partmap/amiga.c (amiga_partition_map_iterate): Cast RDSK.MAGIC
31532 to char *.
31533
31534 * normal/script.c (grub_script_parse): Remove unused MEMFREE.
31535
31536 * normal/parser.y (YYLTYPE_IS_TRIVIAL): New macro.
31537
31538 * normal/lexer.c (grub_script_yyerror): Specify unused to LEX.
31539
31540 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf64): Cast -1
31541 to grub_off_t, to detect an error from grub_file_seek.
31542 (grub_multiboot_load_elf32): Likewise.
31543
31544 * kern/misc.c (grub_strtoul): Use grub_strtoull. Return the
31545 maximum unsigned long value when an overflow is detected.
31546 (grub_strtoull): New function.
31547 (grub_divmod64): Likewise.
31548 (grub_lltoa): use grub_divmod64.
31549
31550 * kern/fs.c (struct grub_fs_block): Change the type of "offset" to
31551 grub_disk_addr_t.
31552 (grub_fs_blocklist_open): Increase P if P is not NULL to advance
31553 the pointer to next character. Use grub_strtoull instead of
31554 grub_strtoul.
31555 (grub_fs_blocklist_read): Change the types of SECTOR, OFFSET and
31556 SIZE to grub_disk_addr_t, grub_off_t and grub_size_t,
31557 respectively.
31558
fe6b695a 31559 * kern/file.c (grub_file_read): Prevent an overflow of LEN, as the
524a1e6a 31560 return value is signed.
31561 (grub_file_seek): Change the type of OLD to grub_off_t. Do not
31562 test if OFFSET is less than zero, as OFFSET is unsigned now.
31563
31564 * kern/disk.c (struct grub_disk_cache): Change the type of
31565 "sector" to grub_disk_addr_t.
31566 (grub_disk_cache_get_index): Change the type of SECTOR to
31567 grub_disk_addr_t. Calculate the hash with SECTOR casted to
31568 unsigned after shifting.
31569 (grub_disk_cache_invalidate): Change the type of SECTOR to
31570 grub_disk_addr_t.
31571 (grub_disk_cache_unlock): Likewise.
31572 (grub_disk_cache_store): Likewise.
31573 (grub_disk_check_range): Change the types of SECTOR, OFFSET, SIZE,
31574 START and LEN to grub_disk_addr_t *, grub_off_t *, grub_size_t,
31575 grub_disk_addr_t and grub_uint64_t, respectively.
31576 (grub_disk_read): Use an unsigned variable REAL_OFFSET for the
31577 body, as the value of OFFSET is tweaked by
31578 grub_disk_check_range. Change the types of START_SECTOR, LEN and
31579 POS to grub_disk_addr_t, grub_size_t and grub_size_t,
31580 respectively.
31581 (grub_disk_write): Use an unsigned variable REAL_OFFSET for the
31582 body, as the value of OFFSET is tweaked by
31583 grub_disk_check_range. Change the types of LEN and N to
31584 grub_size_t.
31585
31586 * io/gzio.c (struct grub_gzio): Change the types of "data_offset"
31587 and "saved_offset" to grub_off_t.
31588 (test_header): Cast BUF to char *.
31589 (get_byte): Cast GZIO->DATA_OFFSET to grub_off_t. Cast GZIO->INBUF
31590 to char *.
31591 (grub_gzio_read): Change the types of OFFSET and SIZE to
31592 grub_off_t and grub_size_t, respectively.
31593
31594 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_FORCE_LBA):
31595 Removed.
31596 (GRUB_BOOT_MACHINE_BOOT_DRIVE): Changed to 0x4c.
31597 (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Changed to 0x40.
31598 (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Changed to 0x42.
31599 (GRUB_BOOT_MACHINE_DRIVE_CHECK): Changed to 0x4e.
31600 (GRUB_BOOT_MACHINE_LIST_SIZE): Increased to 12.
31601
31602 * include/grub/types.h (grub_off_t): Unconditionally set to
31603 grub_uint64_t.
31604 (grub_disk_addr_t): Changed to grub_uint64_t.
31605
31606 * include/grub/partition.h (struct grub_partition): Change the
31607 types of "start", "len" and "offset" to grub_disk_addr_t,
31608 grub_uint64_t and grub_disk_addr_t, respectively.
31609 (grub_partition_get_start): Return grub_disk_addr_t.
31610 (grub_partition_get_len): Return grub_uint64_t.
31611
31612 * include/grub/misc.h (grub_strtoull): New prototype.
31613 (grub_divmod64): Likewise.
31614
31615 * include/grub/fshelp.h (grub_fshelp_read_file): Change the types
31616 of SECTOR, LEN and FILESIZE to grub_disk_addr_t, grub_size_t and
31617 grub_off_t, respectively.
31618 All callers and references changed.
31619
31620 * include/grub/fs.h (struct grub_fs): Change the type of LEN to
31621 grub_size_t in "read".
31622 All callers and references changed.
31623
31624 * include/grub/file.h (struct grub_file): Change the types of
31625 "offset" and "size" to grub_off_t and grub_off_t,
31626 respectively. Change the type of SECTOR to grub_disk_addr_t in
31627 "read_hook".
31628 (grub_file_read): Change the type of LEN to grub_size_t.
31629 (grub_file_seek): Return grub_off_t. Change the type of OFFSET to
31630 grub_off_t.
31631 (grub_file_size): Return grub_off_t.
31632 (grub_file_tell): Likewise.
31633 All callers and references changed.
31634
31635 * include/grub/disk.h (struct grub_disk_dev): Change the types of
31636 SECTOR and SIZE to grub_disk_addr_t and grub_size_t in "read" and
31637 "write".
31638 (struct grub_disk): Change the type of "total_sectors" to
31639 grub_uint64_t. Change the type of SECTOR to grub_disk_addr_t in
f19dbdb7 31640 "read_hook".
524a1e6a 31641 (grub_disk_read): Change the types of SECTOR, OFFSET and SIZE to
31642 grub_disk_addr_t, grub_off_t and grub_size_t, respectively.
31643 (grub_disk_write): Likewise.
31644 All callers and references changed.
31645
31646 * fs/iso9660.c (grub_iso9660_susp_iterate): Cast parameters to
31647 char * for grub_strncmp to silence gcc.
31648 (grub_iso9660_mount): Likewise.
31649 (grub_iso9660_mount): Likewise.
31650 (grub_iso9660_read_symlink): Likewise. Also, remove the nonsense
31651 return statement.
31652 (grub_iso9660_iterate_dir): Likewise.
31653 (grub_iso9660_label): Cast DATA->VOLDESC.VOLNAME to char *.
31654
31655 * fs/hfs.c (grub_hfs_read_file): Change the types of SECTOR and
31656 LEN to grub_disk_addr_t and grub_size_t, respectively.
31657
31658 * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
31659
31660 * fs/jfs.c (grub_jfs_read_file): Likewise.
31661
31662 * fs/minix.c (grub_jfs_read_file): Likewise.
31663
31664 * fs/sfs.c (grub_jfs_read_file): Likewise.
31665
31666 * fs/ufs.c (grub_jfs_read_file): Likewise.
31667
31668 * fs/xfs.c (grub_jfs_read_file): Likewise.
31669
31670 * fs/fat.c (grub_fat_read_data): Change the types of SECTOR, LEN
31671 and SIZE to grub_disk_addr_t, grub_size_t and grub_size_t,
31672 respectively.
31673
31674 * fs/ext2.c (grub_ext2_read_block): When an error happens, set
31675 BLKNR to -1 instead of returning GRUB_ERRNO.
31676 (grub_ext2_read_file): Change the types of SECTOR and
31677 LEN to grub_disk_addr_t and grub_size_t, respectively.
31678
31679 * fs/affs.c (grub_affs_read_file): Change the types of SECTOR and
31680 LEN to grub_disk_addr_t and grub_size_t, respectively.
31681
31682 * font/manager.c (grub_font_get_glyph): Cast BITMAP to char * for
31683 grub_file_read.
31684
31685 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Fix the format
31686 string. Do not cast SECTOR explicitly.
31687
31688 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Change the type of
31689 TOTAL_SECTORS to grub_uint64_t. Do not mask DRP->TOTAL_SECTORS.
31690 (grub_biosdisk_rw): Change the types of SECTOR and SIZE to
31691 grub_disk_addr_t and grub_size_t, respectively. If the sector is
31692 over 2TB and LBA mode is not supported, raise an error.
31693 (get_safe_sectors): New function.
31694 (grub_biosdisk_read): Use get_safe_sectors.
31695 (grub_biosdisk_write): Likewise.
31696
31697 * disk/efi/efidisk.c (grub_efidisk_read): Fix the format string.
31698 (grub_efidisk_write): Likewise.
31699
31700 * disk/loopback.c (delete_loopback): Cosmetic changes.
31701 (grub_cmd_loopback): Likewise. Also, test NEWDEV->FILENAME
31702 correctly.
31703 (grub_loopback_open): Likewise.
31704 (grub_loopback_read): Likewise. Also, change the type of POS to
31705 grub_off_t, and fix the usage of grub_memset.
31706
31707 * commands/i386/pc/play.c: Include grub/machine/time.h.
31708
31709 * commands/ls.c (grub_ls_list_files): Use "llu" instead of "d" to
31710 print FILE->SIZE.
31711
31712 * commands/configfile.c: Include grub/env.h.
31713
31714 * commands/cmp.c (grub_cmd_cmp): Do not use ERR, but use
31715 GRUB_ERRNO directly instead. Change the type of POS to
31716 grub_off_t. Follow the coding standard.
31717
31718 * commands/blocklist.c: Include grub/partition.h.
31719 (grub_cmd_blocklist): Return an error if the underlying device is
31720 not a disk. Take the starting sector of a partition into account,
31721 if a partition is used.
31722
31723 * boot/i386/pc/diskboot.S (bootloop): Adapted to the new offset of
31724 a length field.
31725 (lba_mode): Support 64-bit addresses.
31726 (chs_mode): Likewise.
31727 (copy_buffer): Adapted to the new offsets of a length field and a
31728 segment field.
31729 (blocklist_default_start): Allocate 64-bit space.
31730
31731 * boot/i386/pc/boot.S (force_lba): Removed.
31732 (boot_drive): Moved to under KERNEL_SECTOR.
fe987087 31733 (kernel_sector): Moved to under KERNEL_SEGMENT. Allocate 64-bit
524a1e6a 31734 space.
31735 (real_start): Set %si earlier. Remove code for FORCE_LBA, since it
31736 is useless.
31737 (lba_mode): Refactored to support a 64-bit address. More size
31738 optimization.
31739 (setup_sectors): Likewise.
31740
53af98ad 317412006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
31742
31743 * DISTLIST: Added include/grub/i386/linux.h. Removed
31744 include/grub/i386/pc/linux.h
31745
31746 * configure.ac (AC_INIT): Bumped to 1.94.
31747
31748 * config.guess: Updated from gnulib.
31749 * config.sub: Likewise.
31750 * install-sh: Likewise.
31751 * mkinstalldirs: Likewise.
31752
b4c1940a 317532006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
31754
31755 * conf/common.rmk (grub_modules_init.lst): Depended on
31756 grub_emu_SOURCES, excluding grub_emu_init.c, instead of
31757 MODSRCFILES.
31758
31759 * genmk.rb (PModule::rule): Reverted the previous change.
31760
cfca1cfd 317612006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
31762
31763 * conf/common.rmk (grub_modules_init.lst): Depends on
31764 $(MODSRCFILES). Grep only the files in $(MODSRCFILES). Make sure
31765 that the target does not exist before producing.
31766 (grub_modules_init.h): Remove the target before generating.
31767 (grub_emu_init.c): Likewise.
31768
31769 * genmk.rb (PModule::rule): Add source files into MODSRCFILES.
31770
aa6d7826 317712006-05-31 Jeroen Dekkers <jeroen@dekkers.cx>
31772
31773 * configure.ac: Don't set host_m32 for x86_64. Also reset LIBS
31774 for the target-specific tests. Make sure that we also have the
31775 up-to-date target variables for those tests.
31776
26c607b9 317772006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
31778
31779 * genmk.rb (Image::rule): Prefix CFLAGS or ASFLAGS with TARGET_.
31780 (PModule::rule): Likewise.
31781
0162321a 317822006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
31783
31784 * genmk.rb (Image::rule): Set FLAG to CFLAGS or ASFLAGS instead of
31785 TARGET_CFLAGS or TARGET_ASFLAGS. There is no reason why
31786 target-specific flags should be prefixed.
31787 (PModule::rule): Likewise.
31788
6c826348 317892006-05-30 Yoshinori K. Okuji <okuji@enbug.org>
31790
31791 * configure.ac (CMP): Check if cmp is available explicitly.
31792
b977bf01 317932006-05-29 Yoshinori K. Okuji <okuji@enbug.org>
31794
31795 * util/powerpc/ieee1275/grub-install.in (host_cpu): Removed.
31796 (target_cpu): New variable.
31797 (pkglibdir): Use target_cpu instead of host_cpu.
f19dbdb7 31798
b977bf01 31799 * util/i386/pc/grub-install.in (host_cpu): Removed.
31800 (target_cpu): New variable.
31801 (pkglibdir): Use target_cpu instead of host_cpu.
31802
31803 * util/genmoddep.c: Removed.
f19dbdb7 31804
b977bf01 31805 * kern/efi/mm.c (filter_memory_map): Use GRUB_CPU_SIZEOF_VOID_P
31806 instead of GRUB_HOST_SIZEOF_VOID_P.
31807 * kern/dl.c: Likewise.
31808
31809 * include/grub/i386/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed to
31810 ...
31811 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
31812 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
31813 (GRUB_TARGET_SIZEOF_LONG): ... this.
31814 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
31815 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
31816 * include/grub/powerpc/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
31817 to ...
31818 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
31819 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
31820 (GRUB_TARGET_SIZEOF_LONG): ... this.
31821 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
31822 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
31823 * include/grub/sparc64/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
31824 to ...
31825 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
31826 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
31827 (GRUB_TARGET_SIZEOF_LONG): ... this.
31828 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
31829 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
31830
31831 * include/grub/types.h [!GRUB_UTIL] (GRUB_CPU_SIZEOF_VOID_P): Use
31832 GRUB_TARGET_SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P.
31833 [!GRUB_UTIL] (GRUB_CPU_SIZEOF_LONG): Use GRUB_TARGET_SIZEOF_LONG
31834 instead of GRUB_HOST_SIZEOF_LONG.
31835 [!GRUB_UTIL]: Refer to GRUB_TARGET_WORDS_BIGENDIAN instead of
31836 GRUB_HOST_WORDS_BIGENDIAN to define or undefine
31837 GRUB_CPU_WORDS_BIGENDIAN.
31838 Refer to SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P to
31839 define grub_host_addr_t, grub_host_off_t, grub_host_size_t and
31840 grub_host_ssize_t.
31841
31842 * conf/i386-efi.rmk (noinst_UTILITIES): Removed.
31843 (genmoddep_SOURCES): Likewise.
31844 * conf/i386-pc.rmk (noinst_UTILITIES): Likewise.
31845 (genmoddep_SOURCES): Likewise.
31846 * conf/conf/powerpc-ieee1275.rmk (noinst_UTILITIES): Likewise.
31847 (genmoddep_SOURCES): Likewise.
31848 * conf/conf/conf/sparc64-ieee1275.rmk (noinst_UTILITIES):
31849 Likewise.
31850 (genmoddep_SOURCES): Likewise.
31851
31852 * genmoddep.awk: New file.
31853
31854 * genmk.rb (Image::rule): Use TARGET_CC, TARGET_CPPFLAGS,
31855 TARGET_CFLAGS, TARGET_ASFLAGS and TARGET_LDFLAGS instead of CC,
31856 CPPFLAGS, CFLAGS, ASFLAGS and LDFLAGS, respectively.
31857 (PModule::rule): Likewise.
31858 (Program::rule): Likewise.
31859 (Utility::rule): Use CC, CPPFLAGS, CFLAGS and LDFLAGS instead of
31860 BUILD_CC, BUILD_CPPFLAGS, BUILD_CFLAGS and BUILD_LDFLAGS,
31861 respectively.
31862
31863 * configure.ac: Rewritten intensively to use host and target
31864 instead of build and host, respectively.
31865
31866 * Makefile.in (pkglibdir): Use target_cpu instead of host_cpu.
31867 (host_cpu): Removed.
31868 (target_cpu): New variable.
31869 (CPPFLAGS): Added @CPPFLAGS@ and -DGRUB_LIBDIR=\"$(pkglibdir)\".
31870 (BUILD_CC): Removed.
31871 (BUILD_CFLAGS): Likewise.
31872 (BUILD_CPPFLAGS): Likewise.
31873 (TARGET_CC): New variable.
31874 (TARGET_CFLAGS): Likewise.
31875 (TARGET_CPPFLAGS): Likewise.
31876 (TARGET_LDFLAGS): Likewise.
31877 (AWK): Likewise.
31878 (include): Use target_cpu instead of host_cpu.
31879 (moddep.lst:): Use genmoddep.awk instead of genmoddep.
f19dbdb7 31880
b977bf01 31881 * DISTLIST: Added genmoddep.awk. Removed util/genmoddep.c.
31882
f09771a1 318832006-05-29 Vesa Jaaskelainen <chaac@nic.fi>
31884
31885 * include/grub/script.h (grub_script_cmdif): Renamed field 'bool' to
31886 'exec_to_evaluate'. Renamed field 'true' to 'exec_on_true'. Renamed
31887 field 'false' to 'exec_on_false'.
31888 (grub_script_create_cmdif): Renamed argument names to reflect above
31889 changes.
31890
31891 * normal/execute.c (grub_script_execute_cmdif): Likewise.
31892
31893 * normal/script.c (grub_script_create_cmdif): Likewise.
31894
118f4fb3 318952006-05-28 Yoshinori K. Okuji <okuji@enbug.org>
31896
31897 * fs/hfsplus.c (grub_hfsplus_btree_recoffset): Moved to near the
31898 top.
31899 (grub_hfsplus_btree_recptr): Likewise.
31900 (grub_hfsplus_find_block): Do not take RETRY any longer. Use
31901 FILEBLOCK both to pass a block number and store next block
31902 number.
31903 (grub_hfsplus_read_block): Rewritten heavily to support an extent
31904 overflow file correctly. Specify errors appropriately, because
31905 fshelp expects that GRUB_ERRNO is set when fails. Reuse
31906 grub_hfsplus_btree_recptr to get the pointer to a found key.
31907 (grub_hfsplus_btree_search): Return 1 instead of 0 when no match
31908 is found.
31909
31910 * conf/i386-efi.rmk (pkgdata_MODULES): Added _linux.mod and
31911 linux.mod.
31912 (_linux_mod_SOURCES): New variable.
31913 (_linux_mod_CFLAGS): Likewise.
31914 (_linux_mod_LDFLAGS): Likewise.
31915 (linux_mod_SOURCES): Likewise.
31916 (linux_mod_CFLAGS): Likewise.
31917 (linux_mod_LDFLAGS): Likewise.
31918
31919 * DISTLIST: Added loader/i386/efi/linux.c,
31920 loader/i386/efi/linux_normal.c and
31921 include/grub/i386/efi/loader.h.
31922
31923 * loader/i386/efi/linux.c: New file.
31924 * loader/i386/efi/linux_normal.c: Likewise.
31925 * include/grub/i386/efi/loader.h: Likewise.
31926
89a7d726 319272006-05-27 Yoshinori K. Okuji <okuji@enbug.org>
31928
31929 * commands/blocklist.c: New file.
31930
31931 * DISTLIST: Added commands/blocklist.c.
31932
31933 * term/efi/console.c (grub_console_highlight_color): Use a lighter
43b553ad 31934 color for the background, and a darker color for the foreground.
89a7d726 31935 (grub_console_checkkey): Return READ_KEY.
31936 (grub_console_cls): Set the background to
31937 GRUB_EFI_BACKGROUND_BLACK temporarily to clean out the screen.
31938
31939 * kern/efi/efi.c (grub_efi_exit_boot_services): New function.
31940
31941 * include/grub/i386/linux.h (struct linux_kernel_params): Fixed
31942 the size of "padding5", "hd0_drive_info" and "hd1_drive_info".
31943
31944 * include/grub/efi/efi.h (grub_efi_exit_boot_services): New
31945 prototype.
31946
31947 * include/grub/efi/api.h (GRUB_EFI_TEXT_ATTR): Do not shift
31948 BG. The spec is wrong again.
31949
31950 * include/grub/normal.h [GRUB_UTIL] (grub_blocklist_init): New
31951 prototype.
31952 [GRUB_UTIL] (grub_blocklist_fini): Likewise.
31953
31954 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
31955 commands/blocklist.c.
31956 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
f19dbdb7 31957
89a7d726 31958 * conf/common.rmk (pkgdata_MODULES): Added blocklist.mod.
31959 (blocklist_mod_SOURCES): New variable.
31960 (blocklist_mod_CFLAGS): Likewise.
31961 (blocklist_mod_LDFLAGS): Likewise.
31962
75c8f258 319632006-05-20 Yoshinori K. Okuji <okuji@enbug.org>
31964
31965 * boot/i386/pc/boot.S (real_start): Set %si earlier to eliminate
31966 duplication.
31967 (lba_mode): Use %eax more intensively to reduce the code size.
31968
da2eb181 319692006-05-20 Marco Gerards <marco@gnu.org>
31970
31971 * normal/lexer.c (grub_script_yylex): Don't filter out newlines.
31972
31973 * normal/parser.y (commandblock): Defined as <cmd>. A subroutine
31974 for `menuentry'.
31975 (script): Accept leading newlines.
31976 (newlines): New rule to describe 0 or more newlines.
31977 (commands): Accept `command' with trailing newline. Fixed the
31978 order in which arguments were passed to `grub_script_add_cmd'.
31979 Accept commands separated by newlines.
31980 (function): Changed to accept newlines.
31981 (menuentry) Rewritten.
31982
31983 * normal/script.c (grub_script_create_cmdmenu): Add new entries in
31984 front of the list, instead of to the end.
31985
577b4050 319862006-05-19 Yoshinori K. Okuji <okuji@enbug.org>
31987
31988 * util/i386/pc/grub-install.in (bindir): New variable.
31989 (grub_mkimage): Use BINDIR instead of SBINDIR. Reported by Lee
31990 Shaver <lbgwjl@gmail.com>.
31991
0d6e1189 319922006-05-14 Yoshinori K. Okuji <okuji@enbug.org>
31993
31994 * kern/i386/pc/startup.S: Include grub/cpu/linux.h instead of
31995 grub/machine/linux.h
31996 * loader/i386/pc/linux.c: Likewise.
31997
31998 * include/grub/i386/pc/linux.h: Moved to ...
31999 * include/grub/i386/linux.h: ... here.
32000
32001 * include/grub/i386/linux.h (struct linux_kernel_params): New
32002 struct.
f19dbdb7 32003
31b86e9f 320042006-05-09 Vesa Jaaskelainen <chaac@nic.fi>
32005
32006 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Corrected bounds
32007 checking.
32008 (grub_video_vbe_blit_glyph): Likewise.
32009 (grub_video_vbe_blit_bitmap): Likewise.
32010 (grub_video_vbe_blit_render_target): Likewise.
32011
83b984de 320122006-05-09 Yoshinori K. Okuji <okuji@enbug.org>
32013
32014 * configure.ac (--with-platform): Properly quote the square
32015 brackets.
32016
5f0413bd 320172006-05-08 Marco Gerards <marco@gnu.org>
32018
32019 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Renamed from
32020 this...
32021 (kernel_elf_HEADERS): ...to this. Updated all users.
32022 (grubof_symlist.c): Renamed from this...
32023 (kernel_elf_symlist.c): ...to this. Updated all users.
32024 (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
32025 (grubof_SOURCES): Renamed from this...
32026 (kernel_elf_SOURCES): ...to this.
32027 (grubof_HEADERS): Renamed from this...
32028 (kernel_elf_HEADERS): ...to this.
32029 (grubof_CFLAGS): Renamed from this...
32030 (kernel_elf_CFLAGS): ...to this.
32031 (grubof_ASFLAGS): Renamed from this...
32032 (kernel_elf_ASFLAGS): ...to this.
32033 (grubof_LDFLAGS): Renamed from this...
32034 (kernel_elf_LDFLAGS): ...to this.
32035
32036 * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Renamed from
32037 this...
32038 (kernel_elf_HEADERS): ...to this. Updated all users.
32039 (grubof_symlist.c): Renamed from this...
32040 (kernel_elf_symlist.c): ...to this. Updated all users.
32041 (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
32042 (grubof_SOURCES): Renamed from this...
32043 (kernel_elf_SOURCES): ...to this.
32044 (grubof_HEADERS): Renamed from this...
32045 (kernel_elf_HEADERS): ...to this.
32046 (grubof_CFLAGS): Renamed from this...
32047 (kernel_elf_CFLAGS): ...to this.
32048 (grubof_ASFLAGS): Renamed from this...
32049 (kernel_elf_ASFLAGS): ...to this.
32050 (grubof_LDFLAGS): Renamed from this...
32051 (kernel_elf_LDFLAGS): ...to this.
32052
32053 * util/powerpc/ieee1275/grub-mkimage.c (add_segments): Use
32054 `kernel.elf' instead of `grubof'.
32055
05568c2e 320562006-05-08 Yoshinori K. Okuji <okuji@enbug.org>
32057
32058 Add --with-platform to configure. Use pkglibdir instead of
32059 pkgdatadir. This is reported by Roger Leigh.
32060
32061 * util/powerpc/ieee1275/grub-install.in (datadir): Removed.
32062 (host_vendor): Likewise.
32063 (host_os): Likewise.
32064 (pkgdatadir): Likewise.
32065 (platform): New variable.
32066 (pkglibdir): Likewise.
32067 Use PKGLIBDIR instead of PKGDATADIR.
f19dbdb7 32068
05568c2e 32069 * util/i386/pc/grub-install.in (datadir): Removed.
32070 (host_vendor): Likewise.
32071 (host_os): Likewise.
32072 (pkgdatadir): Likewise.
32073 (platform): New variable.
32074 (pkglibdir): Likewise.
32075 Use PKGLIBDIR instead of PKGDATADIR.
32076
32077 * util/powerpc/ieee1275/grub-mkimage.c (usage): Use GRUB_LIBDIR
32078 instead of GRUB_DATADIR.
32079 (main): Likewise.
32080 * util/i386/pc/grub-mkimage.c (usage): Likewise.
32081 (main): Likewise.
32082 * util/i386/efi/grub-mkimage.c (usage): Likewise.
32083 (main): Likewise.
32084
32085 * configure.ac (--with-platform): New option.
32086 Use PLATFORM instead of HOST_VENDOR to specify a platform.
32087
32088 * Makefile.in: Include a makefile based on PLATFORM instead of
32089 HOST_VENDOR.
32090 (pkgdatadir): Not appended by the machine type.
32091 (pkglibdir): Appended by the machine type.
32092 (host_vendor): Removed.
32093 (platform): New variable.
32094 (BUILD_CPPFLAGS): Specify GRUB_LIBDIR instead of GRUB_DATADIR.
32095 (install-local): Use PKGLIBDIR instead of PKGDATADIR.
32096 (uninstall): Likewise.
32097
4e93851c 320982006-05-07 Yoshinori K. Okuji <okuji@enbug.org>
32099
32100 Use the environment context in the menu. Remove the commands
32101 "default" and "timeout", and use variables instead.
f19dbdb7 32102
4e93851c 32103 * normal/menu.c: Include grub/env.h.
32104 (print_entry): Cast TITLE to silence gcc.
32105 (get_timeout): New function.
32106 (set_timeout): Likewise.
32107 (get_entry_number): Likewise.
32108 (run_menu): Use a default entry, a fallback entry and a timeout
32109 in the environment variables "default", "fallback" and
32110 "timeout". Also, tweak the default entry if it is not within the
32111 current menu entries.
32112 (grub_menu_run): Use a fallback entry in the environment variable
32113 "fallback".
32114
32115 * normal/main.c (read_config_file): Do not initialize
32116 NEWMENU->DEFAULT_ENTRY, NEWMENU->FALLBACK_ENTRY or
32117 NEWMENU->TIMEOUT.
32118 (grub_normal_execute): Use a data slot to store the menu.
32119
32120 * include/grub/normal.h (struct grub_menu): Removed default_entry,
32121 fallback_entry and timeout.
32122 (struct grub_menu_list): Removed.
32123 (grub_menu_list_t): Likewise.
32124 (struct grub_context): Likewise.
32125 (grub_context_t): Likewise.
32126 (grub_context_get): Likewise.
32127 (grub_context_get_current_menu): Likewise.
32128 (grub_context_push_menu): Likewise.
32129 (grub_context_pop_menu): Likewise.
32130 (grub_default_init): Likewise.
32131 (grub_default_fini): Likewise.
32132 (grub_timeout_init): Likewise.
32133 (grub_timeout_fini): Likewise.
32134
32135 * conf/sparc64-ieee1275.rmk (pkgdata_MODULES): Removed default.mod
32136 and timeout.mod.
32137 (normal_mod_SOURCES): Removed normal/context.c.
32138
32139 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Removed
32140 commands/default.c, commands/timeout.c and normal/context.c.
32141 (normal_mod_SOURCES): Removed normal/context.c.
32142
32143 * conf/i386-pc.rmk (grub_emu_SOURCES): Removed commands/default.c,
32144 commands/timeout.c and normal/context.c.
32145 (normal_mod_SOURCES): Removed normal/context.c.
32146
32147 * conf/i386-efi.rmk (grub_emu_SOURCES): Removed
32148 commands/default.c, commands/timeout.c and normal/context.c.
32149 (normal_mod_SOURCES): Removed normal/context.c.
32150
32151 * conf/common.rmk (pkgdata_MODULES): Removed default.mod and
32152 timeout.mod.
32153 (default_mod_SOURCES): Removed.
32154 (default_mod_CFLAGS): Likewise.
32155 (default_mod_LDFLAGS): Likewise.
32156 (timeout_mod_SOURCES): Removed.
32157 (timeout_mod_CFLAGS): Likewise.
32158 (timeout_mod_LDFLAGS): Likewise.
32159
32160 * DISTLIST: Removed commands/default.c, commands/timeout.c and
32161 normal/context.c.
32162
32163 * commands/default.c: Removed.
32164 * commands/timeout.c: Likewise.
32165 * normal/context.c: Likewise.
32166
1eb9cc1d 321672006-05-07 Vesa Jaaskelainen <chaac@nic.fi>
32168
32169 * kern/i386/pc/startup.S (grub_exit): Added missing .code32 tag.
32170
385bd9c1 321712006-05-02 Yoshinori K. Okuji <okuji@enbug.org>
32172
32173 * kern/env.c (struct grub_env_context): Removed "sorted". Renamed
32174 "next" to "prev" for readability.
32175 (struct grub_env_sorted_var): New struct.
32176 (grub_env_context): Renamed to ...
32177 (initial_context): ... this.
32178 (grub_env_var_context): Renamed to ...
32179 (current_context): ... this.
32180 (grub_env_find): Look only at CURRENT_CONTEXT.
32181 (grub_env_context_open): Rewritten to copy exported variables from
32182 previous context.
32183 (grub_env_context_close): Rewritten according to the new
32184 scheme. Also, add an assertion to prevent the initial context from
32185 removed.
32186 (grub_env_insert): Removed the code for the sorted list.
32187 (grub_env_remove): Likewise.
32188 (grub_env_export): Simply mark the variable with
32189 GRUB_ENV_VAR_GLOBAL.
32190 (grub_env_set): A cosmetic change for naming consistency.
32191 (grub_env_get): Likewise.
32192 (grub_env_unset): Likewise.
32193 (grub_env_iterate): Rewritten to sort variables within this
32194 function.
32195 (grub_register_variable_hook): Fixed for naming consistency. Call
32196 grub_env_find again, only if NAME is not found at the first time.
32197 (mangle_data_slot_name): New function.
32198 (grub_env_set_data_slot): Likewise.
32199 (grub_env_get_data_slot): Likewise.
32200 (grub_env_unset_data_slot): Likewise.
32201
32202 * include/grub/env.h (grub_env_var_type): New enum.
32203 (GRUB_ENV_VAR_LOCAL): New constant.
32204 (GRUB_ENV_VAR_GLOBAL): Likewise.
32205 (GRUB_ENV_VAR_DATA): Likewise.
32206 (struct grub_env_var): Removed "sort_next" and "sort_prevp". Added
32207 "type".
32208 (grub_env_set): Replace VAR with NAME for consistency.
32209 (grub_register_variable_hook): Likewise.
32210 (grub_env_export): Specify the name of the argument.
32211 (grub_env_set_data_slot): New prototype.
32212 (grub_env_get_data_slot): Likewise.
32213 (grub_env_unset_data_slot): Likewise.
32214
7f362539 322152006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
32216
32217 Extend the loader so that GRUB can accept a loader which comes
32218 back to GRUB when a loaded image exits. Also, this change adds
32219 support for a chainloader on EFI.
f19dbdb7 32220
7f362539 32221 * term/efi/console.c: Include grub/misc.h.
32222 (grub_console_checkkey): Display a scan code on the top for
32223 debugging. This will be removed once the EFI port gets stable.
32224 Correct the scan code mapping.
32225
32226 * kern/efi/mm.c (sort_memory_map): Sort in a descending order to
32227 allocate memory from larger regions, in order to reduce the number
32228 of allocated regions. Otherwise, the MacOSX loader panics.
32229 (filter_memory_map): Avoid less than 1MB for compatibility with
32230 other loaders.
32231 (add_memory_regions): Allocate from the tail of a region, if
32232 possible, to avoid allocating a region near to 1MB, for the MacOSX
32233 loader.
32234
32235 * kern/efi/init.c (grub_efi_set_prefix): Specify
32236 GRUB_EFI_IMAGE_HANDLE to grub_efi_get_loaded_image.
32237
32238 * kern/efi/efi.c (grub_efi_get_loaded_image): Accept a new
32239 argument IMAGE_HANDLE and specify it to get a loaded image.
32240 (grub_arch_modules_addr): Specify GRUB_EFI_IMAGE_HANDLE to
32241 grub_efi_get_loaded_image.
fe6b695a 32242 (grub_efi_get_filename): Divide the length by the size of
7f362539 32243 grub_efi_char16_t.
32244 (grub_efi_get_device_path): New function.
32245 (grub_efi_print_device_path): Print End Device Path nodes. Divide
32246 the length by the size of grub_efi_char16_t for a file path device
32247 path node.
32248
32249 * kern/loader.c (grub_loader_noreturn): New variable.
32250 (grub_loader_set): Accept a new argument NORETURN. Set
32251 GRUB_LOADER_NORETURN to NORETURN.
32252 All callers changed.
32253 (grub_loader_boot): If GRUB_LOADER_NORETURN is false, do not call
32254 grub_machine_fini.
32255
32256 * include/grub/efi/efi.h (grub_efi_get_device_path): New
32257 prototype.
32258 (grub_efi_get_loaded_image): Take an argument to specify an image
32259 handle.
32260
32261 * include/grub/loader.h (grub_loader_set): Added one more argument
32262 NORETURN.
32263
32264 * disk/efi/efidisk.c (make_devices): Use grub_efi_get_device_path
32265 instead of grub_efi_open_protocol.
32266 (grub_efidisk_get_device_name): Likewise.
32267 (grub_efidisk_close): Print a newline.
32268 (grub_efidisk_get_device_handle): Fixed to use
32269 GRUB_EFI_DEVICE_PATH_SUBTYPE instead of
32270 GRUB_EFI_DEVICE_PATH_TYPE.
32271
32272 * disk/efi/efidisk.c (device_path_guid): Moved to ...
32273 * kern/efi/efi.c (device_path_guid): ... here.
32274
32275 * conf/i386-efi.rmk (pkgdata_MODULES): Added _chain.mod and
32276 chain.mod.
32277 (kernel_mod_HEADERS): Added efi/disk.h.
32278 (_chain_mod_SOURCES): New variable.
32279 (_chain_mod_CFLAGS): Likewise.
32280 (_chain_mod_LDFLAGS): Likewise.
32281 (chain_mod_SOURCES): Likewise.
32282 (chain_mod_CFLAGS): Likewise.
32283 (chain_mod_LDFLAGS): Likewise.
32284
32285 * DISTLIST: Added include/grub/efi/chainloader.h,
32286 loader/efi/chainloader.c and loader/efi/chainloader_normal.c.
32287
32288 * include/grub/efi/chainloader.h: New file.
32289 * loader/efi/chainloader.c: Likewise.
32290 * loader/efi/chainloader_normal.c: Likewise.
32291
c0111d6e 322922006-04-30 Marco Gerards <marco@gnu.org>
32293
32294 * commands/configfile.c (grub_cmd_source): New function.
32295 (GRUB_MOD_INIT): Register the commands `source' and `.'.
32296 (GRUB_MOD_FINI): De-register the commands `source' and `.'.
32297
df5341da 322982006-04-30 Marco Gerards <marco@gnu.org>
32299
32300 * normal/execute.c (grub_script_execute_cmd): Change the return
32301 type to `grub_err_t'. Correctly return the error.
32302 (grub_script_execute_cmdline): In case a command line is not a
32303 command or a function, try to interpret it as an assignment.
32304
f85934bd 323052006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
32306
32307 * fs/hfsplus.c (grub_hfsplus_read_block): Fixed a memory leak.
32308 (grub_hfsplus_iterate_dir): Reordered to skip unknown nodes. Also,
32309 skip a node whose name is obviously invalid as UTF-16,
32310 i.e. contains a NUL character. Stop the iteration when the last
32311 directory entry is found. Instead of using the return value of
32312 grub_hfsplus_btree_iterate_node, store the value in RET and use
32313 it, because the iterator can be stopped by the last directory
32314 entry.
32315
8f8a2cf8 323162006-04-30 Marco Gerards <marco@gnu.org>
32317
32318 * include/grub/env.h (grub_env_export): New prototype. Reported
32319 by Jan C. Kleinsorge <jan.kleinsorge@udo.edu>.
32320
a27e84ce 323212006-04-30 Marco Gerards <marco@gnu.org>
32322
32323 * fs/hfsplus.c (grub_hfsplus_iterate_dir): Correctly calculate the
32324 size of the extents in a catalog file record.
32325
eaef0553 323262006-04-29 Marco Gerards <marco@gnu.org>
32327
32328 * commands/configfile.c (grub_cmd_configfile): Execute the
32329 configfile within its own context.
32330
32331 * include/grub/env.h (grub_env_context_open): New prototype.
32332 (grub_env_context_close): Likewise.
32333
32334 * kern/env.c (grub_env): Removed.
32335 (grub_env_sorted): Likewise.
32336 (grub_env_context): New variable.
32337 (grub_env_var_context): Likewise.
32338 (grub_env_find): Search both the active context and the global
32339 context.
32340 (grub_env_context_open): New function.
32341 (grub_env_context_close): Likewise.
32342 (grub_env_insert): Likewise.
32343 (grub_env_remove): Likewise.
32344 (grub_env_export): Likewise.
32345 (grub_env_set): Changed to use helper functions to avoid code
32346 duplication.
32347 (grub_env_iterate): Rewritten so both the current context and the
32348 global context are being used.
32349
32350 * normal/command.c (export_command): New function.
32351 (grub_command_init): Register the `export' function.
32352
7b455f4d 323532006-04-26 Yoshinori K. Okuji <okuji@enbug.org>
32354
32355 * util/i386/pc/grub-mkimage.c (compress_kernel): Cast arguments
32356 explicitly to suppress gcc's warnings.
32357 * fs/fat.c (grub_fat_find_dir): Likewise.
32358 (grub_fat_label): Likewise.
32359 * fs/xfs.c (grub_xfs_read_inode): Likewise.
32360 (grub_xfs_mount): Likewise.
32361 (grub_xfs_label): Likewise.
32362 * fs/affs.c (grub_affs_mount): Likewise.
32363 (grub_affs_label): Likewise.
32364 (grub_affs_iterate_dir): Likewise.
32365 * fs/sfs.c (grub_sfs_mount): Likewise.
32366 (grub_sfs_iterate_dir): Likewise.
32367 * fs/ufs.c (grub_ufs_lookup_symlink): Likewise.
32368 * fs/hfs.c (grub_hfs_mount): Likewise.
32369 (grub_hfs_cmp_catkeys): Likewise.
32370 (grub_hfs_find_dir): Likewise.
32371 (grub_hfs_dir): Likewise.
32372 (grub_hfs_label): Likewise.
32373 * fs/jfs.c (grub_jfs_mount): Likewise.
32374 (grub_jfs_opendir): Likewise.
32375 (grub_jfs_getent): Likewise.
32376 (grub_jfs_lookup_symlink): Likewise.
32377 (grub_jfs_label): Likewise.
32378 * fs/hfsplus.c (grub_hfsplus_cmp_catkey): Likewise.
32379 (grub_hfsplus_iterate_dir): Likewise.
32380 (grub_hfsplus_btree_iterate_node): Made static.
32381
32382 * util/grub-emu.c (prefix): New variable.
32383 (grub_machine_set_prefix): New function.
32384 (main): Do not set the environment variable "prefix" here. Only
32385 set PREFIX, which is used later by grub_machine_set_prefix.
32386
32387 * include/grub/video.h: Do not include grub/symbol.h.
32388 (grub_video_register): Not exported. This symbol is not defined in
32389 the kernel.
32390 (grub_video_unregister): Likewise.
32391 (grub_video_iterate): Likewise.
32392 (grub_video_setup): Likewise.
32393 (grub_video_restore): Likewise.
32394 (grub_video_get_info): Likewise.
32395 (grub_video_get_blit_format): Likewise.
32396 (grub_video_set_palette): Likewise.
32397 (grub_video_get_palette): Likewise.
32398 (grub_video_set_viewport): Likewise.
32399 (grub_video_get_viewport): Likewise.
32400 (grub_video_map_color): Likewise.
32401 (grub_video_map_rgb): Likewise.
32402 (grub_video_map_rgba): Likewise.
32403 (grub_video_fill_rect): Likewise.
32404 (grub_video_blit_glyph): Likewise.
32405 (grub_video_blit_bitmap): Likewise.
32406 (grub_video_blit_render_target): Likewise.
32407 (grub_video_scroll): Likewise.
32408 (grub_video_swap_buffers): Likewise.
32409 (grub_video_create_render_target): Likewise.
32410 (grub_video_delete_render_target): Likewise.
32411 (grub_video_set_active_render_target): Likewise.
32412
32413 * include/grub/symbol.h [GRUB_SYMBOL_GENERATOR] (EXPORT_FUNC):
32414 Undefined.
32415 [GRUB_SYMBOL_GENERATOR] (EXPORT_VAR): Likewise.
32416
32417 * conf/sparc64-ieee1275.rmk (grubof_symlist.c): Depended on
32418 config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh.
32419 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
32420 instead of $(srcdir)/genkernsyms.sh.
32421
32422 * conf/powerpc-ieee1275.rmk (grubof_symlist.c): Depended on
32423 config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh.
32424 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
32425 instead of $(srcdir)/genkernsyms.sh.
32426
32427 * conf/i386-pc.rmk (symlist.c): Depended on config.h. Use
32428 gensymlist.sh instead of $(srcdir)/gensymlist.sh.
32429 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
32430 instead of $(srcdir)/genkernsyms.sh.
32431
32432 * conf/i386-efi.rmk (symlist.c): Depended on config.h. Use
32433 gensymlist.sh instead of $(srcdir)/gensymlist.sh.
32434 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
32435 instead of $(srcdir)/genkernsyms.sh.
32436
32437 * configure.ac (AC_CONFIG_FILES): Added gensymlist.sh and
32438 genkernsyms.sh.
32439
32440 * Makefile.in (DISTCLEANFILES): Added gensymlist.sh and
32441 genkernsyms.sh.
32442 (gensymlist.sh): New target.
32443 (genkernsyms.sh): Likewise.
32444
32445 * DISTLIST: Removed genkernsyms.sh and gensymlist.sh. Added
32446 genkernsyms.sh.in and gensymlist.sh.in.
32447
32448 * genkernsyms.sh: Removed.
32449 * gensymlist.sh: Likewise.
f19dbdb7 32450
7b455f4d 32451 * genkernsyms.sh.in: New file.
32452 * gensymlist.sh.in: Likewise.
32453
1885bb27 324542006-04-25 Hollis Blanchard <hollis@penguinppc.org>
32455
32456 * kern/powerpc/ieee1275/init.c (grub_machine_set_prefix): Do not
32457 clobber "prefix", since we may have already set it manually.
32458
71538dff 324592006-04-25 Hollis Blanchard <hollis@penguinppc.org>
32460
32461 * kern/misc.c (abort): New alias for grub_abort.
32462
2965c7cc 324632006-04-25 Yoshinori K. Okuji <okuji@enbug.org>
32464
32465 A new machine-specific function "grub_machine_set_prefix" is
32466 defined. This is called after loading modules, so that a prefix
32467 initialization can use modules. Also, this change adds an
32468 intensive debugging feature for the memory manager via the
32469 configure option "--enable-mm-debug".
f19dbdb7 32470
2965c7cc 32471 * partmap/gpt.c (gpt_partition_map_iterate): Add one more into
32472 PART.LEN.
32473
32474 * kern/sparc64/ieee1275/init.c (abort): Removed.
32475 (grub_stop): Likewise.
32476 (grub_exit): New function.
32477 (grub_set_prefix): Renamed to ...
32478 (grub_machine_set_prefix): ... this.
32479 (grub_machine_init): Do not call grub_set_prefix.
32480
32481 * kern/powerpc/ieee1275/init.c (grub_set_prefix): Renamed to ...
32482 (grub_machine_set_prefix): ... this.
32483 (grub_machine_init): Do not call grub_set_prefix.
32484
32485 * kern/i386/pc/init.c (grub_machine_set_prefix): New function.
32486 (grub_machine_init): Do not set the prefix here.
32487
32488 * kern/i386/efi/init.c (grub_machine_set_prefix): New function.
32489
32490 * kern/efi/init.c: Include grub/mm.h.
32491 (grub_efi_set_prefix): New function.
32492
32493 * kern/efi/efi.c (grub_exit): Call grub_efi_fini.
32494 (grub_efi_get_filename): New function.
32495 (grub_print_device_path): Renamed to ...
32496 (grub_efi_print_device_path): ... this.
32497
32498 * kern/mm.c [MM_DEBUG] (grub_malloc): Undefined.
32499 [MM_DEBUG] (grub_realloc): Likewise.
32500 [MM_DEBUG] (grub_free): Likewise.
32501 [MM_DEBUG] (grub_memalign): Likewise.
32502 [MM_DEBUG] (grub_mm_debug): New variable.
32503 [MM_DEBUG] (grub_debug_malloc): New function.
32504 [MM_DEBUG] (grub_debug_free): New function.
32505 [MM_DEBUG] (grub_debug_realloc): New function.
32506 [MM_DEBUG] (grub_debug_memalign): New function.
32507
32508 * kern/misc.c (grub_abort): Print a newline to distinguish
32509 the message.
32510
32511 * kern/main.c (grub_main): Call grub_machine_set_prefix and
32512 grub_set_root_dev after loading modules. This is necessary when
32513 setting a prefix depends on modules.
32514
32515 * include/grub/efi/efi.h (grub_print_device_path): Renamed to ...
32516 (grub_efi_print_device_path): ... this.
32517 (grub_efi_get_filename): New prototype.
32518 (grub_efi_set_prefix): Likewise.
32519
32520 * include/grub/efi/disk.h: Include grub/efi/api.h, grub/symbol.h
32521 and grub/disk.h.
32522 (grub_efidisk_get_device_handle): New prototype.
32523 (grub_efidisk_get_device_name): Likewise.
32524
32525 * include/grub/mm.h: Include config.h.
32526 (MM_DEBUG): Removed.
32527 [MM_DEBUG && !GRUB_UTIL] (grub_mm_debug): New prototype.
32528 [MM_DEBUG && !GRUB_UTIL] (grub_malloc): New macro.
32529 [MM_DEBUG && !GRUB_UTIL] (grub_realloc): Likewise.
32530 [MM_DEBUG && !GRUB_UTIL] (grub_memalign): Likewise.
32531 [MM_DEBUG && !GRUB_UTIL] (grub_free): Likewise.
32532 [MM_DEBUG && !GRUB_UTIL] (grub_debug_malloc): New prototype.
32533 [MM_DEBUG && !GRUB_UTIL] (grub_debug_realloc): New prototype.
32534 [MM_DEBUG && !GRUB_UTIL] (grub_debug_memalign): New prototype.
32535 [MM_DEBUG && !GRUB_UTIL] (grub_debug_free): New prototype.
32536
32537 * include/grub/kernel.h (grub_machine_set_prefix): New prototype.
32538
32539 * disk/efi/efidisk.c: Include grub/partition.h.
32540 (iterate_child_devices): New function.
32541 (add_device): First, compare only last device path nodes, so that
32542 devices are sorted by the types.
32543 (grub_efidisk_get_device_handle): New function.
32544 (grub_efidisk_get_device_name): Likewise.
32545
32546 * configure.ac (--enable-mm-debug): New option to enable the
32547 memory manager debugging feature. This makes the binary much
32548 bigger, so is disabled by default.
32549
9cacaa17 325502006-04-23 Yoshinori K. Okuji <okuji@enbug.org>
32551
32552 Use grub_abort instead of grub_stop, and grub_exit must be
32553 define in each architecture now. Also, this change adds support
32554 for EFI disks.
f19dbdb7 32555
9cacaa17 32556 * util/i386/pc/grub-probefs.c: Include grub/term.h.
32557 (grub_getkey): New function.
32558 (grub_term_get_current): Likewise.
32559
32560 * util/i386/pc/grub-setup.c: Include grub/term.h.
32561 (grub_getkey): New function.
32562 (grub_term_get_current): Likewise.
32563
32564 * util/misc.c (grub_stop): Renamed to ...
32565 (grub_exit): ... this.
32566
32567 * kern/powerpc/ieee1275/init.c (abort): Renamed to ...
32568 (grub_exit): ... this.
32569 (grub_machine_init): Use grub_abort instead of abort.
32570 (grub_stop): Removed.
32571
32572 * kern/powerpc/ieee1275/cmain.c (cmain): Use grub_abort instead of
32573 abort.
32574
32575 * kern/i386/pc/startup.S (grub_exit): New function.
32576 (cold_reboot): New label.
32577
32578 * kern/efi/init.c: Include grub/efi/disk.h and grub/env.h.
32579 (grub_efi_init): Call grub_efidisk_init.
32580 (grub_efi_fini): Call grub_efidisk_fini.
32581
32582 * kern/efi/efi.c: Include grub/mm.h.
32583 (grub_efi_console_control_guid): Renamed to ...
32584 (console_control_guid): ... this.
32585 (grub_efi_loaded_image_guid): Renamed to ...
32586 (loaded_image_guid): ... this.
32587 (grub_efi_locate_handle): New function.
32588 (grub_efi_open_protocol): Likewise.
32589 (grub_efi_set_text_mode): Use CONSOLE_CONTROL_GUID instead of
32590 GRUB_EFI_CONSOLE_CONTROL_GUID.
32591 (grub_efi_exit): Removed.
32592 (grub_stop): Likewise.
32593 (grub_efi_get_loaded_image): Use grub_efi_open_protocol.
32594 (grub_exit): New function.
32595 (grub_print_device_path): Likewise.
32596
32597 * kern/rescue.c (grub_rescue_cmd_exit): New function.
32598 (grub_enter_rescue_mode): Register "exit".
32599
32600 * kern/misc.c (grub_real_dprintf): A cosmetic change.
32601 (grub_abort): New function.
32602
32603 * kern/err.c (grub_fatal): Use grub_abort instead of grub_stop.
32604
32605 * include/grub/sparc64/ieee1275/kernel.h (abort): Removed.
32606
32607 * include/grub/powerpc/ieee1275/kernel.h (abort): Removed.
32608
32609 * include/grub/efi/efi.h (grub_efi_exit): Removed.
32610 (grub_print_device_path): New prototype.
32611 (grub_efi_locate_handle): Likewise.
32612 (grub_efi_open_protocol): Likewise.
32613
32614 * include/grub/efi/disk.h (grub_efidisk_fini): New file.
32615 * disk/efi/efidisk.c: Likewise.
32616
32617 * DISTLIST: Added disk/efi/efidisk.c and include/grub/efi/disk.h.
32618
32619 * include/grub/efi/console_control.h
32620 (GRUB_EFI_CONSOLE_CONTROL_GUID): Use an array for the last 8 bytes.
32621
32622 * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): Specify the
32623 last 8 bytes as an array.
32624 (GRUB_EFI_DISK_IO_GUID): New macro.
32625 (GRUB_EFI_BLOCK_IO_GUID): Likewise.
32626 (GRUB_EFI_DEVICE_PATH_GUID): Likewise.
32627 (grub_efi_ipv6_address_t): Change the type to grub_uint16_t from
32628 grub_uint8_t.
32629 (struct grub_efi_guid): Use an array to specify the last 8 bytes.
32630 (struct grub_efi_device_path): Rename the member "sub_type" to
32631 "subtype".
32632 (GRUB_EFI_DEVICE_PATH_TYPE): New macro.
32633 (GRUB_EFI_DEVICE_PATH_SUBTYPE): Likewise.
32634 (GRUB_EFI_DEVICE_PATH_LENGTH): Likewise.
32635 (GRUB_EFI_END_DEVICE_PATH_TYPE): Likewise.
32636 (GRUB_EFI_END_ENTIRE_DEVICE_PATH_SUBTYPE): Likewise.
32637 (GRUB_EFI_END_THIS_DEVICE_PATH_SUBTYPE): Likewise.
32638 (GRUB_EFI_END_ENTIRE_DEVICE_PATH): Likewise.
32639 (GRUB_EFI_NEXT_DEVICE_PATH): Likewise.
32640 (GRUB_EFI_HARDWARE_DEVICE_PATH_TYPE): Likewise.
32641 (GRUB_EFI_PCI_DEVICE_PATH_SUBTYPE): Likewise.
32642 (struct grub_efi_pci_device_path): New structure.
32643 (grub_efi_pci_device_path_t): New type.
32644 (GRUB_EFI_PCCARD_DEVICE_PATH_SUBTYPE): New macro.
32645 (struct grub_efi_pccard_device_path): New structure.
32646 (grub_efi_pccard_device_path_t): New type.
32647 (GRUB_EFI_MEMORY_MAPPED_DEVICE_PATH_SUBTYPE): New macro.
32648 (struct grub_efi_memory_mapped_device_path): New structure.
32649 (grub_efi_memory_mapped_device_path_t): New type.
32650 (GRUB_EFI_VENDOR_DEVICE_PATH_SUBTYPE): New macro.
32651 (struct grub_efi_vendor_device_path): New structure.
32652 (grub_efi_vendor_device_path_t): New type.
32653 (GRUB_EFI_CONTROLLER_DEVICE_PATH_SUBTYPE): New macro.
32654 (struct grub_efi_controller_device_path): New structure.
32655 (grub_efi_controller_device_path_t): New type.
32656 (GRUB_EFI_ACPI_DEVICE_PATH_TYPE): New macro.
32657 (GRUB_EFI_ACPI_DEVICE_PATH_SUBTYPE): Likewise.
32658 (struct grub_efi_acpi_device_path): New structure.
32659 (grub_efi_acpi_device_path_t): New type.
32660 (GRUB_EFI_EXPANDED_ACPI_DEVICE_PATH_SUBTYPE): New macro.
32661 (struct grub_efi_expanded_acpi_device_path): New structure.
32662 (grub_efi_expanded_acpi_device_path_t): New type.
32663 (GRUB_EFI_EXPANDED_ACPI_HIDSTR): New macro.
32664 (GRUB_EFI_EXPANDED_ACPI_UIDSTR): Likewise.
32665 (GRUB_EFI_EXPANDED_ACPI_CIDSTR): Likewise.
32666 (GRUB_EFI_MESSAGING_DEVICE_PATH_TYPE): Likewise.
32667 (GRUB_EFI_ATAPI_DEVICE_PATH_SUBTYPE): Likewise.
32668 (struct grub_efi_atapi_device_path): New structure.
32669 (grub_efi_atapi_device_path_t): New type.
32670 (GRUB_EFI_FIBRE_CHANNEL_DEVICE_PATH_SUBTYPE): New macro.
32671 (struct grub_efi_fibre_channel_device_path): New structure.
32672 (grub_efi_fibre_channel_device_path_t): New type.
32673 (GRUB_EFI_1394_DEVICE_PATH_SUBTYPE): New macro.
32674 (struct grub_efi_1394_device_path): New structure.
32675 (grub_efi_1394_device_path_t): New type.
32676 (GRUB_EFI_USB_DEVICE_PATH_SUBTYPE): New macro.
32677 (struct grub_efi_usb_device_path): New structure.
32678 (grub_efi_usb_device_path_t): New type.
32679 (GRUB_EFI_USB_CLASS_DEVICE_PATH_SUBTYPE): New macro.
32680 (struct grub_efi_usb_class_device_path): New structure.
32681 (grub_efi_usb_class_device_path_t): New type.
32682 (GRUB_EFI_I2O_DEVICE_PATH_SUBTYPE): New macro.
32683 (struct grub_efi_i2o_device_path): New structure.
32684 (grub_efi_i2o_device_path_t): New type.
32685 (GRUB_EFI_MAC_ADDRESS_DEVICE_PATH_SUBTYPE): New macro.
32686 (struct grub_efi_mac_address_device_path): New structure.
32687 (grub_efi_mac_address_device_path_t): New type.
32688 (GRUB_EFI_IPV4_DEVICE_PATH_SUBTYPE): New macro.
32689 (struct grub_efi_ipv4_device_path): New structure.
32690 (grub_efi_ipv4_device_path_t): New type.
32691 (GRUB_EFI_IPV6_DEVICE_PATH_SUBTYPE): New macro.
32692 (struct grub_efi_ipv6_device_path): New structure.
32693 (grub_efi_ipv6_device_path_t): New type.
32694 (GRUB_EFI_INFINIBAND_DEVICE_PATH_SUBTYPE): New macro.
32695 (struct grub_efi_infiniband_device_path): New structure.
32696 (grub_efi_infiniband_device_path_t): New type.
32697 (GRUB_EFI_UART_DEVICE_PATH_SUBTYPE): New macro.
32698 (struct grub_efi_uart_device_path): New structure.
32699 (grub_efi_uart_device_path_t): New type.
32700 (GRUB_EFI_VENDOR_MESSAGING_DEVICE_PATH_SUBTYPE): New macro.
32701 (struct grub_efi_vendor_messaging_device_path): New structure.
32702 (grub_efi_vendor_messaging_device_path_t): New type.
32703 (GRUB_EFI_MEDIA_DEVICE_PATH_TYPE): New macro.
32704 (GRUB_EFI_HARD_DRIVE_DEVICE_PATH_SUBTYPE): Likewise.
32705 (struct grub_efi_hard_drive_device_path): New structure.
32706 (grub_efi_hard_drive_device_path_t): New type.
32707 (GRUB_EFI_CDROM_DEVICE_PATH_SUBTYPE): New macro.
32708 (struct grub_efi_cdrom_device_path): New structure.
32709 (grub_efi_cdrom_device_path_t): New type.
32710 (GRUB_EFI_VENDOR_MEDIA_DEVICE_PATH_SUBTYPE): New macro.
32711 (struct grub_efi_vendor_media_device_path): New structure.
32712 (grub_efi_vendor_media_device_path_t): New type.
32713 (GRUB_EFI_FILE_PATH_DEVICE_PATH_SUBTYPE): New macro.
32714 (struct grub_efi_file_path_device_path): New structure.
32715 (grub_efi_file_path_device_path_t): New type.
32716 (GRUB_EFI_PROTOCOL_DEVICE_PATH_SUBTYPE): New macro.
32717 (struct grub_efi_protocol_device_path): New structure.
32718 (grub_efi_protocol_device_path_t): New type.
32719 (GRUB_EFI_BIOS_DEVICE_PATH_TYPE): New macro.
32720 (GRUB_EFI_BIOS_DEVICE_PATH_SUBTYPE): Likewise.
32721 (struct grub_efi_bios_device_path): New structure.
32722 (grub_efi_bios_device_path_t): New type.
32723 (struct grub_efi_disk_io): New structure.
32724 (grub_efi_disk_io_t): New type.
32725 (struct grub_efi_block_io_media): New structure.
32726 (grub_efi_block_io_media_t): New type.
32727 (struct grub_efi_block_io): New structure.
32728 (grub_efi_block_io_t): New type.
32729
32730 * include/grub/misc.h (grub_stop): Removed.
32731 (grub_exit): New prototype.
32732 (grub_abort): Likewise.
32733
32734 * include/grub/disk.h (enum grub_disk_dev_id): Added
32735 GRUB_DISK_DEVICE_EFIDISK_ID.
32736
32737 * conf/i386-efi.rmk (kernel_mod_SOURCES): Added
32738 disk/efi/efidisk.c.
32739 (kernel_syms.lst): Remove the target if an error occurs.
32740
49986a9f 327412006-04-22 Yoshinori K. Okuji <okuji@enbug.org>
32742
32743 * kern/misc.c (grub_lltoa): Rewritten the decimal conversion part,
32744 as it was simply too buggy.
32745
970d3b8a 327462006-04-21 Yoshinori K. Okuji <okuji@enbug.org>
32747
32748 * kern/misc.c (grub_lltoa): New function.
32749 (grub_vsprintf): Added support for the long long suffix,
32750 i.e. "ll".
32751
ff04ec24 327522006-04-20 Hollis Blanchard <hollis@penguinppc.org>
32753
32754 * Makefile.in (LDFLAGS): Add variable.
32755 (LD): Remove variable.
32756 * configure.ac: Add -m32 to LDFLAGS.
32757 * genmk.rb (PModule#rule): Use $(CC) instead of $(LD).
32758 * conf/powerpc-ieee1275.rmk (COMMON_LDFLAGS): Add variable.
32759 (grubof_LDFLAGS): Use $(COMMON_LDFLAGS).
32760 (_linux_mod_LDFLAGS, linux_mod_LDFLAGS, normal_mod_LDFLAGS,
32761 suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS): New
32762 variables.
32763 * conf/sparc64-ieee1275.rmk (COMMON_LDFLAGS): Add -nostdlib.
32764 * conf/i386-pc.rmk (COMMON_LDFLAGS): Add -nostdlib.
32765 * conf/i386-efi.rmk (COMMON_LDFLAGS): Add -nostdlib.
32766
37e5e1a4 327672006-04-20 Vesa Jaaskelainen <chaac@nic.fi>
32768
32769 * term/gfxterm.c (grub_gfxterm_getcharwidth): Fixed character
32770 length for unknown glyph.
32771
c352d8dd 327722006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
32773
2eab1c0d 32774 Add support for pre-loaded modules into the EFI port.
f19dbdb7 32775
2eab1c0d 32776 * util/i386/efi/grub-mkimage.c (make_mods_section): Rewritten
32777 completely. Accept one more argument DIR. The caller has changed.
32778
32779 * kern/i386/efi/init.c (grub_arch_modules_addr): Removed.
32780
32781 * kern/efi/efi.c: Include grub/efi/pe32.h and grub/kernel.h.
32782 (grub_efi_loaded_image_guid): New variable.
32783 (grub_efi_get_loaded_image): New function.
32784 (grub_arch_modules_addr): Likewise.
32785
32786 * include/grub/efi/efi.h (grub_efi_get_loaded_image): New
32787 prototype.
32788
32789 * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): New macro.
32790 (struct grub_efi_loaded_image): New structure.
32791 (grub_efi_loaded_image_t): New type.
32792
327932006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
f19dbdb7 32794
c352d8dd 32795 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Compare the file
32796 size with GRUB_OS_AREA_SIZE as grub_size_t instead of
32797 grub_ssize_t. Reported by Jeff Chua <jeff84@silk.corp.fedex.com>.
32798
6d01d6b4 327992006-04-19 Roger Leigh <rleigh@whinlatter.ukfsn.org>
32800
32801 * DISTLIST: Added `util/powerpc/ieee1275/grub-install.in'.
32802
976a4ea0 328032006-04-19 Yoshinori K. Okuji <okuji@enbug.org>
32804
32805 * DISTLIST: Added include/grub/efi/console.h,
32806 include/grub/efi/time.h, include/grub/i386/efi/kernel.h,
32807 kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
32808
32809 * include/grub/efi/console.h: New file.
32810 * include/grub/efi/time.h: Likewise.
32811 * include/grub/i386/efi/kernel.h: Likewise.
32812 * kern/efi/init.c: Likewise.
32813 * kern/efi/mm.c: Likewise.
32814 * term/efi/console.c: Likewise.
f19dbdb7 32815
976a4ea0 32816 * kern/i386/efi/init.c: Do not include grub/machine/time.h.
32817 (grub_stop): Removed.
32818 (grub_get_rtc): Likewise.
32819 (grub_machine_init): Simply call grub_efi_init.
32820 (grub_machine_fini): Call grub_efi_fini.
32821
32822 * kern/efi/efi.c: Include grub/machine/time.h and grub/term.h.
32823 (grub_efi_output_string): Removed.
32824 (grub_efi_stall): New function.
32825 (grub_stop): Likewise.
32826 (grub_get_rtc): Likewise.
32827
32828 * include/grub/efi/efi.h (grub_efi_output_string): Removed.
32829 (grub_efi_stall): New prototype.
32830 (grub_efi_allocate_pages): Likewise.
32831 (grub_efi_free_pages): Likewise.
32832 (grub_efi_get_memory_map): Likewise.
32833 (grub_efi_mm_init): Likewise.
32834 (grub_efi_mm_fini): Likewise.
32835 (grub_efi_init): Likewise.
32836 (grub_efi_fini): Likewise.
32837
32838 * include/grub/i386/efi/time.h: Do not include
32839 grub/symbol.h. Include grub/efi/time.h.
32840 (GRUB_TICKS_PER_SECOND): Removed.
32841 (grub_get_rtc): Likewise.
32842
32843 * include/grub/efi/api.h (struct grub_efi_memory_descriptor):
32844 Added padding. The EFI spec is buggy.
32845 (GRUB_EFI_BLACK): New macro.
32846 (GRUB_EFI_BLUE): Likewise.
32847 (GRUB_EFI_GREEN): Likewise.
32848 (GRUB_EFI_CYAN): Likewise.
32849 (GRUB_EFI_RED): Likewise.
32850 (GRUB_EFI_MAGENTA): Likewise.
32851 (GRUB_EFI_BROWN): Likewise.
32852 (GRUB_EFI_LIGHTGRAY): Likewise.
32853 (GRUB_EFI_BRIGHT): Likewise.
32854 (GRUB_EFI_DARKGRAY): Likewise.
32855 (GRUB_EFI_LIGHTBLUE): Likewise.
32856 (GRUB_EFI_LIGHTGREEN): Likewise.
32857 (GRUB_EFI_LIGHTCYAN): Likewise.
32858 (GRUB_EFI_LIGHTRED): Likewise.
32859 (GRUB_EFI_LIGHTMAGENTA): Likewise.
32860 (GRUB_EFI_YELLOW): Likewise.
32861 (GRUB_EFI_WHITE): Likewise.
32862 (GRUB_EFI_BACKGROUND_BLACK): Likewise.
32863 (GRUB_EFI_BACKGROUND_BLUE): Likewise.
32864 (GRUB_EFI_BACKGROUND_GREEN): Likewise.
32865 (GRUB_EFI_BACKGROUND_CYAN): Likewise.
32866 (GRUB_EFI_BACKGROUND_RED): Likewise.
32867 (GRUB_EFI_BACKGROUND_MAGENTA): Likewise.
32868 (GRUB_EFI_BACKGROUND_BROWN): Likewise.
32869 (GRUB_EFI_BACKGROUND_LIGHTGRAY): Likewise.
32870 (GRUB_EFI_TEXT_ATTR): Likewise.
32871
32872 * conf/i386-efi.rmk (kernel_mod_SOURCES): Added kern/efi/efi.c,
32873 kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
32874 (kernel_mod_HEADERS): Added efi/time.h.
32875
83709125 328762006-04-18 Yoshinori K. Okuji <okuji@enbug.org>
32877
32878 * DISTLIST: Added conf/i386-efi.mk, conf/i386-efi.rmk,
32879 include/grub/efi/api.h, include/grub/efi/console_control.h,
32880 include/grub/efi/efi.h, include/grub/efi/pe32.h,
32881 include/grub/i386/efi/time.h, kern/efi/efi.c,
32882 kern/i386/efi/init.c, kern/i386/efi/startup.S,
32883 and util/i386/efi/grub-mkimage.c.
32884
32885 * Makefile.in (RMKFILES): Added i386-efi.rmk.
32886
32887 * genmk.rb (PModule#rule): Do not export symbols if
32888 #{prefix}_EXPORTS is set to "no".
32889
32890 * conf/i386-efi.mk: New file.
32891 * conf/i386-efi.rmk: Likewise.
32892 * include/grub/efi/api.h: Likewise.
32893 * include/grub/efi/console_control.h: Likewise.
32894 * include/grub/efi/efi.h: Likewise.
32895 * include/grub/efi/pe32.h: Likewise.
32896 * include/grub/i386/efi/time.h: Likewise.
32897 * kern/efi/efi.c: Likewise.
32898 * kern/i386/efi/init.c: Likewise.
32899 * kern/i386/efi/startup.S: Likewise.
32900 * util/i386/efi/grub-mkimage.c: Likewise.
32901
329022006-04-17 Marco Gerards <marco@gnu.org>
bfa2bd9e 32903
32904 * include/grub/script.h: Include <grub/parser.h> and
32905 "grub_script.tab.h".
32906 (struct grub_lexer_param): New struct.
32907 (struct grub_parser_param): Likewise.
32908 (grub_script_create_arglist): Pass the state in an argument.
32909 (grub_script_add_arglist): Likewise.
32910 (grub_script_create_cmdline): Likewise.
32911 (grub_script_create_cmdblock): Likewise.
32912 (grub_script_create_cmdif): Likewise.
32913 (grub_script_create_cmdmenu): Likewise.
32914 (grub_script_add_cmd): Likewise.
32915 (grub_script_arg_add): Likewise.
32916 (grub_script_lexer_ref): Likewise.
32917 (grub_script_lexer_deref): Likewise.
32918 (grub_script_lexer_record_start): Likewise.
32919 (grub_script_lexer_record_stop): Likewise.
32920 (grub_script_mem_record): Likewise.
32921 (grub_script_mem_record_stop): Likewise.
32922 (grub_script_malloc): Likewise.
32923 (grub_script_yylex): Likewise.
32924 (grub_script_yyparse): Likewise.
32925 (grub_script_yyerror): Likewise.
32926 (grub_script_yylex): Likewise.
32927 (grub_script_lexer_init): Return the state.
32928
32929 * normal/lexer.c (grub_script_lexer_state): Removed variable.
32930 (grub_script_lexer_done): Likewise.
32931 (grub_script_lexer_getline): Likewise.
32932 (grub_script_lexer_refs): Likewise.
32933 (script): Likewise.
32934 (newscript): Likewise.
32935 (record): Likewise.
32936 (recording): Likewise.
32937 (recordpos): Likewise.
32938 (recordlen): Likewise.
32939 (grub_script_lexer_init): Return the state instead of setting
32940 global variables.
32941 (grub_script_lexer_ref): Use the newly added argument for state
32942 instead of globals.
32943 (grub_script_lexer_deref): Likewise.
32944 (grub_script_lexer_record_start): Likewise.
32945 (grub_script_lexer_record_stop): Likewise.
32946 (recordchar): Likewise.
32947 (nextchar): Likewise.
32948 (grub_script_yylex2): Likewise.
32949 (grub_script_yylex): Likewise.
32950 (grub_script_yyerror): Likewise.
32951
32952 * normal/parser.y (func_mem): Removed variable.
32953 (menu_entry): Likewise.
32954 (err): Likewise.
32955 (%lex-param): New parser option.
32956 (%parse-param): Likewise.
32957 (script): Always return the AST.
32958 (argument): Pass the state around.
32959 (arguments): Likewise.
32960 (grubcmd): Likewise.
32961 (commands): Likewise.
32962 (function): Likewise.
32963 (menuentry): Likewise.
32964 (if_statement): Likewise.
32965 (if): Likewise.
32966
32967 * normal/script.c (grub_script_memused): Removed variable.
32968 (grub_script_parsed): Likewise.
32969 (grub_script_malloc): Added a state argument. Use that instead of
32970 global variables.
32971 (grub_script_mem_record): Likewise.
32972 (grub_script_mem_record_stop): Likewise.
32973 (grub_script_arg_add): Likewise.
32974 (grub_script_add_arglist): Likewise.
32975 (grub_script_create_cmdline): Likewise.
32976 (grub_script_create_cmdif): Likewise.
32977 (grub_script_create_cmdmenu): Likewise.
32978 (grub_script_add_cmd): Likewise.
32979 (grub_script_parse): Setup the state before calling the parser.
f19dbdb7 32980
e2a8c904 329812006-04-16 Marco Gerards <marco@gnu.org>
6de2ee99 32982
32983 * normal/command.c (grub_command_init): Remove the title command.
32984
32985 * normal/lexer.c (grub_script_yylex): Renamed from this...
32986 (grub_script_yylex2): ... to this.
32987 (grub_script_yylex): New function. Temporary
32988 introduced to filter some tokens.
32989 (grub_script_yyerror): Print a newline.
32990
32991 * normal/main.c (read_config_file): Output information about the
32992 lines that contain errors. Wait for a key after all lines have
32993 been processed. Don't return an empty menu.
32994
32995 * normal/parser.y (func_mem): Don't initialize.
32996 (menu_entry): Likewise.
32997 (err): New variable.
32998 (script): Don't return anything when an error was encountered.
32999 (ws, returns): Removed rules.
33000 (argument): Disabled concatenated variable support.
33001 (arguments): Remove explicit separators.
33002 (grubcmd): Likewise.
33003 (function): Likewise.
33004 (menuentry): Likewise.
33005 (if): Likewise.
33006 (commands): Likewise. Add error handling.
33007
33008 * normal/script.c (grub_script_create_cmdline): If
33009 `grub_script_parsed' is 0, assume the parser encountered an error.
33010
c9a86192 330112006-04-02 Yoshinori K. Okuji <okuji@enbug.org>
33012
33013 * configure.ac: Add support for EFI. Fix the typo
33014 BUILD_LDDFLAGS. Restore the LDFLAGS after testing.
33015
70f3b243 330162006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
33017
33018 * util/unifont2pff.rb: Removed unnecessary byte ordering. Now
33019 foreign multibyte characters should be shown correctly.
33020
65f201ad 330212006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
33022
33023 * normal/main.c (grub_normal_menu_addentry): Fixed menu size
33024 calculation.
33025 (read_config_file): Made it to close file before returning.
33026
b4b93674 330272006-03-31 Vesa Jaaskelainen <chaac@nic.fi>
33028
33029 * DISTLIST: Added include/grub/i386/pc/vbeblit.h,
33030 include/grub/i386/pc/vbefill.h, video/i386/pc/vbeblit.c,
33031 video/i386/pc/vbefill.c.
33032
33033 * conf/i386-pc.rmk (vbe_mod_SOURCES): Added video/i386/pc/vbeblit.c,
33034 video/i386/pc/vbefill.c.
33035
33036 * include/grub/video.h (grub_video_blit_format): New enum.
33037 (grub_video_mode_info): Added new member blit_format.
33038 (grub_video_get_blit_format): New function prototype.
33039
33040 * include/grub/i386/pc/vbe.h (grub_video_vbe_get_video_ptr): New
33041 function prototype.
33042 (grub_video_vbe_map_rgb): Likewise.
33043 (grub_video_vbe_unmap_color): Likewise.
33044
33045 * include/grub/i386/pc/vbeblit.h: New file.
33046
33047 * include/grub/i386/pc/vbefill.h: New file.
33048
33049 * video/video.c (grub_video_get_blit_format): New function.
33050 (grub_video_vbe_get_video_ptr): Re-declared as non-static.
33051 (grub_video_vbe_map_rgb): Likewise.
33052 (grub_video_vbe_unmap_color): Likewise.
33053
33054 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Changed to use more
33055 optimized fills.
33056 (grub_video_vbe_blit_render_target): Changed to use more optimized
33057 blits.
33058 (grub_video_vbe_setup): Added detection for optimized settings.
33059 (grub_video_vbe_create_render_target): Likewise.
33060
33061 * video/i386/pc/vbeblit.c: New file.
33062
33063 * video/i386/pc/vbefill.c: New file.
33064
c2379b9c 330652006-03-30 Vesa Jaaskelainen <chaac@nic.fi>
33066
33067 * font/manager.c (grub_font_get_glyph): Removed font fixup from
33068 here...
33069
33070 * util/unifont2pff.rb: ... and moved it to here. Improved argument
33071 parsing to support both hex and dec ranges. If filename was missing
33072 show usage information.
33073
bd0d7896 330742006-03-14 Vesa Jaaskelainen <chaac@nic.fi>
33075
33076 * DISTLIST: Added include/grub/video.h, term/gfxterm.c,
33077 video/video.c, commands/videotest.c. Removed term/i386/pc/vesafb.c.
33078
33079 * conf/i386-pc.rmk (pkgdata_MODULES): Added video.mod,
33080 gfxterm.mod, videotest.mod. Removed vga.mod, vesafb.mod.
33081 (video_mod_SOURCES): Added.
33082 (video_mod_CFLAGS): Likewise.
33083 (video_mod_LDFLAGS): Likewise.
33084 (gfxterm_mod_SOURCES): Likewise.
33085 (gfxterm_mod_CFLAGS): Likewise.
33086 (gfxterm_mod_LDFLAGS): Likewise.
33087 (videotest_mod_SOURCES): Likewise.
33088 (videotest_mod_CFLAGS): Likewise.
33089 (videotest_mod_LDFLAGS): Likewise.
33090 (vesafb_mod_SOURCES): Removed.
33091 (vesafb_mod_CFLAGS): Likewise.
33092 (vesafb_mod_LDFLAGS): Likewise.
33093 (vga_mod_SOURCES): Likewise.
33094 (vga_mod_CFLAGS): Likewise.
33095 (vga_mod_LDFLAGS): Likewise.
33096
33097 * commands/videotest.c: New file.
33098
33099 * font/manager.c (fill_with_default_glyph): Modified to use
33100 grub_font_glyph.
33101 (grub_font_get_glyph): Likewise.
33102 (fontmanager): Renamed from this...
33103 (font_manager): ... to this.
33104
33105 * include/grub/font.h (grub_font_glyph): Added new structure.
33106 (grub_font_get_glyph): Modified to use grub_font_glyph.
33107
33108 * include/grub/misc.h (grub_abs): Added as inline function.
33109
33110 * include/grub/video.h: New file.
33111
33112 * include/grub/i386/pc/vbe.h (GRUB_VBE_STATUS_OK): New macro.
33113 (GRUB_VBE_MEMORY_MODEL_PACKED_PIXEL): Likewise.
33114 (GRUB_VBE_MEMORY_MODEL_DIRECT_COLOR): Likewise.
33115 (grub_vbe_get_controller_info): Renamed from this...
33116 (grub_vbe_bios_get_controller_info): ... to this.
33117 (grub_vbe_get_mode_info): Renamed from this...
33118 (grub_vbe_bios_get_mode_info): ... to this.
33119 (grub_vbe_set_mode): Renamed from this...
33120 (grub_vbe_bios_set_mode): ... to this.
33121 (grub_vbe_get_mode): Renamed from this...
33122 (grub_vbe_bios_get_mode): ... to this.
33123 (grub_vbe_set_memory_window): Renamed from this...
33124 (grub_vbe_bios_set_memory_window): ... to this.
33125 (grub_vbe_get_memory_window): Renamed from this...
33126 (grub_vbe_bios_get_memory_window): ... to this.
33127 (grub_vbe_set_scanline_length): Renamed from this...
33128 (grub_vbe_set_scanline_length): ... to this.
33129 (grub_vbe_get_scanline_length): Renamed from this...
33130 (grub_vbe_bios_get_scanline_length): ... to this.
33131 (grub_vbe_set_display_start): Renamed from this...
33132 (grub_vbe_bios_set_display_start): ... to this.
33133 (grub_vbe_get_display_start): Renamed from this...
33134 (grub_vbe_bios_get_display_start): ... to this.
33135 (grub_vbe_set_palette_data): Renamed from this...
33136 (grub_vbe_bios_set_palette_data): ... to this.
33137 (grub_vbe_set_pixel_rgb): Removed.
33138 (grub_vbe_set_pixel_index): Likewise.
33139
33140 * kern/i386/pc/startup.S (grub_vbe_get_controller_info): Renamed
33141 from this...
33142 (grub_vbe_bios_get_controller_info): ... to this.
33143 (grub_vbe_get_mode_info): Renamed from this...
33144 (grub_vbe_bios_get_mode_info): ... to this.
33145 (grub_vbe_set_mode): Renamed from this...
33146 (grub_vbe_bios_set_mode): ... to this.
33147 (grub_vbe_get_mode): Renamed from this...
33148 (grub_vbe_bios_get_mode): ... to this.
33149 (grub_vbe_set_memory_window): Renamed from this...
33150 (grub_vbe_bios_set_memory_window): ... to this.
33151 (grub_vbe_get_memory_window): Renamed from this...
33152 (grub_vbe_bios_get_memory_window): ... to this.
33153 (grub_vbe_set_scanline_length): Renamed from this...
33154 (grub_vbe_set_scanline_length): ... to this.
33155 (grub_vbe_get_scanline_length): Renamed from this...
33156 (grub_vbe_bios_get_scanline_length): ... to this.
33157 (grub_vbe_set_display_start): Renamed from this...
33158 (grub_vbe_bios_set_display_start): ... to this.
33159 (grub_vbe_get_display_start): Renamed from this...
33160 (grub_vbe_bios_get_display_start): ... to this.
33161 (grub_vbe_set_palette_data): Renamed from this...
33162 (grub_vbe_bios_set_palette_data): ... to this.
33163 (grub_vbe_bios_get_controller_info): Fixed problem with registers
33164 getting corrupted after calling it. Added more pushes and pops.
33165 (grub_vbe_bios_set_mode): Likewise.
33166 (grub_vbe_bios_get_mode): Likewise.
33167 (grub_vbe_bios_get_memory_window): Likewise.
33168 (grub_vbe_bios_set_scanline_length): Likewise.
33169 (grub_vbe_bios_get_scanline_length): Likewise.
33170 (grub_vbe_bios_get_display_start): Likewise.
33171 (grub_vbe_bios_set_palette_data): Likewise.
33172
33173 * normal/cmdline.c (cl_set_pos): Refresh the screen.
33174 (cl_insert): Likewise.
33175 (cl_delete): Likewise.
33176
33177 * term/gfxterm.c: New file.
33178
33179 * term/i386/pc/vesafb.c: Removed file.
33180
33181 * video/video.c: New file.
33182
33183 * video/i386/pc/vbe.c (real2pm): Added new function.
33184 (grub_video_vbe_draw_pixel): Likewise.
33185 (grub_video_vbe_get_video_ptr): Likewise.
33186 (grub_video_vbe_get_pixel): Likewise
33187 (grub_video_vbe_init): Likewise.
33188 (grub_video_vbe_fini): Likewise.
33189 (grub_video_vbe_setup): Likewise.
33190 (grub_video_vbe_get_info): Likewise.
33191 (grub_video_vbe_set_palette): Likewise.
33192 (grub_video_vbe_get_palette): Likewise.
33193 (grub_video_vbe_set_viewport): Likewise.
33194 (grub_video_vbe_get_viewport): Likewise.
33195 (grub_video_vbe_map_color): Likewise.
33196 (grub_video_vbe_map_rgb): Likewise.
33197 (grub_video_vbe_map_rgba): Likewise.
33198 (grub_video_vbe_unmap_color): Likewise.
33199 (grub_video_vbe_fill_rect): Likewise.
33200 (grub_video_vbe_blit_glyph): Likewise.
33201 (grub_video_vbe_blit_bitmap): Likewise.
33202 (grub_video_vbe_blit_render_target): Likewise.
33203 (grub_video_vbe_scroll): Likewise.
33204 (grub_video_vbe_swap_buffers): Likewise.
33205 (grub_video_vbe_create_render_target): Likewise.
33206 (grub_video_vbe_delete_render_target): Likewise.
33207 (grub_video_vbe_set_active_render_target): Likewise.
33208 (grub_vbe_set_pixel_rgb): Remove function.
33209 (grub_vbe_set_pixel_index): Likewise.
33210 (index_color_mode): Remove static variable.
33211 (active_mode): Likewise.
33212 (framebuffer): Likewise.
33213 (bytes_per_scan_line): Likewise.
33214 (grub_video_vbe_adapter): Added new static variable.
33215 (framebuffer): Likewise.
33216 (render_target): Likewise.
33217 (initial_mode): Likewise.
33218 (mode_in_use): Likewise.
33219 (mode_list): Likewise.
33220
5f97350b 332212006-03-10 Marco Gerards <marco@gnu.org>
33222
33223 * configure.ac (AC_INIT): Bumped to 1.93.
33224
33225 * DISTLIST: Added `include/grub/hfs.h'.
33226
a3c5c6f8 332272006-02-01 Yoshinori K. Okuji <okuji@enbug.org>
33228
33229 * boot/i386/pc/boot.S (general_error): Before looping, try INT
33230 18H, which might help the BIOS falling back to next boot media.
33231
6de53d26 332322006-01-25 Yoshinori K. Okuji <okuji@enbug.org>
33233
33234 * util/i386/pc/grub-install.in: Escape a backslash. Reported by
33235 Poe Chen <poe.poechen@gmail.com>.
33236
77c4a393 332372006-01-17 Marco Gerards <marco@gnu.org>
33238
33239 * include/grub/normal.h: Include <grub/script.h>.
33240 (grub_command_list): Removed struct.
33241 (grub_command_list_t): Removed type.
33242 (grub_menu_entry): Remove members `num' and `command_list'. Add
33243 members `commands' and `sourcecode'.
33244 * include/grub/script.h: Add inclusion guards.
33245 (grub_script_cmd_menuentry): New struct.
33246 (grub_script_execute_menuentry): New prototype.
33247 (grub_script_lexer_record_start): Likewise.
33248 (grub_script_lexer_record_stop): Likewise.
33249 * normal/execute.c (grub_script_execute_menuentry): New function.
33250 * normal/lexer.c (record, recording, recordpos, recordlen): New
33251 variables.
33252 (grub_script_lexer_record_start): New function.
33253 (grub_script_lexer_record_stop): Likewise.
33254 (recordchar): Likewise.
33255 (nextchar): Likewise.
33256 (grub_script_yylex): Use `nextchar' to fetch new characters. Use
33257 2048 as the buffer size. Add the tokens `menuentry' and `@'.
33258 * normal/main.c: Include <grub/parser.h> and <grub/script.h>
33259 (current_menu): New variable.
33260 (free_menu): Mainly rewritten.
33261 (grub_normal_menu_addentry): New function.
33262 (read_config_file): Rewritten.
33263 * normal/menu.c (run_menu_entry): Mainly rewritten.
fe987087 33264 * normal/menu_entry.c (make_screen): Rewritten the code to insert
77c4a393 33265 the menu entry.
33266 (run): Mainly rewritten.
33267 * normal/parser.y (menu_entry): New variable.
33268 (GRUB_PARSER_TOKEN_MENUENTRY): New token.
33269 (menuentry): New rule.
33270 (command): Add `menuentry'.
33271 (if_statement): Allow additional returns before `fi'.
33272 * normal/script.c (grub_script_create_cmdmenu): New function.
33273
144f1f98 332742006-01-03 Marco Gerards <marco@gnu.org>
33275
33276 * INSTALL: GNU Bison is required.
33277 * configure.ac: Rewritten the test to detect Bison.
33278 * Makefile.in (YACC): New variable. Reported by Xun Sun
33279 <xun.sun.cn@gmail.com>.
33280
af4b2d89 332812006-01-03 Marco Gerards <marco@gnu.org>
33282
33283 * fs/hfsplus.c (grub_hfsplus_read_block): Convert the offset of
33284 the HFS+ filesystem to filesystem blocks.
33285 (grub_hfsplus_iterate_dir): Cast the `fileinfo' assignment so a
33286 GCC warning is silenced.
33287
15643b71 332882006-01-03 Marco Gerards <marco@gnu.org>
33289
33290 * partmap/apple.c (apple_partition_map_iterate): Convert the data
33291 read from disk from big endian to host byte order.
33292
00905879 332932006-01-03 Hollis Blanchard <hollis@penguinppc.org>
33294
33295 * fs/hfs.c: Include <grub/hfs.h>. Added reference to the official
33296 documentation.
33297 (GRUB_HFS_EMBED_HFSPLUS_SIG): New macro.
33298 (grub_hfs_mount): Grammar fix in error. Make sure this is not an
33299 embedded HFS+ filesystem.
33300 (GRUB_HFS_MAGIC, grub_hfs_extent, grub_hfs_datarecord_t)
33301 (grub_hfs_sblock): Move from here...
33302 * include/grub/hfs.h: To here... New file.
33303 * fs/hfsplus.c: Include <grub/hfs.h>. Added reference to the official
33304 documentation.
33305 (GRUB_HFSPLUS_MAGIC, GRUB_HFSPLUSX_MAGIC, GRUB_HFSPLUS_SBLOCK):
33306 New macros.
33307 (grub_hfsplus_volheader): Change type of member `magic' to
33308 `grub_uint16_t'.
33309 (grub_hfsplus_data): Add new member `embedded_offset'.
33310 (grub_hfsplus_read_block): Add the HFS+ wrapper offset to the
33311 returned block.
33312 (grub_hfsplus_mount): Read the HFS+ wrapper if it exists.
33313 Calculate the offset.
33314
8899bc3e 333152005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
33316
33317 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRP_ADDR):
33318 Removed.
33319 (GRUB_BOOT_MACHINE_DRP_SIZE): Likewise.
33320
ae8c0277 333212005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
33322
33323 * kern/env.c (grub_env_set): Check if ENV->VALUE instead of
33324 ENV->NAME is NULL after allocating ENV->VALUE.
33325
07084456 333262005-12-25 Marco Gerards <marco@gnu.org>
33327
33328 * kern/env.c (grub_env_set): Rewritten the error handling code.
33329
4750f5f1 333302005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
33331
33332 * geninit.sh: Made more robust, and more portable.
33333
50214199 333342005-12-25 Marco Gerards <marco@gnu.org>
33335
33336 Add support for Apple HFS+ filesystems.
f19dbdb7 33337
50214199 33338 * fs/hfsplus.c: New file.
33339
33340 * DISTLIST: Added `fs/hfsplus.c'.
33341
33342 * conf/common.rmk (pkgdata_MODULES): Add `hfsplus.mod'.
33343 (hfsplus_mod_SOURCES): New variable.
33344 (hfsplus_mod_CFLAGS): Likewise.
33345 (hfsplus_mod_LDFLAGS): Likewise.
33346 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/hfsplus.c'.
33347 (grub_setup_SOURCES): Likewise.
33348 (grub_mkdevicemap_SOURCES): Likewise.
33349 (grub_emu_SOURCES): Likewise.
33350 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
33351
33352 * fs/fshelp.c (grub_fshelp_log2blksize): New function.
33353
33354 * include/grub/fshelp.h (grub_fshelp_log2blksize): new prototype.
33355
befaed6c 333562005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
33357
33358 * DISTLIST: Added geninitheader.sh, geninit.sh, commands/test.c,
33359 commands/i386/pc/play.c, conf/common.mk, conf/common.rmk,
33360 include/grub/parser.h, include/grub/script.h, kern/parser.c,
33361 kern/sparc64/cache.S, normal/execute.c, normal/function.c,
33362 normal/lexer.c, normal/parser.y, normal/script.c, and
33363 partmap/gpt.c.
33364 Removed kern/sparc64/cache.c.
33365
33366 * conf/common.rmk (DISTCLEANFILES): Added grub_script.tab.c,
33367 grub_script.tab.h, grub_modules_init.lst, grub_modules_init.h,
33368 grub_emu_init.c.
33369
33370 * configure.ac (AC_INIT): Bumped to 1.92.
33371
6a124103 333722005-12-24 Vesa Jaaskelainen <chaac@nic.fi>
33373
33374 * kern/err.c (grub_error_push): Added new function to support error
33375 stacks.
33376 (grub_error_pop): Likewise.
33377 (grub_error_stack_items): New local variable to support error stacks.
33378 (grub_error_stack_pos): Likewise.
33379 (grub_error_stack_assert): Likewise.
33380 (GRUB_ERROR_STACK_SIZE): Added new define to configure maximum error
33381 stack depth.
33382 (grub_print_error): Added support to print errors from error stack.
33383
33384 * include/grub/err.h (grub_error_push): Added function prototype.
33385 (grub_error_pop): Likewise.
33386
be973c1b 333872005-12-09 Hollis Blanchard <hollis@penguinppc.org>
33388
33389 * configure.ac: Accept `powerpc64' as host_cpu.
33390 (amd64): Rename to `biarch32'.
33391
33392 * kern/powerpc/cache.S (grub_arch_sync_caches): Handle
33393 non-cacheline-aligned addresses.
33394
33395 * kern/dl.c (grub_dl_load_core): Add grub_dprintf messages.
33396 (grub_dl_flush_cache): Likewise. Only call `grub_arch_sync_caches'
33397 if `size' is non-zero.
33398
b04216ab 333992005-12-03 Marco Gerards <mgerards@xs4all.nl>
33400
33401 * conf/common.rmk (grub_modules_init.lst): Use `-printf "%P\n"'
33402 and `cd' to make sure the filename is not prefixed with a
33403 directory name.
33404 (pkgdata_MODULES): Add `gpt.mod'.
33405 (gpt_mod_SOURCES): New variable.
33406 (gpt_mod_CFLAGS): Likewise.
33407 (gpt_mod_LDFLAGS): Likewise.
33408
33409 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/gpt.c'.
33410
33411 * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_GPT_DISK):
33412 New macro.
33413
33414 * partmap/gpt.c: New file.
33415
33416 * partmap/pc.c (pc_partition_map_iterate): Don't continue when a
33417 GPT partition map is detected.
33418
41730ed9 334192005-12-03 Vincent Pelletier <subdino2004@yahoo.fr>
33420
33421 * commands/i386/pc/play.c: New file.
33422 * conf/i386-pc.rmk (pkgdata_MODULES): Added play.mod.
33423 (play_mod_SOURCES, play_mod_CFLAGS, play_mod_LDFLAGS): New
33424 macros.
f19dbdb7 33425
95dc3643 334262005-11-27 Marco Gerards <mgerards@xs4all.nl>
33427
33428 * include/grub/dl.h (GRUB_MOD_INIT): Use `__attribute__
33429 ((unused))' to silence gcc warning.
33430
1569ec51 334312005-11-26 Hollis Blanchard <hollis@penguinppc.org>
33432
33433 * configure.ac: Correct `AC_PROG_YACC' test.
33434
9abde152 334352005-11-22 Hollis Blanchard <hollis@penguinppc.org>
33436
33437 * util/powerpc/ieee1275/grub-install.in: Run the mount point
33438 check before installing files.
33439
44b83271 334402005-11-22 Mike Small <smallm@panix.com>
33441
33442 * util/powerpc/ieee1275/grub-install.in (grubdir): Fixed partition
33443 number regex so multidigit numbers are recognized correctly.
33444
334452005-11-22 Mike Small <smallm@panix.com>
33446
33447 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Add a
33448 debugging message before attempting to claim memory.
33449 (grub_rescue_cmd_initrd): Add a claim debugging message and try
33450 multiple addresses in case of failure.
33451
9c12956b 334522005-11-22 Hollis Blanchard <hollis@penguinppc.org>
33453
33454 * term/tparm.c (get_space): Remove empty `if' statement.
33455
33456 * fs/ufs.c (grub_ufs_find_file): Remove `grub_le_to_cpu32'.
33457
33458 * kern/parser.c (check_varstate): Rename `state' to 's'.
33459
aeaf81d9 334602005-11-22 Hollis Blanchard <hollis@penguinppc.org>
33461
33462 * partmap/acorn.c: Change `unsigned' to `unsigned int'. Move all
33463 variable definitions to the beginning of each function. Sort stack
33464 variables by size.
33465 (find): Rename to `acorn_partition_map_find'. Cast `grub_disk_read'
33466 `buf' argument to `char *'.
33467
79bbb63f 334682005-11-22 Hollis Blanchard <hollis@penguinppc.org>
33469
33470 * conf/powerpc-ieee1275.rmk: Include conf/common.mk.
33471 (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
fe6b695a 33472 minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
79bbb63f 33473 hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
33474 help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
33475 sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
33476 configfile.mod, search.mod, gzio.mod and test.mod.
33477 (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
33478 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
33479 (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
33480 (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
33481 (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
33482 (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
33483 (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
33484 (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
33485 (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
33486 (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
33487 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
33488 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
33489 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
33490 (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
33491 (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
33492 (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
33493 (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
33494 (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
33495 (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
33496 (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
33497 (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
33498 (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
33499 (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Removed.
33500
33501 * conf/common.mk (grub_modules_init.lst): Use `find' instead of
33502 `grep --include'.
33503 (pkgdata_MODULES): Add test.mod.
33504
233b1628 335052005-11-18 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
33506
33507 * genmk.rb: Fixed list rules moved to Makefile.in. Recognise
33508 appending to variables with "+=".
33509 (PModule): Use full pathname to generate *.lst filenames.
33510
33511 * Makefile.in: Fixed list rules moved from genmk.rb.
33512 (.DELETE_ON_ERROR): New special target.
33513 (RMKFILES): Add common.rmk and sparc64-ieee1275.rmk.
33514
33515 * conf/i386-pc.rmk: Include conf/common.mk.
33516 (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
fe6b695a 33517 minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
233b1628 33518 hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
33519 help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
33520 sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
33521 configfile.mod, search.mod, gzio.mod and test.mod.
33522 (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
33523 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
33524 (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
33525 (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
33526 (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
33527 (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
33528 (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
33529 (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
33530 (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
33531 (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
33532 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
33533 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
33534 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
33535 (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
33536 (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
33537 (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
33538 (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
33539 (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
33540 (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
33541 (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
33542 (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
33543 (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
33544 (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Move from
33545 here...
33546 * conf/common.rmk: ... to here. New file.
33547
33548 * conf/common.mk: New file.
33549
16f820c8 335502005-11-18 Yoshinori K. Okuji <okuji@enbug.org>
33551
33552 * conf/powerpc-ieee1275.rmk (grub_script.tab.h): Unified to ...
33553 (grub_script.tab.c): ... here.
33554
33555 * conf/sparc64-ieee1275.rmk (grub_script.tab.h): Unified to ...
33556 (grub_script.tab.c): ... here.
33557
33558 * conf/i386-pc.rmk (grub_script.tab.h): Unified to ...
33559 (grub_script.tab.c): ... here.
33560
33561 * normal/command.c (grub_command_find): Fixed a memory leak of
33562 MODULE_NAME. Reported by Mike Small <smallm@panix.com>.
33563
63ba1554 335642005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
33565
33566 * include/grub/symbol.h: (FUNCTION): Use double quotes instead of
33567 "@" which marks the start of a comment on ARM.
33568 (VARIABLE): Likewise.
33569
7f67dc13 335702005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
33571
79bbb63f 33572 Add support for Linux/ADFS partition tables.
7f67dc13 33573
33574 * partmap/acorn.c: New file.
33575
33576 * include/grub/acorn_filecore.h: Likewise.
33577
33578 * DISTLIST: Added `partmap/acorn.c' and
33579 `include/grub/acorn_filecore.h'.
f19dbdb7 33580
7f67dc13 33581 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
33582 `partmap/acorn.c'.
33583 (pkgdata_MODULES): Add `acorn.mod'.
33584 (acorn_mod_SOURCES): New variable.
33585 (acorn_mod_CFLAGS): Likewise.
33586
33587 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
33588 `partmap/acorn.c'.
33589 (pkgdata_MODULES): Add `acorn.mod'.
33590 (acorn_mod_SOURCES): New variable.
33591 (acorn_mod_CFLAGS): Likewise.
33592
33593 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/acorn.c'.
33594 (pkgdata_MODULES): Add `acorn.mod'.
33595 (acorn_mod_SOURCES): New variable.
33596 (acorn_mod_CFLAGS): Likewise.
33597 (acorn_mod_LDFLAGS): Likewise.
33598
33599 * include/types.h (grub_disk_addr_t): New typedef.
33600
6d099807 336012005-11-13 Marco Gerards <mgerards@xs4all.nl>
33602
33603 * geninit.sh: New file.
33604
33605 * geninitheader.sh: Likewise.
33606
33607 * commands/boot.c (grub_boot_init, grub_boot_fini): Removed.
33608 * commands/cat.c (grub_cat_init, grub_cat_fini): Likewise.
33609 * commands/cmp.c (grub_cmp_init, grub_cmp_fini): Likewise.
33610 * commands/configfile.c (grub_configfile_init)
33611 (grub_configfile_fini): Likewise.
33612 * commands/default.c (grub_default_init, grub_default_fini):
33613 Likewise.
33614 * commands/help.c (grub_help_init, grub_help_fini): Likewise.
33615 * commands/ls.c (grub_ls_init, grub_ls_fini): Likewise.
33616 * commands/search.c (grub_search_init, grub_search_fini): Likewise.
33617 * commands/terminal.c (grub_terminal_init, grub_terminal_fini):
33618 Likewise.
33619 * commands/test.c (grub_test_init, grub_test_fini): Likewise.
33620 * commands/timeout.c (grub_timeout_init, grub_timeout_fini):
33621 Likewise.
33622 * commands/i386/pc/halt.c (grub_halt_init, grub_halt_fini): Likewise.
fe6b695a 33623 * commands/ieee1275/halt.c (grub_halt_init, grub_halt_fini):
6d099807 33624 Likewise.
33625 * commands/i386/pc/reboot.c (grub_reboot_init, grub_reboot_fini):
33626 Likewise.
fe6b695a 33627 * commands/ieee1275/reboot.c (grub_reboot_init, grub_reboot_fini):
6d099807 33628 Likewise.
33629 * disk/loopback.c (grub_loop_init, grub_loop_fini): Likewise.
33630 * fs/affs.c (grub_affs_init, grub_affs_fini): Likewise.
33631 * fs/ext2.c (grub_ext2_init, grub_ext2_fini): Likewise.
33632 * fs/fat.c (grub_fat_init, grub_fat_fini): Likewise.
33633 * fs/hfs.c (grub_hfs_init, grub_hfs_fini): Likewise.
33634 * fs/iso9660.c (grub_iso9660_init, grub_iso9660_fini): Likewise.
33635 * fs/jfs.c (grub_jfs_init, grub_jfs_fini): Likewise.
33636 * fs/minix.c (grub_minix_init, grub_minix_fini): Likewise.
33637 * fs/sfs.c (grub_sfs_init, grub_sfs_fini): Likewise.
33638 * fs/ufs.c (grub_ufs_init, grub_ufs_fini): Likewise.
33639 * fs/xfs.c (grub_xfs_init, grub_xfs_fini): Likewise.
33640 * normal/main.c (grub_normal_init, grub_normal_fini): Likewise.
33641 * partmap/amiga.c (grub_amiga_partition_map_init)
33642 (grub_amiga_partition_map_fini): Likewise.
33643 * partmap/apple.c (grub_apple_partition_map_init)
33644 (grub_apple_partition_map_fini): Likewise.
33645 * partmap/pc.c (grub_pc_partition_map_init)
33646 (grub_pc_partition_map_fini): Likewise.
33647 * partmap/sun.c (grub_sun_partition_map_init,
33648 grub_sun_partition_map_fini): Likewise.
33649 * term/terminfo.c (grub_terminal_init, grub_terminal_fini):
33650 Likewise.
33651
33652 * util/grub-emu.c: Include <grub_modules_init.h>.
33653 (main): Don't initialize and de-initialize any modules directly,
33654 use `grub_init_all' and `grub_fini_all' instead.
33655
33656 * term/i386/pc/vesafb.c (grub_vesafb_init): Renamed to
33657 `grub_vesafb_mod_init'.
33658 (grub_vesafb_fini): Renamed to `grub_vesafb_mod_fini'. Updated
33659 all users.
33660 * term/i386/pc/vga.c (grub_vga_init): Renamed to
33661 `grub_vga_mod_init'. Updated all users.
33662 (grub_vga_fini): Renamed to `grub_vga_mod_fini'.
f19dbdb7 33663
6d099807 33664 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `grub_emu_init.c'.
33665 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c): New
33666 rules.
33667
33668 * include/grub/dl.h (GRUB_MOD_INIT): Add argument `name'.
33669 Generate a function to initialize the module in utilities.
33670 Updated all callers.
33671 (GRUB_MOD_FINI): Add argument `name'. Generate a function to
33672 initialize the module in utilities. Updated all callers.
33673
9046bcf0 336742005-11-09 Hollis Blanchard <hollis@penguinppc.org>
33675
33676 * term/ieee1275/ofconsole.c (grub_ofconsole_cls): Use both the ANSI
33677 escape sequence and a literal ^L to clear the screen.
33678
33679 * commands/ieee1275/suspend.c (grub_cmd_suspend): Clear the screen
33680 when returning from Open Firmware.
33681
d13ea639 336822005-11-09 Hollis Blanchard <hollis@penguinppc.org>
33683
33684 * term/ieee1275/ofconsole.c (grub_ofconsole_width): New variable.
33685 (grub_ofconsole_height): Likewise.
33686 (grub_ofconsole_putchar): If `grub_curr_x' exceeds console width,
33687 manually insert a '\n'.
33688 (grub_ofconsole_getwh): Set and return `grub_ofconsole_width' and
33689 `grub_ofconsole_height'. Return early if these are already set.
33690
a8fcf206 336912005-11-07 Vincent Pelletier <subdino2004@yahoo.fr>
33692
33693 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
33694 `commands/test.c', `fs/affs.c', `fs/sfs.c', `fs/xfs.c',
33695 `normal/execute.c', `normal/lexer.c', `io/gzio.c',
33696 `kern/parser.c', `grub_script.tab.c', `normal/function.c'
33697 and `normal/script.c'.
33698 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
33699 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
33700 (test_mod_SOURCES): New variable.
33701 (test_mod_CFLAGS): Likewise.
33702 (test_mod_LDFLAGS): Likewise.
33703 (pkgdata_MODULES): Add `test.mod'.
33704 (grub_script.tab.c): New rule.
33705 (grub_script.tab.h): Likewise.
33706
b6b32745 337072005-11-07 Marco Gerards <mgerards@xs4all.nl>
33708
33709 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
33710 `commands/test.c', `normal/execute.c', `normal/lexer.c',
33711 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
33712 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
33713 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
33714 (test_mod_SOURCES): New variable.
33715 (test_mod_CFLAGS): Likewise.
33716 (pkgdata_MODULES): Add `test.mod'.
33717 (grub_script.tab.c): New rule.
33718 (grub_script.tab.h): Likewise.
33719
daac212a 337202005-11-06 Marco Gerards <mgerards@xs4all.nl>
33721
33722 Add initial scripting support.
33723
33724 * commands/test.c: New file.
33725 * include/grub/script.h: Likewise.
33726 * normal/execute.c: Likewise.
33727 * normal/function.c: Likewise.
33728 * normal/lexer.c: Likewise.
33729 * normal/parser.y: Likewise.
33730 * normal/script.c: Likewise.
33731
33732 * configure.ac: Add `AC_PROG_YACC' test.
f19dbdb7 33733
daac212a 33734 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/test.c',
33735 `normal/execute.c', `normal/lexer.c', `grub_script.tab.c',
33736 `normal/function.c' and `normal/script.c'.
33737 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
33738 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
b6b32745 33739 (test_mod_SOURCES, test_mod_CFLAGS, test_mod_LDFLAGS): New
33740 variables.
daac212a 33741 (pkgdata_MODULES): Add `test.mod'.
33742 (grub_script.tab.c): New rule.
33743 (grub_script.tab.h): Likewise.
33744
33745 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TEST_FAILURE'.
33746
33747 * include/grub/normal.h (grub_test_init): New prototype.
33748 (grub_test_fini): Likewise.
f19dbdb7 33749
daac212a 33750 * normal/command.c: Include <grub/script.h>.
33751 (grub_command_execute): Rewritten.
f19dbdb7 33752
daac212a 33753 * util/grub-emu.c (main): Call `grub_test_init' and
33754 `grub_test_fini'.
33755
77500b2b 337562005-11-03 Hollis Blanchard <hollis@penguinppc.org>
33757
33758 * kern/powerpc/ieee1275/init.c (grub_get_rtc): Initialize `msecs'
33759 to 0.
33760 * term/ieee1275/ofconsole.c (grub_ofconsole_checkkey): Return -1 if
33761 there are no pending characters.
33762
e45deb9e 337632005-11-03 Hollis Blanchard <hollis@penguinppc.org>
33764
33765 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_get_devname): Use
33766 `grub_strndup' to drop device arguments. Replace unnecessary
33767 `grub_strndup' with `grub_strdup'.
33768
4ce32619 337692005-11-03 Hollis Blanchard <hollis@penguinppc.org>
33770
33771 * kern/term.c (grub_cls): Do not call grub_cur_term->cls() if the
33772 `debug' environment variable has been set.
33773
337742005-11-02 Hollis Blanchard <hollis@penguinppc.org>
f19dbdb7 33775
4ce32619 33776 * Makefile.in (install-local): Use $(DATA).
33777 (uninstall): Likewise.
33778 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Move grub-mkimage...
33779 (sbin_UTILITIES): ... to here.
33780 (sbin_SCRIPTS): New variable.
33781 (grub_install_SOURCES): New variable.
33782 * util/powerpc/ieee1275/grub-install.in: New file.
33783 * util/powerpc/ieee1275/grub-mkimage.c (kernel_path): Remove
33784 variable.
33785 (add_segments): Call `grub_util_get_path'.
33786
25fe6f03 337872005-10-28 Yoshinori K. Okuji <okuji@enbug.org>
33788
33789 From Timothy Baldwin:
33790 * commands/ls.c (grub_ls_list_files): Close FILE with
33791 grub_file_close.
33792 * kern/misc.c (grub_vsprintf): Terminate the string S with NUL.
33793
04ccf3ec 337942005-10-24 Marco Gerards <mgerards@xs4all.nl>
33795
33796 * include/grub/parser.h: New file.
33797
33798 * kern/parser.c: Likewise.
33799
33800 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/parser.c'.
33801 (grub_setup_SOURCES): Likewise.
33802 (grub_probefs_SOURCES): Likewise.
33803 (grub_emu_SOURCES): Likewise.
33804 (kernel_img_HEADERS): Add `parser.h'.
33805
33806 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
33807 (grub_emu_SOURCES): Add `kern/parser.c'.
33808 (grubof_SOURCES): Likewise.
33809
33810 * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
33811 (grubof_SOURCES): Add `kern/parser.c'.
33812
33813 * include/grub/misc.h (grub_split_cmdline): Removed prototype.
33814
33815 * kern/misc.c (grub_split_cmdline): Removed function.
33816
33817 * kern/rescue.c: Include <grub/parser.h>.
33818 (grub_enter_rescue_mode): Use `grub_parser_split_cmdline' instead
33819 of `grub_split_cmdline'.
33820
33821 * normal/command.c: Include <grub/parser.h>.
33822 (grub_command_execute): Use `grub_parser_split_cmdline' instead
33823 of `grub_split_cmdline'.
33824
33825 * normal/completion.c: Include <grub/parser.h>.
33826 (cmdline_state): New variable.
33827 (iterate_dir): End the filename with a quote depending on the
33828 command line state.
33829 (get_state): new function.
33830 (grub_normal_do_completion): Use `grub_parser_split_cmdline' to
33831 split the arguments and determine the current argument. When the
33832 argument string is not quoted, escape all spaces.
33833
6d8f4b0e 338342005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
33835
33836 * normal/sparc64/setjmp.S: New file.
33837
15cf03ed 338382005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
33839
33840 * include/grub/sparc64/libgcc.h: New file.
33841 * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Remove -Av9.
33842 (normal_mod_SOURCES): Use normal/sparc64/setjmp.S instead of
33843 normal/sparc64/setjmp.c.
33844
03e8661a 338452005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
33846
33847 * kern/sparc64/dl.c: Rewritten for SPARCV9 ELF.
33848 * kern/sparc64/cache.S: New file.
33849 * kern/sparc64/cache.c: Removed.
33850 * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Add -Av9.
33851 (COMMON_CFLAGS): Add -mno-app-regs. Remove -mcpu=v9 and
33852 -mtune=ultrasparc.
33853 (COMMON_LDFLAGS): Add -melf64_sparc.
33854 (grubof_HEADERS): Add sparc64/libgcc.h and machine/kernel.h.
33855 (grubof_SOURCES): Use cache.S instead of cache.c.
33856 (grubof_LDFLAGS): Add -mno-app-regs. Replace "-Xlinker
33857 --oformat -Xlinker elf64-sparc" by "-Bstatic,-melf64_sparc".
33858 (pkgdata_MODULES): Uncomment. Leave linux.mod and _linux.mod
33859 commented though.
33860 (normal_mod_SOURCES): Add normal/completion.c and normal/misc.c.
33861 (_linux_mod_SOURCES, _linux_mod_CFLAGS, linux_mod_SOURCES)
33862 (linux_mod_CFLAGS): Commented out.
33863 (_linux_mod_LDFLAGS, linux_mod_LDFLAGS): New macro, commented
33864 out because module isn't built.
33865 (fshelp_mod_LDFLAGS, fat_mod_LDFLAGS, ext2_mod_LDFLAGS)
33866 (ufs_mod_LDFLAGS, minix_mod_LDFLAGS, hfs_mod_LDFLAGS)
33867 (jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS, normal_mod_LDFLAGS)
33868 (hello_mod_LDFLAGS, boot_mod_LDFLAGS, terminal_mod_LDFLAGS)
33869 (ls_mod_LDFLAGS, cmp_mod_LDFLAGS, cat_mod_LDFLAGS)
33870 (font_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
33871 (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
33872 (suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS)
33873 (help_mod_LDFLAGS, default_mod_LDFLAGS, timeout_mod_LDFLAGS)
33874 (configfile_mod_LDFLAGS, search_mod_LDFLAGS, xfs_mod_SOURCES)
33875 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
33876 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
33877 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, gzio_mod_SOURCES)
33878 (gzio_mod_CFLAGS, gzio_mod_LDFLAGS): New macro.
33879
34eeec8a 338802005-10-20 Yoshinori K. Okuji <okuji@enbug.org>
33881
33882 * util/i386/pc/grub-probefs.c (main): Call grub_xfs_init and
33883 grub_xfs_fini. Do not call grub_hfs_init or grub_hfs_fini any
33884 longer, because HFS should not be used on PC.
33885
708367a3 338862005-10-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
33887
33888 * io/gzio.c (grub_gzio_read): Use OFFSET instead of FILE->OFFSET
33889 consistently within the loop.
33890
6fa1251a 338912005-10-15 Marco Gerards <mgerards@xs4all.nl>
33892
33893 * fs/xfs.c (grub_xfs_iterate_dir): Detect an error if part of a
33894 directory can not be read.
33895
4801580b 338962005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
33897
33898 * configure.ac (AC_INIT): Increase the version number to 1.91.
33899
33900 * DISTLIST: Added include/grub/terminfo.h, include/grub/tparm.h,
33901 include/grub/i386/pc/serial.h, term/terminfo.c, term/tparm.c and
33902 term/i386/pc/serial.c.
33903
219ad426 339042005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
33905
33906 * kern/file.c (grub_file_seek): Seeking to an offset equal to a
33907 file size must be permitted.
33908
33909 * kern/i386/pc/startup.S (multiboot_trampoline): Fix a mistake
33910 between %ah and %al.
33911
688e5699 339122005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
33913
33914 * fs/xfs.c (grub_xfs_iterate_dir): Change the type of BLK to
33915 grub_uint64_t.
33916 Call the hook with a NUL-terminated filename.
33917 (grub_xfs_mount): Use grub_be_to_cpu32 instead of
33918 grub_cpu_to_be32.
33919
33920 * kern/term.c (cursor_state): New variable.
33921 (grub_term_set_current): Reset the cursor state on a new
33922 terminal.
33923 (grub_setcursor): Rewritten to use CURSOR_STATE.
33924 (grub_getcursor): New function.
33925
33926 * include/grub/term.h (grub_getcursor): New prototype.
33927
33928 * io/gzio.c (test_header): Align BUF for accessing it as 32-bit
33929 integers on ARM. Reported by Timothy Baldwin
33930 <T.E.Baldwin99@members.leeds.ac.uk>.
33931
bb34586c 339322005-10-11 Marco Gerards <mgerards@xs4all.nl>
33933
33934 * fs/sfs.c (grub_sfs_open): Don't free `data->label' if it is not
33935 allocated.
33936 (grub_sfs_dir): Likewise.
33937
9a909877 339382005-10-09 Marco Gerards <mgerards@xs4all.nl>
33939
33940 Add support for the SFS filesystem.
33941
33942 * fs/sfs.c: New file.
33943
33944 * DISTLIST: Added `fs/sfs.c'.
33945
33946 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/sfs.c'.
33947 (grub_probefs_SOURCES): Likewise.
33948 (grub_emu_SOURCES): Likewise.
33949 (pkgdata_MODULES): Add `sfs.mod'.
33950 (sfs_mod_SOURCES): New variable.
33951 (sfs_mod_CFLAGS): Likewise.
33952 (sfs_mod_LDFLAGS): Likewise.
33953
33954 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/sfs.c'.
33955 (pkgdata_MODULES): Add `sfs.mod'.
33956 (sfs_mod_SOURCES): New variable.
33957 (sfs_mod_CFLAGS): Likewise.
33958
33959 * util/grub-emu.c (main): Call `grub_sfs_init' and
33960 `grub_sfs_fini'.
33961
33962 * include/grub/fs.h (grub_sfs_init): New prototype.
33963 (grub_sfs_fini): Likewise.
33964
57bdbde3 339652005-10-07 Marco Gerards <mgerards@xs4all.nl>
33966
33967 Add support for the AFFS filesystem.
33968
33969 * fs/affs.c: New file.
33970
33971 * DISTLIST: Added `fs/affs.c'.
33972
33973 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/affs.c'.
33974 (grub_probefs_SOURCES): Likewise.
33975 (grub_emu_SOURCES): Likewise.
33976 (pkgdata_MODULES): Add `affs.mod'.
33977 (affs_mod_SOURCES): New variable.
33978 (affs_mod_CFLAGS): Likewise.
33979 (affs_mod_LDFLAGS): Likewise.
33980
33981 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/affs.c'.
33982 (pkgdata_MODULES): Add `affs.mod'.
33983 (affs_mod_SOURCES): New variable.
33984 (affs_mod_CFLAGS): Likewise.
33985
33986 * util/grub-emu.c (main): Call `grub_affs_init' and
33987 `grub_affs_fini'.
33988
33989 * include/grub/fs.h (grub_affs_init): New prototype.
33990 (grub_affs_fini): Likewise.
33991
047b67e0 339922005-10-01 Marco Gerards <mgerards@xs4all.nl>
33993
33994 * fs/xfs.c (grub_xfs_iterate_dir): Add parentheses.
33995
59b8208a 339962005-10-01 Marco Gerards <mgerards@xs4all.nl>
33997
33998 * configure.ac: Accept `x86_64' as host_cpu. In that case add
33999 `-m32' to CFLAGS.
34000
34001 * genmk.rb (class PModule): Always use `$(#{prefix}_LDFLAGS)' when
34002 linking.
f19dbdb7 34003
59b8208a 34004 * conf/i386-pc.rmk (COMMON_CFLAGS): Add `-m32'.
34005 (COMMON_LDFLAGS): New variable.
34006 (kernel_img_LDFLAGS): Include `COMMON_FLAGS'.
34007 (_chain_mod_LDFLAGS, fshelp_mod_LDFLAGS, fat_mod_LDFLAGS)
34008 (ext2_mod_LDFLAGS, ufs_mod_LDFLAGS, minix_mod_LDFLAGS)
34009 (hfs_mod_LDFLAGS, jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS)
34010 (xfs_mod_LDFLAGS, _linux_mod_LDFLAGS, linux_mod_LDFLAGS)
34011 (normal_mod_LDFLAGS, hello_mod_LDFLAGS, boot_mod_LDFLAGS)
34012 (terminal_mod_LDFLAGS, ls_mod_LDFLAGS, cmp_mod_LDFLAGS)
34013 (cat_mod_LDFLAGS, help_mod_LDFLAGS, reboot_mod_LDFLAGS)
34014 (halt_mod_LDFLAGS, vga_mod_LDFLAGS, font_mod_LDFLAGS)
34015 (terminfo_mod_LDFLAGS, serial_mod_LDFLAGS, _multiboot_mod_LDFLAGS)
34016 (multiboot_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
34017 (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
34018 (default_mod_LDFLAGS, timeout_mod_LDFLAGS, configfile_mod_LDFLAGS)
34019 (vbe_mod_LDFLAGS, vesafb_mod_LDFLAGS, vbeinfo_mod_LDFLAGS)
34020 (vbetest_mod_LDFLAGS, search_mod_LDFLAGS, gzio_mod_LDFLAGS): New
34021 variables.
34022 (normal_mod_ASFLAGS): Add `-m32'.
34023
34024 * include/grub/types.h (grub_host_addr_t, grub_host_off_t)
34025 (grub_host_size_t, grub_host_ssize_t): New types.
34026 (grub_addr_t, grub_off_t, grub_size_t, grub_ssize_t): Make type
fe6b695a 34027 dependent of `GRUB_CPU_SIZEOF_VOID_P' instead on
59b8208a 34028 `GRUB_HOST_SIZEOF_VOID_P'.
34029
34030 * include/grub/kernel.h (struct grub_module_header): Type of
34031 member offset changed to `grub_host_off_t'. Type of member size
34032 changed to `grub_host_size_t'.
34033 (struct grub_module_info): Type of member offset changed to
34034 `grub_host_off_t'. Type of member size changed to
34035 `grub_host_size_t'.
34036
b4093103 340372005-09-29 Yoshinori K. Okuji <okuji@enbug.org>
34038
34039 Make GRUB's kernel compliant to Multiboot Specification.
f19dbdb7 34040
b4093103 34041 * kern/i386/pc/startup.S (multiboot_header): New label.
34042 (multiboot_entry): Likewise.
34043 (multiboot_trampoline): Likewise.
34044
34045 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
34046 Increased to 0x4A0.
34047
34048 * fs/xfs.c (grub_xfs_iterate_dir): Fix a syntax error. You may not
34049 put parentheses after a question mark.
34050 [!GRUB_UTIL] (my_mod): New variable.
34051
34052 * util/grub-emu.c (main): Call grub_xfs_init and grub_xfs_fini.
34053
b2499b29 340542005-09-28 Marco Gerards <mgerards@xs4all.nl>
34055
34056 Adds support for the XFS filesystem. Btrees are not supported
34057 yet.
34058
34059 * fs/xfs.c: New file.
34060
34061 * DISTLIST: Added `fs/xfs.c'.
34062
34063 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/xfs.c'.
34064 (grub_probefs_SOURCES): Likewise.
34065 (grub_emu_SOURCES): Likewise.
34066 (pkgdata_MODULES): Add `xfs.mod'.
34067 (xfs_mod_SOURCES): New variable.
34068 (xfs_mod_CFLAGS): Likewise.
34069
34070 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/xfs.c'.
34071 (pkgdata_MODULES): Add `xfs.mod'.
34072 (xfs_mod_SOURCES): New variable.
34073 (xfs_mod_CFLAGS): Likewise.
34074
34075 * util/grub-emu.c (main): Call `grub_xfs_init' and
34076 `grub_xfs_fini'.
34077
34078 * include/grub/fs.h (grub_xfs_init): New prototype.
34079 (grub_xfs_fini): Likewise.
34080
f19dbdb7 34081
83d37a62 340822005-09-18 Vesa Jaaskelainen <chaac@nic.fi>
34083
34084 * video/i386/pc/vbe.c (grub_vbe_set_video_mode): In indexed
34085 color modes, allow greater than 16 colors to be configured as
34086 a default palette.
34087
47d2d65e 340882005-09-03 Yoshinori K. Okuji <okuji@enbug.org>
34089
34090 * normal/completion.c (complete_arguments): Add the qualifier
34091 const into OPTIONS.
34092
34093 From Omniflux <omniflux+lists@omniflux.com>:
34094 * include/grub/terminfo.h: New file.
34095 * include/grub/tparm.h: Likewise.
34096 * include/grub/i386/pc/serial.h: Likewise.
34097 * term/terminfo.c: Likewise.
34098 * term/tparm.c: Likewise.
34099 * term/i386/pc/serial.c: Likewise.
34100 * conf/i386-pc.rmk (pkgdata_MODULES): Added terminfo.mod and
34101 serial.mod.
34102 (terminfo_mod_SOURCES): New variable.
34103 (terminfo_mod_CFLAGS): Likewise.
34104 (serial_mod_SOURCES): Likewise.
34105 (serial_mod_CFLAGS): Likewise.
34106
48b671ff 341072005-08-31 Yoshinori K. Okuji <okuji@enbug.org>
34108
34109 * DISTLIST: Replaced boot/powerpc/ieee1275/crt0.S and
34110 boot/powerpc/ieee1275/cmain.c with kern/powerpc/ieee1275/crt0.S
34111 and kern/powerpc/ieee1275/cmain.c, respectively.
34112
34113 * boot/powerpc/ieee1275/crt0.S: Moved to ...
34114 * kern/powerpc/ieee1275/crt0.S: ... here.
34115
34116 * boot/powerpc/ieee1275/cmain.c: Moved to ...
34117 * kern/powerpc/ieee1275/cmain.c: ... here.
f19dbdb7 34118
48b671ff 34119 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Use
34120 kern/powerpc/ieee1275/crt0.S and kern/powerpc/ieee1275/cmain.c
34121 instead of boot/powerpc/ieee1275/crt0.S and
34122 boot/powerpc/ieee1275/cmain.c, respectively.
34123
34124 * boot/i386/pc/boot.S (lba_mode): Do not store the total number of
34125 sectors. It was not used anyway.
34126
09fc77a7 341272005-08-30 Hollis Blanchard <hollis@penguinppc.org>
34128
34129 * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): Fix
34130 `unused parameter' warning.
34131
003789c7 341322005-08-30 Hollis Blanchard <hollis@penguinppc.org>
34133
34134 * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): New
34135 function.
34136 (grub_ofconsole_term): Specify grub_ofconsole_getcharwidth as
34137 getcharwidth.
34138
67f44c86 341392005-08-28 Marco Gerards <metgerards@student.han.nl>
34140
34141 * include/grub/normal.h (enum grub_completion_type): Added
34142 `GRUB_COMPLETION_TYPE_ARGUMENT'.
34143
34144 * normal/cmdline.c (print_completion): Handle
34145 the `GRUB_COMPLETION_TYPE_ARGUMENT' type.
34146 * normal/menu_entry.c (store_completion): Likewise.
34147
34148 * normal/completion.c (complete_arguments): New function.
34149 (grub_normal_do_completion): Call `complete_arguments' when the
34150 current words start with a dash.
34151
0b5abe02 341522005-08-27 Marco Gerards <metgerards@student.han.nl>
34153
34154 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Fix typo (use
34155 `gzio.mod' instead of `io.mod').
34156
d9864ee1 341572005-08-22 Yoshinori K. Okuji <okuji@enbug.org>
34158
34159 * gendistlist.sh (EXTRA_DISTFILES): Added genfslist.sh.
34160 (DISTDIRS): Added io and video.
34161 Rewrite the search routine to make an output consistently.
34162
34163 * DISTLIST: Added conf/sparc64-ieee1275.mk,
34164 conf/sparc64-ieee1275.rmk, include/grub/gzio.h,
34165 include/grub/ieee1275/ieee1275.h, include/grub/ieee1275/ofdisk.h,
34166 io/gzio.c, kern/sparc64/cache.c, kern/sparc64/dl.c,
34167 kern/sparc64/ieee1275/init.c, kern/sparc64/ieee1275/openfw.c and
34168 util/powerpc/ieee1275/misc.c.
f19dbdb7 34169
d9864ee1 34170 * include/grub/gzio.h: New file.
34171 * io/gzio.c: Likewise.
f19dbdb7 34172
d9864ee1 34173 * kern/file.c (grub_file_close): Call grub_device_close only if
34174 FILE->DEVICE is not NULL.
34175
34176 * include/grub/mm.h [!NULL] (NULL): New macro.
34177
34178 * include/grub/err.h (GRUB_ERR_BAD_GZIP_DATA): New constant.
34179
34180 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added io/gzip.c.
34181 (pkgdata_MODULES): Added gzio.mod.
34182 (gzio_mod_SOURCES): New variable.
34183 (gzio_mod_CFLAGS): Likewise.
34184
34185 * conf/i386-pc.rmk (grub_emu_SOURCES): Added io/gzip.c.
34186 (pkgdata_MODULES): Added gzio.mod.
34187 (gzio_mod_SOURCES): New variable.
34188 (gzio_mod_CFLAGS): Likewise.
34189
34190 * commands/cat.c: Include grub/gzio.h.
34191 (grub_cmd_cat): Use grub_gzfile_open instead of
34192 grub_file_open.
f19dbdb7 34193
d9864ee1 34194 * commands/cmp.c: Include grub/gzio.h.
34195 (grub_cmd_cmp): Use grub_gzfile_open instead of
34196 grub_file_open.
34197
34198 * loader/i386/pc/multiboot.c: Include grub/gzio.h.
34199 (grub_rescue_cmd_multiboot): Use grub_gzfile_open instead of
34200 grub_file_open.
34201 (grub_rescue_cmd_module): Likewise.
34202
fa46f4b5 342032005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
34204
34205 * conf/sparc64-ieee1275.rmk (grubof_SOURCES): The first file must be
34206 kern/sparc64/ieee1275/init.c because it contains _start.
34207 * conf/sparc64-ieee1275.mk: Generated from conf/sparc64-ieee1275.rmk.
34208
e9211b5d 342092005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
34210
34211 * configure.ac: Add support for sparc64 host with ieee1275
34212 firmware.
34213 * configure: Generated from configure.ac.
34214 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Use grub_ssize_t
34215 instead of int.
34216 (grub_ofdisk_read): Likewise.
34217 (grub_ofdisk_open): Use %p to print pointer values, and cast the
34218 pointers as (void *) to remove a warning.
34219 (grub_ofdisk_close): Likewise.
34220 (grub_ofdisk_read): Likewise.
34221 * kern/ieee1275/ieee1275.c (grub_ieee1275_exit): This never
34222 returns, so make it return void to remove a warning.
34223 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_exit):
34224 Corresponding prototype change.
34225 * kern/mm.c (grub_mm_init_region): Use %p to print pointer
34226 values, and cast the pointers as (void *) to remove a warning.
34227 (grub_mm_dump): Likewise.
34228 * conf/sparc64-ieee1275.mk: New file.
34229 * conf/sparc64-ieee1275.rmk: Likewise.
34230 * include/grub/sparc64/setjmp.h: Likewise.
34231 * include/grub/sparc64/types.h: Likewise.
34232 * include/grub/sparc64/ieee1275/console.h: Likewise.
34233 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
34234 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
34235 * include/grub/sparc64/ieee1275/time.h: Likewise.
34236 * kern/sparc64/cache.c: Likewise.
34237 * kern/sparc64/dl.c: Likewise.
34238 * kern/sparc64/ieee1275/init.c: Likewise.
34239 * kern/sparc64/ieee1275/openfw.c: Likewise.
34240
385c6a92 342412005-08-21 Yoshinori K. Okuji <okuji@enbug.org>
34242
34243 * util/console.c (grub_ncurses_putchar): If C is greater than
34244 0x7f, set C to a question mark.
34245 (grub_ncurses_getcharwidth): New function.
34246 (grub_ncurses_term): Specify grub_ncurses_getcharwidth as
34247 getcharwidth.
34248
34249 * normal/menu.c (print_entry): Made aware of Unicode. First,
34250 convert TITLE to UCS-4, and predict the cursor position by
34251 grub_getcharwidth.
34252
34253 * include/grub/misc.h (grub_utf8_to_ucs4): Specify the qualifier
34254 const to SRC.
34255 * kern/misc.c (grub_utf16_to_utf8): Likewise.
34256
16ccb8b1 342572005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
34258
34259 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Specify
34260 the boot file by the option BOOT_IMAGE. Use grub_stpcpy instead of
34261 grub_strcat.
34262
34263 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Specify the boot
34264 file by the option BOOT_IMAGE. Use grub_stpcpy instead of
34265 grub_strcpy and grub_strlen. Take it into account that a space
34266 character is inserted as a delimiter.
34267
6a85ce79 342682005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
34269
34270 * partmap/pc.c (pc_partition_map_iterate): Include the value of an
fe6b695a 34271 invalid magic in the error.
6a85ce79 34272
34273 * commands/search.c: New file.
f19dbdb7 34274
6a85ce79 34275 * util/grub-emu.c (main): Call grub_search_init and
34276 grub_search_fini.
34277
34278 * kern/rescue.c (grub_rescue_print_disks): Removed.
34279 (grub_rescue_print_devices): New function.
34280 (grub_rescue_cmd_ls): Use grub_device_iterate with
34281 grub_rescue_print_devices instead of grub_disk_dev_iterate with
34282 grub_rescue_print_disks.
34283
34284 * kern/partition.c (grub_partition_iterate): Return the result of
34285 PARTMAP->ITERATE instead of GRUB_ERRNO.
34286
34287 * kern/device.c: Include grub/partition.h.
34288 (grub_device_iterate): New function.
34289
34290 * include/grub/partition.h (grub_partition_iterate): Return int
34291 instead of grub_err_t.
34292
34293 * include/grub/normal.h [GRUB_UTIL] (grub_search_init): New
34294 prototype.
34295 [GRUB_UTIL] (grub_search_fini): Likewise.
34296
34297 * include/grub/device.h (grub_device_iterate): New prototype.
34298
34299 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
34300 commands/search.c.
34301 (pkgdata_MODULES): Added search.mod.
34302 (search_mod_SOURCES): New variable.
34303 (search_mod_CFLAGS): Likewise.
34304
34305 * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/search.c.
34306 (pkgdata_MODULES): Added search.mod.
34307 (search_mod_SOURCES): New variable.
34308 (search_mod_CFLAGS): Likewise.
34309
34310 * commands/ls.c (grub_ls_list_disks): Renamed to ...
34311 (grub_ls_list_devices): ... this, and use grub_device_iterate.
34312 All callers changed.
34313
34314 * DISTLIST: Added commands/search.c.
34315
ef095434 343162005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
34317
34318 * kern/term.c (grub_putchar): Use grub_utf8_to_ucs4 for the
34319 conversion.
34320 (grub_getcharwidth): New function.
34321
34322 * kern/misc.c (grub_utf8_to_ucs4): New function.
34323
34324 * include/grub/term.h (struct grub_term): Added a new member
34325 "getcharwidth".
34326 (grub_getcharwidth): New prototype.
34327
34328 * include/grub/misc.h (grub_utf8_to_ucs4): New prototype.
34329
34330 * term/i386/pc/console.c (map_char): New function. Segregated from
34331 grub_console_putchar.
34332 (grub_console_putchar): Use map_char.
34333 (grub_console_getcharwidth): New function.
34334 (grub_console_term): Specified grub_console_getcharwidth as
34335 getcharwidth.
34336
34337 * term/i386/pc/vga.c (grub_vga_getcharwidth): New function.
34338 (grub_vga_term): Specified grub_vga_getcharwidth as getcharwidth.
34339
34340 * term/i386/pc/vesafb.c (grub_virtual_screen_setup): Return
34341 GRUB_ERRNO.
34342 (grub_vesafb_init): Do not use RC. Instead, use GRUB_ERRNO. Rely
34343 on grub_strtoul completely.
34344 (write_char): Declare local variables in the beginning of the
34345 function.
34346 (grub_vesafb_getcharwidth): New function.
34347 (grub_vesafb_term): Specified grub_vesafb_getcharwidth as
34348 getcharwidth.
34349
1f0a95e4 343502005-08-19 Yoshinori K. Okuji <okuji@enbug.org>
34351
34352 * DISTLIST: Replace commands/i386/pc/vbe_list_modes.c and
34353 commands/i386/pc/vbe_test.c with commands/i386/pc/vbeinfo.c and
34354 commands/i386/pc/vbetest.c.
34355
34356 * video/i386/pc/vbe.c (grub_vbe_probe): If INFOBLOCK is not NULL,
34357 call grub_vbe_get_controller_info again, because the returned
34358 information is volatile.
34359 (grub_vbe_set_video_mode): Mostly rewritten.
34360 (grub_vbe_get_video_mode): Use grub_vbe_probe and use
34361 grub_vbe_status_t correctly.
34362 (grub_vbe_get_video_mode_info): Likewise.
34363 (grub_vbe_set_pixel_rgb): Use a switch statement rather than
34364 several if statements.
34365
34366 * commands/i386/pc/vbe_list_modes.c: Renamed to ...
34367 * commands/i386/pc/vbeinfo.c: ... this.
34368
34369 * commands/i386/pc/vbe_test.c: Renamed to ...
34370 * commands/i386/pc/vbetest.c: ... this.
34371
34372 * commands/i386/pc/vbeinfo.c (grub_cmd_vbe_list_modes): Renamed to
34373 ...
34374 (grub_cmd_vbeinfo): ... this. Save video modes before
34375 iterating. Skip a video mode, if it is not available, not enough
34376 information is given or it is monochrome. Show the memory
34377 model. Leave the interpretation of MODEVAR to grub_strtoul
34378 completely.
34379 (GRUB_MOD_INIT): Rename vbe_list_modes to vbeinfo.
34380 (GRUB_MOD_FINI): Likewise.
34381
34382 * commands/i386/pc/vbetest.c (grub_cmd_vbe_test): Renamed to ...
34383 (grub_cmd_vbetest): ... this. Don't print unnecessarily. Use
34384 grub_err_t instead of grub_uint32_t. Don't use SPTR. Remove a
34385 duplicated grub_env_get. Leave the interpretation of MODEVAR to
34386 grub_strtoul completely.
34387 (real2pm): Removed.
34388 (GRUB_MOD_INIT): Rename vbe_test to vbetest.
34389 (GRUB_MOD_FINI): Likewise.
34390
34391 * normal/misc.c: Include grub/mm.h.
34392
34393 * conf/i386-pc.rmk (pkgdata_MODULES): Replaced vbe_test.mod and
34394 vbe_list_modes with vbetest.mod and vbeinfo.mod.
34395 (vbe_list_modes_mod_SOURCES): Removed.
34396 (vbe_list_modes_mod_CFLAGS): Likewise.
34397 (vbe_test_mod_SOURCES): Likewise.
34398 (vbe_test_mod_CFLAGS): Likewise.
34399 (vbeinfo_mod_SOURCES): New variable.
34400 (vbeinfo_mod_CFLAGS): Likewise.
34401 (vbetest_mod_SOURCES): Likewise.
34402 (vbetest_mod_CFLAGS): Likewise.
34403
992ffbbe 344042005-08-18 Yoshinori K. Okuji <okuji@enbug.org>
34405
34406 * normal/misc.c: New file.
34407
34408 * DISTLIST: Added normal/misc.c.
f19dbdb7 34409
992ffbbe 34410 * partmap/amiga.c (amiga_partition_map_iterate): Add an argument
34411 DISK to HOOK. Call HOOK with DISK.
34412 * partmap/apple.c (apple_partition_map_iterate): Likewise.
34413 * partmap/pc.c (pc_partition_map_iterate): Likewise.
34414 * partmap/sun.c (sun_partition_map_iterate): Likewise.
34415
34416 * normal/menu_entry.c (struct screen): Added a new member
34417 "completion_shown".
34418 (completion_buffer): New global variable.
34419 (make_screen): Set SCREEN->COMPLETION_SHOWN to zero.
34420 (store_completion): New function.
34421 (complete): Likewise.
34422 (clear_completions): Likewise.
34423 (grub_menu_entry_run): If SCREEN->COMPLETION_SHOWN is non-zero,
34424 call clear_completions and reset SCREEN->COMPLETION_SHOWN. If C is
34425 a tab, call complete.
34426
34427 * normal/completion.c (disk_dev): Removed.
34428 (print_simple_completion): Likewise.
34429 (print_partition_completion): Likewise.
34430 (print_func): New global variable.
34431 (add_completion): Do not take the arguments WHAT or PRINT any
34432 longer. Added a new argument TYPE. Instead of printing directly,
34433 call PRINT_FUNC if not NULL.
34434 All callers changed.
34435 (complete_device): Use a local variable DEV instead of
34436 DISK_DEV. Do not move CURRENT_WORD to the end of a device name.
34437 (grub_normal_do_completion): Take a new argument HOOK. Do not
34438 initialize DISK_DEV. Initialize PRINT_FUNC to HOOK. If RET is an
34439 empty string, return NULL instead.
34440 All callers changed.
34441
34442 * normal/cmdline.c (print_completion): New function.
34443
34444 * kern/partition.c (grub_partition_iterate): Add an argument DISK
34445 to HOOK.
34446 All callers changed.
34447
34448 * kern/disk.c (grub_print_partinfo): Removed.
34449
34450 * include/grub/partition.h (struct grub_partition_map): Add a new
34451 argument DISK into HOOK of ITERATE.
34452 (grub_partition_iterate): Add a new argument DISK to HOOK.
34453
34454 * include/grub/normal.h (enum grub_completion_type): New enum.
34455 (grub_completion_type_t): New type.
34456 (GRUB_COMPLETION_TYPE_COMMAND): New constant.
34457 (GRUB_COMPLETION_TYPE_DEVICE): Likewise.
34458 (GRUB_COMPLETION_TYPE_PARTITION): Likewise.
34459 (GRUB_COMPLETION_TYPE_FILE): Likewise.
34460 (grub_normal_do_completion): Added a new argument HOOK.
34461 (grub_normal_print_device_info): New prototype.
34462
34463 * include/grub/disk.h (grub_print_partinfo): Removed.
34464
34465 * conf/i386-pc.rmk (grub_emu_SOURCES): Added normal/misc.c.
34466 (normal_mod_SOURCES): Likewise.
34467 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
34468 (normal_mod_SOURCES): Likewise.
34469
34470 * commands/ls.c (grub_ls_list_disks): Use
34471 grub_normal_print_device_info instead of grub_print_partinfo. Free
34472 PNAME.
34473 (grub_ls_list_files): Use grub_normal_print_device_info instead of
34474 duplicating the code.
34475
0bd41162 344762005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
34477
34478 * commands/i386/pc/vbe_list_modes.c: Update source formatting to
f19dbdb7 34479 follow GCS more precisely.
34480 * commands/i386/pc/vbe_test.c: Likewise.
34481 * include/grub/i386/pc/vbe.h: Likewise.
34482 * term/i386/pc/vesafb.c: Likewise.
34483 * video/i386/pc/vbe.c: Likewise.
0bd41162 34484
6323696a 344852005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
34486
34487 * DISTLIST: Added term/i386/pc/vesafb.c
34488 DISTLIST: Added video/i386/pc/vbe.c
34489 DISTLIST: Added commands/i386/pc/vbe_list_modes.c.
34490 DISTLIST: Added commands/i386/pc/vbe_test.c.
34491 * commands/i386/pc/vbe_list_modes.c: New file.
34492 * commands/i386/pc/vbe_test.c: Likewise.
34493 * term/i386/pc/vesafb.c: Likewise.
34494 * video/i386/pc/vbe.c: Likewise.
34495 * include/grub/i386/pc/vbe.h (GRUB_VBE_DEFAULT_VIDEO_MODE): Added define.
34496 (grub_vbe_probe) Added prototype.
34497 (grub_vbe_set_video_mode) Likewise.
34498 (grub_vbe_get_video_mode) Likewise.
34499 (grub_vbe_get_video_mode_info) Likewise.
34500 (grub_vbe_set_pixel_rgb) Likewise.
34501 (grub_vbe_set_pixel_index) Likewise.
34502 * conf/i386-pc.rmk (pkgdata_MODULES): Added vbe.mod.
34503 (pkgdata_MODULES): Added vesafb.mod.
34504 (pkgdata_MODULES): Added vbe_list_modes.mod.
34505 (pkgdata_MODULES): Added vbe_test.mod.
34506 (vbe_mod_SOURCES): Added.
34507 (vbe_mod_CFLAGS): Likewise.
34508 (vesafb_mod_SOURCES): Likewise.
34509 (vesafb_mod_CFLAGS): Likewise.
34510 (vbe_list_modes_mod_SOURCES): Likewise.
34511 (vbe_list_modes_mod_CFLAGS): Likewise.
34512 (vbe_test_mod_SOURCES): Likewise.
34513 (vbe_test_mod_CFLAGS): Likewise.
34514
0a74e62f 345152005-08-14 Yoshinori K. Okuji <okuji@enbug.org>
34516
0a74e62f 34517 * normal/command.c (grub_command_execute): If INTERACTIVE is
34518 false and GRUB_COMMAND_FLAG_NO_ECHO is not specified, print
34519 CMDLINE. Disable the pager if INTERACTIVE is true.
34520 All callers are changed.
34521
34522 * normal/main.c (grub_normal_execute): Read command.lst and fs.lst
34523 before reading a config file.
34524 * normal/main.c (read_config_file): Even if a command is not
34525 found, register it if it is within an entry.
34526
34527 * util/grub-emu.c: Include sys/types.h and unistd.h.
34528 (options): Added --hold.
34529 (struct arguments): Added a new member "hold".
34530 (parse_opt): If KEY is 'H', set ARGS->HOLD to ARG or -1 if ARG is
34531 missing.
34532 (main): Initialize ARGS.HOLD to zero. Wait until ARGS.HOLD is
34533 cleared by a debugger, if it is not zero.
34534
34535 * include/grub/normal.h (grub_command_execute): Add an argument
34536 INTERACTIVE.
34537
e51f85ae 345382005-08-14 Vesa Jaaskelainen <chaac@nic.fi>
34539
34540 * DISTLIST: Added include/grub/i386/pc/vbe.h.
34541
e9c6f39b 345422005-08-13 Yoshinori K. Okuji <okuji@enbug.org>
34543
34544 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Replace the test
34545 program with another one, because the old one didn't detect a bug
34546 in gcc-3.4. Always use regparm 2, because the new test is still
34547 not enough for gcc-4.0. Someone must investigate a simple test
34548 case which detects a bug in gcc-4.0.
34549
8de3495c 345502005-08-12 Yoshinori K. Okuji <okuji@enbug.org>
34551
34552 * DISTLIST: Added normal/completion.c.
34553
34554 * normal/completion.c: New file.
f19dbdb7 34555
8de3495c 34556 * term/i386/pc/console.c (grub_console_getwh): New function.
34557 (grub_console_term): Assign grub_console_getwh to getwh.
34558
34559 * normal/cmdline.c (grub_tab_complete): Removed. Now the same
34560 function is defined in normal/completion.c as
34561 grub_normal_do_completion.
34562 (grub_cmdline_get): Use grub_normal_do_completion instead of
34563 grub_tab_complete.
34564
34565 * kern/partition.c (grub_partition_map_iterate): Return 1 if HOOK
34566 returns non-zero, otherwise return 0.
34567 (grub_partition_iterate): First, probe the partition map. Then,
34568 call ITERATE only for this partition map.
34569
34570 * kern/misc.c (grub_strncmp): Rewritten.
34571
34572 * kern/disk.c (grub_disk_dev_iterate): Return 1 if P->ITERATE
34573 returns non-zero. Otherwise return 0.
34574
34575 * include/grub/partition.h (grub_partition_map_iterate): Return
34576 int instead of void.
34577
34578 * include/grub/normal.h (grub_normal_do_completion): New prototype.
34579
34580 * include/grub/misc.h (grub_strncmp): Change the type of N to
34581 grub_size_t.
34582
34583 * include/grub/disk.h (grub_disk_dev_iterate): Return int instead
34584 of void.
34585
34586 * normal/menu.c (draw_border): Cast GRUB_TERM_BORDER_WIDTH to
fe6b695a 34587 unsigned explicitly before comparing it with I.
8de3495c 34588
34589 * kern/main.c (grub_env_write_root): Add the attribute unused into
34590 VAR.
34591
34592 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
34593 normal/completion.c.
34594 (normal_mod_SOURCES): Likewise.
34595 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
34596 (normal_mod_SOURCES): Likewise.
34597
34598 * normal/command.c (grub_iterate_commands): If ITERATE returns
34599 non-zero, return one immediately.
34600
e85e144b 346012005-08-09 Vesa Jaaskelainen <chaac@nic.fi>
34602
34603 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vbe.h.
34604 * kern/i386/pc/startup.S: Updated Global Descriptor table's
34605 descriptions.
34606 (grub_vbe_get_controller_info): New function.
34607 (grub_vbe_get_mode_info): Likewise.
34608 (grub_vbe_set_mode): Likewise.
34609 (grub_vbe_get_mode): Likewise.
34610 (grub_vbe_set_memory_window): Likewise.
34611 (grub_vbe_get_memory_window): Likewise.
34612 (grub_vbe_set_scanline_length): Likewise.
34613 (grub_vbe_get_scanline_length): Likewise.
34614 (grub_vbe_set_display_start): Likewise.
34615 (grub_vbe_get_display_start): Likewise.
34616 (grub_vbe_set_palette_data): Likewise.
34617 * include/grub/i386/pc/vbe.h: New file.
34618
c46153d2 346192005-08-08 Hollis Blanchard <hollis@penguinppc.org>
34620
34621 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
34622 kern/ieee1275/of.c with kern/ieee1275/ieee1275.c.
34623 * DISTLIST: Likewise.
34624 * kern/ieee1275/of.c: Moved to ...
34625 * kern/ieee1275/ieee1275.c: ... here.
34626
0cb90c45 346272005-08-08 Hollis Blanchard <hollis@penguinppc.org>
34628
34629 * term/ieee1275/ofconsole.c: Include <grub/mm.h>.
34630 (grub_ofconsole_getwh): Cast -1 to type grub_ieee1275_ihandle_t.
34631 Pass 0 as `end' parameter to grub_strtoul().
34632
a19fb360 346332005-08-08 Hollis Blanchard <hollis@penguinppc.org>
34634
34635 * include/grub/powerpc/ieee1275/console.h: Do not include
34636 <grub/types.h>. Do not include <grub/symbol.h>. Remove ASM_FILE
34637 ifdef.
34638 (grub_console_cur_color): Remove i386-specific prototype.
34639 (grub_console_real_putchar): Likewise.
34640 (grub_console_checkkey): Likewise.
34641 (grub_console_getkey): Likewise.
34642 (grub_console_getxy): Likewise.
34643 (grub_console_gotoxy): Likewise.
34644 (grub_console_cls): Likewise.
34645 (grub_console_setcursor): Likewise.
34646 * kern/powerpc/ieee1275/init.c: Don't include <grub/console.h>.
34647 Include <grub/machine/console.h>.
34648 * term/ieee1275/ofconsole.c: Likewise.
34649
4ac9bd04 346502005-08-08 Yoshinori K. Okuji <okuji@enbug.org>
34651
34652 * Makefile.in (LIBLZO): New variable.
34653
34654 * configure.ac: Check for LZO version 2.
34655
34656 * util/i386/pc/grub-mkimage.c [HAVE_LZO_LZO1X_H]: Include
34657 lzo/lzo1x.h instead of lzo1x.h.
34658
34659 * conf/i386-pc.rmk (grub_mkimage_LDFLAGS): Use $(LIBLZO) instead
34660 of -llzo.
34661
34662 * util/i386/pc/grub-setup.c (main): Do not free PREFIX
34663 twice. Reported by Vladimir Serbinenko <phcoder@gmail.com>.
34664
34665 * partmap/pc.c (pc_partition_map_probe): Restore P->DATA after
34666 copying the data from PARTITION to P.
34667
f4917dfd 346682005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
34669
34670 * kern/rescue.c (grub_rescue_cmd_rmmod): If the reference count is
34671 negative, unload the module.
34672
34673 * util/i386/pc/grub-setup.c (setup): The name of the PC partition
34674 map is "pc_partition_map" but not "pc".
34675 (usage): Fix the description. The options are --boot-image and
34676 --core-image but not --boot-file or --core-file.
34677 (main): If not specified explicitly, make BOOT_FILE and CORE_FILE
34678 based on DEFAULT_BOOT_FILE and DEFAULT_CORE_FILE with DIR or
34679 DEFAULT_DIRECTORY.
34680
34681 * util/i386/pc/grub-install.in: Do not specify --boot-file or
34682 --core-file. Specify INSTALL_DEVICE as an argument.
34683
34684 * util/console.c: Include config.h.
34685 [HAVE_NCURSeS_CURSES_H]: Include ncurses/curses.h.
34686 [HAVE_NCURSES_H]: Include ncurses.h.
34687 [HAVE_CURSES_H]: Include curses.h.
34688 [!A_NORMAL] (A_NORMAL): Defined as zero.
34689 [!A_STANDOUT] (A_STANDOUT): Likewise.
34690
34691 * conf/i386-pc.rmk (grub_emu_LDFLAGS): Use $(LIBCURSES) instead of
34692 -lncurses.
34693 * conf/powerpc-ieee1275.rmk (grub_emu_LDFLAGS): Likewise.
34694
34695 * configure.ac: Check for curses libraries and headers.
34696
34697 * Makefile.in (LIBCURSES): New variable.
34698
34699 * genmk.rb (Script::rule): Set the executable bits.
34700
34701 * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): The
34702 name of the PC partition map is "pc_partition_map" but not "pc".
34703
0e143073 347042005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
34705
34706 * util/i386/pc/grub-install.in (grub_probefs): New variable.
34707 (modules): Likewise.
34708 (usage): Added descriptions for --modules and --grub-probefs.
34709 Handle --modules and --grub-probefs. Save the arguments in MODULES
34710 and GRUB_PROBEFS, respectively.
34711 Auto-detect a filesystem module against GRUBDIR. If the result is
34712 empty and modules are not specified explicitly, abort the
34713 installation. Add the result to MODULES.
34714
34715 * DISTLIST: Removed boot/powerpc/ieee1275/ieee1275.c,
34716 disk/powerpc/ieee1275/ofdisk.c,
34717 include/grub/powerpc/ieee1275/init.h and
34718 term/powerpc/ieee1275/ofconsole.c.
34719 Added disk/ieee1275/ofdisk.c, kern/ieee1275/of.c and
34720 term/ieee1275/ofconsole.c.
34721
34722 * include/grub/powerpc/ieee1275/console.h: Resurrected.
34723
34724 * COPYING: Upgraded to the latest version. Only the address of the
34725 FSF office has changed.
f19dbdb7 34726
efd6e6d5 347272005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
34728
34729 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
34730 kern/ieee1275.c with kern/ieee1275/of.c.
34731
34732 * kern/ieee1275.c: Moved to ...
34733 * kern/ieee1275/of.c: ... here.
34734
8ceafda2 347352005-08-06 Yoshinori K. Okuji <okuji@enbug.org>
34736
34737 * conf/i386-pc.rmk (kernel_img_HEADERS): Reordered for
fe6b695a 34738 readability.
8ceafda2 34739
34740 * config.guess: Updated to the latest version from gnulib.
34741 * config.sub: Likewise.
34742 * install.sh: Likewise.
34743 * mkinstalldirs: Likewise.
34744
34745 * include/grub/console.h: Removed. This file is arch-specific. Do
34746 not put this in include/grub.
34747
34748 * include/grub/i386/pc/console.h: Resurrected.
34749
34750 * util/console.c: Include grub/machine/console.h instead of
34751 grub/console.h.
34752 * util/grub-emu.c: Likewise.
34753
267f6cd9 347542005-08-04 Marco Gerards <metgerards@student.han.nl>
34755
34756 * kern/term.c (grub_putcode): Use `grub_getwh' instead of
34757 hardcoded value.
f19dbdb7 34758
267f6cd9 34759 From Vincent Pelletier <subdino2004@yahoo.fr>
34760 * include/grub/term.h (GRUB_TERM_WIDTH, GRUB_TERM_HEIGHT):
34761 Redefined to use grub_getwh.
34762 (grub_term): New member named getwh.
34763 (grub_getwh): New prototype.
34764 * kern/term.c (grub_getwh): New function.
34765 * term/i386/pc/console.c (grub_console_getwh): New function.
34766 (grub_console_term): New member `getwh'.
34767 * term/i386/pc/vga.c (grub_vga_getwh): New function.
34768 (grub_vga_term): New member `getwh'.
0b5abe02 34769 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Use
267f6cd9 34770 grub_ssize_t.
34771 (grub_ofconsole_getw): New function.
34772 (grub_ofconsole_init): Use grub_ssize_t and unsigned char.
34773 (grub_ofconsole_term): New field named getwh and new initial
34774 value.
34775
3be7266d 347762005-08-03 Hollis Blanchard <hollis@penguinppc.org>
34777
34778 * include/grub/powerpc/ieee1275/ieee1275.h: Move ...
34779 * include/grub/ieee1275/ieee1275.h: ... to here. All users updated.
34780 Move `abort', `grub_reboot', and `grub_halt' prototypes ...
34781 * include/grub/powerpc/ieee1275/kernel.h: ... to here.
34782 * commands/ieee1275/halt.c: Include <grub/machine/kernel.h> instead
34783 of <grub/machine/ieee1275.h>.
34784 * commands/ieee1275/reboot.c: Likewise.
34785 * boot/powerpc/ieee1275/ieee1275.c: Move ...
34786 * kern/ieee1275.c: ... to here. All users updated. Change all
34787 parameter structs to use new type `grub_ieee1275_cell_t'.
34788 * term/powerpc/ieee1275/ofconsole.c: Move ...
34789 * term/ieee1275/ofconsole.c: ... to here. All users updated.
34790 * disk/powerpc/ieee1275/ofdisk.c: Move ...
34791 * disk/ieee1275/ofdisk.c: ... to here. All users updated.
34792 * boot/powerpc/ieee1275/cmain.c: Change `grub_ieee1275_entry_fn' type
34793 to return int.
34794 * include/grub/i386/pc/console.h: Move to include/grub/console.h.
34795 Remove unused prototypes. All users updated.
34796 * include/grub/powerpc/ieee1275/console.h: Removed.
34797 * include/grub/powerpc/ieee1275/ieee1275.h: Define
34798 `grub_ieee1275_cell_t'.
34799 * kern/powerpc/ieee1275/openfw.c: Include <grub/machine/kernel.h>.
34800 Cast comparisons with -1 to the correct type.
34801 * loader/powerpc/ieee1275/linux.c (kernel_entry_t): Change parameter
34802 type to match `grub_ieee1275_entry_fn'.
34803
8b5f3938 348042005-08-01 Yoshinori K. Okuji <okuji@enbug.org>
34805
34806 * DISTLIST: Added util/i386/pc/grub-probefs.c.
34807
34808 * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-probefs.
34809 (grub_setup_SOURCES): Removed partmap/amiga.c, partmap/apple.c and
34810 partmap/sun.c.
34811 (grub_probefs_SOURCES): New variable.
34812
34813 * util/i386/pc/grub-probefs.c: New file.
34814
34815 * util/i386/pc/grub-setup.c (main): Call
34816 grub_pc_partition_map_init, grub_ufs_init, grub_minix_init,
34817 grub_hfs_init and grub_jfs_init to initialize the system. Call
34818 grub_ufs_fini, grub_minix_fini, grub_hfs_fini, grub_jfs_init and
34819 grub_pc_partition_map_fini to finish the system.
34820
ea409713 348212005-07-31 Yoshinori K. Okuji <okuji@enbug.org>
34822
34823 * loader/i386/pc/multiboot.c (grub_multiboot_is_elf32): New
34824 function.
34825 (grub_multiboot_load_elf32): Likewise.
34826 (grub_multiboot_is_elf64): Likewise.
34827 (grub_multiboot_load_elf64): Likewise.
34828 (grub_multiboot_load_elf): Likewise.
34829 (grub_rescue_cmd_multiboot): Call grub_multiboot_load_elf to load
34830 an ELF32 or ELF64 file.
34831 This is based on a patch from Ruslan Nikolaev <nruslan@mail.com>.
34832
34833 From Serbinenko Vladimir <serbinenko.vova@list.ru>:
34834 * kern/disk.c (grub_print_partinfo): Check if FS->LABEL is not
34835 NULL before calling FS->LABEL.
34836 * fs/fat.c (grub_fat_dir): Initialize DIRNAME to NULL.
34837 * commands/ls.c (grub_ls_list_files): Show labels, if possible.
34838 (grub_ls_list_disks): Check if FS and FS->LABEL are not NULL
34839 before calling FS->LABEL.
34840
141a288b 348412005-07-26 Yoshinori K. Okuji <okuji@enbug.org>
34842
34843 * util/i386/pc/grub-install.in (datadir): New variable.
34844 (libdir): Removed.
34845 (pkgdatadir): New variable.
34846 (pkglibdir): Removed.
34847
0d5f8a54 348482005-07-24 Yoshinori K. Okuji <okuji@enbug.org>
34849
34850 * DISTLIST: Added util/i386/pc/grub-install.in.
34851
34852 * util/i386/pc/grub-install.in: New file.
34853
34854 * conf/i386-pc.rmk (sbin_SCRIPTS): New variable.
34855 (grub_install_SOURCES): Likewise.
34856
34857 * genmk.rb: Added support for scripts.
34858 (Script): New class.
34859 (scripts): New variable.
34860
34861 * Makefile.in (install-local): Install sbin_SCRIPTS by
34862 INSTALL_SCRIPT.
34863 (uninstall): Remove sbin_SCRIPTS.
34864
34865 * util/i386/pc/grub-setup.c (main): If the argument is not a GRUB
34866 device, try to get a GRUB device by
34867 grub_util_biosdisk_get_grub_dev.
34868 Free DEST_DEV.
34869
34870 * util/i386/pc/grub-mkdevicemap.c (usage): Remove a duplicated
34871 description for --device-map.
34872
5f968e1e 348732005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
34874
34875 Change the semantics of variable hooks. They now return strings
34876 instead of error values.
f19dbdb7 34877
5f968e1e 34878 * util/i386/pc/grub-setup.c: Include grub/env.h.
34879 (setup): Use grub_device_set_root instead of grub_env_set.
34880
34881 * kern/rescue.c (grub_rescue_cmd_root): Use grub_env_set and
34882 grub_env_get instead of grub_device_set_root and
34883 grub_device_get_root, respectively.
34884
34885 * kern/main.c (grub_env_write_root): New function.
34886 (grub_set_root_dev): Register grub_env_write_hook for "root". Use
34887 grub_env_set instead of grub_device_set_root.
34888
34889 * kern/env.c (HASHSZ): Reduced to 13, because GRUB does not need
34890 many variables.
34891 (grub_env_set): Set ENV->VALUE to the result of ENV->WRITE_HOOK
34892 rather than calling ENV->WRITE_HOOK afterwards.
34893 (grub_env_get): Return the result of ENV->READ_HOOK rather than
34894 passing a pointer of a pointer.
34895 (grub_register_variable_hook): Change the types of "read_hook" and
34896 "write_hook" to grub_env_read_hook_t and grub_env_write_hook_t,
34897 respectively.
34898 Allocate the default empty string on the heap, because this string
34899 may be freed later.
34900
34901 * kern/device.c: Include grub/env.h.
34902 (grub_device_set_root): Removed.
34903 (grub_device_get_root): Likewise.
34904 (grub_device_open): Use grub_env_get instead of
34905 grub_device_get_root.
34906
34907 * include/grub/env.h (grub_env_read_hook_t): New type.
34908 (grub_env_write_hook_t): Likewise.
34909 (grub_env_var): Change the types of "read_hook" and "write_hook"
34910 to grub_env_read_hook_t and grub_env_write_hook_t, respectively.
34911 (grub_register_variable_hook): Likewise.
34912
34913 * include/grub/device.h (grub_device_set_root): Removed.
34914 (grub_device_set_root): Likewise.
34915
34916 * fs/fat.c (grub_fat_dir): Make a copy of PATH in DIRNAME, and
34917 make sure that DIRNAME terminates with '/', so that
34918 grub_fat_find_dir will fail if PATH is not a directory.
34919
34920 * commands/ls.c (grub_ls_list_files): Remove the qualifier const
34921 from DIRNAME.
34922 Use the qualifier auto for print_files and print_files_long.
34923 If FS->DIR sets GRUB_ERRNO to GRUB_ERR_BAD_FILE_TYPE, try DIRNAME
34924 as a regular file.
34925 Put a newline only if there is no error.
34926 (grub_cmd_ls): Remove grub_ls_print_files, because this is not
34927 used.
34928
896f0afd 349292005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
34930
34931 * kern/partition.c (grub_partition_probe): Initialize PART to
34932 NULL. Otherwise, when no partition map is registered, this returns
34933 a garbage.
34934
b28b81b2 349352005-07-19 Yoshinori K. Okuji <okuji@enbug.org>
34936
34937 * partmap/apple.c (apple_partition_map_iterate): Check if POS
34938 equals GRUB_DISK_SECTOR_SIZE to see if the partition table is
34939 valid.
34940
5f3607e0 349412005-07-18 Yoshinori K. Okuji <okuji@enbug.org>
34942
34943 * commands/ls.c (grub_ls_list_disks): Print the filesystem
34944 information on each device, if it does not have partitions. Print
34945 "Device" instead of "Disk", because this function is not specific
34946 to disk devices.
34947
34948 * normal/main.c (grub_rescue_cmd_normal): Make the variable CONFIG
34949 static to ensure that it is put on the memory rather than a
34950 register.
34951
502c87e8 349522005-07-17 Yoshinori Okuji <okuji@enbug.org>
34953
34954 * commands/cat.c (GRUB_MOD_INIT): Use better documentation.
34955 (grub_cat_init): Likewise.
34956 * loader/i386/pc/chainloader_normal.c (GRUB_MOD_INIT): Likewise.
34957 (options): Likewise.
34958 * commands/configfile.c (GRUB_MOD_INIT): Likewise.
34959 (grub_configfile_init): Likewise.
34960 * font/manager.c (GRUB_MOD_INIT): Likewise.
34961 * commands/help.c (GRUB_MOD_INIT): Likewise.
34962 (grub_help_init): Likewise.
34963 * normal/command.c (grub_command_init): Likewise.
34964 * loader/i386/pc/linux_normal.c (GRUB_MOD_INIT): Likewise.
34965 * disk/loopback.c (grub_loop_init): Likewise.
34966 (GRUB_MOD_INIT): Likewise.
34967 * commands/ls.c (grub_ls_init): Likewise.
34968 (GRUB_MOD_INIT): Likewise.
34969 (options): Likewise.
34970 * commands/boot.c (grub_boot_init): Likewise.
34971 (GRUB_MOD_INIT): Likewise.
34972 * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Likewise.
34973 * commands/i386/pc/reboot.c (grub_reboot_init): Likewise.
34974 (GRUB_MOD_INIT): Likewise.
34975 * commands/cmp.c (grub_cmp_init): Likewise.
34976 (GRUB_MOD_INIT): Likewise.
34977
34978 * normal/arg.c: Use <> instead of "" to include header files.
34979 (SHORT_ARG_HELP): New macro.
34980 (SHORT_ARG_USAGE): Likewise.
34981 (help_options): Specify SHORT_ARG_HELP and SHORT_ARG_USAGE instead
34982 of 'h' and 'u' for help and usage, respectively. Use more GNU-like
34983 descriptions.
34984 (find_short): Check if C is 'h' or 'u' explicitly.
34985 (grub_arg_show_help): Use space characters instead of tabs. Treat
34986 SHORT_ARG_HELP and SHORT_ARG_USAGE exceptionally so that -h and -u
34987 are shown with --help and --usage only if they are not used for
34988 the command itself.
34989 (parse_option): Use SHORT_ARG_HELP and SHORT_ARG_USAGE instead of
34990 'h' and 'u'.
34991
34992 * include/grub/arg.h (struct grub_arg_option): Add the qualifier
34993 const into "longarg". Change the type of "shortarg" to int.
34994
f806d18e 349952005-07-17 Yoshinori Okuji <okuji@enbug.org>
34996
34997 * boot/i386/pc/boot.S (boot_drive_check): New label.
34998
34999 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRIVE_CHECK): New
35000 macro.
35001
35002 * util/i386/pc/grub-setup.c (setup): Added a workaround for BIOSes
35003 which do not pass a boot drive correctly. Copied from GRUB Legacy.
35004
e293232b 350052005-07-17 Yoshinori Okuji <okuji@enbug.org>
35006
35007 * kern/i386/pc/startup.S (gate_a20_try_system_control_port_a):
35008 When turning off Gate A20, skip the check and return immediately,
35009 because this is not fatal usually.
35010
ebedfd00 350112005-07-17 Yoshinori Okuji <okuji@enbug.org>
35012
35013 * conf/i386-pc.rmk (pxeboot_img_LDFLAGS): The text address should
35014 be 0x7C00 instead of 0x8000.
35015
35016 * boot/i386/pc/pxeboot.S: Rewritten.
35017
35018 * kern/i386/pc/startup.S (gate_a20_try_bios): No need to specify
35019 EXT_C.
35020 (gate_a20_check_state): Read a byte from 0x108000. Invert the
35021 result.
35022
654fc59f 350232005-07-16 Yoshinori K. Okuji <okuji@enbug.org>
35024
35025 * kern/i386/pc/startup.S (grub_gate_a20): Rewritten for
35026 robustness. This routine now supports a BIOS call and System
35027 Control Port A to modify the gate A20.
35028
35029 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
35030 Increased to 0x440.
35031
09f9923f 350322005-07-12 Hollis Blanchard <hollis@penguinppc.org>
35033
35034 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): dprintf the
35035 device path and resulting ihandle.
35036 (grub_ofdisk_close): dprintf the ihandle being closed.
35037 (grub_ofdisk_read): dprintf function parameters.
35038 * kern/mm.c (grub_mm_init_region): Likewise.
35039 * loader/powerpc/ieee1275/linux.c: Remove extra whitespace.
35040 (grub_linux_boot): dprintf the Linux entry point, initrd address and
35041 size, and boot arguments.
35042 (grub_rescue_cmd_linux): dprintf each ELF segment's address and size
35043 before loading into memory.
35044 (grub_rescue_cmd_initrd): dprintf the initrd's address and size
35045 before loading into memory.
35046
7ef504d8 350472005-07-12 Yoshinori K. Okuji <okuji@enbug.org>
35048
35049 * kern/mm.c: Added much documentation.
35050 (GRUB_MM_ALIGN_LOG2): When GRUB_CPU_SIZEOF_VOID_P is
35051 8, set to 5 instead of 8.
35052
e0f050c2 350532005-07-10 Yoshinori Okuji <okuji@enbug.org>
35054
35055 * DISTLIST: Added util/i386/pc/grub-mkimage.c.
35056
35057 * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-mkdevicemap.
35058 (grub_mkdevicemap_SOURCES): New variable.
35059
35060 * util/i386/pc/grub-mkdevicemap.c: New file. Mostly copied from
35061 lib/device.c of GRUB Legacy.
35062
7224189a 350632005-07-10 Yoshinori Okuji <okuji@enbug.org>
35064
35065 * commands/ls.c (grub_ls_list_files): Check if *PATH is NUL
35066 instead of PATH is NULL.
35067
68c864eb 350682005-07-09 Vincent Pelletier <subdino2004@yahoo.fr>
35069
35070 * commands/cmp.c (BUFFER_SIZE): New macro.
35071 (grub_cmd_cmp): Close the right file at the right time. Compare
35072 only data just read. Don't report files of different size as
35073 identical. Dynamically allocate buffers. Move variable
35074 declarations at the beginning of function.
35075
e6f3e614 350762005-07-09 Yoshinori Okuji <okuji@enbug.org>
35077
35078 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): The return value was
35079 reverse.
35080
f8f1559a 350812004-07-04 Vincent Pelletier <subdino2004@yahoo.fr>
35082
35083 * normal/cmdline.c (grub_cmdline_get): Don't fallback on ctrl-d
35084 when backspace is pressed at beginning of line.
35085
39c9d41d 350862005-07-03 Yoshinori Okuji <okuji@enbug.org>
35087
35088 * DISTLIST: Added genfslist.sh.
35089
35090 * normal/main.c (fs_module_list): New variable.
35091 (autoload_fs_module): New function.
35092 (read_fs_list): Likewise.
35093 (grub_normal_execute): Call read_fs_list.
35094
35095 * kern/fs.c (grub_fs_autoload_hook): New variable.
35096 (grub_fs_probe): Added support for auto-loading.
35097
35098 * include/grub/normal.h (struct grub_fs_module_list): New struct.
35099 (grub_fs_module_list_t): New type.
35100
35101 * include/grub/fs.h (grub_fs_autoload_hook_t): New type.
35102 (grub_fs_autoload_hook): New prototype.
35103
35104 * genfslist.sh: New file.
f19dbdb7 35105
39c9d41d 35106 * genmk.rb: Added a rule to generate a filesystem list.
35107
121c1d83 351082005-06-30 Marco Gerards <metgerards@student.han.nl>
35109
35110 * configure.ac: Fix the test for cross-compiling.
35111
35112 * genmk.rb (Program): Use `$(CC)' instead of `$(BUILD_CC)'. Don't
35113 define GRUB_UTIL anymore.
35114
35115 * util/powerpc/ieee1275/grub-mkimage.c (load_note): Endian fixes
35116 so this function works on other systems than just big endian.
35117 (load_modules): Likewise.
35118 (add_segments): Likewise.
35119
e75d76e1 351202005-06-23 Hollis Blanchard <hollis@penguinppc.org>
35121
35122 * kern/misc.c (grub_vsprintf): Add `longfmt'. If format string
35123 contains `l' modifier, get a long from va_arg().
35124
50b5a0a7 351252005-06-23 Yoshinori K. Okuji <okuji@enbug.org>
35126
35127 * kern/mm.c (grub_free): If the next free block which is being
35128 merged is the first free block, set the first block to the block
35129 being freed.
35130 Reported by Vincent Guffens <guffens@inma.ucl.ac.be>.
35131
89371b20 351322005-05-08 Hollis Blanchard <hollis@penguinppc.org>
35133
35134 * boot/powerpc/ieee1275/cmain.c (cmain): Initialize
35135 `grub_ieee1275_chosen'.
35136
168d6e58 351372005-05-08 Hollis Blanchard <hollis@penguinppc.org>
35138
35139 * boot/powerpc/ieee1275/cmain.c (module_info): Remove definition.
35140 (grub_ieee1275_chosen): New variable.
35141 (cmain): Initialize and use `grub_ieee1275_chosen' instead of
35142 `chosen'.
35143 * boot/powerpc/ieee1275/crt0.S (init_stack): Remove stack space.
35144 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
35145 Rename first argument to `phandle' for consistency.
35146 (grub_ieee1275_get_property_length): Likewise.
35147 (grub_ieee1275_next_property): Likewise. Change type of first argument
35148 to grub_ieee1275_phandle_t.
35149 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_entry_fn):
35150 Move export next to declaration.
35151 (grub_ieee1275_chosen): New variable.
35152 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MODULE_BASE):
35153 Correct cosmetic typo.
35154 * kern/powerpc/ieee1275/init.c (grub_set_prefix): Use
35155 `grub_ieee1275_chosen'.
35156 * kern/powerpc/ieee1275/openfw.c (grub_map): Likewise.
35157 * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Likewise.
35158 (grub_rescue_cmd_linux): Set `initrd_addr' to 0.
35159 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_refresh): Use
35160 `grub_ieee1275_chosen'.
35161
ca5baa3f 351622005-05-10 Hollis Blanchard <hollis@penguinppc.org>
35163
35164 * boot/powerpc/ieee1275/cmain.c (cmain): Remove code to parse
35165 /chosen/bootargs.
35166 * kern/powerpc/ieee1275/init.c (grub_machine_init): Parse
35167 /chosen/bootargs as "variable=value" pairs.
35168
708b345f 351692005-05-08 Vincent Pelletier <subdino2004@yahoo.fr>
35170
35171 * include/grub/misc.h (grub_dprintf): New macro.
35172 (grub_real_dprintf): New prototype.
35173 (grub_strword): Likewise.
35174 (grub_iswordseparator): Likewise.
35175 * kern/misc.c (grub_real_dprintf): New function.
35176 (grub_strword): Likewise.
35177 (grub_iswordseparator): Likewise.
35178
f4c5e67c 351792005-04-30 Hollis Blanchard <hollis@penguinppc.org>
35180
35181 * boot/powerpc/ieee1275/cmain.c: Don't include grub/machine/init.h.
35182 (roundup): Remove macro.
35183 (grub_ieee1275_flags): Make static.
35184 (grub_ieee1275_realmode): Remove.
35185 (grub_ieee1275_test_flag): New function.
35186 (grub_ieee1275_set_flag): Likewise.
35187 (find_options): Rename to `grub_ieee1275_find_options'; update
35188 callers. Set GRUB_IEEE1275_FLAG_REAL_MODE and
35189 GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS.
35190 (cmain): New prototype.
35191 (cmain): Use `grub_ieee1275_set_flag' instead of accessing
35192 `grub_ieee1275_flags' directly.
35193 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Remove
35194 machine/biosdisk.h.
35195 * disk/powerpc/ieee1275/ofdisk.c: Include grub/machine/ofdisk.h.
35196 Don't include grub/machine/init.h.
35197 (grub_ofdisk_open): Call `grub_ieee1275_test_flag'.
35198 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
35199 Remove prototype.
35200 (grub_ieee1275_realmode): Likewise.
35201 (grub_ieee1275_flag): New enum.
35202 (grub_ieee1275_test_flag): New prototype.
35203 (grub_ieee1275_set_flag): New prototype.
35204 * include/grub/powerpc/ieee1275/init.h: Remove file.
35205 * include/grub/powerpc/ieee1275/ofdisk.h: New file.
35206 * kern/powerpc/ieee1275/init.c: Don't include grub/machine/init.h.
35207 Include grub/machine/console.h. Include grub/machine/ofdisk.h.
35208 (grub_machine_fini): Don't call `grub_ieee1275_release'. Remove
35209 comment.
35210 * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Call
35211 `grub_ieee1275_test_flag'.
35212 (grub_ieee1275_encode_devname): Likewise.
35213
ed16607e 352142005-04-21 Hollis Blanchard <hollis@penguinppc.org>
35215
35216 * include/grub/powerpc/ieee1275/ieee1275.h
35217 (grub_ieee1275_encode_devname): New prototype.
35218 (grub_ieee1275_get_filename): Likewise.
35219 * kern/powerpc/ieee1275/init.c (grub_translate_ieee175_path): New
35220 function.
35221 (grub_set_prefix): Likewise.
35222 (grub_machine_init): Call grub_set_prefix.
35223 * kern/powerpc/ieee1275/openfw.c: Fix typos.
35224 (grub_parse_type): New enum.
35225 (grub_ieee1275_get_devargs): New function.
35226 (grub_ieee1275_get_devname): Likewise.
35227 (grub_ieee1275_parse_args): Likewise.
35228 (grub_ieee1275_get_filename): Likewise.
35229 (grub_ieee1275_encode_devname): Likewise.
35230
be369920 352312005-03-30 Marco Gerards <metgerards@student.han.nl>
35232
35233 * kern/powerpc/ieee1275/init.c (grub_machine_fini): Don't call
35234 `grub_loader_unset'.
35235
a5ce3a4a 352362005-03-26 Hollis Blanchard <hollis@penguinppc.org>
35237
35238 * commands/ieee1275/halt.c (grub_cmd_halt): Call grub_halt
35239 instead of grub_ieee1275_interpret.
35240 (grub_halt_init): New function.
35241 (grub_halt_fini): Likewise.
35242 (GRUB_MOD_INIT): Correct message grammar.
35243 * commands/ieee1275/reboot.c (grub_cmd_reboot): Call grub_reboot
35244 instead of grub_ieee1275_interpret.
35245 (grub_reboot_init): New function.
35246 (grub_reboot_fini): Likewise.
35247 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace
35248 commands/i386/pc/halt.c, commands/i386/pc/reboot.c, and
35249 util/i386/pc/misc.c with commands/ieee1275/halt.c,
35250 commands/ieee1275/reboot.c, and util/powerpc/ieee1275/misc.c.
35251 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_fini): New
35252 function.
35253 * include/grub/powerpc/ieee1275/console.h (grub_console_fini):
35254 Add prototype.
35255 * include/grub/powerpc/ieee1275/ieee1275.h (grub_reboot): Add
35256 prototype.
35257 (grub_halt): Likewise.
35258 * include/grub/powerpc/ieee1275/init.h: Remove inaccurate comment.
35259 (cmain): Remove __attribute__((unused)).
35260 * kern/powerpc/ieee1275/init.c (grub_heap_start): New variable.
35261 (grub_heap_len): Likewise.
35262 (grub_machine_fini): New function.
35263 * kern/powerpc/ieee1275/openfw.c (grub_reboot): New function.
35264 (grub_halt): Likewise.
35265 * term/powerpc/ieee1275/ofconsole.c (grub_console_fini): New
35266 function.
35267 * util/powerpc/ieee1275/misc.c: New file.
35268
0058f771 352692005-03-19 Yoshinori K. Okuji <okuji@enbug.org>
35270
35271 * DISTLIST: New file.
35272 * gendistlist.sh: Likewise.
f19dbdb7 35273
0058f771 35274 * Makefile.in (COMMON_DISTFILES): Removed.
35275 (BOOT_DISTFILES): Likewise.
35276 (CONF_DISTFILES): Likewise.
35277 (DISK_DISTFILES): Likewise.
35278 (FS_DISTFILES): Likewise.
35279 (INCLUDE_DISTFILES): Likewise.
35280 (KERN_DISTFILES): Likewise.
35281 (LOADER_DISTFILES): Likewise.
35282 (TERM_DISTFILES): Likewise.
35283 (UTIL_DISTFILES): Likewise.
35284 (DISTFILES): Likewise.
35285 (uninstall): Uninstall files in $(pkgdata_DATA).
35286 (DISTLIST): New target.
35287 (distdir): Use the contents of the file DISTLIST to get a list of
35288 distributed files.
35289
46b3b8a5 352902005-03-18 Yoshinori K. Okuji <okuji@enbug.org>
35291
35292 * fs/fat.c (grub_fat_mount): Ignore the 3rd bit of a media
35293 descriptor. This is ported from GRUB Legacy.
35294
35295 * gencmdlist.sh: Added an extra semicolon to make it work with
35296 old sed versions. Reported by Robert Bihlmeyer
35297 <robbe@orcus.priv.at>.
35298
5822ff87 352992005-03-08 Yoshinori Okuji <okuji@enbug.org>
35300
35301 Automatic loading of commands is supported.
f19dbdb7 35302
5822ff87 35303 * normal/main.c (read_command_list): New function.
35304 (grub_normal_execute): Call read_command_list.
35305
35306 * normal/command.c (grub_register_command): Return zero or CMD.
35307 Allocate CMD->NAME from the heap.
35308 Initialize CMD->MODULE_NAME to zero.
35309 Find the same name as well. If the same command is found and it is
35310 a dummy command, overwrite members. If it is not a dummy command,
35311 return zero.
35312 (grub_unregister_command): Free Q->NAME and Q->MODULE_NAME.
35313 (grub_command_find): If a dummy command is found, load a module
35314 and retry to find a command only once.
35315
35316 * normal/cmdline.c (grub_tab_complete): Call grub_command_find to
35317 make sure that each command is loaded.
35318
35319 * include/grub/normal.h (GRUB_COMMAND_FLAG_NOT_LOADED): New
35320 macro.
35321 (struct grub_command): Remove const from the member `name'.
35322 Add a new member `module_name'.
35323 (grub_register_command): Return grub_command_t.
35324
35325 * commands/help.c (grub_cmd_help): Call grub_command_find to make
35326 sure that each command is loaded.
35327
35328 * genmk.rb (PModule::rule): Specify a module name without the
35329 suffix ".mod" to gencmdlist.sh.
35330
7b1f4b57 353312005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
35332
35333 * gencmdlist.sh: New file.
f19dbdb7 35334
7b1f4b57 35335 * genmk.rb (PModule::rule): Generate a rule for a command list.
35336 Clean command.lst.
35337 Generate command.lst from $(COMMANDFILES).
35338
35339 * Makefile.in (COMMON_DISTFILES): Added gencmdlist.sh.
35340 (DATA): Added $(pkgdata_DATA).
35341 (install-local): Install files in $(pkgdata_DATA).
35342
062aaf39 353432005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
35344
35345 * term/i386/pc/vga.c (debug_command): Removed.
35346 (GRUB_MOD_INIT): Do not register the command "debug".
35347
35348 From Hollis Blanchard:
35349 * commands/configfile.c: New file.
35350 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
35351 commands/configfile.c.
35352 (pkgdata_MODULES): Added configfile.mod.
35353 (configfile_mod_SOURCES): New variable.
35354 (configfile_mod_CFLAGS): Likewise.
35355 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
35356 commands/configfile.c.
35357 (pkgdata_MODULES): Added configfile.mod.
35358 (configfile_mod_SOURCES): New variable.
35359 (configfile_mod_CFLAGS): Likewise.
35360 * util/grub-emu.c (main): Call grub_configfile_init and
35361 grub_configfile_fini.
35362 * include/grub/normal.h [GRUB_UTIL] (grub_configfile_init): New
35363 prototype.
35364 [GRUB_UTIL] (grub_configfile_fini): Likewise.
f19dbdb7 35365
cee01aa6 353662005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
35367
35368 * normal/arg.c (grub_arg_show_help): Do not show the bug report
35369 address.
35370
35371 * commands/help.c (grub_cmd_help): Do not print newlines after
35372 the last command in print_command_help.
35373
93f3a1d8 353742005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
35375
35376 * commands/default.h: New file.
35377 * commands/timeout.h: Likewise.
35378 * normal/context.c: Likewise.
f19dbdb7 35379
93f3a1d8 35380 * util/misc.c: Do not include sys/times.h.
35381 Include sys/time.h and grub/machine/time.h.
35382 (grub_get_rtc): Rewritten with gettimeofday.
35383
35384 * util/grub-emu.c (main): Call grub_default_init and
35385 grub_timeout_init before grub_normal_init, and call
35386 grub_timeout_fini and grub_default_fini after grub_main.
35387
35388 * util/console.c (grub_ncurses_checkkey): Return the read
35389 character or -1.
35390
35391 * normal/menu.c (run_menu): Set MENU->TIMEOUT to -1 once it
35392 timeouts.
35393
35394 * normal/main.c (read_config_file): Push MENU. If this fails,
35395 print an error and wait for a user input.
35396 Print an error only if GRUB_ERRNO is not GRUB_ERR_NONE.
35397 If a menu is empty or an error occurs, pop MENU.
35398 (grub_normal_execute): Pop and free MENU after grub_menu_run
35399 returns.
35400
35401 * kern/loader.c (grub_loader_boot): Call grub_machine_fini.
35402
35403 * include/grub/powerpc/ieee1275/time.h [GRUB_UTIL]: Do not
35404 include time.h.
35405 [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
35406 without GRUB_UTIL.
35407 * include/grub/i386/pc/time.h [GRUB_UTIL]: Do not include
35408 time.h.
35409 [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
35410 without GRUB_UTIL.
35411
35412 * include/grub/normal.h (struct grub_menu_list): New struct.
35413 (grub_menu_list_t): New type.
35414 (struct grub_context): New struct.
35415 (grub_context_t): New type.
35416 (grub_register_command): Got rid of EXPORT_FUNC.
35417 (grub_unregister_command): Likewise.
35418 (grub_context_get): New prototype.
35419 (grub_context_get_current_menu): Likewise.
35420 (grub_context_push_menu): Likewise.
35421 (grub_context_pop_menu): Likewise.
35422 [GRUB_UTIL] (grub_default_init): Likewise.
35423 [GRUB_UTIL] (grub_default_fini): Likewise.
35424 [GRUB_UTIL] (grub_timeout_init): Likewise.
35425 [GRUB_UTIL] (grub_timeout_fini): Likewise.
35426
35427 * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/default.c,
35428 commands/timeout.c and normal/context.c.
35429 (pkgdata_MODULES): Added default.mod and timeout.mod.
35430 (normal_mod_SOURCES): Added normal/context.c.
35431 (default_mod_SOURCES): New variable.
35432 (default_mod_CFLAGS): Likewise.
35433 (timeout_mod_SOURCES): Likewise.
35434 (timeout_mod_CFLAGS): Likewise.
35435 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Copied from
35436 conf/i386-pc.rmk.
35437 (pkgdata_MODULES): Added default.mod and timeout.mod.
35438 (normal_mod_SOURCES): Added normal/context.c.
35439 (default_mod_SOURCES): New variable.
35440 (default_mod_CFLAGS): Likewise.
35441 (timeout_mod_SOURCES): Likewise.
35442 (timeout_mod_CFLAGS): Likewise.
35443
35444 * Makefile.in (all-local): Added $(MKFILES).
35445
4ed2e1dd 354462005-02-21 Vincent Pelletier <subdino2004@yahoo.fr>
35447
35448 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `partmap/sun.c'.
35449 (grub_emu_SOURCES): Likewise.
35450 (pkgdata_MODULES): Add `sun.mod'.
35451 (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
35452 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
35453 `partmap/sun.c'.
35454 (pkgdata_MODULES): Add `sun.mod'.
35455 (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
35456 * include/grub/partition.h (grub_sun_partition_map_init): New
35457 prototype.
35458 (grub_sun_partition_map_fini): Likewise.
35459 * partmap/sun.c: New file.
35460 * util/grub-emu.c (main): Initialize and de-initialize the sun
35461 partitionmap support.
35462
4d4e372e 354632005-02-19 Yoshinori K. Okuji <okuji@enbug.org>
35464
35465 This implements an Emacs-like menu entry editor.
f19dbdb7 35466
4d4e372e 35467 * normal/menu_entry.c: New file.
f19dbdb7 35468
4d4e372e 35469 * util/console.c (grub_ncurses_putchar): Translate some Unicode
35470 characters to ASCII.
35471 (saved_char): New variable.
35472 (grub_ncurses_checkkey): Rewritten completely.
35473 (grub_ncurses_getkey): Likewise.
35474 (grub_ncurses_init): Call raw instead of cbreak.
35475
35476 * normal/menu.c (print_entry): Do not put a space.
35477 (init_page): Renamed to ...
35478 (grub_menu_init_page): ... this. All callers changed.
35479 (edit_menu_entry): Removed.
35480 (run_menu): Call grub_menu_entry_run instead of edit_menu_entry.
35481
35482 * normal/cmdline.c (grub_cmdline_run): Call grub_setcursor.
35483
35484 * kern/misc.c (grub_vprintf): Call grub_refresh.
35485
35486 * normal/menu.c (DISP_LEFT): Renamed to ...
35487 * include/grub/term.h (GRUB_TERM_DISP_LEFT): ... this.
35488 * normal/menu.c (DISP_UP): Renamed to ...
35489 * include/grub/term.h (GRUB_TERM_DISP_UP): ... this.
35490 * normal/menu.c (DISP_RIGHT): Renamed to ...
35491 * include/grub/term.h (GRUB_TERM_DISP_RIGHT): ... this.
35492 * normal/menu.c (DISP_DOWN): Renamed to ...
35493 * include/grub/term.h (GRUB_TERM_DISP_DOWN): ... this.
35494 * normal/menu.c (DISP_HLINE): Renamed to ...
35495 * include/grub/term.h (GRUB_TERM_DISP_HLINE): ... this.
35496 * normal/menu.c (DISP_VLINE): Renamed to ...
35497 * include/grub/term.h (GRUB_TERM_DISP_VLINE): ... this.
35498 * normal/menu.c (DISP_UL): Renamed to ...
35499 * include/grub/term.h (GRUB_TERM_DISP_UL): ... this.
35500 * normal/menu.c (DISP_UR): Renamed to ...
35501 * include/grub/term.h (GRUB_TERM_DISP_UR): ... this.
35502 * normal/menu.c (DISP_LL): Renamed to ...
35503 * include/grub/term.h (GRUB_TERM_DISP_LL): ... this.
35504 * normal/menu.c (DISP_LR): Renamed to ...
35505 * include/grub/term.h (GRUB_TERM_DISP_LR): ... this.
35506 * normal/menu.c (TERM_WIDTH): Renamed to ...
35507 * include/grub/term.h (GRUB_TERM_WIDTH): ... this.
35508 * normal/menu.c (TERM_HEIGHT): Renamed to ...
35509 * include/grub/term.h (GRUB_TERM_HEIGHT): ... this.
35510 * normal/menu.c (TERM_INFO_HEIGHT): Renamed to ...
35511 * include/grub/term.h (GRUB_TERM_INFO_HEIGHT): ... this.
35512 * normal/menu.c (TERM_MARGIN): Renamed to ...
35513 * include/grub/term.h (GRUB_TERM_MARGIN): ... this.
35514 * normal/menu.c (TERM_SCROLL_WIDTH): Renamed to ...
35515 * include/grub/term.h (GRUB_TERM_SCROLL_WIDTH): ... this.
35516 * normal/menu.c (TERM_TOP_BORDER_Y): Renamed to ...
35517 * include/grub/term.h (GRUB_TERM_TOP_BORDER_Y): ... this.
35518 * normal/menu.c (TERM_LEFT_BORDER_X): Renamed to ...
35519 * include/grub/term.h (GRUB_TERM_LEFT_BORDER_X): ... this.
35520 * normal/menu.c (TERM_BORDER_WIDTH): Renamed to ...
35521 * include/grub/term.h (GRUB_TERM_BORDER_WIDTH): ... this.
35522 * normal/menu.c (TERM_MESSAGE_HEIGHT): Renamed to ...
35523 * include/grub/term.h (GRUB_TERM_MESSAGE_HEIGHT): ... this.
35524 * normal/menu.c (TERM_BORDER_HEIGHT): Renamed to ...
35525 * include/grub/term.h (GRUB_TERM_BORDER_HEIGHT): ... this.
35526 * normal/menu.c (TERM_NUM_ENTRIES): Renamed to ...
35527 * include/grub/term.h (GRUB_TERM_NUM_ENTRIES): ... this.
35528 * normal/menu.c (TERM_FIRST_ENTRY_Y): Renamed to ...
35529 * include/grub/term.h (GRUB_TERM_FIRST_ENTRY_Y): ... this.
35530 * normal/menu.c (TERM_ENTRY_WIDTH): Renamed to ...
35531 * include/grub/term.h (GRUB_TERM_ENTRY_WIDTH): ... this.
35532 * normal/menu.c (TERM_CURSOR_X): Renamed to ...
35533 * include/grub/term.h (GRUB_TERM_CURSOR_X): ... this.
35534 All callers changed.
35535
35536 * include/grub/normal.h: New prototype.
35537
35538 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
35539 normal/menu_entry.c.
35540 (normal_mod_SOURCES): Likewise.
35541 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35542 (normal_mod_SOURCES): Likewise.
35543
e6b92c8a 355442005-02-15 Yoshinori K. Okuji <okuji@enbug.org>
35545
35546 * include/grub/normal.h (grub_halt_init): New prototype.
35547 (grub_halt_fini): Likewise.
35548 (grub_reboot_init): Likewise.
35549 (grub_reboot_fini): Likewise.
35550
35551 * util/grub-emu.c: Include signal.h.
35552 (main_env): New global variable.
35553 (grub_machine_init): Ignore SIGINT. Otherwise grub-emu cannot
35554 catch C-c.
35555 (grub_machine_fini): New function.
35556 (main): Call grub_halt_init and grub_reboot_init before
35557 grub_main, and grub_reboot_fini and grub_halt_fini after it.
35558 Call setjmp with MAIN_ENV to go back afterwards.
35559 Call grub_machine_fini right before return.
35560
35561 * include/grub/util/misc.h: Include setjmp.h.
35562 (main_env): New prototype.
35563
35564 * include/grub/kernel.h (grub_machine_fini): New prototype.
35565 * include/grub/i386/pc/biosdisk.h (grub_biosdisk_fini): Likewise.
35566 * include/grub/i386/pc/console.h (grub_console_fini): Likewise.
35567
35568 * disk/i386/pc/biosdisk.c (grub_biosdisk_fini): New function.
35569 * kern/i386/pc/init.c (grub_machine_fini): Likewise.
35570 * term/i386/pc/console.c (grub_console_fini): Likewise.
f19dbdb7 35571
e6b92c8a 35572 * util/i386/pc/misc.c: New file.
f19dbdb7 35573
e6b92c8a 35574 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
35575 util/i386/pc/misc.c, commands/i386/pc/halt.c and
35576 commands/i386/pc/reboot.c.
35577
c642636f 355782005-02-14 Guillem Jover <guillem@hadrons.org>
35579
35580 * include/grub/dl.h (grub_dl_check_header): New prototype.
35581 (grub_arch_dl_check_header): Change return type to grub_err_t,
35582 remove size parameter and export function. Update all callers.
35583 * kern/dl.c (grub_dl_check_header): New function.
35584 (grub_dl_load_core): Use `grub_dl_check_header' instead of
35585 `grub_arch_dl_check_header'. Check ELF type. Check if sections
35586 are inside the core.
35587 * kern/i386/dl.c (grub_arch_dl_check_header): Remove arch
35588 independent ELF header checks.
35589 * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
35590 * loader/i386/pc/multiboot.c (grub_rescue_cmd_multiboot): Use
35591 `grub_dl_check_header' instead of explicit checks. Check for the
35592 ELF type.
35593 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Use
35594 `grub_dl_check_header' instead of explicit checks. Remove arch
35595 specific ELF header checks.
35596
e6b92c8a 35597 * util/grub-emu.c (grub_arch_dl_check_header): Remove the
35598 argument SIZE.
35599
5eabe94b 356002005-02-13 Hollis Blanchard <hollis@penguinppc.org>
35601
35602 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add ls.mod.
35603 * include/grub/powerpc/libgcc.h (__mulsf3): New prototype.
35604
1b14a681 356052005-02-12 Hollis Blanchard <hollis@penguinppc.org>
35606
35607 * kern/partition.c (grub_partition_probe): Clear `grub_errno' and
f19dbdb7 35608 return 0 if `grub_errno' is GRUB_ERR_BAD_PART_TABLE.
1b14a681 35609 (part_map_iterate): Clear `grub_errno' and return 0 if
f19dbdb7 35610 `partmap->iterate' returns GRUB_ERR_BAD_PART_TABLE.
1b14a681 35611 * partmap/amiga.c (amiga_partition_map_iterate): Return
35612 GRUB_ERR_BAD_PART_TABLE if no partition map magic is found.
35613 * partmap/apple.c (apple_partition_map_iterate): Likewise.
35614
aca108aa 356152005-02-01 Guillem Jover <guillem@hadrons.org>
35616
35617 * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Fix module
35618 help info.
35619
c9f9c556 356202005-01-31 Marco Gerards <metgerards@student.han.nl>
35621
35622 * include/grub/powerpc/ieee1275/loader.h (grub_load_linux):
35623 Removed prototype.
35624 (grub_rescue_cmd_linux): New prototype.
35625 (grub_rescue_cmd_initrd): Likewise.
35626 * powerpc/ieee1275/linux.c (grub_linux_boot): Remove struct
35627 `bi_rec'.
35628 (grub_linux_release_mem): Release the memory for the initrd.
35629 (grub_load_linux): Renamed from this...
35630 (grub_rescue_cmd_linux): ...To this. Changed all callers.
35631 Changed `entry' not to be static. Loop over memory regions to
35632 find another one when the default fails.
35633 (grub_rescue_cmd_initrd): New function.
35634 (grub_linux_init): Remove function.
35635 (grub_linux_fini): Likewise.
35636 (GRUB_MOD_INIT): Register `initrd'.
35637 (GRUB_MOD_FINI): Unregister `initrd'.
35638 * powerpc/ieee1275/linux_normal.c (grub_linux_normal_init):
35639 Function removed.
35640 (grub_linux_normal_fini): Likewise.
35641 (GRUB_MOD_INIT): Register `initrd'.
35642 (GRUB_MOD_FINI): Unregister `initrd'.
35643
990cf3aa 356442005-01-31 Marco Gerards <metgerards@student.han.nl>
35645
35646 * commands/help.c: New file.
35647 * normal/arg.c (show_help): Renamed to...
35648 (grub_arg_show_help): ... this.
35649 * commands/i386/pc/halt.c: New file.
35650 * commands/i386/pc/reboot.c: Likewise.
35651 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/help.c'.
35652 (pkgdata_MODULES): Add `reboot.mod', `halt.mod' and `help.mod'.
35653 (help_mod_SOURCES, help_mod_CFLAGS, reboot_mod_SOURCES)
35654 (reboot_mod_CFLAGS, halt_mod_SOURCES, halt_mod_CFLAGS): New
35655 variables.
35656 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
35657 `commands/help.c'.
35658 (pkgdata_MODULES): Add `help.mod'.
35659 (help_mod_SOURCES, help_mod_CFLAGS): New variables.
35660 * grub/i386/pc/init.h (grub_reboot): New prototype.
35661 (grub_halt): Likewise.
35662 * include/grub/normal.h (grub_arg_show_help): New prototype.
35663 (grub_help_init): Likewise.
35664 (grub_help_fini): Likewise.
35665 * util/grub-emu.c (main): Initialize and deinitialize the help
35666 command.
35667
35668 * normal/cmdline.c (grub_cmdline_get): Doc fix.
35669
35670 * normal/command.c (grub_command_init): Fixed the description of
35671 the `set' and `unset' commands.
35672
356732005-01-31 Marco Gerards <metgerards@student.han.nl>
0f79cdc1 35674
35675 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_interpret): New
35676 function.
35677 * commands/ieee1275/halt.c: New file.
35678 * commands/ieee1275/reboot.c: Likewise.
35679 * commands/ieee1275/suspend.c (grub_cmd_suspend): Use
35680 `__attribute__ ((unused))'. Some GCS related fixed.
35681 (grub_suspend_init) [GRUB_UTIL]: Function removed.
35682 (grub_suspend_fini): Likewise.
35683 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add `reboot.mod'
35684 and `halt.mod'.
35685 (reboot_mod_SOURCES, reboot_mod_CFLAGS, halt_mod_SOURCES)
35686 (halt_mod_CFLAGS): New variables.
35687 * include/grub/powerpc/ieee1275/ieee1275.h
35688 (grub_ieee1275_interpret): New prototype.
35689
1ab09cc7 356902005-01-29 Yoshinori K. Okuji <okuji@enbug.org>
35691
35692 * include/grub/misc.h (memmove): New prototype.
35693 (memcpy): Likewise.
35694
8b8cbdb2 356952005-01-22 Hollis Blanchard <hollis@penguinppc.org>
35696
35697 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Don't initialize
35698 `devpath' to 0. Use `name' instead of `devpath' with `grub_strndup'.
35699
e3741a27 357002005-01-22 Marco Gerards <metgerards@student.han.nl>
35701
35702 * kern/misc.c (grub_strndup): Function rewritten.
35703
776bd780 357042005-01-22 Vincent Pelletier <subdino2004@yahoo.fr>
35705
35706 * normal/menu.c (TERM_WIDTH): Macro redefined.
35707 (TERM_TOP_BORDER_Y): Likewise.
35708 (draw_border): Replaced while-loop by a for-loop. Make the number
35709 of lines consistent with the number of lines displayed in
35710 print_entries. Added a margin below the rectangle.
35711 (print_entry): Make the entry fit in the rectangle.
35712 (print_entries): Display the scroll arrows next to the right
35713 border.
35714
78026bce 357152005-01-21 Marco Gerards <metgerards@student.han.nl>
35716
35717 * fs/minix.c (grub_minix_find_file): Reserve more space for
35718 `fpath' so the \0 can be stored. Use `grub_strcpy' instead of
35719 `grub_strncpy' to copy `path' into it.
35720
67bbaf0f 357212005-01-21 Marco Gerards <metgerards@student.han.nl>
35722
35723 Add the loopback device, a device via which files can be accessed
35724 as devices.
f19dbdb7 35725
67bbaf0f 35726 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/loopback.c'.
35727 (pkgdata_MODULES): Add loopback.mod.
35728 (loopback_mod_SOURCES): New variable.
35729 (loopback_mod_CFLAGS): Likewise.
35730 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
35731 `disk/loopback.c'.
35732 (pkgdata_MODULES): Add loopback.mod.
35733 (loopback_mod_SOURCES): New variable.
35734 (loopback_mod_CFLAGS): Likewise.
35735 * disk/loopback.c: new file.
35736 * include/grub/normal.h (grub_loop_init): New prototype.
35737 (grub_loop_fini): New prototype.
35738 * util/grub-emu.c (main): Initialize and de-initialize loopback
35739 support.
35740 * include/grub/disk.h (grub_disk_dev_id): Add
35741 `GRUB_DISK_DEVICE_LOOPBACK_ID'.
35742
6f1c18bd 357432005-01-20 Hollis Blanchard <hollis@penguinppc.org>
35744
35745 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_enter): New
35746 function.
35747 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add suspend.mod.
35748 (suspend_mod_SOURCES): New variable.
35749 (suspend_mod_CFLAGS): Likewise.
35750 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_enter):
35751 New prototype.
35752 * commands/ieee1275/suspend.c: New file.
35753
b38551da 357542005-01-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
35755
35756 * include/grub/dl.h (GRUB_MOD_INIT): Changed `__attribute__
f19dbdb7 35757 ((unused))' to `__attribute__ ((used))'.
b38551da 35758 (GRUB_MOD_FINI): Likewise.
35759 * kern/dl.c (grub_dl_load_file): Fix null pointer dereference.
35760 * genmk.rb (PModule): Assign space to common symbols when linking
35761 modules.
35762
777aff39 357632005-01-20 Marco Gerards <metgerards@student.han.nl>
35764
35765 * include/grub/mm.h (grub_mm_init_region): Change the type of the
35766 `unsigned' arguments to `grub_size_t'.
35767 (grub_malloc): Likewise.
35768 (grub_realloc): Likewise.
35769 (grub_memalign): Likewise.
35770 * kern/i386/dl.c (grub_arch_dl_check_header): Likewise.
35771 * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
35772 * util/misc.c (grub_malloc): Likewise.
35773 (grub_realloc): Likewise.
35774 * kern/mm.c (get_header_from_pointer): Change the casts to
35775 `unsigned' into a cast to `grub_size_t'.
35776
35777 * fs/fshelp.c (grub_fshelp_find_file): The `oldnode' should always
35778 point to `currnode' when `currnode' is changed.
35779
35780 * util/grub-emu.c (main): Initialize `progname'. Reported by Nico
35781 Schottelius <nico-linux@schottelius.org>.
35782
d0ff18e1 357832005-01-09 Hollis Blanchard <hollis@penguinppc.org>
35784
35785 * util/powerpc/ieee1275/grub-mkimage.c: Include <string.h>.
35786 (note_path): Remove variable.
35787 (GRUB_IEEE1275_NOTE_NAME): New macro.
35788 (GRUB_IEEE1275_NOTE_TYPE): Likewise.
35789 (grub_ieee1275_note_hdr): New structure.
35790 (grub_ieee1275_note_desc): Likewise.
35791 (grub_ieee1275_note): Likewise.
35792 (load_note): Remove `dir' argument. All callers updated. Remove
35793 `note_img' and `path'. Do not load a file from `note_path'.
35794 Initialize a struct grub_ieee1275_note and write that to `out'.
35795 Use GRUB_IEEE1275_MODULE_BASE instead of MODULE_BASE.
35796
4ca7004c 357972005-01-05 Marco Gerards <metgerards@student.han.nl>
35798
35799 * util/misc.c (grub_util_read_image): Revert last change. It
35800 called `grub_util_read_at', which seeks from the beginning of the
35801 file.
35802
0b412211 358032005-01-04 Hollis Blanchard <hollis@penguinppc.org>
35804
35805 * TODO: Add note about endianness in grub-mkimage.
35806 * boot/powerpc/ieee1275/crt0.S (note): Remove unused .note
35807 section.
35808 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Add grub-mkimage.
35809 (grub_mkimage_SOURCES): New target.
35810 * include/grub/kernel.h (grub_start_addr): Remove variable.
35811 (grub_end_addr): Likewise.
35812 (grub_total_module_size): Likewise.
35813 (grub_kernel_image_size): Likewise.
35814 (GRUB_MODULE_MAGIC): New constant.
35815 (grub_module_info): New structure.
35816 (grub_arch_modules_addr): New prototype.
35817 (grub_get_end_addr): Remove prototype.
35818 * include/grub/i386/pc/kernel.h (grub_end_addr): New prototype.
35819 * include/grub/powerpc/ieee1275/kernel.h: New file.
35820 * include/grub/util/misc.h (grub_util_get_fp_size): New
35821 prototype.
35822 (grub_util_read_at): Likewise.
35823 (grub_util_write_image_at): Likewise.
35824 * kern/main.c (grub_get_end_addr): Remove function.
35825 (grub_load_modules): Call grub_arch_modules_addr instead of using
35826 grub_end_addr. Look for a grub_module_info struct in memory. Use
35827 the grub_module_info fields instead of calling grub_get_end_addr
35828 as loop conditions. Move grub_add_unused_region code here.
35829 (grub_add_unused_region): Remove function.
35830 * kern/i386/pc/init.c: Include grub/cache.h.
35831 (grub_machine_init): Remove call to grub_get_end_addr. Remove
35832 one call to add_mem_region.
35833 (grub_arch_modules_addr): New function.
35834 * kern/powerpc/ieee1275/init.c (grub_end_addr): Remove variable.
35835 (grub_total_module_size): Likewise.
35836 Include grub/machine/kernel.h.
35837 (grub_arch_modules_addr): New function.
35838 * util/grub-emu.c (grub_end_addr): Remove variable.
35839 (grub_total_module_size): Likewise.
35840 (grub_arch_modules_addr): New function.
35841 * util/misc.c: Include unistd.h.
35842 (grub_util_get_fp_size): New function.
35843 (grub_util_read_at): Likewise.
35844 (grub_util_write_image_at): Likewise.
35845 (grub_util_read_image): Call grub_util_read_at.
35846 (grub_util_write_image): Call grub_util_write_image_at.
35847 * util/i386/pc/grub-mkimage.c (generate_image): Allocate
35848 additional memory in kernel_img for a struct grub_module_info.
35849 Fill in that grub_module_info.
35850 * util/powerpc/ieee1275/grub-mkimage.c: New file.
35851
458786f8 358522005-01-03 Hollis Blanchard <hollis@penguinppc.org>
35853
35854 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_milliseconds):
35855 New function.
35856 * include/grub/powerpc/ieee1275/ieee1275.h
35857 (grub_ieee1275_milliseconds): New prototype.
35858 * include/grub/powerpc/ieee1275/time.h (GRUB_TICKS_PER_SECOND):
35859 Change to 1000.
35860 * kern/powerpc/ieee1275/init.c (grub_get_rtc): Call
35861 grub_ieee1275_milliseconds.
35862
ac507d1b 358632005-01-03 Hollis Blanchard <hollis@penguinppc.org>
35864
35865 * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_realmode): New
35866 variable.
35867 (find_options): New function.
35868 (cmain): Call find_options.
35869 * include/grub/powerpc/ieee1275/ieee1275.h
35870 (grub_ieee1275_realmode): New extern variable.
35871 * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Only call
35872 grub_map if grub_ieee1275_realmode is false.
35873
6b8fd1c4 358742004-12-29 Marco Gerards <metgerards@student.han.nl>
35875
35876 * normal/cmdline.c (grub_cmdline_get): Redone logic so no empty
35877 lines are inserted and make it work like readline. Reported by
35878 Vincent Pelletier <subdino2004@yahoo.fr>.
35879
8514a1e0 358802004-12-28 Marco Gerards <metgerards@student.han.nl>
35881
35882 * boot/powerpc/ieee1275/crt0.S (_start): Don't set up the stack.
35883
35884 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCE): Remove
35885 `kern/powerpc/cache.S'.
35886
924b6140 358872004-12-27 Marco Gerards <metgerards@student.han.nl>
35888
35889 * genmk.rb: Handle the `Program' class in the main loop. Written
35890 by Johan Rydberg <jrydberg@gnu.org>.
35891 (Program): New class.
35892 (programs): New variable.
35893 * boot/powerpc/ieee1275/cmain.c: Include <grub/machine/ieee1275.h>
35894 instead of "grub/machine/ieee1275.h". Include <grub/kernel.h>
35895 instead of "grub/kernel.h". Include <grub/machine/init.h>.
35896 (help_arch): Function removed.
35897 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add
35898 `powerpc/libgcc.h' and `loader.h'.
35899 (pkgdata_PROGRAMS): New variable.
35900 (sbin_UTILITIES): Variable removed.
35901 (grub_emu_SOURCES): Added kern/powerpc/cache.S.
35902 (grubof_SOURCES): Variable re-defined so it only includes the
35903 core functionality.
35904 (grubof_CFLAGS): Remove `-DGRUBOF'.
35905 (pkgdata_MODULES, fshelp_mod_SOURCES, fshelp_mod_CFLAGS,
35906 (fat_mod_SOURCES, fat_mod_CFLAGS, ext2_mod_SOURCES)
35907 (ext2_mod_CFLAGS, ufs_mod_SOURCES, ufs_mod_CFLAGS)
35908 (minix_mod_SOURCES, minix_mod_CFLAGS, hfs_mod_SOURCES)
35909 (hfs_mod_CFLAGS, jfs_mod_SOURCES, jfs_mod_CFLAGS)
35910 (iso9660_mod_SOURCES, iso9660_mod_CFLAGS, _linux_mod_SOURCES)
35911 (_linux_mod_CFLAGS, linux_mod_SOURCES, linux_mod_CFLAGS)
35912 (normal_mod_SOURCES, normal_mod_CFLAGS, normal_mod_ASFLAGS)
35913 (hello_mod_SOURCES, hello_mod_CFLAGS, boot_mod_SOURCES)
35914 (boot_mod_CFLAGS, terminal_mod_SOURCES, terminal_mod_CFLAGS)
35915 (ls_mod_SOURCES, ls_mod_CFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
35916 (cat_mod_SOURCES, cat_mod_CFLAGS, font_mod_SOURCES)
35917 (font_mod_CFLAGS, amiga_mod_SOURCES, amiga_mod_CFLAGS)
35918 (apple_mod_SOURCES, apple_mod_CFLAGS, pc_mod_SOURCES)
35919 (pc_mod_CFLAGS): New variables.
35920 * disk/powerpc/ieee1275/ofdisk.c: Include <grub/machine/init.h>.
35921 (grub_ofdisk_iterate): Add a prototype for `dev_iterate'.
35922 * include/grub/dl.h (grub_arch_dl_sync_caches): New prototype.
35923 * include/grub/loader.h (grub_os_area_addr, grub_os_area_size):
35924 Moved from here...
35925 * include/grub/i386/pc/init.h (grub_os_area_addr)
35926 (rub_os_area_size): ... to here.
35927 * include/grub/powerpc/ieee1275/ieee1275.h
35928 (grub_ieee1275_entry_fn): Export symbol.
35929 * include/grub/powerpc/ieee1275/init.h: New file.
35930 * include/grub/powerpc/libgcc.h: Likewise.
35931 * include/grub/cache.h: Likewise.
35932 * kern/powerpc/cache.S: Likewise. Written by Hollis Blanchard
35933 <hollis@penguinppc.org>.
35934 * kern/dl.c: Include <grub/cache.h>.
35935 (grub_dl_flush_cache): New function.
35936 (grub_dl_load_core): Call `grub_dl_flush_cache' to flush the cache
35937 for this module.
35938 * kern/powerpc/ieee1275/init.c (grub_ofdisk_init)
35939 (grub_console_init): Removed prototypes.
35940 (grub_machine_init): Don't initialize the modules anymore.
35941 * kern/powerpc/ieee1275/openfw.c (grub_map): Make the function
35942 static.
35943 * include/grub/powerpc/types.h (GRUB_HOST_WORDS_LITTLEENDIAN):
35944 Macro undef removed.
35945 (GRUB_HOST_WORDS_BIGENDIAN): New macro.
35946 * kern/powerpc/dl.c (grub_arch_dl_relocate_symbols): Add
35947 relocation `R_PPC_REL32'. Return an error when the relocation is
35948 unknown.
35949 * Makefile.in (DATA): Add `$(pkgdata_PROGRAMS)'.
35950 * kern/i386/pc/init.c (grub_arch_sync_caches): New function.
35951 * util/misc.c (grub_arch_sync_caches): Likewise.
35952
e4b47e0c 359532004-12-19 Marco Gerards <metgerards@student.han.nl>
35954
35955 * conf/powerpc-ieee1275.rmk (MOSTLYCLEANFILES): Remove
35956 `symlist.c', add `grubof_symlist.c'.
35957 (symlist.c): Variable removed.
35958 (grubof_HEADERS): Variable added.
35959 (grubof_symlist.c): New target.
35960 (kernel_syms.lst): Use `grubof_HEADERS' instead of
35961 `kernel_img_HEADERS'.
35962 (grubof_SOURCES): Add `kern/powerpc/dl.c' and `grubof_symlist.c'.
35963 * kern/powerpc/dl.c: New file.
35964 * kern/powerpc/ieee1275/init.c (grub_arch_dl_check_header):
35965 Function removed.
35966 (grub_arch_dl_relocate_symbols): Likewise.
35967 (grub_register_exported_symbols): Likewise.
35968
4ceb3636 359692004-12-13 Marco Gerards <metgerards@student.han.nl>
35970
35971 * fs/ext2.c (grub_ext2_open): Don't use data after freeing it.
35972 (grub_ext2_dir): Likewise. Don't return in case of an error, jump
35973 to fail instead. Reported by Vincent Pelletier
35974 <subdino2004@yahoo.fr>.
35975
35976 * fs/fshelp.c (grub_fshelp_find_file): Don't free `oldnode' when
35977 it is not allocated. Reported by Vincent Pelletier
35978 <subdino2004@yahoo.fr>.
35979
35980 * normal/cmdline.c (grub_tab_complete): Add a blank line to the
35981 output so the output looks better.
f19dbdb7 35982
3f1578fe 359832004-12-04 Marco Gerards <metgerards@student.han.nl>
35984
35985 Modulize the partition map support and add support for the amiga
35986 partition map.
f19dbdb7 35987
3f1578fe 35988 * commands/ls.c: Include <grub/partition.h> instead of
35989 <grub/machine/partition.h>.
35990 * kern/disk.c: Likewise.
35991 * kern/rescue.c: Likewise.
35992 * loader/i386/pc/chainloader.c: Likewise.
35993 * normal/cmdline.c: Likewise.
35994 * kern/powerpc/ieee1275/init.c: Likewise.
35995 (grub_machine_init): Call `grub_pc_partition_map_init',
35996 `grub_amiga_partition_map_init' and
35997 `grub_apple_partition_map_init'.
35998 * conf/i386-pc.rmk (kernel_img_SOURCES): Remove
35999 `disk/i386/pc/partition.c'. Add `kern/partition.c'.
36000 (kernel_img_HEADERS): Remove `machine/partition.h'. Add
36001 `partition.h' and `pc_partition.h'.
36002 (grub_setup_SOURCES): Remove
36003 `disk/i386/pc/partition.c'. Add `kern/partition.c',
36004 `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
36005 (grub_emu_SOURCES): Likewise.
36006 (pkgdata_MODULES): Add `amiga.mod', `apple.mod' and `pc.mod'.
36007 (amiga_mod_SOURCES, amiga_mod_CFLAGS, apple_mod_SOURCES)
36008 (apple_mod_CFLAGS, pc_mod_SOURCES, pc_mod_CFLAGS): New variables.
36009 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
36010 `disk/powerpc/ieee1275/partition.c'. Add `kern/partition.c',
36011 `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
36012 (grubof_SOURCES): Likewise.
36013 * disk/i386/pc/partition.c: File removed.
36014 * disk/powerpc/ieee1275/partition.c: Likewise.
36015 * include/grub/powerpc/ieee1275/partition.h: Likewise.
36016 * include/grub/i386/pc/partition.h: Likewise.
36017 * kern/partition.c: New file.
36018 * partmap/amiga.c: Likewise.
36019 * partmap/apple.c: Likewise.
36020 * partmap/pc.c: Likewise.
36021 * include/grub/partition.h: Likewise..
36022 * include/grub/pc_partition.h: Likewise.
36023 * util/grub-emu.c: Include <grub/partition.h> instead of
36024 <grub/machine/partition.h>.
36025 (main): Call `grub_pc_partition_map_init',
36026 `grub_amiga_partition_map_init' and
36027 `grub_apple_partition_map_init' and deinitialize afterwards.
36028 * util/i386/pc/biosdisk.c: Include `#include
36029 <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
36030 `<grub/machine/partition.h>'.
36031 * util/i386/pc/grub-setup.c: Likewise.
36032 * util/i386/pc/biosdisk.c: Likewise.
36033 (grub_util_biosdisk_get_grub_dev): Only access the PC specific
36034 partition information in case of a PC partition.
36035 * util/i386/pc/grub-setup.c: Include `#include
36036 <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
36037 `<grub/machine/partition.h>'.
36038 (setup): Only access the PC specific partition information in case
36039 of a PC partition.
36040
0ef4ced9 360412004-11-17 Hollis Blanchard <hollis@penguinppc.org>
f19dbdb7 36042
0ef4ced9 36043 * kern/powerpc/ieee1275/init.c (grub_setjmp): Remove function.
36044 (grub_longjmp): Likewise.
36045 * include/grub/powerpc/setjmp.h (grub_jmp_buf): Set array size to
36046 20.
36047 * normal/powerpc/setjmp.S: New file.
36048 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
36049 `normal/powerpc/setjmp.S'.
36050 (grubof_CFLAGS): Add `-DGRUBOF'.
36051 * include/grub/setjmp.h [GRUB_UTIL]: Changed condition to
36052 [GRUB_UTIL && !GRUBOF].
f19dbdb7 36053
19950e29 360542004-11-16 Marco Gerards <metgerards@student.han.nl>
36055
36056 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Skip any
36057 property named `name'. Correctly handle the error returned by
36058 `grub_ieee1275_finddevice' if a device can not be opened.
36059
a2fea427 360602004-11-02 Hollis Blanchard <hollis@penguinppc.org>
36061
36062 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_readkey): Test
36063 `actual' for negativity.
36064 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
36065 kern/fshelp.c.
36066
41ea0ea3 360672004-11-01 Marco Gerards <metgerards@student.han.nl>
36068
36069 * term/i386/pc/vga.c (VGA_HEIGHT): Changed to 350.
36070 (PAGE_OFFSET): New macro.
36071 (CRTC_ADDR_PORT): Likewise.
36072 (CRTC_DATA_PORT): Likewise.
36073 (START_ADDR_HIGH_REGISTER): Likewise.
36074 (START_ADDR_LOW_REGISTER): Likewise.
36075 (GRAPHICS_ADDR_PORT): Likewise.
36076 (GRAPHICS_DATA_PORT): Likewise.
36077 (READ_MAP_REGISTER): Likewise.
36078 (INPUT_STATUS1_REGISTER): Likewise.
36079 (INPUT_STATUS1_VERTR_BIT): Likewise.
36080 (page): New variable.
36081 (wait_vretrace): New function.
36082 (set_read_map): Likewise.
36083 (set_start_address): Likewise.
36084 (grub_vga_init): Use mode 0x10 instead of mode 0x12. Switch to
36085 the right page.
36086 (check_vga_mem): Take the page into account.
36087 (write_char): Likewise.
36088 (write_cursor): Likewise.
36089 (scroll_up): Likewise. Copy the page to the page that is not
36090 shown and switch between both pages.
36091 (grub_vga_putchar): Fix off by one error.
36092 (grub_vga_cls): Wait for the vertical retrace. Take the page into
36093 account.
36094
ad0bd20b 360952004-11-01 Marco Gerards <metgerards@student.han.nl>
36096
36097 Add support for iso9660 (including rockridge).
f19dbdb7 36098
ad0bd20b 36099 * conf/i386-pc.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
36100 (iso9660_mod_SOURCES): New variable.
36101 (iso9660_mod_CFLAGS): Likewise.
36102 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
36103 * include/grub/fs.h (grub_iso9660_init): New prototype.
36104 * util/grub-emu.c (main): Call `grub_iso9660_init'.
36105 * fs/iso9660.c: New file.
36106
36107 * include/grub/misc.h (grub_strncat): New prototype.
36108 * kern/misc.c (grub_strncat): New function.
f19dbdb7 36109
ad0bd20b 36110 * fs/hfs.c (grub_hfs_mount): Translate the error
36111 `GRUB_ERR_OUT_OF_RANGE' to `GRUB_ERR_BAD_FS'.
36112 * fs/jfs.c (grub_jfs_mount): Likewise.
36113 * fs/ufs.c (grub_ufs_mount): Likewise.
36114
a5477a59 361152004-10-28 Hollis Blanchard <hollis@penguinppc.org>
36116
36117 * boot/powerpc/ieee1275/cmain.c (cmain): Remove asm statements
36118 which initialized BAT registers.
36119 * boot/powerpc/ieee1275/ieee1275.c (IEEE1275_CALL_ENTRY_FN,
36120 grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
36121 Move from here...
36122 * include/grub/powerpc/ieee1275/ieee1275.h (IEEE1275_CALL_ENTRY_FN,
36123 grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
36124 ... to here.
36125 * kern/powerpc/ieee1275/openfw.c (grub_map): New function.
36126 (grub_mapclaim): Likewise.
36127 * loader/powerpc/ieee1275/linux.c (grub_load_linux): Use
36128 grub_mapclaim instead of grub_ieee1275_claim. Assign linux_addr by
36129 hand.
36130
9304c1f8 361312004-10-19 Hollis Blanchard <hollis@penguinppc.org>
36132
36133 * conf/powerpc-ieee1275.rmk (COMMON_ASFLAGS): Remove -fno-builtin.
36134 (COMMON_CFLAGS): Remove -fno-builtin and -D__ASSEMBLY__. Add
36135 -ffreestanding and -msoft-float.
36136
86f4ae25 361372004-10-15 Hollis Blanchard <hollis@penguinppc.org>
36138
36139 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Do not
36140 append ":0" to devpath if the GRUB_IEEE1275_NO_PARTITION_0 flag is
36141 set in grub_ieee1275_flags.
36142
38912228 361432004-10-14 Hollis Blanchard <hollis@penguinppc.org>
36144
36145 * include/grub/powerpc/ieee1275/ieee1275.h (abort): Add function
36146 prototype.
36147 * kern/powerpc/ieee1275/init.c (grub_machine_init): Call
36148 grub_console_init first.
36149 Change the memory range used for grub_ieee1275_claim and
36150 grub_mm_init_region.
36151 Print an error message if the claim fails.
36152 Include <grub/misc.h>.
36153
d1923dc8 361542004-10-13 Hollis Blanchard <hollis@penguinppc.org>
36155
36156 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_iterate):
36157 Call grub_children_iterate for device nodes of type `scsi',
36158 `ide', or `ata'.
36159 (grub_ofdisk_open): Remove manual device alias resolution.
36160 Fix memory leak when device cannot be opened.
f19dbdb7 36161 * include/grub/powerpc/ieee1275/ieee1275.h
d1923dc8 36162 (grub_children_iterate): New prototype.
36163 * kern/powerpc/ieee1275/openfw.c (grub_children_iterate):
36164 New function.
36165 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
36166 Return -1 if args.size was -1.
36167
4512e4f3 361682004-10-11 Hollis Blanchard <hollis@penguinppc.org>
36169
36170 * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_flags): New global.
36171 (cmain): Accept 3 parameters. Test for 0xdeadbeef, indicating Old
36172 World Macintosh. If Old Wold, set flag in grub_ieee1275_flags; claim
36173 Open Firmware's memory for it; claim memory from _start to _end.
36174 * boot/powerpc/ieee1275/crt0.S (__bss_start): New extern.
36175 (_end): New extern.
36176 (_start): Zero BSS from __bss_start to _end.
36177 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
36178 New extern.
36179 (GRUB_IEEE1275_NO_PARTITION_0): New #define.
36180
4d61feb0 361812004-10-11 Hollis Blanchard <hollis@penguinppc.org>
36182
ad0bd20b 36183 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): Return
36184 -1 if args.base was -1.
4d61feb0 36185
026fa2f9 361862004-10-08 Hollis Blanchard <hollis@penguinppc.org>
36187
36188 * term/powerpc/ieee1275/ieee1275.c (grub_ofconsole_cls): Use an ANSI
36189 escape sequence instead of a literal ^L. Also call
36190 grub_ofconsole_gotoxy.
36191
9f2220ef 361922004-10-03 Hollis Blanchard <hollis@penguinppc.org>
36193
36194 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): change
36195 void * arguments to grub_addr_t. All callers updated. Also make
36196 the `result' argument optional.
36197 (grub_ieee1275_release): change void * arguments to grub_addr_t.
36198 All callers updated.
36199
8a572cd7 362002004-09-22 Hollis Blanchard <hollis@penguinppc.org>
36201
36202 * commands/ls.c (grub_ls_list_files): Use the string following the
36203 initial ')', if present, as the filesystem path.
36204 * kern/rescue.c (grub_rescue_cmd_ls): Likewise.
36205
36206 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): List crt0.S first.
36207
18aa81f2 362082004-09-18 Yoshinori K. Okuji <okuji@enbug.org>
36209
36210 Make the source code of the menu interface more readable.
f19dbdb7 36211
18aa81f2 36212 * normal/menu.c: Include grub/mm.h.
36213 (TERM_WIDTH): New macro.
36214 (TERM_HEIGHT): Likewise.
36215 (TERM_INFO_HEIGHT): Likewise.
36216 (TERM_MARGIN): Likewise.
36217 (TERM_SCROLL_WIDTH): Likewise.
36218 (TERM_TOP_BORDER_Y): Likewise.
36219 (TERM_LEFT_BORDER_X): Likewise.
36220 (TERM_BORDER_WIDTH): Likewise.
36221 (TERM_MESSAGE_HEIGHT): Likewise.
36222 (TERM_BORDER_HEIGHT): Likewise.
36223 (TERM_NUM_ENTRIES): Likewise.
36224 (TERM_FIRST_ENTRY_Y): Likewise.
36225 (TERM_ENTRY_WIDTH): Likewise.
36226 (TERM_CURSOR_X): Likewise.
36227 (draw_border): Use macros instead of magic numbers.
36228 (print_entry): Likewise.
36229 (print_entries): Likewise.
36230 (run_menu): Likewise. Also, handle the key 'e'.
36231 (run_menu_entry): Ignore empty command lines.
36232 (print_message): Added a new argument EDIT. If EDIT is true,
36233 print a different message.
36234 (init_page): Likewise.
36235 (edit_menu_entry): New function. Not implemented yet.
36236
b47efe30 362372004-09-17 Marco Gerards <metgerards@student.han.nl>
36238
36239 Add `linux.mod' and `multiboot.mod' so linux and multiboot kernels
36240 can be loaded from normal mode.
f19dbdb7 36241
b47efe30 36242 * conf/i386-pc.rmk (pkgdata_MODULES): Add `linux.mod' and
36243 `multiboot.mod'.
36244 (linux_mod_SOURCES, linux_mod_CFLAGS, multiboot_mod_SOURCES)
36245 (multiboot_mod_CFLAGS): New variables.
36246 * loader/i386/pc/linux_normal.c: New file.
f19dbdb7 36247 * loader/i386/pc/multiboot_normal.c: Likewise.
36248
b47efe30 36249 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Don't use the
36250 attribute `unused'.
f19dbdb7 36251
b47efe30 36252 * fs/ext2.c (grub_ext2_iterate_dir): Fix typos in inode type. Use
36253 `fdiro' to read the mode information from instead of `diro'.
36254
36255 * fs/fshelp.c (grub_fshelp_find_file): Set type to foundtype after
36256 looking up a symlink.
36257
36258 * include/grub/normal.h (GRUB_COMMAND_FLAG_NO_ARG_PARSE): New
36259 macro.
36260 * normal/command.c (grub_command_execute): Don't parse the
36261 arguments when `GRUB_COMMAND_FLAG_NO_ARG_PARSE' is set in the
36262 flags of the command.
36263
36264 * normal/menu.c (grub_menu_run): Fix typo.
36265
da75ac71 362662004-09-14 Hollis Blanchard <hollis@penguinppc.org>
36267
36268 * kern/powerpc/ieee1275/init.c (abort): Trap into Open Firmware.
36269
36270 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_gotoxy): Use
36271 `y + 1' instead of `y - 1'.
36272
36273 * conf/powerpc-ieee1275.rmk (grubof_LDFLAGS): Add `-N' and `-S'.
f19dbdb7 36274
062b24c2 362752004-09-14 Yoshinori K. Okuji <okuji@enbug.org>
36276
36277 From Hollis Blanchard <hollis@penguinppc.org>:
36278 * kern/misc.c (memmove): New alias for grub_memmove.
36279 (memcmp): New alias for grub_memcmp.
36280 (memset): New alias for grub_memset.
f19dbdb7 36281 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
062b24c2 36282 Change "int handle" to "grub_ieee1275_phandle_t handle".
f19dbdb7 36283 * include/grub/powerpc/ieee1275/ieee1275.h
062b24c2 36284 (grub_ieee1275_get_property): Likewise.
f19dbdb7 36285
8ddad845 362862004-09-12 Tomas Ebenlendr <ebik@ucw.cz>
36287
36288 Added normal mode command `chainloader' as module chain.mod, which
36289 depends on normal.mod and _chain.mod.
f19dbdb7 36290
8ddad845 36291 * conf/i386-pc.rmk (pkgdata_MODULES): Add `chain.mod'.
36292 (chain_mod_SOURCES, chain_mod_CFLAGS): Variables added.
36293 * include/grub/i386/pc/loader.h (grub_rescue_cmd_chainloader):
36294 Deleted prototype.
36295 * loader/i386/pc/chainloader.c (grub_rescue_cmd_chainloader): All
36296 but arguments parsing moved to ...
36297 (grub_chainloader_cmd): ... here. New function.
36298 * include/grub/i386/pc/chainloader.h: New file.
36299 * loader/i386/pc/chainloader_normal.c: Likewise.
36300
2c1f4ce3 363012004-09-11 Marco Gerards <metgerards@student.han.nl>
36302
36303 * conf/i386-pc.rmk (kernel_img_SOURCES): Added kern/fshelp.c.
36304 (grub_mkimage_LDFLAGS): Likewise.
36305 (grub_emu_SOURCES): Likewise.
36306 (kernel_img_HEADERS): Added fshelp.h.
36307 * fs/ext2.c: Include <grub/fshelp.h>.
36308 (FILETYPE_REG): New macro.
36309 (FILETYPE_INO_REG): Likewise.
36310 (grub_ext_sblock): Renamed to `grub_ext2_sblock'.
36311 Changed all users.
36312 (ext2_block_group): Renamed to `grub_ext2_block_group'. Changed
36313 all users.
36314 (grub_fshelp_node): New struct.
36315 (grub_ext2_data): Added member `diropen'. Changed member `inode'
36316 to a pointer.
36317 (grub_ext2_get_file_block): Removed function.
36318 (grub_ext2_read_block): New function.
36319 (grub_ext2_read_file): Replaced parameter `data' by `node'.
36320 This function was written.
36321 (grub_ext2_mount): Read the root inode. Create a diropen struct.
36322 (grub_ext2_find_file): Removed function.
36323 (grub_ext2_read_symlink): New function.
36324 (grub_ext2_iterate_dir): Likewise.
36325 (grub_ext2_open): Rewritten.
36326 (grub_ext2_dir): Rewritten.
36327 * include/grub/fshelp.h: New file.
36328 * fs/fshelp.c: Likewise.
36329
3c52136a 363302004-09-10 Yoshinori K. Okuji <okuji@enbug.org>
36331
36332 * normal/menu.c: Include grub/loader.h and grub/machine/time.h.
36333 (print_message): Add a missing newline.
36334 (run_menu): Added timeout support.
36335 (run_menu_entry): New local function.
36336 (grub_menu_run): Added support for booting.
36337
36338 * kern/loader.c (grub_loader_is_loaded): New function.
36339
36340 * include/grub/powerpc/ieee1275/time.h: Include grub/symbol.h.
36341 (grub_get_rtc): Exported.
36342
36343 * include/grub/i386/pc/time.h: Include grub/symbol.h.
36344 (grub_get_rtc): Exported.
36345
36346 * include/grub/normal.h (struct grub_command_list): Remove
36347 constant from the member `command'.
36348
36349 * include/grub/loader.h (grub_loader_is_loaded): Declared.
36350
36351 * include/grub/err.h (GRUB_ERR_INVALID_COMMAND): New constant.
36352
36353 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/time.h.
36354
aa033560 363552004-08-28 Marco Gerards <metgerards@student.han.nl>
36356
36357 Add support for the JFS filesystem.
36358
36359 * fs/jfs.c: New file.
36360 * include/grub/fs.h (grub_jfs_init): New prototype.
36361 (grub_jfs_fini): New prototype.
36362 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/jfs.c.
36363 (grub_emu_SOURCES): Likewise.
36364 (pkgdata_MODULES): Add jfs.mod.
36365 (jfs_mod_SOURCES): New variable.
36366 (jfs_mod_CFLAGS): Likewise.
36367 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs.jfs.c.
36368 (grubof_SOURCES): Likewise.
36369 * util/grub-emu.c (main): Initialize and deinitialize JFS support.
36370
36371 * fs/fat.c (grub_fat_find_dir): Convert the filename little
36372 endian to the host endian.
36373 (grub_fat_utf16_to_utf8): Move function from there...
36374 * kern/misc.c (grub_utf16_to_utf8): ...to here. Do not convert
fe987087 36375 the endianness of the source string anymore.
aa033560 36376 * include/grub/misc.h (grub_utf16_to_utf8): New prototype.
36377
94bc45af 363782004-08-24 Marco Gerards <metgerards@student.han.nl>
36379
36380 * commands/boot.c (grub_boot_init) [GRUB_UTIL]: Make conditional.
36381 (grub_boot_fini) [GRUB_UTIL]: Likewise.
36382 (GRUB_MOD_INIT) [!GRUB_UTIL]: Likewise.
36383 (GRUB_MOD_FINI) [!GRUB_UTIL]: Likewise.
f19dbdb7 36384
94bc45af 36385 * fs/hfs.c (grub_hfs_find_node): Add a prototype for `node_found'.
36386 (grub_hfs_iterate_dir): Make the function static. Add prototypes
36387 for `node_found' and `it_dir'.
36388 (grub_hfs_dir): Add prototype for `dir_hook'.
36389
36390 * fs/minix.c (grub_minix_get_file_block): Add prototype for
36391 `grub_get_indir'. Rename `indir' in two blocks to `indir16'
36392 and `indir32' to silence a gcc warning.
36393
36394 * include/grub/fs.h (grub_hfs_init): New prototype.
36395 (grub_hfs_fini): Likewise.
f19dbdb7 36396
36397
97543f08 363982004-08-21 Yoshinori K. Okuji <okuji@enbug.org>
36399
36400 Each disk device has its own id now. This is useful to make use
36401 of multiple disk devices.
f19dbdb7 36402
97543f08 36403 * include/grub/disk.h (grub_disk_dev_id): New enum.
36404 (GRUB_DISK_DEVICE_BIOSDISK_ID): New constant.
36405 (GRUB_DISK_DEVICE_OFDISK_ID): Likewise.
36406
36407 * disk/i386/pc/biosdisk.c (grub_biosdisk_dev): Specify
36408 GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
36409
36410 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_dev): Specify
36411 GRUB_DISK_DEVICE_OFDISK_ID as an id.
36412
36413 * util/i386/pc/biosdisk.c (grub_util_biosdisk_dev): Specify
36414 GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
36415
36416 * include/grub/disk.h (struct grub_disk_dev): Added a new member
36417 "id" which is used by the cache manager.
36418
36419 * normal/main.c (grub_normal_init_page): Use "GNU GRUB" instead
36420 of just "GRUB".
36421
64372eb4 364222004-08-18 Marco Gerards <metgerards@student.han.nl>
36423
36424 * fs/hfs.c: New file.
36425 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/hfs.c.
36426 (grub_emu_SOURCES): Likewise.
36427 (pkgdata_MODULES): Add hfs.mod.
36428 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/hfs.c.
36429 (grubof_SOURCES): Likewise.
36430 * util/grub-emu.c (main): Initialize and deinitialize HFS support.
36431
36432 * include/grub/misc.h (grub_strncasecmp): Add prototype.
36433 * kern/misc.c (grub_strncasecmp): Add function.
36434
cc61b58f 364352004-08-14 Marco Gerards <metgerards@student.han.nl>
36436
36437 * include/grub/arg.h (GRUB_ARG_OPTION_OPTIONAL): Surround macro
36438 with parentheses.
36439
36440 * fs/ext2.c (FILETYPE_UNKNOWN): New macro.
36441 (grub_ext2_dir): In case the directory entry type is unknown, read
36442 it from the inode.
36443
0ef123f6 364442004-08-02 Peter Bruin <pjbruin@dds.nl>
36445
36446 * loader/powerpc/ieee1275/linux.c (grub_linux_init): Pass
36447 grub_load_linux instead of grub_rescue_cmd_linux as second
36448 argument of grub_rescue_register_command.
36449
36450 * Makefile.in (RMKFILES): Add conf/powerpc-ieee1275.rmk.
36451
a447c5df 364522004-07-27 Marco Gerards <metgerards@student.han.nl>
36453
36454 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_release): New
36455 function.
36456 * commands/boot.c: Remove the check for `GRUB_UTIL'.
36457 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
36458 `loader/powerpc/ieee1275/linux.c',
36459 `loader/powerpc/ieee1275/linux_normal.c' and `commands/boot.c'.
36460 * include/grub/powerpc/ieee1275/ieee1275.h
36461 (grub_ieee1275_release): New prototype.
36462 * include/grub/powerpc/ieee1275/loader.h: Rewritten.
36463 * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize
36464 normal, boot, linux and linux_normal.
36465 * loader/powerpc/ieee1275/linux.c: New file.
36466 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
36467
5a9e3546 364682004-07-12 Marco Gerards <metgerards@student.han.nl>
36469
36470 * normal/arg.c (grub_arg_parse): Correct error handling after
36471 reallocating the argumentlist (check if `argl' is not null instead
36472 of checking if `args' is not null).
36473 * kern/mm.c (grub_realloc): Return the same pointer when using the
36474 same region, instead of returning the header address.
36475
e15199cb 364762004-07-11 Marco Gerards <metgerards@student.han.nl>
36477
36478 * disk/powerpc/ieee1275/partition.c (grub_partition_iterate): Skip
36479 one block instead of two when looking for the initial partition.
36480 (grub_partition_probe): Initialize the local variable `p' with 0.
36481 Use base 10 for the grub_strtoul call.
36482 * kern/misc.c (grub_strncpy): Fix off by one bug. Eliminated the
36483 need for one local variable.
36484 (grub_strtoul): Don't add the new value to `num', instead of that
36485 just assign it.
36486
020616c2 364872004-07-11 Marco Gerards <metgerards@student.han.nl>
36488
36489 * conf/i386-pc.rmk (pkgdata_IMAGE): Add pxeboot.img.
36490 (pxeboot_img_SOURCES): New variable.
36491 (pxeboot_img_ASFLAGS): Likewise.
36492 (pxeboot_img_LDFLAGS): Likewise.
36493 * boot/i386/pc/pxeboot.S: New file. Based on pxeloader.S from
36494 GRUB Legacy and boot.S. Adopted for GRUB 2 by lode leroy
36495 <lode_leroy@hotmail.com>.
36496
6c51eb64 364972004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
36498
36499 * kern/rescue.c (grub_enter_rescue_mode): Don't continue when
36500 there was no input.
36501
cfb12aff 365022004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
36503
36504 * normal/cmdline.c (grub_set_history): Fix off by one bug. Fixed
36505 the history buffer logic.
36506
6eabba74 365072004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
36508
36509 * fs/ext2.c (FILETYPE_INO_MASK, FILETYPE_INO_DIRECTORY)
36510 (FILETYPE_INO_SYMLINK): New macros.
36511 (grub_ext2_find_file): Check if the node is a directory using the
36512 inode stat information instead of using the filetype in the
36513 dirent. Exclude the first character of an absolute symlink.
36514 (grub_ext2_dir): Mask out the filetype part of the mode member of
36515 the inode.
36516
66e19ef8 365172004-05-24 Marco Gerards <metgerards@student.han.nl>
36518
36519 Add support for UFS version 1 and 2. Add support for the minix
36520 filesystem version 1 and 2, both the variants with 14 and 30 long
36521 filenames.
f19dbdb7 36522
66e19ef8 36523 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ufs.c and
36524 fs/minix.c.
36525 (grub_emu_SOURCES): Likewise.
36526 (pkgdata_MODULES): Add ufs.mod and minix.mod.
36527 (ufs_mod_SOURCES): New variable.
36528 (ufs_mod_CFLAGS): Likewise.
36529 (minix_mod_SOURCES): Likewise.
36530 (minix_mod_CFLAGS): Likewise.
36531 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/ufs.c and
36532 fs/minix.c.
36533 (grubof_SOURCES): Likewise.
36534 * fs/ufs.c: New file.
36535 * fs/minix.c: New file.
36536 * include/grub/fs.h (grub_ufs_init): New prototype.
36537 (grub_ufs_fini): Likewise.
36538 (grub_minix_init): Likewise.
36539 (grub_minix_fini): Likewise.
36540 * util/grub-emu.c (main): Initialize and deinitialize UFS and
36541 minix fs.
36542
cc2e748a 365432004-04-30 Jeroen Dekkers <jeroen@dekkers.cx>
36544
36545 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add normal/arg.c,
36546 commands/ls.c, commands/terminal.c, commands/boot.c,
36547 commands/cmp.c and commands/cat.c.
36548 (grubof_LDFLAGS): Add -nostdlib -static-libgcc -lgcc.
36549
36550 * kern/powerpc/ieee1275/init.c: Include "grub/env.h" instead of
36551 "env.h"
36552
4b13b216 365532004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
36554
36555 All symbols prefixed with PUPA_ and pupa_ are renamed to GRUB_
36556 and grub_, respectively. Because the conversion is trivial and
36557 mechanical, I omit the details here. Please refer to the CVS
36558 if you need more information.
36559
6a142551 365602004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
36561
36562 * include/pupa: Renamed to ...
36563 * include/grub: ... this.
36564 * util/i386/pc/pupa-mkimage.c: Renamed to ...
36565 * util/i386/pc/grub-mkimage.c: ... this.
36566 * util/i386/pc/pupa-setup.c: Renamed to ...
36567 * util/i386/pc/grub-setup.c: ... this.
36568 * util/pupa-emu.c: Renamed to ...
36569 * util/grub-emu.c: ... this.
36570
e56cdf21 365712004-03-29 Marco Gerards <metgerards@student.han.nl>
36572
36573 Add support for the newworld apple macintosh (PPC). This has been
36574 tested on the powerbook 2000 only. It only adds support for
36575 generic ieee1275 functions, console and disk support. This should
36576 be easy to port to other architectures with support for Open
36577 Firmware.
f19dbdb7 36578
e56cdf21 36579 * configure.ac: Accept the powerpc as host_cpu. In the case of
36580 the powerpc cpu set the host_vendor to ieee1275. Make sure the i386
36581 specific tests are only executed while building for the i386.
36582 Inverse test for crosscompile.
36583 * genmk.rb (Utility): Allow assembler files.
36584 * normal/cmdline.c (pupa_tab_complete): Reset pupa_errno.
36585 * conf/powerpc-ieee1275.rmk: New file.
36586 * disk/powerpc/ieee1275/ofdisk.c: Likewise.
36587 * disk/powerpc/ieee1275/partition.c: Likewise.
36588 * include/pupa/powerpc/ieee1275/biosdisk.h: Likewise.
36589 * include/pupa/powerpc/ieee1275/console.h: Likewise.
36590 * include/pupa/powerpc/ieee1275/partition.h: Likewise.
36591 * include/pupa/powerpc/ieee1275/time.h: Likewise.
36592 * include/pupa/powerpc/ieee1275/util/biosdisk.h: Likewise.
36593 * include/pupa/powerpc/ieee1275/multiboot.h: Likewise.
36594 * include/pupa/powerpc/ieee1275/loader.h
36595 * include/pupa/powerpc/setjmp.h: Likewise.
36596 * include/pupa/powerpc/types.h: Likewise.
36597 * kern/powerpc/ieee1275/init.c: Likewise.
36598 * kern/powerpc/ieee1275/openfw.c: Likewise.
36599 * term/powerpc/ieee1275/ofconsole.c: Likewise.
36600
36601 These files were written by Johan Rydberg
36602 (jrydberg@night.trouble.net) and I only modified them slightly.
f19dbdb7 36603
e56cdf21 36604 * boot/powerpc/ieee1275/cmain.c: New file.
36605 * boot/powerpc/ieee1275/crt0.S: Likewise.
36606 * boot/powerpc/ieee1275/ieee1275.c: Likewise.
36607 * include/pupa/powerpc/ieee1275/ieee1275.h: Likewise.
36608
8c8cc205 366092004-03-14 Jeroen Dekkers <jeroen@dekkers.cx>
36610
36611 * Makefile.in: Update copyright.
36612 * genmodsrc.sh: Likewise.
36613 * gensymlist.sh: Likewise.
36614 * term/i386/pc/vga.c: Indent correctly.
36615
36616 * util/i386/pc/pupa-mkimage.c (usage): Use PACKAGE_BUGREPORT as
36617 bugreporting address.
36618 * util/i386/pc/pupa-setup.c (usage): Likewise,
36619 (main): Call pupa_ext2_init and pupa_ext2_fini.
36620
f19dbdb7 36621 * fs/fat.c (log2): Renamed to ...
8c8cc205 36622 (fat_log2): ... this.
36623 All callers changed.
36624 * kern/misc.c (memcpy): Alias to pupa_memmove.
36625 * loader/i386/pc/multiboot.c (pupa_rescue_cmd_multiboot): Fix
36626 lvalue cast.
36627 * util/console.c (pupa_ncurses_fini): Return 0.
36628
36629 * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open)[__linux__]:
36630 Move fail label here.
36631 [__GNU__]: Don't warn when using stat.
36632 (open_device)[!__linux__]: Check if FD < 0 instead of !FD.
36633 (pupa_util_biosdisk_get_pupa_dev)[__GNU__]: Change type of N to
36634 long int. Use strtol instead of strtoul.
f19dbdb7 36635
db1771cf 366362004-03-14 Marco Gerards <metgerards@student.han.nl>
36637
36638 * commands/boot.c: New file.
36639 * commands/cat.c: Likewise.
36640 * commands/cmp.c: Likewise.
36641 * commands/ls.c: Likewise.
36642 * commands/terminal.c: Likewise.
36643 * normal/command.c: Include <pupa/env.h> and <pupa/dl.h>.
36644 (pupa_register_command): Changed interface to match the new
36645 argument parser.
36646 (pupa_command_execute): Changed (almost rewritten) so it uses
36647 pupa_split_command. Added support for setting variables using the
36648 syntax `foo=bar'.
36649 (rescue_command): Changed to work with the new argument parser.
36650 (terminal_command): Moved from here to commands/terminal.c.
36651 (set_command): New function.
36652 (unset_command): New function.
36653 (insmod_command): New function.
36654 (rmmod_command): New function.
36655 (lsmod_command): New function.
36656 (pupa_command_init): Don't initialize the command terminal
36657 anymore. Initialize the commands set, unset, insmod, rmmod and
36658 lsmod.
36659 * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/env.c.
36660 (kernel_img_HEADERS): Add arg.h and env.h.
36661 (pupa_mkimage_LDFLAGS): Add kern/env.c.
36662 (pupa_emu_SOURCES): Add kern/env.c, commands/ls.c,
36663 commands/terminal.c commands/boot.c commands/cmp.c commands/cat.c,
36664 normal/arg.c.
36665 (pkgdata_MODULES): Add ls.mod, boot.mod, cmp.mod, cat.mod and
36666 terminal.mod.
36667 (normal_mod_SOURCES): Add normal/arg.c and normal/arg.c.
36668 (boot_mod_SOURCES): New variable.
36669 (terminal_mod_SOURCES): Likewise.
36670 (ls_mod_SOURCES): Likewise.
36671 (cmp_mod_SOURCES): Likewise.
36672 (cat_mod_SOURCES): Likewise.
36673
36674 * normal/arg.c: New file.
36675 * kern/env.c: Likewise.
36676 * include/pupa/arg.h: Likewise.
36677 * include/pupa/env.h: Likewise.
36678 * font/manager.c (font_command): Changed to match argument parsing
36679 interface changes.
36680 (PUPA_MOD_INIT): Likewise.
36681 * hello/hello.c (pupa_cmd_hello): Likewise.
36682 (PUPA_MOD_INIT): Likewise.
36683 * include/pupa/disk.h: Include <pupa/device.h>.
36684 (pupa_print_partinfo): New prototype.
36685 * include/pupa/dl.h (pupa_dl_set_prefix): Prototype removed.
36686 (pupa_dl_get_prefix): Likewise.
36687 * include/pupa/misc.h: Include <pupa/err.h>.
36688 (pupa_isgraph): New prototype.
36689 (pupa_isdigit): Likewise.
36690 (pupa_split_cmdline): Likewise.
36691 * include/pupa/normal.h: Include <pupa/arg.h>.
36692 (pupa_command): Changed the prototype of the member `func' to
36693 match the argument parsing interface. Added member `options'.
36694 (pupa_register_command): Updated to match function.
36695 (pupa_arg_parse): New prototype.
36696 (pupa_hello_init) [PUPA_UTIL]: New prototype.
36697 (pupa_hello_fini) [PUPA_UTIL]: Likewise.
36698 (pupa_ls_init) [PUPA_UTIL]: Likewise.
36699 (pupa_ls_fini) [PUPA_UTIL]: Likewise.
36700 (pupa_cat_init) [PUPA_UTIL]: Likewise.
36701 (pupa_cat_fini) [PUPA_UTIL]: Likewise.
36702 (pupa_boot_init) [PUPA_UTIL]: Likewise.
36703 (pupa_boot_fini) [PUPA_UTIL]: Likewise.
36704 (pupa_cmp_init) [PUPA_UTIL]: Likewise.
36705 (pupa_cmp_fini) [PUPA_UTIL]: Likewise.
36706 (pupa_terminal_init) [PUPA_UTIL]: Likewise.
36707 (pupa_terminal_fini) [PUPA_UTIL]: Likewise.
36708 * kern/disk.c: Include <pupa/file.h>.
36709 (pupa_print_partinfo): New function.
36710 * kern/dl.c: Include <pupa/env.h>.
36711 (pupa_dl_dir): Variable removed.
36712 (pupa_dl_load): Use the environment variable `prefix' instead of
36713 the variable pupa_dl_dir.
36714 (pupa_dl_set_prefix): Function removed.
36715 (pupa_dl_get_prefix): Likewise.
36716 * kern/i386/pc/init.c: Include <pupa/env.h>.
36717 (pupa_machine_init): Use the environment variable `prefix' instead of
36718 using pupa_dl_set_prefix to set the prefix.
36719 * kern/main.c: Include <pupa/env.h>.
36720 (pupa_set_root_dev): Use the environment variable `prefix' instead of
36721 using pupa_dl_get_prefix to get the prefix.
36722 * kern/misc.c: Include <pupa/env.h>.
36723 (pupa_isdigit): New function.
36724 (pupa_isgraph): Likewise.
36725 (pupa_ftoa): Likewise.
36726 (pupa_vsprintf): Added support for printing values of the type
36727 `double'. Make it possible to format variable output when using
36728 formatting like `%1.2%f'.
36729 (pupa_split_cmdline): New function.
36730 * kern/rescue.c: Include <pupa/env.h>.
36731 (next_word): Removed function.
36732 (pupa_rescue_cmd_prefix): Likewise.
36733 (pupa_rescue_cmd_set): New function.
36734 (pupa_rescue_cmd_unset): New function.
36735 (pupa_enter_rescue_mode): Use the `pupa_split_cmdline' function to
36736 split the command line instead of splitting it here. Added
36737 support for setting variables using the syntax `foo=bar'. Don't
36738 initialize the prefix command anymore. Initialized the set and
36739 unset commands.
36740 * normal/cmdline.c: Include <pupa/env.h>.
36741 (pupa_tab_complete): Added prototypes for print_simple_completion,
36742 print_partition_completion, add_completion, iterate_commands,
36743 iterate_dev, iterate_part and iterate_dir. Moved code to print
36744 partition information from here to kern/disk.c.
fe6b695a 36745 (pupa_cmdline_run): Don't check if the function exists anymore.
db1771cf 36746 * normal/main.c: Include <pupa/env.h>.
36747 (pupa_rescue_cmd_normal): Use the environment variable `prefix'
36748 instead of using pupa_dl_get_prefix to get the prefix.
36749 * term/i386/pc/vga.c: Include <pupa/arg.h>.
36750 (check_vga_mem): Cast pointers to `void *' to silence a gcc
36751 warning.
36752 (pupa_vga_putchar) [! DEBUG_VGA]: Removed for this case.
36753 (pupa_vga_setcolor): Declare unused variables with `__attribute__
36754 ((unused))' to silence a gcc warning.
36755 (pupa_vga_setcolor): Likewise.
36756 (debug_command): Changed to match argument parsing
36757 interface changes.
36758 * util/pupa-emu.c: Include <pupa/env.h>.
36759 (options): Added 0's for unused fields to silence a gcc warning.
36760 (argp): Likewise.
36761 (main): Use the environment variable `prefix' instead of using
36762 pupa_dl_set_prefix to set the prefix. Initialize the commands ls,
36763 boot, cmp, cat and terminal. Finish the commands boot, cmp, cat
36764 and terminal.
36765
36766 * util/i386/pc/getroot.c: Include <pupa/i386/pc/util/biosdisk.h>.
36767 * util/misc.c: Include <malloc.h>.
36768 (pupa_malloc): Rewritten so errors are correctly reported.
36769 (pupa_realloc): Likewise.
36770 (pupa_memalign): Likewise.
36771 (pupa_mm_init_region): Declare unused variables with
36772 `__attribute__ ((unused))' to silence a gcc warning.
36773 * normal/i386/setjmp.S: Remove tab at the end of the file to
36774 silence a gcc warning.
36775 * loader/i386/pc/linux.c (pupa_rescue_cmd_initrd): Declare unused
36776 variables with `__attribute__ ((unused))' to silence a gcc
36777 warning.
36778 * loader/i386/pc/multiboot.c (pupa_multiboot_unload): Make the
36779 local variable i unsigned to silence a gcc warning.
36780
36781 * kern/term.c: Include <pupa/misc.h>.
36782 (pupa_more_lines): New variable.
36783 (pupa_more): Likewise.
36784 (pupa_putcode): When the pager is active pause at the end of every
36785 screen.
36786 (pupa_set_more): New function.
36787 * include/pupa/term.h (pupa_set_more): New prototype.
36788
36789
3b1139cb 367902004-03-07 Yoshinori K. Okuji <okuji@enbug.org>
36791
36792 Now this project is GRUB 2 rather than PUPA. The location of
36793 the CVS repository was moved to GRUB's.
f19dbdb7 36794
3b1139cb 36795 * configure.ac: Use bug-grub as the reporting address.
36796 Use GRUB instead of PUPA.
36797 Change the version number to 1.90.
36798
8367695c 367992004-02-24 Yoshinori K. Okuji <okuji@enbug.org>
36800
36801 * genkernsyms.sh: Updated copyright information.
36802 * genmk.rb: Likewise.
36803 * genmodsrc.sh: Likewise.
36804 * gensymlist.sh: Likewise.
36805 * boot/i386/pc/boot.S: Likewise.
36806 * boot/i386/pc/diskboot.S: Likewise.
36807 * disk/i386/pc/biosdisk.c: Likewise.
36808 * disk/i386/pc/partition.c: Likewise.
36809 * font/manager.c: Likewise.
36810 * fs/ext2.c: Likewise.
36811 * fs/fat.c: Likewise.
36812 * include/pupa/boot.h: Likewise.
36813 * include/pupa/device.h: Likewise.
36814 * include/pupa/disk.h: Likewise.
36815 * include/pupa/dl.h: Likewise.
36816 * include/pupa/elf.h: Likewise.
36817 * include/pupa/err.h: Likewise.
36818 * include/pupa/file.h: Likewise.
36819 * include/pupa/font.h: Likewise.
36820 * include/pupa/fs.h: Likewise.
36821 * include/pupa/kernel.h: Likewise.
36822 * include/pupa/loader.h: Likewise.
36823 * include/pupa/misc.h: Likewise.
36824 * include/pupa/mm.h: Likewise.
36825 * include/pupa/net.h: Likewise.
36826 * include/pupa/normal.h: Likewise.
36827 * include/pupa/rescue.h: Likewise.
36828 * include/pupa/setjmp.h: Likewise.
36829 * include/pupa/symbol.h: Likewise.
36830 * include/pupa/term.h: Likewise.
36831 * include/pupa/types.h: Likewise.
36832 * include/pupa/i386/setjmp.h: Likewise.
36833 * include/pupa/i386/types.h: Likewise.
36834 * include/pupa/i386/pc/biosdisk.h: Likewise.
36835 * include/pupa/i386/pc/boot.h: Likewise.
36836 * include/pupa/i386/pc/console.h: Likewise.
36837 * include/pupa/i386/pc/init.h: Likewise.
36838 * include/pupa/i386/pc/kernel.h: Likewise.
36839 * include/pupa/i386/pc/linux.h: Likewise.
36840 * include/pupa/i386/pc/loader.h: Likewise.
36841 * include/pupa/i386/pc/memory.h: Likewise.
36842 * include/pupa/i386/pc/multiboot.h: Likewise.
36843 * include/pupa/i386/pc/partition.h: Likewise.
36844 * include/pupa/i386/pc/time.h: Likewise.
36845 * include/pupa/i386/pc/vga.h: Likewise.
36846 * include/pupa/i386/pc/util/biosdisk.h: Likewise.
36847 * include/pupa/util/getroot.h: Likewise.
36848 * include/pupa/util/misc.h: Likewise.
36849 * include/pupa/util/resolve.h: Likewise.
36850 * kern/device.c: Likewise.
36851 * kern/disk.c: Likewise.
36852 * kern/dl.c: Likewise.
36853 * kern/err.c: Likewise.
36854 * kern/file.c: Likewise.
36855 * kern/fs.c: Likewise.
36856 * kern/loader.c: Likewise.
36857 * kern/main.c: Likewise.
36858 * kern/misc.c: Likewise.
36859 * kern/mm.c: Likewise.
36860 * kern/rescue.c: Likewise.
36861 * kern/term.c: Likewise.
36862 * kern/i386/dl.c: Likewise.
36863 * kern/i386/pc/init.c: Likewise.
36864 * kern/i386/pc/lzo1x.S: Likewise.
36865 * kern/i386/pc/startup.S: Likewise.
36866 * loader/i386/pc/chainloader.c: Likewise.
36867 * loader/i386/pc/linux.c: Likewise.
36868 * loader/i386/pc/multiboot.c: Likewise.
36869 * normal/cmdline.c: Likewise.
36870 * normal/command.c: Likewise.
36871 * normal/main.c: Likewise.
36872 * normal/menu.c: Likewise.
36873 * normal/i386/setjmp.S: Likewise.
36874 * term/i386/pc/console.c: Likewise.
36875 * term/i386/pc/vga.c: Likewise.
36876 * util/console.c: Likewise.
36877 * util/genmoddep.c: Likewise.
36878 * util/misc.c: Likewise.
36879 * util/pupa-emu.c: Likewise.
36880 * util/resolve.c: Likewise.
36881 * util/unifont2pff.rb: Likewise.
36882 * util/i386/pc/biosdisk.c: Likewise.
36883 * util/i386/pc/getroot.c: Likewise.
36884 * util/i386/pc/pupa-mkimage.c: Likewise.
36885 * util/i386/pc/pupa-setup.c: Likewise.
36886
e6eced71 368872004-02-15 Jeroen Dekkers <jeroen@dekkers.cx>
36888
36889 * fs/ext2.c (pupa_ext2_read_file): Correct the value of BLOCKEND
36890 when it is EXT2_BLOCK_SIZE (data). New argument READ_HOOK, all
36891 callers changed. Set DATA->DISK->READ_HOOK to READ_HOOK before
36892 reading and reset it after reading.
36893 (pupa_ext2_close): Return PUPA_ERR_NONE.
36894
36895 * include/pupa/i386/pc/linux.h (PUPA_LINUX_INITRD_MAX_ADDRESS):
36896 Correct value.
36897 (struct linux_kernel_header): Add kernel_version and
36898 initrd_addr_max.
36899 * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Check whether
36900 pupa_file_read succeeds.
36901 (pupa_rescue_cmd_initrd): Implement.
36902
5aded270 369032003-12-03 Marco Gerards <metgerards@student.han.nl>
36904
36905 * fs/ext2.c (pupa_ext2_label): New function.
36906 (pupa_ext2_fs): Added label.
36907 * fs/fat.c (pupa_fat_label): New function.
36908 (pupa_fat_fs): Added label.
36909 * include/pupa/fs.h (struct pupa_fs): Added prototype label.
36910
36911 * kern/misc.c (pupa_strndup): New function.
36912 * include/pupa/misc.h (pupa_strndup): New prototype.
36913
36914 * include/pupa/normal.h: Include <pupa/err.h>.
36915 (pupa_set_history): New prototype.
36916 (pupa_iterate_commands): New prototype.
36917 * normal/cmdline.c: Include <pupa/machine/partition.h>,
36918 <pupa/disk.h>, <pupa/file.h>.
36919 (hist_size): New variable.
36920 (hist_lines): Likewise.
36921 (hist_end): Likewise.
36922 (hist_used): Likewise.
36923 (pupa_set_history): New function.
36924 (pupa_history_get): Likewise.
36925 (pupa_history_add): Likewise.
36926 (pupa_history_replace): Likewise.
36927 (pupa_tab_complete): Likewise.
36928 (pupa_cmdline_run): Added tab completion and history buffer. Tab
36929 completion shows partitionnames while completing partitions, this
36930 feature was suggested by Jeff Bailey.
36931 * normal/command.c (pupa_iterate_commands): New function.
36932 * normal/main.c (PUPA_DEFAULT_HISTORY_SIZE): New macro.
36933 (pupa_normal_init): Initialize history buffer.
36934 (PUPA_MOD_INIT): Likewise.
36935 (pupa_normal_fini): Free the history buffer.
36936 (PUPA_MOD_FINI): Likewise.
36937
36938 * util/console.c (pupa_ncurses_getkey): Accept 127 as backspace
36939 key.
36940
36941 * aclocal.m4 (pupa_I386_CHECK_REGPARM_BUG): New DEFUN.
36942 * configure.ac [i386]: Check for regparam bug.
36943 (NESTED_FUNC_ATTR) [! i386]: Defined.
36944
1f7315a3 369452003-11-17 Marco Gerards <metgerards@student.han.nl>
36946
36947 * conf/i386-pc.rmk (sbin_UTILITIES): Added pupa-emu.
36948 (pupa_setup_SOURCES): Added util/i386/pc/getroot.c.
36949 (pupa_emu_SOURCES): New variable.
36950 (pupa_emu_LDFLAGS): Likewise.
36951 * include/pupa/fs.h (pupa_ext2_init) [PUPA_UTIL]: New prototype.
36952 (pupa_ext2_fini) [PUPA_UTIL]: Likewise.
36953 * include/pupa/normal.h (pupa_normal_init) [PUPA_UTIL]: Likewise.
36954 (pupa_normal_fini) [PUPA_UTIL]: Likewise.
36955 * include/pupa/setjmp.h [PUPA_UTIL]: Include <setjmp.h>.
36956 (pupa_jmp_buf): New typedef.
36957 (pupa_setjmp) [PUPA_UTIL]: New macro.
36958 (pupa_longjmp) [PUPA_UTIL]: Likewise.
36959 * include/pupa/term.h (struct pupa_term): New member `refresh'.
36960 (pupa_refresh): New prototype.
36961 * include/pupa/util/getroot.h: New file.
36962 * kern/misc.c (pupa_vsprintf): Refresh the screen after updating
36963 it.
36964 * kern/rescue.c (pupa_rescue_get_command_line): Likewise.
36965 (pupa_rescue_cmd_cat): Likewise.
36966 (pupa_rescue_cmd_ls): Likewise.
36967 (pupa_rescue_cmd_testload): Likewise.
36968 (pupa_rescue_cmd_lsmod): Likewise.
36969 * normal/cmdline.c (pupa_cmdline_get): Likewise.
36970 * normal/menu.c (run_menu): Likewise.
36971 * kern/term.c (pupa_cls): Likewise.
36972 (pupa_refresh): New function.
36973 * normal/normal.c (pupa_normal_init) [PUPA_UTIL]: New function.
36974 (pupa_normal_fini) [PUPA_UTIL]: Likewise.
36975 * util/console.c: New file.
f19dbdb7 36976
1f7315a3 36977 * util/i386/pc/getroot.c: New file.
36978 * util/i386/pc/pupa-setup.c: Include <pupa/util/getroot.h>.
36979 (pupa_putchar): New function.
36980 (pupa_refresh): Likewise.
36981 (xgetcwd): Function moved to ...
36982 (strip_extra_slashes): Likewise.
36983 (get_prefix): Likewise.
f19dbdb7 36984 * util/i386/pc/getroot.c: ... here.
1f7315a3 36985 (find_root_device): Function moved and renamed to...
36986 * util/i386/pc/getroot.c (pupa_find_root_device): ... here.
36987 Changed all callers.
36988 * util/i386/pc/pupa-setup.c (guess_root_device): Function moved
36989 and renamed to...
36990 * util/i386/pc/getroot.c (pupa_guess_root_device): ... here.
36991 Changed all callers.
36992 * util/misc.c (pupa_memalign): New function.
36993 (pupa_mm_init_region): Likewise.
36994 (pupa_register_exported_symbols): Likewise.
36995 (pupa_putchar): Function removed.
36996 * util/pupa-emu.c: New file.
36997
9a5c1ade 369982003-11-16 Jeroen Dekkers <jeroen@dekkers.cx>
36999
37000 * conf/i386-pc.rmk (pkgdata_MODULES): Add _multiboot.mod.
37001 (_multiboot_mod_SOURCES): New variable.
37002 (_multiboot_mod_CFLAGS): Likewise.
37003 * loader/i386/pc/multiboot.c: New file.
37004 * include/pupa/i386/pc/multiboot.h: Likewise.
37005 * kern/i386/pc/startup.S: Include pupa/machine/multiboot.h.
37006 (pupa_multiboot_real_boot): New function.
37007 * include/pupa/i386/pc/loader.h: Include pupa/machine/multiboot.h.
37008 (pupa_multiboot_real_boot): New prototype.
37009 (pupa_rescue_cmd_multiboot): Likewise
37010 (pupa_rescue_cmd_module): Likewise.
37011
37012 * kern/loader.c (pupa_loader_set): Continue when
37013 pupa_loader_unload_func() fails.
37014 (pupa_loader_unset): New function.
37015 * include/pupa/loader.h (pupa_loader_unset): New prototype.
37016
37017 * kern/misc.c (pupa_stpcpy): New function.
37018 * include/pupa/misc.h (pupa_stpcpy): New prototype.
37019
8e72a9c0 370202003-11-12 Marco Gerards <metgerards@student.han.nl>
37021
37022 * disk/i386/pc/biosdisk.c (pupa_biosdisk_open): Correctly check
37023 for available extensions.
37024
37025 * include/pupa/i386/pc/time.h: New file.
37026 * kern/disk.c: Include <pupa/machine/time.h>.
37027 (PUPA_CACHE_TIMEOUT): New macro.
37028 (pupa_last_time): New variable.
37029 (pupa_disk_open): Flush the cache when there was a timeout.
37030 (pupa_disk_close): Reset the timer.
37031 * kern/i386/pc/startup.S (pupa_get_rtc): Renamed from
37032 pupa_currticks.
37033 * util/misc.c: Include <sys/times.h>
37034 (pupa_get_rtc): New function.
37035
c4adbd32 370362003-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
37037
37038 * fs/ext2.c (struct pupa_ext2_inode): Declare struct datablocks
37039 as blocks.
37040 (pupa_ext2_get_file_block): Use blocks member.
37041
37042 * fs/ext2.c (pupa_ext2_read_file): Only set skipfirst for the
37043 first block. Return -1 instead of pupa_errno on error.
37044
bfd30f06 370452003-10-27 Marco Gerards <metgerards@student.han.nl>
37046
37047 * README: In the pupa-mkimage example use _chain instead of chain
37048 and ext2 instead of fat.
37049 * TODO: Replace ext2fs with jfs as an example. Add an item for
37050 adding journal playback for ext2fs.
37051 * conf/i386-pc.rmk (pupa_setup_SOURCES): Added fs/ext2.c.
37052 (pkgdata_MODULES): Added ext2.mod.
37053 (ext2_mod_SOURCES): New variable.
37054 (ext2_mod_CFLAGS): Likewise.
37055 * include/pupa/err.h (pupa_err_t): Added PUPA_ERR_SYMLINK_LOOP.
37056 * include/pupa/misc.h (pupa_strncpy): New prototype.
37057 (pupa_strcat): Likewise.
37058 (pupa_strncmp): Likewise.
37059 * kern/misc.c (pupa_strcat): Enable function.
37060 (pupa_strncpy): New function.
37061 (pupa_strncmp): Likewise.
37062 * fs/ext2.c: New file.
f19dbdb7 37063
bfd30f06 37064 * kern/disk.c (pupa_disk_read): Set pupa_errno to PUPA_ERR_NONE
37065 when the read failed before retrying.
37066 * util/i386/pc/biosdisk.c (_LARGEFILE_SOURCE): Removed.
37067 (_FILE_OFFSET_BITS): Likewise.
37068 * configure.ac: Added AC_SYS_LARGEFILE.
37069
98d15063 370702003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
37071
37072 * genmk.rb (PModule#rule): Make sure to get only symbol names
37073 from the output of nm.
59cad637 37074 Reported by Robert Millan <rmh.grub@aybabtu.com>.
98d15063 37075
18d9c7cd 370762003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
37077
37078 I forgot to check in these changes for a long time. This adds
37079 incomplete support for VGA console, and this is still very
37080 buggy. Also, a lot of consideration is required for I18N,
37081 UNICODE, and VGA font issues. Therefore, assume that this is
37082 such that "better than nothing".
f19dbdb7 37083
18d9c7cd 37084 * font/manager.c: New file.
37085 * include/pupa/font.h: Likewise.
37086 * include/pupa/i386/pc/vga.h: Likewise.
37087 * term/i386/pc/vga.c: Likewise.
37088 * util/unifont2pff.rb: Likewise.
37089
37090 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vga.h.
37091 (pkgdata_MODULES): Added vga.mod and font.mod.
37092 (vga_mod_SOURCES): New variables.
37093 (vga_mod_CFLAGS): Likewise.
37094 (font_mod_SOURCES): Likewise.
37095 (font_mod_CFLAGS): Likewise.
37096
37097 * include/pupa/err.h (PUPA_ERR_BAD_FONT): New constant.
37098
37099 * include/pupa/term.h: Include pupa/err.h.
f19dbdb7 37100 (struct pupa_term): Added init and fini.
18d9c7cd 37101 Changed the argument of putchar to pupa_uint32_t.
37102
37103 * include/pupa/i386/pc/console.h: Include pupa/symbol.h.
37104 (pupa_console_real_putchar): New prototype.
37105 (pupa_console_putchar): Removed.
37106 (pupa_console_checkkey): Exported.
37107 (pupa_console_getkey): Likewise.
37108
37109 * kern/misc.c (pupa_vsprintf): Add support for UNICODE
37110 characters.
37111
37112 * kern/term.c (pupa_term_set_current): Rewritten.
37113 (pupa_putchar): Likewise.
37114 (pupa_putcode): New function.
37115
37116 * kern/i386/pc/startup.S (pupa_console_putchar): Renamed to ...
37117 (pupa_console_real_putchar): ... this.
37118 (pupa_vga_set_mode): New function.
37119 (pupa_vga_get_font): Likewise.
37120
37121 * normal/command.c: Include pupa/term.h.
37122 (terminal_command): New function.
37123 (pupa_command_init): Register the command "terminal".
37124
37125 * normal/menu.c (DISP_LEFT): Changed to a UNICODE value.
37126 (DISP_UP): Likewise.
37127 (DISP_RIGHT): Likewise.
37128 (DISP_DOWN): Likewise.
37129 (DISP_HLINE): Likewise.
37130 (DISP_VLINE): Likewise.
37131 (DISP_UL): Likewise.
37132 (DISP_UR): Likewise.
37133 (DISP_LL): Likewise.
37134 (DISP_LR): Likewise.
37135
37136 * term/i386/pc/console.c (pupa_console_putchar): New function.
f19dbdb7 37137
977329f5 371382003-02-08 NIIBE Yutaka <gniibe@m17n.org>
37139
37140 * util/resolve.c (pupa_util_resolve_dependencies): BUG
37141 FIX. Reverse the path_list.
37142
37143 * include/pupa/normal.h: Export pupa_register_command and
37144 pupa_unregister_command.
37145
37146 * hello/hello.c (pupa_cmd_hello): New module.
37147 * conf/i386-pc.rmk: Added hello.mod.
37148
1f5ab428 371492003-01-31 Yoshinori K. Okuji <okuji@enbug.org>
37150
37151 * kern/i386/pc/lzo1x.S: New file.
f19dbdb7 37152
1f5ab428 37153 * util/i386/pc/pupa-mkimage.c: Include lzo1x.h.
37154 (compress_kernel): New variable.
37155 (generate_image): Heavily modified to support compressing a
37156 large part of the core image.
37157
37158 * util/misc.c (pupa_util_read_image): Fix a file descriptor
37159 leak.
37160 (pupa_util_load_image): New function.
37161
37162 * kern/i386/pc/startup.S: Include pupa/machine/kernel.h.
37163 (pupa_compressed_size): New variable.
37164 (codestart): Enable Gate A20 here.
37165 Decompress the compressed part of the core image.
37166 Rearrange the code to put functions and variables which are
37167 required for initialization in the non-compressed part.
37168 Include lzo1x.S.
37169
37170 * kern/i386/pc/init.c (pupa_machine_init): Don't enable Gate A20
37171 here.
37172
37173 * include/pupa/util/misc.h (pupa_util_write_image): Declared.
37174
f19dbdb7 37175 * include/pupa/i386/pc/kernel.h
1f5ab428 37176 (PUPA_KERNEL_MACHINE_COMPRESSED_SIZE): New macro.
37177 (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): Increased by 4.
37178 (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
37179 (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
37180 (PUPA_KERNEL_MACHINE_RAW_SIZE): New macro.
37181
37182 * conf/i386-pc.rmk (pupa_mkimage_LDFLAGS): New variable.
37183
37184 * genmk.rb (Image#rule): Put LDFLAGS at the end of a line.
37185 (Utility#rule): Likewise.
37186
37187 * configure.ac: Check if LZO is available.
37188
ce5bf700 371892003-01-20 Yoshinori K. Okuji <okuji@enbug.org>
37190
37191 * include/pupa/normal.h: New file.
37192 * include/pupa/setjmp.h: Likewise.
37193 * include/pupa/i386/setjmp.h: Likewise.
37194 * normal/cmdline.c: Likewise.
37195 * normal/command.c: Likewise.
37196 * normal/main.c: Likewise.
37197 * normal/menu.c: Likewise.
37198 * normal/i386/setjmp.S: Likewise.
f19dbdb7 37199
ce5bf700 37200 * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Made global.
37201 (pupa_rescue_cmd_initrd): Likewise.
37202
37203 * loader/i386/pc/chainloader.c (pupa_rescue_cmd_chainloader):
37204 Likewise.
37205
37206 * kern/i386/pc/startup.S (translation_table): New variable.
37207 (translate_keycode): New function.
37208 (pupa_console_getkey): Call translate_keycode.
37209
37210 * kern/rescue.c (attempt_normal_mode): New function.
37211 (pupa_enter_rescue_mode): Attempt to execute the normal mode. If
37212 it failed, print a message.
37213
37214 * kern/mm.c (pupa_real_malloc): Print more information when a
37215 free magic is broken.
37216 (pupa_free): If the first free header is not free actually, set
37217 it to P.
37218
37219 * kern/main.c (pupa_load_normal_mode): Just load the module
37220 "normal".
37221 (pupa_main): Don't print the message
37222 "Entering into rescue mode..." here.
37223
37224 * include/pupa/i386/pc/loader.h (pupa_rescue_cmd_initrd):
37225 Declared.
37226 (pupa_rescue_cmd_initrd): Likewise.
37227 (pupa_rescue_cmd_initrd): Likewise.
37228
37229 * include/pupa/symbol.h (FUNCTION): Specify the type.
37230 (VARIABLE): Likewise.
37231
37232 * include/pupa/err.h (pupa_err_t): Added
37233 PUPA_ERR_UNKNOWN_COMMAND.
37234
37235 * include/pupa/dl.h (pupa_dl_set_prefix): Exported.
37236 (pupa_dl_get_prefix): Likewise.
37237
37238 * conf/i386-pc.rmk (pkgdata_MODULES): Added normal.mod.
37239 Added _chain.mod and _linux.mod instead of chain.mod and
37240 linux.mod.
37241 (chain_mod_SOURCES): Renamed to ...
37242 (_chain_mod_SOURCES): ... this.
37243 (chain_mod_CFLAGS): Renamed to ...
37244 (_chain_mod_CFLAGS): ... this.
37245 (linux_mod_SOURCES): Renamed to ...
37246 (_linux_mod_SOURCES): ... this.
37247 (linux_mod_CFLAGS): Renamed to ...
37248 (_linux_mod_CFLAGS): ... this.
37249 (normal_mod_SOURCES): New variable.
37250 (normal_mod_CFLAGS): Likewise.
37251 (normal_mod_ASFLAGS): Likewise.
37252
372532003-01-18 Yoshinori K. Okuji <okuji@enbug.org>
37254
37255 * kern/rescue.c (pupa_rescue_cmd_rmmod): Call pupa_dl_unload, if
37256 possible.
37257
fe6b695a 37258 * kern/dl.c (pupa_dl_ref): Refer depending modules
ce5bf700 37259 recursively.
37260 (pupa_dl_unref): Unrefer depending modules recursively.
37261 Don't call pupa_dl_unload implicitly, because PUPA can crash if
37262 a module is unloaded before one depending on that module is
37263 unloaded.
37264 (pupa_dl_unload): Unload depending modules explicitly,
37265 if possible.
37266
c04da074 372672003-01-17 Yoshinori K. Okuji <okuji@enbug.org>
37268
37269 * include/pupa/i386/pc/linux.h: New file.
37270 * loader/i386/pc/linux.c: Likewise.
f19dbdb7 37271
c04da074 37272 * loader/i386/pc/chainloader.c (pupa_chainloader_boot_sector):
37273 Removed.
37274 (pupa_chainloader_unload): Return PUPA_ERR_NONE.
37275 (pupa_rescue_cmd_chainloader): Read the image to 0x7C00 instead
37276 of PUPA_CHAINLOADER_BOOT_SECTOR.
37277
37278 * kern/i386/pc/startup.S: Include pupa/machine/linux.h.
37279 (pupa_linux_prot_size): New variable.
37280 (pupa_linux_tmp_addr): Likewise.
37281 (pupa_linux_real_addr): Likewise.
37282 (pupa_linux_boot_zimage): New function.
37283 (pupa_linux_boot_bzimage): Likewise.
37284
37285 * kern/i386/pc/init.c (struct mem_region): New structure.
37286 (MAX_REGIONS): New macro.
37287 (mem_regions): New variable.
37288 (num_regions): Likewise.
37289 (pupa_os_area_addr): Likewise.
37290 (pupa_os_area_size): Likewise.
37291 (pupa_lower_mem): Likewise.
37292 (pupa_upper_mem): Likewise.
37293 (add_mem_region): New function.
37294 (compact_mem_regions): Likewise.
37295 (pupa_machine_init): Set PUPA_LOWER_MEM and PUPA_UPPER_MEM to
37296 the size of the conventional memory and that of so-called upper
37297 memory (before the first memory hole).
37298 Instead of adding each found region to free memory, use
37299 add_mem_region and add them after removing overlaps.
37300 Also, add only 1/4 of the upper memory to free memory. The rest
37301 is used for loading OS images. Maybe this is ad hoc, but this
37302 makes it much easier to relocate OS images when booting.
37303
37304 * kern/rescue.c (pupa_rescue_cmd_module): Removed.
37305 (pupa_enter_rescue_mode): Don't register initrd and module.
37306
37307 * kern/mm.c: Include pupa/dl.h.
37308
37309 * kern/main.c: Include pupa/file.h and pupa/device.h.
37310
37311 * kern/loader.c (pupa_loader_load_module_func): Removed.
37312 (pupa_loader_load_module): Likewise.
37313
37314 * kern/dl.c (pupa_dl_load): Use the suffix ``.mod'' instead of
37315 ``.o''.
37316
37317 * include/pupa/i386/pc/loader.h (pupa_linux_prot_size): Declared.
37318 (pupa_linux_tmp_addr): Likewise.
37319 (pupa_linux_real_addr): Likewise.
37320 (pupa_linux_boot_zimage): Likewise.
37321 (pupa_linux_boot_bzimage): Likewise.
37322
37323 * include/pupa/i386/pc/init.h (pupa_lower_mem): Declared.
37324 (pupa_upper_mem): Likewise.
37325 (pupa_gate_a20): Don't export, because turning off Gate A20 in a
37326 module is too dangerous.
37327
37328 * include/pupa/loader.h (pupa_os_area_addr): Declared.
37329 (pupa_os_area_size): Likewise.
37330 (pupa_loader_set): Remove the first argument. Loader doesn't
37331 manage modules or initrd any longer.
37332 (pupa_loader_load_module): Removed.
37333
37334 * conf/i386-pc.rmk (pkgdata_MODULES): Added linux.mod.
37335 (linux_mod_SOURCES): New variable.
37336 (linux_mod_CFLAGS): Likewise.
37337
a13f9237 373382003-01-07 Yoshinori K. Okuji <okuji@enbug.org>
37339
37340 * util/i386/pc/pupa-setup.c (setup): Convert the endianness of
37341 the length of a blocklist correctly.
37342
37343 * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open) [__linux__]:
37344 Use ioctl only if the OS file is a block device.
37345 (pupa_util_biosdisk_open): Don't use ST.ST_BLOCKS, because it is
37346 not very useful for normal files.
37347
37348 * kern/main.c (pupa_set_root_dev): New function.
37349 (pupa_load_normal_mode): Likewise.
37350 (pupa_main): Call those above.
37351
37352 * include/pupa/types.h (pupa_swap_bytes16): Cast the result to
37353 pupa_uint16_t.
37354
37355 * include/pupa/kernel.h (pupa_enter_normal_mode): Removed.
37356
a5ffe966 373572003-01-06 Yoshinori K. Okuji <okuji@enbug.org>
37358
37359 * util/i386/pc/pupa-setup.c: Include pupa/machine/kernel.h.
37360 (setup): Configure the installed partition information and the
37361 dl prefix.
37362
37363 * loader/i386/pc/chainloader.c (my_mod): New variable.
37364 (pupa_chainloader_unload): New function.
37365 (pupa_rescue_cmd_chainloader): Refer itself.
37366 (PUPA_MOD_INIT): Save its own module in MY_MOD.
37367
37368 * kern/i386/pc/startup.S (install_partition): Removed.
37369 (version_string): Likewise.
37370 (config_file): Likewise.
37371 (pupa_install_dos_part): New variable.
37372 (pupa_install_bsd_part): Likewise.
37373 (pupa_prefix): Likewise.
37374 (pupa_chainloader_real_boot): Call pupa_dl_unload_all.
37375
37376 * kern/i386/pc/init.c: Include pupa/machine/kernel.h, pupa/dl.h
37377 and pupa/misc.h.
37378 (make_install_device): New function.
37379 (pupa_machine_init): Set the dl prefix.
37380
37381 * kern/rescue.c: Include pupa/rescue.h and pupa/dl.h.
37382 (buf): Renamed to ...
37383 (linebuf): ... this.
37384 (pupa_rescue_cmd_prefix): New function.
37385 (pupa_rescue_cmd_insmod): Likewise.
37386 (pupa_rescue_cmd_rmmod): Likewise.
37387 (pupa_rescue_cmd_lsmod): Likewise.
37388 (pupa_enter_rescue_mode): Register new commands: prefix, insmod,
37389 rmmod and lsmod.
37390
37391 * kern/mm.c (pupa_memalign): If failed even after invalidating
37392 disk caches, unload unneeded modules and retry.
37393
37394 * kern/misc.c (pupa_memmove): New function.
37395 (pupa_memcpy): Removed.
37396 (pupa_strcpy): New function.
37397 (pupa_itoa): Made static.
37398
37399 * kern/dl.c (pupa_dl_iterate): New function.
37400 (pupa_dl_ref): Likewise.
37401 (pupa_dl_unref): Likewise.
37402 (pupa_dl_unload): Return if succeeded or not.
37403 (pupa_dl_unload_unneeded): New function.
37404 (pupa_dl_unload_all): Likewise.
37405 (pupa_dl_init): Renamed to ...
37406 (pupa_dl_set_prefix): ... this.
37407 (pupa_dl_get_prefix): New function.
37408
37409 * include/pupa/i386/pc/kernel.h: Include pupa/types.h.
37410 (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): New macro.
37411 (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
37412 (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
37413 (pupa_install_dos_part): Declared.
37414 (pupa_install_bsd_part): Likewise.
37415 (pupa_prefix): Likewise.
37416 (pupa_boot_drive): Likewise.
37417
37418 * include/pupa/types.h: Fix a typo.
37419
37420 * include/pupa/misc.h (pupa_memcpy): New macro. Just an alias to
37421 pupa_memmove.
37422 (pupa_memmove): Declared.
37423 (pupa_strcpy): Likewise.
37424
37425 * include/pupa/dl.h (PUPA_MOD_INIT): Change the prototype. Now
37426 pupa_mod_init takes one argument, its own module.
37427 (pupa_dl_unload_unneeded): Declared.
37428 (pupa_dl_unload_all): Likewise.
37429 (pupa_dl_ref): Likewise.
37430 (pupa_dl_unref): Likewise.
37431 (pupa_dl_iterate): Likewise.
37432 (pupa_dl_init): Renamed to ...
37433 (pupa_dl_set_prefix): ... this.
37434 (pupa_dl_get_prefix): Declared.
37435
37436 * fs/fat.c [!PUPA_UTIL] (my_mod): New variable.
f19dbdb7 37437 (pupa_fat_dir) [!PUPA_UTIL]: Prevent the fat module from being
a5ffe966 37438 unloaded.
37439 (pupa_fat_open) [!PUPA_UTIL]: Refer itself if succeeded.
37440 (pupa_fat_close) [!PUPA_UTIL]: Unrefer itself.
37441
37442 * configure.ac (tmp_CFLAGS): Added -Wshadow, -Wpointer-arith,
37443 -Wmissing-prototypes, -Wundef and -Wstrict-prototypes.
37444
012d7999 374452003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
37446
37447 * util/i386/pc/pupa-setup.c (setup): Define the internal
37448 function find_first_partition_start at the top level, because GCC
37449 3.0.x cannot compile internal functions in deeper scopes
37450 correctly.
37451 (find_root_device): Use lstat instead of stat.
37452 Don't follow symbolic links.
37453 Fix the path-constructing code.
37454
37455 * util/i386/pc/biosdisk.c [__linux__] (BLKFLSBUF): New macro.
37456 (pupa_util_biosdisk_open) [__linux__]: Get the size of a device
37457 by a BLKGETSIZE ioctl first, because block devices don't fill
37458 the member st_mode of the structure stat on Linux.
37459 [__linux__] (linux_find_partition): Use a temporary buffer
37460 REAL_DEV for the working space. Copy it to DEV before returning.
37461 (open_device) [__linux__]: Call ioctl with BLKFLSBUF to make the
37462 buffer cache consistent.
37463 (get_os_disk) [__linux__]: Use the length 5 instead of 4 for
37464 strncmp. The previous value was merely wrong.
37465 (pupa_util_biosdisk_get_pupa_dev): Use stat instead of lstat.
37466
37467 * fs/fat.c (pupa_fat_read_data): Shift 4 instead of 12 when the
37468 FAT size is 12. The previous value was merely wrong.
37469
37470 * kern/main.c (pupa_main): Don't split the starting message from
37471 newlines.
37472
37473 * kern/term.c (pupa_putchar): Put CR after LF instead of before
37474 LF, because BIOS goes crazy about character attributes in this
37475 case.
37476
1cc73a62 374772003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
37478
37479 * include/i386/pc/util/biosdisk.h: New file.
37480 * util/i386/pc/biosdisk.c: Likewise.
37481 * util/i386/pc/pupa-setup.c: Likewise.
f19dbdb7 37482
1cc73a62 37483 * Makefile.in (INCLUDE_DISTFILES): Added
37484 include/pupa/i386/pc/util/biosdisk.h.
37485 (UTIL_DISTFILES): Added biosdisk.c and pupa-setup.c under the
37486 directory util/i386/pc.
37487 (install-local): Added a rule for sbin_UTILITIES.
37488 (uninstall): Likewise.
37489
37490 * util/i386/pc/pupa-mkimage.c (usage): Fix a typo in the doc.
37491
37492 * util/misc.c (xrealloc): New function.
37493 (pupa_malloc): Likewise.
37494 (pupa_free): Likewise.
37495 (pupa_realloc): Likewise.
37496 (pupa_stop): Likewise.
37497 (pupa_putchar): Likewise.
37498
37499 * kern/disk.c (pupa_disk_read): Prevent L from underflowing.
37500
37501 * include/pupa/util/misc.h (xrealloc): Declared.
37502
37503 * include/pupa/i386/pc/boot.h (PUPA_BOOT_MACHINE_BPB_START): New
37504 macro.
37505 (PUPA_BOOT_MACHINE_BPBEND): Renamed to ...
37506 (PUPA_BOOT_MACHINE_BPB_END): ... this.
37507
37508 * include/pupa/fs.h [PUPA_UTIL] (pupa_fat_init): Declared.
37509 [PUPA_UTIL] (pupa_fat_fini): Likewise.
37510
37511 * fs/fat.c [PUPA_UTIL] (pupa_fat_init): Defined. Maybe a better
37512 way should be implemented.
37513 [PUPA_UTIL] (pupa_fat_fini): Likewise.
37514
37515 * disk/i386/pc/biosdisk.c (pupa_biosdisk_call_hook): Increase
37516 the size of NAME for safety.
37517 (pupa_biosdisk_iterate): Search hard disks to 0x90 instead of
37518 0x88.
37519
37520 * conf/i386-pc.rmk (sbin_UTILITIES): New variable.
37521 (pupa_setup_SOURCES): Likewise.
37522
37523 * genmk.rb (Utility#rule): Add $(BUILD_CFLAGS) into the rules.
37524
08b70fe8 375252002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
37526
37527 * kern/i386/pc/startup.S (push_get_mmap_entry): Revert to a
37528 bunch of pushl's from pusha, because this destroys the return
37529 value.
37530
62ddcc8f 375312002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
37532
37533 Use -mrtd and -mregparm=3 to reduce the generated code sizes.
37534 This means that any missing prototypes could be fatal. Also, you
37535 must take care when writing assembly code. See the comments at
37536 the beginning of startup.S, for more details.
f19dbdb7 37537
62ddcc8f 37538 * kern/i386/pc/startup.S (pupa_halt): Modified for the new
37539 compilation mechanism.
37540 (pupa_chainloader_real_boot): Likewise.
37541 (pupa_biosdisk_rw_int13_extensions): Likewise.
37542 (pupa_biosdisk_rw_standard): Likewise.
37543 (pupa_biosdisk_check_int13_extensions): Likewise.
37544 (pupa_biosdisk_get_diskinfo_int13_extensions): Likewise.
37545 (pupa_biosdisk_get_diskinfo_standard): Likewise.
37546 (pupa_get_memsize): Likewise.
37547 (pupa_get_mmap_entry): Likewise.
37548 (pupa_console_putchar): Likewise.
37549 (pupa_console_setcursor): Likewise.
37550 (pupa_getrtsecs): Use pushl instead of push.
37551
37552 * kern/i386/pc/init.c (pupa_machine_init): Use the scratch
37553 memory instead of the stack for a mmap entry, because some
37554 BIOSes may ignore the maximum size and overflow.
37555
37556 * conf/i386-pc.rmk (COMMON_CFLAGS): Added -mrtd and -mregparm=3.
37557
37558 * genmk.rb (PModule#rule): Compile automatically generated
37559 sources with module-specific CFLAGS as well as other sources.
37560
9962ed99 375612002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
37562
37563 * configure.ac: Check ld.
37564 Replace CFLAGS and CPPFLAGS with BUILD_CFLAGS and BUILD_CPPFLAGS
37565 respectively, before checking endianness and sizes.
37566
37567 * Makefile.in (LD): New variable.
f19dbdb7 37568
abdfc3c5 375692002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
37570
37571 * Makefile.in (BUILD_CC): CC -> BUILD_CC.
37572
6a161fa9 375732002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
37574
37575 * Changelog: New file.
37576