]> git.proxmox.com Git - grub2.git/blame - ChangeLog
Fix build with glibc 2.20
[grub2.git] / ChangeLog
CommitLineData
a276b840
KR
12014-09-15 Khem Raj <raj.khem@gmail.com>
2 * grub-core/kern/emu/hostfs.c: use _DEFAULT_SOURCE in addition to
3 _BSD_SOURCE to avoid warnings under glibc 2.20+.
4
54bd9a06
MC
52014-09-08 Michael Chang <mchang@suse.com>
6
7 * grub-core/fs/btrfs.c (grub_btrfs_extent_read): Fix extent size
8 check; comparing &data->extent against addresses in the region it
9 points to is unpredictable.
10
2a5a532c
CW
112014-09-07 Colin Watson <cjwatson@ubuntu.com>
12
13 Support grub-emu on x32 (ILP32 but with x86-64 instruction set)
14
15 * configure.ac: Remove -m64 from checks for -mcmodel=large and
16 -mno-red-zone. These are always either unnecessary (x86_64-emu) or
17 already in TARGET_CFLAGS at this point, and they produce incorrect
18 results when building for x32.
19 * grub-core/kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Cast
20 pointers to Elf64_Xword via grub_addr_t, in order to work on x32.
21 * include/grub/x86_64/types.h (GRUB_TARGET_SIZEOF_VOID_P,
22 GRUB_TARGET_SIZEOF_LONG): Define to 4 on x32.
23
4d94b2db
CW
242014-09-07 Colin Watson <cjwatson@ubuntu.com>
25
26 * configure.ac: Remove several unnecessary semicolons.
27
1de3a480
CW
282014-08-25 Colin Watson <cjwatson@ubuntu.com>
29
30 * grub-core/kern/mips/arc/init.c (grub_machine_get_bootlocation):
31 Initialise pend to pacify GCC.
32
c291f47b
AB
332014-08-14 Andrey Borzenkov <arvidjaar@gmail.com>
34
35 * util/grub-mkconfig.in: Fix typo (gettext_print instead of
36 gettext_printf).
37
3c058332
VS
382014-08-13 Vladimir Serbinenko <phcoder@gmail.com>
39
40 * grub-core/term/at_keyboard.c: Retry probing keyboard if
41 scancode setup failed.
42
d1224d20
VS
432014-08-10 Vladimir Serbinenko <phcoder@gmail.com>
44
45 * grub-core/kern/disk_common.c: Clump disk size to 1EiB.
46
0af3ae2d
VS
472014-08-10 Vladimir Serbinenko <phcoder@gmail.com>
48
49 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Add
50 safety to avoid triggerring VirtualBox bug.
51
33f6ce67
VS
522014-08-10 Vladimir Serbinenko <phcoder@gmail.com>
53
54 * grub-core/fs/cbfs.c: Don't probe disks of unknow size.
55
79c80b06
VS
56 Fixes hang on virtualbox.
57
0901e785
CW
582014-07-08 Colin Watson <cjwatson@ubuntu.com>
59
60 * util/grub.d/10_hurd.in: Make kernel list progression not fail on
61 kernels whose paths contain regex metacharacters.
62 * util/grub.d/10_kfreebsd.in: Likewise.
63 * util/grub.d/10_linux.in: Likewise.
64 * util/grub.d/20_linux_xen.in: Likewise.
65
66 Reported by: Heimo Stranner.
67
4250f552
CW
682014-06-26 Colin Watson <cjwatson@ubuntu.com>
69
70 * docs/grub-dev.texi (Finding your way around): The build system no
71 longer uses AutoGen directly.
72
1f6af2a9
РП
732014-06-21 Роман Пехов <roman_pekhov>
74
75 * grub-core/commands/loadenv.c (check_blocklists): Fix overlap check.
76
fa335308
GW
772014-06-21 Glenn Washburn <development@efficientek.com>
78
79 * util/grub-install.c: Fix handling of --disk-module.
80
15bd333e
SR
812014-06-21 Stephane Rochoy <sheda>
82
83 * grub-core/loader/i386/bsd.c (grub_netbsd_boot): Pass pointer to
84 EFI system table.
85
3f3ec8ef
SR
862014-06-21 Stephane Rochoy <sheda>
87
88 * grub-core/commands/efi/lsefisystab.c (grub_cmd_lsefisystab): Show
89 EFI system table physical address.
90
87de66d9
TW
912014-06-21 Trevor Woerner <trevor.woerner@linaro.org>
92
93 * util/grub-gen-asciih.c (add_glyph): Fix uninitialised variable.
94
2c2c5c72
VS
952014-06-21 Vladimir Serbinenko <phcoder@gmail.com>
96
97 * grub-core/commands/verify.c (grub_pubkey_open): Trust procfs.
98
480c8985
VS
992014-06-21 Vladimir Serbinenko <phcoder@gmail.com>
100
101 * grub-core/commands/verify.c (grub_pubkey_open): Fix memdisk
102 check.
103
4b8b9135
VS
1042014-04-20 Vladimir Serbinenko <phcoder@gmail.com>
105
106 * grub-core/kern/misc.c (__bzero): Don't compile in GRUB_UTIL.
107
108 Reported by: Yves Blusseau <blusseau@zetam.org>.
109
5a6db38d
PK
1102014-04-20 Piotr Krysiuk <piotras@gmail.com>
111
112 * grub-core/lib/i386/relocator.c: Allow loading old kernels by placing
113 GDT in conventional memory.
114
3a310e84
CW
1152014-04-10 Colin Watson <cjwatson@ubuntu.com>
116
117 * util/grub.d/30_os-prober.in: Tolerate devices with no filesystem
118 UUID. Other parts of grub-mkconfig tolerate these, they were
119 previously allowed here up to commit
120 55e706c918922def17f5012c23cfe88c4c645208, and they can arise in
121 practice when the system has active LVM snapshots.
122 Fixes Ubuntu bug #1287436.
123
c4badfe8
CW
1242014-04-10 Colin Watson <cjwatson@ubuntu.com>
125
126 * grub-core/disk/lvm.c (grub_lvm_detect): Search for
127 "logical_volumes" block a little more accurately.
128
a72fc329
VS
1292014-04-06 Vladimir Serbinenko <phcoder@gmail.com>
130
131 * grub-core/lib/syslinux_parse.c: Fix timeout quoting.
132
6f6d4aa0
VS
1332014-04-04 Vladimir Serbinenko <phcoder@gmail.com>
134
135 * include/grub/libgcc.h: Remove ctzsi2 and ctzdi2. They're no longer
136 pulled from libgcc.
137
8063ce19
VS
1382014-04-04 Vladimir Serbinenko <phcoder@gmail.com>
139
140 Replace few instances of memcmp/memcpy in the code that should be
141 grub_memcmp/grub_memcpy.
142
97060667
VS
1432014-04-03 Vladimir Serbinenko <phcoder@gmail.com>
144
145 * grub-core/osdep/linux/getroot.c (grub_util_part_to_disk): Support NVMe
146 device names.
147
4afd0107
TF
1482014-03-31 Thomas Falcon <tlfalcon@linux.vnet.ibm.com>
149
150 btrfs: fix get_root key comparison failures due to endianness
151
152 * grub-core/fs/btrfs.c (get_root): Convert
153 GRUB_BTRFS_ROOT_VOL_OBJECTID to little-endian.
154
24024dac
CW
1552014-03-31 Colin Watson <cjwatson@ubuntu.com>
156
157 Fix partmap, cryptodisk, and abstraction handling in grub-mkconfig.
158
159 Commit 588744d0dc655177d5883bdcb8f72ff5160109ed caused grub-mkconfig
160 no longer to be forgiving of trailing spaces on grub-probe output
161 lines, which among other things means that util/grub.d/10_linux.in
162 no longer detects LVM. To fix this, make grub-probe's output
163 delimiting more consistent. As a bonus, this improves the coverage
164 of the -0 option.
165
166 Fixes Debian bug #735935.
167
168 * grub-core/disk/cryptodisk.c
169 (grub_util_cryptodisk_get_abstraction): Add a user-data argument.
170 * grub-core/disk/diskfilter.c (grub_diskfilter_get_partmap):
171 Likewise.
172 * include/grub/cryptodisk.h (grub_util_cryptodisk_get_abstraction):
173 Update prototype.
174 * include/grub/diskfilter.h (grub_diskfilter_get_partmap): Likewise.
175 * util/grub-install.c (push_partmap_module, push_cryptodisk_module,
176 probe_mods): Adjust for extra user-data arguments.
177 * util/grub-probe.c (do_print, probe_partmap, probe_cryptodisk_uuid,
178 probe_abstraction): Use configured delimiter. Update callers.
179
9b35fe81
CW
1802014-03-31 Colin Watson <cjwatson@ubuntu.com>
181
182 * util/grub-probe,c (options): Make -0 work again (broken by
183 conversion to argp).
184 (main): Simplify logic.
185
46b74dd3
VS
1862014-03-26 Vladimir Serbinenko <phcoder@gmail.com>
187
188 * grub-core/lib/relocator.c: Fix the case when end of leftover is used.
189
68f17b2b
FW
1902014-03-26 Fu Wei <fu.wei@linaro.org>
191
192 * grub-core/loader/arm64/linux.c: Remove redundant "0x".
193
86402b4e
VS
1942014-02-28 Vladimir Serbinenko <phcoder@gmail.com>
195
196 * include/grub/i386/openbsd_bootarg.h: Add addr and frequency fields.
197 * grub-core/loader/i386/bsd.c (grub_cmd_openbsd): Fill addr field.
198
199 Suggested by: Markus Müller.
200
bec35dad
VS
2012014-02-28 Vladimir Serbinenko <phcoder@gmail.com>
202
203 * grub-core/kern/i386/pc/mmap.c: Fallback to EISA memory map
204 if E820 failed to return any regions.
205
dfc5ccfa
VS
2062014-02-28 Vladimir Serbinenko <phcoder@gmail.com>
207
208 * grub-core/mmap/i386/uppermem.c (lower_hook) [COREBOOT]: Ignore low
209 tables for low memory calculations.
210
4a70fed8
VS
2112014-02-28 Vladimir Serbinenko <phcoder@gmail.com>
212
213 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi): Limit
214 location to 640K.
215
f94b2b4e
VS
2162014-02-28 Vladimir Serbinenko <phcoder@gmail.com>
217
218 * grub-core/kern/i386/coreboot/mmap.c: Filter out 0xa0000-0x100000
219 region.
220
d0949e37
VS
2212014-02-20 Vladimir Serbinenko <phcoder@gmail.com>
222
223 * grub-core/disk/ahci.c: Ignore NPORTS field and rely on PI
224 exclusively.
225
9585647a
PFS
2262014-02-04 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
227
228 Add bootpath parser for open firmware.
229
230 It enables net boot even when there is no bootp/dhcp server.
231
232 * grub-core/net/drivers/ieee1275/ofnet.c: Add grub_ieee1275_parse_bootpath
233 and call it at grub_ieee1275_net_config_real.
234 * grub-core/kern/ieee1275/init.c: Add bootpath to
235 grub_ieee1275_net_config.
236 * include/grub/ieee1275/ieee1275.h: Likewise.
237
238
e4dbf247
PFS
2392014-02-04 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
240
241 Add grub_env_set_net_property function.
242
243 * grub-core/net/bootp.c: Remove set_env_limn_ro.
244 * grub-core/net/net.c: Add grub_env_set_net_property.
245 * include/grub/net.h: Likewise.
246
006c78f3
VS
2472014-02-03 Vladimir Serbinenko <phcoder@gmail.com>
248
249 * util/grub-mkrescue.c: Build fix for argp.h with older gcc.
250
511ece7c
VS
2512014-02-03 Vladimir Serbinenko <phcoder@gmail.com>
252
253 * util/grub-mkfont.c: Build fix for argp.h with older gcc.
254
9abbaae7
VS
2552014-01-29 Vladimir Serbinenko <phcoder@gmail.com>
256
257 * grub-core/disk/ahci.c: Increase timeout. Some SSDs take up to
258 7 seconds to recover if last poweroff was bad.
259
d6b94c5e
VS
2602014-01-29 Vladimir Serbinenko <phcoder@gmail.com>
261
262 * grub-core/disk/ahci.c: Properly handle transactions with no
263 transferred data.
264
07ea8daa
VS
2652014-01-29 Vladimir Serbinenko <phcoder@gmail.com>
266
267 * grub-core/disk/ahci.c: Add safety cleanups.
268
3142b2fe
VS
2692014-01-29 Vladimir Serbinenko <phcoder@gmail.com>
270
271 * grub-core/disk/ahci.c: Allocate and clean space for all possible 32
272 slots to avoid pointing to uninited area.
273
4686e163
VS
2742014-01-29 Vladimir Serbinenko <phcoder@gmail.com>
275
276 * grub-core/disk/ahci.c: Do not enable I/O decoding and keep
277 enabling busmaster for the end.
278
ba424f37
VS
2792014-01-29 Vladimir Serbinenko <phcoder@gmail.com>
280
281 * util/grub-mkfont.c: Downgrade warnings about unhandled features
282 to debug.
283
3beabdc8 2842014-01-29 Vladimir Serbinenko <phcoder@gmail.com>
7f64fb59
VS
285
286 * grub-core/term/at_keyboard.c: Tolerate missing keyboard.
287
ba584da1
PFS
2882014-01-29 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
289
290 * .gitignore: add missing files and .exe variants.
291
35f2d96c
MG
2922014-01-26 Mike Gilbert <floppym@gentoo.org>
293
294 grub-install: support for partitioned partx loop devices.
295
296 * grub-core/osdep/linux/getroot.c (grub_util_part_to_disk): Detect
297 /dev/loopX as being the parent of /dev/loopXpY.
298
9afe2053
VS
2992014-01-26 Vladimir Serbinenko <phcoder@gmail.com>
300
301 * grub-core/term/serial.c (grub_serial_register): Fix invalid free.
302 Ensure that pointers are inited to NULL and that pointers are not
303 accessed after free.
5ae584c0
AB
304
3052014-01-25 Andrey Borzenkov <arvidjaar@gmail.com>
306
307 * include/grub/crypto.h: Replace __attribute__ ((format (printf)) with
308 __attribute__ ((format (__printf__)) to fix compilation under MinGW-w64.
309 * include/grub/emu/misc.h: ... and here.
310 * include/grub/err.h: ... and here.
311 * util/import_gcry.py: ... and here (in files g10lib.h).
312
1440b7eb
AB
3132014-01-25 Andrey Borzenkov <arvidjaar@gmail.com>
314
315 * util/grub-mkimage.c: Make prefix argument mandatory.
316
61c8482b
VS
3172014-01-24 Vladimir Serbinenko <phcoder@gmail.com>
318
319 Fix several translatable strings.
320
321 Suggested by: D. Prévot.
322
95cd131e
VS
3232014-01-24 Vladimir Serbinenko <phcoder@gmail.com>
324
325 * util/grub-install.c: List available targets.
326
d0805930
CW
3272014-01-23 Colin Watson <cjwatson@ubuntu.com>
328
329 * util/grub-install.c (write_to_disk): Add an info message.
330
eec4237a
AB
3312014-01-21 Andrey Borzenkov <arvidjaar@gmail.com>
332
333 * Makefile.am: Allow adding extra files to generated Windows ZIP
334 archive by setting GRUB_WINDOWS_EXTRA_DIST.
335
36387ece
AB
3362014-01-21 Andrey Borzenkov <arvidjaar@gmail.com>
337
338 * configure.ac: Look for DejaVuSans also in /usr/share/fonts/truetype.
443b3222 339 Show detected font path in summary.
36387ece 340
6f65e36c
PFS
3412014-01-21 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
342
343 * grub-core/net/arp.c (grub_net_arp_send_request): Increase network try
344 interval gradually.
345 * grub-core/net/icmp6.c (grub_net_icmp6_send_request): Likewise.
346 * grub-core/net/net.c (grub_net_fs_read_real): Likewise.
347 * grub-core/net/tftp.c (tftp_open): Likewise.
348 * include/grub/net.h (GRUB_NET_INTERVAL_ADDITION): New define.
349
d99d2f84
PFS
3502014-01-21 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
351
352 * grub-core/net/net.c (receive_packets): Change stop condition to avoid
353 infinite loops.
354
355 In net/net.c there is a while (1) that only exits if there is a stop
356 condition and more then 10 packages or if there is no package received.
357
358 If GRUB is idle and enter in this loop, the only condition to leave is
359 if it doesn't have incoming packages. In a network with heavy traffic
360 this never happens.
361
049f6382
CW
3622014-01-19 Colin Watson <cjwatson@ubuntu.com>
363
364 * grub-core/osdep/freebsd/hostdisk.c (grub_util_fd_open): Ignore
365 EPERM when modifying kern.geom.debugflags. It is only a problem for
366 such things as installing GRUB to the MBR, in which case there'll be
367 an error later anyway, not for opening files during tests.
368
01504547
AB
3692014-01-18 Andrey Borzenkov <arvidjaar@gmail.com>
370
371 * grub-core/Makefile.am: Build grub_emu_init.[ch] from MODULE_FILES
372 instead of MOD_FILES.
373 * grub-core/genemuinit.sh: Simplify stripping of suffix so it works
374 both with and without .exe.
375 * grub-core/genemuinitheader.sh: Same.
376
b204b718
VS
3772014-01-18 Vladimir Serbinenko <phcoder@gmail.com>
378
379 * util/grub-install.c: Fix a typo.
380
41155a57
VS
3812014-01-18 Vladimir Serbinenko <phcoder@gmail.com>
382
383 * grub-core/normal/main.c (read_config_file): Buffer config file.
384 Reduces boot time.
385
e0a85094
AB
3862014-01-18 Andrey Borzenkov <arvidjaar@gmail.com>
387
388 * acinclude.m4 (grub_CHECK_LINK_DIR): Check that we can also remove
389 symbolic link to directory. It fails in Msys shell on Windows 2003.
390
0b47c57a
VS
3912014-01-18 Vladimir Serbinenko <phcoder@gmail.com>
392
393 * Makefile.am (default_payload.elf): Add modules
394 multiboot cbmemc linux16 gzio echo help.
395
3962014-01-18 Mike Gilbert <floppym@gentoo.org>
6ba98355
MG
397
398 * Makefile.util.def: Link grub-ofpathname with zfs libs.
399
6c519b5c
VS
4002014-01-18 Vladimir Serbinenko <phcoder@gmail.com>
401
402 * grub-core/commands/macbless.c: Rename FILE and DIR to avoid
403 conflicts.
404
405 Reported by: Andrey Borzenkov.
406
f371dd5d
AB
4072014-01-18 Andrey Borzenkov <arvidjaar@gmail.com>
408
409 * include/grub/misc.h: Move macros for compiler features to ...
410 * include/grub/compiler.h: ... new file.
411 * include/grub/list.h: Include <grub/compiler.h> instead of <grub/misc.h>.
412 * grub-core/commands/fileXX.c: Include <grub/misc.h>.
413 * grub-core/efiemu/prepare.c: Include <grub/misc.h>.
414 * grub-core/loader/i386/xen_file.c: Include <grub/misc.h>.
415 * grub-core/loader/i386/xen_fileXX.c: Include <grub/misc.h>.
416 * grub-core/video/capture.c: Include <grub/misc.h>.
417 * include/grub/command.h: Include <grub/misc.h>.
418 * include/grub/dl.h: Include <grub/misc.h>.
419 * include/grub/procfs.h: Include <grub/misc.h>.
420
1ecf96fc
AB
4212014-01-18 Andrey Borzenkov <arvidjaar@gmail.com>
422
423 * configure.ac: Add support for BUILD_EXEEXT and use it ...
424 * Makefile.am: ... here.
425 * Makefile.util.def: ... and here.
426 * grub-core/Makefile.am: ... and here.
427
5ef569df
AB
4282014-01-18 Andrey Borzenkov <arvidjaar@gmail.com>
429
430 * include/grub/osdep/hostfile_windows.h: Use _W64 instead of
431 FILE_OFFSET_BITS to differentiate between native MinGW and Mingw W64.
432
3abb9563
VS
4332014-01-18 Vladimir Serbinenko <phcoder@gmail.com>
434
435 * grub-core/term/terminfo.c: Recognize keys F1-F12.
436
9b9c4686 4372014-01-18 Andrey Borzenkov <arvidjaar@gmail.com>
dcecae1a
AB
438
439 * configure.ac: Add support for BUILD_LDFLAGS.
440 * Makefile.am: Use BUILD_LDFLAGS for build time programs here ...
441 * grub-core/Makefile.am: ... and here.
442 * INSTALL: Mention BUILD_LDFLAGS.
443
ae80f312
VS
4442014-01-18 Vladimir Serbinenko <phcoder@gmail.com>
445
446 * util/grub-mount.c: Extend GCC warning workaround to grub-mount.
447
7e7293d7
VS
4482014-01-18 Vladimir Serbinenko <phcoder@gmail.com>
449
450 * grub-core/kern/efi/efi.c: Ensure that the result starts with /
451 and has no //.
452
5acc8020
VS
4532014-01-18 Vladimir Serbinenko <phcoder@gmail.com>
454
455 * NEWS: Add few missing entries.
456
ff66b8e7
CW
4572014-01-17 Colin Watson <cjwatson@ubuntu.com>
458
459 * util/grub.d/00_header.in (make_timeout): Use && rather than test
460 -a.
461 * util/grub.d/10_windows.in: Likewise.
462 * util/grub.d/10_netbsd.in (netbsd_load_fs_module): Use || rather
463 than test -o.
464 * util/grub.d/30_os-prober.in: Use && rather than test -a, and ||
465 rather than test -o.
466
4672014-01-17 Colin Watson <cjwatson@ubuntu.com>
09a836e5
CW
468
469 * grub-core/osdep/freebsd/hostdisk.c (grub_util_fd_open): Remove
470 redundant preprocessor conditional.
471
ccd21a65
CW
4722014-01-08 Colin Watson <cjwatson@ubuntu.com>
473
474 * Makefile.util.def (grub-macbless): Change mansection to 8.
475
4d21c101
LL
4762014-01-07 Leif Lindholm <leif.lindholm@linaro.org>
477
478 * grub-core/loader/arm64/linux.c: correctly set device path end length.
479
e7cfa8d5
AB
4802014-01-07 Andrey Borzenkov <arvidjaar@gmail.com>
481
482 * util/grub-install.c: Use bootaa64.efi instead of bootaarch64.efi on
483 arm64 to comply with EFI specification. Also use grubaa64.efi for
484 consistency.
485 * util/grub-mkrescue.c: Change to use bootaa64.efi too.
486
94cee4a4
AB
4872014-01-07 Andrey Borzenkov <arvidjaar@gmail.com>
488
489 * include/grub/osdep/hostfile_windows.h: Do not redefine fseeko/ftello
490 on MinGW-64 when compiling for 32 bits.
491
668add25
AB
4922013-12-30 Andrey Borzenkov <arvidjaar@gmail.com>
493
494 * grub-core/Makefile.core.def: strip .eh_frame section for arm64-efi.
495
0e309454
VS
4962013-12-30 Vladimir Serbinenko <phcoder@gmail.com>
497
498 * NEWS: Add few missing entries. Correct existing ones.
499
093dec73
VS
5002013-12-28 Vladimir Serbinenko <phcoder@gmail.com>
501
502 Don't abort() on unavailable coreboot tables if not running on coreboot.
503
989af025
AB
5042013-12-28 Andrey Borzenkov <arvidjaar@gmail.com>
505
506 * grub-core/kern/emu/misc.c: Remove unused error.h; fixes compilation
507 on mingw.
508
8442d3e9
CW
5092013-12-28 Colin Watson <cjwatson@ubuntu.com>
510
511 * NEWS: The cmosclean command in fact dates back to 1.99. Remove
512 mention of it from 2.02.
513
645ff636 5142013-12-27 Vladimir Serbinenko <phcoder@gmail.com>
5bda44d7
VS
515
516 * grub-core/kern/arm/cache_armv6.S: Remove .arch directive.
517
518 As these functions are used on pre-ARMv6 CPUs as well we don't want
519 to make assembler assume that architecture is higher than default one.
520
30a33846
CW
5212013-12-27 Colin Watson <cjwatson@ubuntu.com>
522
523 * NEWS: First draft of 2.02 entry.
524
51f941a0
CW
5252013-12-27 Colin Watson <cjwatson@ubuntu.com>
526
527 * INSTALL (Cross-compiling the GRUB): Fix some spelling mistakes.
528 * docs/grub.texi (Getting the source code): Likewise.
529
a6e7719b
AB
5302013-12-25 Andrey Borzenkov <arvidjaar@gmail.com>
531
532 * grub-core/osdep/windows/platform.c (get_platform): Fix EFI
533 detection.
534
e8f07821
VS
5352013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
536
537 * configure.ac: Set version to 2.02~beta2.
538
dc3286ad
VS
5392013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
540
541 * grub-core/disk/efi/efidisk.c (name_devices): Skip Apple ghosts.
542
46f8d358
AB
5432013-12-24 Andrey Borzenkov <arvidjaar@gmail.com>
544
545 * util/grub-probe.c: Improve help message and simplify list handling.
546
09c47900
VS
5472013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
548
549 Fix buffer overflow in grub_efi_print_device_path.
550
4d6c6953
VS
5512013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
552
553 Show SATA device path.
554
faf4a65e
VS
5552013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
556
557 Revert grub-file usage in grub-mkconfig.
558
e5fa26e5
VS
5592013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
560
561 Make newly-created files other than grub.cfg world-readable.
562
569766e4
AB
5632013-12-24 Andrey Borzenkov <arvidjaar@gmail.com>
564
565 * util/grub.d/00_header.in: Improve compatibility with old config.
566
41272068
VS
5672013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
568
569 Make rijndael.c respect aliasing rules.
570
571 Trivial backport of dfb4673da8ee52d95e0a62c9f49ca8599943f22e.
572
f7c7c4d4
VS
5732013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
574
575 Make grub_util_device_is_mapped_stat available in grub-emu core.
576
57bc5d43
VS
5772013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
578
579 Add -Qn to TARGET_CFLAGS if it's supported.
580 Fixes compilation on cygwin.
581
582 Reported by: Andrey Borzenkov.
583 Suggested by: Andrey Borzenkov.
584
6a7957f9
VS
5852013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
586
587 Save TARGET_CC version in modinfo.sh.
588
589 Suggested by: Andrey Borzenkov.
590
e88f0420
VS
5912013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
592
593 Make grub_util_devmapper_part_to_disk and grub_util_find_partition_start
594 follow the same algorithm to avoid method mismatch. Don't assume
595 DMRAID- UUID to mean full disk but instead check that mapping is linear.
596
da986226
VS
5972013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
598
599 Declare GRUB_EFI_VENDOR_APPLE_GUID.
600
fba31b5f
VS
6012013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
602
603 Dump type and vendor specific data when printing device path.
604
3d369a01
CW
6052013-12-23 Colin Watson <cjwatson@debian.org>
606
607 Update some documentation to refer to Git rather than Bazaar.
608
609 * docs/grub.texi (Obtaining and Building GRUB): Refer to Git rather
610 than Bazaar.
611 * po/README: Likewise. Fix spelling mistake.
612
5b83ef97
CW
6132013-12-23 Colin Watson <cjwatson@ubuntu.com>
614
615 Don't distribute config.h.
616
617 * Makefile.am (platform_HEADERS): Move to ...
618 (nodist_platform_HEADERS): ... here. Fixes gettext_strings_test
619 failure when building from a distributed tarball.
620
16f7455b
CW
6212013-12-23 Colin Watson <cjwatson@ubuntu.com>
622
623 * configure.ac: Fix spelling.
624 * grub-core/commands/parttool.c: Fix grammar.
625 * grub-core/disk/ldm.c: Use consistent capitalisation for "LDM
626 Embedding Partition".
627
808e97c4
VS
6282013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
629
630 ARM64 support for grub-mkrescue.
631
e388db90
VS
6322013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
633
634 Install modinfo.sh to keep build information around.
635
cef39403
VS
6362013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
637
638 * grub-core/modinfo.sh.in: Add build config information.
639
a4d61002
VS
6402013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
641
642 ARM64 grub-file and grub-mkconfig support.
643
0c930a84
VS
6442013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
645
646 Remove leftover options defines.
647
74fa9ac1
VS
6482013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
649
650 * include/grub/arm64/linux.h: Remove leftovers. Add missing prefixes.
651
62956fe7
VS
6522013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
653
654 * grub-core/loader/arm64/linux.c: Add missing bracket.
655
26063216
VS
6562013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
657
658 Add arm64-efi recognition to grub-file.
659
4cd0b55f
VS
6602013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
661
662 Fix ia64-efi recognition in grub-file.
663
95b56e3a
VS
6642013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
665
666 Recognize raspberry pi kernel in grub-file.
667
bbc52c22
VS
6682013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
669
670 Enable cache on ARM U-Boot port.
671
672 Without it the port is reidiculously slow.
673
943981ff
VS
6742013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
675
676 Fix ARM cache maintainance.
677
678 More code was converted from ASM to C for easier handling.
679
adabfb54
VS
6802013-12-22 Vladimir Serbinenko <phcoder@gmail.com>
681
682 * grub-core/kern/arm/cache.c (grub_arm_disable_caches_mmu): Use v6
683 algorithm on v5.
684
685 Suggested by: Leif Lindholm.
686
77ec462a
AB
6872013-12-22 Andrey Borzenkov <arvidjaar@gmail.com>
688
689 * util/grub-mkconfig.in: Fix Xen platform conditions.
690
3bf2db89
AB
6912013-12-22 Andrey Borzenkov <arvidjaar@gmail.com>
692
693 * util/grub-mkrescue.c: Split single help message string in several
694 strings used in previous shell version.
695
30a9ab95
LL
6962013-12-22 Leif Lindholm <leif.lindholm@linaro.org>
697
698 Add arm64 Linux loader.
699
c415eaa9
LL
7002013-12-22 Leif Lindholm <leif.lindholm@linaro.org>
701
702 Add grub_fdt_create_empty_tree() and grub_fdt_set_prop64().
703
313fb3ce
VS
7042013-12-22 Vladimir Serbinenko <phcoder@gmail.com>
705
706 Add module loading and parsing boot time checkpoints.
707
37f617c0
VS
7082013-12-22 Vladimir Serbinenko <phcoder@gmail.com>
709
710 * grub-core/loader/arm/linux.c: Pass arguments through on ATAG
711 platforms.
712
3deedfc0
LW
7132013-12-22 Lars Wendler <polynomial-c@gentoo.org>
714
715 * util/grub-mkconfig.in: Skip non-executable files.
716
5ad9f728
VS
7172013-12-22 Vladimir Serbinenko <phcoder@gmail.com>
718
719 Workaround buggy timer in raspberry pie by using our own timer
720 implementation.
721
eeb84997
VS
7222013-12-22 Vladimir Serbinenko <phcoder@gmail.com>
723
724 * include/grub/arm/uboot/kernel.h (GRUB_KERNEL_MACHINE_HEAP_SIZE):
725 Increase to 16 MiB to allow loading the whole memdisk.
726
0d8b81f8
VS
7272013-12-22 Vladimir Serbinenko <phcoder@gmail.com>
728
729 Fix ARM Linux Loader on non-FDT platforms.
730
bf082198
VS
7312013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
732
733 * configure.ac: Choose link format based on host_os on emu.
734
0b602bf9
VS
7352013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
736
737 * grub-core/osdep/unix/getroot.c: Non-unix build fix.
738
96650a82
VS
7392013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
740
741 * grub-core/kern/emu/main.c: Build fix for emu.
742
ca3e2088
VS
7432013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
744
745 Build fixes for argp.h with older gcc.
746
27db1a9b
VS
7472013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
748
749 * util/grub-glue-efi.c: Use "universal binary" rather "fat binary"
750 in strings.
751
752 Suggested by: David Prévot.
753
8a913e66
VS
7542013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
755
756 * include/grub/crypto.h (grub_crypto_xor): Fix cast-align warning.
757
ae558c2c
VS
7582013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
759
760 Enable -Wformat=2 if it's supported.
761
bbac6789
VS
7622013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
763
764 * configure.ac: Add -Wmissing-include-dirs -Wmissing-prototypes
765 -Wmissing-declarations if supported.
766
ab216512
VS
7672013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
768
769 * grub-core/commands/macbless.c (grub_mac_bless_inode): Pass inode as
770 u32 as both HFS and HFS+ have 32-bit inodes.
771
0d4aa91d
VS
7722013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
773
774 * include/grub/misc.h (grub_strtol): Fix overflow.
775
a997af68
VS
7762013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
777
778 * include/grub/term.h (grub_unicode_estimate_width): Use grub_size_t
779 as return type in both conditionals.
780
36bcaf29
VS
7812013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
782
783 * include/grub/video.h (grub_video_rgba_color_rgb): Fix prototype
784 to use uint8_t for color.
785
74763e96
VS
7862013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
787
788 * util/misc.c (grub_util_get_image_size): Check for overflow.
789
80b29fc9
VS
7902013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
791
792 * grub-core/disk/raid6_recover.c (grub_raid_block_mulx): Use grub_size_t
793 for size.
794
6e327fcd
VS
7952013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
796
797 * grub-core/disk/lvm.c: Use grub_size_t for sizes and grub_ssize_t
798 for pointer difference.
799
62ce03cf
VS
8002013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
801
802 * util/import_gcry.py: Skip sample keys.
803
f4d70fd0
VS
8042013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
805
806 * util/misc.c (grub_qsort_strcmp): Don't discard const attribute.
807
93bf55e6
VS
8082013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
809
810 * configure.ac: Remove duplicate warning arguments.
811
579ee114
VS
8122013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
813
814 Add missing static qualifiers.
815
ee5283d6
VS
8162013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
817
818 Add missing includes.
819
5dbde526
VS
8202013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
821
822 Inline printf templates when possible to enable format checking.
823
d88ae4f0
VS
8242013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
825
826 * include/grub/crypto.h: Don't discard const attribute.
827
17b43559
VS
8282013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
829
830 * grub-core/net/bootp.c (grub_cmd_dhcpopt): Use snprintf where it
831 was intended.
832
76a2a430
VS
8332013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
834
835 * grub-core/lib/crypto.c: Don't discard const attribute.
836
0d26164e
VS
8372013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
838
839 * grub-core/lib/disk.c: Fix potential overflow.
840
2622b1e8
VS
8412013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
842
843 * grub-core/lib/arg.c: Don't discard const attribute.
844
05126706
VS
8452013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
846
847 * grub-core/kern/dl.c: Don't discard const attribute.
848
2f9c4804
VS
8492013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
850
851 * grub-core/kern/disk.c: Fix potential overflow.
852
0438ebf1
VS
8532013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
854
855 * conf/Makefile.common: Don't include non-existing directory
856 grub-core/lib/libgcrypt-grub/include.
857
065adc34
VS
8582013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
859
860 Clarify several translatable messages.
861
496a6b30
DP
8622013-12-21 David Prévot <david@tilapin.org>
863
864 Correct some translatable strings.
865
971038be
CW
8662013-12-21 Colin Watson <cjwatson@ubuntu.com>
867
868 * util/grub-mkrescue.c: Rephrase mkrescue description.
869
bfdfeb25
VS
8702013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
8712013-12-21 Colin Watson <cjwatson@ubuntu.com>
872
873 Clarify several translatable messages.
874
d642d761
CW
8752013-12-20 Colin Watson <cjwatson@ubuntu.com>
876
877 Be more verbose about some configure failures.
878
3bc1b2da
CW
8792013-12-20 Colin Watson <cjwatson@ubuntu.com>
880
881 Fix various build problems on GNU/Hurd.
882
883 * grub-core/osdep/unix/getroot.c (strip_extra_slashes): Move inside
884 !defined (__GNU__).
885 (xgetcwd): Likewise.
886 * include/grub/emu/hostdisk.h (grub_util_hurd_get_disk_info)
887 [__GNU__]: Add prototype.
888 * util/getroot.c (grub_util_biosdisk_get_grub_dev) [__GNU__]: Format
889 long int using %ld rather than %d.
890
871aa709
VS
8912013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
892
893 * util/grub-install.c: Inform user about install platform.
894
2fa5a58c
VS
8952013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
896
897 * configure.ac: Set version to 2.02~beta1.
898
ee281fd0
AP
8992013-12-18 Allen Pais <allen.pais@oracle.com>
9002013-12-18 Bob Picco <bob.picco@oracle.com>
901
902 * grub-core/boot/sparc64/ieee1275/boot.S: Fix order of fields.
903
2e238b37
VS
9042013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
905
906 Make grub_zlib_decompress handle incomplete chunks.
907
908 Fixes squash4.
909
2984035e
VS
9102013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
911
912 * grub-core/Makefile.am: Don't attempt to export grub_bios_interrupt
913 on i386-multiboot.
914
b9f03772
AN
9152013-12-18 Aleš Nesrsta <starous@volny.cz>
916
917 * grub-core/disk/usbms.c: Retry on unknown errors.
918 Reuse the same tag on retries.
919
e3ef0d30
AN
9202013-12-18 Aleš Nesrsta <starous@volny.cz>
921
922 * grub-core/bus/usb/ehci.c: Fix handling of newborn transfers.
923
924 Avoid confusing them with already completed transfers.
925
72c9a507
VS
9262013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
927
928 Remove xen VFB.
929
930 Due to XEN bug it prevents Linux boot. Remove it at least, until
931 workaround is found.
932
84455670
VS
9332013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
934
935 * po/exclude.pot: Add 2 missing excludes.
936
64dd5fdc
VS
9372013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
938
939 Add missing license section in macbless.mod and macho.mod.
940
a29f317a
VS
9412013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
942
943 Allow compilation without thumb-interwork as long as no thumb is
944 involved or only thumb2 is used.
945
063f2a04
VS
9462013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
947
948 Use -Wl,--no-relax rather than -mno-relax for uniformity.
949
113f7869
VS
9502013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
951
952 * INSTALL: Update comment as to why sparc64 clang isn't usable.
953
eba2afed
VS
9542013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
955
956 Add __attribute__ ((sysv_abi)) only if it's really needed.
957
958 Some compilers don't support it.
959
1962ed95
VS
9602013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
961
962 * grub-core/lib/syslinux_parse.c: Declare timeout unsigned.
963
c2be6f7e
VS
9642013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
965
966 Remove -Wold-style-definition.
967
968 Not very useful and interaction of it with regexp depends on GCC
969 version.
970
7a7f5238
VS
9712013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
972
973 Make grub_util_get_windows_path_real static.
974
9246d5c8
VS
9752013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
976
977 * grub-core/commands/fileXX.c: Silence cast-align.
978 * grub-core/loader/i386/xen_fileXX.c: Likewise.
979
b3aea1bc
VS
9802013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
981
982 * include/grub/efi/api.h (GRUB_EFI_ERROR_CODE): Use explicit cast
983 rather than LL suffix.
984
bc8dd119
VS
9852013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
986
e8c360ca
VS
987 * include/grub/efi/api.h (PRIxGRUB_EFI_UINTN_T): Remove leftover.
988
9892013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
990
991 * grub-core/loader/arm/linux.c: Use common initrd functions.
bc8dd119 992
57a691b7
VS
9932013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
994
995 Decrease number of strings to translate.
996
74fa9417
VS
9972013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
998
999 * grub-core/kern/arm/dl.c: Remove unnecessarry execution mode check.
1000
636977b0
VS
10012013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1002
1003 Mark strings for translation and add remaining ones to exclude list.
1004
ee4450eb
VS
10052013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1006
1007 * util/grub-file.c (main): Fix sizeof usage.
1008
10092013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
a43b3e5d
VS
1010
1011 Silence spurious warning.
1012
ee4450eb 10132013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
81294aff
VS
1014
1015 Remove check_nt_hiberfil as it's been superseeded by file command.
1016
a99c0a32
VS
10172013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1018
1019 * docs/osdetect.cfg: Add isolinux config to detected OSes.
1020
8f5add13
VS
10212013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1022
1023 Implement syslinux parser.
1024
8ff35d0a
VS
10252013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1026
1027 * grub-core/commands/legacycfg.c: Use 32-bit Linux protocol on non-BIOS.
1028
ba144760
VS
10292013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1030
1031 Support cpuid --pae.
1032
daaa89db
VS
10332013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1034
1035 Use AT keyboard on Yeeloong 3A.
1036
25a7863d
VS
10372013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1038
1039 Add Yeeloong 3A reboot and halt.
1040
184c61dd
VS
10412013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1042
1043 Add Radeon Yeeloong 3A support.
1044
fd4650a5
VS
10452013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1046
1047 Add bonito 3A support.
1048
3e88fbfa
VS
10492013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1050
1051 * grub-core/loader/machoXX.c: Fix compilation on non-i386.
1052
1123bed9
VS
10532013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1054
1055 * grub-core/loader/i386/xen_fileXX.c: Silence cast-align.
1056
ebda165f
VS
10572013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1058
1059 * grub-core/loader/macho.c: Fix compilation on non-i386.
1060
fe7c20bf
VS
10612013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1062
1063 Add missing format_arg attribute to check that printf with translated
1064 messages has proper arguments.
1065
f4dab3d1
VS
10662013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1067
1068 Use grub_xasprintf to format translated error messages containing
1069 64-bit quantity.
1070
24d5934d
JM
10712013-12-17 Jon McCune <jonmccune@google.com>
1072
1073 Fix double-free introduced by commit 33d02a42d64cf06cada1c389
1074
d6c2782a
VS
10752013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1076
1077 Unify message for unsupported relocation.
1078
50d2e959
VS
10792013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1080
1081 Mark miscompile error for translation.
1082
18e76955
VS
10832013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1084
1085 Use %I64 and not %ll when using OS printf if compiling for windows.
1086
d218ec97
VS
10872013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1088
1089 Update Mac code to match new register_efi prototype.
1090
b8765fa0
VS
10912013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1092
1093 Implement better integration with Mac firmware.
1094
1f032575
VS
10952013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1096
1097 * grub-core/loader/multiboot_mbi2.c: Implement special value for
1098 load_addr.
1099
14829755
VS
11002013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1101
1102 Include serial module in default_payload.elf.
1103
d45067a2
VS
11042013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1105
1106 Add explicit thumb interwork bx in asm files.
1107
1108 Shouldn't matter for armv >= 5 but let's be safe.
1109
30861754
VS
11102013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1111
1112 Implement Truecrypt ISO loader.
1113
e14d409b
VS
11142013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1115
1116 * grub-core/lib/arg.c: Ensure at least a single space between commands.
1117
ec824e0f
VS
11182013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1119
1120 Implement grub_file tool and use it to implement generating of config
1121 in separate root.
1122
296f7606
VS
11232013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1124
1125 Change to v1 xen grants.
1126
2c384f1e
VS
11272013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1128
1129 * grub-core/lib/i386/xen/relocator.S: Fix hypercall ABI violation.
1130
1131 GRUB relied on %ebx being preserved across hypercall which isn't true.
1132
d16ff589
VS
11332013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1134
1135 * grub-core/lib/x86_64/xen/relocator.S: Fix hypercall ABI violation.
1136
1137 GRUB relied on %rdi being preserved across hypercall which isn't true.
1138
71669c3b
VS
11392013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1140
1141 Implement XEN VFB support.
1142
60d1dd3d
VS
11432013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1144
1145 Remove grub_bios_interrupt on coreboot.
1146
1147 It's not used currently and cannot be used safely currently.
1148
a8201050
VS
11492013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1150
1151 Update exclude.pot and mark few strings for translation.
1152
6cc89597
VS
11532013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1154
1155 * util/grub-mkrescue.c: Fix incorrect file usage in fallback code.
1156
1157 Reported by: Jon McCune
1158
840a2c05
AB
11592013-12-16 Andrey Borzenkov <arvidjaar@gmail.com>
1160
1161 * grub-core/osdep/linux/platform.c (grub_install_get_default_x86_platform):
1162 Add verbose information which firmware directories were tried.
1163
35248820
AB
11642013-12-16 Andrey Borzenkov <arvidjaar@gmail.com>
1165
1166 * grub-core/osdep/unix/exec.c (grub_util_exec_redirect_all): New
1167 function to optionally redirect all three standard descriptors.
1168 Redefine grub_util_exec, grub_util_exec_redirect and
1169 grub_util_exec_redirect_null to use it.
1170 * include/grub/emu/exec.h: Define it.
1171 * include/grub/osdep/exec_unix.h: Delete, it is unused.
1172 * grub-core/osdep/linux/platform.c (grub_install_get_default_x86_platform):
1173 Use grub_util_exec_redirect_all to redirect error to NULL.
1174
2a123f4c
VS
11752013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1176
1177 * grub-core/tests/sleep_test.c: Silence spurious warning.
1178
316c8d9a
VS
11792013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1180
1181 Make grub_xen_hypercall on i386 cdecl rather than stdcall to avoid
1182 linker trying to "fixup" the code.
1183
8fcce8d5
VS
11842013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1185
1186 * grub-core/kern/x86_64/xen/startup.S: Align stack.
1187
6f1f6a0c
VS
11882013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1189
1190 Add support for converting PE+ to Elf64.
1191
66a07ce2
VS
11922013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1193
1194 * grub-core/commands/minicmd.c (grub_mini_cmd_dump): Handle LLP case.
1195
cc6fb517
VS
11962013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1197
1198 Remove practice of assigning random const pointers to device id.
1199
1200 This is not required as cache code already checks driver id as well.
1201
f009f07c
VS
12022013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1203
1204 * include/grub/x86_64/types.h: Define sizeof (long) as 4 when compiling
1205 with mingw.
1206
9fdec226
VS
12072013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1208
1209 * include/grub/efi/api.h: Don't use call wrappers when compiled with
1210 mingw or cygwin as API already matches.
1211
d87cb3ae
VS
12122013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1213
1214 * grub-core/lib/posix_wrap/errno.h: Undefine errno before redefining.
1215
3e38c31a
VS
12162013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1217
1218 * include/grub/efi/api.h: Define (u)intn_t based on pointer size and
1219 not on long.
1220
f4171ebd
VS
12212013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1222
1223 Handle X86_64_PC64 relocation.
1224
1225 Those are generated by some cygwin compilers.
1226
252a289c
VS
12272013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1228
1229 Determine the need for mingw-related stubs at compile time rather than
1230 using not very significant $target_os.
1231
23d2abc3
VS
12322013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1233
1234 * grub-core/genmod.sh.in: Strip before converting to ELF as strip
1235 may not work with ELF.
1236
4f979ccb
VS
12372013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1238
1239 Use unix functions for temporary files and special files on cygwin.
1240
37378f74
VS
12412013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1242
1243 Define functions explicitly rather than using --defsym in tests
1244 whenever possible. Respect locality in remaining cases.
1245
6a09d83e
VS
12462013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1247
1248 * grub-core/genmoddep.awk: Remove explicit getline < /dev/stdin.
1249
e477187b
AB
12502013-12-15 Andrey Borzenkov <arvidjaar@gmail.com>
1251
1252 * grub-core/osdep/windows/platform.c (grub_install_register_efi): Handle
1253 unlikely errors when getting EFI variables and make exhaustive search
1254 for all BootNNNN variables to find matching one.
1255
80b865bd
IC
12562013-12-15 Ian Campbell <ijc@hellion.org.uk>
1257
1258 * grub-core/kern/uboot/init.c: Fix units of uboot timer.
1259
04b02857
VS
12602013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1261
1262 New functional test for sleep function.
1263
1264 This test allows to check sleep without qemu. Keep qemu version as
1265 well as functional test won't notice if all clocks are going too fast
1266 or too slow.
1267
39711101
VS
12682013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1269
1270 Add explicit sysv_abi on amd64 asm routines.
1271
d99af4f0
VS
12722013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1273
1274 * grub-core/commands/efi/lsefisystab.c: Use %lld to show
1275 num_table_entries.
1276
71043684
VS
12772013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1278
1279 * include/grub/test.h: Use gnu_printf rather than printf on GRUB
1280 functions.
1281
111bf5db
VS
12822013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1283
1284 * grub-core/loader/i386/linux.c: Use grub_addr_t rather than long when
1285 appropriate.
1286
24ca71c9
VS
12872013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1288
1289 * grub-core/loader/i386/linux.c: Use %p rather than %lx for pointers.
1290
48ba5c0c
VS
12912013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1292
1293 * grub-core/kern/elfXX.c: Use grub_addr_t rather than long when
1294 appropriate.
1295
8ae67045
VS
12962013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1297
1298 * grub-core/disk/loopback.c: Use sequential IDs rather than pointer.
1299
1300 In case of quick removal of loopback and adding another one it may
1301 get same ID, confusing the cache system.
1302
ed559310
VS
13032013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1304
1305 * grub-core/commands/acpi.c: Use grub_addr_t rather than long when
1306 appropriate.
1307
8fa26279
VS
13082013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1309
1310 * grub-core/kern/i386/coreboot/cbtable.c: Use char * arithmetic rather
1311 than converting to long.
1312
6f5f3337
VS
13132013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1314
1315 * grub-core/disk/cryptodisk.c: Rename "n" to "last_cryptodisk_id".
1316
e7c418c5
VS
13172013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1318
1319 * util/grub-mkimagexx.c (relocate_addresses): Display offset rather
1320 than almost useless pointer.
1321
7e47e27b
VS
13222013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1323
1324 Add gcc_struct to all packed structures when compiling with mingw.
1325
1326 Just "packed" doesn't always pack the way we expect.
1327
ae8159b9
VS
13282013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1329
1330 * include/grub/i386/coreboot/lbio.h: Add missing attribute (packed).
1331
74e7ad66
VS
13322013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1333
1334 * util/grub-pe2elf.c: Fix handling of .bss.
1335
814442ba
VS
13362013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1337
1338 Implement windows flavour of EFI install routines.
1339
5f5bb107
VS
13402013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1341
1342 * conf/Makefile.extra-dist: Adjust path to conf/i386-cygwin-img-ld.sc.
1343
a24725cc
VS
13442013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1345
1346 Change grub_install_register_efi interface to pass GRUB device.
1347
1348 This allows grub_install_register_efi to request partition info
1349 directly.
1350
38933cee
VS
13512013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1352
1353 Workaround cygwin bug when using \\?\Volume{GUID} syntax.
1354
6d3cfe50
VS
13552013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1356
1357 Do not use TCHAR string functions as they are not available on cygwin.
1358
4bad23a1
VS
13592013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1360
1361 Workaround windows bug when querying EFI system partition parameters.
1362
6a5fe132
VS
13632013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1364
1365 * grub-core/kern/i386/qemu/init.c (resource): Decrease struct size
1366 by using bitfields.
1367
bc8fcf4b
VS
13682013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1369
1370 * grub-core/boot/i386/qemu/boot.S: Add missing EXT_C.
1371
60b967be
VS
13722013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1373
1374 Make i386-* other than i386-pc compileable under cygwin.
1375
6dc33377
VS
13762013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1377
1378 Fix definition of grub_efi_hard_drive_device_path. Take care that
1379 existing code would work even if by some reason bogus definition is
1380 used by EFI implementations.
1381
f2c6ff15
VS
13822013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1383
1384 * grub-core/osdep/windows/hostdisk.c: Fix cygwin compilation.
1385
6b8a1625
VS
13862013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1387
1388 * grub-core/osdep/windows/blocklist.c: Add missing cast in printf
1389 invocation.
1390
954c723a
VS
13912013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1392
1393 * util/config.c: Remove trailing newline from distributor in simple
1394 parsing.
1395
607a39f9
VS
13962013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1397
1398 * include/grub/efi/api.h: Rename protocol and interface to avoid
1399 conflict.
1400
df6fedca
VS
14012013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1402
ba584da1 1403 * .gitignore: add .exe variants. add missing files. remove few outdated
df6fedca
VS
1404 entries.
1405
f684d7e1
VS
14062013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1407
1408 * grub-core/osdep/exec.c: Use unix version on cygwin.
1409
0df77d79
VS
14102013-12-13 Vladimir Serbinenko <phcoder@gmail.com>
1411
1412 Implement multiboot2 EFI BS specification.
1413
dafff9ce
VS
14142013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
1415
1416 * grub-core/normal/charset.c: Fix premature line wrap and crash.
1417 Crash happened only in some cases like a string starting at the
1418 half of the screen of same length.
1419
6644d973
VS
14202013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
1421
1422 * include/grub/efiemu/efiemu.h: Sync configuration table declaration
1423 with EFI counterpart.
1424
44bbfa33
VS
14252013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
1426
1427 Propagate the EFI commits to x86-efi specific parts.
1428
3e3dff24
VS
14292013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
1430
1431 * grub-core/commands/efi/lssal.c: Fix terminating condition.
1432
316dda71
VS
14332013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
1434
1435 Introduce grub_efi_packed_guid and use it where alignment is not
1436 guaranteed.
1437
219401b8
VS
14382013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
1439
1440 * include/grub/efi/api.h (grub_efi_device_path): Define length as
1441 unaligned u16 rather than u8[2].
1442
30d00537
VS
14432013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
1444
1445 * grub-core/kern/ia64/dl.c (grub_arch_dl_relocate_symbols): Add checks
1446 for relocation range.
1447
979742bc
VS
14482013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
1449
1450 * grub-core/kern/ia64/dl.c (grub_arch_dl_relocate_symbols): Handle
1451 non-function pcrel21b relocation. It happens with .text.unlikely
1452 section.
1453
16c8f785
LL
14542013-12-10 Leif Lindholm <leif.lindholm@linaro.org>
1455
1456 * make MAX_USABLE_ADDRESS platform-specific
1457 * grub-core/kern/efi/mm.c: add Vladimir's new BYTES_TO_PAGES_DOWN macro.
1458
3f1423e7
LL
14592013-12-10 Leif Lindholm <leif.lindholm@linaro.org>
1460
1461 * grub-core/lib/fdt.c: change memcpy => grub_memcpy
1462
dd73313c
JM
14632013-12-09 Jon McCune <jonmccune@google.com>
1464
1465 * Add --no-rs-codes flag to optionally disable reed-solomon codes
1466 in grub-install and grub-bios-setup for x86 BIOS targets.
1467
eaf01c25
VS
14682013-12-09 Vladimir Serbinenko <phcoder@gmail.com>
1469
1470 Add missing compile and link options for sparc64-emu.
1471
7a148da6
VS
14722013-12-09 Vladimir Serbinenko <phcoder@gmail.com>
1473
1474 Implement sparc64 trampolines (needed for sparc64-emu).
1475
21eee750
VS
14762013-12-09 Vladimir Serbinenko <phcoder@gmail.com>
1477
1478 * grub-core/kern/sparc64/dl.c (grub_arch_dl_relocate_symbols): Check
1479 range of R_SPARC_HI22.
1480 Implement R_SPARC_LM22.
1481
7b54b626
VS
14822013-12-09 Vladimir Serbinenko <phcoder@gmail.com>
1483
1484 * grub-core/kern/powerpc/dl_helper.c (grub_arch_dl_get_tramp_got_size):
1485 Do not explicitly check for symbol table as it's already checked in
1486 platform-independent layer.
1487
9a945e2a
VS
14882013-12-09 Vladimir Serbinenko <phcoder@gmail.com>
1489
1490 * grub-core/kern/emu/cache.c [__ia64__]: Use our cache cleaning routine
1491 on ia64 as __clear_cache is a dummy on ia64.
1492
4f4ea1b4
VS
14932013-12-09 Vladimir Serbinenko <phcoder@gmail.com>
1494
1495 * grub-core/kern/ia64/dl_helper.c (grub_ia64_dl_get_tramp_got_size):
1496 Do not explicitly check for symbol table as it's already checked in
1497 platform-independent layer.
1498
fe4ae213
CW
14992013-12-09 Colin Watson <cjwatson@ubuntu.com>
1500
1501 * util/grub-mkconfig.in: Add missing newline to output.
1502
78b2b0a1
VS
15032013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1504
1505 * grub-core/kern/ia64/efi/init.c (grub_arch_sync_caches): Move to ...
1506 * grub-core/kern/ia64/cache.c (grub_arch_sync_caches): ... here.
1507
d14772c4
VS
15082013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1509
1510 * grub-core/kern/emu/main.c: Silence missing prototypes to allow emu
1511 compilation with GCC <= 4.2.
1512 * grub-core/kern/emu/argp_common.c: Likewise.
1513
388f3cd0
VS
15142013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1515
1516 * include/grub/kernel.h [__sparc__]: Restrict sparc64-ieee1275 to
1517 right platform rather than leaking to sparc64-emu.
1518
11e4167a
VS
15192013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1520
1521 * grub-core/osdep/windows/emuconsole.c: Remove unsigned comparison >= 0.
1522 But ensure that the variables in question are indeed unsigned.
1523
fa7eb63d
VS
15242013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1525
1526 * grub-core/kern/emu/lite.c: Add missing include of ../ia64/dl_helper.c.
1527
50b3a68d
VS
15282013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1529
1530 Remove grub_memalign on emu.
1531
fbbfb6ab
VS
15322013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1533
1534 * grub-core/kern/ia64/efi/init.c: Fix alignment code so it doesn't
1535 truncate incomplete lines but instead flushes them.
1536
a19293cb
VS
15372013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1538
1539 Move OS-dependent mprotect for module loading to grub-core/osdep/*/dl.c
1540 and implement windows variant.
1541
d5c14e1e
VS
15422013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1543
1544 Fix mips-emu compilation.
1545
b75db69a
VS
15462013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1547
1548 * configure.ac: Check for freetype library usability.
1549
c311ced5
VS
15502013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1551
1552 Make arm-emu work.
1553
c8fd2ddf
VS
15542013-12-07 Vladimir Serbinenko <phcoder@gmail.com>
1555
1556 * util/grub-mkfont.c: Replace stpcpy with grub_stpcpy.
1557
c50e5f45
AB
15582013-12-07 Andrey Borzenkov <arvidjaar@gmail.com>
1559
1560 * docs/grub.texi (Environment): Update color_normal and color_highlight
1561 defaults (light-gray instead of white).
1562
bb05e313
AB
15632013-12-07 Andrey Borzenkov <arvidjaar@gmail.com>
1564
1565 * grub-core/normal/main.c (INIT): Set default color to light-gray
1566 to match GRUB_TERM_DEFAULT_NORMAL_COLOR (i.e. rescue mode), Linux
1567 and apparently BIOS defaults.
1568
f23bc651
VS
15692013-12-07 Vladimir Serbinenko <phcoder@gmail.com>
1570
1571 Transform -C option to grub-mkstandalone to --core-compress available
1572 in all grub-install flavours.
1573
4c4ea9c7
VS
15742013-12-07 Vladimir Serbinenko <phcoder@gmail.com>
1575
1576 Merge GRUBFS and GRUB_FS variables.
1577
92e9352d
AB
15782013-12-07 Andrey Borzenkov <arvidjaar@gmail.com>
1579
1580 Revert commit 69ca97c820, it caused failures when using OS device name
1581 in grub-install. Instead just strip off parenthesis in grub-install
1582 if (hdX) was passed.
1583
f585c905
AB
15842013-12-07 Andrey Borzenkov <arvidjaar@gmail.com>
1585
1586 * util/grub-install.c (push_partmap_module): Add helper to convert
1587 partmap names to module names and use it in probe_mods(). Fixes
1588 failure to find partmap modules in diskfilter case.
1589
5ff24907
VS
15902013-12-07 Vladimir Serbinenko <phcoder@gmail.com>
1591
1592 * configure.ac: Make unifont mandatory on coreboot.
1593
0277eab7
VS
15942013-12-07 Vladimir Serbinenko <phcoder@gmail.com>
1595
1596 * configure.ac: Skip unifont 6.3 pcf and bdf.
1597
4861b6c8
VS
15982013-12-07 Vladimir Serbinenko <phcoder@gmail.com>
1599
1600 * Makefile.am: Remove partial font files if generation failed.
1601
3100cdc7
AB
16022013-12-07 Andrey Borzenkov <arvidjaar@gmail.com>
1603
1604 * util/misc.c (grub_qsort_strcmp): Add qsort helper function to sort
1605 strings.
1606 * include/grub/util/misc.h: Define it ...
1607 * util/grub-install.c (device_map_check_duplicates): ... and use it.
1608
ad73cc33
AB
16092013-12-07 Andrey Borzenkov <arvidjaar@gmail.com>
1610
1611 * util/grub.d/30_os-prober.in: Fix use of grub-probe instead of
1612 ${grub_probe}.
1613
41822625
VS
16142013-12-06 Vladimir Serbinenko <phcoder@gmail.com>
1615
1616 Don't add -mlong-calls when compiling with clang.
1617
896f483d
VS
16182013-12-06 Vladimir Serbinenko <phcoder@gmail.com>
1619
1620 * configure.ac: Fix a typo.
1621
8c534b85
VS
16222013-12-06 Vladimir Serbinenko <phcoder@gmail.com>
1623
1624 Revamp relocation handling.
1625
1626 Move more code to common dl.c. Add missing veneers for arm and arm64.
1627 Decreases kernel size by 70 bytes on i386-pc (40-50 compressed)
1628
a846dd4b
VS
16292013-12-05 Vladimir Serbinenko <phcoder@gmail.com>
1630
1631 * util/grub-mkimagexx.c: Fix reloc section generation for ia64.
1632
aa437b58
MG
16332013-12-05 Mike Gilbert <floppym@gentoo.org>
1634
1635 * INSTALL: Raise minimum python version to 2.6.
1636 * gentpl.py: Use python3-style print function.
1637
b0f311f4
VS
16382013-12-05 Vladimir Serbinenko <phcoder@gmail.com>
1639
1640 * util/grub-install.c: Mention Boot* variable.
1641
59b38922
CW
16422013-12-05 Colin Watson <cjwatson@ubuntu.com>
1643
1644 * grub-core/osdep/linux/hostdisk.c
1645 (grub_util_find_partition_start_os): Initialise start to avoid
1646 spurious compiler warning.
1647
0480665b
CW
16482013-12-05 Colin Watson <cjwatson@ubuntu.com>
1649
1650 On Linux, read partition start offsets from sysfs if possible, to
1651 cope with block device drivers that don't implement HDIO_GETGEO.
1652 Fixes Ubuntu bug #1237519.
1653
1654 * grub-core/osdep/linux/hostdisk.c (sysfs_partition_path): New
1655 function.
1656 (sysfs_partition_start): Likewise.
1657 (grub_util_find_partition_start_os): Try sysfs_partition_start
1658 before HDIO_GETGEO.
1659
bbeee1c4
LL
16602013-12-05 Leif Lindholm <leif.lindholm@linaro.org>
1661
1662 * grub-core/kern/fdt.c: Update struct size when adding node.
1663
e5ed2f69
VS
16642013-12-05 Vladimir Serbinenko <phcoder@gmail.com>
1665
1666 Handle unaligned .bss on sparc64.
1667
1668 Current code improperly assumes that both __bss_start and _end are
1669 aligned to 8-bytes. Eliminating this assumption and explicitly align
1670 modules.
1671
4a73746a
VS
16722013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1673
1674 * grub-core/boot/sparc64/ieee1275/boot.S [CDBOOT]: Move scratchpad
1675 so it doesn't land in the middle of loaded image.
1676
382b500e
VS
16772013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1678
1679 * configure.ac: Move all warning options that may be absent in
1680 gcc >= 3.1 to optional.
1681
1682 Note: while this allows to compile with older GCC, official requirements
1683 remain the same and no support for older GCC.
1684
3a82f8bb
CW
16852013-12-04 Colin Watson <cjwatson@ubuntu.com>
1686
1687 Copying the themes directory in grub-shell isn't
1688 parallel-test-friendly and breaks on the second test when the source
1689 directory is read-only (as in "make distcheck"). Instead, add a
1690 hidden --themes-directory option to grub-mkrescue et al, and use it
1691 in grub-shell.
1692
e3046431
VS
16932013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1694
1695 * conf/Makefile.common (CFLAGS_GNULIB): Remove -Wno-old-style-definition
1696 as it's no longer necessarry.
1697
bdb6090d
VS
16982013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1699
1700 * configure.ac: Allow compilation with older GCC for ARM.
1701
b73b70eb
VS
17022013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1703
1704 * configure.ac: Add -no-integrated-as if {addme|ame} isn't supported.
1705 * INSTALL: Note that GRUBwas successfully compiled with clang 3.2 for
1706 ppc.
1707
8a3f0a24
VS
17082013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1709
1710 * grub-core/kern/emu/main.c: Ignore missing prototype for main.
1711
6f07c4e4
VS
17122013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1713
1714 Pass font config to config.h and not by TARGET_CFLAGS as adding
1715 arguments doesn't work if TARGET_CFLAGS is specified on command
1716 line.
1717
60d5e9cb
VS
17182013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1719
1720 * configure.ac: Add -Wvla if compiler supports it.
1721
cd15c394
VS
17222013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1723
1724 * grub-core/osdep/windows/emuconsole.c (grub_console_putchar):
1725 Remove variable length arrays.
1726 * grub-core/term/efi/console.c (grub_console_putchar): Likewise.
1727
bb6e299c
VS
17282013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1729
1730 * grub-core/kern/i386/qemu/init.c: Remove variable length arrays.
1731
85eb579a
VS
17322013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1733
1734 * include/grub/types.h: Declare all byteswaps as inline functions
1735 except compile-time ones.
1736
1737 Solves variable shadowing in constructions like
1738 cpu_to_le (le_to_cpu(x) + 1).
1739
47f88cc9
VS
17402013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1741
1742 * grub-core/kern/efi/efi.c: Remove variable length arrays.
1743
40b5739f
VS
17442013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1745
1746 * grub-core/kern/uboot/init.c (uboot_timer_ms): Fix overflow after 71
1747 minutes.
1748
234d9346
VS
17492013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1750
1751 * grub-core/disk/ieee1275/ofdisk.c: Remove variable length arrays.
1752 * grub-core/net/drivers/ieee1275/ofnet.c: Likewise.
1753
0c0eab52
CW
17542013-12-03 Colin Watson <cjwatson@ubuntu.com>
1755
1756 * grub-core/Makefile.core.def (setjmp): Distribute
1757 lib/arm64/setjmp.S.
1758
44d48847 17592013-12-03 Colin Watson <cjwatson@ubuntu.com>
8f236c14
CW
1760
1761 Add a new timeout_style environment variable and a corresponding
1762 GRUB_TIMEOUT_STYLE configuration key for grub-mkconfig. This
1763 controls hidden-timeout handling more simply than the previous
1764 arrangements, and pressing any hotkeys associated with menu entries
1765 during the hidden timeout will now boot the corresponding menu entry
1766 immediately.
1767
1768 GRUB_HIDDEN_TIMEOUT=<non-empty> + GRUB_TIMEOUT=<non-zero> now
1769 generates a warning, and if it shows the menu it will do so as if
1770 the second timeout were not present. Other combinations are
1771 translated into reasonable equivalents.
1772
10955cda
CW
1773 Based loosely on work by Franz Hsieh. Fixes Ubuntu bug #1178618.
1774
9e4e6ddf
VS
17752013-12-02 Vladimir Serbinenko <phcoder@gmail.com>
1776
1777 * util/config.c: Add missing pointer adjustment.
1778 Reported by: qwertial
1779
5037aa9a
AB
17802013-11-30 Andrey Borzenkov <arvidjaar@gmail.com>
1781
1782 * grub-core/kern/arm64/dl_helper.c: Include grub/arm64/reloc.h
1783 directly, not via `cpu' link, to fix libgrub.pp generation.
1784
8a952d20
VS
17852013-11-30 Leif Lindholm <leif.lindholm@linaro.org>
1786
1787 New port arm64-efi.
1788
be0d4555
AB
17892013-11-30 Andrey Borzenkov <arvidjaar@gmail.com>
1790
1791 * docs/grub.texi (sleep): Document exit codes.
1792
d74b9a1d
VS
17932013-11-30 Vladimir Serbinenko <phcoder@gmail.com>
1794
1795 Ensure that -mno-unaligned-access or some equivalent option is used.
1796
35de6d4b
VS
17972013-11-30 Vladimir Serbinenko <phcoder@gmail.com>
1798
1799 * grub-core/lib/libgcrypt/mpi/longlong.h: Fix compilation error with
1800 -march=armv3.
1801
ce55ed03
VS
18022013-11-30 Vladimir Serbinenko <phcoder@gmail.com>
1803
1804 Remove leftover GRUB_IA64_DL_TRAMP_SIZE.
1805
8ddf84bf
CW
18062013-11-29 Colin Watson <cjwatson@ubuntu.com>
1807
1808 * docs/grub-dev.texi (Font Metrics): Exclude @image command from DVI
1809 builds, since we don't have an EPS version of font_char_metrics.png.
1810 Add leading dot to image extension per the Texinfo documentation.
1811
fd0df6d0
CW
18122013-11-29 Colin Watson <cjwatson@ubuntu.com>
1813
1814 * util/grub-gen-asciih.c: Include FT_SYNTHESIS_H rather than
1815 <freetype/ftsynth.h>, fixing build with FreeType 2.5.1.
1816 * util/grub-gen-widthspec.c: Likewise.
1817 * util/grub-mkfont.c: Likewise.
1818
69ca97c8
AB
18192013-11-29 Andrey Borzenkov <arvidjaar@gmail.com>
1820
1821 * util/grub-setup.c (main): Move parsing of (hdX) syntax to ...
1822 * util/setup.c (SETUP): ... here. Fixes regression: grub-install
1823 failed to install on (hdX).
1824 * util/grub-setup.c (get_device_name): Remove, not needed after
1825 above change.
1826
eec893ae
VS
18272013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
1828
1829 * grub-core/kern/emu/hostfs.c (is_dir): Remove variable length arrays.
1830
621e167f
VS
18312013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
1832
1833 * util/grub-fstest.c: Remove variable length arrays.
1834
d54f647a
VS
18352013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
1836
1837 * grub-core/osdep/linux/ofpath.c: Check return value of read.
1838
c8a0f1b2
VS
18392013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
1840
1841 * util/mkimage.c (grub_install_generate_image): Use grub_crypto_hash for
1842 computing crc32 rather than handling with md fundtions directly.
1843
726409a5
VS
18442013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
1845
1846 * util/mkimage.c (grub_install_generate_image): Use grub_crypto_hash for
1847 checking fwstart.img rather than md fundtions directly.
1848
422e6e88
VS
18492013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
1850
1851 * util/grub-mkrescue.c (main): Check that fread succeeded.
1852
af1faca3
VS
18532013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
1854
1855 * conf/Makefile.common: Remove -mexplicit-relocs and
1856 -DUSE_ASCII_FALLBACK on yeeloong.
1857
1858 -DUSE_ASCII_FALLBACK is already added by font snippets.
1859 -mexplicit-relocs isn't needed is compiler/assemblera are
1860 configured properly.
1861 If they're not we shouldn't attempt to fix it by ourselves.
1862 Binary compare between before and after shows no difference.
1863
469021b4
VS
18642013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
1865
1866 * grub-core/Makefile.core.def: Remove libgnulib.a and use its
1867 sources in dependencies directly.
1868
1869 This was the only instance of "library" in core config. A bug was
1870 reported that -fno-stack-protector wasn't passed to it. Instead of
1871 figuring out why it failed just remove this construction used
1872 needlessly.
1873
83c256ba
VS
18742013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
1875
1876 * grub-core/osdep/unix/password.c (grub_password_get): Check that
1877 fgets succeeded.
1878
b67422d3
FL
18792013-11-27 Francesco Lavra <francescolavra.fl@gmail.com>
1880
1881 * docs/grub.texi (ls): Fix command description in case of a device name
1882 passed as argument.
1883
2d76b4d8
VS
18842013-11-27 Vladimir Serbinenko <phcoder@gmail.com>
1885
1886 Eliminate variable length arrays in grub_vsnprintf_real.
1887
1888 A bit tricky because this function has to continue to work without
1889 heap for short strings. Fixing prealloc to 32 arguments is reasonable
1890 but make all stack references use 32-bit offset rather than 8-bit one.
1891 So split va_args preparsing to separate function and put the prealloc
1892 into the caller.
1893
4f954122
VS
18942013-11-27 Vladimir Serbinenko <phcoder@gmail.com>
1895
1896 Introduce grub_util_file_sync and use it instead of fsync(fileno(f)).
1897 Fixes build for windows.
1898
b1f742c1
VS
18992013-11-27 Vladimir Serbinenko <phcoder@gmail.com>
1900
1901 * gentpl.py: Don't generate platform-dependent conditionals for
1902 platform-independent targets.
1903
16ef26fd
CW
19042013-11-27 Colin Watson <cjwatson@ubuntu.com>
1905
1906 * grub-core/osdep/unix/exec.c (grub_util_exec_redirect): Remove
1907 references to mdadm from otherwise generic code.
1908 (grub_util_exec_pipe): Likewise.
1909 (grub_util_exec_pipe_stderr): Likewise.
1910 * grub-core/osdep/unix/getroot.c (grub_util_pull_lvm_by_command):
1911 This function calls vgs, not mdadm; adjust variable names
1912 accordingly.
1913
cf8c80ff 19142013-11-27 Colin Watson <cjwatson@ubuntu.com>
ab4f1501
CW
1915
1916 Generate Makefile.*.am directly from gentpl.py, eliminating the use
1917 of Autogen. The Autogen definitions files remain intact as they
1918 offer a useful abstraction.
1919
5c7206e4
CW
19202013-11-27 Colin Watson <cjwatson@ubuntu.com>
1921
1922 Add grub_util_disable_fd_syncs call to turn grub_util_fd_sync calls
1923 into no-ops, and use it in programs that copy files but do not need
1924 to take special care to sync writes (grub-mknetdir, grub-rescue,
1925 grub-mkstandalone).
1926
fc3f2b72
CW
19272013-11-26 Colin Watson <cjwatson@ubuntu.com>
1928
1929 * tests/util/grub-fs-tester.in: Execute xorriso from $PATH rather
1930 than hardcoding /usr/local/bin/xorriso.
1931
1e4b3587
VS
19322013-11-26 Vladimir Serbinenko <phcoder@gmail.com>
1933
1934 Add PCI command activation to all PCI drivers as required for coreboot
1935 and maybe some other firmwares.
1936
9208367d
VS
19372013-11-26 Vladimir Serbinenko <phcoder@gmail.com>
1938
1939 * grub-core/Makefile.am: Reduce gratuituous differences between Apple
1940 and non-Apple variants of efiemu compile.
1941
67b9b7af
AB
19422013-11-25 Andrey Borzenkov <arvidjaar@gmail.com>
1943
1944 * configure.ac: Add explicit check for linking format of
1945 efiemu64; save it as EFIEMU64_LINK_FORMAT.
1946 * grub-core/Makefile.am: Use EFIEMU64_LINK_FORMAT instead of
1947 hardcoding linking format.
1948
bee1b5ce
VS
19492013-11-25 Vladimir Serbinenko <phcoder@gmail.com>
1950
1951 * util/grub-mknetdir.c: Look for platform directories under pkglibdir
1952 and not pkgdatadir.
1953
07e3b047
CW
19542013-11-25 Colin Watson <cjwatson@ubuntu.com>
19552013-11-25 Vladimir Serbinenko <phcoder@gmail.com>
1956
1957 Add a --locale-directory option to grub-install and related tools.
1958
1959 * include/grub/util/install.h (GRUB_INSTALL_OPTIONS): Add
1960 --locale-directory option.
1961 (enum grub_install_options): Add
1962 GRUB_INSTALL_OPTIONS_LOCALE_DIRECTORY.
1963 * util/grub-install-common.c (grub_install_help_filter): Handle
1964 GRUB_INSTALL_OPTIONS_LOCALE_DIRECTORY.
1965 (grub_install_parse): Likewise.
1966 (get_localedir): New function to check for a user-provided option
1967 before trying grub_util_get_localedir.
1968 (copy_locales): Use get_localedir rather than
1969 grub_util_get_localedir. Handle differing locale directory layouts.
1970 (grub_install_copy_files): Likewise.
1971
61e1b9a4
VS
19722013-11-25 Vladimir Serbinenko <phcoder@gmail.com>
1973
1974 * grub-core/osdep/unix/platform.c (get_ofpathname): Trim ending newline.
1975 Don't rely on PATH_MAX.
1976
c98dd165
VS
19772013-11-25 Vladimir Serbinenko <phcoder@gmail.com>
1978
1979 * grub-core/genmoddep.awk: Use more portable && rather than and.
1980
ff1c277e
VS
19812013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
1982
1983 * grub-core/kern/i386/pc/startup.S [__APPLE__]: Create _edata by placing
1984 an object after data. While it doesn't seem right solution, it
1985 works well enough and OSX isn't main compilation platform.
1986
c8f7614b
VS
19872013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
1988
1989 * gentpl.py: Add -ed2016 in order to make objconv accept our binary.
1990 While it doesn't seem right solution, it works well enough and
1991 OSX isn't main compilation platform.
1992
246a434f
VS
19932013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
1994
1995 * configure.ac: Add -static to LDFLAGS when using apple linker to
1996 prevent it from pulling in dynamic linker.
1997
5c066a81
VS
19982013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
1999
2000 Apple assembly doesn't handle symbol arithmetic well. So define an
2001 offset symbol in boot.S and use it.
2002
78f961ef
VS
20032013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
2004
2005 Apple assembly doesn't handle symbol arithmetic well. So instead
2006 of getting addres of kernel_sector + 4 define kernel_sector_high.
2007 It also makes code more readable.
2008
09bc0a57
VS
20092013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
2010
2011 With Apple assembly in .macro environvemnt you have to use $$ instead
2012 of $. So introduce new preprocessor macro MACRO_DOLLAR(x) which expands
2013 to $$x on Apple and to $x on everything else.
2014
b700a427
VS
20152013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
2016
2017 * grub-core/Makefile.am: Use correct TARGET_OBJCONV rather than
2018 OBJCONV.
2019
4480b95d
VS
20202013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
2021
2022 * grub-core/gdb/i386/machdep.S: Use xorl %eax, %eax on both Apple
2023 and non-Apple. This instruction is shorter and faster,
2024 so no reason not to use it on both.
2025
e77c81f6
VS
20262013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
2027
2028 * grub-core/lib/reed_solomon.c: Use section _text, _text rather than
2029 .text when compiling for Apple.
2030
971dbee5
VS
20312013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
2032
2033 * grub-core/term/arc/console.c: Add missing cast to silence warning.
2034
6f2e82be
VS
20352013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
2036
2037 * grub-core/boot/i386/pc/boot.S: Fix floppy probe. Due to missing
2038 %dx restore the probe worked on non-existant drive. Reorganize the
2039 code a little bit to free 2 bytes necessary for push/pop.
2040
9eec9699
VS
20412013-11-23 Vladimir Serbinenko <phcoder@gmail.com>
2042
2043 * grub-core/kern/mips/arc/init.c (grub_machine_get_bootlocation):
2044 Add missing cast to silence warning.
2045
5ae5c54c
KPA
20462013-11-23 Keshav Padram Amburay <the.ridikulus.rat@gmail.com>
2047
2048 * util/grub-install.c (update_nvram): Support --no-nvram flag
2049 for EFI targets.
2050
7b04fe6c
VS
20512013-11-23 Vladimir Serbinenko <phcoder@gmail.com>
2052
2053 * INSTALL: Add note about sparc64/ia64 with clang (unsupported).
2054
e67566ce
VS
20552013-11-23 Vladimir Serbinenko <phcoder@gmail.com>
2056
2057 * util/garbage-gen.c: Add missing include of sys/time.h.
2058
f93ddcfd
VS
20592013-11-23 Vladimir Serbinenko <phcoder@gmail.com>
2060
2061 Don't add -mflush-func if it's not supported by compiler.
2062
1bba40f5
VS
20632013-11-23 Vladimir Serbinenko <phcoder@gmail.com>
2064
2065 Move common BIOS/coreboot memory map declarations to
2066 include/grub/i386/memory_raw.h and eliminate duplicate declarations.
2067
f65e14dc
AB
20682013-11-22 Andrey Borzenkov <arvidjaar@gmail.com>
2069
2070 * Makefile.am: Add util/garbage-gen.c to EXTRA_DIST.
2071
14a94bba
VS
20722013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2073
2074 * INSTALL: Document why older clang versions aren't appropriate.
2075
8109c5d4
VS
20762013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2077
2078 * INSTALL: Document about clang for mips.
2079
a92b5cb8
VS
20802013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2081
2082 * grub-core/lib/libgcrypt/mpi/longlong.h: Use C version with mips
2083 clang.
2084
4a23e2fe
VS
20852013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2086
2087 Add *-xen to the list of grub-install-common platforms.
2088
a3ba7410
VS
20892013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2090
2091 * configure.ac: Do not enforce -mcmodel=large. It's not necessarry with
2092 3 last commits.
2093
e1c22419
VS
20942013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2095
2096 * grub-core/kern/xen/init.c: Do not map more pages than we can address.
2097
189090ce
VS
20982013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2099
2100 * grub-core/kern/efi/mm.c: Limit allocations to 2GiB when not compiling
2101 with -mcmodel=large.
2102
1a5b7b40
VS
21032013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2104
2105 * grub-core/kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Add
2106 range-checking for 32-bit quantities.
2107
9cf12b20
VS
21082013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2109
2110 * configure.ac: Compile with -fPIC when compiling with clang on
2111 mips.
2112
63a45330
VS
21132013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2114
2115 * configure.ac: Add -no-integrated-as on mips(el) to TARGET_CCASFLAGS
2116 when compiling with clang.
2117
4a0aaad0
VS
21182013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2119
2120 clang emits calls to abort () under some unknown conditions.
2121 Export abort () when compiling with clang.
2122
095bb1bf
VS
21232013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2124
2125 * docs/grub-dev.texi: Document stack and heap sizes.
2126
3937bd96
VS
21272013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2128
2129 * include/grub/i386/pc/memory.h: Decrease
2130 GRUB_MEMORY_MACHINE_SCRATCH_SIZE and increase
2131 GRUB_MEMORY_MACHINE_PROT_STACK_SIZE.
2132 The binary doesn't change (checked). It's more to better reflect actual
2133 usage.
2134
ddb3efc9
VS
21352013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2136
2137 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_open): Ensure
2138 at compile time that enough of scratch size is available.
2139
4e42521d
VS
21402013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2141
2142 * grub-core/kern/x86_64/efi/callwrap.S: Fix stack alignment.
2143 Previously we misaligned stack by 8 in startup.S and compensated
2144 for it in callwrap.S. According to ABI docs (EFI and sysv amd64)
2145 right behaviour is to align stack in startup.S and keep it aligned
2146 in callwrap.S. startup.S part was committed few commits before. This
2147 takes care of callwrap.S.
2148 Reported by: Gary Lin.
2149
054efe54
VS
21502013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2151
2152 * grub-core/boot/mips/startup_raw.S: Handle the case of gap between
2153 .data and .bss. May happen if compiler and assembly use different
2154 alignment.
2155
a0e1befb
VS
21562013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2157
2158 On MIPS handle got16 relocations to local symbols in an ABI-compliant
2159 way.
2160
c36c73f6
VS
21612013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2162
2163 Add support for a new magic symbol _gp_disp on mips to handle PIC
2164 binaries.
2165
6f4a19f5
VS
21662013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2167
2168 Use $t9 for indirect calls from asm to C as PIC ABI requires.
2169
0d8f04cd
VS
21702013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2171
2172 Remove -march=mips3 from TARGET_CCASFLAGS as it creates linking problem
2173 when rest of GRUB is compiled for hisher stepping. Instead use
2174 .set mips3/.set mips1 around cache and sync opcodes.
2175
49060520
VS
21762013-11-21 Vladimir Serbinenko <phcoder@gmail.com>
2177
2178 Unify GOT/trampoline handling between PPC, MIPS and IA64 as they
2179 do essentially the same thing, do it in similar way.
2180
c6a823e2
CW
21812013-11-21 Colin Watson <cjwatson@ubuntu.com>
2182
2183 * util/grub-mkrescue.c (main): If a source directory is not
2184 specified, read platform-specific files from subdirectories of
2185 pkglibdir, not pkgdatadir.
2186
b7f9aedf
CW
21872013-11-21 Colin Watson <cjwatson@ubuntu.com>
2188
2189 * grub-core/normal/progress.c: Remove unused file.
2190
7dd0a303
VS
21912013-11-20 Vladimir Serbinenko <phcoder@gmail.com>
2192
2193 * grub-core/lib/crypto.c (grub_crypto_hash): Remove variable length
2194 array.
2195
ca120e31
VS
21962013-11-20 Vladimir Serbinenko <phcoder@gmail.com>
2197
2198 * util/grub-mkconfig.in: Say explicit "grub configuration" rather
2199 than grub.cfg.
2200
48eb35cd
VS
22012013-11-20 Vladimir Serbinenko <phcoder@gmail.com>
2202
2203 * coreboot.cfg: Add missing file.
2204
7f20dbbc
VS
22052013-11-19 Vladimir Serbinenko <phcoder@gmail.com>
2206
2207 * Makefile.am: Allow STRIP to be empty when creating windowszip.
2208
55e706c9
AK
22092013-11-19 Axel Kellermann <axel.kellermann@gmx.de>
2210
2211 * util/grub.d/30_os-prober.in: Add GRUB_OS_PROBER_SKIP_LIST to
2212 selectively skipping systems.
2213
4e7d433d
CW
22142013-11-19 Colin Watson <cjwatson@ubuntu.com>
2215
2216 * Makefile.util.def (grub-mkimage): Add
2217 grub-core/osdep/aros/config.c to extra_dist.
2218 * conf/Makefile.extra-dist (EXTRA_DIST): Add docs/autoiso.cfg,
2219 docs/osdetect.cfg, grub-core/gnulib-fix-null-deref.diff,
2220 grub-core/gnulib-fix-width.diff, grub-core/gnulib-no-abort.diff, and
2221 grub-core/gnulib-no-gets.diff.
2222
7d44ff7d
VS
22232013-11-19 Vladimir Serbinenko <phcoder@gmail.com>
2224
2225 Add automated filesystem checking based on scripts I've used now for
2226 quite some time locally. Most of the test require root so they are
2227 skipped when run without necessarry privelegies.
2228
a8c3e5e3
CW
22292013-11-19 Colin Watson <cjwatson@ubuntu.com>
2230
2231 * util/grub-install.c (main): Adjust info messages to match
2232 installed paths of grub-bios-setup and grub-sparc64-setup.
2233
4402db3e
CW
22342013-11-19 Colin Watson <cjwatson@ubuntu.com>
2235
2236 * util/grub-install-common.c (copy_locales): Consistently use
2237 grub_util_get_localedir () rather than LOCALEDIR.
2238 (grub_install_copy_files): Likewise.
2239
7960d3e1
JT
22402013-11-19 Josh Triplett <josh@joshtriplett.org>
2241
2242 * grub-core/kern/x86_64/efi/startup.S (_start): Align the stack to a
2243 16-byte boundary, as required by the x86-64 ABI, before calling
2244 grub_main. In some cases, GCC emits code that assumes this
2245 alignment, which crashes if not aligned. The EFI firmware is also
2246 entitled to assume that stack alignment without checking.
2247
d53f4900
JT
22482013-11-18 Josh Triplett <josh@joshtriplett.org>
2249
2250 * grub-core/mmap/efi/mmap.c (grub_mmap_register): Round up/down to
2251 4k page boundaries as expected by firmware rather than 1k
2252 boundaries.
2253 (grub_mmap_malign_and_register): Likewise.
2254
bb2b275b
VS
22552013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2256
2257 * tests/grub_func_test.in: Decrease RAM size to 512M. With less
2258 fragmentation 512M is enough.
2259
45bf8b3a
VS
22602013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2261
2262 * grub-core/kern/mm.c (grub_real_malloc): Decrease cut-off of moving the
2263 pointer to 32K. This is the size of cache element which is the most
2264 common allocation >1K. This way the pointer is always around blocks
2265 of 32K and so we keep performance while decreasing fragmentation.
2266
39ff43c5
VS
22672013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2268
2269 * grub-core/kern/mm.c (grub_real_malloc): Don't update the pointer to
2270 current memory when allocating large chunks. This significantly
2271 decreases memory fragmentation.
2272
60870be8
CW
22732013-11-18 Colin Watson <cjwatson@ubuntu.com>
2274
2275 * tests/gzcompress_test.in: Skip if gzip is not installed (unlikely,
2276 but for symmetry).
2277 * tests/lzocompress_test.in: Skip if lzop is not installed.
2278 * tests/xzcompress_test.in: Skip if xz is not installed.
2279
a1f00cc5
CW
22802013-11-18 Colin Watson <cjwatson@ubuntu.com>
2281
2282 * util/grub-mkrescue.c (main): Fix typo.
2283
74e632fe
VS
22842013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2285
2286 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_init): Update
2287 clock frequency to 200 MHz,
2288
efb8de49
VS
22892013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2290
2291 * tests/util/grub-shell.in: Increase console size to 1024x1024.
2292
b7526e78
VS
22932013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2294
2295 * Makefile.am (default_payload.elf): Add pata to loaded modules.
2296 Load config file from (cbfsdisk)/etc/grub.cfg.
2297
b40ce651
VS
22982013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2299
2300 * util/grub-install-common.c (grub_install_copy_files): Fix module
2301 destination directory.
2302
1e8e2e78
CW
23032013-11-18 Colin Watson <cjwatson@ubuntu.com>
2304
2305 * tests/util/grub-shell.in: Don't fail on emu platform if po/*.gmo
2306 files have not been built.
2307
3bf4088b
CW
23082013-11-18 Colin Watson <cjwatson@ubuntu.com>
2309
2310 * grub-core/osdep/unix/hostdisk.c (grub_util_make_temporary_file):
2311 Handle errors from mkstemp.
2312 (grub_util_make_temporary_dir): Handle errors from mkdtemp.
2313
35c2851c
VS
23142013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2315
2316 * tests/util/grub-shell.in: Use -cdrom and don't force cdrom
2317 on primary master on pseries.
2318
ea7c1a7d
VS
23192013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2320
2321 * grub-core/tests/videotest_checksum.c: Don't reload unifont if it's
2322 already loaded. This saves memory needed for tests,
2323
96adefdb
VS
23242013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2325
2326 * util/grub-mkrescue.c (main): Fix a typo to make yeeloong part
2327 work again.
2328
5e3cb8a7
VS
23292013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2330
2331 * grub-core/term/terminfo.c (grub_cmd_terminfo): Fix a typo to make -g
2332 work again.
2333
256ee7ac
VS
23342013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2335
2336 * tests/util/grub-shell.in: For powerpc tests put the CD-ROM as primary
2337 master since with some combinations of qemu and firmware only primary
2338 IDE channel is available.
2339
f8b4c3b6
VS
23402013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2341
2342 * grub-core/tests/gfxterm_menu.c: Skip high-resolution tests on
2343 low-memory platforms where we don't have enough memory for them.
2344 * grub-core/tests/videotest_checksum.c: Likewise.
2345
4bf70320
VS
23462013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2347
2348 * grub-core/tests/cmdline_cat_test.c: Don't reload unifont if it's
2349 already loaded. This saves memory needed for tests,
2350
a284320e
VS
23512013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2352
2353 Fix handling of install lists.
2354
2df8f43d
VS
23552013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2356
2357 * grub-core/lib/sparc64/setjmp.S: Force spilling of current window.
2358
6f1bc8bc
VS
23592013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2360
2361 On i386-ieee1275 we run in paged mode. So we need to explicitly map
2362 the devices before accessing them.
2363
04f39f6d
VS
23642013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2365
2366 * grub-core/lib/relocator.c (grub_mm_check_real): Accept const char *
2367 as file argument.
2368
35d4761c
VS
23692013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2370
2371 * grub-core/normal/cmdline.c (grub_cmdline_get): Plug memory leak.
2372
33d02a42
VS
23732013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2374
2375 * grub-core/kern/file.c (grub_file_open): Free file->name on failure.
2376 (grub_file_close): Free file->name.
2377
7bbb60cf
VS
23782013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2379
2380 * grub-core/commands/verify.c (free_pk): Plug memory leak.
2381 (grub_load_public_key): Likewise.
2382 (grub_verify_signature_real): Likewise.
2383 (grub_cmd_verify_signature): Likewise.
2384
da93d675
VS
23852013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2386
2387 * grub-core/commands/legacycfg.c (grub_legacy_check_md5_password): Plug
2388 memory leak.
2389
59c943ec
VS
23902013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2391
2392 * grub-core/lib/powerpc/setjmp.S (grub_setjmp): Save r31.
2393 (grub_longjmp): Restore r31.
2394 * include/grub/powerpc/setjmp.h (grub_jmp_buf): Reserve space for r31.
2395
4336b5d8
VS
23962013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2397
2398 * util/grub-mkrescue.c (make_image_fwdisk_abs): Insert all partmap
2399 modules to be in line with make_image_abs.
2400
44ce3a93
VS
24012013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2402
2403 * include/grub/mips/setjmp.h (grub_jmp_buf): Fix buffer size.
2404
2405 setjmp.S uses 12 entries but buffer is declared with only 11 entries.
2406
7d400406
IC
24072013-11-17 Ian Campbell <ijc@hellion.org.uk>
2408
2409 * grub-core/disk/uboot/ubootdisk.c: Include SCSI disks.
2410
77dae919
VS
24112013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
2412
2413 * tests/grub_func_test.in: Increase memory reservation as on EFI we need
2414 to leave some memory to firmware.
2415
0ab8e025
VS
24162013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
2417
2418 * grub-core/tests/cmdline_cat_test.c (cmdline_cat_test): Ignore errors
2419 of loading gfxterm as gfxterm is embed in kernel on some platforms.
2420 * grub-core/tests/gfxterm_menu.c (gfxterm_menu): Likewise.
2421 Load gfxmenu.
2422
b80c2d6d
VS
24232013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
2424
2425 * tests/core_compress_test.in: Use full arguments as grub-mkimage-extra
2426 now needs full arguments.
2427
6aa6077b
VS
24282013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
2429
2430 * util/grub-mkrescue.c (main): Add trailing \n in
2431 .disk_label.contentDetails to be in line with previous shell script.
2432
66c00cb1
VS
24332013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
2434
2435 * util/grub-mkrescue.c (main): Use right source file for bootinfo.txt.
2436
3a129dba
VS
24372013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
2438
2439 * util/grub-install-common.c (grub_install_parse): Recognize
2440 --compress=none like shell script did.
2441
8df6eff6
VS
24422013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
2443
2444 * include/grub/misc.h: Replace check for __sparc64__ with one for
2445 __sparc__ as __sparc64__ isn't actually defined.
2446
889ebe92
VS
24472013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
2448
2449 * tests/util/grub-shell.in: Use escc-ch-b on powerpc. This is missing
2450 counterpart of fixing the naming of escc ports.
2451
d4d55b29
VS
24522013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
2453
2454 * util/grub-install-common.c (platforms): Fix the order of entries and
2455 remove useless field val.
2456
55e2c84f
VS
24572013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
2458
2459 * util/grub-install.c: Add new option --no-bootsector to skip
2460 installing of bootsector. Accept --grub-setup=/bin/true as
2461 backwards-compatible synonym.
2462
cd46aa6c
VS
24632013-11-16 Andrey Borzenkov <arvidjaar@gmail.com>
2464
2465 * util/grub-install.c (device_map_check_duplicates): Fix incorrect
2466 order of qsort arguments (number of elements vs. element size).
2467
24682013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
2469
2470 Rewrite grub-install, grub-mkrescue, grub-mkstandalone and grub-mknetdir
2471 the function of these files exceeds what can be sanely handled in shell
2472 in posix-comaptible way. Also writing it in C extends the functionality
2473 to non-UNIX-like OS and minimal environments.
2474
9ef81064
VS
24752013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
2476
2477 * grub-core/kern/arm/cache.S: Don't switch back to ARM mode when
2478 compiling to thumb2.
2479 * grub-core/kern/arm/cache_armv7.S: Likewise.
2480 * grub-core/lib/arm/setjmp.S: Likewise.
2481
11a77932
LL
24822013-11-16 Leif Lindholm <leif.lindholm@linaro.org>
2483
2484 * grub-core/kern/arm/uboot/startup.S: delete superflouous save of r8
2485 in grub_uboot_syscall
2486
080603f0
VS
24872013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
2488
2489 Decrease stack usage in lexer.
2490
2491 We have only 92K of stack and using over 4K per frame is wasteful
2492
2493 * grub-core/script/yylex.l (yyalloc), (yyfree), (yyrealloc): Declare
2494 as macros so that compiler would remove useless structure on stack.
2495 Better solution would be to fix flex not to put this structure on
2496 the stack but flex is external program.
2497
4f84ae0e
VS
24982013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
2499
2500 Decrease stack usage in signature verification.
2501
2502 We have only 92K of stack and using over 4K per frame is wasteful
2503
2504 * grub-core/commands/verify.c (grub_load_public_key): Allocate on heap
2505 rather than stack.
2506 (grub_verify_signature_real): Likewise.
2507
e6a6182d
VS
25082013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
2509
2510 Decrease stack usage in mdraid 0.9x.
2511
2512 We have only 92K of stack and using over 4K per frame is wasteful
2513
2514 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Allocate on heap
2515 rather than stack.
2516
1a454efe
VS
25172013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
2518
2519 Decrease stack usage in BtrFS.
2520
2521 We have only 92K of stack and using over 4K per frame is wasteful
2522
2523 * grub-core/fs/btrfs.c (grub_btrfs_lzo_decompress): Allocate on heap
2524 rather than stack.
2525
7b5d51d8
VS
25262013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
2527
2528 Decrease stack usage in JFS.
2529
2530 We have only 92K of stack and using over 4K per frame is wasteful
2531
2532 * grub-core/fs/jfs.c (getblk): Allocate on heap rather than on
2533 stack. Note: this function is recursive.
2534 (grub_jfs_read_inode): Read only part we care about.
2535
593865b9
LL
25362013-11-16 Leif Lindholm <leif.lindholm@linaro.org>
2537
2538 * grub-core/kern/arm/uboot/startup.S: fix grub_uboot_syscall va_arg
2539 handling
7b5d51d8 2540
31c0cd43
AB
25412013-11-16 Andrey Borzenkov <arvidjaar@gmail.com>
2542
2543 * configure.ac: Restore -nostdlib for libgcc symbols tests.
2544
c2fdb331
AB
25452013-11-16 Andrey Borzenkov <arvidjaar@gmail.com>
2546
2547 * docs/grub.texi (Environment): Document cmdpath.
2548
9e18dfe2
AB
25492013-11-16 Andrey Borzenkov <arvidjaar@gmail.com>
2550
2551 * grub-core/kern/mips/arc/init.c (grub_machine_get_bootlocation):
2552 Remove "unused" attribute from arguments, they are used.
2553
59ba9d14
CW
25542013-11-15 Colin Watson <cjwatson@debian.org>
2555
2556 * .gitignore: Only ignore grub-mk* at the top level.
2557
23012db9
CW
25582013-11-15 Colin Watson <cjwatson@ubuntu.com>
2559
2560 * util/grub-reboot.in (usage): Fix a typo.
2561
6fcec439
VS
25622013-11-15 Vladimir Serbinenko <phcoder@gmail.com>
2563
2564 Replace libgcc version of ctz with our own.
2565
2566 On upcoming arm64 port libgcc ctz* are not usable in standalone
2567 environment. Since we need ctz* for this case and implementation is
2568 in C we may as well use it on all concerned platforms.
2569
a9f25a08
VS
25702013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2571
2572 * configure.ac: Probe for linking format rather than guessing it based
2573 on target_os.
2574
c7995256
VS
25752013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2576
2577 * grub-core/disk/xen/xendisk.c (grub_xendisk_fini): Set state to
2578 "1" prior to handoff.
2579
2580 Reported by: M A Young.
2581
e1aa5b66
VS
25822013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2583
2584 * grub-core/kern/xen/init.c (grub_xenstore_write_file): Don't add
2585 \0 to all files.
2586
2587 Reported by: M A Young.
2588
da5ed5cf
VS
25892013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2590
2591 * grub-core/osdep/bsd/hostdisk.c (grub_util_get_fd_size_os): Fix
2592 compilation on NetBSD.
2593
5757a93e
VS
25942013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2595
2596 * acinclude.m4: Don't add -P on initial nm test.
2597
2598 Note: even though this patch postdates Andrey's it bears 14 Nov as
2599 date due to timezone difference.
2600
a5986276
AB
26012013-11-15 Andrey Borzenkov <arvidjaar@gmail.com>
2602
2603 * grub-core/Makefile.core.def (signature_test): Add missing
2604 tests/signatures.h.
2605
0de172a0
CW
26062013-11-14 Colin Watson <cjwatson@ubuntu.com>
2607
2608 * util/grub-install_header: Set localedir here, since this file is
2609 where it's used.
2610 * util/grub-install.in: Remove setting of localedir.
2611 * util/grub-mkrescue.in: Likewise.
2612
da45f43c
VS
26132013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2614
2615 * Makefile.am (default_payload.elf): Add uhci, ohci and usb_keyboard.
2616
20aea949
VS
26172013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2618
2619 * configure.ac: Move nm checks to the end.
2620 Call grub_PROG_NM_WORKS.
2621 * acinclude.m4: New check grub_PROG_NM_WORKS.
2622 Use $TARGET_CFLAGS -c when compiling test binary.
2623
1326b9ae
CW
26242013-11-14 Colin Watson <cjwatson@ubuntu.com>
2625
2626 * util/getroot.c (grub_util_biosdisk_get_grub_dev) [__GNU__]: Remove
2627 unused variables.
2628
1fe26ab4
MG
26292013-11-14 Matthew Garrett <mjg@redhat.com>
2630
2631 * grub-core/kern/main.c (grub_set_prefix_and_root): Set variable
2632 cmdpath to firmware directory.
2633
83e9c273
VS
26342013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2635
2636 * grub-core/kern/efi/efi.c (grub_efi_get_filename): Reset the pointer
2637 at the start of second iteration.
2638
ec525c18
VS
26392013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2640
2641 * grub-core/Makefile.am (efiemu64.o): Explicitly set link format.
2642
93fcc7ad
VS
26432013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2644
2645 * Makefile.am (default_payload.elf): New target for easier coreboot
2646 build.
2647
57ffe934
VS
26482013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2649
2650 * grub-core/kern/arm/cache_armv6.S: Remove special handling for
2651 clang (not necessarry with -no-integrated-as).
2652 * include/grub/symbol.h [__arm__]: Likewise.
2653
2312f06c
VS
26542013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2655
2656 * configure.ac: Use -no-integrated-as on arm with clang.
2657 * INSTALL: Mention ARM compilation with clang.
2658
2416415c
VS
26592013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2660
2661 * conf/Makefile.common (CCASFLAGS_PLATFORM) [COND_arm]: Add
2662 -mthumb-interwork.
2663
5da55172
CW
26642013-11-14 Colin Watson <cjwatson@ubuntu.com>
2665
2666 * grub-core/fs/ext2.c (grub_ext2_read_block): Factor out common
2667 code for indirect block handling.
2668
2669 Saves 185 bytes on compressed image.
2670
da770328
PFS
26712013-11-13 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
2672
2673 Fix make clean.
2674
2675 * Makefile.am: Remove build-grub-* in make clean.
2676
f02e6b56
PFS
26772013-11-13 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
2678
2679 New files to gitignore.
2680
2681 * .gitignore: Add build-grub-gen-asciih, build-grub-gen-widthspec,
2682 build-grub-mkfont, and grub-emu-lite. Remove .bzrignore.
2683
035a26c1
LL
26842013-11-13 Leif Lindholm <leif.lindholm@linaro.org>
2685
2686 * grub-core/kern/arm/misc.S: Make thumb2-compatible.
2687
bc8a6137
LL
26882013-11-13 Leif Lindholm <leif.lindholm@linaro.org>
2689
2690 * .gitignore: fix rules for .dep* and add *.a post git migration
2691
6fe506b0
CW
26922013-11-13 Colin Watson <cjwatson@ubuntu.com>
2693
2694 * configure.ac (AM_INIT_AUTOMAKE): Require at least version 1.10.1,
2695 to match INSTALL.
2696
81a2e438
CW
26972013-11-13 Colin Watson <cjwatson@ubuntu.com>
2698
2699 * grub-core/kern/misc.c: Don't redirect divisions in the
2700 GRUB_UTIL case.
2701 * include/grub/misc.h: Likewise.
2702
9b45c073
CW
27032013-11-13 Colin Watson <cjwatson@ubuntu.com>
2704
2705 * grub-core/osdep/unix/emuconsole.c (put): Pacify the compiler on
2706 systems that require checking the return value of write.
2707
11b2a9b7
CW
27082013-11-13 Colin Watson <cjwatson@ubuntu.com>
2709
2710 * util/grub-install.in (efi_quiet): Fix inverted logic: make
2711 efibootmgr quiet when --debug is not used, rather than when it is.
2712
d743d22d
CW
27132013-11-13 Colin Watson <cjwatson@ubuntu.com>
2714
2715 * gentpl.py (define_macro_for_platform_dependencies): Remove
2716 first (and thus unused) of two definitions for this function.
2717 (platform_dependencies): Likewise.
2718
11da14b5
CW
27192013-11-13 Colin Watson <cjwatson@ubuntu.com>
2720
2721 * acinclude.m4 (grub_apple_cc): Remove; since the removal of nested
2722 functions, we only need to check this for the target, not the host.
2723 * configure.ac (grub_apple_cc): Likewise.
2724
2bdd0719
VS
27252013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2726
2727 * grub-core/kern/arm/cache.c (probe_caches): Move asm part to ...
2728 * grub-core/kern/arm/cache_armv6.S: ... here. This allows this
2729 asm to stay in arm even if surrounding is thumb.
2730
5e77d9cf
VS
27312013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2732
2733 * grub-core/kern/arm/misc.S: Add __muldi3 and __aeabi_lmul. Those
2734 helper functions are needed for thumb.
2735
7d511625
VS
27362013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2737
2738 * grub-core/disk/diskfilter.c (grub_diskfilter_make_raid): Make
2739 level / 3 division explicitly unsigned. Saves few bytes.
2740
81023dbd
VS
27412013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2742
2743 * grub-core/fs/zfs/zfs.c (ZAP_LEAF_NUMCHUNKS): Use unsigned arithmetics.
2744
b2e9294f
VS
27452013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2746
2747 * grub-core/normal/datetime.c (grub_get_weekday): Use if rather than
2748 division.
2749
16a22c38
VS
27502013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2751
2752 * grub-core/kern/uboot/init.c: Move grub_uboot_machine_type and
2753 grub_uboot_boot_data to asm part.
2754
c9cd02c9
VS
27552013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2756
2757 * grub-core/kern/arm/uboot/startup.S: Remove = by replacing with
2758 literal load.
2759 (grub_uboot_syscall): Save/restore r9 and align stack.
2760
81498615
VS
27612013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2762
2763 * grub-core/kern/arm/cache.S: Replace = with explicit litteral load.
2764
ea57de18
VS
27652013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2766
2767 * include/grub/symbol.h (END) [__arm__]: New macros. Replace all .end
2768 occurencies with END.
2769
d0d1e3da
CW
27702013-11-13 Colin Watson <cjwatson@ubuntu.com>
2771
2772 * util/grub-editenv.c (help_filter, argp): Document how to delete
2773 the whole environment block.
2774 Reported by Dan Jacobson. Fixes Debian bug #726265.
2775
3809f016
CW
27762013-11-13 Colin Watson <cjwatson@ubuntu.com>
2777
2778 * docs/grub.texi (Internationalisation, Supported kernels): Fix
2779 sectioning.
2780
46d8a203
JT
27812013-11-13 Josh Triplett <josh@joshtriplett.org>
2782
2783 * grub-core/normal/term.c (grub_set_more): Use bool logic rather than
2784 increment/decrement.
2785
513eeb61
VS
27862013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2787
2788 * grub-core/kern/arm/cache_armv6.S [__clang__]: Don't add .armv6 when
2789 compiling with clang.
2790
bc379c1a
VS
27912013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2792
2793 * grub-core/kern/arm/uboot/startup.S: Use .org rather than assigning
2794 ".".
2795
27962013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
286551b4 2797
16057d6b
VS
2798 Redirect all divisions to grub_divmod64.
2799
f649a6a8
VS
28002013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2801
2802 * grub-core/term/tparm.c (tparam_internal): Use unsigned divisions.
2803
ef28ee8b
VS
28042013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2805
2806 Add missing includes of loader.h.
2807
300f48c5
VS
28082013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2809
2810 * configure.ac: Allow disabling themes.
2811
2d357558
LS
28122013-11-12 Lukas Schwaighofer <lukas@schwaighofer.name>
2813
2814 * util/grub.d/20_linux_xen.in: Don't decompress initrd.
2815
0c62a5b2
VS
28162013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2817
2818 * grub-core/term/at_keyboard.c: Don't poll non-functional AT controller
2819 until it becomes operational.
2820
b0720b49
VS
28212013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2822
2823 * grub-core/Makefile.core.def (legacy_password_test): Disable
2824 on platforms where no legacycfg is compiled.
2825 * grub-core/tests/lib/functional_test.c: Tolerate failure to
2826 load legacy_password_test.
2827
d5bab2c0
VS
28282013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2829
2830 * grub-core/loader/i386/bsd.c: Remove variable length arrays.
2831
3ea0ccb3
VS
28322013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2833
2834 * grub-core/efiemu/prepare.c: Remove variable length arrays.
2835
08772054
VS
28362013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2837
2838 * grub-core/osdep/windows/hostdisk.c (grub_util_fd_strerror): Silence
2839 strict-aliasing warning.
2840 (fsync): Silence cast warning.
2841
1dcb2715
VS
28422013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2843
2844 * grub-core/commands/verify.c: Remove variable length arrays.
2845 Load gcry_dsa/gcry_rsa automatically.
2846
61c22fdf
VS
28472013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2848
2849 * grub-core/tests/signature_test.c: New test.
2850
431e57a7
VS
28512013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2852
2853 * grub-core/disk/cryptodisk.c (luks_script_get): Adapt to new procfs
2854 API.
2855
b521bb81
VS
28562013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2857
2858 * grub-core/tests/legacy_password_test.c (vectors): Make static.
2859 * grub-core/tests/pbkdf2_test.c (vectors): Likewise.
2860
7d06b24e
VS
28612013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2862
2863 * grub-core/tests/setjmp_test.c: Reset counter to 0 before starting.
2864
3bbeade4
VS
28652013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2866
2867 * grub-core/fs/proc.c: Allow \0 in proc files.
2868
ba82db7a
VS
28692013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2870
2871 * grub-core/tests/xnu_uuid_test.c: Fix assert message.
2872
801564c8
VS
28732013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2874
2875 * grub-core/tests/xnu_uuid_test.c: Fix copyright year.
2876
ac8cac1d
VS
28772013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2878
2879 * grub-core/fs/ext2.c: Remove variable length arrays.
2880
4b85f122
VS
28812013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2882
2883 * grub-core/lib/crypto.c (grub_crypto_cbc_decrypt): Remove variable
2884 length arrays.
2885
c35fcdc0
VS
28862013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2887
2888 * grub-core/disk/AFSplitter.c: Remove variable length arrays.
2889 * grub-core/disk/cryptodisk.c: Likewise.
2890 * grub-core/disk/geli.c: Likewise.
2891 * grub-core/disk/luks.c: Likewise.
2892
15decd26
VS
28932013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2894
2895 * grub-core/tests/legacy_password_test.c: New test.
2896 * grub-core/commands/legacycfg.c: Remove variable length arrays.
2897
9c6482b8
VS
28982013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2899
2900 * grub-core/lib/pbkdf2.c: Remove variable length arrays.
2901
41f26e0e
VS
29022013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2903
2904 * grub-core/tests/pbkdf2_test.c: New test.
2905
2def6616
VS
29062013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2907
2908 * grub-core/lib/xzembed/xz_dec_stream.c: Remove variable length arrays.
2909
9e34a34e
VS
29102013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2911
2912 * grub-core/io/lzopio.c: Remove variable length arrays.
2913
5ccaf904
VS
29142013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2915
2916 * include/grub/crypto.h: Add maximums on hash size and cipher block
2917 size.
2918
44a387e0
VS
29192013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2920
2921 * grub-core/commands/xnu_uuid.c: Remove variable length arrays.
2922
a388e255
VS
29232013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2924
2925 * grub-core/tests/xnu_uuid_test.c: New test.
2926
a1ef7718
VS
29272013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2928
2929 * grub-core/commands/hashsum.c: Remove unneeded memset (zalloc already
2930 covers it).
2931
65ddb300
VS
29322013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2933
2934 * grub-core/commands/hashsum.c: Remove variable length arrays.
2935
31747dd5
VS
29362013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
2937
2938 * grub-core/tests/gfxterm_menu.c (gfxterm_menu): Handle out-of-memory
2939 condition.
2940 * tests/grub_func_test.in: Increase memory allocation.
2941
6a74c4df
VS
29422013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
2943
2944 * grub-core/osdep/unix/getroot.c [HAVE_STRUCT_STATFS_F_FSTYPENAME
2945 && HAVE_STRUCT_STATFS_F_MNTFROMNAME]: Include sys/param.h and
2946 sys/mount.h.
2947
394c3e0a
VS
29482013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
2949
2950 * grub-core/osdep/apple/hostdisk.c (grub_util_get_fd_size): Rename to ..
2951 (grub_util_get_fd_size_os): ...this.
2952 (grub_hostdisk_flush_initial_buffer): New empty function.
2953
60d31116
VS
29542013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
2955
2956 * grub-core/gensyminfo.sh.in: Handle the case of portable output
2957 without --defined-only.
2958
8445b011
VS
29592013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
2960
2961 * grub-core/lib/i386/relocator_common.S [__APPLE__ && __x86_64__]: Use
2962 rip-relative addressing in prologue.
2963
8506a641
VS
29642013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
2965
2966 * include/grub/misc.h [__APPLE__]: Do not add regparm(0) on x86_64.
2967 * grub-core/kern/misc.c (__bzero) [__APPLE__]: New function.
2968
66acd9d6
VS
29692013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
2970
2971 * util/getroot.c (grub_util_biosdisk_get_grub_dev) [__APPLE__]:
2972 Add missing semicolon.
2973
348d0535
VS
29742013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
2975
2976 * util/grub-macho2img.c: Use plain fopen rather than grub_util_fopen.
2977
0d2d30bb
VS
29782013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
2979
2980 * configure.ac: Check for lzma.h for enabling liblzma and allow
2981 manual disabling.
2982
631187be
VS
29832013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
2984
2985 Add missing includes of loader.h.
2986
e756ec82
FZ
29872013-11-11 Fam Zheng <famcool@gmail.com>
2988
2989 * util/grub.d/30_os-prober.in: Add minix entry.
2990
87d62d7d
VS
29912013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
2992
2993 * grub-core/loader/i386/coreboot/chainloader.c (load_segment): Use
2994 right buffer for temporary load.
2995
5460cfeb
VS
29962013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
2997
2998 * grub-core/loader/i386/coreboot/chainloader.c: Support tianocore.
2999
89977306
VS
30002013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3001
3002 * grub-core/loader/i386/coreboot/chainloader.c: Support lzma-compressed
3003 payload.
3004
3617c59b
VS
30052013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3006
3007 * include/grub/lib/LzmaDec.h: Fix to include LzmaTypes.h and
3008 not Types.h.
3009 * grub-core/lib/LzmaDec.c: Fix prologue to make it compileable in GRUB
3010 environment.
3011 (LzmaDec_InitDicAndState): Make static.
3012
881c6a10
VS
30132013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3014
3015 * util/grub-mkimagexx.c (generate_elf): Fix module address on coreboot.
3016
2024ade2
VS
30172013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3018
3019 * grub-core/term/ieee1275/escc.c (GRUB_MOD_INIT): Fix order of channels.
3020
3021 Reported by: Aaro Koskinen <aaro.koskinen@iki.fi>
3022
674ad4f6
VS
30232013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3024
3025 * docs/grub-dev.texi: Replace bzr references with git ones.
3026
5b99970e
AB
30272013-11-10 Andrey Borzenkov <arvidjaar@gmail.com>
3028
3029 * docs/grub.texi (Simple configuration): Remove reference to
3030 grub-reboot from saved default entry description - grub-default
3031 does not use it anymore.
3032
3c2304d5
VS
30332013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3034
3035 * configure.ac: Make efiemu test cflags match the cflags efiemu is
3036 compiled with.
3037
80cfd940
AB
30382013-11-10 Andrey Borzenkov <arvidjaar@gmail.com>
3039
3040 * docs/grub.texi (Simple configuration): Document GRUB_DISABLE_SUBMENU.
3041
33690255
VS
30422013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3043
3044 Fix grub_machine_fini bitrot.
3045
3046 Reported by: Glenn Washburn.
3047
c61471fc
VS
30482013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3049
3050 * configure.ac: Remove leftover -fnested-funcions -Wl,-allow_execute.
3051
54da019f
VS
30522013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3053
3054 * grub-core/Makefile.am (efiemu): Remove leftover -DAPPLE_CC and
3055 -DELF.
3056 * grub-core/efiemu/runtime/config.h: Use __i386__ and __x86_64__
3057 instead of ELF*.
3058
30592013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
28668d80
VS
3060
3061 * configure.ac: Restore CFLAGS to TARGET_CFLAGS before external tests.
3062 Add -march=core2 when testing compile of efiemu64.
3063
3064 Thanks Andrey Borzenkov for spotting this.
3065
9612ebc0
VS
30662013-11-09 Vladimir Serbinenko <phcoder@gmail.com>
3067
3068 Add new ports: i386-xen and x86_64-xen. This allows running GRUB in
3069 XEN PV environment and load kernels.
3070
1a46a3a4
VS
30712013-11-09 Vladimir Serbinenko <phcoder@gmail.com>
3072
3073 * grub-core/loader/i386/multiboot_mbi.c: Handle space in command line.
3074 * grub-core/loader/multiboot_mbi2.c: Likewise.
3075
2df12551
VS
30762013-11-09 Vladimir Serbinenko <phcoder@gmail.com>
3077
3078 * grub-core/lib/cmdline.c (grub_loader_cmdline_size): Fix empty cmdline
3079 handling.
3080
3c980381
VS
30812013-11-09 Vladimir Serbinenko <phcoder@gmail.com>
3082
3083 * grub-core/commands/i386/cmostest.c: Add new command "cmosset".
3084
3085 Tested by: Denis 'GNUtoo' Carikli.
3086
800f63d3
VS
30872013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3088
3089 * grub-core/normal/datetime.c (grub_get_weekday): Use unsigned types.
3090
9f8acdaa
VS
30912013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3092
5620eb53
VS
3093 * grub-core/gfxmenu/gui_circular_progress.c (parse_angle):
3094 Use to get rounded angle rather than truncated.
3095
30962013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3097
3098 * grub-core/term/serial.c: Add option for enabling/disabling
9f8acdaa
VS
3099 RTS/CTS flow control.
3100
2dc1eb6c
VS
31012013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3102
3103 * grub-core/lib/libgcrypt/cipher/idea.c (mul_inv): Remove signed
3104 divisions.
3105
b9563c94
VS
31062013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3107
3108 * grub-core/lib/libgcrypt/mpi/mpih-div.c (_gcry_mpih_divrem):
3109 Use grub_fatal rather than divide by zero.
3110 * grub-core/lib/libgcrypt/mpi/mpi-pow.c (gcry_mpi_powm): Likewise.
3111
d6d8e9a9
VS
31122013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3113
3114 * include/grub/gui.h (grub_fixed_sfs_divide): Round rather than
3115 truncate.
3116 (grub_fixed_fsf_divide): Likewise.
3117
d06de6c8
VS
31182013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3119
3120 * grub-core/gfxmenu/gui_list.c (draw_scrollbar): Avoid
3121 division by-zero and senseless negative divisions.
3122
6af7d49b
VS
31232013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3124
3125 * grub-core/gfxmenu/gui_circular_progress.c (circprog_paint): Avoid
3126 division by-zero and senseless negative divisions.
3127 (circprog_set_property): Don't accept negative num_ticks.
3128
bcfa6d72
VS
31292013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3130
3131 * grub-core/gfxmenu/gui_progress_bar.c (draw_pixmap_bar): Avoid
3132 division by-zero and senseless negative divisions.
3133
dd7f792c
VS
31342013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3135
3136 * configure.ac: Use elf_*_fbsd on kfreebsd.
3137
d061fda7
VS
31382013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3139
3140 * grub-core/tests/div_test.c: New test.
3141
4db22500
VT
31422013-11-08 Vladimir Testov <vladimir.testov@rosalab.ru>
3143
3144 * grub-core/gfxmenu/gui_box.c: Updated to work with area status.
3145 * grub-core/gfxmenu/gui_canvas.c: Likewise.
3146 * grub-core/gfxmenu/view.c: Likewise.
3147 * grub-core/video/fb/video_fb.c: Introduce new functions:
3148 grub_video_set_area_status, grub_video_get_area_status,
3149 grub_video_set_region, grub_video_get_region.
3150 * grub-core/video/bochs.c: Likewise.
3151 * grub-core/video/capture.c: Likewise.
3152 * grub-core/video/video.c: Likewise.
3153 * grub-core/video/cirrus.c: Likewise.
3154 * grub-core/video/efi_gop.c: Likewise.
3155 * grub-core/video/efi_uga.c: Likewise.
3156 * grub-core/video/emu/sdl.c: Likewise.
3157 * grub-core/video/radeon_fuloong2e.c: Likewise.
3158 * grub-core/video/sis315pro.c: Likewise.
3159 * grub-core/video/sm712.c: Likewise.
3160 * grub-core/video/i386/pc/vbe.c: Likewise.
3161 * grub-core/video/i386/pc/vga.c: Likewise.
3162 * grub-core/video/ieee1275.c: Likewise.
3163 * grub-core/video/i386/coreboot/cbfb.c: Likewise.
3164 * include/grub/video.h: Likewise.
3165 * include/grub/video_fb.h: Likewise.
3166 * include/grub/fbfill.h: Updated render_target structure.
3167 grub_video_rect_t viewport, region, area
3168 int area_offset_x, area_offset_y, area_enabled
3169 * include/grub/gui.h: New helper function
3170 grub_video_bounds_inside_region.
3171 * docs/grub-dev.texi: Added information about new functions.
3172
c6b755df
VS
31732013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3174
3175 * grub-core/kern/mm.c (grub_real_malloc): Use AND rather than MOD
3176 for alignment.
3177
e2a68100
VS
31782013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3179
3180 * grub-core/lib/reed_solomon.c (grub_reed_solomon_recover): Add
3181 missing attribute.
3182 * grub-core/gdb/cstub.c (grub_gdb_trap): Likewise.
3183
c4f11a2a
VS
31842013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3185
3186 * grub-core/kern/misc.c (grub_divmod64): Don't fallback to
3187 simple division on arm and ia64.
3188
e0a7bffa
VS
31892013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3190
3191 * grub-core/kern/arm/misc.S (__aeabi_unwind_cpp_pr0): Add dummy to
3192 link with libgcc.
3193
38b864ea
VS
31942013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3195
3196 * include/grub/symbol.h (FUNCTION), (VARIABLE): Fix precedence logic.
3197
12359faf
VS
31982013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3199
3200 * include/grub/symbol.h (FUNCTION), (VARIABLE) [__arm__]: Use % as
3201 prefix symbol, not @.
3202
9fdc64a9
VS
32032013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3204
3205 * INSTALL: Add note about older gcc and clang.
3206
665c575b
VS
32072013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3208
3209 * tests/util/grub-shell.in: Boot as hdd on ppc by default.
3210
47dcf7b1
VS
32112013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3212
3213 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_add_module): Fix
3214 NULL pointer dereference.
3215
d59849b2
VS
32162013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3217
3218 * grub-core/Makefile.am: Do not include libgcc.h when compiling with
3219 clang.
3220
7a3f4a18
VS
32212013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3222
3223 * grub-core/kern/powerpc/dl.c: Add missing pragma to silence cast-align
3224 warnings.
3225
7f084087
VS
32262013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3227
3228 * grub-core/net/net.c (grub_net_route_unregister): Remove unused
3229 function.
3230 * grub-core/loader/i386/xnu.c (hextoval): Likewise.
3231 * grub-core/disk/geli.c (ascii2hex): Likewise.
3232
d5524ca8
VS
32332013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3234
3235 * configure.ac: Run linker tests without -Werror.
3236 Define TARGET_LDFLAGS_STATIC_LIBGCC and TARGET_LIBGCC.
3237 Change all occurences of -static-libgcc resp -lgcc to
3238 TARGET_LDFLAGS_STATIC_LIBGCC resp TARGET_LIBGCC.
3239
390cd7ca
VS
32402013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3241
3242 * configure.ac: Don't add -no-itegrated-as on clang on non-x86.
3243
60375a88
VS
32442013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3245
3246 Allow compiling with clang (not really supported though).
3247
3248 * conf/Makefile.common (CFLAGS_PLATFORM): Don't add -mrtd -mregparm=3
3249 unconditionally.
3250 * configure.ac: Add -no-integrated-as when using clangfor asm files.
3251 Add -mrtd -mregparm=3 on i386 when not using clang.
3252 * grub-core/kern/misc.c (grub_memset): Add volatile when on clang.
3253
dd07e0c4
VS
32542013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3255
3256 * grub-core/kern/ieee1275/cmain.c: Add explicit attribute on asm
3257 bindings.
3258 * grub-core/lib/reed_solomon.c: Likewise.
3259 * include/grub/i386/gdb.h: Likewise.
3260 * include/grub/i386/pc/int.h: Likewise.
3261 * include/grub/i386/pc/pxe.h: Likewise.
3262 * include/grub/ieee1275/ieee1275.h: Likewise.
3263
9d3ae8ec
VS
32642013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3265
3266 Import libgcrypt 1.5.3.
3267
c12936c5
VS
32682013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3269
3270 * configure.ac: Don't add -Wcast-align on x86.
3271
cdc17f60
VS
32722013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3273
3274 * configure.ac: Add -freg-struct-return on all platforms that
3275 support it.
3276
b35ec299
VS
32772013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3278
3279 * acinclude.m4: Use -Werror on parameter tests.
3280 * configure.ac: Likewise.
3281
05f3a0d7
VS
32822013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3283
3284 * acinclude.m4: Add missing TARGET_CCASFLAGS on asm tests.
3285
c966a489
VS
32862013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3287
3288 * configure.ac: Check that -malign-loops works rather than assuming that
3289 either -falign-loops or -malign-loops work.
3290
bb0c57ec
VS
32912013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3292
3293 * configure.ac: Remove -fnested-functions. We don't need it anymore.
3294
24f4e57c
VS
32952013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3296
3297 * configure.ac: Prevent cflags leaking to subsequent tests by always
3298 resetting cflags to target_cflags in target tests.
3299
ac319fbc
VS
33002013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3301
3302 * grub-core/kern/parser.c (grub_parser_split_cmdline): Remove nested
3303 function.
3304
4bfe934c
VS
33052013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3306
3307 * grub-core/kern/misc.c (grub_vsnprintf_real): Remove nested functions.
3308
40a5bfde
VS
33092013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3310
3311 * grub-core/lib/arg.c (grub_arg_parse): Remove nested function.
3312
a67c755e
VS
33132013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3314
3315 * grub-core/normal/cmdline.c (grub_cmdline_get):
3316 Remove nested functions.
3317
87a04a2d
VS
33182013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3319
3320 * tests/test_sha512sum.in: Make it work on emu.
3321
c03995d2
VS
33222013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3323
3324 * grub-core/normal/charset.c (bidi_line_wrap): Eliminate nested
3325 functions.
3326 (grub_bidi_line_logical_to_visual): Likewise.
3327
ec0ebb3f
VS
33282013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3329
3330 Remove vestiges of -Wunsafe-loop-optimisations.
3331
3332 * conf/Makefile.common (CFLAGS_GNULIB): Remove
3333 -Wno-unsafe-loop-optimisations.
3334 * grub-core/commands/legacycfg.c: Remove -Wunsafe-loop-optimisations
3335 pragma.
3336 * grub-core/io/gzio.c: Likewise.
3337 * grub-core/script/parser.y: Likewise.
3338 * grub-core/script/yylex.l: Likewise.
3339 * util/grub-mkfont.c: Likewise.
3340
6ab537e3
VS
33412013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3342
3343 * util/grub-mkfont.c (process_cursive): Remove nested function.
3344
e6c368d4
VS
33452013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3346
3347 * include/grub/misc.h (grub_dprintf): Use unnamed vararg.
3348 (grub_boot_time): Likewise.
3349
4f1cfd22
VS
33502013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3351
3352 * include/grub/symbol.h (FUNCTION): Use @function rather than
3353 "function".
3354 (VARIABLE): Likewise.
3355
6d5a4cee
VS
33562013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3357
3358 * grub-core/net/bootp.c (OFFSET_OF): Explicitly cast to grub_size_t.
3359
f06c2172
VS
33602013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3361
3362 * grub-core/net/bootp.c (set_env_limn_ro): Make pointer const.
3363 (parse_dhcp_vendor): Likewise.
3364
7cb24eb5
VS
33652013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3366
3367 * util/grub-mkimagexx.c (relocate_symbols): Remove unneeded brackets.
3368
f30c692c
VS
33692013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3370
3371 * grub-core/gettext/gettext.c (main_context), (secondary_context):
3372 Define after defining type and not before.
3373
8b66bb5d
VS
33742013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3375
3376 * grub-core/fs/zfs/zfscrypt.c (grub_ccm_decrypt): Return right error
3377 type.
3378 (grub_gcm_decrypt): Likewise.
3379 (algo_decrypt): Likewise.
3380 (grub_zfs_decrypt_real): Transform error type.
3381
5d17fd0f
VS
33822013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3383
3384 * grub-core/disk/geli.c (geli_rekey): Fix error return type.
3385
ac35a0f7
VS
33862013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3387
3388 * grub-core/disk/usbms.c (grub_usbms_cbi_cmd): Fix error type.
3389 (grub_usbms_cbi_reset): Likewise.
3390 (grub_usbms_bo_reset): Likewise.
3391 (grub_usbms_reset): Likewise.
3392 (grub_usbms_attach): Likewise.
3393 (grub_usbms_transfer_cbi): Likewise.
3394
3ee08697
VS
33952013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3396
3397 * grub-core/io/lzopio.c (test_header): Simplify code and remove useless
3398 "checksum = checksum;".
3399
70bb6c85
VS
34002013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3401
3402 * grub-core/fs/reiserfs.c (grub_reiserfs_iterate_dir): Fix type of
3403 entry_type.
3404
c7f34744
VS
34052013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3406
3407 * grub-core/commands/legacycfg.c (grub_cmd_legacy_kernel): Fix
3408 BIOS disk check.
3409
3f63b4d8
VS
34102013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3411
3412 * grub-core/bus/usb/ehci.c (grub_ehci_restore_hw): Return right enum
3413 type.
3414 (grub_ehci_fini_hw): Likewise.
3415 * grub-core/bus/usb/usbhub.c (grub_usb_add_hub): Likewise.
3416
dac6ce73
VS
34172013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3418
3419 * include/grub/usb.h (grub_usb_controller_dev): Make portstatus
3420 return grub_usb_err_t for cosistency. All users updated.
3421
5701750c
VS
34222013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3423
3424 * util/mkimage.c (SzAlloc): Use attribute unused rather than dubious
3425 assigning to itself.
3426
9e236169
GLD
34272013-11-05 Gustavo Luiz Duarte <gustavold@linux.vnet.ibm.com>
34282013-11-05 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
3429
3430 Issue separate DNS queries for ipv4 and ipv6
3431
3432 Adding multiple questions on a single DNS query is not supportted by
3433 most DNS servers. This patch issues two separate DNS queries
3434 sequentially for ipv4 and then for ipv6.
3435
3436 Fixes: https://savannah.gnu.org/bugs/?39710
3437
3438 * grub-core/net/bootp.c (parse_dhcp_vendor): Add DNS option.
3439 * grub-core/net/dns.c (grub_dns_qtype_id): New enum.
3440 * (grub_net_dns_lookup): Now using separated dns packages.
3441 * (grub_cmd_nslookup): Add error condition.
3442 * (grub_cmd_list_dns): Print DNS option.
3443 * (grub_cmd_add_dns): Add four parameters: --only-ipv4, --only-ipv6,
3444 --prefer-ipv4, and --prefer-ipv6.
3445 * include/grub/net.h (grub_dns_option_t): New enum.
3446 * (grub_net_network_level_address): option added.
3447
339eacce
VT
34482013-11-05 Vladimir Testov <vladimir.testov@rosalab.ru>
3449
3450 * grub-core/video/fb/video_fb.c: Merge two blit functions
3451 into one.
3452
810f991b
VS
34532013-11-05 Vladimir Serbinenko <phcoder@gmail.com>
3454
3455 * grub-core/term/terminfo.c: Add sequences for home and end.
3456
386571a2
VS
34572013-11-05 Vladimir Serbinenko <phcoder@gmail.com>
3458
3459 * grub-core/lib/legacy_parse.c: Fix handling of hercules and add
3460 graphics console.
3461
3fe63754
VS
34622013-11-05 Vladimir Serbinenko <phcoder@gmail.com>
3463
3464 * grub-core/video/i386/pc/vga.c: Fix double bufferring and
3465 add mode 0x12.
3466
76681e71
VS
34672013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
3468
3469 * docs/grub.texi (Vendor power-on keys): Add XPS M1330M based on old
3470 e-mail by Per Öberg.
3471
46522fb7
VS
34722013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
3473
3474 * grub-core/commands/i386/nthibr.c (GRUB_MOD_INIT): Fix typo in command
3475 name.
3476
e7d09ac4
AB
34772013-11-04 Andrey Borzenkov <arvidjaar@gmail.com>
3478
3479 * configure.ac: Explicitly disable emusdl, emuusb and emupci on non-
3480 emu platforms.
3481 * grub-core/Makefile.core.def: Enable emupci and emuucb only for emu.
3482
67508925
VS
34832013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
3484
3485 * docs/grub.texi: Document usage of menuentry id.
3486
0c62124e
VS
34872013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
3488
3489 * docs/grub.texi: Add few mentions about EFI, debug and videoinfo.
3490
9b5d4eed
PL
34912013-11-04 Peter Lustig <peter.lustig.7db@gmail.com>
3492
3493 * grub-core/commands/i386/nthibr.c: New command.
3494
79054c1d
VS
34952013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
3496
3497 * grub-core/tests/video_checksum.c: Add 2560x1440 mode to testing.
3498
44d47bbe
VS
34992013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
3500
3501 * include/grub/term.h (grub_term_coordinate): Extend to 16-bit per
3502 coordinate.
3503
323de05b
VS
35042013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
3505
3506 Support GRUB_DISABLE_SUBMENU config.
3507
3508 Inspired by patch from Prarit Bhargava.
3509
5a01722e
VS
35102013-11-03 Vladimir Serbinenko <phcoder@gmail.com>
3511
3512 * docs/grub.texi: Mention RSA support.
3513
1106c3f0
VS
35142013-11-03 Vladimir Serbinenko <phcoder@gmail.com>
3515
3516 * grub-core/commands/verify.c: Add RSA support.
3517
a1dcc2cb
VS
35182013-11-03 Vladimir Serbinenko <phcoder@gmail.com>
3519
3520 * grub-core/disk/ahci.c (grub_ahci_pciinit): Detect ATAPI devices.
3521 * grub-core/disk/ata.c (grub_ata_identify): Use atapi_identify if
3522 device is known to be ATAPI.
3523
ee7fb780
MF
35242013-11-03 Mike Frysinger <vapier>
3525
3526 * configure.ac: Don't add target-prefix.
3527
5ade4a42
VS
35282013-11-03 Vladimir Serbinenko <phcoder@gmail.com>
3529
3530 * grub-core/commands/loadenv.c (grub_cmd_save_env): Remove unset
3531 variables.
3532
6cd66043
VS
35332013-11-03 Vladimir Serbinenko <phcoder@gmail.com>
3534
3535 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Ignore errors
3536 if language is English.
3537
090d7c81
VS
35382013-11-03 Vladimir Serbinenko <phcoder@gmail.com>
3539
3540 * grub-core/osdep/linux/getroot.c: Fix cast-align problems.
3541
dd614590
VS
35422013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3543
3544 * configure.ac: Don't add -m32/-m64 on emu.
3545
a8686589 35462013-11-02 neil
3547
3548 * grub-core/osdep/linux/blocklist.c: Include linux/types.h for some
3549 broken linux headers.
3550
fb9f12a0
VS
35512013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3552
3553 * util/grub.d/30_os-prober.in: Add unhiding of partition if on msdos.
3554
e25f8e1f
VS
35552013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3556
3557 * grub-core/lib/reed_solomon.c (grub_reed_solomon_recover): Don't do
3558 Reed-Solomon recovery if more than half of redundancy info is 0.
3559
4685200f
VS
35602013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3561
3562 * util/grub-mount.c: Handle symlinks to directories.
3563
1397f0b5
VS
35642013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3565
3566 * grub-core/fs/fshelp.c (find_file): Save ctx->next when calling
3567 find_file recursively for symlink.
3568
8b3e6eb6
VS
35692013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3570
3571 * tests/util/grub-shell.in: Copy themes.
3572
a0c9d5c6
VS
35732013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3574
3575 * util/grub-mkimagexx.c (locate_sections): Reject mislinked images.
3576
5cf9459c
VS
35772013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3578
3579 * configure.ac: Use 0x8000 for address instead of 8000.
3580
e7b66a28
VS
35812013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3582
3583 * grub-core/loader/sparc64/ieee1275/linux.c (get_physbase): Fix
3584 signature.
3585
203f53fb
VS
35862013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3587
3588 * grub-core/disk/efi/efidisk.c (grub_efidisk_readwrite): Remove unused
3589 variable.
3590
02663ee9
VS
35912013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3592
3593 * configure.ac (TARGET_CFLAGS): Add -march=i386 on i386.
3594
f169f65e
VS
35952013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3596
3597 * grub-core/fs/hfspluscomp.c (hfsplus_read_compressed_real): Call
3598 file_progress_read_hook.
3599 * grub-core/fs/ntfscomp.c (hfsplus_read_compressed_real): Likewise.
3600
2855a0fc
VS
36012013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3602
3603 * conf/Makefile.common (CFLAGS_PLATFORM): Remove poisoning of float
3604 and double.
3605
bf0f3a8c
VS
36062013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3607
3608 * grub-core/fs/tar.c (grub_cpio_read): Add read_hook.
3609
cb72aa18
VS
36102013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3611
3612 Rewrite blocklist functions in order to get progress when
3613 reading large extents and decrease amount of blocklist hook calls.
3614
896f9135
VS
36152013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3616
3617 * grub-core/term/serial.c (options), (grub_cmd_serial): Fix handling
3618 of SI suffixes.
3619
89295a06
VS
36202013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3621
3622 Support --base-clock for serial command to handle weird cards with
3623 non-standard base clock.
3624
eb03ede0
VS
36252013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3626
3627 * grub-core/fs/ext2.c (grub_ext2_read_symlink): Use memcpy rather
3628 strncpy.
3629 * grub-core/fs/jfs.c (grub_jfs_lookup_symlink): Likewise.
3630 * grub-core/kern/misc.c (grub_strncpy): Move from here ...
3631 * include/grub/misc.h (grub_strncpy): ... to here. Make inline.
3632 * grub-core/net/net.c (grub_net_addr_to_str): Use COMPILE_TIME_ASSERT
3633 + strcpy rather than strncpy.
3634
8fbe5c7d
VS
36352013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3636
3637 * grub-core/fs/zfs/zfs.c (nvpair_name): Use correct type for size.
3638 (check_pool_label): Likewise. Fixes overflow.
3639 (nvlist_find_value): Fix comparison.
3640
e54b8f53
VS
36412013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3642
3643 * include/grub/misc.h (grub_strcat): Removed. All users changed to
3644 more appropriate functions.
3645
fa9b3dca
VS
36462013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3647
3648 * grub-core/kern/efi/efi.c (grub_efi_get_filename): Avoid inefficient
3649 realloc.
3650
9a021c55
VS
36512013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3652
3653 * util/grub-mkrescue.in: Do not use UUID search on EFI.
3654
80e8b13a
VS
36552013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3656
3657 * grub-core/kern/dl.c: Unify section-finding algorithm. Saves 30 bytes
3658 on core size.
3659
b61599ac
VS
36602013-10-30 Vladimir Serbinenko <phcoder@gmail.com>
3661
3662 * grub-core/kern/mm.c (grub_realloc): Don't copy more data than we have.
3663
a602dc54
VS
36642013-10-30 Vladimir Serbinenko <phcoder@gmail.com>
3665
3666 * grub-core/io/gzio.c (huft_build): Use zalloc for safety.
3667 (initialize_tables): reset tl and td to NULL after freeing.
3668
93c12075
VS
36692013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3670
3671 * grub-core/loader/multiboot_mbi2.c: Implement network tag.
3672
1ca4b75e
VS
36732013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3674
3675 * grub-core/loader/multiboot_mbi2.c: Add EFI memory map to the list
3676 of supported tags.
3677
329550c4
VS
36782013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3679
3680 * grub-core/loader/multiboot_mbi2.c: Implement EFI memory map.
3681
00bfa988
VS
36822013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3683
3684 * grub-core/loader/multiboot.c: Add support for multiboot kernels
3685 quirks.
3686
81afc5cc
VS
36872013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3688
3689 * grub-core/loader/i386/linux.c (allocate_pages): Allocate at least
3690 a page in protected space.
3691
cb3c4a47
VS
36922013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3693
3694 * grub-core/loader/multiboot.c (grub_cmd_module): Don't attempt to
3695 allocate space for zero-sized modules.
3696
954f7bf5
VS
36972013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3698
3699 * grub-core/loader/xnu_resume.c (grub_xnu_resume): Reject empty images.
3700
526d3d25
FL
37012013-10-28 Francesco Lavra <francescolavra.fl@gmail.com>
3702
3703 * grub-core/lib/fdt.c: Fix miscellaneous bugs.
3704
74124c34
VS
37052013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3706
3707 * grub-core/lib/progress.c (grub_file_progress_hook_real): Add missing
3708 safeguards. Fixes a crash with i386/pc/console.c.
3709
5177391e
VS
37102013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3711
3712 * include/grub/emu/hostdisk.h: Add proper declaration for grub_host_init
3713 and grub_hostfs_init.
3714
64db14b0
VS
37152013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3716
3717 * grub-core/kern/emu/hostdisk.c (grub_util_check_file_presence): Use
3718 windows method on other platforms without good stat as well.
3719
effe2036
VS
37202013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3721
3722 * grub-core/osdep/linux/getroot.c: Add new btrfs defines.
3723
82591fa6 37242013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
e11cb726 3725
82591fa6
VS
3726 Make / in btrfs refer to real root, not the default volume.
3727 Modify mkrelpath to work even if device is mounted with subvolid option.
3728
37292013-10-28 Andrey Borzenkov <arvidjaar@gmail.com>
3730
3731 * Makefile.util.def: Add grub-core/kern/disk_common.c to library
e11cb726
AB
3732 extra_dist.
3733 * grub-core/Makefile.core.def: Add kern/disk_common.c to disk module
3734 extra_dist.
3735
30fd7198
VS
37362013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
3737
3738 * util/grub-mkfont.c (main): Show error message when FT_Set_Pixel_Sizes
3739 fails.
3740
8d179dae
BC
37412013-10-27 BVK Chaitanya <bvk.groups@gmail.com>
3742
3743 * docs/autoiso.cfg: New file.
3744
3bc9c8cf
VS
37452013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
3746
3747 * configure.ac: Remove leftover COND_BUILD_GRUB_MKFONT and
3748 COND_GRUB_PE2ELF conditions.
3749
8b46b0ea
VS
37502013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
3751
3752 * grub-core/loader/i386/bsd.c (grub_cmd_openbsd): Accept "sd", "cd",
3753 "vnd", "rd" and "fd" disks.
3754
442b86de
VS
37552013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
3756
3757 Move grub_disk_write out of kernel into disk.mod.
3758
04dea7e6
VS
37592013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
3760
3761 * grub-core/kern/misc.c (grub_vsnprintf_real): Unify int and wchar
3762 handling.
3763
37642013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
a8f15bce
VS
3765
3766 * grub-core/kern/misc.c (grub_abort): Make static
3767
04dea7e6 37682013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
a60dae7e
VS
3769
3770 * grub-core/kern/misc.c (grub_vsnprintf_real): Don't attempt to
3771 transform invalid unicode codepoints.
3772
04dea7e6 37732013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
891b713b
VS
3774
3775 * grub-core/kern/misc.c (grub_vsnprintf_real): Remove needless explicit
3776 \0 checking.
3777
03dcac7f
VS
37782013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
3779
3780 * grub-core/lib/legacy_parse.c: Add support for "nd" disk.
3781
c81acb7f
VS
37822013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
3783
3784 Consolidate cpuid code.
3785
c1bee646
VS
37862013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
3787
3788 Move cpuid code to cpuid.h and TSC code to tsc.c.
3789
f37bf9c7
GS
37902013-10-26 Grégoire Sutre <gregoire.sutre@gmail.com>
3791
3792 * util/grub.d/00_header.in: Don't use LANG if it's not set.
3793
4021132b
GS
37942013-10-26 Grégoire Sutre <gregoire.sutre@gmail.com>
3795
3796 * util/grub-mkconfig.in: Replace $0 with $self.
3797 * util/grub-reboot.in: Likewise.
3798 * util/grub-set-default.in: Likewise.
3799
3ace8d75
BC
38002013-10-26 BVK Chaitanya <bvk.groups@gmail.com>
3801
3802 * docs/osdetect.cfg: New file.
3803
1e6ad6a6
BC
38042013-10-26 BVK Chaitanya <bvk.groups@gmail.com>
3805
3806 * tests/util/grub-shell.in: Add new --debug option.
3807
188929eb
BC
38082013-10-26 BVK Chaitanya <bvk.groups@gmail.com>
3809
3810 * tests/test_unset.in: New test.
3811
7994a09a
BC
38122013-10-26 BVK Chaitanya <bvk.groups@gmail.com>
3813
3814 * tests/test_sha512sum.in: New test.
3815
2a8a7585
VS
38162013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
3817
3818 * grub-core/fs/iso9660.c: Replace strncat with memcpy.
3819 * include/grub/misc.h: Remove strncat.
3820 * grub-core/lib/posix_wrap/string.h: Likewise.
3821
cf8d6bbd
VS
38222013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
3823
3824 * grub-core/net/tftp.c: Retransmit ack when rereceiving old packet.
3825 Try to handle more than 0xFFFF packets.
3826 Reported by: Bernhard Übelacker <bernhardu>.
3827 He also spotted few overflows in first version of this patch.
3828
6d1fc99a
VS
38292013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
3830
3831 * tests/date_unit_test.c: New test.
3832
10bafa1c
VS
38332013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
3834
3835 * grub-core/normal/datetime.c (grub_unixtime2datetime): Fix mishandling
3836 of first three years after start of validity of unixtime.
3837
b1c6d037
VS
38382013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
3839
3840 * grub-core/normal/menu_entry.c (get_logical_num_lines): Use unsigned
3841 division as the one making more sense.
3842 (update_screen): Likewise.
3843 (complete): Likewise.
3844
5f4028d4
VS
38452013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3846
3847 * grub-core/normal/menu_entry.c (complete): Make sure that width is >0.
3848
a2856736
VS
38492013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3850
3851 Make char and string width grub_size_t rather than grub_ssize_t.
3852
0a7e52b2
VS
38532013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3854
3855 * grub-core/normal/cmdline.c (grub_history_get): Make argument into
3856 unsigned.
3857 (grub_history_replace): Likewise.
3858
42829573
VS
38592013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3860
3861 * grub-core/disk/raid6_recover.c: Use unsigned arithmetics when
3862 appropriate.
3863
3523b8d8
VS
38642013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3865
3866 * grub-core/video/bitmap_scale.c: Use unsigned arithmetics when
3867 appropriate.
3868
d43c6489
VS
38692013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3870
3871 * grub-core/video/fb/fbblit.c: Use (255 ^ x) rather than (255 - x).
3872 Use unsigned divisions rather than signed variants.
3873
f690f8b0
VS
38742013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3875
3876 * grub-core/video/readers/png.c (grub_png_convert_image): Use
3877 unsigned arithmetics.
3878 Add missing break.
3879
74ff2c05
VS
38802013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3881
3882 * grub-core/video/readers/jpeg.c: Use unsigned where appropriate.
3883
fb56391e
VS
38842013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3885
3886 * grub-core/fs/zfs/zfs.c (xor_out): Use unsigned modular arithmetics
3887 rather than signed one.
3888 (recovery): Likewise.
3889
40f29060
VS
38902013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3891
3892 * grub-core/net/dns.c (hash): Use unsigned arithmetic.
3893
c64577a5
VS
38942013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3895
3896 * grub-core/io/gzio.c (test_zlib_header): Use undigned modulo rather
3897 than signed.
3898
c16535a8
JM
38992013-10-25 Jon McCune <jonmccune@google.com>
3900
3901 * docs/grub.texi: Cleanup security documentation around signatures.
3902
6673d8e7
VS
39032013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3904
3905 * grub-core/fs/ext2.c (EXT2_BLOCK_SIZE): Make unsigned.
3906
a105d375
VS
39072013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3908
3909 * grub-core/commands/gptsync.c (lba_to_chs): Use proper types rather
3910 than int.
3911
af81ed88
VS
39122013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3913
3914 * conf/Makefile.common (CPPFLAGS_KERNEL): Add -DGRUB_KERNEL=1.
3915 * include/grub/dl.h (GRUB_MOD_INIT), (GRUB_MOD_FINI): Define
3916 functions when compiling for kernel.
3917
ea899a57
VS
39182013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3919
3920 * grub-core/lib/progress.c (grub_file_progress_hook_real): Cast to
3921 unsigned long long when using %llu.
3922
c6dc6fa1
VS
39232013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3924
3925 * grub-core/lib/progress.c (grub_file_progress_hook_real): Refresh
3926 terminal after updating progress.
3927
ad2dc003
VS
39282013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3929
3930 * grub-core/boot/i386/pc/startup_raw.S (grub_gate_a20): Remove
3931 argument. We don't disable Gate A20 in this code.
3932
b46684ae
VS
39332013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3934
3935 * grub-core/boot/i386/qemu/boot.S: Ensure that A20 is enabled.
3936 Conceptually based on change in branch "vbe-on-coreboot".
3937
f70d5c07
RM
39382013-10-24 Robert Millan <rmh@gnu.org>
3939
3940 * grub-core/video/i386/pc/vbe.c (grub_video_vbe_setup): Replace
3941 numeric constants with their symbolic equivalent.
3942 Taken from branch "vbe-on-coreboot".
3943
bca274b4
VS
39442013-10-22 Vladimir Serbinenko <phcoder@gmail.com>
3945
3946 * docs/grub.texi: Fix ordering and use pxref rather than xref.
3947
238f0489
VS
39482013-10-22 Vladimir Serbinenko <phcoder@gmail.com>
3949
3950 * grub-core/lib/progress.c (grub_file_progress_hook_real): Use
3951 divmod64 for offset division.
3952
863c590b
PFS
39532013-10-22 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
3954
3955 Rename .bzrignore to .gitignore. Add "*.o" rule.
3956
3957 * .bzrignore: Renamed to...
3958 * .gitignore: ...this.
3959
84a0e969
PFS
39602013-10-22 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
3961
3962 Add new progress module that displays the load progress of files.
3963
3964 * grub-core/lib/progress.c: New file.
3965 * grub-core/Makefile.core.def (progress): New module.
3966 * grub-core/kern/file.c (grub_file_open): File name added.
3967 * (grub_file_read): Progress hook added.
3968 * grub-core/fs/cbfs.c (grub_cbfs_read): Likewise.
3969 * grub-core/fs/cpio_common.c (grub_cpio_read): Likewise.
3970 * grub-core/net/net.c (grub_net_fs_read_real): Likewise.
3971 * include/grub/file.h (struct grub_file): Add progress module members.
3972 * include/grub/term.h (struct grub_term_output): Likewise.
3973 * grub-core/osdep/unix/emuconsole.c (grub_console_term_output):
3974 Terminal velocity added.
3975 * grub-core/osdep/windows/emuconsole.c (grub_console_term_output): Likewise.
3976 * grub-core/term/arc/console.c (grub_console_term_output): Likewise.
3977 * grub-core/term/efi/console.c (grub_console_term_output): Likewise.
3978 * grub-core/term/gfxterm.c (grub_video_term): Likewise.
3979 * grub-core/term/i386/coreboot/cbmemc.c (grub_cbmemc_term_output): Likewise.
3980 * grub-core/term/i386/pc/console.c (grub_console_term_output): Likewise.
3981 * grub-core/term/i386/pc/vga_text.c (grub_vga_text_term): Likewise.
3982 * grub-core/term/ieee1275/console.c (grub_console_term_output): Likewise.
3983 * grub-core/term/morse.c (grub_audio_term_output): Likewise.
3984 * grub-core/term/serial.c (grub_serial_term_output): Likewise.
3985 * grub-core/term/spkmodem.c (grub_spkmodem_term_output): Likewise.
3986 * grub-core/term/uboot/console.c (uboot_console_term_output): Likewise.
3987
0d711431
VS
39882013-10-22 Vladimir Serbinenko <phcoder@gmail.com>
3989
3990 Verify signatures of signatures unless --skip-sig is specified.
3991
f8401f76
VS
39922013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
3993
3994 * grub-core/kern/misc.c (grub_vsnprintf_real): Remove needless explicit
3995 \0 checking.
3996
3997 Saves 70 bytes on compressed image.
3998
ac1feb61
VS
39992013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
4000
4001 * grub-core/kern/misc.c (grub_strtoull): Remove needless *ptr != 0
4002 check.
4003
4004 Saves 10 bytes on compressed image.
4005
00f72e89
VS
40062013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
4007
4008 * grub-core/kern/misc.c (grub_isprint): Move to ...
4009 * include/grub/misc.h (grub_isprint): ... here. Make inline.
4010
4011 Saves 20 bytes on compressed image due to remving exporting.
4012
067e6ae7
VS
40132013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
4014
4015 * grub-core/fs/ntfs.c (grub_ntfs_mount): Remove redundant check.
4016
4017 Saves 5 bytes on compressed image.
4018
64a6c791
VS
40192013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
4020
4021 * grub-core/fs/ntfs.c: Move common UTF-16 handling to a separate
4022 function get_utf8.
4023
4024 Saves 379 bytes on compressed image.
4025
979d9f52
VS
40262013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
4027
4028 * grub-core/fs/ntfs.c: Handle 48-bit MFT no.
4029
1437da54
VS
40302013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
4031
4032 * grub-core/fs/ntfs.c (read_run_data): Rewrite using bitfields.
4033
4034 Saves 40 bytes on compressed image.
4035
d9ee2269
VS
40362013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
4037
4038 * grub-core/fs/ntfs.c (grub_ntfs_iterate_dir): Use grub_uint8_t for
4039 mask rather than 64-bit type.
4040
4041 Saves 20 bytes on compressed image.
4042
63efa602
VS
40432013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
4044
4045 * grub-core/fs/ntfs.c (read_data): Move code for compressed data to ...
4046 * grub-core/fs/ntfscomp.c (ntfscomp): ... here.
4047
47601ffe
VS
4048 Saves 273 bytes on compressed image.
4049
2cc679ad
VS
40502013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4051
4052 * grub-core/kern/disk.c (grub_disk_write): Use malloc/free instead of
4053 variable length arrays.
4054
4055 Saves 50 bytes on compressed image.
4056
2e4659b8
VS
40572013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4058
4059 * grub-core/loader/i386/bsd.c: Remove variable length arrays.
4060
2a40badf
VS
40612013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4062
4063 * grub-core/fs/ufs.c: Remove variable length arrays.
4064
1ba6b9b9
VS
40652013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4066
4067 * grub-core/fs/ntfs.c: Add comment about fixed allocation size.
4068
f3e39341
VS
40692013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4070
4071 * grub-core/fs/zfs.c: Remove variable length arrays.
4072 Reduces zfs.mod by 160 bytes (208 compressed).
4073
71523935
VS
40742013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4075
4076 * grub-core/fs/zfs/zfs.c (check_pool_label): Fix memory leak.
4077
28153eb8
VS
40782013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4079
4080 * grub-core/net/arp.c: Remove variable length arrays.
4081 * grub-core/net/bootp.c: Likewise.
4082 * grub-core/net/dns.c: Likewise.
4083 * grub-core/net/icmp6.c: Likewise.
4084 * grub-core/net/net.c: Likewise.
4085
88ce4cd7
VS
40862013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4087
4088 * grub-core/fs/ntfs.c: Remove variable length arrays.
4089 Increases ntfs.mod by 64 bytes (but decreases by 3 when
4090 compressed).
4091
66123940
VS
40922013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4093
4094 * grub-core/fs/hfs.c: Remove variable length arrays.
4095 Reduces hfs.mod by 8 bytes (52 compressed).
4096
0927e5bd
VS
40972013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4098
4099 * grub-core/fs/udf.c: Remove variable length arrays.
88ce4cd7 4100 Increases udf.mod by 128 bytes (but decreases by 13 when
0927e5bd
VS
4101 compressed).
4102
9c12ac97
VS
41032013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4104
4105 * grub-core/fs/iso9660.c: Remove variable length arrays.
88ce4cd7 4106 Increases iso9660.mod by 200 bytes (but decreases by 79 when
9c12ac97
VS
4107 compressed).
4108
97ec2d71
VS
41092013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4110
4111 * grub-core/fs/nilfs2.c: Remove variable length arrays.
88ce4cd7 4112 Increases nilfs2.mod by 24 bytes (but decreases by 115 when
97ec2d71
VS
4113 compressed).
4114
156e4ea0
VS
41152013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4116
4117 * grub-core/fs/xfs.c: Remove variable length arrays.
4118 Reduces xfs.mod by 40 bytes (43 compressed).
4119
3b502c29
VS
41202013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4121
4122 * grub-core/fs/fshelp.c: Remove variable length arrays.
4123 Reduces fshelp.mod by 116 bytes (23 compressed).
4124
c7037f1d
VS
41252013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4126
4127 * grub-core/normal/completion.c: Remove variable length arrays.
4128 * grub-core/normal/menu_entry.c: Likewise.
4129
4130 Reduces normal.mod by 496 bytes.
4131
a07e6ad0
VS
41322013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4133
4134 * grub-core/fs/minix.c: Remove variable length arrays. Reduces jfs.mod
4135 by 356 bytes (158 compressed).
4136
2359bf88
VS
41372013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4138
4139 * grub-core/fs/jfs.c: Remove variable length arrays. Reduces jfs.mod
4140 by 364 bytes (169 compressed).
4141
d28e1163
VS
41422013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4143
4144 * grub-core/fs/bfs.c: Remove variable length arrays. Reduces afs.mod and
4145 bfs.mod size by 556 resp 740 bytes (288 resp 334 compressed).
4146 * include/grub/types.h (grub_unaligned_uint64_t): New type.
4147
e89c2d48
VS
41482013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4149
4150 Lift 255x255 erminal sie restriction to 65535x65535. Also change from
4151 bitmasks to small structures of size chosen to fit in registers.
4152
7abdac8e
VS
41532013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4154
4155 * conf/Makefile.common: Use -freg-struct-return on i386. This
4156 decreases code size and improves performance.
4157
518864c0
VS
41582013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4159
4160 * grub-core/osdep/unix/exec.c: Fix compilation error on emu.
4161
bbd2b539
VS
41622013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4163
4164 * grub-core/kern/misc.c (grub_vsnprintf_real): Fix formatting of
4165 "(null)" string.
4166 Simplify expressions to save around 256 bytes in kernel.img.
4167 * tests/printf_unit_test.c (printf_test): Add "(null)" tests.
4168
99519c15
VS
41692013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4170
4171 * grub-core/tests/video_checksum.c (grub_video_capture_write_bmp):
4172 Use GRUB_UTIL_FD_O_* rather than O_*.
4173
20285765
VS
41742013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4175
4176 Add haiku-specific functions.
4177
887c0bb6
VS
41782013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4179
4180 * grub-core/kern/emu/hostdisk.c: Remove few leftover includes.
4181
cd78a56f
VS
41822013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4183
4184 Move stat () and device mode checking into OS-dependent files as
4185 long as performance doesn't suffer.
4186
a4012f07
VS
41872013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4188
4189 Split make_system_path_relative_to_its_root into separate file
4190 relpath.c from getroot.c as it's common between unix and haiku
4191 but otherwise haiku doesn't use any functions from unix getroot.c.
4192
31de274d
VS
41932013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4194
4195 * grub-core/osdep/aros/hostdisk.c (grub_util_is_directory):
4196 New function.
4197 (grub_util_is_special_file): Likewise.
4198
40346de6
VS
41992013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4200
4201 * grub-core/osdep/unix/getroot.c: Move exec functions to ...
4202 * osdep/unix/exec.c: ... here. Add few additional exec_* variants.
4203
d3923ab9
VS
42042013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4205
4206 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h: Define size_t to
4207 grub_size_t. This fixes the case when size_t mismatches grub_size_t.
4208
663f6eb1
VS
42092013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4210
4211 * util/grub-mkimagexx.c (make_reloc_section): Fix memory leak.
4212 (load_image): Likewise.
4213
44d1c20a
VS
42142013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4215
4216 * util/grub-render-label.c: Move backend part to ...
4217 * util/render-label.c: ... here.
4218
d0a116ee
VS
42192013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4220
4221 * grub-core/osdep/random.c: Use unix/random.c on haiku. Haiku uses
4222 yarrow (by B. Schneier et al) for its /dev/urandom (similar to FreeBSD).
4223
b47fcae6
VS
42242013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4225
4226 * grub-core/osdep/generic/blocklist.c: Add missing include to string.h.
4227
0f7c00c1
VS
42282013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4229
4230 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Handle
4231 CD-ROM in case when it's declared as having subpartitions.
4232
29013cba
VS
42332013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4234
4235 Don't add -lm on haiku.
4236
4237 * configure.ac: Define BUILD_LIBM to -lm on most platforms
4238 and empty on haiku.
4239 * grub-core/Makefile.am (gentrigtables): Use $(BUILD_LIBM) rather than
4240 -lm.
4241
e8559d24
VS
42422013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4243
4244 * configure.ac: Use -melf_*_haiku as target on haiku.
4245
8104063c
VS
42462013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4247
4248 * Makefile.util.def: Add util/setup.c to extra_dist.
4249
fc3182c7
VS
42502013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4251
4252 * grub-core/kern/i386/pc/mmap.c (grub_machine_mmap_iterate): Pass
4253 unknown types through.
4254
f90a3cc0
VS
42552013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4256
4257 * grub-core/osdep/unix/getroot.c (grub_util_check_block_device): Remove.
4258 (grub_util_check_char_device): Likewise.
4259 * include/grub/emu/getroot.h: Likewise.
4260
1e3e7419
VS
42612013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4262
4263 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h: Use define for defining
4264 memset rather than inline static function.
4265
92c88fc8
VS
42662013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4267
4268 * grub-core/lib/xzembed/xz_config.h: Enable all bcj filters when
4269 not doing embedded decompressor.
4270
3cd910a2
VS
42712013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4272
4273 * grub-core/disk/ldm.c: Rename variables and arguments to prevent
4274 shadowing.
4275 * grub-core/kern/disk.c: Likewise.
4276 * grub-core/kern/misc.c: Likewise.
4277 * include/grub/parser.h: Likewise.
4278 * include/grub/script_sh.h: Likewise.
4279 * include/grub/zfs/zfs.h: Likewise.
4280
7b3aca00
VS
42812013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4282
4283 * grub-core/disk/luks.c (configure_ciphers): Fix spurious warning.
4284
97dfe7e4
VS
42852013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4286
4287 * grub-core/fs/zfs/zfs_lz4.c: Check that __INTEL_COMPILER is
4288 defined before trying to use it.
4289
bf919aa9
VS
42902013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4291
4292 * grub-core/fs/affs.c (grub_affs_create_node): Fix uninited value
4293 warning.
4294
f4ccf29d
VS
42952013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4296
4297 * include/grub/dl.h: Remove double declaration of GRUB_MOD_DEP.
4298 Use __unused__ rather than __used__ on gcc < 3.2.
4299
0d3a6f85
VS
43002013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4301
4302 * include/grub/setjmp.h: Define RETURNS_TWICE. Keep it empty for
4303 gcc < 4.0.
4304 * include/grub/*/setjmp.h: USe RETURNS_TWICE.
4305
757e3eb7
VS
43062013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4307
4308 * grub-core/disk/dmraid_nvidia.c: Fix potentially uninited "layout".
4309
fb320faf
VS
43102013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4311
4312 * include/grub/misc.h: Don't use warn_unused_result on gcc < 3.4.
4313 * include/grub/emu/misc.h: Likewise.
4314
ea73acd2
VS
43152013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4316
4317 * grub-core/term/i386/pc/vga_text.c: Remove extra declaration of
4318 cur_color.
4319
71237a6f
VT
43202013-10-18 Vladimir Testov <vladimir.testov@rosalab.ru>
4321
4322 * grub-core/tests/checksums.h: Regenerated due to progress bar
4323 get_minimal_size changes.
4324
3d46c22f
BC
43252013-10-17 BVK Chaitanya <bvk.groups@gmail.com>
4326
4327 Added `tr' command support.
4328
4329 * grub-core/commands/tr.c: New file.
4330 * grub-core/Makefile.core.def: Build rules for new module.
4331
4332 * tests/grub_cmd_tr.in: New test.
4333 * Makefile.util.def: Build rules for new test.
4334
47e0a61f
VT
43352013-10-17 Vladimir Testov <vladimir.testov@rosalab.ru>
4336
4337 * grub-core/gfxmenu/gui_progress_bar.c: Sanity checks added.
4338
946fd073
VT
43392013-10-17 Vladimir Testov <vladimir.testov@rosalab.ru>
4340
4341 * grub-core/gfxmenu/gui_progress_bar.c: New option ``highlight_overlay``
4342 * docs/gurb.texi: Likewise.
4343
9c13c576
VT
43442013-10-17 Vladimir Testov <vladimir.testov@rosalab.ru>
4345
4346 * grub-core/gfxmenu/gui_progress_bar.c (draw_pixmap_bar): Fixed bug.
4347 Pixmap highlighted section with east and west slices was displayed
4348 incorrectly due to negative width of the central slice.
4349
ad543f12
VT
43502013-10-17 Vladimir Testov <vladimir.testov@rosalab.ru>
4351
4352 * docs/grub.texi: Graphical options information update.
4353 Removed outdated. Updated current. Inserted missed.
4354
6176a0cd
VS
43552013-10-17 Vladimir Serbinenko <phcoder@gmail.com>
4356
4357 * docs/grub.texi: Mention few new platform-specific commands.
4358
9688cae2
VS
43592013-10-17 Vladimir Serbinenko <phcoder@gmail.com>
4360
4361 * grub-core/script/yylex.l: Fix LSQBR2 and RSQBR2. It's not
4362 currently used so this doesn't really have any effect.
4363 Reported by: Douglas Ray <dougray>
4364
f7b69a3f
VS
43652013-10-17 Vladimir Serbinenko <phcoder@gmail.com>
4366
4367 * autogen.sh: Don't set LC_CTYPE as it doesn't create problem for
4368 compilation but prevents gcc from displaying messages in non-Latin
4369 alphabets.
4370 * conf/Makefile.common: Likewise.
4371
ceca6ddf
HY
43722013-10-16 Hiroyuki YAMAMORI
4373
4374 Handle Japanese special keys.
4375 Reported by: Hiroyuki YAMAMORI.
4376 Codes supplied by: Hiroyuki YAMAMORI.
4377
ac48d334
VT
43782013-10-16 Vladimir Testov <vladimir.testov@rosalab.ru>
4379
4380 * grub-core/gfxmenu/gui_list.c: Scrollbar sanity checks added.
4381
b2b71bff
VT
43822013-10-16 Vladimir Testov <vladimir.testov@rosalab.ru>
4383
4384 * grub-core/gfxmenu/gui_list.c: New option `item_pixmap_style`.
4385 * docs/grub.texi: Likewise.
4386
669fc449
VS
43872013-10-16 Vladimir Serbinenko <phcoder@gmail.com>
4388
4389 * grub-core/osdep/unix/hostdisk.c (grub_util_fd_read): Return correct
4390 value in case of incomplete read.
4391 (grub_util_fd_write): Likewise.
4392
59381678
VS
43932013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4394
4395 * util/editenv.c (grub_util_create_envblk_file): Use grub_util_rename.
4396
bacfefbb
VS
43972013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4398
4399 * util/grub-editenv.c (create_envblk_file): More from here ...
4400 * util/editenv.c (grub_util_create_envblk_file): ... to here.
4401
f7c49570
VS
44022013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4403
4404 * grub-core/osdep/unix/getroot.c (grub_guess_root_devices):
4405 canonicalize file name before doing the rest.
4406
7b83ca44
VS
44072013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4408
4409 * include/grub/osdep/hostfile_windows.h: Add missing ftello for
4410 mingw32.
4411
df1e64c9
VS
44122013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4413
4414 Define grub_util_is_directory/regular/special_file and
4415 use OS-dependent versions rather than to rely on stat().
4416
ec16e026
VS
44172013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4418
4419 * util/grub-mkimage.c: Move backend part to ...
4420 * util/mkimage.c: ... here.
4421
4b4eeb3c
VS
44222013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4423
4424 Allow compilation with mingw64 albeit with warnings due to lack of
4425 %llx/%llu.
4426
4427 * grub-core/gnulib/msvc-inval.c: Use __cdecl rather than cdecl.
4428 * grub-core/lib/posix_wrap/wchar.h: Define wint_t.
4429 * grub-core/lib/posix_wrap/wctype.h: Define wctype_t.
4430 * include/grub/osdep/hostfile_windows.h: Don't define fseeko/ftello
4431 on mingw64.
4432 * include/grub/types.h: Allow sizeof (long) != sizeof (void *).
4433
f4e0adc0
VS
44342013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4435
4436 Remove leftover references to some of the system headers.
4437
e0127364
VS
44382013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4439
4440 * grub-core/disk/geli.c (grub_util_get_geli_uuid): Close handle after
4441 read.
4442
20d53541
VS
44432013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4444
4445 * grub-core/disk/cryptodisk.c: Use grub_util_fd_strerror instead
4446 of strerror.
4447
5a869940
VS
44482013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4449
4450 Split out blocklist retrieving from setup.c to
4451 grub-core/osdep/blocklist.c and add windows implementation since
4452 generic version doesn't work on NTFS on Windows due to aggressive
4453 unflushable cache.
4454
c06c7520
VS
44552013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4456
4457 Split grub-setup.c into frontend (grub-setup.c) and backend (setup.c)
4458 files.
4459
8f53bb3f
VS
44602013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4461
4462 * grub-core/osdep/windows/hostdisk.c (grub_util_fd_strerror):
4463 Cut tailing newline. Remove arbitrary limitation. Always use
4464 grub_util_tchar_to_utf8.
4465
148f1007
VS
44662013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4467
4468 * grub-core/kern/misc.c (grub_vsnprintf_real): Handle %% properly.
4469 * tests/printf_unit_test.c (printf_test): Add %% tests.
4470 Reported by: Paulo Flabiano Smorigo.
4471
af3b06be
VS
44722013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4473
4474 * grub-core/osdep/windows/hostdisk.c (fsync) [__MINGW32__]: Really
4475 implement fsync.
4476
27f9d02e
VS
44772013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4478
4479 * configure.ac: Check for nvlist_lookup_string in nvpair since we
4480 use nvlist_lookup_string and don't use nvlist_print.
4481
f6a81f0a
VS
44822013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4483
4484 Add wrappers around rename, unlink, mkdir, opendir, readdir and
4485 closedir to handle filename charset translation.
4486
d7750b32
VS
44872013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4488
4489 * include/grub/emu/hostdisk.h: Move file operations to
4490 * include/grub/emu/hostfile.h: ... here.
4491
2859196e
VS
44922013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4493
4494 * grub-core/osdep/windows/hostdisk.c (canonicalize_file_name): Handle
4495 unicode path.
4496
c018c968
VS
44972013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4498
4499 * grub-core/tests/checksums.h: Regenerate due to swiss.sed change.
4500
7e45abce
VS
45012013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4502
4503 Move cpu time retrieval to separate grub_util_get_cpu_time_ms
4504 and remove export.h.
4505
23934da2
VS
45062013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4507
4508 * grub-core/kern/emu/error.c: Removed.
4509 * grub-core/Makefile.core.def (kernel): Don't add error.c and progname.c
4510 explicitly as it's already in libgnu.a.
4511
c11ebcc8
VS
45122013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4513
4514 * grub-core/osdep/windows/emuconsole.c: Add missing config.h and
4515 config-util.h include.
4516
70671037
VS
45172013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4518
4519 Split emunet into platform-dependent and GRUB-binding parts. Keep
4520 platform-dependent part in kernel for easy access to OS functions.
4521
25ac643a
VS
45222013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4523
4524 * grub-core/tests/video_checksum.c: Use grub_util_fd_* rather than
4525 open/read/write.
4526
69ca5876
VS
45272013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
4528
4529 * grub-core/osdep/windows/emuconsole.c: New file.
4530
d9d68ef0
AB
45312013-10-14 Andrey Borzenkov <arvidjaar@gmail.com>
4532
4533 * conf/Makefile.extra-dist: Add osdep/*/init.c
4534
58e211cc
VS
45352013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
4536
4537 * Makefile.am: Use TARGET_OBJCOPY when doing objcopy for target.
4538
588744d0
VS
45392013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
4540
4541 * util/grub-probe.c (probe): Separate different drives in hint-str
4542 by spaces and not newlines.
4543 * util/grub-mkconfig_lib.in: Handle multidevice filesystem.
4544
44016e52
AB
45452013-10-14 Andrey Borzenkov <arvidjaar@gmail.com>
4546
4547 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name):
4548 Handle CD-ROMs.
4549
6de9ee86
VS
45502013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
4551
4552 Pass-through unknown E820 types. It required reorganisation of mmap
4553 module.
4554
f8f3f155
AB
45552013-10-14 Andrey Borzenkov <arvidjaar@gmail.com>
4556
4557 * Makefile.util.def: Add osdep/init.c to grub-mount files.
4558
b73249d2
VS
45592013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
4560
4561 Make grub_util_fd_seek match behaviour of other grub_util_fd_* and
4562 fseeko.
4563
dac86b18 45642013-10-14 qwertial <qwertial>
4565
4566 * grub-core/gdb_grub.in: Fix overflow and wrong field.
4567
17614b84
JM
45682013-10-14 Jon McCune <jonmccune@google.com>
4569
4570 * docs/grub.texi: Document new signatures possibility.
4571
6de292cb
VS
45722013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
4573
4574 Define GRUB_UTIL_FD_O_* and always use them with grub_util_fd_open.
4575
84379b61
VS
45762013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
4577
4578 * include/grub/osdep/hostfile_windows.h (grub_util_utf8_to_tchar): Add
4579 missing prototype.
4580 (grub_util_tchar_to_utf8): Likewise.
4581
21d85db1
VS
45822013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
4583
4584 * grub-core/Makefile.core.def: Add osdep/init.c on emu.
4585 * grub-core/kern/emu/main.c: Add missing include.
4586 * grub-core/osdep/basic/init.c (grub_util_host_init) [!GRUB_UTIL]:
4587 Don't call grub_util_init_nls.
4588 * grub-core/osdep/windows/init.c (grub_util_host_init) [!GRUB_UTIL]:
4589 Likewise.
4590
66a1b3ee
VS
45912013-10-13 Vladimir Serbinenko <phcoder@gmail.com>
4592
4593 * util/misc.c (grub_util_get_image_size): Use FILE functions rather than
4594 stat.
4595
e19bec17
VS
45962013-10-13 Vladimir Serbinenko <phcoder@gmail.com>
4597
4598 * util/grub-editenv.c: Remove leftover set_program_name and init_nls.
4599
ee8c1b29
VS
46002013-10-13 Vladimir Serbinenko <phcoder@gmail.com>
4601
4602 * include/grub/misc.h: Use gnu_printf only on gcc 4.4 or later.
4603
bb338aaf
VS
46042013-10-13 Vladimir Serbinenko <phcoder@gmail.com>
4605
4606 Add a wrapper for fopen. On unix-like systems just pass-through. On
4607 windows use unicode version.
4608
ae5540d3
VS
46092013-10-13 Vladimir Serbinenko <phcoder@gmail.com>
4610
4611 Move set_program_name and init_nls to host_init. On windows
4612 fix in this fuction console and argument charset as well.
4613
4cd3c4fe
AB
46142013-10-12 Andrey Borzenkov <arvidjaar@gmail.com>
4615
4616 Fix inconsistent use of GRUB_CRYPTODISK_ENABLE and
4617 GRUB_ENABLE_CRYPTODISK.
4618
4619 * util/grub-install.in: Rename all GRUB_CRYPTODISK_ENABLE to
4620 GRUB_ENABLE_CRYPTODISK.
4621 * util/grub-mkconfig_lib.in: Likewise.
4622
78170f3e
CCZ
46232013-10-12 Christian Cier-Zniewski <c.cier@gmx.de>
4624
4625 * docs/grub.texi (Vendor power-on keys): Add Dell Latitude E4300.
4626
3414b6c0
MC
46272013-10-12 Melki Christian <Christian.melki@saabgroup.com>
4628
4629 * grub-core/term/at_keyboard.c [DEBUG_AT_KEYBOARD]: Fix compilation
4630 error when enabling debug.
4631
6d0740e8
IB
46322013-10-12 Ilya Bakulin <Ilya_Bakulin@genua.de>
4633
4634 * configure.ac: Use -melf_*_obsd on openbsd.
4635
ff2d4dc4
VS
46362013-10-12 Vladimir Serbinenko <phcoder@gmail.com>
4637
4638 * grub-core/kern/arm/dl_helper.c: Use more proper %p for pointer.
4639
eac6ae82
VS
46402013-10-12 Vladimir Serbinenko <phcoder@gmail.com>
4641
4642 * include/grub/misc.h: Use gnu_printf rather than printf as format
4643 template since our functions are independent of libc.
4644
ba9baabe
VS
46452013-10-11 Vladimir Serbinenko <phcoder@gmail.com>
4646
4647 * util/grub-setup.c (setup): Move copying of partition table as
4648 futher up as possible to avoid possible overwrite by floppy routines.
4649
46502013-10-11 Vladimir Serbinenko <phcoder@gmail.com>
60d4f0bb
VS
4651
4652 * grub-core/fs/fat.c: Fix handling of exfat contiguous files.
4653
145e2369
VT
46542013-10-10 Vladimir Testov <vladimir.testov@rosalab.ru>
4655
4656 * grub-core/gfxmenu/gui_list.c: New option `scrollbar_thumb_overlay`.
4657 * docs/grub.texi: Likewise.
4658
3530bc9d
VS
46592013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
4660
4661 * util/getroot.c (make_device_name): Remove dos_part and bsd_part as
4662 it's mostly unused. Move vestiges to the callers.
4663
fb9f59c3
VS
46642013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
4665
4666 * util/grub-mkpasswd-pbkdf2.c: Remove temporary buffers for hex
4667 version of salt and hash. Use grub_snprintf rather than snprintf.
4668
9be1c255
VS
46692013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
4670
4671 * docs/grub.texi: Fix problem with braces.
4672
ed8c0887
VS
46732013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
4674
4675 * conf/Makefile.extra-dist: Fix extra-dist list.
4676 * grub-core/Makefile.core.def: Likewise.
4677
f72ab14e
VS
46782013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
4679
4680 * docs/grub.texi: Document disk names used on Windows and AROS.
4681
2fe53a22
VS
46822013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
4683
4684 * grub-core/osdep/aros/getroot.c: Change to //: prefix as discussed
4685 with AROS devs.
4686 * grub-core/osdep/aros/hostdisk.c: Likewise.
4687
71c1d67a
VS
46882013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
4689
4690 Avoid including hostfile.h when not necessarry as it pulls
4691 in OS-specific headers which may redefine generic names
4692 like "far".
4693
ad297ec7
VT
46942013-10-09 Vladimir Testov <vladimir.testov@rosalab.ru>
4695
4696 * grub-core/gfxmenu/gui_list.c: New options for scrollbar padding:
4697 scrollbar_left_pad, scrollbar_right_pad, scrollbar_top_pad,
4698 scrollbar_bottom_pad
4699 * docs/grub.texi: Likewise.
4700
6e9e5dc9
VT
47012013-10-09 Vladimir Testov <vladimir.testov@rosalab.ru>
4702
4703 * grub-core/gfxmenu/gui_list.c (list_destroy): Fixed memory leak.
4704
761c718b
VS
47052013-10-09 Vladimir Serbinenko <phcoder@gmail.com>
4706
4707 Move OS-dependent file definitions to include/grub/osdep/hostfile*.h.
4708
37149a2f
VS
47092013-10-09 Vladimir Serbinenko <phcoder@gmail.com>
4710
4711 * include/grub/emu/hostdisk.h (grub_hostdisk_linux_find_partition):
4712 Removed.
4713 * grub-core/osdep/linux/hostdisk.c (grub_hostdisk_linux_find_partition):
4714 Made static.
4715
3837a151
VS
47162013-10-09 Vladimir Serbinenko <phcoder@gmail.com>
4717
4718 * include/grub/emu/getroot.h (grub_util_find_hurd_root_device): Remove
4719 leftover.
4720
caca1c70
VS
47212013-10-09 Vladimir Serbinenko <phcoder@gmail.com>
4722
4723 Move OS-specific driver configuration to grub_util_fd_open. This
4724 moves OS-dependent parts from kern/emu/hostdisk.c to
4725 grub-core/osdep/*/hostdisk.c.
4726
f7676b70
VS
47272013-10-09 Vladimir Serbinenko <phcoder@gmail.com>
4728
4729 * util/grub-mkimage.c (generate_image): Use size_t instead of
4730 grub_size_t.
4731 * util/grub-mkimagexx.c (locate_sections): Likewise.
4732 (load_image): Likewise.
4733
22f98db2
VS
47342013-10-09 Vladimir Serbinenko <phcoder@gmail.com>
4735
4736 * util/misc.c (grub_util_write_image_at): Don't use PRIxGRUB_SIZE for
4737 size_t.
4738 (grub_util_write_image): Likewise.
4739
b102ce69
VS
47402013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4741
4742 * grub-core/osdep/basic/random.c: New file. Abort on an attempt to
4743 get random when no RNG is available.
4744 * grub-core/osdep/random.c: Use basic/random.c on OS out of whitelist.
4745
acbbe5cb
VS
47462013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4747
4748 * include/grub/util/lvm.h: Removed.
4749
2112fb3f
VS
47502013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4751
4752 * grub-core/kern/emu/misc.c (fsync) [__MINGW32__]: Move to ...
4753 * grub-core/osdep/windows/hostdisk.c (fsync) [__MINGW32__]: ... here.
4754
79f78fbf
VS
47552013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4756
4757 * grub-core/osdep/windows/sleep.c: Add missing config.h.
4758
c2e6f705
VS
47592013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4760
4761 * grub-core/kern/emu/misc.c (grub_get_rtc): Remove (it's a leftover).
4762
aabe433a
VS
47632013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4764
4765 * grub-core/net/drivers/emu/emunet.c: Move to ..
4766 * grub-core/osdep/linux/emunet.c: ..here.
4767
9a2c903f
VS
47682013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4769
4770 * util/ieee1275/ofpath.c: Move to ...
4771 * grub-core/osdep/linux/ofpath.c: ..here, split stub into ...
4772 * grub-core/osdep/basic/ofpath.c: ..here.
4773
4a445f58
VS
47742013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4775
4776 Move password-querying (util-version) routines to grub-core/osdep.
4777
c1ca4244
VS
47782013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4779
4780 Move sleep routines to grub-core/osdep.
4781
672fa55e
VS
47822013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4783
4784 Move OS-dependent files to grub-core/osdep and document it.
4785
a5b0365a
VS
47862013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4787
4788 * grub-core/kern/emu/misc.c (canonicalize_file_name): Move to ...
4789 * grub-core/kern/emu/hostdisk_*.c (canonicalize_file_name): ... here.
4790
29072e99
VS
47912013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4792
4793 * grub-core/kern/arm/misc.S: Remove leftover ARM and THUMB.
4794
f8772ea7
VS
47952013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4796
4797 * util/misc.c: Remove leftover inclusion of malloc.h.
4798
a1a315e7
VS
47992013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4800
4801 * include/grub/setjmp.h: Remove leftover GRUBOF.
4802
cef86fef
VS
48032013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4804
4805 * util/raid.c: Fold into ...
4806 * util/getroot_linux.c: ... here. Make all functions static.
4807
c4cf25ee
VS
48082013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4809
4810 * grub-core/fs/zfs/zfs_lz4.c: Switch from ad-hoc endiannes and width
4811 macros to GRUB ones.
4812
53a5f5c2
VT
48132013-10-08 Vladimir Testov <vladimir.testov@rosalab.ru>
4814
4815 * grub-core/gfxmenu/gui_list.c (draw_scrollbar): Fixed rare
4816 occasional bug. If there are too many boot entries or too low
4817 scrollbar height then we need to use another formula to calculate
4818 the position and size of the scrollbar thumb.
4819
de300af2
VS
48202013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4821
c4cf25ee 4822 * util/random_unix.c: Add NetBSD, Solaris and Mac OS X to verified list.
de300af2 4823
c5827364
VT
48242013-10-08 Vladimir Testov <vladimir.testov@rosalab.ru>
4825
4826 * grub-core/gfxmenu/gui_list.c: New option `scrollbar-slice`.
4827 * docs/grub.texi: Likewise.
4828
dd2ed8b0
VT
48292013-10-08 Vladimir Testov <vladimir.testov@rosalab.ru>
4830
4831 * grub-core/gfxmenu/gui_list.c: Draw the scrollbar in a separate
4832 viewport.
4833
7286c384
VT
48342013-10-08 Vladimir Testov <vladimir.testov@rosalab.ru>
4835
ffdfc1f3
VT
4836 * grub-core/gfxmenu/gui_list.c (list_get_minimal_size): Corrected
4837 minimal width calculations.
7286c384 4838
ea547e14
VS
48392013-10-07 Vladimir Serbinenko <phcoder@gmail.com>
4840
4841 * docs/grub.texi: Update note on colors on emu console.
4842
b726be76
VS
48432013-10-07 Vladimir Serbinenko <phcoder@gmail.com>
4844
4845 * grub-core/fs/ufs.c (grub_ufs_get_file_block): Give GRUB_ERR_BAD_FS
4846 for quadruple indirect rather than GRUB_ERR_NOT_IMPLEMENTED_YET as
4847 it's FS and not GRUB limitation.
4848
a5f6ade6
VS
48492013-10-07 Vladimir Serbinenko <phcoder@gmail.com>
4850
4851 * grub-core/kern/arm/efi/startup.S: Remove thumb leftover.
4852
3b0f3aa2
VS
48532013-10-07 Vladimir Serbinenko <phcoder@gmail.com>
4854
4855 * grub-core/kern/arm/efi/init.c: Rewrite timer fucntion.
4856
1db38304
ST
48572013-10-04 Samuel Thibault <samuel.thibault@ens-lyon.org>
4858
4859 * util/grub.d/10_hurd.in: Use `version_find_latest` to sort gnumach
4860 kernels by version order.
4861
fb295fc0
VS
48622013-10-04 Vladimir Serbinenko <phcoder@gmail.com>
4863
4864 * util/random_unix.c: Add kFreeBSD to the list of secure RNG.
4865
47345010
VS
48662013-10-04 Vladimir Serbinenko <phcoder@gmail.com>
4867
4868 Add AROS hostdisk and getroot routines.
4869
bf25f879
VS
48702013-10-04 Vladimir Serbinenko <phcoder@gmail.com>
4871
4872 Make cryptodisk and diskfilter probe data retrievable programmatically
4873 and not just printable.
4874
24ca4512
VS
48752013-10-04 Vladimir Serbinenko <phcoder@gmail.com>
4876
4877 Split random retrieving code into separate files.
4878
c7c177f0
VS
48792013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
4880
4881 * grub-core/kern/arm/dl.c (do_relocations): Accept and ignore
4882 R_ARM_V4BX.
4883
d71b45ae
VS
48842013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
4885
4886 * grub-core/tests/video_checksum.c: Increase robustness to out of memory
4887 condition.
4888 * grub-core/tests/fake_input.c: Likewise.
4889 * grub-core/tests/cmdline_cat_test.c: Likewise.
4890
e44b9a83
VS
48912013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
4892
4893 * grub-core/video/capture.c: Do not do finalization when .fini
4894 is called as there is explicit capture_end.
4895
4fa60739
VS
48962013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
4897
4898 * grub-core/term/gfxterm.c: Add flag "functional" to skip input when
4899 changing windows to avoid crash.
4900
17c8bc37
VS
49012013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
4902
4903 * grub-core/kern/arm/cache.c: Add v5 write-through cache support.
4904
9d4d7977
VS
49052013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
4906
4907 * po/exclude.pot: Add several strings to exclude.
4908
0caa407c
VS
49092013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
4910
4911 * tests/gettext_strings_test.in: Add getroot_*.c to exclude list.
4912
9ae393da
VS
49132013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
4914
4915 * autogen.sh: Add ./util/grub-gen-widthspec.c and
4916 ./util/grub-gen-asciih.c to exclude list.
4917
498d5033
VS
49182013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
4919
4920 * grub-core/gfxmenu/theme_loader.c (theme_set_string): Fix memory leak
4921 and don't mark error strings for translation.
4922
7d93298f
VS
49232013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
4924
4925 * grub-core/disk/uboot/ubootdisk.c (uboot_disk_open): Use grub_error
4926 properly in case of missing block size.
4927
b2cae20c
VS
49282013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
4929
4930 * grub-core/lib/arm/setjmp.S: Add missing license section.
4931
3896d6b4
VS
49322013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
4933
4934 * po/swiss.sed: Add replacement for key names and for term computer.
4935
ebc1da55
VT
49362013-10-02 Vladimir Testov <vladimir.testov@rosalab.ru>
4937
4938 * grub-core/gfxmenu/theme_loader.c: New global options for the
4939 theme background image handling. desktop-image-scale-method,
4940 desktop-image-h-align, desktop-image-v-align.
4941 * grub-core/gfxmenu/view.c: Likewise.
4942 * include/gfxmenu_view.h: Likewise.
4943 * include/bitmap_scale.h: Proportional scale functions introduced.
4944 * grub-core/video/bitmap_scale.c: Likewise. Verification checks are
4945 put in a separate functions. GRUB_ERR_BUG is set for grub_error in
4946 cases of unexpected input variables for scale functions.
4947 * docs/grub.texi: Updated documentation for new options.
4948
c5739143
VS
49492013-10-02 Vladimir Serbinenko <phcoder@gmail.com>
4950
4951 * grub-core/video/readers/png.c: Support narrow (4-/2-/1-bpp) PNG.
4952
be74aeb3
VT
49532013-10-01 Vladimir Testov <vladimir.testov@rosalab.ru>
4954
4955 * grub-core/tests/checksums.h: Corrected due to changes in
4956 bilinear interpolation function.
4957
d999ac72
VT
49582013-10-01 Vladimir Testov <vladimir.testov@rosalab.ru>
4959
4960 * grub-core/video/bitmap_scale.c (scale_bilinear): Increased precision
4961 to eliminate artefacts in bilinear interpolation.
4962
2b131610
VS
49632013-09-28 Vladimir Serbinenko <phcoder@gmail.com>
4964
4965 * grub-core/video/readers/tga.c: Support paletted tga.
4966
de6e5ff8
VS
49672013-09-28 Vladimir Serbinenko <phcoder@gmail.com>
4968
4969 * grub-core/video/readers/jpeg.c (grub_jpeg_decode_data): Remove
4970 incorrect cbcr setting when in color mode.
4971
fa31ee9c
VS
49722013-09-28 Vladimir Serbinenko <phcoder@gmail.com>
4973
4974 * grub-core/video/readers/png.c: Support paletted images and clean up
4975 greyscale support.
4976
e84f8188
VS
49772013-09-28 Vladimir Serbinenko <phcoder@gmail.com>
4978
4979 * grub-core/term/terminfo.c (grub_terminfo_readkey): Fix
4980 usage of wrong table which resulted in mishandling of 4-byte
4981 sequences.
4982
49832013-09-28 Vladimir Serbinenko <phcoder@gmail.com>
2237daf2
VS
4984
4985 * grub-core/term/terminfo.c: Add Home and End key sequences.
4986
d72bff09
VS
49872013-09-27 Vladimir Serbinenko <phcoder@gmail.com>
4988
4989 * grub-core/video/readers/png.c (grub_png_decode_image_header):
4990 Fix formula for computing total number of bytes.
4991
29648c5d
VS
49922013-09-27 Vladimir Serbinenko <phcoder@gmail.com>
4993
4994 * grub-core/video/readers/tga.c: Reorganize to separate RLE and
4995 image processing, fix big-endian and support grayscale.
4996
4a876492
VS
49972013-09-27 Vladimir Serbinenko <phcoder@gmail.com>
4998
4999 * grub-core/video/fb/video_fb.c (grub_video_fb_create_render_target):
5000 Correctly will with maximum transparency when using index color.
5001
3ccf16df
VS
50022013-09-27 Vladimir Serbinenko <phcoder@gmail.com>
5003
5004 * grub-core/video/readers/png.c: Support grayscale
5005
50062013-09-27 Vladimir Serbinenko <phcoder@gmail.com>
e9c492a0
VS
5007
5008 * grub-core/video/readers/jpeg.c: Support grayscale.
5009
3ccf16df 50102013-09-26 Jon McCune <jonmccune@google.com>
0340bdbc
JM
5011
5012 * grub-core/commands/loadenv.c: Support skipping signature check
5013 and variable names filtering.
5014
30b7f58f
VS
50152013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
5016
5017 * grub-core/kern/emu/hostdisk_unix.c: Declare AROS as non-unix.
5018 * grub-core/kern/emu/hostfs.c: Likewise.
5019 * util/getroot_unix.c: Likewise.
5020
bab7b1eb
VS
50212013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
5022
5023 * include/grub/emu/hostdisk.h (GRUB_FD_STAT_IS_FUNTIONAL): New define.
5024 Migrate all explicit defines to this new one.
5025
43b1c99d
VS
50262013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
5027
5028 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_open): Use
5029 grub_util_fd_strerror when using grub_util_fd_*.
5030 (grub_util_fd_open_device): Likewise.
5031 (grub_util_biosdisk_read): Likewise.
5032 (grub_util_biosdisk_write): Likewise.
5033 * grub-core/kern/emu/hostdisk_unix.c (grub_util_fd_open): New function.
5034 (grub_util_fd_strerror): Likewise.
5035 (grub_util_fd_sync): Likewise.
5036 (grub_util_fd_close): Likewise.
5037 * grub-core/kern/emu/hostdisk_windows.c (grub_util_fd_sync): Likewise.
5038 (grub_util_fd_close): Likewise.
5039 (grub_util_fd_strerror): Likewise.
5040 * include/grub/emu/hostdisk.h (grub_util_fd_close): Make into real
5041 function proto rather than macro.
5042 (grub_util_fd_sync): Likewise.
5043 (grub_util_fd_open): Likewise.
5044 (grub_util_fd_strerror): New proto.
5045
e8fd80bc
VS
50462013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
5047
5048 * util/getroot.c (grub_util_biosdisk_is_present): Don't do stat on
5049 platforms on which it doesn't work.
5050
bf645fda
VS
50512013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
5052
5053 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_open): Move struct
5054 stat immediately to where it's used.
5055
5177ba14
VS
50562013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
5057
5058 * util/getroot.c (grub_util_check_block_device): Move to ...
5059 * util/getroot_unix.c (grub_util_check_block_device): ... here.
5060 * util/getroot.c (grub_util_check_char_device): Move to ...
5061 * util/getroot_unix.c (grub_util_check_char_device): ... here.
5062
9db826e1
VS
50632013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
5064
5065 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_close): Fix
5066 disk closing logic.
5067
49120085
AB
50682013-09-24 Andrey Borzenkov <arvidjaar@gmail.com>
5069
5070 * docs/grub.texi (Simple configuration): Document GRUB_ENABLE_CRYPTODISK.
5071
b3328b68
AB
50722013-09-24 Andrey Borzenkov <arvidjaar@gmail.com>
5073
5074 * docs/grub.texi (File name syntax): Document ZFS filenames
5075 (/volume@snapshot/...).
5076
3fff48ab
VS
50772013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5078
5079 * grub-core/kern/emu/hostdisk_windows.c (grub_util_get_windows_path):
5080 Always return full path. Fixes a problem with mkrelpath.
5081
39cfdaa9
PFS
50822013-09-23 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
5083
5084 * util/grub-install.in: Add GPT PReP support.
5085 * util/grub-probe.c (probe): Support GPT partition type.
5086 (main): Support -t gpt_parttype.
5087
7c680e1f 50882013-09-23 Aleš Nesrsta <starous@volny.cz>
5089
5090 * grub-core/bus/usb/ehci.c: SMI disabled in all cases
5091
890bdabe
MM
50922013-09-23 Massimo Maggi <me@massimo-maggi.eu>
5093
5094 * grub-core/fs/zfs/zfs.c (check_pool_label): Check nvlist.
5095
9c262ff9
TH
50962013-09-23 Tim Hardeck <thardeck>
5097
5098 * util/grub.d/10_hurd.in: Filter out character for the class.
5099 * util/grub.d/10_kfreebsd.in: Likewise.
5100 * util/grub.d/10_linux.in: Likewise.
5101 * util/grub.d/20_linux_xen.in: Likewise.
5102
d755342a
MC
51032013-09-23 Melki Christian <Christian.melki@saabgroup.com>
5104
5105 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Fix the type of
5106 "changed".
5107
68b77707
JT
51082013-09-23 Josh Triplett <josh@joshtriplett.org>
5109
5110 * grub-core/boot/i386/pc/lnxboot.S: Re-add support for recording the
5111 boot partition.
5112
efa68bfa
VS
51132013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5114
5115 * Makefile.util.def (libgrubmods.a): Remove CFLAGS_POSIX as this lib
5116 doesn't use posix_wrap. Keep literal -fno-builtin however.
5117
d9104204
VS
51182013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5119
5120 * conf/Makefile.common (CPPFLAGS_LIBFDT): Remove leftover.
5121
c248781a 51222013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
51232013-09-23 neil
5124
5830df88 5125 * configure.ac: Do not enable -Wmissing-noreturn as its
5126 usefulness is limited and creates problems on some OS notably with
5127 code generated by bison.
5128
51292013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
51302013-09-23 neil
5131
5132 * configure.ac: Do not explicitly enable -Waddress as it's not
c248781a 5133 supported by all gcc and when it is, it's already enabled by -Wall.
5134
621bed69
VS
51352013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5136
5137 * grub-core/video/efi_gop.c (grub_video_gop_setup): Fix a typo which
5138 desactivated use of EDID at all.
5139
71764dc8 51402013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
51412013-09-23 neil
5142
5143 * grub-core/loader/multiboot.c (grub_multiboot_set_console): Always use
5144 video if no text is available.
5145
affce7d4 51462013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
1bd73025
VS
51472013-09-23 neil
5148
5149 * configure.ac: Substitute TARGET_RANLIB.
5150
51512013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
51522013-09-23 neil
affce7d4
VS
5153
5154 * grub-core/genmod.sh.in: Remove ./ from TARGET_OBJ2ELF. Add quotes.
5155
5156 Based on patches from AROS.
5157
0e8daad0 51582013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
1bd73025 51592013-09-23 neil
0e8daad0
VS
5160
5161 * grub-core/Makefile.am: Override STRIP and RANLIB.
5162 * configure.ac: compute TARGET_RANLIB.
5163 * INSTALL: Document TARGET_RANLIB
5164
5165 Based on patches from AROS.
5166
3f7d9c82
VS
51672013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5168
5169 * util/getroot.c (grub_util_biosdisk_get_grub_dev): Do not assume
5170 that floppies are unpartitioned.
5171
bca8873a
VS
51722013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5173
5174 * util/getroot_unix.c [__MINGW32__ || __CYGWIN__]:
5175 Define dummy grub_util_pull_lvm_by_command to decrease number of #if's.
5176
51772013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5178
5179 * grub-core/lib/posix_wrap/sys/types.h: Use OpenBSD approach: it's
5180 less nice but more portable.
5181 * grub-core/lib/posix_wrap/wchar.h: Likewise.
5182
a47a78be
VS
51832013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5184
5185 * include/grub/cryptodisk.h (grub_cryptodisk): Use grub_util_fd_t
5186 for cheat_fd.
5187 * grub-core/disk/cryptodisk.c (grub_cryptodisk_open): Use grub_util_*
5188 functions.
5189 (grub_cryptodisk_cheat_insert): Likewise.
5190 (grub_cryptodisk_close): Likewise.
5191
e85a5d5c
VS
51922013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5193
5194 * include/grub/emu/misc.h: Remove leftover cygwin definitions.
5195 Use windows path for DEFAULT_DIRECTORY.
5196
dad9fa6b
VS
51972013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5198
5199 * include/grub/i386/setjmp.h: Remove useless #if MINGW where original
5200 difference was likely just gcc version, not anything mingw-related.
5201
7e518ca8
VS
52022013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5203
5204 Use Winapi on both cygwin and mingw32 to share more code between both.
5205
d68d0157
AB
52062013-09-22 Andrey Borzenkov <arvidjaar@gmail.com>
5207
5208 * util/grub-install.in: Add --grub-editenv option.
5209 * util/grub-install_header (grub_compress_file): Explicitly check for
5210 plain file to avoid cp error.
5211
775b284d
AB
52122013-09-22 Andrey Borzenkov <arvidjaar@gmail.com>
5213
5214 * docs/grub.texi (Device syntax): Document new LVM UUID based device
5215 names; fix LVM driver name (lvm, not lv).
5216 * util/grub-probe.c (probe_abstraction): Support lvmid/xxx device
5217 names.
5218
3ff4063d
VS
52192013-09-22 Vladimir Serbinenko <phcoder@gmail.com>
5220
5221 * grub-core/kern/emu/hostdisk.c: Disentagle into a series of OS-specific
5222 files rather than one file with loads of #if's.
5223 * util/getroot.c: Likewise.
5224
287faafe
VS
52252013-09-22 Vladimir Serbinenko <phcoder@gmail.com>
5226
5227 * grub-core/lib/posix_wrap/sys/types.h: Use stddef on *BSD.
5228
d1983764
VS
52292013-09-22 Vladimir Serbinenko <phcoder@gmail.com>
5230
5231 * util/grub-mkpasswd-pbkdf2.c (grub_get_random): Add windows and
5232 GNU/Hurd to the list of checked PRNG.
5233
15ce95c4
VS
52342013-09-22 Vladimir Serbinenko <phcoder@gmail.com>
5235
5236 * configure.ac: On FreeBSD use -melf_*_fbsd format.
5237
207862dd 52382013-09-21 Ales Nesrsta <starous@volny.cz>
5239
7c680e1f 5240 * grub-core/bus/usb/ehci.c: Corrected EHCI QH handling (async./sync.)
207862dd 5241
63653cfd
VS
52422013-09-20 Vladimir Serbinenko <phcoder@gmail.com>
5243
5244 * grub-core/disk/diskfilter.c: Handle non-md UUIDs.
5245 * grub-core/disk/lvm.c: Add LVM UUIDs.
5246 * util/getroot.c: Use LVM UUIDs whenever possible.
5247
f5d3e7ef
AB
52482013-09-19 Andrey Borzenkov <arvidjaar@gmail.com>
5249
5250 * docs/grub.texi (Networking commands): Add documentation for
5251 network related commands.
5252
53c6b7d6
VS
52532013-09-19 Vladimir Serbinenko <phcoder@gmail.com>
5254
5255 * util/getroot.c (grub_util_open_dm): Check major rather than the name
5256 to determine if device is handled by devmapper.
5257 (convert_system_partition_to_system_disk): Likewise.
5258 (get_dm_uuid): Don't check explicitly if device is mapped, it's
5259 already done in grub_util_open_dm.
5260
e70d6736
LL
52612013-09-19 Leif Lindholm <leif.lindholm@linaro.org>
5262
5263 * kern/arm/cache.S: Correct access to ilinesz/dlinesz variables.
5264 Clean up stack manipulation (sync_caches_armv*)
5265
90379808
VS
52662013-09-19 Vladimir Serbinenko <phcoder@gmail.com>
5267
5268 * util/lvm.c: Remove since unused. Remove remaining references.
5269
386701a8
VS
52702013-09-19 Vladimir Serbinenko <phcoder@gmail.com>
5271
5272 Handle the case of partitioned LVM properly.
5273
5274 * grub-core/kern/emu/hostdisk.c (grub_util_get_dm_node_linear_info):
5275 Stop on meeting LVM, mpath or DMRAID.
5276 (grub_hostdisk_os_dev_to_grub_drive): Canonicalize os device.
5277 (read_device_map): Likewise.
5278 * util/getroot.c (convert_system_partition_to_system_disk): Assume that
5279 device is full disk rather than erroring out on LVM and similar cases.
5280
53070787
VS
52812013-09-18 Vladimir Serbinenko <phcoder@gmail.com>
5282
5283 * util/grub-mkconfig_lib.in: Keep supplied pkgdatadir if any.
5284
1bc783bd
VS
52852013-09-18 Vladimir Serbinenko <phcoder@gmail.com>
5286
5287 * grub-core/kern/mm.c (grub_mm_init_region): Skip regions less than
5288 4K before the end.
5289 Reported by: Leif Lindholm
5290
436ad5c3
PW
52912013-09-18 Pawel Wojtalczyk <eyak@wp.pl>
52922013-09-18 Vladimir Serbinenko <phcoder@gmail.com>
5293
5294 * grub-core/term/efi/console.c (grub_console_getkey): Accept VT100-style
5295 codes.
5296
607319c9
CW
52972013-09-18 Colin Watson <cjwatson@ubuntu.com>
5298
5299 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name_iter):
5300 Remove no-longer-true __attribute__ ((unused)) on disk parameter.
5301
d404d154
DR
53022013-09-18 Douglas Ray <dougray@cpan.org>
5303
5304 * util/grub-mkpasswd-pbkdf2.c (grub_get_random): Declare OpenBSD PRNG
5305 as secure.
5306
28851ef6
AN
53072013-09-18 Aleš Nesrsta <starous@volny.cz>
5308
5309 * docs/grub.texi: Fix broken link.
5310
897c3bc6
MC
53112013-09-18 Melki Christian <Christian.melki@saabgroup.com>
5312
5313 * grub-core/bus/usb/usb.c (grub_usb_device_initialize): Add condition
5314 to break endless loop.
5315
f1630459
VS
53162013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
5317
5318 * util/grub-fstest.c: Fix several printf formats.
5319 * util/grub-mkimage.c: Likewise.
5320 * util/grub-mkimagexx.c: Likewise.
5321 * util/grub-script-check.c: Likewise.
5322
64463dfd
VS
53232013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
5324
5325 * grub-core/lib/xzembed/xz_dec_lzma2.c: Make -Wattributes not cause
5326 error.
5327
48972495
VS
53282013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
5329
5330 * config.h.in [GRUB_BUILD]: Explicitly undefine ENABLE_NLS.
5331
5dd5e64b
VS
53322013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
5333
5334 * util/getroot.c (grub_find_device): Use cygwin_conv_path ratherthan
5335 removed in current versions cygwin_conv_*.
5336
1c1f31e5
VS
53372013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
5338
5339 * configure.ac: Disable efiemu runtime on cygwin.
5340
c546a259
VS
53412013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
5342
5343 * conf/Makefile.extra-dist: Add missing util/grub-gen-asciih.c,
5344 util/grub-gen-widthspec.c and util/grub-pe2elf.c.
5345
81690478
VS
53462013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5347
5348 * util/grub-mkpasswd-pbkdf2.c (grub_password_get): Remove extraneous
5349 error message.
5350
6b87c10a
VS
53512013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5352
5353 * grub-core/lib/crypto.c (grub_password_get) [GRUB_UTIL]: Add
5354 windows variant.
5355 * util/grub-mkpasswd-pbkdf2.c: Add windows flavour for retrieving random
5356 data.
5357
8f0baaac
VS
53582013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5359
5360 * configure.ac: Add -Wl,-melf_i386 and -Wl,-melf_x86_64 systematically
5361 when on x86 and not cygwin.
5362 * conf/Makefile.common: Remove unsystematic -Wl,-melf_i386 and
5363 -Wl,-melf_x86_64.
5364
b224c266
VS
53652013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5366
5367 * configure.ac: Set CPP to build one when checkoing for freetype for
5368 build.
5369
506b336b
VS
53702013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5371
5372 * util/grub-mkfont.c [!GRUB_BUILD]: Define my_argp_state.
5373 [!GRUB_BUILD]: Remove has_argument.
5374
8c8c87b7
VS
53752013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5376
5377 * util/ieee1275/ofpath.c (grub_util_devname_to_ofpath) [_WIN32]:
5378 Replace with a dummy.
5379
7dc5ca13
VS
53802013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5381
5382 * configure.ac: Don't change host_os from mingw to cygwin.
5383
c3302aa5
VS
53842013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5385
5386 * configure.ac: Change target_os from windows to cygwin.
5387
7b780018
VS
53882013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5389
5390 Handle grub-pe2elf and grub-mkfont for cases when build != host.
5391
5392 * Makefile.am (build-grub-mkfont): Don't include gnulib.
5393 (build-grub-gen-asciih): Likewise.
5394 (build-grub-gen-widthspec): Likewise.
5395 * Makefile.util.def (grub-pe2elf): Remove.
5396 * config.h.in [GRUB_BUILD]: Use build rather than host constants.
5397 * configure.ac: Separate tests for build.
5398 Move ./build-grub-pe2elf to grub-core.
5399 Fix typo.
5400 * grub-core/Makefile.am (build-grub-pe2elf): New target.
5401 * grub-core/kern/emu/misc.c (xasprintf): Don't compile if GRUB_BUILD is
5402 defined.
5403 * include/grub/types.h [GRUB_BUILD]: Use build rather than host
5404 constants.
5405 * util/grub-mkfont.c [GRUB_BUILD]: Simplify not to rely on argp.
5406 * util/grub-pe2elf.c: Simplify not to rely on getopt.
5407 * util/misc.c (program_name) [GRUB_BUILD]: Define to static string.
5408
984cfd8a
VS
54092013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5410
5411 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_size): Adapt for
5412 mingw32 as well based on grub_util_get_disk_size.
5413 * util/misc.c (grub_util_get_disk_size): Removed. all users switched to
5414 grub_util_get_fd_size.
5415 (sync): Removed.
5416 (fsync): Moved to ...
5417 * grub-core/kern/emu/misc.c (fsync): ... here.
5418
f82d79c9
VS
54192013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5420
5421 * include/grub/mm.h (grub_extend_alloc): Remove.
5422 * grub-core/loader/i386/pc/plan9.c: Use own version of
5423 grub_extend_alloc with appropriate types.
5424
fd7dd66d
VS
54252013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5426
5427 * conf/Makefile.common (CFLAGS_GCRY): Add -Wno-redundant-decls.
5428
43ffba7c
VS
54292013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5430
5431 * util/getroot.c: Include sys/wait.h only when we need waitpid.
5432
3c7eac44
VS
54332013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5434
5435 Fix dependencies on cygwin.
5436
5437 * gentpl.py: Support variable dependencies. Add $TARGET_OBJ2ELF to
5438 dependencies when used and defined.
5439 * grub-core/Makefile.core.def (regexp): Add dependency on libgnulib.a.
5440
bdb5ba47
VS
54412013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5442
5443 * include/grub/zfs/spa.h (zio_cksum): Add explicit members for mac.
5444 * grub-core/fs/zfs/zfs.c (zio_read): Don't use casts to retrieve mac.
5445
ed7fbf43
VS
54462013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5447
5448 * grub-core/kern/emu/mm.c (grub_memalign): Don't define if there is no
5449 implementation available to cause compile-time rather than runtime
5450 error.
5451
fc46e9fc
VS
54522013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5453
5454 * util/grub-fstest.c: Don't check for symlinks on windows.
5455
7f68269a
VS
54562013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5457
5458 * INSTALL: Mention unavailability of man pages when cross-compiling.
5459
8ed358e0
VS
54602013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5461
5462 * include/grub/crypto.h: Don't declare gcry_log_bug, gcry_log_printf
5463 and gcry_log_bug.
5464 * grub-core/lib/libgcrypt_wrap/mem.c: Include g10lib.h
5465
fc97214f
VS
54662013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
5467
5468 * INSTALL: Document cross-compilation.
5469 * acinclude.m4: Determine whether nm support -P and --defined-only.
5470 * configure.ac: Add TARGET_ to all variables pertaining to target
5471 that don't have it yet.
5472 * gentpl.py: Likewise.
5473 * grub-core/Makefile.am: Likewise.
5474 * grub-core/genmod.sh.in: Likewise.
5475 * grub-core/gensyminfo.sh.in: Handle OpenBSD and other non-GNU nm
5476 as well.
5477
ca1fb563
IB
54782013-08-21 Ilya Bakulin <Ilya_Bakulin@genua.de>
5479
5480 * configure.ac: Remove -Wempty-body. It's not essential and needs
5481 recent gcc.
5482
0031b229
IB
54832013-08-21 Ilya Bakulin <Ilya_Bakulin@genua.de>
5484
5485 * grub-core/kern/emu/hostdisk.c: Add conditionals for OpenBSD.
5486 * util/getroot.c: Likewise.
5487
54ea2f44
VS
54882013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
5489
5490 * grub-core/disk/ahci.c: Add needed explicit cast.
5491 * grub-core/lib/backtrace.c: Likewise.
5492 * grub-core/net/ip.c: Likewise.
5493 * grub-core/net/tcp.c: Likewise.
5494 * grub-core/net/udp.c: Likewise.
5495
3c601f8c
VS
54962013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
5497
5498 * grub-core/lib/posix_wrap/wchar.h: Fix typo.
5499
1d679dda
VS
55002013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
5501
5502 * util/import_gcry.py: Add final newline in visibility.h.
5503
00c28dd9
VS
55042013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
5505
5506 * conf/Makefile.common: Fix typo.
5507
32af299a
VS
55082013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
5509
5510 * Makefile.util.def (grub-mkfont): Add missing libgnu.a.
5511
e733cf52
VS
55122013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
5513
5514 * Makefile.am (widthspec.h): Fix typo.
5515 * util/grub-gen-widthspec.c: Likewise.
5516
c6b066f2
VS
55172013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
5518
5519 Move ascii.h and widthspec.h generation to a separate build-time-only
5520 tool.
5521
ad1fe3f9 55222013-08-16 Grégoire Sutre <gregoire.sutre@gmail.com>
5523
5524 * grub-core/loader/i386/bsd.c (grub_netbsd_add_boot_disk_and_wedge):
5525 Always fill bootdisk info and improve check for NetBSD disklabel.
5526
92a52dd4
VS
55272013-08-16 Vladimir Serbinenko <phcoder@gmail.com>
5528
5529 * conf/Makefile.extra-dist: Add util/bin2h.c.
5530 Reported by: floppym.
5531
b2e9d276
VS
55322013-08-16 Vladimir Serbinenko <phcoder@gmail.com>
5533
5534 * configure.ac: Make unifont mandatory for powerpc-ieee1275.
5535
7b966834
VS
55362013-08-16 Vladimir Serbinenko <phcoder@gmail.com>
5537
5538 * configure.ac: Disable unifont and starfield if no freetype was found.
5539
d5c1eef1
VS
55402013-08-16 Vladimir Serbinenko <phcoder@gmail.com>
5541
5542 * grub-core/lib/posix_wrap/wchar.h: Fix wchar_t and mbstate_t conflict
5543 on NetBSD and OpenBSD.
5544
66345b50 55452013-08-15 Vladimir Testov <vladimir.testov@rosalab.ru>
03dafa17
VT
5546
5547 * grub-core/gfxmenu/gui_list.c: Baseline misplacement fixed.
5548
66345b50 55492013-08-15 Vladimir Testov <vladimir.testov@rosalab.ru>
224a55bb
VT
5550
5551 * grub-core/gfxmenu/gui_list.c: The number of color mappings is
5552 reduced. Inheritant options are processed during the theme loading.
5553
66345b50 55542013-08-15 Vladimir Testov <vladimir.testov@rosalab.ru>
58ec39c6
VT
5555
5556 * grub-core/gfxmenu/gui_list.c: Minimal width fixed.
5557
369508b3
AS
55582013-08-14 Avik Sil <aviksil@in.ibm.com>
5559
5560 * grub-core/net/tftp.c: Send tftp ack packet before closing the socket.
5561
55622013-08-14 Avik Sil <aviksil@in.ibm.com>
412ce916
AS
5563
5564 * grub-core/net/drivers/ieee1275/ofnet.c: Get proper mac address when
5565 using qemu.
5566
6f27a3f6
PFS
55672013-08-14 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
5568
5569 * .bzrignore: Add bootinfo.txt, grub.chrp, gnulib/float.h, and
5570 remove-potcdate.sed.
5571
c6ed362a
AB
55722013-08-14 Andrey Borzenkov <arvidjaar@gmail.com>
5573
5574 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Remove
5575 unused attribute from pull argument.
5576
5e7d9464
AB
55772013-08-14 Andrey Borzenkov <arvidjaar@gmail.com>
5578
5579 * util/getroot.c (grub_util_is_imsm): Fix descriptor and
5580 memory leak.
5581
dea55e2a
AB
55822013-08-14 Andrey Borzenkov <arvidjaar@gmail.com>
5583
5584 * util/getroot.c (pull_lvm_by_command): add --separator option
5585 to vgs call to disable padding of output to 10 characters.
5586
f0b94ded
VS
55872013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
5588
5589 * grub-core/kern/emu/misc.c (grub_device_mapper_supported): Move from
5590 here ...
5591 * grub-core/kern/emu/hostdisk.c (grub_device_mapper_supported): ... to
5592 here.
5593
b828fb5d
VS
55942013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
5595
5596 * include/grub/i386/pc/biosdisk.h (grub_biosdisk_drp): Fix device_path
5597 length.
5598
7c9d0c39
VS
55992013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
5600
5601 Fix handling of build-time grub-bin2h and grub-mkfont when doing
5602 full Canadian cross. Tested with build=x86_64, host=arm,
5603 target=ppc-ieee1275.
5604
816719c8
VS
56052013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
5606
5607 * configure.ac: Error if no $BUILD_CC could be found.
5608 Reported by: DevHC.
5609
2af2353b
VS
56102013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
5611
5612 * grub-core/kern/i386/coreboot/init.c: Fix compilation on
5613 i386-multiboot.
5614
797abd0a
VS
56152013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
5616
5617 * grub-core/kern/vga_init.c: Fix compilation on qemu-mips.
5618 * grub-core/kern/mips/qemu_mips/init.c: Likewise.
5619
36e87d25
CW
56202013-08-13 Colin Watson <cjwatson@ubuntu.com>
5621
5622 * util/getroot.c (grub_util_biosdisk_get_grub_dev): Zero out
5623 grub_errno in the case where we handle GRUB_ERR_UNKNOWN_DEVICE by
5624 falling back to the partition device, otherwise a later call to this
5625 function may fail spuriously.
5626 Reported by Axel Beckert. Fixes Debian bug #708614.
5627
273349fe
GS
56282013-08-12 Grégoire Sutre <gregoire.sutre@gmail.com>
5629
5630 * autogen.sh: Replace find -not by the POSIX-compliant find !.
5631
418f86c6
GS
56322013-08-12 Grégoire Sutre <gregoire.sutre@gmail.com>
5633
5634 Prevent shadowing of stdlib's devname(3) on BSD.
5635
5636 * grub-core/disk/cryptodisk.c (grub_cmd_cryptomount): Rename devname
5637 and devlast to diskname and disklast, respectively.
5638
c137aea0
CW
56392013-08-11 Colin Watson <cjwatson@ubuntu.com>
5640
5641 * util/grub-mkconfig.in: Fix detection of Emacs autosave files.
5642
272dc8df 56432013-08-08 Vladimir Testov <vladimir.testov@rosalab.ru>
b4743461
VT
5644
5645 * docs/grub.texi: Introduce terminal window position options:
5646 terminal-left: terminal window's left position
5647 terminal-top: terminal window's top position
5648 terminal-width: terminal window's width
5649 terminal-height: terminal window's height
5650 terminal-border: terminal window's border width
5651 * grub-core/gfxmenu/theme-loader.c: Likewise.
5652 * include/grub/gfxmenu_view.h: Likewise.
5653 * po/exlude.pot: Likewise.
5654 * grub-core/gfxmenu/view.c: Likewise.
5655 Also updated minimal window size.
5656 Also terminal_sanity_check function has been introduced.
272dc8df
VT
5657 * grub-core/tests/checksums.h: Update (terminal window height
5658 is adjusted now for low resolution screen)
b4743461 5659
748a4533
VS
56602013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
5661
5662 * grub-core/tests/checksums.h: Update (1-pixel difference in marker
5663 position).
5664
fca5f944
VS
56652013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
5666
5667 * po/exclude.pot: Add few recent exceptions.
5668
4f47d809
VS
56692013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
5670
5671 * tests/grub_func_test.in: Add unicode.pf2.
5672
a62ae90c
VS
56732013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
5674
5675 * grub-core/term/gfxterm.c (grub_virtual_screen_setup): Start with
5676 standard rather than noral color, in line with other terminals.
5677
4ed41392
VS
56782013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
5679
5680 * grub-core/partmap/dfly.c: Simplify dprintfs for easier gettext
5681 analysis.
5682
3719fbc5
VS
56832013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
5684
5685 * grub-core/loader/arm/linux.c: Change printf to dprintf.
5686
459b1d91
VS
56872013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
5688
5689 * grub-core/fs/zfs/zfs.c (check_feature): Cleanup and remove
5690 inappropriate printf.
5691
f4e1ab9d
AB
56922013-07-25 Andrey Borzenkov <arvidjaar@gmail.com>
5693
5694 * .bzrignore: Remove grub-core/lib/dtc-grub,
5695 grub-core/Makefile.libfdt.def
5696 * conf/Makefile.extra-dist: Remove grub-core/Makefile.libfdt.def.
5697
fa471bfa
VS
56982013-07-25 Vladimir Serbinenko <phcoder@gmail.com>
5699
5700 * include/grub/video.h (grub_video_register): Keep double-linked as
5701 well as single-linked invariants.
5702 Reported by: qwertial.
5703
d65be02b
VS
57042013-07-25 Vladimir Serbinenko <phcoder@gmail.com>
5705
5706 * grub-core/commands/nativedisk.c (get_uuid): Handle
5707 GRUB_DISK_DEVICE_UBOOTDISK_ID.
5708
ba8bc620
VT
57092013-07-25 Vladimir Testov <vladimir.testov@rosalab.ru>
5710
5711 * grub-core/gfxmenu/widget-box.c: Fixed draw function. Now it takes
5712 maximum of NW, N, NE heights instead of N's height and maximum of
5713 NW, W, SW widths instead of W's width. (So the box will be always
5714 correctly drawn)
5715
4f0ad029
GS
57162013-07-20 Grégoire Sutre <gregoire.sutre@gmail.com>
5717
5718 * grub-core/partmap/bsdlabel.c (netopenbsdlabel_partition_map_iterate):
5719 Fix misuse of variable count.
5720
43d53b72
LL
57212013-07-18 Leif Lindholm <leif.lindholm@arm.com>
57222013-07-18 Francesco Lavra <francescolavra.fl@gmail.com>
57232013-07-18 Vladimir Serbinenko <phcoder@gmail.com>
5bac5d9a 5724
43d53b72
LL
5725 New ports to arm-uboot and arm-efi.
5726 Mostly by Leif Lindholm with some additions from
5727 Francesco Lavra and cleanup by Vladimir Serbinenko.
141430a2 5728
88f8d146
VS
57292013-07-16 Vladimir Serbinenko <phcoder@gmail.com>
5730
5731 * grub-core/loader/multiboot_elfxx.c: Check eip after v2p translation
5732 and not before.
5733 Reported by: Leon Drugi.
5734
3f42504c
VS
57352013-07-16 Vladimir Serbinenko <phcoder@gmail.com>
5736
5737 * grub-core/kern/powerpc/ieee1275/startup.S: Handle unaligned bss.
5738 Reported by: Paulo Flabiano Smorigo.
5739
d110499b
VT
57402013-07-14 Vladimir Testov <vladimir.testov@rosalab.ru>
5741
5742 * grub-core/gfxmenu/gui_list.c: USe viewport when drawing strings.
5743
a8674ad3
VT
57442013-07-14 Vladimir Testov <vladimir.testov@rosalab.ru>
5745
5746 * grub-core/gfxmenu/gui_list.c: Fix height calculation.
5747
286fe4b3
VS
57482013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
5749
5750 * grub-core/fs/zfs/zfs.c: Stylistic fixes.
5751
1bd57aa3
VS
57522013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
5753
5754 * grub-core/fs/zfs/zfs.c: Run emacs indent on file.
5755
7a87d69f
AB
57562013-07-14 Andrey Borzenkov <arvidjaar@gmail.com>
5757
5758 * grub-core/net/bootp.c: Export net_* variables.
5759 * grub-core/net/net.c: Likewise.
5760
b2182299
VS
57612013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
5762
5763 * grub-core/fs/zfs/zfs.c: Remove brackets around return value.
5764
795b3dc0
VS
57652013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
5766
5767 * grub-core/fs/zfs/zfs_lz4.c: Add missing packed attribute.
5768
68714c43
VS
57692013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
5770
5771 * grub-core/fs/zfs/zfs.c (nvlist_next_nvpair): Fix improper cast.
5772
af211bab
VS
57732013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
5774
5775 * grub-core/fs/zfs/zfs_lz4.c: Remove restrict keyword.
5776
0036f02d
MM
57772013-07-14 Massimo Maggi <me@massimo-maggi.eu>
5778
5779 * grub-core/fs/zfs/zfs.c (nvlist_next_nvpair): Error is encode_size
5780 <= 0.
5781
6d0ddff3
MM
57822013-07-14 Massimo Maggi <me@massimo-maggi.eu>
5783
5784 * grub-core/fs/zfs/zfs.c: Split nvpair iterators into separate
5785 functions.
5786
038016f4
MM
57872013-07-14 Massimo Maggi <me@massimo-maggi.eu>
5788
5789 * grub-core/fs/zfs/zfs_lz4.c: New file.
5790 * grub-core/fs/zfs/zfs.c: Tie up lz4 decompression.
5791
776bdce2
MM
57922013-07-14 Massimo Maggi <me@massimo-maggi.eu>
5793
5794 * grub-core/fs/zfs/zfs.c: Check for feature compatibility.
5795
c71dbd40
MM
57962013-07-14 Massimo Maggi <me@massimo-maggi.eu>
5797
5798 * grub-core/fs/zfs/zfs.c (uberblock_verify): Accept version 5000.
5799 (check_pool_label): Likewise.
5800 * include/grub/zfs/zfs.h: Rewrite SPA_VERSION_* macros.
5801
58022013-07-14 Massimo Maggi <me@massimo-maggi.eu>
53618046
MM
5803
5804 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Fix RAIDZ reporting.
5805
8e67b50f
AB
58062013-07-13 Andrey Borzenkov <arvidjaar@gmail.com>
5807
5808 * docs/grub.texi (Commands): Document postition parameters
5809 for menuentry command.
5810
f5ae3717
AB
58112013-07-13 Andrey Borzenkov <arvidjaar@gmail.com>
5812
5813 * util/grub-mknetdir.in: Remove stray line from help output.
5814
9c28da2a
VS
58152013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
5816
5817 Remove early sm712 init as there is no reason for it (the "watchdog"
5818 effect was due to wrong GPIO map).
5819
139072b8
VS
58202013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
5821
5822 * grub-core/commands/pcidump.c: Remove static variables.
5823
c6a61bda
VS
58242013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
5825
5826 * grub-core/commands/sleep.c: Refresh screen before sleeping.
5827
51369614
VS
58282013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
5829
5830 * configure.ac: Move delimiter after the infos.
5831
efa8640a
VS
58322013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
5833
5834 * grub-core/bus/usb/usbhub.c: Fix recheck logic.
5835
6f80a7b2
VS
58362013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
5837
5838 * util/grub-mkfont.c (write_font_ascii_bitmap): Fix handling of glyphs
5839 not filling whole 8x16 space.
5840
a2371e19
VS
58412013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
5842
5843 * grub-core/normal/charset.c (bidi_line_wrap): Fix spurios warning.
5844
64fce2d8
VS
58452013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
5846
5847 * configure.ac: Indicate which liblzma is used if any.
5848
eb272d84
PW
58492013-06-21 Paul Wise <pabs3@bonedaddy.net>
58502013-06-21 Craig Sanders <savannah@taz.net.au>
5851
5852 * util/grub-reboot.in: Document submenu usage.
5853
a9e5abee
CW
58542013-06-25 Colin Watson <cjwatson@ubuntu.com>
5855
5856 * .bzrignore: Update with a number of new test-related files.
5857
e639c204
CW
58582013-06-25 Colin Watson <cjwatson@ubuntu.com>
5859
5860 * util/grub-script-check.c: Fail on scripts containing no
5861 commands, to guard against corrupted grub-mkconfig setups that
5862 produce no useful output.
5863 * tests/grub_script_no_commands.in: New test.
5864 * Makefile.util.def (grub_script_no_commands): Add.
5865 Reported by Hans Putter. Fixes Debian bug #713886.
5866
a4c89b17
AB
58672013-06-16 Andrey Borzenkov <arvidjaar@gmail.com>
5868
5869 * grub-core/disk/diskfilter.c: Forgot to remove comment
5870 from previous commit.
5871
5b06b53c
AB
58722013-06-16 Andrey Borzenkov <arvidjaar@gmail.com>
5873
5874 * grub-core/term/gfxterm.c (grub_virtual_screen_setup): Use
5875 grub_term_normal_color, do not hardcode GRUB_TERM_DEFAULT_NORMAL_COLOR.
5876
702da5c9
AB
58772013-06-16 Andrey Borzenkov <arvidjaar@gmail.com>
5878
5879 * conf/Makefile.extra-dist: Add grub-core/fs/cpio_common.c.
5880
aa62a5b7
AB
58812013-06-16 Andrey Borzenkov <arvidjaar@gmail.com>
5882
5883 * grub-core/disk/diskfilter.c (scan_devices): Iteratively
5884 rescan diskfilter devices until nothing new is found.
5885
4aa237c8
VS
58862013-06-16 Vladimir Serbinenko <phcoder@gmail.com>
5887
5888 Fix casts when compiling coreboot-specific code for 64-bit EFI.
5889
93d8479b
VS
58902013-06-16 Vladimir Serbinenko <phcoder@gmail.com>
5891
5892 Don't try to detect cbfs on *-emu.
5893
837222cc
VS
58942013-06-16 Vladimir Serbinenko <phcoder@gmail.com>
5895
5896 * grub-core/term/gfxterm.c: USe right background color when scrolling.
5897
99c971af
VS
58982013-06-16 Vladimir Serbinenko <phcoder@gmail.com>
5899
5900 Add support for processed coreboot payload chainloading.
5901
e6930a45
VS
59022013-06-16 Vladimir Serbinenko <phcoder@gmail.com>
5903
5904 Enable coreboot information commands even when not loaded as
5905 coreboot payload (e.g. when loaded from SeaBIOS-as-payload).
5906
5027af38
VS
59072013-06-15 Vladimir Serbinenko <phcoder@gmail.com>
5908
5909 Support for cbfs. Also factor out the part which is common
5910 for all archives to a separate module. This splits tar from cpio
5911 as they are very different but keeps cpio, cpio_be, odc and newc
5912 together since they're very similar.
5913
a5b55c4b
DM
59142013-06-15 David Michael <fedora.dm0@gmail.com>
5915
5916 * configure.ac (FREETYPE): Change AC_CHECK_PROGS to AC_CHECK_TOOLS.
5917 (freetype_cflags,freetype_libs): Change freetype-config to $FREETYPE.
5918
0301a8b3
VS
59192013-06-15 Vladimir Serbinenko <phcoder@gmail.com>
5920
5921 * tests/grub_script_eval.in: Really add the eval test.
5922
3d84cb17
VS
59232013-06-14 Vladimir Serbinenko <phcoder@gmail.com>
5924
5925 Move flavour-specific parts out of common cpio.c file and
5926 rename remaining to cpio_common.c
5927
593e430c
AB
59282013-06-07 Andrey Borzenkov <arvidjaar@gmail.com>
5929
5930 * grub-core/script/execute.c (grub_script_execute_sourcecode): Split
5931 off new function grub_script_execute_new_scope. Change callers to use
5932 either of them as appropriate.
5933 * grub-core/commands/eval.c: New command eval.
5934 * docs/grub.texi (Commands): Document it.
5935
63c29849
AB
59362013-06-07 Andrey Borzenkov <arvidjaar@gmail.com>
5937
5938 * grub-core/kern/corecmd.c (grub_core_cmd_set): Use grub_env_get
5939 to fetch values when listing.
5940
cc284112
AB
59412013-06-07 Andrey Borzenkov <arvidjaar@gmail.com>
5942
5943 Fix make dist on non-pc.
5944
59452013-06-07 Francesco Lavra <francescolavra.fl@gmail.com>
b8578da6
FL
5946
5947 * grub-core/kern/corecmd.c (grub_core_cmd_ls): Fix handling of paths
5948 without a device name.
5949
69544d1e
VS
59502013-06-07 Vladimir Serbinenko <phcoder@gmail.com>
5951
5952 Remove enable_executable_check as it's not needed anymore.
5953 Reported by: dougray.
5954
96dbe648
VS
59552013-06-07 Vladimir Serbinenko <phcoder@gmail.com>
5956
5957 * grub-core/disk/diskfilter.c (insert_array): Fix order to discover
5958 ambigouos RAID before discovering RAIDs on top of it.
5959 Reported by: bodom.
5960
ccfc0bdb
VS
59612013-06-07 Vladimir Serbinenko <phcoder@gmail.com>
5962
5963 Fix typo (failback vs fallback).
5964
f2587088
AB
59652013-05-31 Andrey Borzenkov <arvidjaar@gmail.com>
5966
5967 * util/grub.d/30_os-prober.in: Add support for probing EFI
5968 System Partition (as of os-prober 1.58).
5969
cec5cf0c
VS
59702013-05-31 Vladimir Serbinenko <phcoder@gmail.com>
5971
5972 * configure.ac: Add yet another path to unifont. For parabola.
5973
e40b4596
JT
59742013-05-30 Josh Triplett <josh@joshtriplett.org>
5975
5976 * grub-core/normal/cmdline.c (grub_cmdline_get): Fix Ctrl-u
5977 handling to copy the killed characters to the kill buffer as
5978 UCS4 stored as grub_uint32_t rather than as 8-bit characters
5979 stored as char. Eliminates UCS4 truncation and corruption
5980 observed when killing characters with Ctrl-u and yanking them
5981 back with Ctrl-y.
5982
fc4c4fdd
VS
59832013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
5984
5985 Detach optional parts of gfxterm and integrate in with coreboot init.
5986
6570b205
VS
59872013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
5988
5989 Move blit and fill dispatcher to appropriate files to decrease export
5990 and relocation overhead.
5991
b8323067
VS
59922013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
5993
5994 * grub-core/font/font.c, include/grub/font.h: Inline simple font
5995 functions.
5996
3cc1878f
VS
59972013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
5998
5999 * grub-core/Makefile.am: Fix compilation problem with some
6000 automake versions.
6001
4b80e43c
VS
60022013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
6003
6004 * configure.ac: Add Ubuntu path to unifont and report unifont path used.
6005
57e0c20c
VS
60062013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
6007
6008 * Makefile.am, conf/Makefile.common: Fix compilation problem with some
6009 automake versions.
6010
4fd42c53
VS
60112013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
6012
6013 * grub-core/commands/acpihalt.c: Fix handling of DSDT in presence of
6014 SSDT.
6015
1e908b34
RS
60162013-05-15 Radosław Szymczyszyn <lavrin@gmail.com>
6017
6018 * grub-core/partmap/dfly.c: New partition map.
6019
1359e474
VS
60202013-05-15 Vladimir Serbinenko <phcoder@gmail.com>
6021
6022 * grub-core/kern/corecmd.c (grub_core_cmd_ls): Fix empty path
6023 checking.
6024 Reported by: Francesco Lavra.
6025
17806392
AB
60262013-05-14 Andrey Borzenkov <arvidjaar@gmail.com>
6027
6028 * gentpl.py: Replace EXTRA_DIST with dist_noinst_DATA or
6029 dist_<directory>_DATA. EXTRA_DIST is ignored by automake inside
6030 false conditions.
6031 * conf/Makefile.common: define dist_grubconf_DATA
6032
cdce14fa
VS
60332013-05-14 Vladimir Serbinenko <phcoder@gmail.com>
6034
6035 Progressively skip menu elements on small terminals rather
6036 than crashing.
6037
c8d6cc3c
VS
60382013-05-14 Vladimir Serbinenko <phcoder@gmail.com>
6039
6040 * grub-core/normal/cmdline.c (grub_cmdline_get): Fix off-by-one error
6041 to avoid losing last column.
6042
a73b31ce
VS
60432013-05-14 Vladimir Serbinenko <phcoder@gmail.com>
6044
6045 * po/exclude.pot: Add missing string "%C".
6046
1202c764
VS
60472013-05-14 Vladimir Serbinenko <phcoder@gmail.com>
6048
6049 * tests/util/grub-shell.in: Remove the temporary directory on grub-emu
6050 after the test.
6051
50268344
VS
60522013-05-11 Vladimir Serbinenko <phcoder@gmail.com>
6053
6054 * util/grub-install.in: Gettextize "Not found" message.
6055
62b15edf
VS
60562013-05-11 Vladimir Serbinenko <phcoder@gmail.com>
6057
6058 Fix distfiles list.
6059 Reported by: Andrey Borzenkov <arvidjaar@gmail.com>
6060
60612013-05-11 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
a9c0b699
PFS
6062
6063 * grub-core/net/bootp.c (grub_cmd_bootp): Check if there is any card
6064 present.
6065 * include/grub/err.h (grub_err_t): New enum value GRUB_ERR_NET_NO_CARD.
6066
709ad61b
VS
60672013-05-11 Vladimir Serbinenko <phcoder@gmail.com>
6068
6069 * grub-core/tests/setjmp_test.c: Ignore missing noreturn.
6070
d128901a
VS
60712013-05-11 Vladimir Serbinenko <phcoder@gmail.com>
6072
6073 * grub-core/fs/hfspluscomp.c (grub_hfsplus_compress_attr): Add packed
6074 attribute since structure is not necessarily aligned.
6075
34b22f5c
AB
60762013-05-11 Andrey Borzenkov <arvidjaar@gmail.com>
6077
6078 * docs/grub.texi (Device syntax): Clarify description of network
6079 drives.
6080
0f7e980b
VS
60812013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
6082
6083 Redirect xasprintf to grub_xvasprintf rather than having #ifdef's
6084 for vasprintf presence.
6085
30b03dc2
VS
60862013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
6087
6088 * util/grub-install.in: Handle efibootmgr presence check.
6089 Reported by: Leif Lindholm.
6090
0dc11c08
VS
60912013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
6092
6093 * grub-core/commands/testspeed.c: Reuse formatting string to decrease
6094 new strings to translate.
6095
f8024c3f
VS
60962013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
6097
6098 * util/grub-mkrescue.in: Replace `STR' with `STRING' to avoid adding
6099 yet another string (pun intended) to translate.
6100
b4c1da62
VS
61012013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
6102
6103 * po/POTFILES-shell.in: Autogenerate it.
6104
0ef7478b
VS
61052013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
6106
6107 * grub-core/net/net.c (grub_net_open_real): Autoload network modules.
6108
8200fa15
VS
61092013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
6110
6111 * grub-core/term/terminfo.c: Rename ANSI_C0 to ANSI_CSI to avoid
6112 misnomer.
6113
091945b2
AB
61142013-05-08 Andrey Borzenkov <arvidjaar@gmail.com>
6115
6116 * docs/grub.texi (Network): Add description of net_default_interface,
6117 net_default_ip and net_default_mac. Rewrite variables description
6118 to emphasize that they are per-interface.
6119
0e7b2e32
VS
61202013-05-08 Vladimir Serbinenko <phcoder@gmail.com>
6121
6122 New test: cmdline and cat.
6123
16f7c8f6
VS
61242013-05-08 Vladimir Serbinenko <phcoder@gmail.com>
6125
6126 * grub-core/commands/cat.c: Show UTF-8 characters.
6127
3e912fda
VS
61282013-05-08 Vladimir Serbinenko <phcoder@gmail.com>
6129
6130 * conf/Makefile.common: Poison float and double on non-emu.
6131
ee0220bc
VS
61322013-05-08 Vladimir Serbinenko <phcoder@gmail.com>
6133
6134 * configure.ac: Don't disable extended registers on emu.
6135
89e0240c
VS
61362013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6137
6138 * configure.ac: Don't use extended registers on x86_64.
6139 Reported by: Peter Jones.
6140
e56d9637
VS
61412013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6142
6143 * grub-core/term/efi/console.c: Fix compile error.
6144
8098f655
VS
61452013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6146
6147 Compressed HFS+ support.
6148
16940e07
VS
61492013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6150
6151 * grub-core/commands/videoinfo.c: Use "paletted" rather than "packed
6152 pixel".
6153
c5dbc13d
VS
61542013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6155
6156 Menu color test.
6157
011f8ae8
VS
61582013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6159
6160 * grub-core/tests/setjmp_test.c: New test.
6161
2aa072d7
VS
61622013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6163
6164 New variables 'net_default_*' to determine MAC/IP of default interface.
6165
43fe02cb
VS
61662013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6167
6168 * tests/gettext_strings_test.in: A test to check for strings not
6169 marked for translation.
6170
bed06142
VS
61712013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6172
6173 * autogen.sh: Exclude unused libgcrypt files from translation.
6174
fb2666b5
VS
61752013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6176
6177 Simplify few strings.
6178
d22840ec
VS
61792013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6180
6181 Mark few forgotten strings for translation.
6182
e34092fd
VS
61832013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6184
6185 * grub-core/loader/linux.c: Use grub_dprintf for debug statements
6186 rather than printf.
6187
47cf82b4
VS
61882013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6189
6190 * grub-core/video/readers/jpeg.c: Use grub_dprintf for debug statements
6191 rather than printf.
6192 * grub-core/video/readers/tga.c: Likewise.
6193
1eed0e6e
VS
61942013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6195
6196 * tests/priority_queue_unit_test.cc: New test.
6197
c5b7697b
VS
61982013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6199
6200 * grub-core/font/font.c: Use grub_dprintf for debug statements rather
6201 than printf.
6202
5945c2f8
AB
62032013-05-06 Andrey Borzenkov <arvidjaar@gmail.com>
6204
6205 Reimplement grub-reboot to not depend on saved_entry. Use next_entry
6206 variable for one time boot menu entry.
6207
fa292343
B
62082013-05-05 Bean <bean123ch@gmail.com>
6209
6210 * grub-core/commands/testspeed.c: New command testspeed.
6211
310d4214
VS
62122013-05-05 Vladimir Serbinenko <phcoder@gmail.com>
6213
6214 Factor-out human-size printing.
6215
85002bf3
VS
62162013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6217
6218 Agglomerate more mallocs to speed-up gfxterm.
6219
22b06e96
VS
62202013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6221
6222 Speed-up gfxterm by slightly agglomerating mallocs.
6223
b7c036bc
VS
62242013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6225
6226 More video checks.
6227
92323d1f
VS
62282013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6229
6230 Speed-up gfxterm by saving intermediate results in index+alpha
6231 format.
6232
0fb356a3
VS
62332013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6234
6235 * grub-core/tests/lib/functional_test.c: Don't stop on first failed
6236 test.
6237
44dea3f9
VS
62382013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6239
6240 * grub-core/normal/menu_text.c (menu_clear_timeout): Clear second
6241 line of timeout as it may contain the rest of long line.
6242
14af86e4
VS
62432013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6244
6245 * grub-core/normal/main.c: Fix freed memory dereference.
6246
03f7c8c3
VS
62472013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6248
6249 Fix several memory leaks.
6250
c686014c
VS
62512013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6252
6253 * grub-core/normal/menu.c (run_menu): Fix timeout reference point.
6254
0788a695
VS
62552013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6256
6257 * grub-core/gettext/gettext.c: Try $lang.gmo as well.
6258
daf01d61
VS
62592013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6260
6261 Fix test -a and -o precedence.
6262 Reported by: adrian15.
6263
82ae74d7
VS
62642013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6265
6266 * grub-core/font/font.c (grub_font_construct_glyph): Fix memory leak.
6267
8cec7bd4
AB
62682013-05-03 Andrey Borzenkov <arvidjaar@gmail.com>
6269
6270 Rename grub-core/tests/checksums.c into grub-core/tests/checksums.h
6271 and add it as source to functional_test module.
6272
aa73d688
VS
62732013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
6274
6275 * grub-core/tests/video_checksum.c: Don't set GENERATE_MODE.
6276
c104b6f9
VS
62772013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
6278
6279 New series of tests for gfxterm and gfxmenu.
6280
7391c4d5
VS
62812013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
6282
6283 * grub-core/gfxmenu/gfxmenu.c (grub_gfxmenu_try): Allow specifying
6284 the theme path relative to $prefix/themes.
6285
cff50118
VS
62862013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
6287
6288 * grub-core/video/fb/fbblit.c (grub_video_fbblit_blend_BGR888_RGBA8888):
6289 Fix order bug.
6290 (grub_video_fbblit_blend_RGB888_RGBA8888): Likewise.
6291
7c332bdc
VS
62922013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
6293
6294 * include/grub/gui.h (grub_gfxmenu_timeout_unregister): Free cb
6295 descriptor.
6296
a4f9a5ff
VS
62972013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
6298
6299 * grub-core/gfxmenu/view.c (grub_gfxmenu_view_new): Clear
6300 grub_gfxmenu_timeout_notifications.
6301 (grub_gfxmenu_view_destroy): Likewise.
6302
b5a2114d
VS
63032013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
6304
6305 * grub-core/normal/term.c (print_ucs4_real): Fix startwidth in dry run.
6306
a8905e8a
VS
63072013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
6308
6309 Several fixes to ieee1275 and big-endian video.
6310
813c1622
VS
63112013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
6312
6313 Add missing exports on mips.
6314
3f3e7326
VS
63152013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
6316
6317 * grub-core/tests/videotest_checksum.c (videotest_checksum): Error out
6318 if no unifont is found.
6319 Restore original keyboard.
6320
095accd1
VS
63212013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
6322
6323 * grub-core/loader/i386/linux.c (grub_linux_setup_video): Add
6324 GRUB_VIDEO_ADAPTER_CAPTURE: to handled drived ids.
6325
50361660
VS
63262013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
6327
6328 First automated video test (running videotest and comparing results)
6329
cd0f6eec
VS
63302013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
6331
6332 * grub-core/commands/videotest.c: Reduce flickering and draw 6 squares
6333 instead of 2 to have full RGB/CMY test pattern.
6334
3f9634e5
VS
63352013-04-30 Vladimir Serbinenko <phcoder@gmail.com>
6336
6337 Add few more tests.
6338
583e5b64
VS
63392013-04-30 Vladimir Serbinenko <phcoder@gmail.com>
6340
6341 * include/grub/arc/arc.h: Account for missing "other" peripheral on
6342 ARCS. All users updated.
6343
aa7bcb99
VS
63442013-04-30 Vladimir Serbinenko <phcoder@gmail.com>
6345
6346 * grub-core/kern/mips/loongson/init.c: Support halt for loongson 2E.
6347
95ef1a54
VS
63482013-04-30 Vladimir Serbinenko <phcoder@gmail.com>
6349
6350 * grub-core/partmap/amiga.c: Fix size of checksummed block.
6351
46546fc5
VS
63522013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6353
6354 * configure.ac: Use -mcmodel=large on x86_64-emu as well.
6355 Reported by: qwertial.
6356
3476e0ef
VT
63572013-04-29 Vladimir Testov <vladimir.testov@rosalab.ru>
6358
6359 * grub-core/gfxmenu/circular_progress.c: Set start_angle in degrees
6360 with syntax "XXX deg"/"XXX °".
6361
96f33fed
VS
63622013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6363
6364 Make PCI init in i386-qemu port more robust.
6365
63662013-04-29 Vladimir Testov <vladimir.testov@rosalab.ru>
dc5a311a
VT
6367
6368 * grub-core/gfxmenu/gui_list.c: Refresh first_shown_entry value when
6369 cached view is reused.
6370 * grub-core/gfxmenu/view.c: Call the refresh procedure for all
6371 open boot menus.
6372
c53b4e67
VS
63732013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6374
6375 Unify more code in grub-install_header.
6376
f7457fb2
VS
63772013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6378
6379 Add few new tests.
6380
e2f27a8c
VS
63812013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6382
6383 Enforce disabling of firmware disk drivers when native drivers kick in.
6384
ef9d8cd5
VS
63852013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6386
6387 * grub-core/commands/nativedisk.c: Customize the list of modules on
6388 platform. Don't try to search for disks already using native drivers.
6389
f7bf6c31
VS
63902013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6391
6392 * grub-core/bus/usb/uhci.c: Fix DMA handling and enable on all PCI
6393 platforms.
6394
bdc4add8
VS
63952013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6396
6397 * grub-core/script/execute.c (grub_script_arglist_to_argv): Fix
6398 handling of variables containing backslash.
6399
e9e46c9a
VS
64002013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6401
6402 * include/grub/list.h (FOR_LIST_ELEMENTS_SAFE):Fix a NULL pointer
6403 dereference.
6404 Reported by: qwertial.
6405
0e90dee8
VS
64062013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6407
6408 * grub-core/kern/mips/arc/init.c: Fix prefix detection.
6409
e0aacf24
VS
64102013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6411
6412 * grub-core/lib/arg.c (grub_arg_show_help): Fix a NULL pointer
6413 dereference.
6414 Reported by: qwertial.
6415
3c0003c3
VS
64162013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6417
6418 * docs/grub.texi: Add a comment about usefullness of nativedisk.
6419
adb7d667
VS
64202013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6421
6422 * grub-core/commands/nativedisk.c: Ignore unknown filesystem error.
6423
7cd0df84
VS
64242013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6425
6426 New command `nativedisk'.
6427
02adbb93
VS
64282013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6429
6430 * grub-core/io/lzopio.c: Use GRUB_PROPERLY_ALIGNED_ARRAY.
6431 * grub-core/loader/i386/bsd.c: Likewise.
6432
9fb0fd4f
VS
64332013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6434
6435 * grub-core/disk/ahci.c: Fix compilation for amd64 (format warnings).
6436
bd69257a
VS
64372013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6438
6439 * include/grub/efi/api.h (GRUB_EFI_DEVICE_PATH_LENGTH): Use
6440 grub_get_unaligned16 rather than shifts.
6441
178c2764
VS
64422013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6443
6444 * grub-core/kern/file.c: Use const char * rather than casting to
6445 non-const.
6446
eadfad24
VS
64472013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6448
6449 * grub-core/commands/probe.c: Add missing grub_device_close.
6450
9f73ebd4
VS
64512013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6452
6453 * INSTALL: Document linguas.sh.
6454
965fa829
VS
64552013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6456
6457 Remove POTFILES.in and regenerate it in autogen.sh.
6458
d417ddc4
VS
64592013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6460
6461 Move --directory/--override-directorry to grub-install_header and unify.
6462
f97ec546
VS
64632013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6464
6465 * grub-core/term/morse.c: Macroify dih and dah.
6466
b2d7470c
PFS
64672013-04-27 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
6468
6469 * include/grub/macho.h: Set GRUB_MACHO_FAT_EFI_MAGIC as unsigned.
6470
141e2a78
VS
64712013-04-27 Vladimir Serbinenko <phcoder@gmail.com>
6472
6473 * grub-core/term/ns8250.c: Systematically probe ports by writing
6474 to SR before using them.
6475
1dd70ebd
PFS
64762013-04-27 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
6477
6478 * util/ieee1275/ofpath.c (of_path_of_scsi): Fix path output for sas
6479 disks.
6480 (check_sas): Get sas_adress info.
6481
c796a107
VS
64822013-04-27 Vladimir Serbinenko <phcoder@gmail.com>
6483
6484 * grub-core/disk/ahci.c (grub_ahci_pciinit): Fix handling of empty
6485 ports.
6486
43168646
LD
64872013-04-27 Leon Drugi <eyak>
6488
6489 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_load): Fix cast in
6490 BSS clearing.
6491
e7b8fd08
VS
64922013-04-27 Vladimir Serbinenko <phcoder@gmail.com>
6493
6494 Core compression test.
6495
17f9fd29
VS
64962013-04-27 Vladimir Serbinenko <phcoder@gmail.com>
6497
6498 Implement grub_machine_get_bootlocation for ARC.
6499
dc2a6c8b
VS
65002013-04-27 Vladimir Serbinenko <phcoder@gmail.com>
6501
6502 Improve AHCI detection and command issuing.
6503
f25a2ba6
VS
65042013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6505
6506 Fix pseries test.
6507
a6393224
VS
65082013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6509
6510 Make 'make check' work on emu.
6511
db99fbe8
VS
65122013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6513
6514 Replace libcurses with our own vt100 handling for the ease of testing
6515 and decreasing prerequisites.
6516
b24ca7cd
VS
65172013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6518
6519 * grub-core/Makefile.core.def: Fix grub-emu and grub-emu-lite sources.
6520
63314aa4
VS
65212013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6522
6523 * util/getroot.c (exec_pipe): Put proper #if's so that its users don't
6524 compile when not needed.
6525
c1b00fff
VS
65262013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6527
6528 * tests/pseries_test.in: New test.
6529
f93e89ef
VS
65302013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6531
6532 Add test to check that different boot mediums work.
6533
c4b456d3
VS
65342013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6535
6536 * util/grub-mkrescue.in: Rename i386-ieee1275 core image due to
6537 ofw limited ISO support.
6538
5fe67f39
VS
65392013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6540
6541 * configure.ac: Fix loongson conditional.
6542
7f63a64f
VS
65432013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
6544
6545 Enable mipsel-arc.
6546
b04b5990
VS
65472013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
6548
6549 Add serial on ARC platform.
6550
88d2f302
VS
65512013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
6552
6553 * grub-core/boot/powerpc/bootinfo.txt.in: Missing update from previous
6554 commit.
6555
86eb23bc
VS
65562013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
6557
6558 * tests/partmap_test.in: Add missing double semicolon.
6559
eec3bb75
VS
65602013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
6561
6562 * util/grub-mkrescue.in: Fix loongson filename.
6563
e0810df3
VS
65642013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
6565
6566 * util/grub-mkrescue.in: Move all files that don't have a location
6567 set in stone under /boot/grub. Use ISO hard links rather than copies
6568 to save some space.
6569
65a6b30b
VS
65702013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6571
6572 * grub-core/term/ieee1275/console.c (grub_console_dimensions): Ignore
6573 bogus SLOF values.
6574
6aff0107
VS
65752013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6576
6577 Make check work on mips-arc.
6578
5e013e56
VS
65792013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6580
6581 * util/grub-mkrescue.in: Alias sashARCS as sash.
6582
d1989e2e
VS
65832013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6584
6585 * grub-core/term/arc/console.c: Assume that console is 80x24 vt100 if
6586 it's serial.
6587
1a25e72c
VS
65882013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6589
6590 * util/grub-install.in: Fix target fo qemu_mips.
6591 Fix extension on EFI.
6592
a59a9826
VS
65932013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6594
6595 * grub-core/normal/menu_text.c (print_entry): Put an asterisk
6596 in front of chosen entry to mark it even if highlighting is lost.
6597
1a40f80c
VS
65982013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6599
6600 * grub-core/loader/i386/linux.c (grub_linux_boot): Default to
6601 gfxpayload=keep if cbfb is active.
6602
e343549c
VS
66032013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6604
6605 * grub-core/disk/ata.c (grub_ata_real_open): Use grub_error properly.
6606
45fbd9a2
VS
66072013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6608
6609 Add missing video ids to coreboot and ieee1275 video.
6610
ab1440bd
VS
66112013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6612
6613 * util/grub-mkrescue.in: Add mips-arc support.
6614
cdeb8324
VS
66152013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6616
6617 * grub-core/kern/dl.c (grub_dl_resolve_symbols): Handle malloc failure.
6618
8528c879
VS
66192013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6620
6621 Move mips-arc link address. Previous link address was chosen
6622 in belief that RAM on SGI platforms grows down while in fact it
6623 grows up from an unusual base.
6624
17fca573
VS
66252013-04-21 Vladimir Serbinenko <phcoder@gmail.com>
6626
6627 * grub-core/disk/arc/arcdisk.c (grub_arcdisk_iterate_iter):
6628 Fix a type which prevented CD-ROM and floppy boot.
6629
d178788e
VS
66302013-04-21 Vladimir Serbinenko <phcoder@gmail.com>
6631
6632 Support coreboot framebuffer.
6633
6634 * grub-core/video/i386/coreboot/cbfb.c: New file.
6635
fe4c3e7e
VS
66362013-04-20 Vladimir Serbinenko <phcoder@gmail.com>
6637
6638 * grub-core/kern/mm.c (grub_mm_init_region): Fix condition for
6639 detecting too small regions.
6640
ec2dd179
VS
66412013-04-20 Vladimir Serbinenko <phcoder@gmail.com>
6642
6643 * grub-core/Makefile.core.def (legacycfg): Enable on EFI.
6644
872dac83
VS
66452013-04-20 Vladimir Serbinenko <phcoder@gmail.com>
6646
6647 * grub-core/lib/efi/relocator.c (grub_relocator_firmware_alloc_region):
6648 Remove dprintf.
6649 * grub-core/lib/relocator.c (malloc_in_range): Likewise.
6650
90ec4b7f
VS
66512013-04-19 Vladimir Serbinenko <phcoder@gmail.com>
6652
6653 * grub-core/kern/ieee1275/init.c (grub_claim_heap): Improve handling
6654 of GRUB_IEEE1275_FLAG_FORCE_CLAIM.
6655 * grub-core/loader/powerpc/ieee1275/linux.c
6656 (grub_linux_claimmap_iterate): Handle GRUB_IEEE1275_FLAG_FORCE_CLAIM.
6657
f32555dd
VS
66582013-04-19 Vladimir Serbinenko <phcoder@gmail.com>
6659
6660 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options):
6661 Look for /boot-rom as well as /rom/boot-rom.
6662
38649799
VS
66632013-04-19 Vladimir Serbinenko <phcoder@gmail.com>
6664
6665 * grub-core/commands/videotest.c (grub_cmd_videotest): Fix error
6666 handling when creating text_layer failed.
6667 * grub-core/video/video.c (grub_video_create_render_target):
6668 Set result to 0 on error.
6669 (grub_video_delete_render_target): Do not dereference NULL.
6670
aeace7f7
VS
66712013-04-19 Vladimir Serbinenko <phcoder@gmail.com>
6672
6673 * grub-core/kern/elfXX.c (grub_elfXX_load): Handle
6674 GRUB_ELF_LOAD_FLAGS_30BITS and GRUB_ELF_LOAD_FLAGS_62BITS.
6675 * grub-core/loader/powerpc/ieee1275/linux.c (grub_linux_load32),
6676 (grub_linux_load64): Mask out 2 high bits.
6677
4eafa175
AB
66782013-04-19 Andrey Borzenkov <arvidjaar@gmail.com>
6679
6680 * util/grub.d/30_os-prober.in: Add onstr to linux entries in one
6681 more place.
6682
daaa64bd
VS
66832013-04-19 Vladimir Serbinenko <phcoder@gmail.com>
6684
6685 Add support for pseries and other bootinfo machines to grub-mkrescue.
6686
6687 Tested by: Paulo Flabiano Smorigo.
6688
d0d2daa6
VS
66892013-04-17 Vladimir Serbinenko <phcoder@gmail.com>
6690
6691 * util/grub-mkrescue.in: Add GPT for EFI boot.
6692
b193e100
VS
66932013-04-17 Vladimir Serbinenko <phcoder@gmail.com>
6694
6695 * grub-core/disk/efi/efidisk.c: Detect floppies by ACPI ID.
6696 It improves performance in qemu.
6697
a0f8f3ac
VS
66982013-04-17 Vladimir Serbinenko <phcoder@gmail.com>
6699
6700 * build-aux/snippet: Add missing gnulib files.
6701
284df0e2
AB
67022013-04-16 Andrey Borzenkov <arvidjaar@gmail.com>
6703
6704 * grub-core/disk/efi/efidisk.c: Really limit transfer chunk size.
6705
740201f3
AB
67062013-04-16 Andrey Borzenkov <arvidjaar@gmail.com>
6707
6708 * autogen.sh: Use "-f" in addition for "-h" when checking file presence.
6709
a7e03923
PJ
67102013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
67112013-04-15 Peter Jones <pjones@redhat.com>
6712
6713 * grub-core/disk/efi/efidisk.c: Limit disk read or write chunk to 0x500
6714 sectors.
6715 Based on patch by Peter Jones.
6716
25fc51a8
VS
67172013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
6718
6719 Fix DMRAID partition handling.
6720
88017d47
VS
67212013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
6722
6723 * tests/grub_cmd_date.in: Skip on sparc64.
6724
fa7d914e
VS
67252013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
6726
6727 * tests/grub_script_expansion.in: Use fixed-string grep to skip over
6728 firmware error messages.
6729
cbe57a48
VS
67302013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
6731
6732 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_devalias_next): Make
6733 source and destination differ.
6734
21aecce0
VS
67352013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
6736
6737 * grub-core/disk/ieee1275/ofdisk.c: Fix CD-ROM and boot device
6738 detection.
6739
25092d29
VS
67402013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6741
6742 * grub-core/lib/posix_wrap/sys/types.h: Make WORDS_BIGENDIAN definition
6743 match config-util.h to avoid warnings and increase compatibility.
6744
79451522 67452013-04-14 Szymon Janc <szymon@janc.net.pl>
25092d29 67462013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
79451522
VS
6747
6748 Add option to compress files on install/image creation.
6749
78b7d77b
VS
67502013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6751
6752 * docs/grub-dev.texi: Rearrange menu to match the section order.
6753 Reported by: Bryan Hundven.
6754
cc2fa5ec
VS
67552013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6756
6757 * grub-core/loader/i386/linux.c: Remove useless leftover pointer.
6758
b49fe879
VS
67592013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6760
6761 Move GRUB out of system area when using xorriso 1.2.9 or later.
6762
5351da81
VS
67632013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6764
6765 * tests/grub_cmd_date.in: Add missing exit 1.
6766
c9d586ea
VS
67672013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6768
6769 * tests/partmap_test.in: Skip on sparc64.
6770
3f729741
VS
67712013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6772
6773 Support grub-shell on sparc64.
6774
8ca86b3a
VS
67752013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6776
6777 Support mkrescue on sparc64.
6778
aa1af9bb
VS
67792013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6780
6781 Allow IEEE1275 ports on path even if it wasn't detected automatically.
6782 Needed on OpenBIOS due to incomplete device tree.
6783
ac4fea79
VS
67842013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6785
6786 * grub-core/disk/ieee1275/ofdisk.c: Iterate over bootpath even if it
6787 would be otherwise excluded.
6788
67892013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
87206f2c
VS
6790
6791 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options):
6792 Inline name defines used only once.
6793
fe22b071
VS
67942013-04-13 Vladimir Serbinenko <phcoder@gmail.com>
6795
6796 Fix memory leaks in ofnet.
6797 Reported by: Francesco Lavra.
6798
9d21381b
VS
67992013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6800
6801 * docs/man/grub-glue-efi.h2m: Add missing file.
6802
07aec23c
VS
68032013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6804
6805 * util/grub-mkrescue.in: Fix wrong architecture for ppc dir.
6806
67ab8353
VS
68072013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6808
6809 Better support Apple Intel Macs on CD.
6810
ba44ca6d
VS
68112013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6812
6813 Replace stpcpy with grub_stpcpy in tools.
6814
bbdd6305
VS
68152013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6816
6817 Handle Japanese special keys.
6818 Reported by: Hiroyuki YAMAMORI.
6819 Codes supplied by: Hiroyuki YAMAMORI.
6820
8573d302
VS
68212013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6822
6823 * util/grub-mkimage.c: Document memdisk implying --prefix.
6824
d70dbab7
VS
68252013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6826
6827 * grub-core/bus/usb/ehci.c (grub_ehci_fini_hw): Ignore errors, not
6828 much we can do about it anyway.
6829
51a4c3e3
AN
68302013-04-12 Aleš Nesrsta <starous@volny.cz>
6831
6832 Fix handling of split transfers.
6833
92c8f58d
VS
68342013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6835
6836 * grub-core/net/http.c: Fix bad free.
6837
b7d17a49
VS
68382013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6839
6840 * grub-core/net/drivers/ieee1275/ofnet.c: Don't attempt to send more
6841 than buffer size.
6842
a3d566d4
VS
68432013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6844
6845 Disable partmap check on i386-ieee1275 due to openfirmware issues.
6846
a936af56
VS
68472013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6848
6849 * tests/util/grub-shell.in: Fix it on powerpc.
6850
51212234
VS
68512013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6852
6853 Turn off QEMU ACPI-way since new releases don't have shutdown port
6854 anymore.
6855
a21eec9e
VS
68562013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6857
6858 * docs/grub.texi: Update coreboot status info.
6859
e3734b84
VS
68602013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6861
6862 * tests/grub_cmd_date.in: New test for datetime.
6863
f9d40055
VS
68642013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6865
6866 * tests/partmap_test.in: Fix missing qemudisk setting.
6867
dbc56d8f
VS
68682013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
6869
6870 Support i386-ieee1275 grub-mkrescue and make check on it.
6871
a79b8a15
VS
68722013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
6873
6874 Merge powerpc grub-mkrescue flavour with common. Use xorriso HFS+
6875 feature for it.
6876
48f39bb4
VS
68772013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
6878
6879 * docs/grub.texi: Fix description of GRUB_CMDLINE_XEN and
6880 GRUB_CMDLINE_XEN_DEFAULT.
6881 Reported by: Marc Warne (GigaTux) <gigatux>
6882
053cfcdd
VS
68832013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
6884
6885 Import new gnulib.
6886
93cd84df
VS
68872013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
6888
6889 Use ACPI shutdown intests as traditional port was removed.
6890
f4b1fa4f
AB
68912013-04-11 Andrey Borzenkov <arvidjaar@gmail.com>
6892
6893 * util/grub.d/30_os-prober.in: Add onstr to entries for visual
6894 distinction.
6895
49818a59
VS
68962013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
6897
6898 Fix missing PVs if they don't contain "interesting" LV. Closes #38677.
6899 Fix few warining messages and leaks while on it.
6900
9277a306
AB
69012013-04-09 Andrey Borzenkov <arvidjaar@gmail.com>
6902
6903 * autogen.sh: Use "-h", not "-f", to test for existence of symbolic
6904 links under grub-core/lib/libgcrypt-grub/mpi.
6905
d5e2a158
VS
69062013-04-08 Vladimir Serbinenko <phcoder@gmail.com>
6907
6908 Fix ia64-efi image generation on big-endian machines. Deduplicate
6909 some code while on it.
6910 Reported by: Leif Lindholm.
6911
18866643
AB
69122013-04-08 Andrey Borzenkov <arvidjaar@gmail.com>
6913
6914 * grub-core/Makefile.core.def: Add kern/elfXX.c to elf module
6915 as extra_dist.
6916
ca53deb8
AB
69172013-04-08 Andrey Borzenkov <arvidjaar@gmail.com>
6918
6919 * grub-core/term/i386/pc/console.c: Fix cursor moving algorithm.
6920
d4c4b8e1
BH
69212013-04-08 Bryan Hundven <bryanhundven@gmail.com>
6922
6923 * docs/grub-dev.texi: Move @itemize after @subsection to satisfy
6924 texinfo-5.1.
6925
47043f95
VS
69262013-04-08 Vladimir Serbinenko <phcoder@gmail.com>
6927
6928 * grub-core/normal/term.c: Few more fixes for menu entry editor
6929 rendering.
6930 Reported by: Andrey Borzenkov <arvidjaar@gmail.com>
6931
a3216068
VS
69322013-04-07 Vladimir Serbinenko <phcoder@gmail.com>
6933
6934 * grub-core/normal/term.c: Few more fixes for menu entry editor
6935 rendering.
6936 Reported by: Andrey Borzenkov <arvidjaar@gmail.com>
6937
21026747
AB
69382013-04-06 Andrey Borzenkov <arvidjaar@gmail.com>
6939
6940 * conf/Makefile.extra-dist (EXTRA_DIST): Add
6941 grub-core/lib/libgcrypt/src/gcrypt.h.in and util/import_gcrypth.sed.
6942
59624ca8
AB
69432013-04-06 Andrey Borzenkov <arvidjaar@gmail.com>
6944
6945 * util/grub-install_header: Use @PACKAGE@.mo in message catalog name
6946 instead of hardcoding grub.mo.
6947
1f44478c
FN
69482013-04-05 Fedora Ninjas <grub2-owner@fedoraproject.org>
6949
6950 * util/grub.d/30_os-prober.in: Support btrrfs linux-prober extensions.
6951
eeada7b1
VS
69522013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
6953
6954 Use GRUB_PROPERLY_ALIGNED_ARRAY in grub-core/disk/cryptodisk.c and
6955 grub-core/disk/geli.c.
6956
132867de
VS
69572013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
6958
6959 * util/grub-mkfont.c: Prefer enum to #define.
6960
de73de17
VS
69612013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
6962
6963 * grub-core/commands/acpi.c: Use sizeof rather than hardcoding the size.
6964
1865baa7
VS
69652013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
6966
6967 Replace 8 with GRUB_CHAR_BIT in several places when appropriate.
6968
ce7d92a9
VS
69692013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
6970
6971 Add new defines GRUB_RSDP_SIGNATURE_SIZE and GRUB_RSDP_SIGNATURE.
6972
52eab656
VS
69732013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
6974
6975 * grub-core/commands/verify.c: Use GRUB_CHAR_BIT.
6976
98b23b95
VS
69772013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
6978
6979 * include/grub/bsdlabel.h: Use enums.
6980
0467a5dd
VS
69812013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
6982
6983 Move GRUB_CHAR_BIT to types.h.
6984
16cc9f03
AB
69852013-04-04 Andrey Borzenkov <arvidjaar@gmail.com>
6986
6987 * docs/grub.texi: Document more user commands.
6988
3152aecb
AB
69892013-04-04 Andrey Borzenkov <arvidjaar@gmail.com>
6990
6991 * docs/grub.texi: Document menuentry --id option.
6992
c506fc30
FL
69932013-04-04 Francesco Lavra <francescolavra.fl@gmail.com>
6994
6995 * util/grub-mkimage.c: Introduce new define EFI32_HEADER_SIZE.
6996
aa428238
VS
69972013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
6998
6999 Unify file copying setup across different install scripts. Add
7000 options for performing partial install.
7001
efe0cdda
PJ
70022013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
70032013-04-04 Peter Jones <pjones@redhat.com>
7004
7005 * grub-core/disk/efi/efidisk.c: Handle partitions on non-512B disks.
7006
f75835bd
VS
70072013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
7008
7009 Use TSC as a possible time source on i386-ieee1275.
7010
2cd5ce6c
VS
70112013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
7012
7013 * grub-core/bus/usb/usbtrans.c (grub_usb_bulk_readwrite_packetize):
7014 Init err.
7015
c9625630
VS
70162013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
7017
7018 * util/grub-setup.c (setup): Handle some corner cases.
7019
be008941
VS
70202013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
7021
7022 * grub-core/lib/posix_wrap/locale.h [GRUB_UTIL]: Include host locale.h.
7023
1a78d573
VS
70242013-04-03 Vladimir Serbinenko <phcoder@gmail.com>
7025
7026 * grub-core/commands/verify.c: Save verified file to avoid it being
7027 tampered with after verification was done.
7028
db8ff59f
VS
70292013-04-03 Vladimir Serbinenko <phcoder@gmail.com>
7030
7031 * grub-core/term/i386/pc/console.c (grub_console_getwh): Decrease
7032 reported width by one to compensate for curesor algorithm problem.
7033
91bf46b1
VS
70342013-04-03 Vladimir Serbinenko <phcoder@gmail.com>
7035
7036 Fix screen corruption in menu entry editor and simplify the code
7037 flow while on it.
7038
a7b1d693
AB
70392013-04-03 Andrey Borzenkov <arvidjaar@gmail.com>
7040
7041 * util/grub-mount.c (fuse_init): Return error if fuse_main
7042 failed.
7043
31df9ad8
FL
70442013-04-03 Francesco Lavra <francescolavra.fl@gmail.com>
7045
7046 * include/grub/elf.h: Add missing ARM relocation codes and fix
7047 existing ones.
7048
07f392eb
VT
70492013-04-03 Vladimir Testov <vladimir.testov@rosalab.ru>
7050
7051 * grub-core/gfxmenu/gui_progress_bar.c: Handle padding sizes.
7052
9efd73ec 70532013-04-03 Vladimir Testov <vladimir.testov@rosalab.ru>
c3578acf
VT
70542013-04-03 Vladimir Serbinenko <phcoder@gmail.com>
7055
7056 * grub-core/gfxmenu/gui_circular_progress.c: Take both width and height
7057 into account when calculating radius.
7058
70592013-04-03 Vladimir Testov <vladimir.testov@rosalab.ru>
9efd73ec
VT
7060
7061 * grub-core/gfxmenu/view.c: Fix off-by-one error.
7062
4985ddaa
VT
70632013-04-03 Vladimir Testov <vladimir.testov@rosalab.ru>
7064
7065 * grub-core/gfxmenu/gui_circular_progress.c: Fix off-by-one error.
7066
8c3635ff
RS
70672013-04-01 Radosław Szymczyszyn <lavrin@gmail.com>
7068
7069 * grub-core/partmap/apple.c (apple_partition_map_iterate): Add
7070 missing closing bracket.
7071
74a35e69
RS
70722013-04-01 Radosław Szymczyszyn <lavrin@gmail.com>
7073
7074 * INSTALL: Mention xorriso requirement.
7075
40f1c000
AB
70762013-03-31 Andrey Borzenkov <arvidjaar@gmail.com>
7077
7078 * grub-core/commands/verify.c: Fix hash algorithms values for
7079 the first three hashes - they start with 1, not with 0.
7080
e75fdee4
VS
70812013-03-26 Vladimir Serbinenko <phcoder@gmail.com>
7082
7083 * grub-core/kern/efi/mm.c (grub_efi_finish_boot_services):
7084 Try terminating EFI services several times due to quirks in some
7085 implementations.
7086
33028f4c
CW
70872013-03-26 Colin Watson <cjwatson@ubuntu.com>
7088
7089 * grub-core/commands/acpihalt.c (skip_ext_op): Add support for
7090 skipping Event, Device, Processor, PowerRes, ThermalZone, and
7091 BankField extended opcodes.
7092 (get_sleep_type): Add minimal scope handling (just enough to
7093 handle setting the scope to the root path).
7094 (grub_acpi_halt): Parse any SSDTs as well as the DSDT.
7095 * include/grub/acpi.h: Add enumeration values for Event, Device,
7096 Processor, PowerRes, ThermalZone, and BankField extended opcodes.
7097
33871a10
VT
70982013-03-26 Vladimir Testov <vladimir.testov@rosalab.ru>
7099
7100 * grub-core/gfxmenu/font.c (grub_font_get_string_width): Fix
7101 memory leak.
7102
8990963a
VS
71032013-03-25 Vladimir Serbinenko <phcoder@gmail.com>
7104
7105 * grub-core/disk/ahci.c: Give more time for AHCI request.
7106
daae8f9e
VS
71072013-03-25 Vladimir Serbinenko <phcoder@gmail.com>
7108
7109 * grub-core/normal/menu.c: Wait if there were errors shown at "boot"
7110 command.
7111
6a7fb94b
VS
71122013-03-25 Vladimir Serbinenko <phcoder@gmail.com>
7113
7114 Replace the region at 0 from coreboot tables to available in BSD
7115 memory map.
7116
ff99babd
VS
71172013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
7118
7119 * util/grub.d/20_linux_xen.in: Automatically add no-real-mode edd=off on
7120 non-BIOS platforms.
7121
30d6b1b2
VS
71222013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
7123
7124 * grub-core/Makefile.core.def (vga): Disable on coreboot and multiboot
7125 platforms.
7126
6ccd0b31
VS
71272013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
7128
7129 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Fix
7130 handling of multi-device filesystems.
7131
23c9cc04
VS
71322013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
7133
7134 * grub-core/Makefile.core.def (vbe): Disable on coreboot and multiboot
7135 platforms.
7136
ce50dbd7
VS
71372013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
7138
7139 Add new 'proc' filesystem framework and put luks_script into it.
7140
d975e8d5
VS
71412013-03-23 Vladimir Serbinenko <phcoder@gmail.com>
7142
7143 * grub-core/term/at_keyboard.c: Increase robustness on coreboot
7144 and qemu.
7145
e73ba5e8
VS
71462013-03-22 Vladimir Serbinenko <phcoder@gmail.com>
7147
7148 * grub-core/fs/zfs/zfs.c: Fix incorrect handling of special volumes.
7149
92750e4c
VS
71502013-03-22 Vladimir Serbinenko <phcoder@gmail.com>
7151
7152 Add ability to generate newc additions on runtime.
7153
0ec45a68
VS
71542013-03-22 Vladimir Serbinenko <phcoder@gmail.com>
7155
7156 * grub-core/commands/i386/coreboot/cbls.c: Fix typos and wrong
7157 description.
7158
320abd43
VS
71592013-03-21 Vladimir Serbinenko <phcoder@gmail.com>
7160
7161 * po/POTFILES.in: Regenerate.
7162
d7a6506e
VS
71632013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
7164
7165 * grub-core/commands/verify.c (hashes): Add several hashes
7166 from the spec.
7167
8fe05def
VS
71682013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
7169
7170 Slight improve in USB-related boot-time checkpoints.
7171
524e2766
VS
71722013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
7173
7174 * grub-core/commands/boottime.c: Fix copyright header.
7175
cc19857a
VS
71762013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
7177
7178 New commands cbmemc, lscoreboot, coreboot_boottime to inspect
7179 coreboot tables content. Support for cbmemc.
7180
ef8810e9
VS
71812013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
7182
7183 Fix a conflict between ports structures with 2 controllers of
7184 same kind.
7185
e9dabdfa
VS
71862013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
7187
7188 * include/grub/boottime.h: Add missing file.
7189
f6df57d2
VS
71902013-03-19 Vladimir Serbinenko <phcoder@gmail.com>
7191
7192 Initialize USB ports in parallel to speed-up boot.
7193
d745dda7
VS
71942013-03-19 Vladimir Serbinenko <phcoder@gmail.com>
7195
7196 Fix USB devices not being detected when requested
7197 due to delayed attach.
7198
e5a2dd7b
VS
71992013-03-19 Vladimir Serbinenko <phcoder@gmail.com>
7200
e744219b
VS
7201 Implement boot time analysis framework.
7202
72032013-03-19 Vladimir Serbinenko <phcoder@gmail.com>
7204
7205 Remove get_endpoint_descriptor and change all functions needing
e5a2dd7b
VS
7206 descriptor to just receive it as argument rather than endpoint
7207 address.
7208
5dd6f587
VS
72092013-03-19 Aleš Nesrsta <starous@volny.cz>
7210
7211 Better estimate the maximum USB transfer size.
7212
2f1071d5
VS
72132013-03-17 Vladimir Serbinenko <phcoder@gmail.com>
7214
7215 Resend a packet if we got the wrong buffer in status.
7216
46ecfc49
VS
72172013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7218
7219 * grub-core/loader/i386/bsdXX.c (grub_openbsd_find_ramdisk): Use
7220 multiplication rather than division.
7221
ea811130
VS
72222013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7223
7224 * grub-core/lib/arg.c (grub_arg_list_alloc): Use shifts rather
7225 than divisions.
7226
d2789cf0
VS
72272013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7228
7229 * grub-core/commands/verify.c (grub_verify_signature): Use unsigned
7230 operations to have intended shifts and not divisions.
7231
a9c94590
VS
72322013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7233
7234 * grub-core/loader/i386/pc/plan9.c (fill_disk): Fix types to use
7235 intended shifts rather than division.
7236
84cfe81b
VS
72372013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7238
7239 * include/grub/datetime.h (grub_datetime2unixtime): Fix unixtime
7240 computation for some years before epoch. Avode confusing division
7241 while on it.
7242
21344ef6
VS
72432013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7244
7245 * grub-core/video/i386/pc/vbe.c
7246 (grub_video_vbe_print_adapter_specific_info): Replace division by
7247 shifts.
7248
3f2b4d1a
VS
72492013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7250
7251 Adjust types in gdb module to have intended unsigned shifts rather than
7252 signed divisions.
7253
3dac5878
VS
72542013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7255
7256 * grub-core/fs/hfs.c (grub_hfs_read_file): Avoid divmod64 since the
7257 maximum size is 4G - 1 on hfs
7258
5341c0fb
VS
72592013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7260
7261 Avoid costly 64-bit division in grub_get_time_ms on most platforms.
7262
fc3ff2a2
VS
72632013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7264
7265 * grub-core/fs/fshelp.c (grub_fshelp_log2blksize): Remove now unused
7266 function.
7267
81455e8e
AB
72682013-03-07 Andrey Borzenkov <arvidjaar@gmail.com>
7269
7270 * grub-core/fs/iso9660.c (add_part): Remove always_inline attribute
7271 causing gcc error with gcc 4.7.1.
7272
efd4f117
NZ
72732013-03-07 Nickolai Zeldovich <nickolai@csail.mit.edu>
7274
7275 * grub-core/commands/acpi.c (grub_acpi_create_ebda): Don't
7276 dereference null pointer. While the code is technically correct, gcc
7277 may eliminate a null check if pointer is already dereferenced.
7278
e11645f4
NZ
72792013-03-07 Nickolai Zeldovich <nickolai@csail.mit.edu>
7280
7281 * grub-core/normal/crypto.c (read_crypto_list): Fix incorrect
7282 OOM check.
7283 * grub-core/normal/term.c (read_terminal_list): Likewise.
7284
77468368
VS
72852013-03-07 Vladimir Serbinenko <phcoder@gmail.com>
7286
7287 Lift up core size limits on some platforms. Fix potential memory
7288 corruption with big core on small memory systems. Document remaining
7289 limits.
7290
f6b58fe5
VS
72912013-03-05 Vladimir Serbinenko <phcoder@gmail.com>
7292
7293 * grub-core/term/terminfo.c (grub_terminfo_cls): Issue an explicit
7294 gotoxy to 0,0.
7295
19ce697d
VS
72962013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
7297
7298 Remove all trampoline support. Add -Wtrampolines when
7299 present. Remove symbols used for trampolines to make
7300 link fail if trampolines are present.
7301
73b5d90f
VS
73022013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
7303
7304 * grub-core/script/execute.c (grub_script_arglist_to_argv): Move
7305 append out of its parent.
7306
cb758e96
VS
73072013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
7308
7309 * grub-core/commands/regexp.c (set_matches): Move setvar out of its
7310 parent.
7311
3188131f
VS
73122013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
7313
7314 * grub-core/kern/env.c, include/grub/env.h: Change iterator through
7315 all vars to a macro. All users updated.
7316
e42b2514
VS
73172013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
7318
7319 * grub-core/disk/ieee1275/nand.c: Fix compilation on
7320 i386-ieee1275.
7321
83e1a1a1
VS
73222013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7323
7324 * include/grub/cmos.h: Handle high CMOS addresses on sparc64.
7325
1d5a880f
VS
73262013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7327
7328 * include/grub/mips/loongson/cmos.h: Fix high CMOS addresses.
7329
6e4146c4
VS
73302013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7331
7332 Move to more hookless approach in IEEE1275 devices handling.
7333
99fcda8a
VS
73342013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7335
7336 * grub-core/kern/term.c (grub_term_normal_color),
7337 (grub_term_highlight_color): Add back lost defaults.
7338
73bf57e2
VS
73392013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7340
7341 Make elfload not use hooks. Opt for flags and iterators instead.
7342
7f8c105f
VS
73432013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7344
7345 * grub-core/lib/ia64/longjmp.S: Fix the name of longjmp function.
7346 * grub-core/lib/ia64/setjmp.S: Fix the name of setjmp function.
7347
396d4091
VS
73482013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7349
7350 * grub-core/script/execute.c (gettext_append): Remove nested functions.
7351
73522013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7353
7354 * grub-core/normal/charset.c (grub_bidi_logical_to_visual): Add
7355 hook pass-through parameter. All users updated and unnested.
7356
74a27421
VS
73572013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7358
7359 * grub-core/commands/loadenv.c (grub_cmd_list_env): Move print_var
7360 out of its parent.
7361
b46d4213
VS
73622013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7363
7364 * grub-core/fs/hfs.c: Remove nested functions.
7365
e114c3cc
VS
73662013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
7367
7368 * grub-core/fs/hfsplus.c (grub_hfsplus_btree_iterate_node): Pass
7369 the context through.
7370 (grub_hfsplus_iterate_dir): Move nested function out of its parent.
7371
f9b7d780
VS
73722013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
7373
7374 * util/grub-editenv.c (list_variables): Move print_var out of its
7375 parent.
7376
ca9c2608
VS
73772013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
7378
7379 * grub-core/kern/emu/hostdisk.c (read_device_map): Remove nested
7380 function.
7381
5d983f5f
VS
73822013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
7383
7384 * grub-core/gentrigtables.c: Make tables const.
7385
3056d3e7
VS
73862013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
7387
7388 Remove nested functions from videoinfo iterators.
7389
e2303774
VS
73902013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
7391
7392 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Fix compilation
7393 for 64-bit platforms.
7394
f42e3a2f
VS
73952013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
7396
7397 * grub-core/disk/efi/efidisk.c: Transform iterate_child_devices into
7398 a FOR_CHILDREN macro.
7399
be174e5e
VS
74002013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
7401
7402 * grub-core/kern/main.c (grub_set_prefix_and_root): Strip trailing
7403 platform from firmware path.
7404
0789b672
VS
74052013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
7406
7407 Enable linux16 on non-BIOS systems for i.a. memtest.
7408
7409 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Handle hole at 0
7410 correctly.
7411 * grub-core/Makefile.core.def (linux16): Enable on all x86 flavours.
7412
005a9c32
VS
74132013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
7414
7415 * grub-core/kern/i386/coreboot/mmap.c (grub_linuxbios_table_iterate):
7416 Fix end of table condition.
7417
ff2b3cd9
VS
74182013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
7419
7420 * grub-core/lib/arg.c (grub_arg_show_help): Move showargs
7421 out of its parent.
7422
4fc40ff8
VS
74232013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
7424
7425 * grub-core/fs/jfs.c: Remove nested functions.
7426
be42d97a
VS
74272013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
7428
7429 * grub-core/fs/minix.c: Remove nested functions.
7430
99373ce4
VS
74312013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
7432
7433 * grub-core/fs/iso9660.c: Remove nested functions.
7434
5aec2afe
VS
74352013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
7436
7437 * grub-core/commands/parttool.c (grub_cmd_parttool): Move show_help out
7438 of parent function.
7439
6c69e691
VS
74402013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
7441
7442 * util/grub-fstest.c: Remove nested functions.
7443
43c91882
VS
74442013-02-27 Vladimir Serbinenko <phcoder@gmail.com>
7445
7446 * grub-core/loader/machoXX.c: Remove nested functions.
7447
4eb8b756
CW
74482013-02-27 Colin Watson <cjwatson@ubuntu.com>
7449
7450 Remove nested functions from disk and file read hooks.
7451
7452 * include/grub/disk.h (grub_disk_read_hook_t): New type.
7453 (struct grub_disk): Add read_hook_data member.
7454 * include/grub/file.h (struct grub_file): Likewise.
7455 * include/grub/fshelp.h (grub_fshelp_read_file): Add read_hook_data
7456 argument.
7457
7458 Update all callers.
7459
df6da5a5
AB
74602012-02-27 Andrey Borzenkov <arvidjaar@gmail.com>
7461
7462 * grub-core/partmap/msdos.c (grub_partition_msdos_iterate):
7463 Fix off by one error in enumerating extended partitions.
7464
21aecde5
AB
74652013-02-26 Andrey Borzenkov <arvidjaar@gmail.com>
7466
7467 * grub-core/disk/efi/efidisk.c(grub_efidisk_get_device_name): Fix
7468 memory leak if device name is not found.
7469
f1a19118
AB
74702013-02-25 Andrey Borzenkov <arvidjaar@gmail.com>
7471
7472 * grub-core/normal/menu_entry.c (update_screen): remove
7473 unused variable `off' which caused scroll down arrow to be always shown.
7474
958bfd20
AB
74752013-02-25 Andrey Borzenkov <arvidjaar@gmail.com>
7476
7477 * grub-core/normal/menu_entry.c (insert_string): fix off by one
7478 access to unallocated memory.
7479
b7b78edb
AB
74802013-02-25 Andrey Borzenkov <arvidjaar@gmail.com>
7481
7482 * Makefile.util.def: Add partmap/msdos.c to common library.
7483 * include/grub/msdos_partition.h: Add GRUB_PC_PARTITION_TYPE_LDM
7484 * grub-core/disk/ldm.c: Check for existence of
7485 GRUB_PC_PARTITION_TYPE_LDM.
7486
28d468d6
VS
74872013-02-25 Vladimir Serbinenko <phcoder@gmail.com>
7488
7489 * grub-core/normal/misc.c (grub_normal_print_device_info): Use KiB to display
7490 sizes and display sector size.
7491
d55ffb02
VS
74922013-02-24 Vladimir Serbinenko <phcoder@gmail.com>
7493
7494 Implement new command cmosdump.
7495
b5ea6ce0
VS
74962013-02-19 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
7497
7498 Support Openfirmware disks with non-512B sectors.
7499
7500 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_open): Get the block
7501 size of the disk.
7502 * (grub_ofdisk_get_block_size): New function.
7503 * (grub_ofdisk_prepare): Use the correct block size.
7504 * (grub_ofdisk_read): Likewise.
7505 * (grub_ofdisk_write): Likewise.
7506 * include/grub/ieee1275/ofdisk.h (grub_ofdisk_get_block_size):
7507 New proto.
7508
cc0e476f
VS
75092013-02-06 Vladimir Serbinenko <phcoder@gmail.com>
7510
7511 * grub-core/commands/lsacpi.c: Fix types on 64-bit platform.
7512
c5dbdc33
VS
75132013-02-04 Vladimir Serbinenko <phcoder@gmail.com>
7514
7515 * grub-core/disk/cryptodisk.c (grub_cryptodisk_scan_device): Don't stop
7516 on first error.
7517
3f078c0f
VS
75182013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
7519
7520 * grub-core/fs/fshelp.c (find_file): Set oldnode to zero after
7521 freeing it.
7522
66a93674
VS
75232013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
7524
7525 Implement USBDebug (full USB stack variant).
7526
c9f0c134
VS
75272013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
7528
7529 * grub-core/commands/lsacpi.c: Show more info. Hide some boring parts
7530 unless they have unexpected values.
7531
cfe1288b
VS
75322013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
7533
7534 * grub-core/bus/usb/usb.c (grub_usb_device_attach): Add missing
7535 grub_print_error.
7536
e42b9969
VS
75372013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
7538
7539 * grub-core/bus/usb/serial/common.c (grub_usbserial_attach): Fix missing
7540 zero-out of port structure.
7541
cf94fd62
VS
75422013-01-30 Vladimir Serbinenko <phcoder@gmail.com>
7543
7544 * grub-core/fs/xfs.c (grub_xfs_read_block): Fix computation in presence
7545 of extended attributes.
7546
f81ef4b5
AB
75472013-01-27 Andrey Borzenkov <arvidjaar@gmail.com>
7548
7549 * util/grub-install.in: change misleading comment about
7550 device.map creation
7551
af18fdb4
VS
75522013-01-27 Vladimir Serbinenko <phcoder@gmail.com>
7553
7554 * grub-core/normal/menu_text.c (grub_menu_init_page): Fix behaviour
7555 when menu highlight color isn't set.
7556
08bcec50
M
75572013-01-27 C. Masloch <pushbx@38.de>
7558
7559 Improve FreeDOS direct loading support compatibility.
7560
7561 * include/grub/i386/relocator.h (grub_relocator16_state):
7562 New member ebp.
7563 * grub-core/lib/i386/relocator.c (grub_relocator16_ebp): New extern
7564 variable.
7565 (grub_relocator16_boot): Handle %ebp.
7566 * grub-core/lib/i386/relocator16.S: Likewise.
7567 * grub-core/loader/i386/pc/freedos.c:
7568 Load BPB to pass kernel which partition to load from.
7569 Check that kernel file is not too large.
7570 Set register dl to BIOS unit number as well.
7571
7782b8a6
CW
75722013-01-22 Colin Watson <cjwatson@ubuntu.com>
7573
7574 * util/grub-reboot.in (usage): Document the need for
7575 GRUB_DEFAULT=saved.
7576 * util/grub-set-default.in (usage): Likewise.
7577 Reported by: Brian Candler. Fixes Ubuntu bug #1102925.
7578
e661c180
VS
75792013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
7580
7581 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h: Include sys/types.h rather
7582 than defining WORDS_BIGENDIAN manually.
7583
1c22ca9a
VS
75842013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
7585
7586 * include/grub/kernel.h (FOR_MODULES): Adjust to preserve alignment
7587 invariants.
7588
d44892fe
CW
75892013-01-21 Colin Watson <cjwatson@ubuntu.com>
7590
7591 * grub-core/font/font.c (blit_comb: do_blit): Make static instead of
7592 nested.
7593 (blit_comb: add_device_width): Likewise.
7594
5fdbaed1
CW
75952013-01-21 Colin Watson <cjwatson@ubuntu.com>
7596
7597 Remove nested functions from USB iterators.
7598
7599 * include/grub/usb.h (grub_usb_iterate_hook_t): New type.
7600 (grub_usb_controller_iterate_hook_t): Likewise.
7601 (grub_usb_iterate): Add hook_data argument.
7602 (grub_usb_controller_iterate): Likewise.
7603 (struct grub_usb_controller_dev.iterate): Likewise.
7604
7605 Update all implementations and callers.
7606
4250985a
VS
76072013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
7608
7609 * grub-core/normal/term.c (print_ucs4_terminal): Don't output right
7610 margin when not needed.
7611
7d8848f3
VS
76122013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
7613
bc136973 7614 Make color variables global instead of it being per-terminal.
7d8848f3
VS
7615
76162013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
7617
bc136973
VS
7618 * grub-core/commands/ls.c (grub_ls_print_devices): Add missing
7619 asterisk.
7d8848f3 7620
ed12a003
CW
76212013-01-21 Colin Watson <cjwatson@ubuntu.com>
7622
7623 Fix powerpc and sparc64 build failures caused by un-nesting memory
7624 map iterators.
7625
6a0db449
CW
76262013-01-21 Colin Watson <cjwatson@ubuntu.com>
7627
7628 * grub-core/disk/arc/arcdisk.c (grub_arcdisk_iterate): Fix
7629 parameter declarations.
7630
ccd86b21
VS
76312013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
7632
7633 * grub-core/commands/lsmmap.c: Fix unused variable on emu.
7634
822b726b
VS
76352013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
7636
7637 Improve spkmomdem reliability by adding a separator between bytes.
7638
115c2cc1
CW
76392013-01-21 Colin Watson <cjwatson@ubuntu.com>
7640
7641 * grub-core/partmap/msdos.c (embed_signatures): Add the signature of
7642 an Acer registration utility with several sightings in the wild.
7643 Reported by: Rickard Westman. Fixes Ubuntu bug #987022.
7644
fc524edf
CW
76452013-01-21 Colin Watson <cjwatson@ubuntu.com>
7646
7647 Remove nested functions from filesystem directory iterators.
7648
7649 * include/grub/fs.h (grub_fs_dir_hook_t): New type.
7650 (struct grub_fs.dir): Add hook_data argument.
7651
7652 Update all implementations and callers.
7653
53d3e4e3
CW
76542013-01-21 Colin Watson <cjwatson@ubuntu.com>
7655
7656 * docs/grub.texi (Multi-boot manual config): Fix typo for
7657 "recommended".
7658
c821711f
LL
76592013-01-20 Leif Lindholm <leif.lindholm@arm.com>
7660
7661 * util/grub-mkimage.c (main): Postpone freeing arguments.output
7662 until after its use in generate_image.
7663
6a0debbd
CW
76642013-01-20 Colin Watson <cjwatson@ubuntu.com>
7665
7666 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Don't add the
7667 initrd size to addr_min, since the initrd will be allocated after
7668 this address.
7669
f41e08db
AB
76702013-01-20 Andrey Borzenkov <arvidjaar@gmail.com>
7671
7672 * conf/Makefile.common: Fix autogen rules to pass definition
7673 files on stdin; Makefile.util.am needs Makefile.utilgcry.def
7674
77529e0f
LL
76752013-01-20 Leif Lindholm <leif.lindholm@arm.com>
7676
7677 * include/grub/elf.h: Update ARM definitions based on binutils.
7678
b879aa7b
VS
76792013-01-20 Aleš Nesrsta <starous@volny.cz>
7680
7681 Split long USB transfers into short ones.
7682
8eb8284d
AB
76832013-01-20 Andrey Borzenkov <arvidjaar@gmail.com>
7684
7685 * docs/grub.texi (Simple configuration): Clarify GRUB_HIDDEN_TIMEOUT
7686 is interrupted by ESC.
7687
08dad2dc
VS
76882013-01-20 Vladimir Serbinenko <phcoder@gmail.com>
7689
7690 * util/grub-script-check.c (main): Uniform the error message.
7691
6c724b85
CW
76922013-01-20 Colin Watson <cjwatson@ubuntu.com>
7693
7694 Remove nested functions from ELF iterators.
7695
25239370
CW
76962013-01-20 Colin Watson <cjwatson@ubuntu.com>
7697
7698 Remove nested functions from device iterators.
7699
7700 * include/grub/arc/arc.h (grub_arc_iterate_devs_hook_t): New type.
7701 (grub_arc_iterate_devs): Add hook_data argument.
7702 * include/grub/ata.h (grub_ata_dev_iterate_hook_t): New type.
7703 (struct grub_ata_dev.iterate): Add hook_data argument.
7704 * include/grub/device.h (grub_device_iterate_hook_t): New type.
7705 (grub_device_iterate): Add hook_data argument.
7706 * include/grub/disk.h (grub_disk_dev_iterate_hook_t): New type.
7707 (struct grub_disk_dev.iterate): Add hook_data argument.
7708 (grub_disk_dev_iterate): Likewise.
7709 * include/grub/gpt_partition.h (grub_gpt_partition_map_iterate):
7710 Likewise.
7711 * include/grub/msdos_partition.h (grub_partition_msdos_iterate):
7712 Likewise.
7713 * include/grub/partition.h (grub_partition_iterate_hook_t): New
7714 type.
7715 (struct grub_partition_map.iterate): Add hook_data argument.
7716 (grub_partition_iterate): Likewise.
7717 * include/grub/scsi.h (grub_scsi_dev_iterate_hook_t): New type.
7718 (struct grub_scsi_dev.iterate): Add hook_data argument.
7719
7720 Update all callers.
7721
6c0314d6
CW
77222013-01-20 Colin Watson <cjwatson@ubuntu.com>
7723
7724 Fix typos for "developer" and "development".
7725
600dc5f1
VS
77262013-01-18 Vladimir Serbinenko <phcoder@gmail.com>
7727
7728 Add license header to spkmodem-recv.c.
7729
17334a6b
VS
77302013-01-17 Vladimir Serbinenko <phcoder@gmail.com>
7731
7732 Rewrite spkmodem to use PIT for timing. Double the speed.
7733
7d462559
VS
77342013-01-16 Vladimir Serbinenko <phcoder@gmail.com>
7735
7736 Add new command pcidump.
7737
b78d6c32
VS
77382013-01-16 Vladimir Serbinenko <phcoder@gmail.com>
7739
7740 New terminal outputs using serial: morse and spkmodem.
7741
34f71cb8
VS
77422013-01-16 Vladimir Serbinenko <phcoder@gmail.com>
7743
7744 Improve bidi handling in entry editor.
7745
4542e71b
VS
77462013-01-16 Vladimir Serbinenko <phcoder@gmail.com>
7747
7748 * grub-core/script/lexer.c (grub_script_lexer_init): Rename getline
7749 argument to prevent name collision.
7750
09fd6d82
CW
77512013-01-15 Colin Watson <cjwatson@ubuntu.com>
7752
7753 Remove nested functions from script reading and parsing.
7754
7755 * grub-core/kern/parser.c (grub_parser_split_cmdline): Add
7756 getline_data argument, passed to getline.
7757 * grub-core/kern/rescue_parser.c (grub_rescue_parse_line): Add
7758 getline_data argument, passed to grub_parser_split_cmdline.
7759 * grub-core/script/lexer.c (grub_script_lexer_yywrap): Pass
7760 lexerstate->getline_data to lexerstate->getline.
7761 (grub_script_lexer_init): Add getline_data argument, saved in
7762 lexerstate->getline_data.
7763 * grub-core/script/main.c (grub_normal_parse_line): Add getline_data
7764 argument, passed to grub_script_parse.
7765 * grub-core/script/script.c (grub_script_parse): Add getline_data
7766 argument, passed to grub_script_lexer_init.
7767 * include/grub/parser.h (grub_parser_split_cmdline): Update
7768 prototype. Update all callers to pass appropriate getline data.
7769 (struct grub_parser.parse_line): Likewise.
7770 (grub_rescue_parse_line): Likewise.
7771 * include/grub/reader.h (grub_reader_getline_t): Add void *
7772 argument.
7773 * include/grub/script_sh.h (struct grub_lexer_param): Add
7774 getline_data member.
7775 (grub_script_parse): Update prototype. Update all callers to pass
7776 appropriate getline data.
7777 (grub_script_lexer_init): Likewise.
7778 (grub_normal_parse_line): Likewise.
7779
7780 * grub-core/commands/legacycfg.c (legacy_file_getline): Add unused
7781 data argument.
7782 * grub-core/kern/parser.c (grub_parser_execute: getline): Make
7783 static instead of nested. Rename to ...
7784 (grub_parser_execute_getline): ... this.
7785 * grub-core/kern/rescue_reader.c (grub_rescue_read_line): Add unused
7786 data argument.
7787 * grub-core/normal/main.c (read_config_file: getline): Make static
7788 instead of nested. Rename to ...
7789 (read_config_file_getline): ... this.
7790 (grub_normal_read_line): Add unused data argument.
7791 * grub-core/script/execute.c (grub_script_execute_sourcecode:
7792 getline): Make static instead of nested. Rename to ...
7793 (grub_script_execute_sourcecode_getline): ... this.
7794 * util/grub-script-check.c (main: get_config_line): Make static
7795 instead of nested.
7796
d0d4b8a0
CW
77972013-01-15 Colin Watson <cjwatson@ubuntu.com>
7798
7799 Remove nested functions from memory map iterators.
7800
7801 * grub-core/efiemu/mm.c (grub_efiemu_mmap_iterate): Add hook_data
7802 argument, passed to hook.
7803 * grub-core/kern/i386/coreboot/mmap.c
7804 (grub_linuxbios_table_iterate): Likewise.
7805 (grub_machine_mmap_iterate: iterate_linuxbios_table): Make static
7806 instead of nested.
7807 (grub_machine_mmap_iterate): Add hook_data argument.
7808 * grub-core/kern/i386/multiboot_mmap.c (grub_machine_mmap_iterate):
7809 Add hook_data argument, passed to hook.
7810 * grub-core/kern/i386/pc/mmap.c (grub_machine_mmap_iterate):
7811 Likewise.
7812 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_iterate):
7813 Likewise.
7814 * grub-core/kern/ieee1275/mmap.c (grub_machine_mmap_iterate):
7815 Likewise.
7816 * grub-core/kern/mips/arc/init.c (grub_machine_mmap_iterate):
7817 Likewise.
7818 * grub-core/kern/mips/loongson/init.c (grub_machine_mmap_iterate):
7819 Likewise.
7820 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_mmap_iterate):
7821 Likewise.
7822 * grub-core/mmap/efi/mmap.c (grub_efi_mmap_iterate): Likewise.
7823 (grub_machine_mmap_iterate): Likewise.
7824 * grub-core/mmap/mmap.c (grub_mmap_iterate): Likewise.
7825 * include/grub/efiemu/efiemu.h (grub_efiemu_mmap_iterate): Update
7826 prototype.
7827 * include/grub/memory.h (grub_memory_hook_t): Add data argument.
7828 Remove NESTED_FUNC_ATTR from here and from all users.
7829 (grub_mmap_iterate): Update prototype.
7830 (grub_efi_mmap_iterate): Update prototype. Update all callers to
7831 pass appropriate hook data.
7832 (grub_machine_mmap_iterate): Likewise.
7833
7834 * grub-core/commands/acpi.c (grub_acpi_create_ebda: find_hook): Make
7835 static instead of nested.
7836 * grub-core/commands/lsmmap.c (grub_cmd_lsmmap: hook): Likewise.
7837 Rename to ...
7838 (lsmmap_hook): ... this.
7839 * grub-core/efiemu/mm.c (grub_efiemu_mmap_init: bounds_hook):
7840 Likewise.
7841 (grub_efiemu_mmap_fill: fill_hook): Likewise.
7842 * grub-core/kern/i386/coreboot/init.c (grub_machine_init:
7843 heap_init): Likewise.
7844 * grub-core/kern/i386/pc/init.c (grub_machine_init: hook): Likewise.
7845 Rename to ...
7846 (mmap_iterate_hook): ... this.
7847 * grub-core/kern/ieee1275/init.c (grub_claim_heap: heap_init):
7848 Likewise.
7849 * grub-core/lib/ieee1275/relocator.c
7850 (grub_relocator_firmware_get_max_events: count): Likewise.
7851 (grub_relocator_firmware_fill_events: fill): Likewise. Rename
7852 to ...
7853 (grub_relocator_firmware_fill_events_iter): ... this.
7854 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align:
7855 hook): Likewise. Rename to ...
7856 (grub_relocator_alloc_chunk_align_iter): ... this.
7857 * grub-core/loader/i386/bsd.c (generate_e820_mmap: hook): Likewise.
7858 Rename to ...
7859 (generate_e820_mmap_iter): ... this.
7860 * grub-core/loader/i386/linux.c (find_mmap_size: hook): Likewise.
7861 Rename to ...
7862 (count_hook): ... this.
7863 (grub_linux_boot: hook): Likewise. Rename to ...
7864 (grub_linux_boot_mmap_find): ... this.
7865 (grub_linux_boot: hook_fill): Likewise. Rename to ...
7866 (grub_linux_boot_mmap_fill): ... this.
7867 * grub-core/loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap:
7868 hook): Likewise. Rename to ...
7869 (grub_fill_multiboot_mmap_iter): ... this.
7870 * grub-core/loader/multiboot.c (grub_get_multiboot_mmap_count:
7871 hook): Likewise. Rename to ...
7872 (count_hook): ... this.
7873 * grub-core/loader/multiboot_mbi2.c (grub_fill_multiboot_mmap:
7874 hook): Likewise. Rename to ...
7875 (grub_fill_multiboot_mmap_iter): ... this.
7876 * grub-core/loader/powerpc/ieee1275/linux.c
7877 (grub_linux_claimmap_iterate: alloc_mem): Likewise.
7878 * grub-core/loader/sparc64/ieee1275/linux.c (alloc_phys: choose):
7879 Likewise. Rename to ...
7880 (alloc_phys_choose): ... this.
7881 (determine_phys_base: get_physbase): Likewise.
7882 * grub-core/mmap/i386/mmap.c (grub_mmap_malign_and_register:
7883 find_hook): Likewise.
7884 * grub-core/mmap/i386/pc/mmap.c (preboot: fill_hook): Likewise.
7885 (malloc_hook: count_hook): Likewise.
7886 * grub-core/mmap/i386/uppermem.c (grub_mmap_get_lower: hook):
7887 Likewise. Rename to ...
7888 (lower_hook): ... this.
7889 (grub_mmap_get_upper: hook): Likewise. Rename to ...
7890 (upper_hook): ... this.
7891 (grub_mmap_get_post64: hook): Likewise. Rename to ...
7892 (post64_hook): ... this.
7893 * grub-core/mmap/mips/uppermem.c (grub_mmap_get_lower: hook):
7894 Likewise. Rename to ...
7895 (lower_hook): ... this.
7896 (grub_mmap_get_upper: hook): Likewise. Rename to ...
7897 (upper_hook): ... this.
7898 * grub-core/mmap/mmap.c (grub_mmap_iterate: count_hook): Likewise.
7899 (grub_mmap_iterate: fill_hook): Likewise.
7900 (fill_mask): Pass addr and mask within a single struct.
7901 (grub_cmd_badram: hook): Make static instead of nested. Rename
7902 to ...
7903 (badram_iter): ... this.
7904 (grub_cmd_cutmem: hook): Likewise. Rename to ...
7905 (cutmem_iter): ... this.
7906
22099030
VS
79072013-01-13 Vladimir Serbinenko <phcoder@gmail.com>
7908
7909 * grub-core/kern/emu/hostdisk.c (read_device_map): Explicitly
7910 delimit path in strings using quotes.
7911 * util/getroot.c (grub_guess_root_devices): Likewise.
7912 (grub_make_system_path_relative_to_its_root): Likewise.
7913 * util/grub-probe.c (probe): Likewise.
7914 * util/ieee1275/ofpath.c (find_obppath): Likewise.
7915 (xrealpath): Likewise.
7916
4a9950ec
VS
79172013-01-13 Vladimir Serbinenko <phcoder@gmail.com>
7918
7919 Fix compilation with older compilers.
7920
7921 * grub-core/Makefile.core.def (mpi): Add mpi-inline.c.
7922 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h: Remove redundant
7923 declarations.
7924 * grub-core/lib/posix_wrap/string.h: Include sys/types.h.
7925 * grub-core/lib/posix_wrap/sys/types.h: Add common types.
7926 * grub-core/lib/xzembed/xz_dec_lzma2.c (dict_put): Replace byte
7927 identifier with b.
7928 * grub-core/lib/xzembed/xz_dec_stream.c (dec_vli): Likewise.
7929 * include/grub/crypto.h: Add type defines.
7930 * util/import_gcrypth.sed: Remove duplicate type defines.
7931
adcc6020
VS
79322013-01-13 Vladimir Serbinenko <phcoder@gmail.com>
7933
7934 New command list_trusted.
7935
7936 * grub-core/commands/verify.c (grub_cmd_list): New function.
7937
a4528937
CW
79382013-01-13 Colin Watson <cjwatson@ubuntu.com>
7939
7940 * util/grub-mkimage.c (generate_image): Fix "size of public key"
7941 info message.
7942
ca3a7446
CW
79432013-01-13 Colin Watson <cjwatson@ubuntu.com>
7944
7945 Remove nested functions from PCI iterators.
7946
7947 * grub-core/bus/pci.c (grub_pci_iterate): Add hook_data argument,
7948 passed to hook. Update all callers to pass appropriate hook data.
7949 * grub-core/bus/emu/pci.c (grub_pci_iterate): Likewise.
7950 * include/grub/pci.h (grub_pci_iteratefunc_t): Add data argument.
7951 Remove NESTED_FUNC_ATTR from here and from all users.
7952 (grub_pci_iterate): Update prototype.
7953 * grub-core/bus/cs5536.c (grub_cs5536_find: hook): Make static
7954 instead of nested. Rename to ...
7955 (grub_cs5536_find_iter): ... this.
7956 * grub-core/kern/efi/mm.c (stop_broadcom: find_card): Likewise.
7957 * grub-core/kern/mips/loongson/init.c (init_pci: set_card):
7958 Likewise.
7959 * grub-core/kern/vga_init.c (grub_qemu_init_cirrus: find_card):
7960 Likewise.
7961 * grub-core/video/bochs.c (grub_video_bochs_setup: find_card):
7962 Likewise.
7963 * grub-core/video/cirrus.c (grub_video_cirrus_setup: find_card):
7964 Likewise.
7965 * grub-core/video/efi_uga.c (find_framebuf: find_card): Likewise.
7966 * grub-core/video/radeon_fuloong2e.c
7967 (grub_video_radeon_fuloong2e_setup: find_card): Likewise.
7968 * grub-core/video/sis315pro.c (grub_video_sis315pro_setup:
7969 find_card): Likewise.
7970 * grub-core/video/sm712.c (grub_video_sm712_setup: find_card):
7971 Likewise.
7972
f8e98fee
VS
79732013-01-12 Vladimir Serbinenko <phcoder@gmail.com>
7974
7975 * grub-core/commands/verify.c: Mark messages for translating.
7976
055b36b6
VS
79772013-01-12 Vladimir Serbinenko <phcoder@gmail.com>
7978
7979 * grub-core/lib/libgcrypt_wrap/mem.c (gcry_x*alloc): Make out of memory
7980 fatal.
7981
f7ff879b
VS
79822013-01-12 Vladimir Serbinenko <phcoder@gmail.com>
7983
7984 * grub-core/lib/libgcrypt_wrap/mem.c (_gcry_log_bug): Make gcrypt bugs
7985 fatal.
7986
79872013-01-12 Vladimir Serbinenko <phcoder@gmail.com>
4d7219f9
VS
7988
7989 * autogen.sh: Do not try to delete nonexistant files.
7990 * util/import_gcrypth.sed: Add some missing header removals.
7991
01323d49
CW
79922013-01-12 Colin Watson <cjwatson@ubuntu.com>
7993
7994 Clean up dangling references to grub-setup.
7995 Fixes Ubuntu bug #1082045.
7996
7997 * docs/grub.texi (Images): Refer generally to grub-install rather
7998 than directly to grub-setup.
7999 (Installing GRUB using grub-install): Remove direct reference to
8000 grub-setup.
8001 (Device map) Likewise.
8002 (Invoking grub-install): Likewise.
8003 * docs/man/grub-install.h2m (SEE ALSO): Likewise.
8004 * docs/man/grub-mkimage.h2m (SEE ALSO): Likewise.
8005 * util/grub-install.in (usage): Likewise.
8006
8007 * util/bash-completion.d/grub-completion.bash.in (_grub_setup):
8008 Apply to grub-bios-setup and grub-sparc64-setup rather than to
8009 grub-setup.
8010 * configure.ac: Remove grub_setup output variable.
8011
8012 * docs/man/grub-bios-setup.h2m (NAME): Change name from grub-setup
8013 to grub-bios-setup.
8014 * docs/man/grub-sparc64-setup.h2m (NAME): Change name from
8015 grub-setup to grub-sparc64-setup.
8016
5e3b8dcb
VS
80172013-01-11 Vladimir Serbinenko <phcoder@gmail.com>
8018
8019 Import gcrypt public-key cryptography and implement signature checking.
8020
535714bd
VS
80212013-01-10 Vladimir Serbinenko <phcoder@gmail.com>
8022
8023 * grub-core/fs/ntfs.c: Ue more appropriate types.
8024 * grub-core/fs/ntfscomp.c: Likewise.
8025 * include/grub/ntfs.h: Likewise.
8026
3e4f3566
VS
80272013-01-10 Vladimir Serbinenko <phcoder@gmail.com>
8028
8029 Support Apple FAT binaries on non-Apple platforms.
8030
8031 * include/grub/macho.h (GRUB_MACHO_FAT_EFI_MAGIC): New define.
8032 * include/grub/i386/macho.h (GRUB_MACHO_CPUTYPE_IS_HOST_CURRENT):
8033 Likewise.
8034 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Parse
8035 Apple FAT binaries.
8036
4dedb13f
VS
80372013-01-10 Vladimir Serbinenko <phcoder@gmail.com>
8038
8039 * grub-core/kern/disk.c (grub_disk_write): Fix sector number on 4K
8040 sector devices.
8041
f8861eaf
CW
80422013-01-07 Colin Watson <cjwatson@ubuntu.com>
8043
8044 * grub-core/io/bufio.c (grub_bufio_open): Use grub_zalloc instead of
8045 explicitly zeroing elements.
8046 * grub-core/io/gzio.c (grub_gzio_open): Likewise.
8047 * grub-core/io/lzopio.c (grub_lzopio_open): Remove explicit zeroing
8048 of elements in a structure already allocated using grub_zalloc.
8049 * grub-core/io/xzio.c (grub_xzio_open): Likewise.
8050
86065b0a
CW
80512013-01-07 Colin Watson <cjwatson@ubuntu.com>
8052
8053 * docs/grub.texi (grub_cpu): New subsection.
8054 (grub_platform): Likewise.
8055
c6f1e92f
VS
80562013-01-07 Vladimir Serbinenko <phcoder@gmail.com>
8057
8058 * grub-core/fs/minix.c (grub_minix_read_file): Simplify arithmetics.
8059
f797ec85
VS
80602013-01-05 Vladimir Serbinenko <phcoder@gmail.com>
8061
8062 * grub-core/fs/ext2.c (grub_ext2_read_block): Use shifts rather than
8063 divisions.
8064
033d0b4b
VS
80652013-01-05 Vladimir Serbinenko <phcoder@gmail.com>
8066
8067 * grub-core/fs/ntfs.c: Eliminate useless divisions in favor of shifts.
8068 * grub-core/fs/ntfscomp.c: Likewise.
8069 * include/grub/ntfs.h (grub_ntfs_data): Replace spc with log_spc.
8070 (grub_ntfs_comp): Likewise.
8071
21d1b9a0
VS
80722013-01-05 Vladimir Serbinenko <phcoder@gmail.com>
8073
8074 * grub-core/fs/nilfs2.c (-grub_nilfs2_palloc_groups_per_desc_block):
8075 Rename to ...
8076 (grub_nilfs2_palloc_log_groups_per_desc_block): ... this. Return log
8077 of groups_per_block. All users updated.
8078
10ca8645
VS
80792013-01-05 Vladimir Serbinenko <phcoder@gmail.com>
8080
8081 * grub-core/disk/diskfilter.c (grub_diskfilter_write): Call
8082 grub_error properly.
8083 * grub-core/disk/ieee1275/nand.c (grub_nand_write): Likewise.
8084 * grub-core/disk/loopback.c (grub_loopback_write): Likewise.
8085
a4c3ed4c
VS
80862013-01-03 Vladimir Serbinenko <phcoder@gmail.com>
8087
8088 * util/grub.d/10_kfreebsd.in: Correct the patch to zpool.cache as it's
8089 always in /boot/zfs.
8090 Reported by: Yuta Satoh.
8091
0b716507
YS
80922013-01-03 Yuta Satoh <nigoro>
8093
8094 * util/grub.d/10_kfreebsd.in: Fix improper references to grub-probe by
8095 ${grub_probe}
8096
00c05e22
VS
80972013-01-03 Vladimir Serbinenko <phcoder@gmail.com>
8098
8099 * configure.ac: Extend -Wno-trampolines to host.
8100
dadddb76
VS
81012013-01-03 Vladimir Serbinenko <phcoder@gmail.com>
8102
8103 * grub-core/fs/iso9660.c (grub_iso9660_susp_iterate): Avoid hang if
8104 entry->len = 0.
8105
54ce53ca
CW
81062013-01-03 Colin Watson <cjwatson@ubuntu.com>
8107
8108 * docs/grub.texi (Invoking grub-mkrelpath): New section.
8109 (Invoking grub-script-check): Likewise.
8110
8912efca
CW
81112013-01-03 Colin Watson <cjwatson@ubuntu.com>
8112
8113 * docs/grub.texi (Invoking grub-mount): New section.
8114 Reported by: Filipus Klutiero. Fixes Debian bug #666427.
8115
c3fc8394
CW
81162013-01-02 Colin Watson <cjwatson@ubuntu.com>
8117
8118 * grub-core/tests/lib/test.c (grub_test_run): Return non-zero on
8119 test failures, so that a failing unit test correctly causes 'make
8120 check' to fail.
8121
45d26abb
CW
81222013-01-02 Colin Watson <cjwatson@ubuntu.com>
8123
8124 Fix failing printf test.
8125
8126 * grub-core/kern/misc.c (grub_vsnprintf_real): Parse '-', '.', and
8127 '$' in the correct order when collecting type information.
8128
971dd2c6
CW
81292013-01-02 Colin Watson <cjwatson@ubuntu.com>
8130
8131 * docs/grub.texi (configfile): Explain environment variable
8132 handling.
8133 (source): New section.
8134 Reported by: Arbiel Perlacremaz. Fixes Savannah bug #35564.
8135
5c67ea6c
CW
81362012-12-31 Colin Watson <cjwatson@ubuntu.com>
8137
8138 Remove several trivially-unnecessary uses of nested functions.
8139
8140 * grub-core/commands/i386/pc/sendkey.c
8141 (grub_cmd_sendkey: find_key_code, find_ascii_code): Make static
8142 instead of nested.
8143 * grub-core/commands/legacycfg.c (legacy_file: getline): Likewise.
8144 Rename to ...
8145 (legacy_file_getline): ... this.
8146 * grub-core/commands/loadenv.c (grub_cmd_load_env: set_var):
8147 Likewise.
8148 * grub-core/kern/corecmd.c (grub_core_cmd_set: print_env): Likewise.
8149 * grub-core/kern/fs.c (grub_fs_probe: dummy_func): Likewise. Rename
8150 to ...
8151 (probe_dummy_iter): ... this.
8152 * grub-core/kern/i386/coreboot/mmap.c
8153 (grub_linuxbios_table_iterate: check_signature): Likewise.
8154 * grub-core/kern/parser.c (grub_parser_split_cmdline:
8155 check_varstate): Likewise. Mark inline.
8156 * grub-core/lib/arg.c (find_short: fnd_short): Likewise. Pass
8157 an additional parameter.
8158 (find_long: fnd_long): Likewise. Pass two additional parameters.
8159 * grub-core/lib/crc.c (init_crc32c_table: reflect): Likewise.
8160 * grub-core/lib/crc64.c (init_crc64_table: reflect): Likewise.
8161 * grub-core/lib/ieee1275/cmos.c (grub_cmos_find_port: hook):
8162 Likewise. Rename to ...
8163 (grub_cmos_find_port_iter): ... this.
8164 * grub-core/lib/ieee1275/datetime.c (find_rtc: hook): Likewise.
8165 Rename to ...
8166 (find_rtc_iter): ... this.
8167
8168 * grub-core/normal/menu_entry.c (run): Fold nested editor_getsource
8169 function directly into the function body, since it is only called
8170 once.
8171
33a68ac6
CW
81722012-12-30 Colin Watson <cjwatson@ubuntu.com>
8173
8174 * grub-core/bus/usb/ehci.c (grub_ehci_pci_iter): Remove incorrect
8175 __attribute__ ((unused)).
8176 * grub-core/video/bochs.c (find_card): Likewise.
8177 * grub-core/video/cirrus.c (find_card): Likewise.
8178 * grub-core/video/radeon_fuloong2e.c (find_card): Likewise.
8179 * grub-core/video/sis315pro.c (find_card): Likewise.
8180 * grub-core/video/sm712.c (find_card): Likewise.
8181
608b647a
CW
81822012-12-28 Colin Watson <cjwatson@ubuntu.com>
8183
8184 * util/grub-mkconfig.in: Accept GRUB_TERMINAL_OUTPUT=vga_text.
8185 Fixes Savannah bug #37821.
8186
fd49ceb3
CW
81872012-12-28 Colin Watson <cjwatson@ubuntu.com>
8188
8189 Apply program name transformations at build-time rather than at
8190 run-time. Fixes Debian bug #696465.
8191
8192 * acinclude.m4 (grub_TRANSFORM): New macro.
8193 * configure.ac: Create output variables with transformed names for
8194 most programs.
8195 * util/bash-completion.d/grub-completion.bash.in: Use
8196 pre-transformed variables for program names.
8197 * util/grub-install.in: Likewise.
8198 * util/grub-kbdcomp.in: Likewise.
8199 * util/grub-mkconfig.in: Likewise.
8200 * util/grub-mkconfig_lib.in: Likewise.
8201 * util/grub-mknetdir.in: Likewise.
8202 * util/grub-mkrescue.in: Likewise.
8203 * util/grub-mkstandalone.in: Likewise.
8204 * util/grub-reboot.in: Likewise.
8205 * util/grub-set-default.in: Likewise.
8206 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
8207 * tests/util/grub-shell-tester.in: Remove unused assignment.
8208 * tests/util/grub-shell.in: Likewise.
8209 * util/grub.d/00_header.in: Likewise.
8210
7024b3c0
CW
82112012-12-28 Colin Watson <cjwatson@ubuntu.com>
8212
8213 Backport gnulib fixes for C11. Fixes Savannah bug #37738.
8214
8215 * grub-core/gnulib/stdio.in.h (gets): Warn on use only if
8216 HAVE_RAW_DECL_GETS.
8217 * m4/stdio_h.m4 (gl_STDIO_H): Check for gets.
8218
e3501b13
VS
82192012-12-11 Vladimir Serbinenko <phcoder@gmail.com>
8220
8221 * util/grub.d/20_linux_xen.in: Addmissing assignment to machine.
8222 Reported by: Eriks Latosheks <foresterlv>.
8223
b40c88a9
VS
82242012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
8225
8226 * docs/grub.texi (Network): Update instructions on generating netboot
8227 image.
8228
ce96d01c
VS
82292012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
8230
8231 * grub-core/disk/cryptodisk.c (grub_cmd_cryptomount): Strip brackets
8232 around device name if necessarry.
8233
0f596201
PFS
82342012-12-10 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
8235
8236 * util/grub-install.in: Follow the symbolic link parameter added
8237 to the file command.
8238
600d5bdb
AB
82392012-12-10 Andrey Borzenkov <arvidjaar@gmail.com>
8240
8241 * util/grub-install.in: Remove stale TODO.
8242
64ebd2f4
PFS
82432012-12-10 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
8244
8245 * grub-core/kern/ieee1275/init.c (grub_machine_get_bootlocation): Use
8246 dynamic allocation for the bootpath buffer.
8247
74b2fe3e
DTB
82482012-12-10 Dr. Tilmann Bubeck <t.bubeck@reinform.de>
8249
8250 * grub-core/gfxmenu/view.c (init_terminal): Avoid making terminal
8251 window too small.
8252
969b804f
VS
82532012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
8254
8255 * grub-core/term/gfxterm.c (grub_virtual_screen_setup): Get font as
8256 argument rather than font name. All users updated.
8257 (grub_gfxterm_set_window): Likewise.
8258
b9f5ebd6
VT
82592012-12-10 Vladimir Testov <vladimir.testov@rosalab.ru>
8260
8261 * util/grub-mkfont.c (argp_parser): Fix a typo which prevented --asce
8262 from working.
8263
258f43b7
VS
82642012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
8265
8266 * util/getroot.c (convert_system_partition_to_system_disk): Support
8267 nbd disks.
8268
cc1ce5f9
VS
82692012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
8270
8271 * grub-core/fs/ufs.c (grub_ufs_dir): Stop if direntlen is 0 to avoid
8272 infinite loop on corrupted FS.
8273
e77a16ca
VS
82742012-12-08 Vladimir Serbinenko <phcoder@gmail.com>
8275
8276 Fix big-endian mtime.
8277
8278 * grub-core/fs/ufs.c (grub_ufs_inode): Split improperly attached
8279 together sec and usec.
8280 (grub_ufs_dir): Use correct byteswapping for UFS time.
8281
d9c48c7b
VS
82822012-12-08 Vladimir Serbinenko <phcoder@gmail.com>
8283
8284 Support big-endian UFS1.
8285
8286 * Makefile.util.def (libgrubmods): Add ufs_be.c
8287 * grub-core/Makefile.core.def (ufs1_be): New module.
8288 * grub-core/fs/ufs_be.c: New file.
8289 * grub-core/fs/ufs.c: Declare grub_ufs_to_le* and use them throughout
8290 the file.
8291
2f9f40ba
LL
82922012-11-28 Leif Lindholm <leif.lindholm@arm.com>
8293
8294 * include/grub/types.h: Fix functionality unaffecting typo in
8295 GRUB_TARGET_WORDSIZE conditional macro.
8296
48ff0889
PFS
82972012-11-28 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
8298
8299 * grub-core/net/bootp.c (parse_dhcp_vendor): Fix double increment.
8300
03711240
GS
83012012-10-28 Grégoire Sutre <gregoire.sutre@gmail.com>
8302
8303 * util/grub.d/10_netbsd.in: Fix tab indentation and make sure
8304 that /netbsd appears first (when it exists).
8305
a31b11bd
CJ
83062012-10-12 Christoph Junghans <ottxor@gentoo.org>
8307
8308 * grub-core/Makefile.am (moddep.lst): Use $(AWK) rather than awk.
8309 Fixes Savannah bug #37558.
8310
e8a5d5d4
CW
83112012-10-12 Colin Watson <cjwatson@ubuntu.com>
8312
8313 * grub-core/commands/configfile.c (GRUB_MOD_INIT): Correct
8314 description of extract_entries_configfile.
8315
83162012-10-05 Colin Watson <cjwatson@ubuntu.com>
39525c22
CW
8317
8318 * grub-core/loader/i386/linux.c (allocate_pages): Fix spelling of
8319 preferred_address.
8320 (grub_cmd_linux): Likewise.
8321 * grub-core/net/icmp6.c (struct prefix_option): Fix spelling of
8322 preferred_lifetime. Update all users.
8323
288c757d
CW
83242012-09-26 Colin Watson <cjwatson@ubuntu.com>
8325
8326 * Makefile.util.def (grub-mknetdir): Move to $prefix/bin.
8327 Reported by: Daniel Kahn Gillmor. Fixes Debian bug #688799.
8328
0d35da3f
CW
83292012-09-26 Colin Watson <cjwatson@ubuntu.com>
8330
8331 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Redirect
8332 errors from grub-probe to /dev/null, not stdout.
8333
b78c3127
VS
83342012-09-26 Vladimir Serbinenko <phcoder@gmail.com>
8335
8336 * grub-core/fs/affs.c (grub_affs_mount): Support AFFS bootblock in
8337 sector 1.
8338
473959f0
CW
83392012-09-24 Colin Watson <cjwatson@ubuntu.com>
8340
8341 * util/grub-install.in: Make the error message if $source_dir
8342 doesn't exist more useful.
8343
794c8c33
CW
83442012-09-22 Colin Watson <cjwatson@ubuntu.com>
8345
8346 Fix grub-emu build on FreeBSD.
8347
8348 * Makefile.util.def (grub-mount): Add LIBGEOM to ldadd.
8349 * grub-core/net/drivers/emu/emunet.c: Only include Linux-specific
8350 headers on Linux.
8351 (GRUB_MOD_INIT): Return immediately on non-Linux platforms; this
8352 implementation is currently Linux-specific.
8353 * util/getroot.c (exec_pipe): Define only on Linux or when either
8354 libzfs or libnvpair is unavailable.
8355 (find_root_devices_from_poolname): Remove unused path variable.
8356
86d08fdb
CW
83572012-09-19 Colin Watson <cjwatson@ubuntu.com>
8358
8359 * grub-core/partmap/msdos.c (pc_partition_map_embed): Revert
8360 incorrect off-by-one fix from 2011-02-12. A 62-sector core image
8361 should fit before end == 63.
8362
735abf54
CW
83632012-09-19 Colin Watson <cjwatson@ubuntu.com>
8364
8365 * util/grub-setup.c (write_rootdev): Remove unused core_img
8366 parameter. Update all callers.
8367 (setup): Define core_sectors only if GRUB_SETUP_BIOS, to appease
8368 'gcc -Wunused-but-set-variable'. Remove unnecessary nested #ifdef
8369 GRUB_SETUP_BIOS.
8370
140acd3c
VS
83712012-09-18 Vladimir Serbinenko <phcoder@gmail.com>
8372
8373 * util/grub-mkconfig_lib.in (grub_tab): New variable.
8374 (grub_add_tab): New function.
8375 * util/grub.d/10_hurd.in: Replace \t with $grub_tab orgrub_add_tab.
8376 * util/grub.d/10_illumos.in: Likewise.
8377 * util/grub.d/10_kfreebsd.in: Likewise.
8378 * util/grub.d/10_linux.in: Likewise.
8379 * util/grub.d/10_netbsd.in: Likewise.
8380 * util/grub.d/10_windows.in: Likewise.
8381 * util/grub.d/10_xnu.in: Likewise.
8382 * util/grub.d/20_linux_xen.in: Likewise.
8383 * util/grub.d/30_os-prober.in: Likewise.
8384
7ddffdad
VS
83852012-09-18 Vladimir Serbinenko <phcoder@gmail.com>
8386
8387 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
8388 GRUB_IEEE1275_FLAG_CURSORONOFF_ANSI_BROKEN on mac.
8389 * grub-core/term/ieee1275/console.c (grub_console_init_lately): Use
8390 ieee1275-nocursor if GRUB_IEEE1275_FLAG_CURSORONOFF_ANSI_BROKEN is set.
8391 * grub-core/term/terminfo.c (grub_terminfo_set_current): Add new type
8392 ieee1275-nocursor.
8393 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New value
8394 GRUB_IEEE1275_FLAG_CURSORONOFF_ANSI_BROKEN.
8395
4e092454
VS
83962012-09-18 Vladimir Serbinenko <phcoder@gmail.com>
8397
8398 * grub-core/loader/i386/linux.c (grub_cmd_linux): Fix incorrect
8399 le-conversion.
8400 Reported by: BURETTE, Bernard.
8401
735abf54 84022012-09-17 Colin Watson <cjwatson@ubuntu.com>
a2fc3924
CW
8403
8404 * util/grub-mkconfig_lib.in (grub_quote): Remove outdated sentence
8405 from comment.
8406
dfd39dbd
CW
84072012-09-14 Colin Watson <cjwatson@ubuntu.com>
8408
8409 * grub-core/term/terminfo.c: Only fix up powerpc key repeat on
8410 IEEE1275 machines. Fixes powerpc-emu compilation.
8411 * include/grub/terminfo.h: Likewise.
8412
3bfa763c
VS
84132012-09-12 Vladimir Serbinenko <phcoder@gmail.com>
8414
8415 * include/grub/efi/api.h (grub_efi_runtime_services): Make vendor_guid
8416 a const pointer.
8417 * grub-core/efiemu/runtime/efiemu.c (efiemu_memcpy): Make from a
8418 const pointer.
8419 (efiemu_set_variable): Make vendor_guid a const pointer.
8420
250e475b
VS
84212012-09-12 Vladimir Serbinenko <phcoder@gmail.com>
8422
8423 Don't require grub-mkconfig_lib to generate manpages for programs.
8424
8425 * gentpl.py (manpage): Additional argument adddeps. Add adddeps to
8426 dependencies, don't add grub-mkconfig_lib.
8427 (program): Pass empty adddeps.
8428 (script): Pass grub-mkconfig_lib as adddeps.
8429
592fd0e4
VS
84302012-09-11 Vladimir Serbinenko <phcoder@gmail.com>
8431
8432 * grub-core/disk/diskfilter.c (free_array) [GRUB_UTIL]: Fix memory leak.
8433 * util/getroot.c (grub_find_device): Likewise.
8434 (get_mdadm_uuid): Likewise.
8435 (grub_util_is_imsm): Likewise.
8436 (grub_util_pull_device): Likewise.
8437 * util/grub-probe.c (probe): Likewise.
8438
801a3027
BG
84392012-09-10 Benoit Gschwind <gschwind>
8440
8441 * grub-core/loader/efi/appleloader.c (devpath_8): New var.
8442 (devs): Add devpath_8.
8443
c5052c81
PJ
84442012-09-08 Peter Jones <pjones@redhat.com>
8445
8446 * grub-core/Makefile.core.def (efifwsetup): New module.
8447 * grub-core/commands/efi/efifwsetup.c: New file.
8448 * grub-core/kern/efi/efi.c (grub_efi_set_variable): New function
8449 * include/grub/efi/api.h (GRUB_EFI_OS_INDICATIONS_BOOT_TO_FW_UI):
8450 New define.
8451 * include/grub/efi/efi.h (grub_efi_set_variable): New proto.
8452
8e832f71
JS
84532012-09-05 Jiri Slaby <jslaby@suse.cz>
8454
8455 * configure.ac: Add SuSe path.
8456
f0f55752
CW
84572012-09-05 Colin Watson <cjwatson@ubuntu.com>
8458
8459 * NEWS: Fix typo.
8460
ecadc4c2
CW
84612012-09-05 Colin Watson <cjwatson@ubuntu.com>
8462
8463 * util/import_gcry.py: Sort cipher_files, to make build system
8464 generation more deterministic.
8465
64498f25
VS
84662012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
8467
8468 * grub-core/disk/ieee1275/ofdisk.c (scan): Check function return value.
8469 * grub-core/lib/ieee1275/datetime.c (grub_get_datetime): Likewise.
8470 (grub_set_datetime): Likewise.
8471
9cc836a2
VS
84722012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
8473
8474 * grub-core/script/yylex.l: Ignore unused-function and sign-compare
8475 warnings.
8476
bcfcea01
VS
84772012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
8478
8479 * grub-core/partmap/dvh.c (grub_dvh_is_valid): Add missing byteswap.
8480
a4099485
VS
84812012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
8482
8483 * grub-core/fs/xfs.c (grub_xfs_read_block): Make keys a const pointer.
8484
265c162a
CW
84852012-09-04 Colin Watson <cjwatson@ubuntu.com>
8486
8487 * Makefile.am (EXTRA_DIST): Add linguas.sh. It's only strictly
8488 required for checkouts from bzr, but it may be useful for users or
8489 distributors wishing to update translations against a tarball
8490 distribution, and it can be helpful for the tarball to be a superset
8491 of what's in bzr.
8492
3d171e95
CW
84932012-09-04 Colin Watson <cjwatson@ubuntu.com>
8494
8495 * Makefile.am (EXTRA_DIST): Add
8496 grub-core/tests/boot/linux.init-mips.S,
8497 grub-core/tests/boot/linux.init-ppc.S, and
8498 grub-core/tests/boot/linux-ppc.cfg.
8499
f2c2503e
CW
85002012-09-04 Colin Watson <cjwatson@ubuntu.com>
8501
8502 * grub-core/mmap/mips/loongson: Remove empty directory.
8503
85042012-09-04 Colin Watson <cjwatson@ubuntu.com>
dd77d2be
CW
8505
8506 * docs/man/grub-mkdevicemap.h2m: Remove, since grub-mkdevicemap is
8507 gone.
8508
ab2163d5
CW
85092012-09-04 Colin Watson <cjwatson@ubuntu.com>
8510
8511 * .bzrignore: Add grub-bios-setup, grub-ofpathname, and
8512 grub-sparc64-setup.
8513
ce938140
GS
85142012-08-05 Grégoire Sutre <gregoire.sutre@gmail.com>
8515
8516 * configure.ac: Strengthen the test for working -nostdinc -isystem.
8517
529f58a5
GS
85182012-07-31 Grégoire Sutre <gregoire.sutre@gmail.com>
8519
8520 * po/POTFILES.in: Regenerated.
8521
16cf79e9
GS
85222012-07-31 Grégoire Sutre <gregoire.sutre@gmail.com>
8523
8524 * docs/grub.texi: Note that NetBSD/i386 is Multiboot-compliant.
8525 (NetBSD): New subsection.
8526
39b27f1e 85272012-07-22 Ales Nesrsta <starous@volny.cz>
8528
8529 * grub-core/bus/usb/ehci.c: PCI iter. - added PCI bus master setting.
8530 * grub-core/bus/usb/ohci.c: PCI iter. - added PCI bus master setting.
8531
a885261b
VS
85322012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
8533
8534 * util/grub-mkconfig_lib.in (grub_quote): Remove extra layer of escape.
8535 * util/grub.d/10_hurd.in: Add missing quoting.
8536 * util/grub.d/10_illumos.in: Likewise.
8537 * util/grub.d/10_kfreebsd.in: Likewise.
8538 * util/grub.d/10_linux.in: Likewise.
8539 * util/grub.d/20_linux_xen.in: Likewise.
8540
7bd29c01
VS
85412012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
8542
8543 New command `lsefi'.
8544
8545 * grub-core/Makefile.core.def (lsefi): New module.
8546 * grub-core/commands/efi/lsefi.c: New file.
8547 * include/grub/efi/api.h: Add more GUIDs.
8548
ac625d8f
VS
85492012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
8550
8551 * grub-core/loader/i386/bsd.c (grub_bsd_elf32_size_hook): Fix mask.
8552 (grub_bsd_elf32_hook): Likewise.
8553 (grub_bsd_elf64_size_hook): Likewise.
8554 (grub_bsd_elf64_hook): Likewise.
8555 (grub_bsd_load_elf): Likewise.
8556
e73bb801
VS
85572012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
8558
8559 * grub-core/lib/xzembed/xz_dec_stream.c (hash_validate): Fix behaviour
8560 if hash function is unavailable.
8561 (dec_stream_header): Likewise.
8562
e81db8b5
VS
85632012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
8564
8565 * grub-core/normal/autofs.c (autoload_fs_module): Save and restore
8566 filter state.
8567
d187a1c3
VS
85682012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
8569
8570 Fix coreboot compilation.
8571
8572 * grub-core/term/i386/pc/vga_text.c (grub_vga_text_init): Rename to ...
8573 (grub_vga_text_init_real): ... this.
8574 (grub_vga_text_fini): Rename to ...
8575 (grub_vga_text_fini_real): ... this.
8576
91a05f64
VS
85772012-07-07 Vladimir Serbinenko <phcoder@gmail.com>
8578
8579 * grub-core/Makefile.am: Fix path to boot/i386/pc/startup_raw.S.
8580
6af96df7
VS
85812012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
8582
8583 * grub-core/lib/legacy_parse.c: Support clear and testload.
8584
4d569e12
VS
85852012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
8586
8587 * grub-core/term/efi/serial.c: Support 1.5 stop bits.
8588
073b57bb
VS
85892012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
8590
8591 * grub-core/fs/ext2.c: Experimental support for 64-bit.
8592
a706f4cc
VS
85932012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
8594
8595 * grub-core/net/tftp.c (ack): Fix endianness problem.
8596 (tftp_receive): Likewise.
8597 Reported by: Michael Davidsaver.
8598
e7850aa9
VS
85992012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
8600
8601 * gentpl.py: Make mans depend on grub-mkconfig_lib.
8602
86032012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
8604
8605 * include/grub/list.h (FOR_LIST_ELEMENTS_SAFE): New macro.
8606 * include/grub/command.h (FOR_COMMANDS_SAFE): Likewise.
8607 * grub-core/commands/help.c (grub_cmd_help): Use FOR_COMMANDS_SAFE.
8608
35692881
VS
86092012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
8610
8611 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Don't decrease
8612 efi_mmap_size.
8613 Reported by: Stuart Hayes.
8614
c35fc5bd
VS
86152012-06-28 Vladimir Serbinenko <phcoder@gmail.com>
8616
8617 Add monochrome text support (mda_text, aka `hercules' in grub-legacy).
8618
8619 * grub-core/Makefile.core.def (mda_text): New module.
8620 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Support `hercules'.
8621 * grub-core/term/i386/vga_common.c (grub_console_cur_color): Moved to ..
8622 * grub-core/term/i386/pc/vga_text.c (cur_color): ... here
8623 * grub-core/term/i386/pc/console.c (grub_console_cur_color): ... and
8624 here.
8625 * grub-core/term/i386/vga_common.c (grub_console_getwh): Moved to ..
8626 * grub-core/term/i386/pc/vga_text.c (grub_console_getwh): ... here
8627 * grub-core/term/i386/pc/console.c (grub_console_getwh): ... and
8628 here.
8629 * grub-core/term/i386/vga_common.c (grub_console_setcolorstate): Moved
8630 to ..
8631 * grub-core/term/i386/pc/vga_text.c (grub_console_setcolorstate):
8632 ... here
8633 * grub-core/term/i386/pc/console.c (grub_console_setcolorstate): ... and
8634 here.
8635 * grub-core/term/i386/vga_common.c: Removed.
8636 * include/grub/i386/vga_common.h: Likewise.
8637 * include/grub/vga.h (grub_vga_cr_bw_write): New function.
8638 (grub_vga_cr_bw_read): Likewise.
8639 * include/grub/vgaregs.h (GRUB_VGA_IO_CR_BW_INDEX): New enum value.
8640 (GRUB_VGA_IO_CR_BW_DATA): Likewise.
8641 * grub-core/term/i386/pc/vga_text.c [MODE_MDA]: Call
8642 grub_vga_cr_bw_read/grub_vga_cr_bw_write instead of
8643 grub_vga_cr_read/grub_vga_cr_write.
8644 (grub_vga_text_setcolorstate) [MODE_MDA]: Ignore color.
8645
5f91f701
VS
86462012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
8647
8648 * configure.ac: Bump version to 2.00.
8649 * grub-core/normal/main.c (features): Add feature_200_final.
8650
0c4f85f6
VS
86512012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
86522012-06-27 Jordan Uggla <jordan.uggla@gmail.com>
8653
8654 * NEWS: Fix unclarity and language mistakes.
8655
f923ad22
VS
86562012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
8657
8658 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Increase
8659 additional size to 3 pages.
8660 Reported by: Stuart Hayes.
8661
d22029ba
VS
86622012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
8663
8664 * NEWS: Add 2.00 entry.
8665
58eee08f
VS
86662012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
8667
8668 * grub-core/commands/wildcard.c (check_file): Fix bad logic.
8669 put explicit "/" for empty path.
8670 (wildcard_expand): Improve dprintf.
8671
c59bdff7
VS
86722012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
8673
8674 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Don't free oldnode if
8675 it's equal to currnode. This can happen with "" symlink.
8676
5e6a440a
YB
86772012-06-27 Yves Blusseau <blusseau@zetam.org>
8678
8679 * util/grub-mkconfig_lib.in: Fix print messages replacing builtin
8680 echo shell command by printf command.
8681
73a68bcb
VS
86822012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
8683
8684 * grub-core/term/arc/console.c (grub_console_init_output): Add one since
8685 the value returned by firmware is the maximal position, not diumension.
8686 (grub_terminfo_output_state): Use a more sane fallback.
8687
392a603b
VS
86882012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
8689
8690 * grub-core/term/terminfo.c (print_terminfo): Print terminal dimensions.
8691
42d0867f
VS
86922012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
8693
8694 * grub-core/kern/mips/arc/init.c (grub_machine_init): Set clock
8695 frequency to 150 MHz.
8696
489509f4
VS
86972012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
8698
8699 Apple fixes.
8700
8701 * grub-core/lib/i386/relocator16.S: Use correct __APPLE__ and not
8702 __APPLE_
8703 * grub-core/lib/i386/relocator_common.S [__APPLE__]: Fix gdtdesc
8704 definition.
8705 * grub-core/lib/i386/relocator64.S [__APPLE__]: Assemble jmp manually.
8706
9f3fc883
VS
87072012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
8708
8709 Handle slash in HFS label.
8710
8711 * grub-core/fs/hfs.c (macroman_to_utf8): New argument slash_translate.
8712 (grub_hfs_dir): Tanslate slash.
8713 (grub_hfs_label): Don't translate slash.
8714
54853fd7
VS
87152012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
8716
8717 * grub-core/commands/ls.c (grub_ls_list_devices): Disable
8718 network protocol listing since it introduces problematic dependency on
8719 net module.
8720
4dc02ddf
VS
87212012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
8722
8723 * util/grub-mkimage.c (generate_image): Add Yeeloong verified hash.
8724
c50c867d
VS
87252012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
8726
8727 Init video early on yeeloong to avoid being rebooted by watchdog.
8728
8729 * grub-core/Makefile.am (gensm712): New target.
8730 (sm712_start.S): Likewise.
8731 (boot/mips/loongson/fwstart.S): Depend on sm712_start.S
8732 * grub-core/boot/mips/loongson/fwstart.S [!FULOONG2F]: Init SM712.
8733 * grub-core/video/sm712.c [GENINIT]: Generate compact init procedure
8734 description.
8735 * include/grub/vga.h: Move registry definitions to...
8736 * include/grub/vgaregs.h: ... here.
8737
5f92c8a1
VS
87382012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
8739
8740 * grub-core/boot/decompressor/minilib.c (grub_memcmp): Fix the compare
8741 signedness.
8742
e9e6f111
VS
87432012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
8744
8745 * util/grub-install.in: Fix dvhtool invocation. Add arc to the list of
8746 platforms with firmware disk drivers in the core.
8747
754ad9eb
VS
87482012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
8749
8750 * grub-core/disk/diskfilter.c (scan_disk) [GRUB_UTIL]: Put more
8751 informative verbose message.
8752 (read_lv): Handle 64-bit segment size.
8753
315654c2
VS
87542012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
8755
8756 * grub-core/disk/lvm.c (grub_lvm_getvalue): Handle 64-bit values.
8757
fb022c79
VS
87582012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
8759
8760 * grub-core/fs/fat.c (grub_fat_iterate_dir_next): Don't stop on a space
8761 character but still remove trainling spaces.
8762 (grub_fat_label): Ignore archive flag.
8763
8645f72c
VS
87642012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
8765
8766 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Avoid unnecessarry
8767 cast between linux_kernel_header and linux_kernel_params.
8768
36498496
VS
87692012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
8770
8771 * include/grub/diskfilter.h (grub_raid5_recover_func_t): Use proper
8772 type for size.
8773 (grub_raid6_recover_func_t): Likewise.
8774 * grub-core/disk/raid5_recover.c (grub_raid5_recover): Likewise.
8775 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Likewise.
8776
0b5ea6b8
VS
87772012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
8778
8779 * util/grub-mkimage.c (generate_image): Add Fuloong2F verified hash.
8780
650cfcfe
GS
87812012-06-25 Grégoire Sutre <gregoire.sutre@gmail.com>
8782
8783 Fix overflow.
8784
8785 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_size)
8786 [__NetBSD__]: Add explicit cast before bitshift.
8787
8a4d6a44
VS
87882012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
8789
8790 * configure.ac: Bump to 2.00~rc1.
8791
2fb97ed3
VS
87922012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
8793
8794 * grub-core/boot/mips/loongson/fwstart.S: Add missing setting of high
8795 half of $a0.
8796
1fa097dc
VS
87972012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
87982012-06-23 Jordan Uggla <jordan.uggla@gmail.com>
8799
8800 * docs/grub.texi: Fix search syntax.
8801 (Multi-boot manual config): Put msdos rather than GPT example.
8802 Grammar corrections.
8803
c890ba78
VS
88042012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
8805
8806 * docs/grub.texi (Multi-boot manual config): Use --set. Improve remark.
8807
0f92dca7
VS
88082012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
8809
8810 * grub-core/kern/mm.c (grub_free): Fix agglomerating of free regions.
8811
3988c4a0
VS
88122012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
8813
8814 * grub-core/kern/mm.c (get_header_from_pointer): Put a more informative
8815 message on double free. Put the value of magic in case of mismatch.
8816
9e86d4c5
VS
88172012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
8818
8819 Speed-up video on yeeloong.
8820
8821 * grub-core/video/sm712.c (framebuffer): Remove render_target and
8822 add cached_ptr.
8823 (grub_video_sm712_video_fini): Unmap cached_ptr.
8824 (grub_video_sm712_setup): Use cache address and grub_video_fb_setup.
8825 (grub_video_sm712_set_active_render_target): Removed.
8826 (grub_video_adapter): Use grub_video_fb_set_active_render_target.
8827 (grub_video_sm712_swap_buffers): Call grub_video_fb_swap_buffers and
8828 sync caches.
8829
ed24c312
VS
88302012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
8831
8832 Avoid flushing the same line multiple times on loongson.
8833
8834 * grub-core/kern/mips/cache.S [GRUB_MACHINE_MIPS_LOONGSON]:
8835 Step in 32 bytes and not 1 byte.
8836 * grub-core/kern/mips/cache_flush.S [GRUB_MACHINE_MIPS_LOONGSON]:
8837 Likewise.
8838
d1718e7d
VS
88392012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
8840
8841 * util/getroot.c (grub_find_root_devices_from_mountinfo): Handle btrfs
8842 subvolumes.
8843
982f1909
VS
88442012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
8845
8846 Implement flow control for http.
8847
8848 * grub-core/net/http.c (parse_line): Handle response 206.
8849 (http_receive): Stall if too many packets are in the queue.
8850 (http_establish): Fix range header.
8851 (http_seek): Fix double free.
8852 (http_close): Likewise.
8853 (http_packets_pulled): New function.
8854 (grub_http_protocol): Set http_seek
8855 * grub-core/net/tcp.c (grub_net_tcp_socket): New field `i_stall'.
8856 (ack_real): Set window depending on i_stall.
8857 (grub_net_send_tcp_packet): Likewise.
8858 (grub_net_tcp_stall): New function.
8859 (grub_net_tcp_unstall): Likewise.
8860 * include/grub/net/tcp.h (grub_net_tcp_stall): New proto.
8861 (grub_net_tcp_unstall): Likewise.
8862
bd407d6e
VS
88632012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
8864
8865 * grub-core/net/tftp.c: Decrease stall to 50 packets.
8866
c7564b8e
VS
88672012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
8868
8869 * grub-core/net/net.c (grub_net_fs_open): Free resources on failed open.
8870
a3706162
VS
88712012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
8872
8873 * tests/util/grub-shell.in: Fix a typo.
8874
b27069e0
VS
88752012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
8876
8877 Implement flow control for tftp.
8878
8879 * grub-core/net/net.c (receive_packets): Decrease the stop to 10
8880 packets but stop only if stop condition is satisfied.
8881 (grub_net_fs_read_real): Call packets_pulled after real read. Use
8882 `stall' instead of `eof' as stop condition.
8883 * grub-core/net/http.c (parse_line): Set `stall' on EOF.
8884 (http_err): Likewise.
8885 * grub-core/net/tftp.c (ack): Replace the first argument with data
8886 instead of socket.
8887 (tftp_receive): Stall if too many packets are in wait queue.
8888 (tftp_packets_pulled): New function.
8889 (grub_tftp_protocol): Set packets_pulled.
8890 * include/grub/net.h (grub_net_packets): New field count.
8891 (grub_net_put_packet): Increment count.
8892 (grub_net_remove_packet): Likewise.
8893 (grub_net_app_protocol): New field `packets_pulled'.
8894 (grub_net): New field `stall'.
8895
6b9cfac6
VS
88962012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
8897
8898 * grub-core/net/net.c (receive_packets): Stop after 100 packets to let
8899 sync part to handle them.
8900
f35abd81
VS
89012012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
8902
8903 * grub-core/kern/main.c (grub_set_prefix_and_root): Fix memory leak.
8904 * grub-core/net/drivers/ieee1275/ofnet.c
8905 (grub_ieee1275_net_config_real): Likewise.
8906
0e7ec820
VS
89072012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
8908
8909 * grub-core/net/bootp.c (grub_net_configure_by_dhcp_ack): Don't create
8910 the direct route for server/gateway.
8911
9d611a31
VS
89122012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
8913
8914 * grub-core/net/bootp.c (grub_net_configure_by_dhcp_ack): Prefer
8915 IP address to server name since we may not hame the DNS.
8916
418f45ab
VS
89172012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
8918
8919 * grub-core/net/dns.c (grub_cmd_nslookup): Init addresses to 0 to avoid
8920 freeing random buffer on failure.
8921 * grub-core/net/net.c (grub_net_resolve_address): Likewise.
8922
44a0efc1
VS
89232012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
8924
8925 * grub-core/net/bootp.c (grub_cmd_bootp): Fix packet allocation size.
8926
531e2241
VS
89272012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
8928
8929 * grub-core/net/drivers/emu/emunet.c (get_card_packet): Allocate the
8930 reserved bytes.
8931 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_recv): Likewise.
8932 * grub-core/net/drivers/ieee1275/ofnet.c (get_card_packet): Likewise.
8933 Handle malloc error correctly.
8934
cde393c9
VS
89352012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
8936
8937 * grub-core/script/execute.c (grub_script_arglist_to_argv): Escape
8938 blocks.
8939
538478d0
VS
89402012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
8941
8942 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Fix double
8943 increment.
8944
9b55efe0
VS
89452012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
8946
8947 * grub-core/net/dns.c (grub_cmd_nslookup): Use configured DNS servers if
8948 none is explicitly specified.
8949
9eb832c3
VS
89502012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
8951
8952 * grub-core/net/dns.c (grub_net_add_dns_server): Don't erase old servers
8953 while reallocating.
8954
d6b7c7c9
VS
89552012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
8956
8957 Respect netmask from bootp/dhcp.
8958
8959 * grub-core/net/bootp.c (parse_dhcp_vendor): Parse mask.
8960 (grub_net_configure_by_dhcp_ack): Use mask and grub_net_add_ipv4_local.
8961 * grub-core/net/net.c (grub_net_add_addr): Split creating local route
8962 into ...
8963 (grub_net_add_ipv4_local): ... this.
8964 (grub_cmd_addaddr): Use grub_net_add_ipv4_local.
8965 * include/grub/net.h (GRUB_NET_BOOTP_NETMASK): New enum value.
8966 (grub_net_add_ipv4_local): New proto.
8967
67caf9eb
VS
89682012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
8969
8970 * grub-core/loader/i386/linux.c (grub_linux_boot): Setup video before
8971 determining EFI memory map size.
8972
43657558
VS
89732012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
8974
8975 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Escape commas.
8976
eb6d0dd3
VS
89772012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
8978
8979 * grub-core/kern/main.c (grub_set_prefix_and_root): Skip escaped commas
8980 when looking for partition separator.
8981
31230544
VS
89822012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
8983
8984 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname):
8985 Escape commas.
8986
918a2517
VS
89872012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
8988
8989 Restructure FAT driver to avoid hook in label reading as it hits a
8990 GCC bug.
8991
8992 * include/grub/err.h (grub_err_t): New enum value GRUB_ERR_EOF.
8993 * grub-core/fs/fat.c (grub_fat_iterate_context): New struct.
8994 (grub_fat_iterate_dir): Split into ...
8995 (grub_fat_iterate_init): ... this, ...
8996 (grub_fat_iterate_fini): ... this, ...
8997 (grub_fat_iterate_dir_next): ... and this. All users updated.
8998
9f1d654e
VS
89992012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
9000
9001 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum value
9002 GRUB_IEEE1275_FLAG_BROKEN_REPEAT.
9003 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
9004 GRUB_IEEE1275_FLAG_BROKEN_REPEAT on PowerBook3,3.
9005 * include/grub/terminfo.h (grub_terminfo_input_state) [__powerpc__]:
9006 New fields last_key and last_key_time.
9007 * grub-core/term/terminfo.c (grub_terminfo_getkey): Transform
9008 extended key-esc into extended key-extended key.
9009
52f0f643
VS
90102012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
9011
9012 Avoid unnecessary memcpy of whole video buffer.
9013
9014 * grub-core/video/fb/video_fb.c (dirty): New struct.
9015 (framebuffer): Add members current_dirty and previous_dirty.
9016 (dirty): New function.
9017 (grub_video_fb_fill_rect): Update dirty.
9018 (common_blitter): Likewise.
9019 (grub_video_fb_scroll): Likewise.
9020 (doublebuf_blit_update_screen): Copy only dirty part.
9021 (doublebuf_pageflipping_update_screen): Likewise.
9022 (grub_video_fb_doublebuf_blit_init): Init dirty.
9023 (doublebuf_pageflipping_init): Likewise.
9024 (grub_video_fb_setup): Likewise.
9025
e169a180
VS
90262012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
9027
9028 * grub-core/net/drivers/ieee1275/ofnet.c (search_net_devices): Decrease
9029 poll rate.
9030
48556879
VS
90312012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
9032
9033 Fix wildcard regexp dot and other special characters handling.
9034 Reported by: Robert Mabee.
9035
9036 * grub-core/commands/wildcard.c (isregexop): Add "|+{}[]?".
9037 (make_regex): Escape "|+{}[]". Transform '?' to '.?'.
9038 (split_path): Trigger expansion on '?'.
9039 (unescape): New function.
9040 (wildcard_expand): Unescape parts copied without globbing.
9041 * grub-core/script/execute.c (wildcard_escape): Escape '?'.
9042 (grub_script_arglist_to_argv): Don't unescape expansions.
9043
0494408e
VS
90442012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
9045
9046 * include/grub/net.h (grub_net_card): New member txbufsize.
9047 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum values
9048 GRUB_IEEE1275_FLAG_NO_OFNET_SUFFIX and
9049 GRUB_IEEE1275_FLAG_VIRT_TO_REAL_BROKEN.
9050 * grub-core/net/drivers/efi/efinet.c (grub_efinet_findcards): Use
9051 txbufsize.
9052 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Use
9053 compatible property to check for macs. Set
9054 GRUB_IEEE1275_FLAG_NO_OFNET_SUFFIX and
9055 GRUB_IEEE1275_FLAG_VIRT_TO_REAL_BROKEN on macs.
9056 * grub-core/net/drivers/ieee1275/ofnet.c (card_open): Don't add suffix
9057 if GRUB_IEEE1275_FLAG_NO_OFNET_SUFFIX is set.
9058 (send_card_buffer): Use txbuf.
9059 (grub_ofnet_findcards): Allocate txbuf. Simplify code flow and move
9060 nested function out of the parent while on it.
9061
cc35fe8f
VS
90622012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
9063
9064 * grub-core/net/drivers/ieee1275/ofnet.c (get_card_packet): Fix packet
9065 presence check.
9066 (grub_ieee1275_net_config_real): Fix config pointer.
9067
970a0a09
VS
90682012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
9069
9070 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args): Extend
9071 filename parsing to non-block devices.
9072
3e19bf87
VS
90732012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
9074
9075 * grub-core/kern/device.c (grub_device_open): Remove dead code.
9076
c62d1a0c
VS
90772012-06-18 Vladimir Serbinenko <phcoder@gmail.com>
9078
9079 * include/grub/elf.h: Rename R_PPC to GRUB_R_PPC to avoid collisions.
9080 All users updated.
9081
ef76bec3
VS
90822012-06-18 Vladimir Serbinenko <phcoder@gmail.com>
9083
9084 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Generate
9085 UUID search command even if hints probing failed.
9086
90872012-06-18 Vladimir Serbinenko <phcoder@gmail.com>
555c786d
VS
9088
9089 * po/POTFILES.in: Regenerated.
9090
70aaf305
VS
90912012-06-17 Vladimir Serbinenko <phcoder@gmail.com>
9092
9093 Speed-up video on fuloong.
9094
9095 * grub-core/bus/bonito.c (grub_pci_device_map_range_cached):
9096 New function.
9097 (grub_pci_device_unmap_range): Handle non-cached address.
9098 * grub-core/video/sis315pro.c (framebuffer): Remove render_target and
9099 add direct_ptr.
9100 (grub_video_sis315pro_video_fini): Unmap direct_ptr.
9101 (grub_video_sis315pro_setup): Use cache address and grub_video_fb_setup.
9102 (grub_video_sis315pro_set_active_render_target): Removed.
9103 (grub_video_sis315pro_get_info_and_fini): Use uncached address.
9104 (grub_video_adapter): Use grub_video_fb_set_active_render_target.
9105 (grub_video_sis315pro_swap_buffers): Call grub_video_fb_swap_buffers and
9106 sync caches.
9107 * include/grub/mips/loongson/pci.h (grub_pci_device_map_range_cached):
9108 New proto.
9109
10400f0b
VS
91102012-06-16 Vladimir Serbinenko <phcoder@gmail.com>
9111
9112 * docs/grub.texi (Multi-boot manual config): New section.
9113
ba67e2c6
VS
91142012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
9115
9116 Avoid slow read-back from VRAM.
9117
9118 * include/grub/video_fb.h (grub_video_fb_doublebuf_update_screen_t):
9119 Move from here ...
9120 * grub-core/video/fb/video_fb.c
9121 (grub_video_fb_doublebuf_update_screen_t): ... here. Remove arguments.
9122 * grub-core/video/fb/video_fb.c (framebuf_t): New type.
9123 (front_target): Remove front_target. Add pages.
9124 (grub_video_fb_init): Skip setting front_pages.
9125 (grub_video_fb_fini): Likewise.
9126 (doublebuf_blit_update_screen): Use pages.
9127 (grub_video_fb_doublebuf_blit_init): Likewise.
9128 (doublebuf_pageflipping_init): Allocate offscreen buffer.
9129 (doublebuf_pageflipping_update_screen): Use offscreen buffer.
9130 (grub_video_fb_setup): Prefer doublebuffing.
9131
377c98cb
VS
91322012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
9133
9134 * grub-core/normal/main.c (GRUB_MOD_INIT): Ignore errors when loading
9135 gzio.
9136
eac49cff
VS
91372012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
9138
9139 Add loongson tests.
9140
9141 * tests/util/grub-shell.in: Handle loongson.
9142 * tests/partmap_test.in: Add loongson to the list of platform using ATA
9143 drivers.
9144 * grub-core/tests/boot/linux.init-mips.S (SHUTDOWN_MAGIC3) [REBOOT]:
9145 Reboot instead of shutdown if REBOOT is defined.
9146
0321415e
VS
91472012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
9148
9149 * grub-core/lib/mips/loongson/reboot.c (grub_reboot): Use 32-bit
9150 sized ports since unlike on real hardware qemu supports only 32-bit
9151 regs.
9152
3f2bdd8f
VS
91532012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
9154
9155 * Makefile.util.def (grub-mkrescue): Enable on loongson.
9156 * util/grub-mkrescue.in: Handle loongson.
9157
29a049c9
VS
91582012-06-14 Vladimir Serbinenko <phcoder@gmail.com>
9159
9160 * util/getroot.c (convert_system_partition_to_system_disk) [__APPLE__]:
9161 Set is_part appropriately.
9162 (grub_util_biosdisk_get_grub_dev): Use is_part rather than comparing
9163 names. Canonicalize partition without full disk.
9164
4abde346
VS
91652012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
9166
9167 Revert usb-quiesce since it's wrong.
9168
9169 * grub-core/disk/ieee1275/ofdisk.c (quiesce): Removed.
9170 (grub_ofdisk_init): Don't do quiesce.
9171
61f1d93b
VS
91722012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
9173
9174 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Apply
9175 PowerMac workaround to Xserves as well.
9176 Information supplied by: Benjamin Herrenschmidt.
9177
a09eb541
VS
91782012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
9179
9180 Don't assume that beginning address is also the entry point on ppc.
9181
9182 * grub-core/loader/powerpc/ieee1275/linux.c (linux_entry): New variable.
9183 (grub_linux_boot): Use linux_entry.
9184 (grub_linux_load32): Fill linux_entry. Fix setting linux_addr.
9185 (grub_linux_load64): Likewise.
9186
505b3c9b
VS
91872012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
9188
9189 * util/grub-install.in: Fix cross-disk check on non-PreP machines.
9190
cbe0b4ef
VS
91912012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
9192
9193 * grub-core/term/ieee1275/console.c (grub_console_fini): Don't
9194 needlessly lose the console.
9195
3006e981
VS
91962012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
9197
9198 * grub-core/normal/dyncmd.c (read_command_list): Don't access freed
9199 space.
9200
4e5a96b0
VS
92012012-06-11 Vladimir Serbinenko <phcoder@gmail.com>
9202
7da036bb
VS
9203 Remove non-functional EFI grub_get_rtc. Put a better fatal message
9204 than current grub_get_rtc() not implemented when booted with
9205 coreboot without TSC.
9206
9207 * grub-core/Makefile.am: Exclude efi/time.h from kernel headers.
9208 Add machine/time.h to kernel headers on loongson.
9209 * grub-core/Makefile.core.def (kernel): Remove
9210 kern/generic/rtc_get_time_ms.c on qemu-multiboot-coreboot.
9211 * grub-core/kern/efi/efi.c (grub_rtc_get_time_ms): Removed.
9212 (grub_get_rtc): Likewise.
9213 * grub-core/kern/generic/rtc_get_time_ms.c: Include grub/machine/time.h.
9214 * grub-core/kern/i386/coreboot/init.c (grub_get_rtc): Removed.
9215 * grub-core/kern/i386/pc/init.c: Include grub/machine/init.h.
9216 * grub-core/kern/i386/tsc.c (grub_tsc_init)
9217 [!GRUB_MACHINE_PCBIOS && !GRUB_MACHINE_IEEE1275]: Call grub_fatal
9218 rather than installing known non-working time source.
9219 * grub-core/kern/ieee1275/init.c (grub_get_rtc): Removed.
9220 * grub-core/kern/mips/loongson/init.c: Include grub/machine/time.h.
9221 * include/grub/time.h: Don't include machine/time.h.
9222 * include/grub/efi/time.h: Removed.
9223 * include/grub/i386/efi/time.h: Likewise.
9224 * include/grub/i386/ieee1275/time.h: Likewise.
9225 * include/grub/powerpc/ieee1275/time.h: Likewise.
9226 * include/grub/sparc64/ieee1275/time.h: Likewise.
9227 * include/grub/x86_64/efi/time.h: Likewise.
9228
92292012-06-11 Vladimir Serbinenko <phcoder@gmail.com>
9230
9231 Remove dot on i and j when combining with above diacritics.
4e5a96b0
VS
9232
9233 * include/grub/unicode.h (GRUB_UNICODE_DOTLESS_LOWERCASE_I): New enum
9234 value.
9235 (GRUB_UNICODE_DOTLESS_LOWERCASE_J): Likewise.
9236 * grub-core/font/font.c (grub_font_construct_dry_run): Replace i and j
9237 with dotless variants when any combining above is present.
9238
5561c22d
VS
92392012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
9240
9241 * tests/grub_script_expansion.in: Explicitly tell grep that we handle
9242 text and not binary.
9243
96f7e60e
VS
92442012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
9245
9246 Stop polling as soon as we have the packet we were waiting for.
9247
9248 * include/grub/net.h (grub_net_poll_cards): New argument stop_condition.
9249 All users updated.
9250 * grub-core/net/arp.c (have_pending): New var.
9251 (pending_req): Likewise.
9252 (grub_net_arp_send_request): Fill pending_req and use have_pending as
9253 stop indicator.
9254 (grub_net_arp_receive): Set have_pending.
9255 * grub-core/net/dns.c (recv_data): New field stop.
9256 (recv_hook): Set stop.
9257 (grub_net_dns_lookup): Init stop and use as stop condition.
9258 * grub-core/net/http.c (http_establish): Use headers_recv as stop
9259 condition.
9260 * grub-core/net/net.c (grub_net_poll_cards): New argument
9261 stop_condition. Stop when it goes true.
9262 * grub-core/net/tcp.c (grub_net_tcp_open): Use `established' as stop
9263 indicator.
9264 * grub-core/net/tftp.c (tftp_open): Use `have_oack' as stop indicator.
9265
3e747239
VS
92662012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
9267
9268 Keep TX and RX buffers on EFI rather than always allocate new ones.
9269
9270 * include/grub/net.h (grub_net_card_driver): Allow driver to modify
9271 card. All users updated.
9272 (grub_net_card): New members txbuf, rcvbuf, rcvbufsize and txbusy.
9273 * grub-core/net/drivers/efi/efinet.c (send_card_buffer): Reuse buffer.
9274 (get_card_packet): Likewise.
9275 (grub_efinet_findcards): Init new fields.
9276
f695e99a
VS
92772012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
9278
9279 * grub-core/term/ieee1275/serial.c (do_real_config): Fix cast to fix
9280 compilation error on sparc64.
9281
9e5e66d1
VS
92822012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
9283
9284 Use ITC on IA64 rather than broken routine based on daytime.
9285
9286 * grub-core/kern/efi/efi.c (grub_rtc_get_time_ms) [__ia64__]: Remove on
9287 ia64.
9288 (grub_get_rtc) [__ia64__]: Likewise.
9289 * grub-core/kern/ia64/efi/init.c (divisor): New variable.
9290 (get_itc): New function.
9291 (grub_rtc_get_time_ms): Likewise.
9292 (grub_machine_init): Calibrate ITC.
9293 * include/grub/efi/time.h (grub_get_rtc), (GRUB_TICKS_PER_SECOND):
9294 Keep only on non-ia64. Don't export since it's broken and used only
9295 if TSC is unavailable.
9296
a1767404
VS
92972012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
9298
9299 * grub-core/disk/efi/efidisk.c (find_parent_device): Return the parent
9300 even if it's used.
9301 (name_devices): Replace #if 0 with #ifdef DEBUG_NAMES.
9302 Skip if parent is unused.
9303
34b2bced
VS
93042012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9305
9306 * tests/partmap_test.in: Skip on ppc due to serious firmware bug.
9307
5e619f40
VS
93082012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9309
9310 Fix wildcard escaping.
9311
9312 * grub-core/commands/wildcard.c (wildcard_escape): Moved from here ...
9313 * grub-core/script/execute.c (wildcard_escape): .. to here.
9314 Don't escape dot.
9315 * grub-core/commands/wildcard.c (wildcard_unescape): Moved from here ...
9316 * grub-core/script/execute.c (wildcard_unescape): .. to here.
9317 Don't escape dot.
9318 * grub-core/script/execute.c (gettext_append): Always escape.
9319 (grub_script_arglist_to_argv): Always handle escaping/unescaping.
9320 * grub-core/script/yylex.l: Don't cut away the escaping.
9321 * tests/grub_script_echo1.in: Add tests with wildcard.
9322
c8ca5855
VS
93232012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9324
9325 * grub-core/bus/usb/serial/ftdi.c (real_config): Handle 1.5 stop bits.
9326 (ftdi_hw_configure): Likewise.
9327 * grub-core/bus/usb/serial/pl2303.c (GRUB_PL2303_STOP_BITS_1_5): New
9328 define.
9329 (real_config): Handle 1.5 stop bits.
9330 (pl2303_hw_configure): Likewise.
9331
7183452c
VS
93322012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9333
9334 * Makefile.am: Add ppc linux bootcheck.
9335 * grub-core/tests/boot/linux-ppc.cfg: New file.
9336 * grub-core/tests/boot/linux.init-ppc.S: Likewise.
9337
f57c84cd
VS
93382012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9339
9340 * tests/grub_script_expansion.in: Skip network protocols.
9341
ecfc6207
VS
93422012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9343
9344 * tests/util/grub-shell.in: Use escc-ch-a port on ppc.
9345
8d03d284
VS
93462012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9347
9348 * util/powerpc/ieee1275/grub-mkrescue.in: Handle (and ignore)
9349 --rom-directory.
9350 Add -graft-points.
9351
61c42af0
VS
93522012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9353
9354 ESCC serial driver for conducting sautomated tests in qemu.
9355 Not tested on real hardware.
9356
9357 * include/grub/serial.h (grub_serial_port): New field escc_desc.
9358 * grub-core/term/ieee1275/escc.c: New file.
9359 * grub-core/Makefile.core.def (escc): New module.
9360
08fd1291
VS
93612012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9362
9363 * grub-core/term/ieee1275/serial.c (do_real_config): Set handle to
9364 invalid on error.
9365 (serial_hw_fetch): Don't read invalid handle.
9366 (serial_hw_put): Don't write into invalid handle.
9367
08dafeea
VS
93682012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9369
9370 Add a 1.5 stop bits value.
9371
9372 * grub-core/term/serial.c (grub_cmd_serial): Handle 1.5.
9373 * include/grub/serial.h (grub_serial_stop_bits_t): Add
9374 GRUB_SERIAL_STOP_BITS_1_5.
9375
9068fdcf
VS
93762012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9377
9378 * grub-core/commands/wildcard.c (wildcard_expand): Set default return
9379 value rather than let it uninited.
9380
f4d5820f
VS
93812012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
9382
9383 * grub-core/commands/wildcard.c (+check_file): New function.
9384 (wildcard_expand): Don't expand to non-existing files, expand with
9385 suffix and not attempt to expand if not needed.
9386
3d2de9a7
VS
93872012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
9388
9389 * grub-core/disk/efi/efidisk.c (name_devices): Don't make disks
9390 out of partitions containing other partitions.
9391
c5c81ff9
VS
93922012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
9393
9394 Pass PCIINFO on BIOS to OpenBSD since otherwise it fails to boot
9395 on some qemu versions with GRUB.
9396
9397 * include/grub/i386/openbsd_bootarg.h (OPENBSD_BOOTARG_PCIBIOS): New
9398 define.
9399 (grub_openbsd_bootarg_pcibios): New struct.
9400 * grub-core/loader/i386/bsd.c (grub_openbsd_boot) [GRUB_MACHINE_PCBIOS]:
9401 Add PCIINFO.
9402
08a14e0b
VS
94032012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
9404
9405 * tests/util/grub-shell.in: Trim firmware output on EFI.
9406
cede3ca3
VS
94072012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
9408
9409 * grub-core/Makefile.core.def (vga_text): Disable on muliboot
9410 and coreboot since it's already in kernel.
9411
558d3a60
VS
94122012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
9413
9414 * util/getroot.c (grub_util_get_dm_node_linear_info): Moved from here...
9415 * grub-core/kern/emu/hostdisk.c (grub_util_get_dm_node_linear_info):
9416 to here. New return value start. All users updated.
9417 Recursively scan linear mappings.
9418 * include/grub/emu/hostdisk.h (grub_util_get_dm_node_linear_info): New
9419 proto.
9420 * grub-core/kern/emu/hostdisk.c (grub_hostdisk_find_partition_start):
9421 Use grub_util_get_dm_node_linear_info.
9422 * util/getroot.c (convert_system_partition_to_system_disk): Use
9423 grub_util_info rather than grub_dprintf.
9424 (grub_util_biosdisk_get_grub_dev): Add a new grub_util_info.
9425
60fde14d
VS
94262012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
9427
9428 Move handling of GRUB_QEMU_OPTS to grub-shell so that make check works.
9429
9430 * Makefile.am: Remove GRUB_QEMU_OPTS handling.
9431 * tests/util/grub-shell.in: Add GRUB_QEMU_OPTS handling.
9432
24bd8838
VS
94332012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
9434
9435 * include/grub/types.h (grub_set_unaligned64): New function.
9436 * util/grub-setup.c (write_rootdev): Use unaligned access functions.
9437 (setup): Likewise.
9438
7bc06a49
VS
94392012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9440
9441 * grub-core/disk/ieee1275/ofdisk.c (quiesce): New function.
9442 (grub_ofdisk_fini): Quiesce USB devices.
9443
49cea015
VS
94442012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9445
9446 * grub-core/loader/powerpc/ieee1275/linux.c (grub_linux_boot): Sync
9447 caches.
9448
8dcbe03b
VS
94492012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9450
9451 * util/grub-fstest.c (cmd_crc): Use grub_get_unaligned32 for safety.
9452
5b258735
VS
94532012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9454
9455 * grub-core/disk/pata.c (grub_pata_pio_read)
9456 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Don't byteswap even on mipseb.
9457 (grub_pata_pio_write) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Likewise.
9458
37ba07eb
VS
94592012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9460
9461 Extend automated tests to qemu-mips.
9462
9463 * Makefile.am: reorganise tests and enable qemu-mips.
9464 * configure.ac (COND_mipseb), (COND_mipsel): New conditions.
9465 * grub-core/tests/boot/linux.init-mips.S: New file.
9466 * tests/partmap_test.in: Handle ata0 disks.
9467 * tests/util/grub-shell.in: Handle qemu-mips. Make defaults work on
9468 non-pc i386.
9469
070038f8
VS
94702012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9471
9472 * Makefile.util.def (grub-mkrescue) Anable on mips_qemu_mips and
9473 ia64.
9474 * util/grub-mkrescue.in: Handle qemu-mips and ia64. Add missing
9475 quotes while on it.
9476
004be2cd
VS
94772012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9478
9479 * grub-core/kern/mips/qemu_mips/init.c (grub_exit): Implement.
9480 (grub_halt): Likewise.
9481 * grub-core/lib/mips/qemu_mips/reboot.c (grub_reboot): Likewise.
9482
b1622487
VS
94832012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9484
9485 * grub-core/term/serial.c (grub_serial_register)
9486 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Don't autostart console in order to bring
9487 the behaviour in line with x86 platforms.
9488
b7b4ab33
VS
94892012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9490
9491 * grub-core/commands/hdparm.c (le16_to_char): Always byte-swap strings.
9492 (grub_ata_strncpy): Likewise.
9493 (grub_ata_identify): Add missing byteswaps.
9494
5e3535ae
VS
94952012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9496
9497 * grub-core/term/i386/pc/vga_text.c (screen_write_char): Add missing
9498 byte-swap.
9499 (screen_read_char): Likewise.
9500 (grub_vga_text_cls): Likewise.
9501
c21b17e6
VS
95022012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9503
9504 * grub-core/loader/efi/chainloader.c (copy_file_path): Handle non-ASCII
9505 filenames.
9506 (make_file_path): Likewise.
9507
bf293dec
VS
95082012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9509
9510 * grub-core/disk/ieee1275/ofdisk.c (scan): Support vscsi on IBM
9511 machines.
9512 Tested by: Paulo Flabiano Smorigo.
9513 Crucial information about API supplied by: Coleen <Last name unknown>.
9514 Reviewed by: Coleen <Last name unknown>.
9515
81f6ef0e
VS
95162012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
9517
9518 * util/grub-mkimage.c: Disable -Wcast-align.
9519
7284143a
VS
95202012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
9521
9522 * grub-core/genmod.sh.in: Enable objconv errors 2030, 2050 and 2031
9523 as they are fatal.
9524
b99f3e00
VS
95252012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
9526
9527 * grub-core/Makefile.am (rs_decoder.S): Add missing -ffreestanding.
9528
944f752d
VS
95292012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
9530
9531 * util/grub-probe.c (escape_of_path): Fix double free.
9532
6cce6f38
VS
95332012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
9534
9535 * grub-core/commands/videoinfo.c (hook): Show pitch.
9536
1e1eb50e
VS
95372012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
9538
9539 * util/grub.d/20_linux_xen.in: Skip xen-syms.
9540
1c715b5a
VS
95412012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
9542
9543 * util/grub-probe.c (escape_of_path): Don't add ieee1275/.
9544 (probe): Add ieee1275 to OFW devices.
9545
007ae52d
VS
95462012-06-04 Vladimir Serbinenko <phcoder@gmail.com>
9547
9548 * util/ieee1275/ofpath.c (of_path_of_scsi): Fix wrong format specifier.
9549
4557a36d
VS
95502012-06-04 Vladimir Serbinenko <phcoder@gmail.com>
9551
9552 Handle IBM OFW path.
9553
9554 * util/ieee1275/ofpath.c (find_obppath): Use devspec if obppath isn't
9555 available.
9556 (of_path_of_scsi): Handle vdevice.
9557
efbeefe9
VS
95582012-06-03 Vladimir Serbinenko <phcoder@gmail.com>
9559
9560 * grub-core/mmap/i386/pc/mmap.c (malloc_hook):
9561 Allocate in multiples of 16 to avoid adding a few bytes free region the
9562 windows bugs upon.
9563
15a940bb
VS
95642012-06-03 Vladimir Serbinenko <phcoder@gmail.com>
9565
9566 * grub-core/commands/i386/pc/drivemap.c (install_int13_handler):
9567 Allocate in multiples of 16 to avoid adding a few bytes free region the
9568 windows bugs upon.
9569 * grub-core/mmap/i386/pc/mmap.c (malloc_hook): Likewise.
9570
6e5efd60
VS
95712012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
9572
9573 * grub-core/video/efi_gop.c (grub_video_gop_setup): Reject invalid
9574 resolutions.
9575 * grub-core/video/i386/pc/vbe.c (grub_vbe_get_preferred_mode): Likewise.
9576 * grub-core/video/video.c (grub_video_edid_preferred_mode): Likewise.
9577
0d3d137e
IS
95782012-06-02 Isao Shimizu <isaoshimizu@gmail.com>
9579
9580 * util/ieee1275/ofpath.c (check_sas): Fix sas path.
9581
45dbe300
VS
95822012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
9583
9584 * grub-core/normal/menu_entry.c (print_line): Fix off-by-one error which
9585 resulted in \\ at the end of the line.
9586
6d8db947
VS
95872012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
9588
9589 * grub-core/kern/parser.c (grub_parser_state_transitions): Handle \t.
9590 (grub_parser_cmdline_state): Likewise.
9591 (grub_parser_split_cmdline): Likewise.
9592
de89d338
VS
95932012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
9594
9595 * util/getroot.c (grub_guess_root_devices): Don't canonicalise
9596 /dev/root and /dev/dm-*.
9597
00d41dee
VS
95982012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
9599
9600 * grub-core/normal/menu_entry.c (update_screen): Fix loop condition to
9601 fix partially stale display.
9602
f95d1f11
VS
96032012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
9604
9605 * grub-core/normal/menu_entry.c (backward_char): Use right line for
9606 substraction.
9607
6297e197
VS
96082012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
9609
9610 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_write) [__linux__]:
9611 Fix MBR remapping workaround.
9612 (grub_util_biosdisk_read) [__linux__]: Likewise.
9613
8a7ecad3
VS
96142012-06-01 Vladimir Serbinenko <phcoder@gmail.com>
9615
9616 * util/grub-install.in: Check for ieee1275 and not ieee1276.
9617
2b34f944
VS
96182012-05-31 Vladimir Serbinenko <phcoder@gmail.com>
9619
9620 * configure.ac: Bump to beta6.
9621
684aef11
CW
96222012-05-31 Christer Weinigel <christer@weinigel.se>
9623
9624 * grub-core/normal/main.c (grub_file_getline): Fix off-by-one error.
9625
05b0bb91
VS
96262012-05-31 Vladimir Serbinenko <phcoder@gmail.com>
9627
9628 * grub-core/loader/i386/linux.c (grub_linux_boot): Use right version.
9629 (grub_cmd_linux): Likewise.
9630
bda36bfa
CW
96312012-05-31 Christer Weinigel <christer@weinigel.se>
9632
9633 Fix EHCI low-speed.
9634
9635 * grub-core/bus/usb/ehci.c (GRUB_EHCI_MULT_ONE): Fix the value.
9636 (GRUB_EHCI_MULT_TWO): Likewise.
9637 (GRUB_EHCI_MULT_THREE): Likewise.
9638 (GRUB_EHCI_CMASK_MASK): New enum value.
9639 (GRUB_EHCI_SMASK_MASK): Likewise.
9640 (GRUB_EHCI_CMASK_OFF): Likewise.
9641 (GRUB_EHCI_SMASK_OFF): Likewise.
9642 (grub_ehci_pci_iter): Enable periodic schedule.
9643 (grub_ehci_parse_notrun): Likewise.
9644 (grub_ehci_restore_hw): Likewise.
9645 (grub_ehci_setup_qh): Set flags for low speed transfers.
9646 (grub_ehci_find_qh): Use periodic list for low speed.
9647 (grub_ehci_setup_transfer): Check periodic queue as well.
9648 (grub_ehci_check_transfer): Likewise.
9649 (grub_ehci_cancel_transfer): Cancel periodic transfer.
9650
e12bcb1c
PFS
96512012-05-31 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
9652
9653 * util/grub-install.in: Write core.elf in PReP even if the --no-nvram
9654 parameter is used.
9655
bcc75fb3
PJ
96562012-05-31 Peter Jones <pjones@redhat.com>
9657
9658 * include/grub/i386/linux.h (linux_kernel_params): Add v206.
9659 * grub-core/loader/i386/linux.c (grub_linux_boot): Use v206.
9660 (grub_cmd_linux) [__x86_64__]: Validate grub_efi_system_table.
9661
f19cb95e
VS
96622012-05-31 Vladimir Serbinenko <phcoder@gmail.com>
9663
9664 * grub-core/loader/i386/linux.c (grub_linux_boot): Fix overflow and
9665 uninited variable. Allocate at least setup_sects.
9666
a4e5ca80
VS
96672012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
9668
9669 Fix handling of EFI with big memory maps.
9670
9671 * grub-core/loader/i386/linux.c (GRUB_LINUX_CL_OFFSET): Removed.
9672 (real_mode_mem): Likewise.
9673 (real_mode_target): Likewise.
9674 (real_mode_pages): Likewise.
9675 (prot_mode_pages): Likewise.
9676 (linux_params): New var.
9677 (linux_cmdline): Likewise.
9678 (free_pages): Don't set real mode variables.
9679 (allocate_pages): Don't allocate real mode memory.
9680 (grub_e820_add_region): Remove the limit.
9681 (grub_linux_boot): Allocate and copy real mode memory.
9682 (grub_linux_unload): Free linux_cmdline.
9683 (grub_cmd_linux): Use temporary storage for parameters.
9684 (grub_cmd_initrd): Likewise.
9685 * include/grub/i386/linux.h (GRUB_E820_MAX_ENTRY): Removed.
9686 (linux_kernel_params): Make it 1K big.
9687
ddb73558
VS
96882012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
9689
9690 * Makefile.util.def: Remove -Wno-format.
9691 * grub-core/Makefile.core.def: Likewise.
9692
1c4afb60
VS
96932012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
9694
9695 * tests/cmp_unit_test.c: Add missing failure message.
9696 * tests/example_unit_test.c: Likewise.
9697 * tests/printf_unit_test.c: Likewise.
9698
941e3a6d
VS
96992012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
9700
9701 * grub-core/commands/gptsync.c (grub_cmd_gptsync): Propagate the
9702 relaxation of protective MBR requirements.
9703
b105df76
VS
97042012-05-29 Vladimir Serbinenko <phcoder@gmail.com>
9705
9706 * configure.ac: Add condition for COND_HOST_XNU.
9707 * Makefile.util.def (10_xnu): New script.
9708 * util/grub.d/10_xnu.in: New file, extracted from 30_os_prober.in.
9709
84e1569e
VS
97102012-05-29 Vladimir Serbinenko <phcoder@gmail.com>
9711
9712 * grub-core/kern/i386/pc/startup.S [__APPLE__]: Add a workaround for
9713 objconv bug.
9714
130c0f77
VS
97152012-05-29 Vladimir Serbinenko <phcoder@gmail.com>
9716
9717 * grub-core/gdb/i386/machdep.S: Make usable with Apple assembler.
9718 Binary on other platforms stays identical.
9719
6fd0b143
VS
97202012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
9721
9722 * configure.ac: Remove APPLE_CC and add -Wl,-allow_stack_execute on
9723 Apple.
9724
0af1751d
VS
97252012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
9726
9727 * gentpl.py: Ignore error 2022 in objconv since it's irrelevant for us.
9728
176d5f7d
VS
97292012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
9730
9731 * grub-core/lib/posix_wrap/sys/types.h [__APPLE__]: Include stddef
9732 rather than defining size_t ourselves to avoid conflict.
9733
7de5e20a
VS
97342012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
9735
9736 * grub-core/fs/hfs.c (grub_hfs_dir): Use memset instead of
9737 initialisation to avoid __bzero reference.
9738
f7143efe
VS
97392012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
9740
9741 * grub-core/boot/i386/pc/startup_raw.S [__APPLE__]: Add Apple assembly
9742 version.
9743 * grub-core/commands/i386/pc/drivemap_int13h.S [__APPLE__]: Likewise.
9744 * grub-core/kern/i386/pc/startup.S [__APPLE__]: Likewise.
9745 * grub-core/lib/i386/relocator16.S [__APPLE__]: Likewise.
9746 * grub-core/lib/i386/relocator_common.S [__APPLE__]: Likewise.
9747 * grub-core/mmap/i386/pc/mmap_helper.S [__APPLE__]: Likewise.
9748
e6ad0555
VS
97492012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
9750
9751 * grub-core/efiemu/runtime/efiemu.c: Replace APPLE_CC with __APPLE__.
9752 * grub-core/kern/misc.c: Likewise.
9753 * grub-core/loader/i386/xnu.c: Likewise.
9754 * include/grub/i386/tsc.h: Likewise.
9755 * include/grub/symbol.h: Likewise.
9756
4a5a3c4a
VS
97572012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
9758
9759 * include/grub/list.h (grub_bad_type_cast_real): Remove return.
9760 * include/grub/misc.h (ATTRIBUTE_ERROR): Make into noreturn attribute
9761 on older compiler.
9762
037f6d90
VS
97632012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
9764
9765 * util/getroot.c (grub_util_biosdisk_get_grub_dev) [__APPLE__]:
9766 Implement Apple flavour.
9767 (convert_system_partition_to_system_disk) [__APPLE__]: Likewise.
9768
f7194551
VS
97692012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
9770
9771 * include/grub/misc.h (memcmp) [__APPLE__]: Mark as regparm 0.
9772 (memmove) [__APPLE__]: Likewise.
9773 (memcpy) [__APPLE__]: Likewise.
9774 (memset) [__APPLE__]: Likewise.
9775 * grub-core/kern/misc.c (memcmp) [__APPLE__]: Likewise.
9776 (memmove) [__APPLE__]: Likewise.
9777 (memcpy) [__APPLE__]: Likewise.
9778 (memset) [__APPLE__]: Likewise.
9779
85a730ca
VS
97802012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
9781
9782 * grub-core/genmod.sh.in: Fix a bug in Apple part which caused
9783 dependency discard.
9784
40e80b94
VS
97852012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
9786
9787 * grub-core/normal/main.c (read_config_file): Provide config_file and
9788 config_directory.
9789 * util/grub.d/41_custom.in: Use config_directoy when available.
9790
9da59c32
VS
97912012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
9792
9793 * grub-core/fs/bfs.c (iterate_in_b_tree): Add missing NESTED_FUNC_ATTR.
9794 (grub_bfs_dir): Likewise.
9795
2787ae53
PJ
97962012-05-27 Peter Jones <pjones@redhat.com>
9797
9798 The old code gives arguments to a printf function which can't work
9799 correctly, and the compiler complains.
9800
9801 * grub-core/tests/example_functional_test.c (example_test): Add
9802 missing text.
9803 * grub-core/tests/lib/test.c (add_failure): Rewrite.
9804 * include/grub/test.h (grub_test_assert_helper): New declaration.
9805 (grub_test_assert): Use grub_test_assert_helper.
9806
526ef13d
VS
98072012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
9808
9809 * grub-core/Makefile.core.def (example_functional_test): Rename to ...
9810 (exfctest): ... this to avoid overlong filenames.
9811 All users updated.
9812
20dd511c
VS
98132012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
9814
9815 Handle "." and ".." on squashfs.
9816
9817 * grub-core/fs/squash4.c (grub_fshelp_node): New field stsize.
9818 Make inode numbers into stack.
9819 (grub_squash_read_symlink): Use stack.
9820 (grub_squash_iterate_dir): Use stack. Create "." and ".." nodes.
9821 (make_root_node): Fill stack.
9822 (grub_squash_open): Use stack.
9823
1d80c62a
VS
98242012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
9825
9826 * grub-core/kern/emu/hostdisk.c (open_device): Set dest->dev to 0 after
9827 freeing.
9828
d336f652
VS
98292012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
9830
9831 * util/grub-mkconfig_lib.in (print_option_help): Properly redirect
9832 stderr on test calls.
9833
8b43f587
VS
98342012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
9835
9836 * grub-core/fs/jfs.c (grub_jfs_find_file): Handle "." and "..".
9837
80a3dc3f
VS
98382012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
9839
9840 * grub-core/fs/ntfs.c (list_file): Set mtime to correct value.
9841
47e297d4
VS
98422012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
9843
9844 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Don't skip "." and
9845 "..".
9846
df042ccb
VS
98472012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
9848
9849 * grub-core/fs/hfsplus.c (grub_hfsplus_catfile): New field parentid.
9850 (grub_hfsplus_iterate_dir): Add "." and "..".
9851
fc977f48
VS
98522012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
9853
9854 * grub-core/fs/cpio.c (canonicalize): Handle "..".
9855 (grub_cpio_find_file) [MODE_USTAR]: Handle hardlinks.
9856
f3250e5f
VS
98572012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
9858
9859 * grub-core/fs/btrfs.c (GRUB_BTRFS_ITEM_TYPE_INODE_REF): New enum value.
9860 (find_path): Handle "." and "..".
9861
fd8ed4c5
VS
98622012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
9863
9864 * grub-core/fs/affs.c (grub_affs_file): New field hardlink.
9865 (GRUB_AFFS_FILETYPE_HARDLINK): New enum value.
9866 (grub_affs_iterate_dir): Handle hardlinks.
9867
4ce776d2
MG
98682012-05-26 Matthew Garrett <mjg@redhat.com>
9869
9870 * grub-core/term/efi/console.c (grub_efi_console_init): Set text mode.
9871 (grub_efi_console_fini): Likewise.
9872 * grub-core/video/efi_gop.c (framebuffer): New field offscreen.
9873 (grub_video_gop_fill_mode_info): Rename to ...
9874 (grub_video_gop_fill_real_mode_info): ... this.
9875 (grub_video_gop_fill_mode_info): New function.
9876 (grub_video_gop_setup): Setup double framebuffer.
9877 (grub_video_gop_get_info_and_fini): Use original framebuffer.
9878 Free offscreen.
9879 (grub_video_gop_swap_buffers): Copy framebuffer.
9880 (grub_video_gop_fini): Free offscreen buffer.
9881 * include/grub/efi/graphics_output.h (grub_efi_gop_blt_operation_t):
9882 New enum.
9883 (grub_efi_gop_blt_pixel): New struct.
9884
683031ba
VS
98852012-05-26 Vladimir Serbinenko <phcoder@gmail.com>
9886
9887 * gentpl.py: Remove error disabling for objconv.
9888
c2deb798
VS
98892012-05-26 Vladimir Serbinenko <phcoder@gmail.com>
9890
9891 * configure.ac: Remove -Wunitialized as it's not available on older
9892 compilers.
9893
98942012-05-26 Vladimir Serbinenko <phcoder@gmail.com>
77ceedb6
VS
9895
9896 Fix extent overflow comparator.
9897
9898 * grub-core/fs/hfsplus.c (grub_hfsplus_extkey_internal): Add type.
9899 (grub_hfsplus_read_block): Set type.
9900 (grub_hfsplus_cmp_extkey): Compare type.
9901
d6b1fd36
VS
99022012-05-25 Vladimir Serbinenko <phcoder@gmail.com>
9903
9904 * util/grub-fstest.c (cmd_cmp): Fix stat'ing of wrong file.
9905
0a9aa0f6
VS
99062012-05-24 Vladimir Serbinenko <phcoder@gmail.com>
9907
9908 * grub-core/fs/hfsplus.c (grub_hfsplus_label): Use found ptr rather
9909 than 0.
9910
8360e159
VS
99112012-05-24 Vladimir Serbinenko <phcoder@gmail.com>
9912
9913 * Makefile.am (starfield_DATA): Add dejavu_bold_14.pf2.
9914 (dejavu_bold_14.pf2): New target.
9915
501b9e4b
VS
99162012-05-24 Vladimir Serbinenko <phcoder@gmail.com>
9917
9918 * configure.ac: Fix djvu font detection.
9919
7026b0e2
VS
99202012-05-23 Vladimir Serbinenko <phcoder@gmail.com>
9921
9922 * grub-core/normal/misc.c (grub_normal_print_device_info): Dsiplay
9923 ext* instead of ext2.
9924
c2a51ade
VS
99252012-05-23 Vladimir Serbinenko <phcoder@gmail.com>
9926
9927 * grub-core/normal/term.c (read_terminal_list): Terminate the terminal
9928 name with \0.
9929
8f803a5d
JU
99302012-05-22 Jordan Uggla <jordan.uggla@gmail.com>
9931
9932 * docs/grub-dev.texi: Remove dot from .png.
9933
13c6353f
VS
99342012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
9935
9936 * grub-core/partmap/gpt.c (grub_gpt_partition_map_iterate): Accept
9937 protective entry in any slot.
9938 * grub-core/partmap/msdos.c (grub_partition_msdos_iterate): Reject
9939 if protective entry is found in any slot.
9940
9941 Protective entry in non-first slot make no sense but is a widespread
9942 brain damage.
9943
4cf6be1b
VS
99442012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
9945
9946 * grub-core/fs/squash4.c (grub_squash_read_data): Add missing byte-swap.
9947
937d1c44
VS
99482012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
9949
9950 * grub-core/fs/reiserfs.c (grub_reiserfs_iterate_dir): Fix size byteswap
9951 with old reiserfs.
9952 (grub_reiserfs_open): Don't free root.
9953
021d90ec
VS
99542012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
9955
9956 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Set currnode to 0
9957 after freeing for safety.
9958
967b2b64
VS
99592012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
9960
9961 * grub-core/commands/sleep.c (do_print): Add missing grub_refresh.
9962 Reported by: Jordan Uggla.
9963
34274d02
JU
99642012-05-21 Jordan Uggla <jordan.uggla@gmail.com>
9965
967b2b64
VS
9966 * docs/grub.texi Fix documentation of GRUB_HIDDEN_TIMOUNT to match the
9967 actual implementation. Specifically, clarify that the grub menu will
9968 be displayed for GRUB_TIMOUT seconds after the hidden timeout has
9969 passed.
34274d02 9970
dcaaae9d
BH
99712012-05-21 Benjamin Herrenschmidt <benh@kernel.crashing.org>
9972
9973 * grub-core/kern/powerpc/dl.c (trampoline_template): Use r12 instead
9974 of r0.
9975
7086ad52
VS
99762012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
9977
9978 Remove unjustified hard dependency of normal.mod on gfxterm.
9979
9980 * include/grub/term.h (grub_term_output): New member fullscreen.
9981 * include/grub/gfxterm.h (grub_gfxterm_fullscreen): Removed.
9982 * grub-core/term/gfxterm.c (grub_gfxterm_fullscreen): Make static.
9983 (grub_gfxterm): Set .fullscreen.
9984 * grub-core/normal/menu.c (menu_init): Use fullscreen.
9985 * grub-core/gfxmenu/gfxmenu.c (GRUB_MOD_INIT): Likewise.
9986
37ed2c9b
VS
99872012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
9988
9989 * docs/grub.texi (Internationalisation/Filesystems): Add precisions
9990 mentioning possible problems with non-ASCII (non-compliant) ISOs.
7086ad52 9991 Mention case-insensitive AFFS, SFS and JFS.
37ed2c9b 9992
a4469c88
VS
99932012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
9994
9995 * grub-core/fs/affs.c (grub_affs_mtime): Add missing grub_dl_ref.
9996
4e461486
VS
99972012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
9998
9999 * grub-core/kern/fs.c (grub_fs_probe): Handle GRUB_ERR_OUT_OF_RANGE as
10000 a bad FS.
10001
aa78f5c4
VS
100022012-05-18 Vladimir Serbinenko <phcoder@gmail.com>
10003
10004 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Mark plain
10005 ISO9660 names as case-insensitive, lowercase it and remove trailing dot.
10006
197626b5
VS
100072012-05-17 Vladimir Serbinenko <phcoder@gmail.com>
10008
10009 * grub-core/fs/jfs.c (grub_jfs_data): New field caseins.
10010 (grub_jfs_mount): Fill caseins.
10011 (grub_jfs_find_file): Respect caseins.
10012
8ad3f28c
VS
100132012-05-17 Vladimir Serbinenko <phcoder@gmail.com>
10014
10015 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Don't strrchr
10016 through UTF-16.
10017
0c6c324e
VS
100182012-05-17 Vladimir Serbinenko <phcoder@gmail.com>
10019
10020 * grub-core/fs/fat.c (grub_fat_find_dir): Fix error message.
10021 New argument origpath. All users updated.
10022
c6666ba6
VS
100232012-05-15 Vladimir Serbinenko <phcoder@gmail.com>
10024
10025 * grub-core/fs/ntfs.c (read_data): Prevent overflow.
10026 (read_attr): Ensure that we read start of possibly compressed block.
10027
e28e5fe5
VS
100282012-05-15 Vladimir Serbinenko <phcoder@gmail.com>
10029
10030 * include/grub/ntfs.h (grub_ntfs_comp_table_element): New struct.
10031 (grub_ntfs_comp): Use grub_ntfs_comp_table_element for comp_table.
10032 All users updated.
10033
5fc23ab2
VS
100342012-05-14 Vladimir Serbinenko <phcoder@gmail.com>
10035
10036 * Makefile.am (starfield_DATA): Replace dejavu.pf2 with dejavu_10.pf2,
10037 dejavu_12.pf2, dejavu_14.pf2 and dejavu_16.pf2.
10038 (dejavu.pf2): Replace with ...
10039 (dejavu_10.pf2), (dejavu_12.pf2), (dejavu_14.pf2), (dejavu_16.pf2):
10040 this.
10041
79dbc21c
VS
100422012-05-14 Vladimir Serbinenko <phcoder@gmail.com>
10043
10044 * util/grub.d/20_linux_xen.in: Add missing line.
10045
d2fcfb0c
VS
100462012-05-14 Vladimir Serbinenko <phcoder@gmail.com>
10047
10048 * include/grub/charset.h (GRUB_UTF16_UPPER_SURROGATE): Fix mask sizes.
10049 (GRUB_UTF16_LOWER_SURROGATE): Likewise.
10050 (grub_utf16_to_utf8): Likewise.
10051
5560e9d6
VS
100522012-05-13 Vladimir Serbinenko <phcoder@gmail.com>
10053
10054 * grub-core/disk/ieee1275/ofdisk.c (scan): Don't scan device tree if
10055 GRUB_IEEE1275_FLAG_NO_TREE_SCANNING_FOR_DISKS is set.
10056 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
10057 GRUB_IEEE1275_FLAG_NO_TREE_SCANNING_FOR_DISKS on IBM hardware.
10058 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum value
10059 GRUB_IEEE1275_FLAG_NO_TREE_SCANNING_FOR_DISKS.
10060
100612012-05-13 Vladimir Serbinenko <phcoder@gmail.com>
bfb320c6
VS
10062
10063 * grub-core/kern/fs.c (grub_fs_probe): Handle GRUB_ERR_OUT_OF_RANGE as
10064 a bad FS.
10065
5560e9d6 100662012-05-13 Vladimir Serbinenko <phcoder@gmail.com>
def3df75
VS
10067
10068 * grub-core/fs/udf.c (read_string): Bail out on size=0.
10069 (grub_udf_read_symlink): Handle read_string failure.
10070
5eae3175
VS
100712012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
10072
10073 * grub-core/kern/emu/hostdisk.c (read_device_map): Improve TRANSLATORS
10074 comment.
10075
c1ad82db
VS
100762012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
10077
10078 Fix handling of UDF symlinks.
10079
10080 * grub-core/fs/udf.c (read_string): New argument outbuf.
10081 All users updated.
10082 (grub_ufs_read_symlink): Rename to ...
10083 (grub_udf_read_symlink): ... this. All users updated.
10084 Handle symlinks with more than one component.
10085
33eca6e0
VS
100862012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
10087
10088 * grub-core/fs/affs.c (grub_affs_read_symlink): Fix handling of long
10089 symlinks. Replace leading colon with a slash.
10090
57f4a70b
VS
100912012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
10092
10093 * grub-core/fs/jfs.c (grub_jfs_find_file): Handle multiple slashes in
10094 filename.
10095
38c8ee20
VS
100962012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
10097
10098 * grub-core/fs/bfs.c (find_in_b_tree) [MODE_AFS]: Fix handling of exact
10099 match in inner node.
10100
2e57f28f
VS
101012012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
10102
10103 * grub-core/fs/bfs.c (mount): Improve filesystem detection reliability.
10104 * grub-core/fs/ext2.c (grub_ext2_mount): Likewise.
10105 * grub-core/fs/hfs.c (grub_hfs_mount): Likewise.
10106 * grub-core/fs/hfsplus.c (grub_hfsplus_mount): Likewise.
10107 * grub-core/fs/jfs.c (grub_jfs_mount): Likewise.
10108 * grub-core/fs/minix.c (grub_minix_mount): Likewise.
10109 * grub-core/fs/ntfs.c (grub_ntfs_mount): Likewise.
10110 * grub-core/fs/romfs.c (grub_romfs_mount): Likewise.
10111 * grub-core/fs/xfs.c (grub_xfs_mount): Likewise.
10112
fe8c2f11
VS
101132012-05-11 Vladimir Serbinenko <phcoder@gmail.com>
10114
10115 Use grub-probe and not cmp to check that disk is empty.
10116
10117 * util/grub-install.in: Use grub-probe for zero-check.
10118 * util/grub-probe.c (PRINT_ZERO_CHECK): New enum value.
10119 (probe): Handle PRINT_ZERO_CHECK.
10120 (argp_parser): Handle -t zero_check.
10121
101222012-05-11 Vladimir Serbinenko <phcoder@gmail.com>
f1a6254c
VS
10123
10124 Flush block cache on adding disk to device map.
10125
10126 * grub-core/kern/emu/hostdisk.c (flush_initial_buffer): New function.
10127 (grub_hostdisk_os_dev_to_grub_drive): Call flush_initial_buffer on
10128 adding.
10129 (read_device_map): Likewise.
10130 (open_device): Flush on opening.
10131
690434e8
VS
101322012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
10133
10134 * grub-core/fs/cpio.c (grub_cpio_find_file): Handle prefix.
10135 (handle_symlink): Fix off-by-one error.
10136 Canonicalize the target.
10137 (grub_cpio_dir): Canonicalize the name.
10138 Fix memory leak.
10139 Set directory.
10140 (grub_cpio_open): Canonicalize the name.
10141
742d2be6
VS
101422012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
10143
10144 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Fix symlink
10145 handling.
10146
3244fe96
VS
101472012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
10148
10149 * grub-core/fs/ufs.c (grub_ufs_find_file): Fix handling of double slash.
10150 * grub-core/fs/minix.c (grub_minix_find_file): Likewise.
10151
8aeb1837
VS
101522012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
10153
10154 * util/grub-menulst2cfg.c (main): Check return value of fwrite.
10155 * util/grub-mklayout.c (write_file): Likewise. New argument fname.
3244fe96 10156 All users updated.
8aeb1837 10157
9133fd05
VS
101582012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
10159
10160 * util/grub.d/20_linux_xen.in: Update initrd list based on 10_linux.in
10161 counterpart.
10162
6d521c5b
VS
101632012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
10164
10165 Fix UFS1 big file support.
10166
10167 * grub-core/fs/ufs.c (INODE): Removed.
10168 (INODE_SIZE): Always use 64-bit byte-swap since size field is always
10169 64-bit.
10170 (INODE_MODE): Simplify.
10171 (grub_ufs_inode): Use uint64_t for size and not int64_t.
10172 (grub_ufs_lookup_symlink): Don't use INODE.
10173
21b82e17
VS
101742012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
10175
10176 Fix minixfs with non-power-of-two blocks since it's supported by minix.
10177
10178 * grub-core/fs/minix.c (GRUB_MINIX_ZONESZ): Use block_size.
10179 (grub_minix_data): Replace log_block_size with block_size.
10180 (grub_minix_read_file): Use block_size but avoid 64-bit division.
10181 (grub_minix_mount): Fill block_size.
10182
101832012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
319621d0
VS
10184
10185 * configure.ac: Bump to beta5.
10186
f417ed04
VS
101872012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
10188
10189 Fix wrapped HFS+ handling.
10190
10191 * grub-core/fs/fshelp.c (grub_fshelp_read_file): New argument
10192 blocks_start. All users updated.
10193 * grub-core/fs/hfsplus.c (grub_hfsplus_read_block): Don't add
10194 wrapping offset.
10195 (grub_hfsplus_read_file): Pass embedding offset to fshelp_read_file.
10196
607d282b
VS
101972012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
10198
10199 Fix long symlinks on reiserfs.
10200
10201 * grub-core/fs/reiserfs.c (grub_fshelp_node): New field size.
10202 (grub_reiserfs_read_symlink): Use grub_reiserfs_read_real.
10203 (grub_reiserfs_iterate_dir): Save size for non-directories.
10204 (grub_reiserfs_open): Don't reread stat block as we already know the
10205 size.
10206 (grub_reiserfs_read): Split into...
10207 (grub_reiserfs_read_real): ... and ...
10208 (grub_reiserfs_read): ...this.
10209
ae16024d
VS
102102012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
10211
10212 Fix non-indexed JFS.
10213
10214 * grub-core/fs/jfs.c (grub_jfs_sblock): New field flags.
10215 (grub_jfs_data): New field namecomponentlen.
10216 (grub_jfs_mount): Fill namecomponentlen.
10217 (grub_jfs_getent): Use namecomponentlen rather than hardcoded 11.
10218
eea1e26e
VS
102192012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
10220
10221 * grub-core/script/yylex.l: Ugly fix for "\\\n ".
10222 * tests/grub_script_echo1.in: Add tests.
10223
df760f77
VS
102242012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
10225
10226 * util/grub-install.in: Ignore empty devicetree directory.
10227
5efb817d
B
102282012-05-08 Bean <bean123ch@gmail.com>
10229
10230 * grub-core/net/ip.c (reassemble): Make asm_buffer into asm_netbuff.
10231 All users updated.
10232 (free_rsm): Free header as well.
10233 (free_old_fragments): Fix memory leak.
10234 * grub-core/net/netbuff.c (grub_netbuff_free): Make return void.
10235 * grub-core/net/tftp.c (tftp_receive): Fix memory leak.
10236 (destroy_pq): Likewise.
10237 * include/grub/net/netbuff.h (grub_netbuff_free): Make return void.
10238
668ea6d2
VS
102392012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
10240
10241 * grub-core/commands/hashsum.c (grub_cmd_hashsum): Align space for
10242 resulting hash as a precaution.
10243
1739b1fe
VS
102442012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
10245
10246 * grub-core/net/bootp.c (set_env_limn_ro): Replace reserved ':' with
10247 '_' in variable names.
10248 * grub-core/net/net.c (grub_net_network_level_interface_register):
10249 Likewise.
10250
6ae485aa
VS
102512012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
10252
10253 Fix AFFS with non-512B blocks.
10254
10255 * grub-core/fs/affs.c (grub_affs_rblock): Make type uint32_t.
10256 (AFFS_MAX_LOG_BLOCK_SIZE): New definition.
10257 (grub_affs_data): Replace blocksize with log_blocksize.
10258 (grub_affs_read_block): Fix non-512B blocks.
10259 (grub_affs_read_symlink): Likewise.
10260 (grub_affs_iterate_dir): Likewise. Fix freeing corruption.
10261 (grub_affs_read): Fix non-512B blocks.
10262 (grub_affs_label): Likewise.
10263 (grub_affs_mtime): Likewise.
10264 (grub_affs_mount): Fix block detection routine.
10265
d20fab84
VS
102662012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
10267
10268 Add filesystem mtime to AFFS.
10269
10270 * grub-core/fs/affs.c (grub_affs_file): Make type unsigned.
10271 (aftime2ctime): New function.
10272 (grub_affs_dir): Use aftime2ctime.
10273 (grub_affs_label): Fix return value.
10274 (grub_affs_mtime): New function.
10275 (grub_affs_fs): Add mtime.
10276
e87b10f5
VS
102772012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
10278
10279 * grub-core/fs/affs.c (grub_affs_read_symlink): Convert latin1 into
10280 UTF-8.
10281
7dceec9b
VS
102822012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
10283
10284 * grub-core/fs/sfs.c (grub_sfs_read_symlink): Convert latin1 into
10285 UTF-8.
10286
2f48221f
VS
102872012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
10288
10289 * grub-core/fs/affs.c (grub_affs_iterate_dir): Mark as case insensitive.
10290
dacd85cf
VS
102912012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
10292
10293 * grub-core/fs/sfs.c (grub_sfs_rblock): New fields createtime and
10294 flags.
10295 (FLAGS_CASE_SENSITIVE): New enum value.
10296 (cache_entry): New struct.
10297 (grub_fshelp_node): Add fields cache_off, next_extent, cache_allocated,
10298 cache_size and cache.
10299 (grub_sfs_data): Remove blocksize. All users switched to log_blocksize.
10300 Add log_blocksize and fshelp_flags.
10301 (grub_sfs_read_extent): Handle non-512 blocks.
10302 (grub_sfs_read_block): Add cаche and handle non-512 blocks.
10303 (grub_sfs_read_file): Handle non-512 blocks.
10304 (grub_sfs_mount): Handle non-512 blocks. Fill log_blocksize and
10305 fshelp_flags.
10306 (grub_sfs_read_symlink): Handle non-512 blocks.
10307 (grub_sfs_iterate_dir): Init new fields. Mark as case-insensitive.
10308 (grub_sfs_dir): Free cache.
10309 (grub_sfs_close): Likewise.
10310
24e9a854
VS
103112012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
10312
10313 * grub-core/fs/bfs.c (read_bfs_file): Fix overflow with over 2TiB
10314 filesystems.
10315
62ace64d
VS
103162012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
10317
10318 * grub-core/fs/affs.c (grub_affs_read_block): Fix theoretical overflow.
10319
83b2e89c
VS
103202012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
10321
10322 * grub-core/commands/ls.c (grub_ls_list_files): Fix overflow.
10323
75ccaea3
VS
103242012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
10325
10326 * grub-core/fs/sfs.c (grub_fshelp_node): Fix types.
10327 (grub_sfs_read_extent): Likewise.
10328 (grub_sfs_read_block): Likewise.
10329 (grub_sfs_mount): Likewise.
10330 (grub_sfs_iterate_dir): Likewise.
10331 (grub_sfs_read_symlink): Use strncpy instead of strcpy.
10332 (grub_sfs_read): Remove unnecessarry and wrong temporary variable.
10333
1b8463f2
VS
103342012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10335
10336 Fix errors on compressed NTFS with 512B clusters.
10337
10338 * include/grub/ntfs.h (grub_ntfscomp_func_t): Use appropriately sized
10339 types.
10340 * grub-core/fs/ntfs.c (grub_ntfs_read): Return correct -1 on error and
10341 not 0.
10342 * grub-core/fs/ntfscomp.c (read_block): Use appropriately-sized types.
10343 Relax check for inline extents.
10344 (ntfscomp): Return correct -1 on error and not 0.
10345
4f8e368f
VS
103462012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10347
10348 * util/grub-install.in: Fix handling of prefix containing spaces.
10349
6f5d5ee8
VS
103502012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10351
10352 * grub-core/fs/squash4.c (grub_squash_inode): Fix offset field.
10353 (grub_squash_read_data): Fix offset byte-swapping.
10354
ce41ab7a
VS
103552012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10356
10357 * grub-core/kern/misc.c (grub_strcmp): Use unsigned comparison as
10358 per common usage and preffered in several parts of code.
10359 (grub_memcmp): Likewise.
10360 (grub_strncmp): Likewise.
10361 * include/grub/misc.h (grub_strcasecmp): Likewise.
10362 (grub_strncasecmp): Likewise.
10363 * Makefile.util.def (cmp_test): New test.
10364 (grub_script_strcmp): Likewise.
10365 * tests/cmp_unit_test.c: New file.
10366 * tests/grub_script_strcmp.in: Likewise.
10367 * grub-core/fs/hfsplus.c (grub_hfsplus_cmp_catkey): Add a comment.
10368
49717bf4
VS
103692012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10370
10371 * include/grub/pci.h: Move enums into no-asm part.
10372
0a308f64
VS
103732012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10374
10375 * grub-core/fs/bfs.c (bfs_strcmp) [MODE_AFS]: Use signed comparison.
10376
1796965f
ST
103772012-05-04 Samuel Thibault <samuel.thibault@ens-lyon.org>
10378
10379 * util/getroot.c (find_hurd_root_device): Try to make error message
10380 and comments to translators clearer.
10381
4e9b2819
VS
103822012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10383
10384 * grub-core/commands/menuentry.c: Fix typo in TRANSLATORS comments.
10385
076aeb50
VS
103862012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10387
10388 * grub-core/kern/fs.c (grub_fs_probe) [GRUB_UTIL]: Add workaround for
10389 btrfs.
10390
19424d94
VS
103912012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10392
10393 * docs/grub.cfg: Update.
10394
ebb73076
VS
103952012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10396
10397 * docs/grub.texi (PXE): Remove not present variables.
10398
9a1b669c
VS
103992012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10400
10401 * grub-core/net/net.c (defserver_set_env): New function.
10402 (defserver_get_env): Likewise.
10403 (GRUB_MOD_INIT): Register net_default_server and pxe_default_server.
10404
d38bf7d3
VS
104052012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10406
10407 * grub-core/kern/emu/hostdisk.c (read_device_map): Skip invalid Fedora
10408 entries.
10409
104102012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
11858300
VS
10411
10412 * grub-core/commands/menuentry.c: Add TRANSLATORS comments.
10413 * grub-core/kern/emu/hostdisk.c: Likewise.
10414
e5e4ca48
ST
104152012-05-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
10416
10417 Handle hurd userspace partitions.
10418
10419 * util/getroot.c (find_hurd_root_device): New function.
10420 (grub_guess_root_devices): Use find_hurd_root_device on Hurd.
10421
56bb5dd5
VS
104222012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10423
10424 * util/getroot.c (convert_system_partition_to_system_disk); Add etherd
10425 names.
10426 Reported by: Bastian Blank.
10427
9e8bc27a
VS
104282012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10429
10430 * grub-core/fs/btrfs.c (grub_btrfs_lzo_decompress): Fix offset when
10431 crossing page boundary.
10432
aa01499d
VS
104332012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10434
10435 Fix B-tree search in BFS, especially in presence of non-ASCII
10436 characters.
10437
10438 * grub-core/fs/bfs.c (bfs_strcmp): New function.
10439 (find_in_b_tree): Use standard bsearch + btree algorithm.
10440
57006035
VS
104412012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10442
10443 * util/grub-fstest.c (cmd_cmp): Avoid comparing devices, pipes
10444 and so on.
10445
9d34bb85
MG
104462012-05-03 Matthew Garrett <mjg@redhat.com>
104472012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10448
10449 Suspend broadcom cards in order to stop their DMA.
10450
10451 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add pci.h on x86 EFI.
10452 * grub-core/Makefile.core.def (kernel): Add pci.c on x86 EFI.
10453 (pci): Don't build on x86 EFI.
10454 * grub-core/bus/pci.c (grub_pci_find_capability): New function.
10455 * grub-core/kern/efi/mm.c (stop_broadcom) [__i386__ || __x86_64__]:
10456 New function.
10457 (grub_efi_finish_boot_services) [__i386__ || __x86_64__]: Call
10458 stop_broadcom if running on EFI.
10459 * include/grub/pci.h (GRUB_PCI_CLASS_NETWORK): New enum value.
10460 (GRUB_PCI_CAP_POWER_MANAGEMENT): Likewise.
10461 (GRUB_PCI_VENDOR_BROADCOM): Likewise.
10462 (grub_pci_find_capability): New proto.
10463
01aab997
VS
104642012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10465
10466 * docs/grub.texi: Remove dot from the extension as it apparently
10467 doesn't work with some makeinfo versions.
10468
fbd8dca6
VS
104692012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10470
10471 * po/Makefile.in.in: Make msgfmt output in little-endian in accordance
10472 with GRUB expectance.
10473
dab797f4
VS
104742012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10475
10476 * util/grub-fstest.c (cmd_cmp): Compare directories recursively.
10477
1516bfb4
VS
104782012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10479
10480 * grub-core/fs/reiserfs.c (grub_reiserfs_iterate_dir): Put a trailing
10481 zero after directory block since last entry may be not 0-terminated if
10482 it ends on block boundary. Use continue instead of if spanning whole
10483 loop.
10484
a3a0eace
VS
104852012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10486
10487 Support 4K sectors UDF inline files.
10488
10489 * grub-core/fs/udf.c (grub_udf_file_entry): Don't specify padding size.
10490 (grub_udf_extended_file_entry): Likewise.
10491 (grub_fshelp_node): Name the anonymous union. Put block at the end.
10492 All users updated.
10493 (get_fshelp_size): New function.
10494 (grub_udf_read_icb): Read whole block.
10495 (grub_udf_iterate_dir): Likewise.
10496 (grub_udf_dir): Likewise.
10497 (grub_udf_open): Likewise.
10498
c82f16c1
VS
104992012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10500
10501 * grub-core/fs/ufs.c (grub_ufs_get_file_block): Support triple indirect.
10502
59fd2aac
VS
105032012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10504
10505 * grub-core/fs/ufs.c (grub_ufs_lookup_symlink): Use proper check for
10506 inline symlinks in addition to workaround.
10507
3b4afb4d
VS
105082012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10509
10510 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Handle read_inode errors.
10511
f45c794a
VS
105122012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10513
10514 * grub-core/fs/xfs.c (GRUB_XFS_EXTENT_BLOCK): Fix bitmask.
10515
f25cecbd
VS
105162012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10517
10518 * grub-core/fs/zfs/zfs.c (nvlist_find_value): Fix return value.
10519
bb9a34e8
VS
105202012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
10521
10522 Fix reiserfs big seek times.
10523
10524 * grub-core/fs/reiserfs.c (grub_reiserfs_get_item): New argument
10525 exact. All users updated.
10526 (grub_reiserfs_read): Use nearest btree search for seeking.
10527 Fix return value on error.
10528
dc478aea
VS
105292012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
10530
10531 * grub-core/commands/legacycfg.c (legacy_file): Default to restricted
10532 entries.
10533 * grub-core/commands/menuentry.c (grub_cmd_menuentry): Likewise.
10534 * docs/grub.texi: Update menuentry description.
10535
8db10f47
VS
105362012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
10537
10538 * util/grub-setup.c (setup): Remove duplicate call to embed. Fixes
10539 crash when embedding onto filesystem.
10540
bcb288ed
VS
105412012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
10542
10543 * util/getroot.c (find_root_devices_from_poolname): Handle spaces in the
10544 name.
10545
a626fdd7
VS
105462012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10547
10548 * grub-core/net/ip.c (handle_dgram): Fix undeclared variable.
10549
b2f68477
VS
105502012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10551
10552 * grub-core/normal/autofs.c (read_fs_list): Revert accidental wrong
10553 commit.
10554
ba15b2af
B
105552012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
105562012-05-01 Bean <bean123ch@gmail.com>
10557
10558 * grub-core/net/ip.c (handle_dgram): Fix DHCP mac comparison.
10559
a188012e
VS
105602012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10561
10562 * grub-core/kern/file.c (grub_file_read): Read nothing if len = 0.
10563 Special behaviour for len = 0 to read whole file isn't used anywhere and
10564 can cause buffer ovewrflows in several places.
10565
f0a53ed2
VS
105662012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10567
10568 * grub-core/normal/autofs.c (read_fs_list): Fix memory leak.
10569
5ed554f0
VS
105702012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10571
10572 Handle RAIDZ on non-512B sectors.
10573
10574 * grub-core/fs/zfs/zfs.c (grub_zfs_device_desc): New member
10575 max_children_ashift.
10576 (fill_vdev_info_real): Fill max_children_ashift.
10577 (read_device): Use max_children_ashift.
10578
ddc58357
VS
105792012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10580
10581 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Fix memory leak.
10582
e3282399
VS
105832012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10584
10585 * grub-core/kern/emu/hostdisk.c (read_device_map): Reject non-standard
10586 disk names.
10587 * docs/grub.texi: Update device.map parts.
10588
ee618bd4
VS
105892012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10590
10591 Don't scan into non-diskfilter devices having diskfilter names.
10592
10593 * grub-core/disk/diskfilter.c (is_valid_diskfilter_name): New function.
10594 (scan_disk): New argument accept_diskfilter. Fix recursion depth
10595 handling.
10596 (scan_disk_hook): New function.
10597
bdf88864
B
105982012-04-29 Bean <bean123ch@gmail.com>
10599
10600 * grub-core/net/drivers/efi/efinet.c (get_card_packet): Fix buffer
10601 allocation.
10602
32745f51
MK
106032012-04-29 Mads Kiilerich <mads@kiilerich.com> (tiny)
10604
10605 * configure.ac: Detect starfield theme font path
10606 /usr/share/fonts/dejavu/DejaVuSans.ttf for Fedora.
10607
bc95c8c0
VS
106082012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
10609
10610 * grub-core/term/ieee1275/console.c (grub_console_dimensions): Use 80x24
10611 geometry on serial consoles.
10612
147fbcab
VS
106132012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
10614
10615 * grub-core/term/terminfo.c (grub_terminfo_readkey): Increase timeout
10616 because of network consoles.
10617
0f42c889
VS
106182012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
10619
10620 * grub-core/term/terminfo.c (grub_terminfo_getkey): Fix incorrect queue
10621 handling.
10622
4a3594c9
VS
106232012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
10624
10625 * grub-core/disk/diskfilter.c (read_segment): Fix the case when disknr
10626 falls on Q syndrom.
10627
5cb53879
VS
106282012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
10629
10630 * grub-core/fs/nilfs2.c (grub_nilfs2_palloc_entry_offset_log):
10631 Fix argument to grub_nilfs2_palloc_bitmap_block_offset.
10632
b282dfe5
VS
106332012-04-25 Vladimir Serbinenko <phcoder@gmail.com>
10634
10635 * grub-core/fs/squash4.c (lzo_decompress): Set grub_errno on error.
10636 Allocate at lest 8192 for temporary buffer as required for lzo.
10637
daa59f47
VS
106382012-04-25 Vladimir Serbinenko <phcoder@gmail.com>
10639
10640 * grub-core/fs/fat.c (grub_fat_mount): Don't add logical_sector_bits
10641 to cluster_bits, since it's already added in.
10642 (grub_fat_read_data): Likewise.
10643
986748ce
VS
106442012-04-25 Vladimir Serbinenko <phcoder@gmail.com>
10645
10646 * grub-core/fs/ntfs.c (grub_ntfs_mount): Support 256-byte sectors,
10647 as long as cluster size is multiple of 512 bytes.
10648
a20f6ad0
VS
106492012-04-23 Vladimir Serbinenko <phcoder@gmail.com>
10650
10651 * util/grub-mkrescue.in: Fix locale directory.
10652
385f9abb
VS
106532012-04-23 Vladimir Serbinenko <phcoder@gmail.com>
10654
10655 * grub-core/kern/emu/hostdisk.c (map): Make static.
10656
1c557d30
B
106572012-04-23 Bean <bean123ch@gmail.com>
10658
10659 * util/grub-fstest.c (fstest): Add missing break.
10660
524b5d3a
ST
106612012-04-22 Samuel Thibault <samuel.thibault@ens-lyon.org>
10662
10663 Fix hurd build.
10664
10665 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_size) [__GNU__]: Do
10666 not define nr variable.
fe4824e9 10667 * util/getroot.c [__GNU__] (strip_extra_slashes, xgetcwd, exec_pipe,
10668 find_root_devices_from_poolname, find_root_devices_from_libzfs,
10669 grub_find_device): Do not define.
524b5d3a 10670
9a06490c
VS
106712012-04-21 Vladimir Serbinenko <phcoder@gmail.com>
10672
10673 Fix kfreebsd compile and behaviour.
10674
10675 * grub-core/kern/emu/hostdisk.c (grub_util_follow_gpart_up): Fix
10676 format-security.
10677 * util/getroot.c: Fix wait.h include.
10678 (grub_guess_root_devices): Error if grub_find_device fails.
10679 (grub_util_get_geom_abstraction): Fix shadowing and format-security.
10680 (grub_util_get_dev_abstraction): Likewise.
10681 (grub_util_pull_device): Likewise.
10682 (grub_util_get_grub_dev): Likewise.
10683 * util/lvm.c (grub_util_lvm_isvolume): Likewise.
10684
48143d96
VS
106852012-04-21 Vladimir Serbinenko <phcoder@gmail.com>
10686
10687 Fix and unify wholedisk detection.
10688
10689 * util/getroot.c (convert_system_partition_to_system_disk): New argument
10690 is_part. All users updated.
10691 (device_is_wholedisk): Removed.
10692 (grub_util_biosdisk_get_grub_dev): Use is_part.
10693
ebbd24f3
VS
106942012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
10695
10696 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_write): Fix opening
10697 mode.
10698
56f7aa1e
VS
106992012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
10700
10701 * configure.ac: Bump to beta4.
10702
9c815e01
VS
107032012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
10704
10705 * grub-core/commands/search_wrap.c (grub_cmd_search): Handle old
10706 --fs-uuid --set UUID syntax.
10707
59e2651a
VS
107082012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
10709
10710 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_write): Fix message
10711 disunification.
10712
54e03cfc
VS
107132012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
10714
10715 * conf/Makefile.common (LDFLAGS_PLATFORM): Use explicit -Wl.
10716
81092a75
MK
107172012-04-18 Mads Kiilerich <mads@kiilerich.com>
10718
10719 * grub-mkconfig_lib.in: Ignore *.rpmnew and *.rpmsave.
10720
f8315e14
MG
107212012-04-18 Mike Gilbert <floppym@gentoo.org>
10722
10723 * util/grub.d/10_linux.in: Fix detection of genkernel initramfs.
10724
1501ac21
B
107252012-04-18 Bean <bean123ch@gmail.com>
10726
10727 * grub-core/disk/ata.c (grub_ata_strncpy): Put terminating zero at right
10728 place.
10729
cb7f944e
VS
107302012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
10731
10732 * grub-core/kern/emu/hostdisk.c (open_device): New argument max. All
10733 users updated.
10734 (grub_util_biosdisk_read): Handle Linux partitions not exactly
10735 corresponding to GRUB partitions.
10736 (grub_util_biosdisk_write): Likewise.
10737
b72d44a1
VS
107382012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
10739
10740 Scan mdraid before LVM.
10741
10742 * include/grub/diskfilter.h (grub_diskfilter_register): Renamed to ..
10743 (grub_diskfilter_register_front): ... this.
10744 (grub_diskfilter_register_back): New function.
10745 All users of grub_diskfilter_register updated.
10746
33d918b8
VS
107472012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
10748
10749 * util/grub-install.in: Fix an automatic target detection bug.
10750
c6ca973d
VS
107512012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
10752
10753 * util/grub-install.in: New option --efi-directory.
10754
b41be562
VS
107552012-04-17 Vladimir Serbinenko <phcoder@gmail.com>
10756
10757 * grub-core/loader/i386/linux.c (allocate_pages): Overwrite low memory
10758 boot services if we have no other choice.
10759
107602012-04-14 Vladimir Serbinenko <phcoder@gmail.com>
10761
10762 * util/grub-mknetdir.in: Rename --override-directory to --directory and
10763 document it.
10764 * tests/util/grub-shell.in: Update to --directory.
10765
e0595a73
VS
107662012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
10767
10768 * grub-core/fs/zfs/zfs.c: Disable -Wstrict-aliasing.
10769
4ed80652
VS
107702012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
10771
10772 * grub-core/fs/minix.c (grub_minix_data): Fix ino type.
10773 (grub_minix_read_file): Likewise.
10774 (grub_minix_read_inode): Likewise.
10775 (grub_minix_find_file): Likewise.
10776 (grub_minix_dir): Likewise.
10777
56008077
VS
107782012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
10779
10780 * util/grub-setup.c (setup): Fix partition handling and blocklist
10781 check.
10782
ee520775
VS
107832012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
10784
10785 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align): Remove
10786 redundant buggy overlap check.
10787
16fc9293
VS
107882012-04-11 Vladimir Serbinenko <phcoder@gmail.com>
10789
10790 * tests/util/grub-shell.in: Set pkgdatadir when calling grub-mkrescue
10791 and grub-mknetdir.
10792
9bab65c4
VS
107932012-04-11 Vladimir Serbinenko <phcoder@gmail.com>
10794
10795 * grub-core/loader/i386/linux.c (grub_cmd_linux): Avoid accessing
10796 kh.loadflags on pre-2.00 kernels.
10797
3c491b47
VS
107982012-04-11 Vladimir Serbinenko <phcoder@gmail.com>
10799
10800 Terminate UNDI and PXE before launching the payload to avoid problems
10801 with DMA.
10802
10803 * grub-core/commands/boot.c (grub_loader_noreturn): Rename to ...
10804 (grub_loader_flags): ... this. All users updated.
10805 (grub_loader_boot): Check for GRUB_LOADER_FLAG_NORETURN.
10806 * grub-core/loader/i386/pc/pxechainloader.c (grub_cmd_pxechain): Mark
10807 loader as GRUB_LOADER_FLAG_PXE_NOT_UNLOAD.
10808 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_shutdown): New
10809 function.
10810 (grub_pxe_restore): Likewise.
10811 (fini_hnd): New var.
10812 (GRUB_MOD_INIT): Register shutdown hook.
10813 (GRUB_MOD_FINI): Shutdown and unregister shutdown hook.
10814 * include/grub/loader.h (GRUB_LOADER_FLAG_NORETURN): New const.
10815 (GRUB_LOADER_FLAG_PXE_NOT_UNLOAD): Likewise.
10816 (grub_loader_set): Rename second argument to flags.
10817
851ffada
VS
108182012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
10819
10820 * grub-core/normal/charset.c (grub_ucs4_to_utf8): Return number of
10821 written bytes.
10822 (grub_get_num_of_utf8_bytes): New function.
10823 (grub_ucs4_to_utf8_alloc): Use grub_get_num_of_utf8_bytes.
10824 * grub-core/normal/menu_entry.c (run): Convert entry to UTF-8 before
10825 executing it.
10826 * include/grub/charset.h (grub_get_num_of_utf8_bytes): New proto.
10827 (grub_ucs4_to_utf8): Change return type.
10828
491c57a8
VS
108292012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
10830
10831 * grub-core/commands/usbtest.c (usb_print_str): Silence spurious
10832 warning.
851ffada
VS
10833 * grub-core/fs/bfs.c (hop_level): Likewise.
10834 * grub-core/net/bootp.c (grub_cmd_bootp): Likewise.
491c57a8 10835
756773df
VS
108362012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
10837
10838 * grub-core/lib/adler32.c: Recode due to license unclearness.
10839
fd556a96
VS
108402012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
10841
10842 * grub-core/io/lzopio.c (read_block_header): Fix incorrect byte swapping
10843 (test_header): Likewise.
10844
9f9d3f69
VS
108452012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
10846
10847 Fix --help formatting.
10848
10849 * util/grub-mkconfig_lib.in (print_option_help): New function.
10850 (grub_fmt): Likewise.
10851 * util/grub-install.in: Use print_option_help and grub_fmt.
10852 * util/grub-kbdcomp.in: Likewise.
10853 * util/grub-mkconfig.in: Likewise.
10854 * util/grub-mknetdir.in: Likewise.
10855 * util/grub-mkrescue.in: Likewise.
10856 * util/grub-mkstandalone.in: Likewise.
10857 * util/grub-reboot.in: Likewise.
10858 * util/grub-set-default.in: Likewise.
10859 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
10860
561ec77e
VS
108612012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
10862
10863 * linguas.sh: Remove autogenerated *.po.
10864
7ec2b021
VS
108652012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
10866
10867 * po/README: Move language fetcing to ...
10868 * linguas.sh: ... here.
10869 * po/README: Point to linguas.sh.
10870
a88f3270
VS
108712012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
10872
10873 * po/README: Exclude ko.po due to disclaimer problems.
10874
d61357ce
VS
108752012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
10876
10877 * grub-core/gettext/gettext.c (grub_gettext_pread): Fix the case when
10878 len = 0.
10879 (grub_gettext_translate_real): Handle 0th string.
10880 (grub_gettext_translate): Ensure that "" isn't translated.
10881
505e41dc
VS
108822012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
10883
10884 * grub-core/disk/diskfilter.c (grub_diskfilter_memberlist): Add
10885 TRANSLATORS comment.
10886 (grub_diskfilter_print_partmap): Propagate changing of error into
10887 warning.
10888
e44092db
VS
108892012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
10890
10891 * include/grub/diskfilter.h (grub_diskfilter_vg): Increase extent_size
10892 to uint64_t to prevent overflow.
10893 (grub_diskfilter_lv): Increase start_extent and extent_count
10894 to uint64_t to prevent overflow.
10895
9b83956a
VS
108962012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
10897
10898 * configure.ac: Increase version.
10899
da0d5b3f
VS
109002012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
10901
10902 Introduce en@cyrillic en@hebrew en@arabic and en@greek.
10903
10904 * po/Rules-translit: New file.
10905 * po/arabic.sed: Likewise.
10906 * po/cyrillic.sed: Likewise.
10907 * po/greek.sed: Likewise.
10908 * po/hebrew.sed: Likewise.
10909 * po/README: Add en@cyrillic en@hebrew en@arabic and en@greek.
10910 * po/Makefile.in.in: Add extra_dist4.
10911
ac66b453
VS
109122012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
10913
10914 Handle big-endian minixfs (fixes minixfs tests on bigendian).
10915
10916 * grub-core/fs/minix.c: Replace le with minix. Add necessary defines,
10917 modify names. Introduce MODE_BIGENDIAN.
10918 * grub-core/fs/minix_be.c: New file.
10919 * grub-core/fs/minix2_be.c: Likewise
10920 * grub-core/fs/minix3_be.c: Likewise.
10921 * Makefile.util.def (libgrubmods): Add minix_be, minix2_be and
10922 minix3_be.
10923 * grub-core/Makefile.core.def (minix_be): New module.
10924 (minix2_be): Likewise.
10925 (minix3_be): Likewise.
10926
109272012-04-01 Felix <email@hamburg.de>
10928
10929 * grub-core/loader/efi/appleloader.c (devpath_7): New var.
10930 (devs): Add MBP 2011.
10931
0a2d5a82
VS
109322012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
10933
10934 * grub-core/font/font.c (blit_comb): Handle dagesh somewhat.
10935
d1625889
VS
109362012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
10937
10938 * grub-core/normal/cmdline.c (print_completion): New field
10939 prompt_len.
10940 (grub_cmdline_get): Handle width properly.
10941
6d36a236
VS
109422012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
10943
10944 * grub-core/commands/lsacpi.c (options): Add missing terminator.
10945
9576977e
VS
109462012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
10947
10948 * include/grub/datetime.h (grub_datetime2unixtime): Fix handling of days
6d36a236 10949 after 29th of February.
9576977e 10950
d73ff15d
VS
109512012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
10952
10953 Fix exfat endianness handling.
10954
10955 * grub-core/fs/fat.c (grub_fat_data): Make fat_sector 32-bit.
10956 (grub_fat_mount) [MODE_EXFAT]: Fix bpb.num_reserved_sectors byte-swap.
10957 (grub_fat_iterate_dir) [MODE_EXFAT]: Fix attr byte-swap.
10958 Byte-swap utf16 when necessary.
10959 (grub_fat_label) [MODE_EXFAT]: Byte-swap utf16 when necessary.
10960
bbb39a45
AB
109612012-03-31 Anton Blanchard <anton@samba.org>
109622012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
10963
10964 Fix btrfs endianness handling.
10965
10966 * grub-core/fs/btrfs.c (key_cmp): Use grub_le_to_cpu for clarity.
10967 (lower_bound): Make root uint64_t. Use root in le.
10968 (grub_btrfs_read_logical): Fix template key init. Fix address byteswap.
10969 (find_path): Fix template key init.
10970 (grub_btrfs_dir): Fix mtime byteswap.
10971 * include/grub/types.h (grub_cpu_to_le64_compile_time): New macro.
10972
354e0af7
VS
109732012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
10974
10975 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): New argument
10976 recursion_depth. Break infinite resursions. All users updated.
10977
4e75f21c
VS
109782012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
10979
10980 * util/getroot.c (convert_system_partition_to_system_disk): Fix use
10981 after free.
10982 Reported by: Peter Jones.
10983
25581802
AB
109842012-03-31 Anton Blanchard <anton@samba.org>
10985
10986 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Do not byteswap
10987 8 bit values.
10988
08fbf92e
VS
109892012-03-28 Vladimir Serbinenko <phcoder@gmail.com>
10990
10991 * util/grub-install.in: Fix nvram call for PreP.
10992
5d1182a6
VS
109932012-03-28 Vladimir Serbinenko <phcoder@gmail.com>
10994
10995 * grub-core/disk/diskfilter.c (grub_diskfilter_memberlist): Degrade
10996 the error when some elements are missing into a warning.
10997
3f8cdd90
VS
109982012-03-28 Vladimir Serbinenko <phcoder@gmail.com>
10999
11000 * grub-core/normal/charset.c (bidi_line_wrap): Fix out-of-range swap.
11001
51006716
CW
110022012-03-28 Colin Watson <cjwatson@ubuntu.com>
11003
11004 * docs/grub.texi (Invoking grub-probe): New section.
11005 Reported by: Filipus Klutiero. Fixes Debian bug #666031.
11006
e1bd676b
VS
110072012-03-27 Vladimir Serbinenko <phcoder@gmail.com>
11008
11009 Fix tab and wide character handling in editor and menu.
11010
11011 * grub-core/normal/charset.c (grub_unicode_aglomerate_comb): Don't
11012 agglomerate control characters with combining marks.
11013 (bidi_line_wrap): Allow break on tab.
11014 (grub_unicode_get_comb_start): New function.
11015 * grub-core/normal/menu_entry.c: Restructure to handle wide characters
11016 and tab correctly.
11017 * grub-core/normal/menu_text.c (print_entry): Replace \n, \r, \b and \e
11018 with a space.
11019 * grub-core/normal/term.c (print_ucs4_terminal): New argument
11020 fixed_tab_size. All users updated.
11021 * include/grub/term.h (GRUB_TERM_TAB_WIDTH): New const.
11022 (grub_term_getcharwidth): Handle \t.
11023 * include/grub/unicode.h (grub_unicode_glyph_dup): Fix allocation
11024 and copy.
11025
22e6a774
VS
110262012-03-26 Vladimir Serbinenko <phcoder@gmail.com>
11027
11028 Handle big-endian mdraid.
11029
11030 * Makefile.util.def (libgrubkern): Add mdraid_linux_be.c.
11031 * grub-core/Makefile.core.def (mdraid09_be): New module.
11032 * grub-core/disk/mdraid_linux.c: Use grub_md_to_cpu* and grub_cpu_to_md*
11033 rather than grub_le_to_cpu* and grub_cpu_to_le*.
11034 * grub-core/disk/mdraid_linux_be.c: New file.
11035
3c0eae66
VS
110362012-03-26 Vladimir Serbinenko <phcoder@gmail.com>
11037
11038 * grub-core/gettext/gettext.c (GRUB_MOD_INIT): Handle errors.
11039
b6cf74c9
VS
110402012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
11041
11042 * util/getroot.c (grub_make_system_path_relative_to_its_root): Fix
11043 missing quotes which caused confusion among translators.
11044
83c93b9c
VS
110452012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
11046
11047 * util/grub-mkconfig_lib.in: Fix typo.
11048
ac6fd218
VS
110492012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
11050
11051 * grub-core/script/argv.c (grub_script_argv_split_append): Skip leading
11052 spaces.
11053 * tests/grub_script_leading_whitespace.in: New file.
11054 * Makefile.util.def (grub_script_leading_whitespace): New test.
11055
ba287dd8
VS
110562012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
11057
11058 * grub-core/kern/dl.c (grub_dl_add): Make global in order for gdb_grub
11059 to work.
11060
d2d58d0a
VS
110612012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
11062
11063 * grub-core/fs/jfs.c (grub_jfs_label): Use first label if second one
11064 starts with control character.
11065
0382d9bb
VS
110662012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
11067
11068 * grub-core/gdb/cstub.c (grub_gdb_inbuf): Increase the size to avoid
11069 overflow.
11070 (grub_gdb_outbuf): Likewise.
11071
d83ff9f9
VS
110722012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
11073
11074 * grub-core/commands/menuentry.c (grub_normal_add_menu_entry): Add
11075 zero terminator. Fixes a crash.
11076
2282da4a
VS
110772012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
11078
11079 * grub-core/loader/i386/linux.c (allocate_pages): Don't allocate
11080 beyond 4 GiB.
11081 (grub_cmd_linux): Use GRUB_LINUX_BZIMAGE_ADDR for non-relocatable
11082 images independently of preffered adderss field.
11083
0ae4f0bd
VS
110842012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
11085
11086 * grub-core/commands/i386/pc/play.c: Improve TRANSLATORS comments.
11087 * grub-core/commands/regexp.c: Likewise.
11088 * grub-core/loader/i386/linux.c: Likewise.
11089 * grub-core/partmap/msdos.c: Likewise.
11090 * grub-core/script/execute.c: Likewise.
11091 * grub-core/term/gfxterm.c: Likewise.
11092
546fbe9b
VS
110932012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
11094
11095 Add variable parsing in $"..." and fix several mismatches with bash.
11096
11097 * Makefile.util.def (grub_script_gettext): New test.
11098 * grub-core/script/execute.c (parse_string): New function.
11099 (gettext_append): Likewise.
11100 (grub_script_arglist_to_argv): Use gettext_append.
11101 * grub-core/script/yylex.l: Fix slash and newline handling in $"...".
11102 * tests/grub_script_gettext.in: New file.
11103
9fdb2d7b
VS
111042012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
11105
11106 Fix handling of leading spaces in scripts.
11107
11108 * grub-core/normal/cmdline.c (grub_cmdline_get): Don't strip leading
11109 spaces.
11110 * grub-core/normal/main.c (grub_file_getline): Remove all preprocessing
11111 other than skipping \r. All users updated.
11112 * tests/grub_script_echo1.in: Add space-related tests.
11113 * util/grub-menulst2cfg.c (main): Remove useless space skipping.
11114
1a1ac4f6
VS
111152012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
11116
11117 * grub-core/commands/cat.c (grub_cmd_cat): Fix termination key check.
11118
b63d89b6
VS
111192012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11120
11121 * configure.ac: Bump up the version to beta2.
11122
17f38c0f
VS
111232012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11124
11125 Fix gettext reload bugs (e.g. inability to disable gettext
11126 once enabled).
11127
11128 * grub-core/gettext/gettext.c: Encapsulate all static variables in
11129 main_context and secondary_context. All functions updated.
11130 (grub_gettext_translate): Rename to ...
11131 (grub_gettext_translate_real): ... this. Return NULL on failed
11132 translate.
11133 (grub_gettext_translate): Handle secondary context.
11134 (grub_gettext_delete_list): Close file and zero-out the context.
11135 (grub_mofile_open): Don't call grub_gettext_delete_list.
11136 Don't close file.
11137 (grub_gettext_init_ext): Call grub_gettext_init_ext. Skip loading
11138 if locale="" to avoid pointless error message.
11139 (grub_gettext_env_write_lang): Update lang even if load fails.
11140 Handle secondary context.
11141 (grub_gettext_reread_prefix): New function.
11142 (read_main): Likewise.
11143 (read_secondary): Likewise.
11144 (GRUB_MOD_INIT): Handle secondary context. Hook and export variables.
11145 (GRUB_MOD_FINI): Handle secondary context. Don't close file.
11146 * grub-core/normal/main.c (read_lists): Call grub_gettext_reread_prefix.
11147 * include/grub/normal.h (grub_gettext_reread_prefix): New proto.
11148
8e56f870
VS
111492012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11150
11151 * configure.ac: Decrease warning level to avoid spurious warnings and
11152 to be able to compile with GCC 4.2.
11153 * Makefile.util.def: Remove -Wno-error=logical-op.
11154
82f6d455
WB
111552012-03-10 William Bittner <william.bittner@gmail.com>
11156
11157 * util/import_unicode.py: Add missing brackets around string for
11158 python 3 support.
11159
1ecd61a4
VS
111602012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11161
11162 Fix efi chainloader on network root.
11163
11164 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Handle
11165 network devices.
11166 * grub-core/net/drivers/efi/efinet.c (grub_efinet_get_device_handle):
11167 New function.
11168
14361ee8
VS
111692012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11170
11171 * grub-core/gfxmenu/gui_progress_bar.c (grub_gui_progress_bar): Remove
11172 unused show_text member.
11173 * docs/grub.texi: Document "text" property.
11174
922aabf3
VS
111752012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11176
11177 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Fix format
11178 in dprintf.
11179
ec316771
VS
111802012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11181
11182 Fix IMSM handling on Fedora.
11183
11184 * util/getroot.c (grub_util_is_imsm): New function.
11185 (grub_util_get_dev_abstraction): Treat IMSM as simple device, not RAID.
11186
0f021838
VS
111872012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11188
11189 * Makefile.am: Strip gold section.
11190 * conf/Makefile.common: Likewise.
11191 * gentpl.py: Likewise.
11192 * grub-core/Makefile.core.def: Likewise.
11193 * grub-core/genmod.sh.in: Likewise.
11194
1039c8eb
VS
111952012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11196
11197 * util/grub.d/10_linux.in: Use stat if grub-probe on root fails.
11198 * util/grub.d/20_linux_xen.in: Likewise.
11199 Based on Debian patch.
11200
6dd412cd
VS
112012012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11202
11203 * util/grub.d/10_linux.in: Fix syntax error resulting in
11204 Richard Laager's patch.
11205 * util/grub.d/20_linux_xen.in: Propagate Richard Laager's patch.
11206
3fd8bae5
VS
112072012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11208
11209 * tests/partmap_test.in: Replace qemu-img usage with dd to decrease
11210 dependencies.
11211
7eea1671
RL
112122012-03-10 Richard Laager <rlaager@wiktel.com>
11213
11214 * util/grub.d/10_linux.in: Fix ZFS root passing.
11215
e8e0566b
VS
112162012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11217
11218 * grub-core/commands/videoinfo.c: Add TRANSLATORS comments.
11219 * grub-core/commands/xnu_uuid.c: Likewise.
11220 * grub-core/loader/efi/appleloader.c: Likewise.
11221 * grub-core/script/execute.c: Likewise.
11222 * grub-core/script/main.c: Likewise.
11223 * util/grub-mkfont.c: Likewise.
11224
1acc5b1f
VS
112252012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11226
11227 * util/grub-mkfont.c (options): Use more appropriate "select" that
11228 "set" for face index.
11229
35d70620
VS
112302012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11231
11232 * util/grub-editenv.c (options): Gettextize command summaries.
11233
c9eb96b5
VS
112342012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11235
11236 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Use
11237 "out of memory" error messagge.
11238
1f493136
VS
112392012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11240
11241 * grub-core/disk/diskfilter.c (grub_diskfilter_memberlist): Add scanning
11242 of diskfilter for diskfilter on diskfilter support.
11243
6d790129
VS
112442012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11245
11246 * util/getroot.c (exec_pipe): Ensure that the child is not localised.
11247
005f46c9
VS
112482012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11249
11250 * util/grub-install.in: Check for themes/starfield/theme.txt and not
11251 themes/starfield.
11252
c8f778a0
VS
112532012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11254
11255 * grub-core/gnulib/regcomp.c (regerror): Fix out-of-range array lookup.
11256
de1e64eb
VS
112572012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11258
11259 * grub-core/gdb/i386/idt.c (grub_gdb_breakpoint): Remove old debug code.
11260
c6d54211
VS
112612012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11262
11263 * grub-core/commands/hashsum.c (grub_cmd_hashsum): Remove dot at the end
11264 of error message.
11265
dd390777
VS
112662012-03-09 Vladimir Serbinenko <phcoder@gmail.com>
11267
11268 * util/grub-install.in: Fix install non-PreP IEEE1275 install.
11269
5fd1c522
VS
112702012-03-09 Vladimir Serbinenko <phcoder@gmail.com>
11271
11272 * grub-core/commands/i386/pc/sendkey.c (GRUB_MOD_INIT): Fix confusing
11273 message.
c6d54211 11274 * util/grub-install.in: Fix and gettextize error message.
5fd1c522 11275
fae01f6c
VS
112762012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
11277
11278 * util/grub-fstest.c (options): Replace N with NUM and S with STRING.
11279 Gettextize.
11280 * util/grub-mount.c (options): Likewise.
11281
292fdaff
VS
112822012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
11283
11284 * grub-core/commands/probe.c (options): Replace VAR with VARNAME and
11285 gettextize.
11286 * grub-core/commands/search_wrap.c (options): Likewise.
11287
ecdbae77
VS
112882012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
11289
11290 * grub-core/normal/charset.c (bidi_line_wrap): Fix a spurious warning.
11291
52bfedfa
VS
112922012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
11293
11294 * grub-core/boot/i386/pc/startup_raw.S (multiboot_trampoline): Fix
11295 size calculation.
11296 * grub-core/kern/i386/realmode.S (realidt): Assume default BIOS IDT if
11297 none is known.
11298
55b20e58
VS
112992012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
11300
11301 * grub-core/net/net.c (grub_net_addr_to_str): Don't translate
11302 "temporary" since it's used in identifier and is limited in space.
11303
fda9d101
VS
113042012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
11305
11306 * po/POTFILES.in: Regenerate. Include *.h since they contain
11307 translatable strings as well.
11308
6a0295e2
VS
113092012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
11310
11311 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Add missing
11312 byte-swap on big-endian.
11313 Reported by: Lennart Sorensen
11314
807fb77c
VS
113152012-03-07 Vladimir Serbinenko <phcoder@gmail.com>
11316
11317 * grub-core/loader/i386/linux.c (prot_init_space): New variable.
11318 (allocate_pages): Improve dprintf.
11319 (grub_cmd_linux): Fill prot_init_space. Fix improper usage of
11320 code32_start. Fill code32_start and kernel_alignment in params.
11321 (grub_cmd_initrd): Use prot_init_space.
11322
61ac50ba
VS
113232012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11324
11325 * util/grub-mkstandalone.in: Propagate grub-mkimage.c change.
11326
abdd26dd
VS
113272012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11328
11329 * util/grub-install.in: Add missing dot at the end of sentence.
11330
6e69da9c
VS
113312012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11332
11333 * grub-core/commands/videoinfo.c: Add TRANSLATORS comments.
11334 * grub-core/commands/videotest.c: Likewise.
11335 * grub-core/loader/i386/linux.c: Likewise.
11336
4a929343
VS
113372012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11338
11339 * grub-core/commands/acpi.c (options): Fix a dot in the middle of the
11340 sentence.
11341 Reported by: Milo Casagrande.
11342
bb51c6c6
VS
113432012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11344
11345 * grub-core/commands/acpi.c: Add TRANSLATORS comments.
11346 * grub-core/commands/gptsync.c: Likewise.
11347 * grub-core/commands/hashsum.c: Likewise.
11348 * grub-core/commands/i386/pc/sendkey.c: Likewise.
11349 * grub-core/commands/legacycfg.c: Likewise.
11350 * grub-core/io/gzio.c: Likewise.
11351 * grub-core/net/net.c: Likewise.
11352 * grub-core/term/gfxterm.c: Likewise.
11353 * grub-core/term/terminfo.c: Likewise.
11354 * grub-core/tests/test_blockarg.c: Likewise.
11355 * grub-core/video/video.c: Likewise.
11356 * util/grub-install.in: Likewise.
11357 * util/grub-mkfont.c: Likewise.
11358
b2b149cb
VS
113592012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11360
11361 * util/grub-mkimage.c (help_filter): Add missing capitalisation.
11362
c7c080ad
VS
113632012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11364
11365 * grub-core/commands/search_wrap.c (options): Fix a typo.
bb51c6c6 11366 Reported by: David Prévot.
c7c080ad 11367
f2e243c0
VS
113682012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11369
11370 * util/grub-kbdcomp.in: Change "layout" to "keyboard layout" in
11371 description.
11372
09963c76
VS
113732012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11374
11375 * util/grub-script-check.c (main): Fix a syntax error message which was
11376 unclear.
11377
a50514a8
VS
113782012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11379
11380 * util/grub-mkrescue.in (usage): Fix ROM capitalisation.
11381
4650daec
VS
113822012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11383
11384 * grub-core/commands/search_wrap.c (options): Fix wrong copy-paste in
11385 messages.
11386
113872012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
97ebda9b
VS
11388
11389 * util/grub-fstest.c (options): Remove OPTION_ARG_OPTIONAL from options
11390 without argument.
11391 * util/grub-mount.c (options): Likewise.
11392
bbc5a342
VS
113932012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
11394
11395 * util/grub-mkimage.c (generate_image): Unify diskboot.img size message.
11396
ef292a87
VS
113972012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
11398
11399 * grub-core/net/http.c: Add TRANSLATORS comments.
11400 * grub-core/normal/cmdline.c: Likewise.
11401 * grub-core/normal/misc.c: Likewise.
11402 * grub-core/partmap/msdos.c: Likewise.
11403 * grub-core/parttool/msdospart.c: Likewise.
11404 * grub-core/script/execute.c: Likewise.
11405 * grub-core/script/main.c: Likewise.
11406 * grub-core/term/terminfo.c: Likewise.
11407 * grub-core/video/bitmap.c: Likewise.
11408 * util/grub-install.in: Likewise.
11409 * util/grub-mkimage.c: Likewise.
11410 * util/grub-mklayout.c: Likewise.
11411 * util/grub-setup.c: Likewise.
11412
0fc19bd0
VS
114132012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
11414
11415 * util/grub-mount.c (fuse_init): Unify cryptomount and loopback messages
11416 with similar messages in grub-fstest.
11417
d95862ef
VS
114182012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
11419
11420 * util/grub-install.in: Unify "option requires an argument" message
11421 with similar messages in other files.
11422 * util/grub-mkconfig.in: Likewise.
11423
b7308f90
VS
114242012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
11425
11426 * util/grub-set-default.in: Replace printf with gettext_printf (the
11427 string in in question is already translated from grub-reboot)
11428
559dc587
VS
114292012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
11430
11431 * configure.ac: Bump up the version to beta1.
11432
1a11761f
VS
114332012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11434
11435 * grub-core/loader/i386/linux.c (allocate_pages): Fix handling of the
11436 case when min_align = 0.
11437
24539abd
VS
114382012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11439
11440 * grub-core/normal/charset.c (bidi_line_wrap): Fix a spurious warning
11441 and fix a case when line_start overflows.
11442
32bd735b
VS
114432012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11444
11445 * util/grub-reboot.in (usage): Mention id posibility.
11446 * util/grub-set-default.in (usage): Likewise.
11447
1a2fd1e6
VS
114482012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11449
11450 * include/grub/misc.h (ALIGN_UP_OVERHEAD): New define.
11451 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Align initrds at 4.
11452 * grub-core/loader/i386/pc/linux.c (grub_cmd_initrd): Likewise.
11453 * grub-core/loader/ia64/efi/linux.c (grub_cmd_initrd): Likewise.
11454 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Likewise.
11455 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_initrd): Likewise.
11456 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_initrd): Likewise.
11457
90eeab76
VS
114582012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11459
11460 * grub-core/commands/menuentry.c (options): Remove
11461 GRUB_ARG_OPTION_REPEATABLE.
11462 Reported by: Andreas Vogel
11463
5ad1be82
AV
114642012-03-04 Andreas Vogel <Andreas.Vogel@anvo-it.de>
11465
11466 * grub-core/normal/main.c (grub_normal_free_menu): Fix memory leak.
11467
cb055286
HE
114682012-03-04 Hideki EIRAKU <hdk1983@gmail.com>
11469
11470 * grub-core/normal/menu_entry.c (kill_line): Fix a crash and off-by-one
11471 error.
11472
93b1cd79
VS
114732012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11474
11475 Use sort -V by the idea of Georgi Georgiev.
11476
11477 * util/grub-mkconfig_lib.in (version_sort): New function.
11478 (version_test_numeric): Use version_sort.
11479
0cdc126c
VS
114802012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11481
11482 Use submenus in grub-mkconfig.
11483
11484 * util/grub-mkconfig.in: Define GRUB_ACTUAL_DEFAULT.
11485 * util/grub-mkconfig_lib.in (grub_quote): New function.
11486 (gettext_printf): Use gettext and not gettext_quoted to fix several
11487 messages.
11488 * util/grub.d/10_hurd.in: Use submenus.
11489 * util/grub.d/10_kfreebsd.in: Likewise.
11490 * util/grub.d/10_linux.in: Likewise.
11491 * util/grub.d/10_netbsd.in: Likewise.
11492 * util/grub.d/20_linux_xen.in: Likewise.
11493 * util/grub.d/30_os-prober.in: Likewise.
11494 * util/grub.d/10_illumos.in: Add missing quoting.
11495 * util/grub.d/10_windows.in: Likewise.
11496
d9bef9bc
VS
114972012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11498
11499 Fix menu title instability bug.
11500
11501 * grub-core/commands/menuentry.c (options): New option --id.
11502 (grub_normal_add_menu_entry): New argument id. All users updated.
11503 (grub_cmd_menuentry): Handle --id.
11504 (grub_menu_init): Accept unknown arguments.
11505 * grub-core/normal/main.c (features): Add feature_menuentry_id and
11506 feature_menuentry_options.
11507 * grub-core/normal/menu.c (grub_menu_execute_entry): Use id for
11508 saved_entry.
11509 (get_entry_number): Match with id as well.
11510 * include/grub/menu.h (grub_menu_entry): New member id.
11511 * util/grub-mkconfig_lib.in (grub_get_device_id): New function.
11512 * util/grub.d/00_header.in: Define menuentry_id_option.
11513 * util/grub.d/10_hurd.in: Define id.
11514 * util/grub.d/10_illumos.in: Likewise.
11515 * util/grub.d/10_kfreebsd.in: Likewise.
11516 * util/grub.d/10_linux.in: Likewise.
11517 * util/grub.d/10_netbsd.in: Likewise.
11518 * util/grub.d/10_windows.in: Likewise.
11519 * util/grub.d/20_linux_xen.in: Likewise.
11520 * util/grub.d/30_os-prober.in: Likewise.
11521
115222012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
0d31b7df
VS
11523
11524 * grub-core/script/execute.c (grub_script_return): Replace ambiguous
11525 "scope" with "body".
11526
7c8d0ce7
VS
115272012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11528
11529 * include/grub/i386/linux.h (linux_kernel_header): Fix init_size type.
11530 * grub-core/loader/i386/linux.c (grub_cmd_linux): Differentiate between
11531 prot_size and prot_file_size.
11532
49de079b
VS
115332012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11534
11535 * grub-core/disk/diskfilter.c (is_lv_readable): New argument "easily".
11536 All users updated. If easily=1 require raid-5/-6 to be full.
11537 (is_node_readable): Likewise.
11538 (scan_devices): Scan incomplete but readable LVs at the end.
11539 (grub_diskfilter_memberlist): Pull missing devices.
11540 (insert_array): Skip scanning until device is complete or scan is
11541 done otherwise.
11542 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Fix wrong
11543 check.
11544 * include/grub/diskfilter.h (grub_diskfilter_lv): New member scanned.
11545 * util/raid.c (grub_util_raid_getmembers): Handle "removed" disks.
11546
aff05d45
MG
115472012-03-03 Matthew Garrett <mjg@redhat.com>
115482012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11549
11550 Avoid EFI boot services when loading Linux.
11551
11552 * grub-core/lib/i386/relocator.c (grub_relocator32_boot): New argument
11553 avoid_efi_bootservices. All users updated.
11554 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align): New
11555 argument avoid_efi_bootservices. All users updated.
11556 Use grub_efi_mmap_iterate on EFI, grub_mmap_iterate if available.
11557 * grub-core/loader/i386/linux.c (allocate_pages): New arguments
11558 align, min_align, relocatable, prefered_address. All users updated.
11559 Allocate avoiding boot services if kernel is relocatable.
11560 (grub_cmd_linux): Check if kernel is relocatable.
11561 * grub-core/mmap/efi/mmap.c (grub_machine_mmap_iterate): Move most to ..
11562 (grub_efi_mmap_iterate): ... here. New argument avoid_efi_boot_services.
11563 Skip GRUB_EFI_BOOT_SERVICES_DATA and GRUB_EFI_BOOT_SERVICES_CODE if
11564 avoid_efi_boot_services.
11565 (grub_machine_mmap_iterate): Wrap grub_efi_mmap_iterate.
11566 * include/grub/i386/linux.h (linux_kernel_header): Update to 2.10.
11567 (linux_kernel_params): Likewise.
11568
3935dde2
MG
115692012-03-03 Matthew Garrett <mjg@redhat.com>
115702012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11571
11572 Use EDID on EFI.
11573
11574 * grub-core/kern/efi/efi.c (grub_efi_get_variable): New argument
11575 datasize_out.
11576 * grub-core/video/efi_gop.c (check_protocol): Check that GOP has usable
11577 modes. Set gop_handle.
11578 (grub_video_gop_get_edid): New function.
11579 (grub_gop_get_preferred_mode): Likewise.
11580 (grub_video_gop_setup): Use grub_gop_get_preferred_mode.
11581 (grub_video_efi_gop_adapter): Set .get_edid.
11582 * include/grub/efi/edid.h: New file.
11583 * include/grub/efi/efi.h (grub_efi_get_variable): Update proto.
11584
32107ec0
VS
115852012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11586
11587 * util/grub-install.in: Load efivars unconditionally.
11588
e70a2c50
VS
115892012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11590
11591 * po/Rules-piglatin: Change suffix from .po-update-en to
11592 .po-update-en-piglatin.
11593
8f9cace1
VS
115942012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11595
11596 Add a pig farm.
11597
11598 * po/piglatin.sed: New file.
11599 * po/en@piglatin.header: Likewise.
11600 * po/Rules-piglatin: Likewise.
11601 * po/README: Add en@piglatin to autogenerated languages.
11602
8f95d002
VS
116032012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11604
11605 * grub-core/commands/date.c (GRUB_MOD_INIT): Remove non-uniform
11606 "Command for ...".
11607 * grub-core/commands/hdparm.c (options): Use "Display" rather than
11608 "Check" since we don't check anything.
11609 * grub-core/commands/i386/cpuid.c (options): Clarify that long mode
11610 is 64-bit one.
11611 * grub-core/commands/search_wrap.c (options): Clarify the conditions.
11612 * grub-core/disk/geli.c (grub_md_sha256_real): Fix typo.
11613 (grub_md_sha512_real): Likewise.
11614
805a8dcc
VS
116152012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11616
11617 * grub-core/commands/gptsync.c: Fix typographic quoting.
11618 * grub-core/commands/ieee1275/suspend.c: Likewise.
11619 * grub-core/commands/parttool.c: Likewise.
11620 * grub-core/commands/search_wrap.c: Likewise.
11621 * grub-core/commands/videoinfo.c: Likewise.
11622 * grub-core/gfxmenu/gui_label.c: Likewise.
11623 * grub-core/hello/hello.c: Likewise.
11624 * grub-core/kern/emu/main.c: Likewise.
11625 * grub-core/net/net.c: Likewise.
11626 * grub-core/normal/menu.c: Likewise.
11627 * grub-core/normal/menu_text.c: Likewise.
11628 * grub-core/normal/misc.c: Likewise.
11629 * util/grub-editenv.c: Likewise.
11630 * util/grub-install.in: Likewise.
11631 * util/grub-kbdcomp.in: Likewise.
11632 * util/grub-mkconfig.in: Likewise.
11633 * util/grub-mknetdir.in: Likewise.
11634 * util/grub-mkrescue.in: Likewise.
11635 * util/grub-mkstandalone.in: Likewise.
11636 * util/grub-reboot.in: Likewise.
11637 * util/grub-set-default.in: Likewise.
11638 * util/grub-setup.c: Likewise.
11639 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
11640
40211ab8
VS
116412012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11642
11643 * grub-core/commands/acpihalt.c: Add TRANSLATORS comments.
11644 * grub-core/commands/keystatus.c: Likewise.
11645 * grub-core/commands/loadenv.c: Likewise.
11646 * grub-core/commands/probe.c: Likewise.
11647 * grub-core/commands/regexp.c: Likewise.
11648 * grub-core/commands/true.c: Likewise.
11649 * grub-core/commands/videoinfo.c: Likewise.
11650 * grub-core/disk/cryptodisk.c: Likewise.
11651 * grub-core/disk/ldm.c: Likewise.
11652 * grub-core/disk/loopback.c: Likewise.
11653 * grub-core/disk/luks.c: Likewise.
11654 * grub-core/fs/zfs/zfsinfo.c: Likewise.
11655 * grub-core/kern/disk.c: Likewise.
11656 * grub-core/kern/emu/hostdisk.c: Likewise.
11657
0c7d99c7
VS
116582012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11659
11660 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Add TRANSLATORS comment.
11661 * util/grub-install.in: Add missing quote in the comment.
11662
e7d2559b
VS
116632012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11664
11665 * grub-core/commands/i386/pc/drivemap.c: Add TRANSLATORS comments.
11666 * grub-core/commands/lsmmap.c: Likewise.
11667 * grub-core/commands/minicmd.c: Likewise.
11668 * grub-core/commands/mips/loongson/lsspd.c: Likewise.
11669 * grub-core/commands/regexp.c: Likewise.
11670 * grub-core/gdb/gdb.c: Likewise.
11671 * grub-core/term/gfxterm.c: Likewise.
11672 * util/grub-mkconfig.in: Likewise.
11673 * util/grub-mkfont.c: Likewise.
11674 * util/grub-mklayout.c: Likewise.
11675 * util/grub-mknetdir.in: Likewise.
11676 * util/grub-mkrescue.in: Likewise.
11677 * util/grub.d/30_os-prober.in: Likewise.
11678
49ce9e50
VS
116792012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11680
11681 * grub-core/commands/videoinfo.c (hook): Replace "Direct"
11682 with "Direct color" and "Packed" with "Packed pixel".
11683 (grub_cmd_videoinfo): Simplify legend.
11684
e4b791fa
VS
116852012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11686
11687 * util/getroot.c (grub_make_system_path_relative_to_its_root): Fix
11688 absolutely unclear error message.
11689
fd1265cb
VS
116902012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11691
11692 * util/grub-mkstandalone.in: Remove confusing leftover print.
11693
8822a8a0
VS
116942012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11695
11696 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Add TRANSLATORS
11697 comments.
11698 * grub-core/gdb/gdb.c (grub_cmd_gdbstub): Likewise.
11699 (GRUB_MOD_INIT): Likewise.
11700 * grub-core/loader/i386/linux.c (grub_cmd_linux): Clarify that it's
11701 VGA mode.
11702 * grub-core/net/net.c (grub_net_route_address): Add TRANSLATORS
11703 comments.
11704 * util/grub-install.in (usage): Likewise.
11705 Spell ID in whole letters.
11706 Add missing ending dot.
11707 Quote variables.
11708 * util/grub-reboot.in: Fix capitalisation.
11709 * util/grub-set-default.in: Likewise.
11710
937fd0cc
VS
117112012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11712
11713 * util/getroot.c (strip_extra_slashes) [CYGWIN]: #ifdef-out.
11714 (exec_pipe) [CYGWIN || MINGW32]: Likewise.
11715 (find_root_devices_from_poolname) [CYGWIN || MINGW32]: Likewise.
11716 (find_root_devices_from_libzfs) [CYGWIN || MINGW32]: Likewise.
11717 Disable -Werror for -Wdeprecated-declarations.
11718 (grub_guess_root_devices) [CYGWIN || MINGW32]: #ifdef-out.
11719 (get_dm_uuid) [!HAVE_DEVICE_MAPPER]: Likewise.
11720 (grub_util_get_dm_abstraction) [! __linux__]: #ifdef-out.
11721 (grub_util_get_grub_dev): Make luks handling dependent on
11722 HAVE_DEVICE_MAPPER and not __linux__.
11723 (get_win32_path): Fix format security.
11724 (grub_find_zpool_from_dir) [CYGWIN || MINGW32]: #ifdef-out.
11725 (grub_make_system_path_relative_to_its_root) [CYGWIN || MINGW32]:
11726 Don't try grub_find_zpool_from_dir.
11727 (grub_make_system_path_relative_to_its_root) [!__linux__]:
11728 #ifdef-out paresdir.
11729
1bab1ae3
VS
117302012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11731
11732 * util/grub-pe2elf.c (usage): Add missing noreturn.
11733 (write_section_data): Rename name to shname to avoid shadowing.
11734 (write_symbol_table): Rename name to symname to avoid shadowing.
11735 Fix write_reloc_section call.
11736
ef023e42
VS
117372012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11738
11739 * grub-core/boot/i386/pc/startup_raw.S: Move decompressor_end to .bss
11740 to ensure that it's after the last byte of .text.
11741
48afcb75
VS
117422012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11743
11744 * util/ieee1275/ofpath.c (my_isdigit): New function.
11745 (trailing_digits): Use my_isdigit.
11746 (strip_trailing_digits): Likewise.
11747
88d51eff
VS
117482012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11749
11750 * util/resolve.c (read_dep_list): Use grub_isspace instead of isspace.
11751 * grub-core/kern/emu/hostdisk.c (read_device_map): Likewise.
11752
17edc2ba
VS
117532012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11754
11755 * grub-core/kern/i386/pc/startup.S: Define __start.
11756
ad5518d7
VS
117572012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11758
11759 * gentpl.py (kernel): Remove the use of TARGET_OBJ2ELF after strip since
11760 strip already transforms he format.
11761
9e95e1bf
VS
117622012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11763
11764 * conf/i386-pc-cygwin-img-ld.sc: Define also _edata and __edata.
11765
9cc3ee5c
VS
117662012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11767
11768 * util/grub-install.in: Add missing gettext init.
11769 * util/grub-kbdcomp.in: Likewise.
11770 * util/grub-mkconfig.in: Likewise.
11771 * util/grub-mknetdir.in: Likewise.
11772 * util/grub-mkrescue.in: Likewise.
11773 * util/grub-mkstandalone.in: Likewise.
11774 * util/grub-reboot.in: Likewise.
11775 * util/grub-set-default.in: Likewise.
11776 * util/grub.d/00_header.in: Likewise.
11777 * util/grub.d/10_hurd.in: Likewise.
11778 * util/grub.d/10_windows.in: Likewise.
11779 * util/grub.d/30_os-prober.in: Likewise.
11780 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
11781
49e08a06
VS
117822012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11783
11784 * po/Rules-swiss: Fix header comment.
11785
3809cb41
AV
117862012-02-29 Andreas Vogel <anvoit>
11787
11788 * grub-core/kern/misc.c (grub_xvasprintf): Fix an exit path which
11789 resulted in leak of arguments.
11790
fa6ec573
VS
117912012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11792
11793 * grub-core/boot/i386/pc/startup_raw.S: Use separate
11794 reed_solomon_size const definition instead of computing it since
11795 Apple assembler doesn't support the later.
11796
22899b9c
VS
117972012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11798
11799 * gentpl.py (kernel): Rewrite Apple part.
11800
a132afc3
VS
118012012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11802
11803 * include/grub/kernel.h (FOR_MODULES): Check module magic.
11804
9d742bd4
VS
118052012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11806
11807 * util/grub-mkimagexx.c (locate_sections): Support non-standard
11808 ELF section gap.
11809 (load_image): Likewise.
11810
f04a9a21
VS
118112012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11812
11813 * configure.ac: Fix a typo in previous commit.
11814
46cf439c
VS
118152012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11816
11817 Don't add -Wl,-N on Apple platform.
11818
11819 * configure.ac (TARGET_LDFLAGS_OLDMAGIC): New subst.
11820 * conf/Makefile.common: Use TARGET_LDFLAGS_OLDMAGIC instead of -Wl,-N
11821
c4c48c54
VS
118222012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11823
11824 * grub-core/Makefile.core.def (lzma_decompress): Use
11825 TARGET_IMG_BASE_LDOPT rather than hardcoding -Wl,-Ttext.
11826
31a12124
VS
118272012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11828
11829 * grub-core/genmod.sh.in: Rewrite the Apple part.
11830
4f3aa1af
VS
118312012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11832
11833 * grub-core/loader/machoXX.c (grub_macho_load): Fix signed vs unsigned
11834 comparison.
11835
7bd8b0c7
VS
118362012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11837
11838 * acinclude.m4 (grub_CHECK_PIC): New test.
11839 * configure.ac: Add -fno-PIC to TARGET_CFLAGS if -fPIC is default.
11840
97304d7c
VS
118412012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11842
11843 * include/grub/libgcc.h (__STDC_VERSION__): Define if it's not yet so
11844 to avoid the warning.
11845
fb883812
VS
118462012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11847
11848 * grub-core/boot/i386/pc/diskboot.S (firstlist): Rename to ...
11849 (LOCAL(firstlist)): ... this. Move it before the firstlist and not
11850 after. All users updated.
11851
a121c964
VS
118522012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11853
11854 Use the common size routine in hostfs so we can read disks as well.
11855
11856 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): Rename to ..
11857 (grub_util_get_fd_size): ... this. Return size in bytes.
11858 All users updated.
11859 * grub-core/kern/emu/hostfs.c (grub_hostfs_open): Use
11860 grub_util_get_fd_size.
11861
c66d6410
VS
118622012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11863
11864 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors) [__APPLE__]:
11865 Add blocksize retrieval.
11866
dfc8aeb0
VS
118672012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11868
11869 * configure.ac: Restore CFLAGS after efiemu check.
11870
403e25a5
VS
118712012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11872
11873 * configure.ac: Move -fnested-functions to CPPFLAGS to workaround
11874 Apple bug.
11875
382775d1
VS
118762012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11877
11878 * grub-core/Makefile.am (MACHO2IMG): Add missing variable.
11879
6fd4e6e4
VS
118802012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11881
11882 * grub-core/commands/i386/pc/halt.c (grub_halt): Add noreturn attribute.
11883 (grub_cmd_halt): Likewise.
11884
bea359d6
VS
118852012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11886
11887 * grub-core/lib/i386/relocator16.S: Declare LOCAL(relocator16_end)
11888 for local arithmetics.
11889 Break %sp init into 2 instructions.
11890 Add 0 byte at the end.
11891
32eb6ee1
VS
118922012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11893
11894 * grub-core/disk/diskfilter.c (read_segment): Initialise err
11895 before loops.
11896
e8377389
VS
118972012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11898
11899 * grub-core/lib/xzembed/xz_dec_stream.c (hash_validate): Use void *
11900 for context.
11901
8cb17de7
VS
119022012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11903
11904 * grub-core/disk/ldm.c (make_vg): Init part.name.
11905 (grub_ldm_detect): Silence spurious warning.
11906 (grub_util_is_ldm): Likewise.
11907
595717e6
VS
119082012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11909
11910 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Init fsbfreq to
11911 sane value to avoid a spurious warning.
11912
c4b7e588
VS
119132012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11914
11915 * include/grub/dl.h: Switch from APPLE_CC to __APPLE__.
11916 (GRUB_MOD_LICENSE) [ASM_FILE]: Make into macro. All users updated.
11917
59824957
VS
119182012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11919
11920 * include/grub/symbol.h (EXT_C) [!ASM_FILE]: Redefine with strings.
11921 * grub-core/lib/i386/backtrace.c (grub_backtrace): Use EXT_C.
11922
70115b99
VS
119232012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11924
11925 * grub-core/gdb/i386/machdep.S: Use VARIABLE and EXT_C instead of
11926 hardcoding the relevant info.
11927
56733740
VS
119282012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11929
11930 * grub-core/gnulib/argp-fmtstream.c (__argp_get_display_len): Add
11931 missing const qualifiers.
11932 * grub-core/gnulib/argp-fmtstream.h (__argp_get_display_len): Likewise.
11933
43481481
VS
119342012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11935
11936 * util/getroot.c [__APPLE__]: Add missing includes.
11937 (grub_util_biosdisk_is_floppy): Fix usage of undefined variable.
11938
3cb38f01
VS
119392012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11940
11941 * util/grub-mkimage.c (generate_image): Silence spurious warning.
11942
d9dbf11e
VS
119432012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11944
11945 * util/ieee1275/ofpath.c: Rename devname to sys_devname everywhere to
11946 avoid conflicts.
11947
0c42a45d
VS
119482012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11949
11950 * util/ieee1275/grub-ofpathname.c: Add missing config.h include.
11951
46c34eb0
VS
119522012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11953
11954 * util/grub-setup.c (setup) [!__linux__]: Add missing file declaration
11955 and grub_file_close call.
11956
99ce1597
VS
119572012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11958
11959 Add LZSS Mach-O support (needed for new xnu kernelcache).
11960
11961 * grub-core/Makefile.core.def (xnu): Add file lzss.c
11962 * grub-core/loader/lzss.c: New file.
11963 * grub-core/loader/xnu.c (grub_xnu_load_driver): Close binaryfile
11964 on Mach-O open failure.
11965 * grub-core/loader/macho.c (grub_macho_close): Free uncompressedXX.
11966 Don't free cmdsXX in uncompressedXX is set.
11967 (grub_macho_file): Init new fields.
11968 New argument is_64bit. All users updated.
11969 Handle compressed. Error out if no suitable architecture is found.
11970 Don't close file.
11971 (grub_macho_open): New argument is_64bit. All users updated.
11972 * grub-core/loader/macho32.c: Add defines for new fields.
11973 * grub-core/loader/macho64.c: Likewise.
11974 * grub-core/loader/machoXX.c (grub_macho_contains_macho): Make static.
11975 (grub_macho_parse): Handle compressed.
11976 Defer actual processing if compressed.
11977 (grub_macho_cmds_iterate): Decompress if compressed. New argument
11978 "filename". All users updated.
11979 (grub_macho_size): New argument "filename". All users updated.
11980 (grub_macho_get_entry_point): Likewise.
11981 (grub_macho_load): Handle compressed.
11982 * include/grub/macho.h (grub_macho_lzss_header): New struct.
11983 (GRUB_MACHO_LZSS_OFFSET): New define.
11984 (grub_decompress_lzss): New proto.
11985 * include/grub/machoload.h (grub_macho_file): New fields to handle
11986 compressed.
11987 (grub_macho_contains_macho64): Remove proto.
11988 (grub_macho_contains_macho32): Likewise.
11989 * util/grub.d/30_os-prober.in: Use kernel cache if available.
11990
ebd17d6f
VS
119912012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11992
11993 * grub-core/disk/pata.c (grub_pata_readwrite): Fix ATAPI protocol error.
11994
2702b4e4
VS
119952012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
11996
11997 Fix make dist.
11998
11999 * Makefile.am (starfield_theme_files): New var.
12000 (starfield_DATA): Use starfield_theme_files.
12001 (EXTRA_DIST): Add starfield_theme_files. Add starfield source files.
12002 Add bootcheck-related files.
12003 * conf/Makefile.extra-dist (EXTRA_DIST): Add several missing files.
12004 * docs/Makefile.am (EXTRA_DIST): Add font_char_metrics.png
12005 and font_char_metrics.txt.
12006 * grub-core/Makefile.core.def (kernel): Update extra_dist.
12007 (setjmp): Add lib/ia64/longjmp.S.
12008 * po/Makefile.in.in (DISTFILES): Add POTFILES-shell.in and grub.d.sed.
12009 * po/POTFILES.in: Regenerate.
12010 * po/Rules-swiss: use DISTFILES.common.extra2 and not
12011 DISTFILES.common.extra1.
12012 * util/devicemap.c: Removed.
12013 * grub-core/lib/i386/relocator_backward.S: Likewise.
12014 * util/import_gcry.py: Remove unused files. Add extra_dist for
12015 ChangeLog.
12016
cf1adfdf
VS
120172012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
12018
12019 * grub-core/gettext/gettext.c (grub_mofile_open): Call
12020 grub_gettext_delete_list before changing grub_gettext_max to avoid
12021 running out of array bounds.
12022
120232012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
7acd2ae1
VS
12024
12025 * grub-core/term/i386/pc/vga_text.c: Add GRUB_MACHINE_MULTIBOOT to
12026 grub_vga_text_init/grub_vga_text_fini.
12027
cf1adfdf 120282012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
629e6a33
VS
12029
12030 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Fix format specification.
12031
541d92e9
VS
120322012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12033
12034 * configure.ac: Bump to 2.00~beta0.
12035
7931dddf
VS
120362012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12037
12038 * util/getroot.c (grub_find_root_devices_from_btrfs): Add
12039 missing initialisation.
12040
f1b16fa3
VS
120412012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12042
12043 * grub-core/partmap/msdos.c (message_warn): Clarify messages.
12044
83ddae23
VS
120452012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12046
12047 Support v2 xnu boot arguments.
12048
12049 * grub-core/loader/i386/xnu.c (grub_cpu_xnu_fill_devicetree):
12050 New argument fsbfreq_out.
12051 (grub_xnu_set_video): Receive an argument grub_xnu_boot_params_common.
12052 (grub_xnu_boot): Support v2 arguments. Disable PIC so that APIC can
12053 be used.
12054 * grub-core/loader/machoXX.c (grub_macho_load): New argument
12055 darwin_version.
12056 * grub-core/loader/xnu.c (grub_xnu_darwin_version): New variable.
12057 * include/grub/i386/xnu.h (grub_xnu_boot_params_common): New struct.
12058 (grub_xnu_boot_params): Rename to ...
12059 (grub_xnu_boot_params_v1): ...this. Use grub_xnu_boot_params_common.
12060 (grub_xnu_boot_params_v2): New struct.
12061
dc693fe6
VS
120622012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12063
12064 * grub-core/efiemu/prepare.c (grub_efiemu_crc): Add missing
12065 zeroing of CRC field before computing CRC.
12066
5a6e39c2
VS
120672012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12068
12069 * grub-core/lib/relocator.c (malloc_in_range): Fix memory leak.
12070 Change order of allocations to decrease fragmentation.
12071
6c21f5d7
VS
120722012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12073
12074 * Makefile.util.def (grub-ofpathname): Enable on all platforms.
12075
cfe456dc
CW
120762012-02-27 Colin Watson <cjwatson@ubuntu.com>
12077
12078 Use write-combining MTRR to speed up video with buggy BIOSes.
12079
12080 * grub-core/video/i386/pc/vbe.c (framebuffer): New member mtrr.
12081 (cpuid): New define.
12082 (rdmsr): Likewise.
12083 (wrmsr): Likewise.
12084 (mtrr_base): Likewise.
12085 (mtrr_mask): Likewise.
12086 (grub_vbe_enable_mtrr_entry): New function.
12087 (grub_vbe_enable_mtrr): Likewise.
12088 (grub_vbe_disable_mtrr): Likewise.
12089 (grub_vbe_bios_set_display_start): Disable mtrr when handing the
12090 control off to BIOS.
12091 (grub_video_vbe_init): Fill mtrr.
12092 (grub_video_vbe_fini): Disable mtrr.
12093 (grub_video_vbe_get_info_and_fini): Likewise.
12094 (grub_video_vbe_setup): Enable mtrr.
12095
e3c78337
CW
120962012-02-27 Colin Watson <cjwatson@ubuntu.com>
12097
12098 * include/grub/partition.h (grub_partition_map): Change prototype of
12099 embed to take a maximum value for nsectors.
12100 * include/grub/emu/hostdisk.h (grub_util_ldm_embed): Likewise.
12101 * include/grub/fs.h (grub_fs): Likewise.
12102 * grub-core/partmap/msdos.c (embed_signatures): New array.
12103 (pc_partition_map_embed): Check for and avoid sectors matching any
12104 of the signatures in embed_signatures, up to max_nsectors.
12105 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Restrict
12106 returned sector map to max_nsectors.
12107 * grub-core/disk/ldm.c (grub_util_ldm_embed): Likewise.
12108 * grub-core/fs/btrfs.c (grub_btrfs_embed): Likewise.
12109 * grub-core/fs/zfs/zfs.c (grub_zfs_embed): Likewise.
12110 * util/grub-setup.c (setup): Allow for the embedding area being
12111 split into multiple blocklists. Tell dest_partmap->embed the
12112 maximum number of sectors we care about.
12113
121142012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12115
12116 * include/grub/fs.h (grub_fs) [GRUB_UTIL]: Add blocklist_install field.
12117 Specify blocklist_install and reserver_first_sector for all fs.
12118 * util/grub-setup.c (setup): Use FIBMAP/FIEMAP on Linux. Check resulting
12119 blocklists.
12120
984b973f
VS
121212012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12122
12123 * util/grub-install.in: Clarify strings.
12124 Fix source dir check.
12125
f122e0d6
RL
121262012-02-27 Richard Laager <rlaager@wiktel.com>
12127
12128 * util/getroot.c (grub_find_root_devices_from_mountinfo): Handle
12129 "zfs" and "fuse.zfs" as synonyms.
12130
071114bb
VS
121312012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12132
12133 * configure.ac: Put platform and target_cpu substitutions back since
12134 they are used for directories.
12135
817e6abc
RL
121362012-02-27 Richard Laager <rlaager@wiktel.com>
121372012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12138
12139 * util/grub.d/10_linux.in: Add ZFS-related arguments.
12140 * util/grub.d/20_linux_xen.in: Likewise.
12141
897b7419
RL
121422012-02-27 Richard Laager <rlaager@wiktel.com>
12143
12144 * util/getroot.c (find_root_devices_from_poolname): Handle vdevs
12145 with full paths.
12146
a414bd15
RL
121472012-02-27 Richard Laager <rlaager@wiktel.com>
12148
12149 * util/getroot.c (grub_find_root_devices_from_mountinfo): Add missing
12150 unescape.
12151
30ac48c4
VS
121522012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12153
12154 Don't use insecure popen in getroot.
12155
12156 * util/getroot.c (get_mdadm_uuid): Move pipe logic to ...
12157 (exec_pipe): ... here.
12158 (find_root_devices_from_poolname): Use exec_pipe.
12159
53f13848
VS
121602012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12161
12162 Remove platform and target_cpu replacement.
12163
12164 * configure.ac: Remove platform and target_cpu substitutions.
12165 * tests/util/grub-shell.in: Use modinfo.
12166 * util/powerpc/ieee1275/grub-mkrescue.in: Specify powerpc-ieee1275
12167 explicitly.
12168
90cb2803
VS
121692012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12170
12171 Autodetect platform in grub-install but allow override.
12172
12173 * util/grub-install.in: Autodetect platform. Support --target and
12174 --directory. Read platform from modinfo.sh.
12175
b9136427
VS
121762012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12177
12178 Support btrfs multi-volume probe.
12179
12180 * util/getroot.c (btrfs_ioctl_dev_info_args) [__linux__]: New struct.
12181 (btrfs_ioctl_fs_info_args) [__linux__]: Likewise.
12182 (BTRFS_IOC_DEV_INFO) [__linux__]: New define.
12183 (BTRFS_IOC_FS_INFO) [__linux__]: Likewise.
12184 (grub_find_root_devices_from_btrfs) [__linux__]: New function.
12185 (grub_find_root_devices_from_mountinfo) [__linux__]: Use
12186 grub_find_root_devices_from_btrfs if on btrfs.
12187
c36e5cd1
VS
121882012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12189
12190 Remove any awareness of *.c util files about target.
12191
12192 * Makefile.util.def (grub-setup): Split to ...
12193 (grub-bios-setup): ... and this.
12194 (grub-sparc64-setup): ... and this.
12195 * configure.ac: Don't add machine_CPPFLAGS into HOST_CPPFLAGS.
12196 * docs/man/grub-setup.h2m: Split into ...
12197 * docs/man/grub-sparc64-setup.h2m: ... this.
12198 * docs/man/grub-bios-setup.h2m: ... and this.
12199 * include/grub/dl.h (grub_dl) [GRUB_UTIL]: Remove struct.
12200 * include/grub/elf.h (Elf_*) [GRUB_UTIL]: Remove types.
12201 (GRUB_TARGET_WORDSIZE) [GRUB_UTIL]: Remove.
12202 (grub_target_addr_t): Remove.
12203 (grub_target_size_t): Remove.
12204 (grub_target_ssize_t): Remove.
12205 * util/grub-install.in: Use new grub-*-setup.
12206 * util/grub-mkimagexx.c (Elf_Word): New define.
12207 (Elf_Half): Likewise.
12208 (Elf_Section): Likewise.
12209 (ELF_ST_TYPE): Likewise.
12210 * util/grub-setup.c: Switch from GRUB_MACHINE_SPARC64 to
12211 GRUB_SETUP_SPARC64 and from GRUB_MACHINE_PCBIOS to GRUB_SETUP_BIOS.
12212
584b2f8a
VS
122132012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12214
12215 Replace grub_target_addr with more appropriate types.
12216
12217 * grub-core/commands/efi/fixvideo.c (scan_card): Replace
12218 grub_target_addr with grub_addr.
12219 * grub-core/commands/iorw.c (grub_cmd_read): Replace
12220 grub_target_addr with grub_port.
12221 (grub_cmd_write): Likewise.
12222 * grub-core/commands/memrw.c (grub_cmd_read): Replace
12223 grub_target_addr with grub_addr.
12224 (grub_cmd_write): Likewise.
12225 * grub-core/video/efi_uga.c (find_line_len): Likewise.
12226
5a0dc6fb
VS
122272012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12228
12229 * include/grub/efi/api.h (grub_efi_runtime_services): Add missing
12230 const qualifier for vendor_guid.
12231
786aff6e
VS
122322012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12233
12234 * grub-core/efiemu/runtime/efiemu.c (efiemu_get_variable): Add missing
12235 const qualifier.
12236 (efiemu_memequal): Likewise.
12237 (find_variable): Likewise.
12238
49017b17
VS
122392012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12240
12241 Fix missing console prototype on qemu-mips.
12242
12243 * include/grub/mips/qemu_mips/console.h: New file.
12244
c5988629
MG
122452012-02-27 Matthew Garrett <mjg@redhat.com>
122462012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12247
12248 * grub-core/kern/efi/efi.c (grub_efi_get_variable): Add new function.
12249 * include/grub/efi/efi.h: Likewise.
12250 * include/grub/efi/api.h: Add guid for EFI-specified variables.
12251 * include/grub/charset.h (GRUB_MAX_UTF16_PER_UTF8): New definition.
12252 * grub-core/normal/charset.c (grub_utf8_process): Move from here ...
12253 * include/grub/charset.h (grub_utf8_process): ... to here. Inline.
12254 * grub-core/normal/charset.c (grub_utf8_to_utf16): Move from here ...
12255 * include/grub/charset.h (grub_utf8_to_utf16): ... to here. Inline.
12256
e33f8d69
MG
122572012-02-27 Matthew Garrett <mjg@redhat.com>
12258
12259 * include/grub/efi/pci.h: New file to define EFI PCI protocols.
12260
fb312cd9
VS
122612012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12262
12263 * grub-core/disk/diskfilter.c (grub_diskfilter_iterate): Fix off-by-one
12264 error.
12265
7134247c
VS
122662012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12267
12268 * configure.ac: Remove inappropriate use of program_transform_name
12269 on grubdir and bootdir but allow explicit specification of those
12270 variables.
12271
6a313124
VS
122722012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12273
12274 * util/grub-mknetdir.in (grub_prefix): Removed.
12275 (subdir): Use @bootdirname@ and @grubdirname@.
12276
2311c5ca
VS
122772012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12278
12279 Replace PACKAGE_TARNAME with PACKAGE in pkglibdir and pkgdatadir.
12280
7d5d60f7
VS
122812012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12282
12283 * po/POTFILES.in: Regenerated.
12284
8151bc82
VS
122852012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12286
12287 Remove improper use of program_transform_name on pkglibrootdir.
12288
12289 * configure.ac (pkglibrootdir): Removed.
12290 (grub-mkimage): Replace PKGLIBROOTDIR with PKGLIBDIR.
12291 * util/grub-mkimage.c: Likewise.
12292
b4a6a533
VS
122932012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12294
12295 * grub-core/normal/menu_text.c (grub_print_message_indented_real): Fix a
12296 warning.
12297
668f304f
VS
122982012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12299
12300 * util/grub-install.in: Use file identifier if no UUID is available
12301 or user explicitly prompted for it.
12302
665f2341
NP
123032012-02-27 Navdeep Parhar <nparhar@gmail.com>
12304
12305 * grub-core/loader/i386/bsd.c (freebsd_zfsguid): New variable.
12306 (freebsd_get_zfs): New function.
12307 (grub_freebsd_boot): Pass zfs UUID.
12308 (grub_cmd_freebsd): Set zfs UUID.
12309
8151bc82 123102012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
1240a58a
VS
12311
12312 * conf/Makefile.common (platformdir): Base on pkglibdir and not
12313 pkglibrootdir.
12314
e4c498a1
MG
123152012-02-27 Mike Gilbert <floppym@gentoo.org>
12316
12317 Add configure flag to control libzfs integration.
12318
12319 * configure.ac: Add AC_ARG_ENABLE(libzfs ...) and associated logic.
12320
1e9a9a3f
VS
123212012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12322
12323 * grub-core/disk/diskfilter.c (insert_array): Choose the smallest
12324 device.
12325 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Reject too
12326 small devices.
12327
036985b8
VS
123282012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12329
12330 Remove grub_{modname}_init and grub_{modname}_fini. They should never
12331 be used directly if it's really a module and GRUB_MOD_INIT shouldn't
12332 be used on non-modules.
12333
12334 * grub-core/commands/boot.c (GRUB_MOD_INIT) [LOONGSON || QEMU_MIPS]:
12335 Rename to grub_boot_init.
12336 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to grub_boot_fini.
12337 * grub-core/commands/keylayouts.c (GRUB_MOD_INIT)
12338 [LOONGSON || QEMU_MIPS]: Rename to grub_keylayouts_init.
12339 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to grub_keylayouts_fini.
12340 * grub-core/font/font_cmd.c (GRUB_MOD_INIT)
12341 [LOONGSON || QEMU_MIPS]: Rename to grub_font_init.
12342 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to grub_font_fini.
12343 * grub-core/kern/mips/loongson/init.c: Replace explicit protos with
12344 includes.
12345 (grub_machine_init): Remove empty inits.
12346 * grub-core/kern/mips/qemu_mips/init.c: Replace explicit protos with
12347 includes.
12348 (grub_machine_init): Remove empty inits.
12349 * grub-core/term/arc/console.c: Remove explicit proto.
12350 * grub-core/term/at_keyboard.c (GRUB_MOD_INIT)
12351 [LOONGSON || QEMU_MIPS]: Rename to grub_at_keyboard_init.
12352 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
12353 grub_at_keyboard_fini.
12354 * grub-core/term/gfxterm.c (GRUB_MOD_INIT)
12355 [LOONGSON || QEMU_MIPS]: Rename to grub_gfxterm_init.
12356 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
12357 grub_gfxterm_fini.
12358 * grub-core/term/i386/pc/vga_text.c (GRUB_MOD_INIT)
12359 [LOONGSON || QEMU_MIPS]: Rename to grub_vgatext_init.
12360 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
12361 grub_vgatext_fini.
12362 * grub-core/term/ieee1275/console.c: Remove explicit proto.
12363 * grub-core/term/serial.c (GRUB_MOD_INIT)
12364 [LOONGSON || QEMU_MIPS]: Rename to grub_serial_init.
12365 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
12366 grub_serial_fini.
12367 * grub-core/term/terminfo.c (GRUB_MOD_INIT)
12368 [LOONGSON || QEMU_MIPS]: Rename to grub_terminfo_init.
12369 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
12370 grub_terminfo_fini.
12371 * grub-core/video/bitmap.c (GRUB_MOD_INIT): Removed.
12372 (GRUB_MOD_FINI): Likewise.
12373 * grub-core/video/radeon_fuloong2e.c (GRUB_MOD_INIT)
12374 [LOONGSON]: Rename to grub_video_radeon_fuloong2e_init.
12375 (GRUB_MOD_FINI) [LOONGSON]: Rename to
12376 grub_video_radeon_fuloong2e_fini.
12377 * grub-core/video/sis315pro.c (GRUB_MOD_INIT)
12378 [LOONGSON]: Rename to grub_video_sis315pro_init.
12379 (GRUB_MOD_FINI) [LOONGSON]: Rename to
12380 grub_video_sis315pro_fini.
12381 * grub-core/video/sm712.c (GRUB_MOD_INIT)
12382 [LOONGSON]: Rename to grub_video_sm712_init.
12383 (GRUB_MOD_FINI) [LOONGSON]: Rename to
12384 grub_video_sm712_fini.
12385 * include/grub/at_keyboard.h (grub_at_keyboard_init): New proto.
12386 (grub_at_keyboard_fini): Likewise.
12387 * include/grub/dl.h (GRUB_MOD_INIT) [!GRUB_UTIL && !EMU]:
12388 Don't declare grub_{modname}_init.
12389 (GRUB_MOD_INIT) [!GRUB_UTIL && !EMU]: Don't declare grub_{modname}_fini.
12390 * include/grub/keyboard_layouts.h (grub_keylayouts_init) [!EMU]:
12391 New proto.
12392 (grub_keylayouts_fini) [!EMU]: Likewise.
12393 * include/grub/serial.h (grub_serial_init) [!EMU]:
12394 New proto.
12395 (grub_serial_fini) [!EMU]: Likewise.
12396 * include/grub/terminfo.h (grub_terminfo_init) [!EMU]:
12397 New proto.
12398 (grub_terminfo_fini) [!EMU]: Likewise.
12399 * include/grub/video.h (grub_font_init) [!EMU]:
12400 New proto.
12401 (grub_font_fini) [!EMU]: Likewise.
12402 (grub_gfxterm_init) [!EMU]: Likewise.
12403 (grub_gfxterm_fini) [!EMU]: Likewise.
12404 (grub_video_sm712_init) [!EMU]: Likewise.
12405 (grub_video_sm712_fini) [!EMU]: Likewise.
12406 (grub_video_sis315pro_init) [!EMU]: Likewise.
12407 (grub_video_sis315pro_fini) [!EMU]: Likewise.
12408 (grub_video_radeon_fuloong2e_init) [!EMU]: Likewise.
12409 (grub_video_radeon_fuloong2e_fini) [!EMU]: Likewise.
12410
d5534665
VS
124112012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12412
12413 Make nand a prefix for nand devices.
12414
12415 * grub-core/disk/ieee1275/nand.c (grub_nand_open): Use prefix nand.
12416
10133b5f
VS
124172012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12418
12419 * grub-core/kern/misc.c (grub_stpcpy): Move from here ...
12420 * include/grub/misc.h (grub_stpcpy): ... to here. Inlined.
12421
8e307a62
VS
124222012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12423
12424 * include/grub/env.h (grub_env_find): Remove prototype.
12425 * grub-core/kern/env.c (grub_env_find): Make static.
12426 (grub_env_set): Remove useless set.
12427
a4c65f34
VS
124282012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12429
12430 * grub-core/kern/i386/realmode.S: Remove useless align.
12431
d87893d5
VS
124322012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12433
12434 * include/grub/dl.h (grub_dl_load_file): Don't export.
12435
50159add
VS
124362012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12437
12438 * grub-core/disk/diskfilter.c (grub_diskfilter_open): Remove useless
12439 grub_dprintf.
12440
b2582b84
VS
124412012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12442
12443 * grub-core/disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Remove useless
12444 grub_errors.
12445 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Simplify by
12446 not reloading whole superblock but only the part which is really needed.
12447 Remove useless grub_errors.
12448 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Remove useless
12449 grub_errors.
12450
e2a83395
VS
124512012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12452
12453 Don't export grub_get_rtc.
12454
12455 * include/grub/i386/pc/time.h (grub_get_rtc): Don't export.
12456 * grub-core/commands/i386/pc/play.c (play): Use grub_get_time_ms.
12457
e7d2a906
VS
124582012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12459
12460 * grub-core/genmod.sh.in: Add -R .note.GNU-stack to strip.
12461
6cf1363b
VS
124622012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12463
12464 * grub-core/disk/diskfilter.c (insert_array): Remove scanner_name
e7d2a906 12465 argument since it can be deduced from diskfilter. All users updated.
6cf1363b 12466
eece3349
VS
124672012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12468
12469 Remove prio_list.
12470
12471 * include/grub/list.h (grub_prio_list): Removed.
12472 (GRUB_PRIO_LIST_PRIO_MASK): Removed. All users switched to
12473 GRUB_COMMAND_PRIO_MASK.
12474 (GRUB_PRIO_LIST_FLAG_ACTIVE): Removed. All users switched to
12475 GRUB_COMMAND_FLAG_ACTIVE.
12476 (grub_prio_list_insert): Removed.
12477 (grub_prio_list_remove): Likewise.
12478 (GRUB_AS_PRIO_LIST): Likewise.
12479 (GRUB_AS_PRIO_LIST_P): Likewise.
12480 * include/grub/command.h (GRUB_COMMAND_PRIO_MASK): New define.
12481 (GRUB_COMMAND_FLAG_ACTIVE): Likewise.
12482 * grub-core/kern/list.c (grub_prio_list_insert): Remove.
12483 * grub-core/kern/command.c (grub_register_command_prio): Inline
12484 the prio_list code.
12485 (grub_unregister_command): Likewise.
12486
94f064b4
VS
124872012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12488
12489 Fix interrupt mixup from previous commit.
12490
12491 * include/grub/i386/pc/int.h (grub_i386_idt): New struct.
12492 (grub_realidt): New var.
12493 * grub-core/lib/i386/relocator16.S (grub_relocator16_idt): New variable
12494 Load idt.
12495 * grub-core/lib/i386/relocator.c (grub_relocator16_idt):
12496 New declaration.
12497 (grub_relocator16_boot): Set grub_relocator16_idt.
12498 * grub-core/kern/i386/realmode.S (realidt): Renamed to ...
12499 (LOCAL(realidt)): ... this.
12500 * grub-core/boot/i386/pc/startup_raw.S: Pass pointer to realidt in eax.
12501 * grub-core/kern/i386/pc/startup.S: Save pointer to realidt.
12502 (grub_realidt): New variable.
12503
27317084
VS
125042012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12505
12506 * grub-core/lib/i386/backtrace.c (grub_cmd_backtrace): Move from ...
12507 * grub-core/lib/backtrace.c (grub_cmd_backtrace): ... to here.
12508 * grub-core/lib/i386/backtrace.c (GRUB_MOD_INIT): Move from ...
12509 * grub-core/lib/backtrace.c (GRUB_MOD_INIT): ... to here.
12510 Gettextize.
12511 * grub-core/lib/i386/backtrace.c (GRUB_MOD_FINI): Move from ...
12512 * grub-core/lib/backtrace.c (GRUB_MOD_FINI): ... to here.
12513 * po/POTFILES.in: Regenerate.
12514
47b40053
VS
125152012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12516
12517 * grub-core/commands/probe.c (grub_cmd_probe): Gettextise UUID and label
12518 errors.
12519
2b343101
VS
125202012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12521
12522 * grub-core/gnulib/argp-fmtstream.c (__argp_get_display_len): Stop on
12523 \0.
12524 (add_length): Likewise.
12525
ff27c3dd
LK
125262012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
125272012-02-26 Lubomir Kundrak <lkundrak@redhat.com>
12528
12529 GDB serial and backtrace support.
12530
12531 * grub-core/kern/i386/realmode.S (real_to_prot): Reload IDT.
12532 (prot_to_real): Likewise.
12533 * grub-core/kern/i386/int.S (grub_bios_interrupt): Remove IDT reload.
12534 * grub-core/Makefile.core.def (backtrace): New module.
12535 (gdb): Likewise.
12536 * grub-core/gdb/cstub.c: New file.
12537 * grub-core/gdb/gdb.c: Likewise.
12538 * grub-core/gdb/i386/idt.c: Likewise.
12539 * grub-core/gdb/i386/machdep.S: Likewise.
12540 * grub-core/gdb/i386/signal.c: Likewise.
12541 * grub-core/lib/i386/backtrace.c: Likewise.
4cebfa1a 12542 * grub-core/lib/backtrace.c: Likewise.
ff27c3dd
LK
12543 * include/grub/backtrace.h: Likewise.
12544 * include/grub/gdb.h: Likewise.
12545 * include/grub/i386/gdb.h: Likewise.
12546
125472012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
585031cb
VS
12548
12549 * grub-core/gnulib/argp-fmtstream.c (__argp_get_display_len):
12550 New function.
12551 (add_length): Likewise.
12552 (__argp_fmtstream_update): Handle strings with non-ASCII chars.
12553 * grub-core/gnulib/argp-fmtstream.h (__argp_get_display_len): New
12554 proto.
12555 * grub-core/gnulib/argp-help.c (argp_args_usage): Use
12556 __argp_get_display_len.
12557
ff27c3dd 125582012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
7e8fac16
VS
12559
12560 $"..." support in scripts.
12561
12562 * grub-core/script/execute.c (grub_script_arglist_to_argv): Handle
12563 GRUB_SCRIPT_ARG_TYPE_GETTEXT.
12564 * grub-core/script/yylex.l: Likewise.
12565 * include/grub/script_sh.h (GRUB_SCRIPT_ARG_TYPE_GETTEXT): New enum
12566 value.
12567
ff27c3dd 125682012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
15eff5d9
VS
12569
12570 * gentpl.py: Remove obsolete pkglib_DATA handling.
12571
ff27c3dd 125722012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
fc847818
VS
12573
12574 Don't transform PACKAGE_TARNAME following a discussion on autoconf
12575 mailing list.
12576
12577 * util/grub-install.in: Don't transform PACKAGE_TARNAME.
12578 * util/grub-kbdcomp.in: Likewise.
12579 * util/grub-mkconfig.in: Likewise.
12580 * util/grub-mkconfig_lib.in: Likewise.
12581 * util/grub-mknetdir.in: Likewise.
12582 * util/grub-mkrescue.in: Likewise.
12583 * util/grub-mkstandalone.in: Likewise.
12584 * util/grub-reboot.in: Likewise.
12585 * util/grub-set-default.in: Likewise.
12586 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
12587
ff27c3dd 125882012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
47454da5
VS
12589
12590 Remove GRUB_PREFIX.
12591
12592 * util/grub-mkconfig.in: Remove GRUB_PREFIX.
12593 * util/grub.d/00_header.in: Compute prefix in the only place it's still
12594 used for backward compatibility.
12595
ff27c3dd 125962012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
22c7ce85
VS
12597
12598 Add new all_video module.
12599
12600 * grub-core/Makefile.am (moddep.lst): Make dependent on video.lst.
12601 * grub-core/Makefile.core.def (all_video): New module.
12602 * grub-core/genmoddep.awk: Generate dependency of all_video from
12603 video.lst.
12604 * grub-core/lib/fake_module.c: New file.
12605 * grub-core/normal/main.c (features): Add feature_all_video_module.
12606 * util/grub.d/00_header.in: Define locale_dir based on $prefix and
12607 don't do explicit search again.
47454da5 12608 insmod all_video in load_video if available.
22c7ce85 12609
ff27c3dd 126102012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
67093bc0
VS
12611
12612 Another round of string clarification and adding TRANSLATORS comments.
12613
ff27c3dd 126142012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
ad7b7b85
VS
12615
12616 * util/grub-mknetdir.in: Remove erroneous reference to install_device.
12617
ff27c3dd 126182012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
8b282ad2
VS
12619
12620 * grub-core/normal/charset.c (grub_utf8_to_ucs4_alloc): Fix return type
12621 to grub_ssize_t.
12622 * grub-core/normal/main.c (grub_normal_init_page): Fix msg_len type.
12623 * include/grub/charset.h (grub_utf8_to_ucs4_alloc): Fix prototype.
12624
ff27c3dd 126252012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
d43ad754
VS
12626
12627 * grub-core/normal/menu_text.c (grub_print_message_indented_real): Add
12628 trailing newline implicitly. All users updated.
12629
ff27c3dd 126302012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
a9c7fd1c
VS
12631
12632 Implement serial on IEEE1275 and EFI.
12633
12634 * docs/grub.texi (Platform-specific limitations): Fix the columen video
12635 on emu. Mention arc and emu as the only platforms without serial
12636 support.
12637 * grub-core/Makefile.core.def (serial): Enable on all terminfomodule and
12638 ieee1275 platforms.
12639 * grub-core/term/efi/serial.c: New file.
12640 * grub-core/term/ieee1275/serial.c: Likewise.
12641 * grub-core/term/serial.c (grub_serial_find): Disable direct port
12642 specification if no ns8250 driver is available.
12643 (grub_cmd_serial): Likewise.
12644 (GRUB_MOD_INIT) [GRUB_MACHINE_IEEE1275]: Init ofserial.
12645 (GRUB_MOD_INIT) [GRUB_MACHINE_EFI]: Init efiserial.
12646 * include/grub/efi/api.h (GRUB_EFI_SERIAL_IO_GUID): New define.
12647 (grub_efi_parity_type_t): New type.
12648 (grub_efi_stop_bits_t): Likewise.
12649 (grub_efi_serial_io_interface): New struct.
12650 * include/grub/serial.h (grub_serial_port): Make 'broken' field
12651 available for all interfaces.
12652 Add EFI and IEEE1275 fields.
12653 (grub_ofserial_init): New proto.
12654 (grub_efiserial_init): Likeiwse.
12655 * util/grub.d/00_header.in: Don't check for the presence of serial
12656 module.
12657
ff27c3dd 126582012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
0ec82090
VS
12659
12660 * grub-core/disk/ieee1275/ofdisk.c (scan): Fix improper use of device
12661 name as if it was an alias.
12662
114076ef
VS
126632012-02-25 Vladimir Serbinenko <phcoder@gmail.com>
12664
12665 * grub-core/commands/lsacpi.c (options): Fix typo.
12666
6a656b0e
VS
126672012-02-25 Vladimir Serbinenko <phcoder@gmail.com>
12668
12669 Convert grub-emu to argp.
12670
12671 * grub-core/Makefile.core.def (kernel): Add kern/emu/argp_common.c on
12672 emu.
12673 * util/argp_common.c: Rename to ...
12674 * grub-core/kern/emu/argp_common.c: ... this. All users updated.
12675 Add missing includes.
12676 * grub-core/kern/emu/main.c: Convert to argp.
12677 * po/POTFILES.in: Regenerate.
12678 * util/grub-install.in (usage): Make first letter lowcase in messages
12679 for uniformity.
12680 * util/grub-setup.c (options): Likewise.
12681
1e3f8ae8
VS
126822012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
12683
12684 * grub-core/gfxmenu/gui_progress_bar.c (progress_bar_set_property):
12685 Put back accidently commented-out code.
12686
ed167a80
VS
126872012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
12688
12689 * grub-core/fs/hfsplus.c (grub_hfsplus_btree_iterate_node): Add btree
12690 loop check using Brent algorithm.
12691 (grub_hfsplus_btree_search): Likewise.
12692
6753c0ec
VS
126932012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
12694
12695 * util/grub-install.in: Fix usage of wrong device for PreP install.
12696
4e27343f
VS
126972012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
12698
12699 * conf/Makefile.common (CFLAGS_GNULIB): Add
12700 -Wno-unsafe-loop-optimizations.
12701 * configure.ac: Remove -Wmissing-declarations and -Wmissing-prototypes
12702 on tools.
12703 * grub-core/commands/legacycfg.c: Add pragma to skip
12704 -Wunsafe-loop-optimizations.
12705 (check_password_md5_real): Fix loop counter type.
12706 * grub-core/commands/testload.c (grub_cmd_testload): Fix over the EOF
12707 reading.
12708 * grub-core/disk/ldm.c (grub_util_get_ldm): Fix logic error.
12709 * grub-core/fs/zfs/zfs_sha256.c (zio_checksum_SHA256): Add safety
12710 loop condition.
12711 * grub-core/io/gzio.c: Add pragma to skip -Wunsafe-loop-optimizations.
12712 * grub-core/lib/LzmaEnc.c (GetOptimum): Avoid possible infinite loop.
12713 * grub-core/net/net.c (grub_net_route_address): Add safety loop
12714 condition.
12715 * grub-core/normal/charset.c (bidi_line_wrap): Likewise.
12716 * grub-core/normal/cmdline.c (grub_set_history): Fix loop types and
12717 avoid possible infinite loops.
12718 * grub-core/script/parser.y: Add pragma to skip -Wmissing-declarations
12719 and -Wunsafe-loop-optimizations.
12720 * grub-core/script/yylex.l: Likewise.
12721 * util/grub-mkfont.c: Add pragma to skip -Wunsafe-loop-optimizations.
12722 (print_glyphs): Avoid infinite loops.
12723 * util/grub-mkimage.c (compress_kernel_xz): Fix format security.
12724
697f18b0
GS
127252012-02-24 Grégoire Sutre <gregoire.sutre@gmail.com>
12726
12727 * grub-core/commands/lsacpi.c (disp_acpi_xsdt_table): Fix loop condition
12728 to avoid infinite loop.
12729 (disp_acpi_rsdt_table): Likewise.
12730
274416e8
VS
127312012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
12732
12733 * grub-core/font/font.c (grub_font_load): Add support for default
12734 path for fonts ($prefix/fonts).
12735 * grub-core/kern/corecmd.c (grub_core_cmd_insmod): Unify condition
12736 for checking if string is a path.
12737 * grub-core/normal/main.c (features): Add feature_default_font_path.
12738 * util/grub-mkconfig.in: Skip mangling of GRUB_FONT into GRUB_FONT_PATH.
12739 * util/grub.d/00_header.in: Use default directory if possible.
12740 * util/grub-install.in: Install unicode.pf2.
12741
b3e08622
VS
127422012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
12743
12744 * po/README: Add de_CH and en@quot to po/LINGUAS generation command.
12745 * po/Rules-swiss: New file.
12746 * po/swiss.sed: Likewise.
12747
fe42ce09
VS
127482012-02-23 Vladimir Serbinenko <phcoder@gmail.com>
12749
12750 * grub-core/fs/btrfs.c (find_device): Fix typos.
12751 * grub-core/fs/zfs/zfs.c (read_device): Likewise.
12752 * util/grub-mkrelpath.c (argp_parser): Likewise.
12753 Reported by: Yuri Chornoivan.
12754
72f1d065
DO
127552012-02-23 Dalet Omega <daletomega@gmail.com>
12756
12757 * grub-core/gfxmenu/gui_label.c (label_set_property): Add template
12758 for usual informative messages.
12759
c5884973
DO
127602012-02-23 Dalet Omega <daletomega@gmail.com>
12761
12762 Starfield theme.
12763
12764 * Makefile.am: Define starfield_DATA and dejavu.pf2 generation.
12765 * conf/Makefile.common: Define starfielddir.
12766 * configure.ac: Configure starfield.
12767 * themes/starfield/COPYING.CC-BY-SA-3.0: New file.
12768 * themes/starfield/README: Likewise.
12769 * themes/starfield/blob_w.png: Likewise.
12770 * themes/starfield/boot_menu_c.png: Likewise.
12771 * themes/starfield/boot_menu_e.png: Likewise.
12772 * themes/starfield/boot_menu_n.png: Likewise.
12773 * themes/starfield/boot_menu_ne.png: Likewise.
12774 * themes/starfield/boot_menu_nw.png: Likewise.
12775 * themes/starfield/boot_menu_s.png: Likewise.
12776 * themes/starfield/boot_menu_se.png: Likewise.
12777 * themes/starfield/boot_menu_sw.png: Likewise.
12778 * themes/starfield/boot_menu_w.png: Likewise.
12779 * themes/starfield/slider_c.png: Likewise.
12780 * themes/starfield/slider_n.png: Likewise.
12781 * themes/starfield/slider_s.png: Likewise.
12782 * themes/starfield/src/blob_nw.xcf: Likewise.
12783 * themes/starfield/src/bootmenu/: Likewise.
12784 * themes/starfield/src/bootmenu/center.xcf: Likewise.
12785 * themes/starfield/src/bootmenu/corner.xcf: Likewise.
12786 * themes/starfield/src/bootmenu/side.xcf: Likewise.
12787 * themes/starfield/src/slider_c.xcf: Likewise.
12788 * themes/starfield/src/slider_n.xcf: Likewise.
12789 * themes/starfield/src/slider_s.xcf: Likewise.
12790 * themes/starfield/src/terminalbox/: Likewise.
12791 * themes/starfield/src/terminalbox/center.xcf: Likewise.
12792 * themes/starfield/src/terminalbox/corner.xcf: Likewise.
12793 * themes/starfield/src/terminalbox/side.xcf: Likewise.
12794 * themes/starfield/starfield.png: Likewise.
12795 * themes/starfield/terminal_box_c.png: Likewise.
12796 * themes/starfield/terminal_box_e.png: Likewise.
12797 * themes/starfield/terminal_box_n.png: Likewise.
12798 * themes/starfield/terminal_box_ne.png: Likewise.
12799 * themes/starfield/terminal_box_nw.png: Likewise.
12800 * themes/starfield/terminal_box_s.png: Likewise.
12801 * themes/starfield/terminal_box_se.png: Likewise.
12802 * themes/starfield/terminal_box_sw.png: Likewise.
12803 * themes/starfield/terminal_box_w.png: Likewise.
12804 * themes/starfield/theme.txt: Likewise.
12805
17d73325
VS
128062012-02-23 Vladimir Serbinenko <phcoder@gmail.com>
12807
12808 * util/grub.d/00_header.in: Add missing export theme.
12809
dbebaf92
VS
128102012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12811
12812 * util/ieee1275/ofpath.c: Remove include of malloc.h since stdlib is
12813 already included.
12814 Reported by: Eren D.
12815
3d68bffb
VS
128162012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12817
12818 * conf/Makefile.common (grubdatadir): Removed.
12819 (Makefile.am): Move eveything grubdata to pkgdata.
12820
4b59234d
VS
128212012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12822
12823 * grub-core/commands/acpihalt.c (get_sleep_type):
12824 Remove unused variable.
12825
463dcadc
VS
128262012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12827
12828 * include/grub/acpi.h (GRUB_ASCII_OPCODE): Add
12829 GRUB_ACPI_OPCODE_STRING_CONST, GRUB_ACPI_OPCODE_BUFFER,
12830 GRUB_ACPI_OPCODE_CREATE_WORD_FIELD
12831 and GRUB_ACPI_OPCODE_CREATE_BYTE_FIELD.
12832 * grub-core/commands/acpihalt.c [GRUB_DSDT_TEST]: Replace include of
12833 i18n with gettext no-op.
12834 (skip_data_ref_object): Support GRUB_ACPI_OPCODE_BUFFER and
12835 GRUB_ACPI_OPCODE_STRING_CONST.
12836 (get_sleep_type): Support GRUB_ACPI_OPCODE_CREATE_WORD_FIELD and
12837 GRUB_ACPI_OPCODE_CREATE_BYTE_FIELD. Add handling of unknown opcodes.
12838
e5b90c82
VS
128392012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12840
12841 * po/POTFILES.in: Regenerate.
12842
2a704ca9
VS
128432012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12844
12845 * Makefile.util.def (libgrubmods.a): Add -Wno-error=logical-op
12846 -Wno-error=missing-noreturn.
12847
84f9d341
VS
128482012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12849
12850 * grub-core/fs/affs.c (grub_affs_read_block): Avoid <= in loop
12851 condition to avoid possibly infinite loops.
12852 * grub-core/lib/pbkdf2.c (grub_crypto_pbkdf2): Likewise.
12853 * grub-core/lib/xzembed/xz_dec_bcj.c (bcj_powerpc): Likewise.
12854
d46683f9
VS
128552012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12856
12857 * grub-core/normal/charset.c (bidi_line_wrap): Avoid <= in loop
12858 condition to avoid possibly infinite loops.
12859
c44866b2
VS
128602012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12861
12862 * grub-core/kern/emu/hostdisk.c (read_device_map): Add missing noreturn
12863 on show_error.
12864
96790539
VS
128652012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12866
12867 * grub-core/kern/disk.c (grub_disk_write): Add missing const qualifier.
12868
1ba7e295
VS
128692012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12870
12871 * grub-core/kern/corecmd.c (grub_core_cmd_ls): Add missing var init.
12872
21ffe8f1
VS
128732012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12874
12875 * util/bin2h.c (usage): Add missing attribute noreturn.
12876
0ccb6b3c
VS
128772012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12878
12879 * grub-core/commands/testload.c (grub_cmd_testload): Fix overflow
12880 if the size isn't divisible by 512.
12881
b00d7fb6
VS
128822012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12883
12884 Make list_push and list_remove functions rather than inline functions
12885 to decrease size and avoid aliasing violations.
12886
12887 * include/grub/list.h (grub_list_push): Move to ...
12888 * grub-core/kern/list.c (grub_list_push): ... here. Don't inline.
12889 * include/grub/list.h (grub_list_remove): Move to ...
12890 * grub-core/kern/list.c (grub_list_remove): ... here. Don't inline.
12891
9d369087
VS
128922012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12893
12894 * configure.ac: Disable for now -Wstack-protector, -Wunreachable-code
12895 and -Wunused-result.
12896
af0250d9
VS
128972012-02-21 Vladimir Serbinenko <phcoder@gmail.com>
12898
12899 * grub-core/net/net.c (grub_cmd_deladdr): Fix index.
12900 Reported by: Seth Goldberg
12901
aad32b14
VS
129022012-02-21 Vladimir Serbinenko <phcoder@gmail.com>
12903
12904 * configure.ac: Add -fno-builtin-gettext on host if NLS is disabled.
12905
ac96441c
ST
129062012-02-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
12907
12908 * util/grub-mkconfig.in (GRUB_CMDLINE_GNUMACH): Export variable.
12909 * util/grub.d/10_hurd.in: Include GRUB_CMDLINE_GNUMACH in gnumach
12910 command line.
12911 * docs/grub.texi (Simple configuration): Document
12912 GRUB_CMDLINE_GNUMACH.
12913
129142012-02-18 Vladimir Serbinenko <phcoder@gmail.com>
80a71213
VS
12915
12916 * conf/Makefile.common (platform_SCRIPTS): New variable.
12917 (platform_PROGRAMS): Likewise.
12918 * gentpl.py: Mark *,module and *.image for install.
12919 * grub-core/gdb_grub.in: Add a notice of expected environment.
12920 * grub-core/Makefile.core.def (gdb_grub): Mark for install.
12921 (gmodule.pl): Likewise.
12922
ac96441c 129232012-02-18 Vladimir Serbinenko <phcoder@gmail.com>
a8f16eab
VS
12924
12925 Replace grub_checkkey with grub_getkey_noblock.
12926
12927 * grub-core/kern/term.c (grub_checkkey): Replaced with ...
12928 (grub_getkey_noblock): ... this. All users updated.
12929
ac96441c 129302012-02-18 Vladimir Serbinenko <phcoder@gmail.com>
b500bcfe
VS
12931
12932 * grub-core/kern/emu/console.c: Move to ...
12933 * grub-core/term/emu/console.c: ...here.
12934 (grub_ncurses_getkey): Fix return value if no key is detected.
12935
e51b5666
VS
129362012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
12937
12938 * include/grub/test.h (grub_unit_test_init): Add missing prototype.
12939 (grub_unit_test_fini): Likewise.
12940 * tests/lib/unit_test.c (main): Remove extra nested external prototype.
12941
129422012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
12943
12944 * include/grub/test.h (GRUB_UNIT_TEST)
12945
d9a62292
VS
129462012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
12947
12948 * grub-core/script/execute.c (grub_script_break): Clarify logic.
12949 Better error handling.
12950 (grub_script_return): Likewise.
12951 * grub-core/script/lexer.c (grub_script_lexer_yywrap): Likewise.
12952
77c9182f
VS
129532012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
12954
12955 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (__GNU_LIBRARY__): Avoid
12956 rimplicit redifinition.
12957
edb13cf9
VS
129582012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
12959
12960 * docs/grub.texi (Internationalisation): Detail (lack of) collation in
12961 GRUB.
12962
a9e9dc7c
VS
129632012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
12964
12965 * grub-core/normal/cmdline.c (grub_cmdline_get): Don't gettext prompt.
12966 * grub-core/normal/main.c (grub_normal_read_line_real): Gettext
12967 prompt here.
12968
b4ba8e02
VS
129692012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
12970
12971 * grub-core/fs/zfs/zfs.c (zfs_fetch_nvlist): Mark unknown member here
12972 as GRUB_ERR_BUG. Don't malloc if no device is available.
12973
dded5540
VS
129742012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
12975
12976 * grub-core/term/terminfo.c (grub_terminfo_output_unregister):
12977 Mark calling with invalid term as GRUB_ERR_BUG.
12978
0cf69874
VS
129792012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
12980
12981 * grub-core/net/tftp.c (tftp_receive): Silently discard too short
12982 packets rather than raising an error.
12983
59bfe502
VS
129842012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
12985
12986 * grub-core/loader/xnu.c (grub_xnu_writetree_toheap_real): Avoid set
12987 in if.
12988
db5fc596
VS
129892012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
12990
12991 * grub-core/loader/efi/appleloader.c (grub_cmd_appleloader): Move
12992 diagnostic to dprintf.
12993 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
12994
e4b7f404
VS
129952012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
12996
12997 * grub-core/kern/corecmd.c (grub_core_cmd_ls): Handle error in parsing
12998 device name.
12999
e7b02f9e
VS
130002012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13001
13002 * grub-core/fs/ntfs.c (locate_attr): Avoid set in if.
13003 (grub_ntfs_iterate_dir): Likewise.
13004
0331e102
VS
130052012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13006
13007 Efiemu stylistic fixes and gettext.
13008
13009 * grub-core/efiemu/i386/loadcore32.c
13010 (grub_arch_efiemu_relocate_symbols32): Avoid set in if.
13011 * grub-core/efiemu/i386/loadcore64.c
13012 (grub_arch_efiemu_relocate_symbols64): Likewise.
13013 * grub-core/efiemu/i386/pc/cfgtables.c
13014 (grub_machine_efiemu_init_tables): Likewise.
13015 * grub-core/efiemu/loadcore.c (grub_efiemu_resolve_symbols): Likewise.
13016 (grub_efiemu_loadcore_initXX): Add a filename argument.
13017 All users updated.
13018 Improved error message.
13019 * grub-core/efiemu/loadcore_common.c (grub_efiemu_loadcore_init):
13020 Add a filename argument.
13021 All users updated.
13022 * grub-core/efiemu/symbols.c (grub_efiemu_set_virtual_address_map):
13023 Reclassify double relocation as GRUB_ERR_BUG.
13024
306fc074
VS
130252012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13026
13027 * grub-core/commands/i386/pc/play.c (grub_cmd_play): Improve error
13028 handling.
13029
794d8ef2
VS
130302012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13031
13032 * grub-core/commands/hdparm.c (grub_cmd_hdparm): Allow running
13033 on partition.
13034
130352012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
f991dd3c
VS
13036
13037 * include/grub/misc.h (grub_error_save): Fix cleaning grub_errno.
13038
794d8ef2 130392012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
d61386e2
VS
13040
13041 Improve string. Gettextize.
13042
78dde88e
VS
130432012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
13044
13045 * configure.ac: Remove -Winline altogether and -Wmissing-prototypes on
13046 utils.
13047 * util/import_gcry.py: Add -Wno-strict-aliasing on checked modules.
13048
4786a90f
VS
130492012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
13050
13051 * grub-core/disk/diskfilter.c (grub_diskfilter_print_partmap)
13052 [GRUB_UTIL]: New function.
13053 (insert_array) [GRUB_UTIL]: Store partmaps.
13054 * include/grub/diskfilter.h (grub_diskfilter_pv) [GRUB_UTIL]: New member
13055 partmaps.
13056 (grub_diskfilter_print_partmap) [GRUB_UTIL]: New proto.
13057 * util/grub-probe.c (probe_partmap): Call grub_diskfilter_print_partmap.
13058 (probe_abstraction): Print diskfilter and not raid.
13059 Reported by: Lennart Sorensen
13060
0b6225bd
VS
130612012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
13062
13063 * util/grub-mkimage.c (generate_image): Explicitly init decompress_size.
13064 * util/grub-mkimagexx.c (MASK3): New define.
13065 (add_value_to_slot_20b): Use MASK3.
13066 (add_value_to_slot_21): Likewise.
13067 (relocate_addresses): Fix format specification.
13068 (load_image): Explicitly init symtab_section.
13069
b055f8f6
VS
130702012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
13071
13072 * util/getroot.c (grub_find_root_devices_from_mountinfo): Fix types.
13073 (grub_util_biosdisk_get_grub_dev): Fix format specification.
13074
b77c2fb7
VS
130752012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
13076
13077 * grub-core/kern/emu/full.c (grub_arch_dl_get_tramp_got_size): Enable
13078 on powerpc.
13079 Reported by: Lennart Sorensen
13080
e3ec28ab
VS
130812012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
13082
13083 * gentpl.py: Add missing license header.
13084 * docs/grub.texi: Update copyright year.
13085
c8d9ead6
GS
130862012-02-10 Grégoire Sutre <gregoire.sutre@gmail.com>
13087
13088 Source grub-mkconfig_lib from the build directory at build time.
13089 Suggested by: Vladimir Serbinenko.
13090
13091 * gentpl.py (manpage): Set pkgdatadir to $(builddir) on help2man call.
13092 * util/grub-install.in: Define pkgdatadir if not already set, and source
13093 grub-mkconfig_lib from there.
13094 * util/grub-kbdcomp.in: Likewise.
13095 * util/grub-mkconfig.in: Likewise.
13096 * util/grub-mknetdir.in: Likewise.
13097 * util/grub-mkrescue.in: Likewise.
13098 * util/grub-mkstandalone.in: Likewise.
13099 * util/grub-reboot.in: Likewise.
13100 * util/grub-set-default.in: Likewise.
13101 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
13102
ebcecdf1
VS
131032012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13104
13105 Increase warning level.
13106
13107 * conf/Makefile.common (CFLAGS_GNULIB): Add -Wno-redundant-decls
13108 -Wno-unreachable-code -Wno-conversion -Wno-old-style-definition.
13109 * configure.ac (HOST_CFLAGS): Add bunch of -W arguments.
13110 (TARGET_CFLAGS): Likewise.
13111 (HOST_CFLAGS): Add -Werror unless --disable-werror is activated.
13112 * grub-core/Makefile.core.def (decompressor_xz): Add
13113 -Wno-unreachable-code.
13114 (normal): Add -Wno-redundant-decls.
13115 (xzio): Add -Wno-unreachable-code.
13116 (lzopio): Add -Wno-redundant-decls -Wno-error.
13117 * grub-core/commands/acpi.c: Add exception to -Wcast-align.
13118 * grub-core/commands/lsacpi.c: Add exception to -Wcast-align.
13119 * grub-core/gensymlist.sh: Add exception to -Wmissing-format-attribute.
13120 * grub-core/kern/dl.c: Add exception to -Wcast-align.
13121 * grub-core/kern/efi/efi.c (grub_efi_modules_addr): Likewise.
13122 * grub-core/kern/i386/coreboot/init.c: Add exception to
13123 -Wsuggest-attribute=noreturn.
13124 * grub-core/kern/ia64/dl.c: Add exception to -Wcast-align.
13125 * grub-core/kern/ia64/dl_helper.c: Likewise.
13126 * grub-core/kern/mips/dl.c: Likewise.
13127 * grub-core/kern/sparc64/dl.c: Likewise.
13128 * grub-core/lib/LzmaEnc.c: Add exception to -Wshadow.
13129 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (memcpy): Likewise.
13130 (memcmp): Likewise.
13131 * grub-core/lib/pbkdf2.c: Add exception to -Wunreachable-code.
13132 * grub-core/loader/ia64/efi/linux.c: Add exception to -Wcast-align.
13133 * grub-core/loader/mips/linux.c: Likewise.
13134 * grub-core/loader/multiboot_elfxx.c: Likewise.
13135 * grub-core/script/parser.y: Add exception to -Wunreachable-code.
13136 * grub-core/video/sm712.c: Add exception to -Wcast-align.
13137 * util/import_gcry.py: Add -Wno-cast-align to modules checked by hand.
13138 * grub-core/font/font.c (grub_font_loader_init): Add explicit cast and
13139 fixme.
13140 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Likewise.
13141 * grub-core/kern/i386/multiboot_mmap.c (grub_machine_mmap_init):
13142 Fix prototype.
13143
37bb97fe
VS
131442012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13145
13146 * grub-core/lib/i386/relocator16.S: Fix incorrect use of absolute
13147 address.
13148
29a3550b
VS
131492012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13150
13151 * grub-core/commands/legacycfg.c (grub_cmd_legacy_kernel):
13152 Avoid improper use of strings.
13153 (grub_cmd_legacy_initrdnounzip): Likewise.
13154
dfdffd0d
VS
131552012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13156
13157 * include/grub/emu/misc.h (grub_util_warn): Add missing format
13158 attribute.
13159 (grub_util_info): Likewise.
13160 (grub_util_error): Likewise.
13161
102fae4a
VS
131622012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13163
13164 * util/grub-mount.c (fuse_init): Avoid improper use of strings.
13165 * util/grub-fstest.c (fstest): Likewise.
13166
7e94d044
VS
131672012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13168
13169 * grub-core/disk/geli.c (grub_md_sha256_real): Respect format security.
13170 (grub_md_sha512_real): Likewise.
13171 (grub_util_get_geli_uuid): Likewise.
13172 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): Likewise.
13173 (grub_util_biosdisk_open): Fix format specification.
13174 Respect format security.
13175 * grub-core/kern/emu/misc.c (xmalloc): Respect format security.
13176 (xrealloc): Likewise.
13177 (xasprintf): Likewise.
13178
5ebd9769
VS
131792012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13180
13181 * util/import_gcry.py: Include grub/crypto.h in init.c.
13182
495fc8c1
VS
131832012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13184
13185 * util/grub-mkimage.c (compress_kernel_lzma): Respect format security.
13186 (generate_image): Make prefix a const char *.
13187 Fix format specifications. Respect format security.
13188 Avoid void * arithmetics.
13189 Avoid shadowing.
13190 (argp_parser): Remove unused variable. Respect format security.
13191 * util/grub-mkimagexx.c (relocate_symbols): Avoid shadowing.
13192 (count_funcs) [!MKIMAGE_ELF64]: #if-out.
13193 (count_funcs): Remove unused variable.
13194 (relocate_addresses): Fix format specification.
13195 Disable x86-64 with elf32. Remove unused variables.
13196 (add_fixup_entry): Avoid shadowing.
13197 (make_reloc_section): Fix format specification.
13198 Use assert.
13199 (locate_sections): Fix format specifications.
13200 (load_image): Avoid shadowing.
13201
043c2ea3
VS
132022012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13203
13204 * util/grub-setup.c (setup): Remove unused variable. Avoid shadowing.
13205 Fix format specifications. Respect format security.
13206 Don't translate already translated grub_errmsg.
13207 (argp_parser): Remove unused variable
13208
3ec65a81
VS
132092012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13210
13211 * util/grub-mkrelpath.c (argp_parser): Remove unused variable.
13212
a4d9fe4a
VS
132132012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13214
13215 * util/grub-mkpasswd-pbkdf2.c (argp_parser): Remove unused variable.
13216 (main): Likewise. Use xmalloc. Respect format security.
13217
15b81d49
VS
132182012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13219
13220 * util/grub-mklayout.c (console_grub_equivalence): Make "layout"
13221 a const char *.
13222 (argp_parser): Remove unused variable.
13223
31731fc0
VS
132242012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13225
13226 * util/grub-mkfont.c (grub_font_info): Make name a const char *.
13227 (add_pixel): Make static.
13228 (add_font): Likewise.
13229 (write_string_section): Make name and str a const char *.
13230 (write_be16_section): Make name a const char *.
13231 (print_glyphs): Make static.
13232 (write_font_ascii_bitmap): Likewise.
13233 (write_font_width_spec): Likewise.
13234 (write_font_pf2): Likewise.
13235 (argp_parser): Remove unused variable.
13236 Respect format security.
13237 (main): Avoid shadowing. Respect format security.
13238
0809527b
VS
132392012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13240
13241 * util/grub-editenv.c (argp_parser): Make static.
13242 (create_envblk_file): Use xmalloc.
13243 (open_envblk_file): Likewise.
13244 Resepect format security.
13245 (set_variables): Respect format security.
13246
45b0c8b7
VS
132472012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13248
13249 * util/getroot.c (grub_find_device): Respect format security.
13250 (get_mdadm_uuid): Remove unused variable.
13251 (grub_util_pull_device): Dont call gettext on already translated
13252 grub_errmsg.
13253 (find_system_device): Remove unused variable.
13254 (grub_util_get_grub_dev): Likewise.
13255 (grub_make_system_path_relative_to_its_root): Respect format security.
13256
1b024b4e
VS
132572012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13258
13259 * util/grub-fstest.c (execute_command): Make first argument
13260 a const char *.
13261 (read_file): Avoid shadowing.
13262 Reuse underlying error message if device open fails.
13263 (cmd_cmp): Respect format security.
13264 (root): Make const char *.
13265 (fstest): Remove args argument and use global copy.
13266 Respect format security.
13267 (argp_parser): Make static.
13268 (main): Make default_root const char *.
13269
5d1d4e28
VS
132702012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13271
13272 * util/grub-mount.c (root): Make const char *.
13273 (execute_command): Make first argument a const char *.
13274 (fuse_init): Respect format security.
13275 (argp_parser): Make static. Remove unused variable.
13276 (main): Make default_root a const char *.
13277 Respect format security.
13278
36eb7379
VS
132792012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13280
13281 * util/grub-probe.c (probe): Don't call gettext on already translated
13282 grub_errmsg.
13283 Remove unused variables.
13284 (argp_parser): Remove unused variable.
13285
76fb2ea9
VS
132862012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13287
13288 * util/grub-script-check.c (argp_parser): Remove unused variable.
13289 (main): Rename read to curread to avoid shadowing.
13290
56c98584
VS
132912012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13292
13293 * util/misc.c (grub_util_write_image_at): Fix format specification.
13294 (grub_util_write_image): Likewise.
13295 (grub_script_execute_argument_to_string): Removed (unused).
13296 (grub_script_execute_menuentry): Likewise.
13297 (grub_putchar): Likewise.
13298
164ebb48
VS
132992012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13300
13301 * include/grub/symbol.h (EXT_C) [GRUB_UTIL]: Removed.
13302 (FUNCTION) [GRUB_UTIL]: Likewise.
13303 (VARIABLE) [GRUB_UTIL]: Likewise.
13304
44318d61
VS
133052012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13306
13307 * include/grub/misc.h: Avoid evaluationg NEED_ENABLE_EXECUTE_STACK and
13308 NEED_REGISTER_FRAME_INFO in GRUB_UTIL.
13309
31a26002
VS
133102012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13311
13312 * grub-core/partmap/bsdlabel.c (iterate_real): Fix freeing of static
13313 buffer.
13314
133152012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13316
13317 * grub-core/lib/LzmaEnc.c (LzmaEnc_FastPosInit): Made static.
13318 (LzmaEnc_SaveState): Removed (unused).
13319 (LzmaEnc_RestoreState): Likewise.
13320 (LzmaEnc_InitPriceTables): Made static.
13321 (LzmaEnc_Construct): Likewise.
13322 (LzmaEnc_FreeLits): Likewise.
13323 (LzmaEnc_Destruct): Likewise.
13324 (LzmaEnc_Init): Likewise.
13325 (LzmaEnc_InitPrices): Likewise.
13326 (LzmaEnc_Finish): Likewise.
13327 (LzmaEnc_PrepareForLzma2): Removed (unused).
13328 (LzmaEnc_MemPrepare): Likewise.
13329 (LzmaEnc_GetNumAvailableBytes): Likewise.
13330 (LzmaEnc_GetCurBuf): Likewise.
13331 (LzmaEnc_CodeOneMemBlock): Likewise.
13332
6fa67967
VS
133332012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13334
13335 * grub-core/disk/ldm.c (grub_util_get_ldm): Remove unused variables.
13336 (grub_util_ldm_embed): Likewise.
13337
9a7428e6
VS
133382012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13339
13340 * util/grub-editenv.c (print_var): Rename name to varname to
13341 avoid shadowing.
13342 (main): Rename index to curindex to avoid shadowing.
31a26002 13343 Make filename a const char *.
9a7428e6 13344
4f96abd1
VS
133452012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13346
13347 * grub-core/script/lexer.c (grub_script_lexer_init): Rename getline
13348 to arg_getline to avoid shadowing.
13349
44d10dad
VS
133502012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13351
13352 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Rename disk to
13353 disk_ to avoid shadowing.
13354
340ba63e
VS
133552012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13356
13357 * grub-core/lib/LzFind.c (MatchFinder_GetIndexByte): Rename index to
13358 curindex to avoid shadowing.
13359 Make static.
13360 (MatchFinder_GetNumAvailableBytes): Make static.
13361
22965bce
VS
133622012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13363
13364 * grub-core/fs/squash4.c (direct_read): Rename read to curread to
13365 avoid shadowing.
13366
7b5784d4
VS
133672012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13368
13369 * grub-core/disk/cryptodisk.c (grub_cryptodisk_endecrypt): Rename
13370 argument from encrypt to do_encrypt to avoid shadowing.
13371
6f48ca01
VS
133722012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13373
13374 * grub-core/loader/multiboot_elfxx.c (grub_multiboot_load_elf): Fix
13375 incorrect nesting of #if's.
13376
a4ea2dff
VS
133772012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13378
13379 * grub-core/commands/lsacpi.c (disp_acpi_xsdt_table): #if'-out the
13380 checks which are always false on some platforms.
13381 (grub_cmd_lsacpi): Likewise.
13382 * grub-core/kern/misc.c (grub_strtoul): Likewise.
13383 * grub-core/loader/multiboot.c (grub_multiboot_set_video_mode):
13384 Likewise.
13385
def9fc1b
VS
133862012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13387
13388 * grub-core/disk/diskfilter.c (read_segment): Renome unreachable code.
13389 * grub-core/net/ip.c (grub_net_recv_ip4_packets): Likewise.
13390
a67b2a04
VS
133912012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13392
13393 * grub-core/gnulib/regex.h (re_pattern_buffer): Declare buffer as
13394 re_dfa_t to avoid breaking alignment invariants.
13395 * grub-core/gnulib/regex_internal.h (re_dfa_t): Moved to ...
13396 * grub-core/gnulib/regex.h (re_dfa_t): ... here.
13397
44c6828d
VS
133982012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13399
13400 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Fix printf.
13401 * grub-core/loader/ia64/efi/linux.c (grub_cmd_fpswa): Likewise.
13402
bebe0dd0
VS
134032012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13404
13405 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_init):
13406 Fix declaration.
13407
a9cdb3cf
VS
134082012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13409
13410 * grub-core/bus/usb/ehci.c (grub_ehci_ehcc_read32): Restructure to
13411 conserve alignment invariants.
13412 (grub_ehci_ehcc_read16): Likewise.
13413 (grub_ehci_oper_read32): Likewise.
13414 (grub_ehci_oper_write32): Likewise.
13415 (grub_ehci_pci_iter) [!GRUB_HAVE_UNALIGNED_ACCESS]: Check alignment.
13416 Conserve alignment invariants.
13417
ccc3b1b8
VS
134182012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13419
13420 * grub-core/kern/emu/full.c (grub_emu_post_init): Remove raid reinit.
13421 * include/grub/disk.h [GRUB_MACHINE_EMU]: Remove now useless LVM/RAID
13422 declarations.
13423
987fbd95
VS
134242012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13425
13426 * grub-core/kern/emu/hostfs.c (grub_hostfs_close):
13427 Remove unused variable.
13428
0df363f3
VS
134292012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13430
13431 * grub-core/efiemu/loadcore_common.c (grub_efiemu_loadcore_load):
13432 Remove set in if.
13433
b2c0c4a6
VS
134342012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13435
13436 * include/grub/net.h: Remove double declarations.
13437
690c531f
VS
134382012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13439
13440 Remove "payload" command in ia64 Linux loader since I couldn't
13441 find any evidence of it being used for anything.
13442 Replace "relocate" command with an environment variable
13443
13444 * grub-core/loader/ia64/efi/linux.c (ia64_boot_param): Remove extra
13445 fields.
13446 (ia64_boot_payload): Removed.
13447 (last_payload): Likewise.
13448 (RELOCATE_OFF): Likewise.
13449 (RELOCATE_ON): Likewise.
13450 (RELOCATE_FORCE): Likewise.
13451 (relocate): Likewise.
13452 (free_pages): Don't free payloads.
13453 (grub_load_elf64): Use common error messages.
13454 Use "linux_relocate" variable.
13455 Increase the space after boot_params.
13456 (grub_cmd_payload): Removed.
13457 (grub_cmd_relocate): Likewise.
13458 (grub_cmd_fpswa): Improve messages.
13459 (cmd_payload): Removed.
13460 (cmd_relocate): Likewise.
13461 (GRUB_MOD_INIT): Don't register "payload" and "relocate".
13462 (GRUB_MOD_FINI): Don't unregister "payload" and "relocate".
13463
01783768
VS
134642012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13465
13466 Convert UHCI to DMA framework.
13467
13468 * grub-core/bus/usb/uhci.c (grub_uhci): Add chunk and phys members.
13469 (grub_uhci_pci_iter): Fill new members
13470 (grub_alloc_td): Use P2V and V2P functions.
13471 (grub_free_queue): Likewise.
13472 (grub_alloc_qh): Likewise.
13473 (grub_uhci_setup_transfer): Likewise.
13474 (grub_uhci_check_transfer): Likewise.
13475
43206939
VS
134762012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13477
13478 * grub-core/video/colors.c (grub_video_parse_color): Fix error message.
13479 Remove assignment in if while on it.
13480
571e140e
VS
134812012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13482
13483 * util/grub-mkstandalone.in: Fix modules directory.
13484
a9d96eeb
VS
134852012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13486
13487 * util/grub-mkimage.c (image_targets): Set default_compression to lzma
13488 on i386-pc target.
13489 (argp_parser): Accept "auto" as compression specification.
13490
e4e37e8d
VS
134912012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13492
13493 Fix `help' with unloaded modules.
13494
13495 * include/grub/normal.h (grub_dyncmd_get_cmd): New proto.
13496 * grub-core/normal/dyncmd.c (grub_dyncmd_get_cmd): New function.
13497 (grub_dyncmd_dispatcher): Small stylistic fix.
13498 * grub-core/commands/help.c (grub_cmd_help): Load missing modules when
13499 explicit help is requested.
13500
e1ea3ade
VS
135012012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13502
13503 * grub-core/fs/cpio.c (grub_cpio_dir): Fix a bug with multiple listing.
13504 Explicitly init restart while on it.
13505
27556881
VS
135062012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13507
13508 * grub-core/lib/posix_wrap/wchar.h (mbrtowc): Set pwc to zero to avoid
13509 uninited variable.
13510
d65f6b36
VS
135112012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
13512
13513 * util/grub-mknetdir.in: Use . rather than source for POSIX
13514 compatibility.
13515
0a1e473c
VS
135162012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
13517
13518 * util/grub-probe.c (main): Fix trailing space in compatibility hint.
13519
ce6647c8
VS
135202012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
13521
13522 * grub-core/kern/partition.c (grub_partition_get_name): Fix uninited
13523 variable.
13524
66747894
VS
135252012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
13526
13527 * grub-core/commands/hdparm.c (grub_cmd_hdparm): Accept device name
13528 without quotes.
13529
71645f6e
VS
135302012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
13531
13532 * grub-core/net/net.c (GRUB_MOD_INIT): Don't register netfs.
13533
0e1c1f61
VS
135342012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
13535
13536 * grub-core/kern/partition.c (grub_partition_get_name): Fix reverse
13537 iteration of partitions.
13538
9c4b5c13
VS
135392012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
13540
13541 Improve gettext support. Stylistic fixes and error handling fixes while
13542 on it.
13543
215c90cb
VS
135442012-02-07 Vladimir Serbinenko <phcoder@gmail.com>
13545
13546 * grub-core/lib/i386/relocator16.S: Revert moving A20 code into PM
13547 part. Instead setup the correct stack in RM.
13548 * grub-core/lib/i386/relocator.c (grub_relocator16_boot): Reserve place
13549 for stack.
13550 * include/grub/i386/relocator_private.h: New file.
13551
b5c1f9bf
VS
135522012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
13553
13554 * grub-core/commands/minicmd.c (GRUB_MOD_INIT): Add missing SIZE
13555 argument.
13556 * util/grub-fstest.c (options): Add missing DEVICE part.
13557
b525fd83
VS
135582012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
13559
13560 Clarify and unify messages.
13561
13562 * grub-core/commands/hashsum.c (options): Unify messages.
13563 * grub-core/commands/keystatus.c (GRUB_MOD_INIT): Don't mark a
13564 literal-only message as translatable.
13565 * grub-core/commands/lsacpi.c (GRUB_MOD_INIT): Likewise.
13566 * grub-core/loader/ia64/efi/linux.c (GRUB_MOD_INIT): Likewise.
13567 * grub-core/commands/legacycfg.c (GRUB_MOD_INIT): Add quoting around
13568 commands.
13569 * grub-core/commands/menuentry.c (options): Clarify that it's a keyboard
13570 key, not the key used to unlock. Clarify what it's used for.
13571 * grub-core/kern/emu/hostdisk.c (read_device_map): Unify error message.
13572 * grub-core/loader/xnu.c (grub_xnu_load_driver): Remove erroneous colon.
13573 * grub-core/script/main.c (GRUB_MOD_INIT): Clarify [n] to be [NUM].
13574 * util/grub-editenv.c (options): Unify "verbose" message.
13575 * util/grub-fstest.c (read_file): Unify error message.
13576 (fstest): Add quotes around commands.
13577 (options): Unify "verbose" message.
13578 * util/grub-install.in: Add quotes around variable name.
13579 * util/grub-kbdcomp.in: Unify error message.
13580 * util/grub-mkfont.c (main): Likewise.
13581 * util/grub-mkrescue.in: Likewise.
13582 * util/grub-mklayout.c (options): Unify "verbose" message.
13583 * util/grub-mkstandalone.in: Unify help and verbose messages.
13584 * util/grub-mount.c (options): Unify "verbose" message.
13585 * util/grub-probe.c (options): Likewise.
13586 * util/grub-script-check.c (options): Likewise.
13587 * util/grub-setup.c (setup): Unify no-terminator message.
13588 (options): Use DEVICE and not DEV.
13589 Unify "verbose" message.
13590 * util/ieee1275/ofpath.c (xrealpath): Unify error message.
13591
0ae70393
VS
135922012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
13593
13594 Improve and unify messages.
13595
13596 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): Add argument
13597 name. All users updated.
13598 Print filename in error.
13599 (read_device_map): Print filename in error.
13600 * util/getroot.c (grub_guess_root_devices): Print filename in error.
13601 (grub_util_get_os_disk): Likewise.
13602 (grub_util_biosdisk_get_grub_dev): Likewise.
13603 (grub_util_check_block_device): Likewise.
13604 (grub_util_check_char_device): Likewise.
13605 (grub_make_system_path_relative_to_its_root): Likewise.
13606 * util/grub-editenv.c (create_envblk_file): Likewise.
13607 (open_envblk_file): Likewise.
13608 (write_envblk): Likewise.
13609 * util/grub-fstest.c (cmd_cp): Likewise.
13610 (cmd_cat): Likewise.
13611 (cmd_cmp): Likewise.
13612 * util/grub-menulst2cfg.c (main): Likewise.
13613 * util/grub-mkfont.c (write_font_ascii_bitmap): Likewise.
13614 (write_font_width_spec): Likewise.
13615 (write_font_pf2): Likewise.
13616 * util/grub-mkimage.c (generate_image): New argument outname.
13617 All users updated.
13618 Remove unreacheable message.
13619 (options): Unify messages.
13620 (help_filter): Likewise.
13621 * util/grub-mklayout.c (usage): Removed (unused).
13622 (main): Print filename in error.
13623 * util/grub-mkrescue.in: Fix wrong quoting.
13624 * util/grub-setup.c (setup): Print filename in error.
13625 * util/ieee1275/ofpath.c (vendor_is_ATA): Likewise.
13626 (check_sas): Likewise.
13627 * util/misc.c (grub_util_get_fp_size): Removed.
13628 (grub_util_get_image_size): Print filename in error.
13629 (grub_util_read_at): Removed.
13630 (grub_util_read_image): Print filename in error.
13631 (grub_util_load_image): Likewise.
13632 (grub_util_write_image_at): New argument filename. All users updated.
13633 Print filename in error.
13634 (grub_util_write_image): New argument filename. All users updated.
13635 Print filename in error.
13636 * util/raid.c (grub_util_raid_getmembers): Print filename in error.
13637 * util/resolve.c (grub_util_resolve_dependencies): Likewise.
13638
0a96117d
VS
136392012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
13640
13641 * grub-core/Makefile.core.def (pxechain): New module.
13642 * grub-core/loader/i386/pc/pxechainloader.c: New file.
13643 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_get_cached): New
13644 function.
13645 (grub_pc_net_config_real): Use grub_pxe_get_cached.
13646 * include/grub/i386/pc/pxe.h (grub_pxe_get_cached): New proto.
13647
aca002f7
VS
136482012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
13649
13650 * grub-core/kern/err.c (GRUB_MAX_ERRMSG): Move to ...
13651 * include/grub/err.h (GRUB_MAX_ERRMSG): ... here.
13652 * include/grub/err.h (grub_error_saved): New struct.
13653 (grub_errmsg): Make array size explicit.
13654 * include/grub/misc.h (grub_error_save): New function.
13655 (grub_error_load): Likewise.
13656 * grub-core/kern/err.c (grub_error_stack_items): Use grub_error_saved.
13657 (grub_error_push): Update `errno' member name.
13658 (grub_error_pop): Likewise
13659 * grub-core/net/tftp.c (tftp_data): New member save_err.
13660 (tftp_receive): Save error.
13661 (tftp_open): Restore error.
13662
a51dab13
VS
136632012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
13664
13665 * grub-core/lib/i386/relocator16.S (grub_relocator16_start): Move switch
13666 to real mode down to execute A20-related code in protected mode as
13667 intended.
13668
eb6e6649
GS
136692012-02-05 Grégoire Sutre <gregoire.sutre@gmail.com>
13670
13671 * grub-core/disk/diskfilter.c (grub_diskfilter_make_raid): Return
13672 NULL when the argument `level' has an unexpected value.
13673
92cd0f6e
VS
136742012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
13675
13676 Move platform-dependent files from $prefix to $prefix/$platform.
13677
13678 * config.h.in (GRUB_TARGET_CPU): New definition.
13679 (GRUB_PLATFORM): Likewise.
13680 * configure.ac: Define GRUB_TARGET_CPU and GRUB_PLATFORM.
13681 * grub-core/commands/parttool.c (grub_cmd_parttool): Update dir.
13682 * grub-core/efiemu/main.c (grub_efiemu_autocore): Likewise.
13683 * grub-core/kern/dl.c (grub_dl_load): Likewise.
13684 * grub-core/normal/autofs.c (read_fs_list): Likewise.
13685 * grub-core/normal/crypto.c (read_crypto_list): Likewise.
13686 * grub-core/normal/dyncmd.c (read_command_list): Likewise.
13687 * grub-core/normal/term.c (read_terminal_list): Likewise.
13688 * grub-core/gettext/gettext.c (grub_mofile_open_lang): Use
13689 $prefix/locale.
13690 (grub_gettext_init_ext): Likewise.
13691 * grub-core/normal/main.c (GRUB_MOD_INIT): Define grub_cpu and
13692 grub_platform.
13693 * util/grub-install.in: Update directories.
13694 * util/grub-mknetdir.in: Likewise.
13695 * util/grub-mkrescue.in: Likewise.
13696
db606889
VS
136972012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
13698
13699 * grub-core/kern/ieee1275/openfw.c (grub_claimmap): Change to
13700 grub_error framework. All users updated.
13701
c39992a4
VS
137022012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
13703
13704 * grub-core/gettext/gettext.c: Mostly rewritten to avoid using
13705 lists (by always binsearching), improve caching (cache strings
13706 used for binsearch, not only results), improve
13707 maintainability (by using more structured binary search) and correct
13708 error handling.
13709
1e5ec32f
VS
137102012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
13711
13712 * grub-core/script/execute.c (grub_script_return): Fix warning.
13713
ac576cde
VS
137142012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
13715
13716 * grub-core/script/execute.c (grub_script_return): Fix potential
13717 NULL-dereference.
13718 Reported by: Jim Meyering.
13719
498453f6
VS
137202012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13721
13722 * po/POTFILES.in: Regenerate.
13723 * util/grub-install.in: Gettextize the strings missed in first pass.
13724
8be63f2e
VS
137252012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13726
13727 * Makefile.util.def (grub-mkdevicemap): Removed.
13728 * include/grub/emu/hostdisk.h (grub_util_get_os_disk): New proto.
13729 * include/grub/util/deviceiter.h: Removed.
13730 * util/deviceiter.c: Likewise.
13731 * util/getroot.c (grub_util_get_os_disk): New function.
13732 * util/grub-install.in: Remove grub-mkdevicemap. Use -t disk as
13733 replacement for EFI.
13734 * util/grub-mkdevicemap.c: Removed.
13735 * util/grub-probe.c (probe): Handle PRINT_DISK.
13736 (argp_parser): Handle -t disk.
13737
8e1e4e39
VS
137382012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13739
13740 * util/grub-mkfont.c: Migrate to argp.
13741 * util/grub-mklayout.c: Likewise.
13742 * util/grub-mkpasswd-pbkdf2.c: Likewise.
13743 * util/grub-mkrelpath.c: Likewise.
13744 * util/grub-probe.c: Likewise.
13745 * util/grub-script-check.c: Likewise.
13746
4459819a
VS
137472012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13748
13749 * util/grub-reboot.in: Add missing datarootdir.
13750 Add missing newline.
13751 * util/grub-set-default.in: Add missing datarootdir.
13752 * util/powerpc/ieee1275/grub-mkrescue.in: Add missing newline.
13753 * util/grub-mkrescue.in: Likewise.
13754
f65741c7
VS
137552012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13756
13757 * util/grub.d/30_os-prober.in: Fix TRANSLATORS comment.
13758
c1a33466
VS
137592012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13760
13761 * util/grub-kbdcomp.in: Add decent help and gettextize.
13762 * docs/man/grub-kbdcomp.h2m: New file.
13763
c76899a0
VS
137642012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13765
13766 Migrate grub-mkimage.c to argp.
13767
13768 * Makefile.util.def (grub-mkimage): Add util/argp_common.c.
13769 (grub-setup): Likewise.
13770 * util/grub-setup.c (print_version): Move to ...
13771 * util/argp_common.c (print_version): ... here.
13772 * util/grub-setup.c (argp_program_version_hook): Move to ...
13773 * util/argp_common.c (argp_program_version_hook): ... here.
13774 * util/grub-setup.c (argp_parser): Add exit (1) on fatal error for
13775 safety.
13776 * util/grub-mkimage.c (main): Migrate to argp.
13777
57db0757
VS
137782012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13779
13780 * util/grub-mkrescue.in: Use same message as
13781 util/powerpc/ieee1275/grub-mkrescue.in with %s in place of command
13782 for better translations.
13783
18534ad9
VS
137842012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13785
13786 * util/powerpc/ieee1275/grub-mkrescue.in: Gettextize. Unify the command
13787 options with generic grub-mkrescue.in with the goal of future
13788 merge.
13789
c84ba308
VS
137902012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13791
13792 * grub-core/kern/mm.c: Add missing include of i18n.h
13793 * grub-core/lib/relocator.c: Likewise.
13794
347998c2
VS
137952012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13796
13797 * grub-core/loader/ia64/efi/linux.c (find_mmap_size): Replace fatal with
13798 error.
13799 (allocate_pages): Check return value.
13800 Replace fatal with error.
13801 (grub_linux_boot): Replace printf with dprintf.
13802 Check find_mmap_size return value.
13803 Replace fatal with error.
13804 Don't call grub_machine_fini.
13805 (grub_load_elf64): Replace printf with dprintf.
13806 (grub_cmd_linux): Likewise.
13807 (grub_cmd_initrd): Likewise.
13808 (grub_cmd_payload): Likewise.
13809
c779226e
VS
138102012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13811
13812 * grub-core/loader/i386/xnu.c (grub_cmd_devprop_load): Fix error
13813 message.
13814 * grub-core/video/radeon_fuloong2e.c
13815 (grub_video_radeon_fuloong2e_setup): Likewise.
13816 * grub-core/video/sis315pro.c (grub_video_sis315pro_setup): Likewise.
13817 * grub-core/video/video.c (grub_video_set_mode): Don't override
13818 standard out of memory message.
13819
dc87d45a
GS
138202012-02-03 Grégoire Sutre <gregoire.sutre@gmail.com>
13821
13822 NetBSD disk wedge support.
13823
13824 * grub-core/kern/emu/hostdisk.c (grub_hostdisk_find_partition_start)
13825 [__NetBSD__]: Handle NetBSD disk wedges.
13826 * util/getroot.c (convert_system_partition_to_system_disk)
13827 [__NetBSD__]: Likewise.
13828
055f856f
MW
138292012-02-03 Mark Wooding <mdw@distorted.org.uk>
13830
13831 * util/grub-mkconfig.in: Use umask rather than chmod to create
13832 grub.cfg.new to avoid insecure grub.cfg.
13833
4a9f8346
VS
138342012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13835
13836 * grub-core/commands/ls.c: Gettextize.
13837 * grub-core/commands/setpci.c: Likewise.
13838 * grub-core/commands/videotest.c: Likewise.
13839 * grub-core/disk/geli.c: Likewise.
13840 * grub-core/kern/mm.c: Likewise.
13841 * grub-core/lib/relocator.c: Likewise.
13842 * grub-core/loader/efi/appleloader.c: Likewise.
13843 * grub-core/loader/i386/xnu.c: Likewise.
13844 * grub-core/loader/ia64/efi/linux.c: Likewise.
13845 * grub-core/loader/xnu.c: Likewise.
13846 * grub-core/net/dns.c: Likewise.
13847 * grub-core/net/net.c: Likewise.
13848 * grub-core/script/lexer.c: Likewise.
13849 * grub-core/script/parser.y: Likewise.
13850 * grub-core/script/yylex.l: Likewise.
13851 * util/getroot.c: Likewise.
13852 * util/grub-setup.c: Likewise.
13853
a646a366
VS
138542012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13855
13856 * grub-core/fs/reiserfs.c (grub_reiserfs_get_item): Use proper error
13857 number.
13858
54e2be26
VS
138592012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13860
13861 * grub-core/disk/ldm.c (grub_util_ldm_embed): Correct error message.
13862
f7c71e68
VS
138632012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13864
13865 * grub-core/commands/search_file.c (SEARCH_TARGET): Remove obsolete
13866 macro.
13867 * grub-core/commands/search_label.c (SEARCH_TARGET): Likewise.
13868 * grub-core/commands/search_uuid.c (SEARCH_TARGET): Likewise.
13869
a32d5c71
VS
138702012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13871
13872 * util/grub-mkstandalone.in: Fix help messages. Gettextize.
13873 * util/grub-install.in: Gettextize.
13874 * util/grub-mkconfig.in: Likewise.
13875 * util/grub-mkconfig_lib.in: Replace gettext with echo -n and not echo
13876 if not available.
13877 (grub_warn): Gettextize.
13878 * util/grub-mknetdir.in: Gettextize.
13879 * util/grub-mkrescue.in: Likewise.
13880 * util/grub-mkstandalone.in: Likewise.
13881 * util/grub-reboot.in: Likewise.
13882 * util/grub-set-default.in: Likewise.
13883 * util/grub.d/00_header.in: Likewise.
13884 * util/grub.d/10_hurd.in: Likewise.
13885 * util/grub.d/10_kfreebsd.in: Likewise.
13886 * util/grub.d/10_linux.in: Likewise.
13887 * util/grub.d/10_netbsd.in: Likewise.
13888 * util/grub.d/10_windows.in: Likewise.
13889 * util/grub.d/20_linux_xen.in: Likewise.
13890 * util/grub.d/30_os-prober.in: Likewise.
13891 * po/POTFILES-shell.in: Regenerate.
13892
69edd81a
RL
138932012-02-03 Richard Laager <rlaager@wiktel.com>
13894
13895 * util/grub-mkimage.c (main): Fix format-security warning.
13896 * util/grub-mkrelpath.c (main): Likewise.
13897 * util/grub-probe.c (main): Likewise.
13898
65f08dbf
RL
138992012-02-03 Richard Laager <rlaager@wiktel.com>
13900
13901 * util/grub-probe.c (probe): Don't crash on canonicalize_file_name
13902 failure.
13903 Put back lost PRINT_DRIVE.
13904
e9084abe
RL
139052012-02-03 Richard Laager <rlaager@wiktel.com>
13906
13907 * util/getroot.c (find_root_devices_from_libzfs): Fix compilation error.
13908 (grub_guess_root_devices): Replace strlen with sizeof.
13909 Avoid crash.
13910 (find_root_devices_from_poolname): Remove unused variable.
13911 Handle raidzN.
13912
cf5f7ee7
VS
139132012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13914
13915 Support install on multi-device filesystems.
13916
13917 * include/grub/emu/getroot.h (grub_guess_root_device): Renamed to ...
13918 (grub_guess_root_devices): ...this. Return char **. All users updated.
13919 * include/grub/emu/misc.h (grub_find_root_device_from_mountinfo):
13920 Removed.
13921 * util/getroot.c (find_root_device_from_libzfs): Moved pool logic to ...
13922 (find_root_devices_from_poolname): ... here.
13923 (grub_find_root_devices_from_mountinfo): Return char **. Make static.
13924 Support zfs-fuse.
13925 (grub_guess_root_device): Rename to ...
13926 (grub_guess_root_devices): ... this. Return char **. All users updated.
13927 * util/grub-install.in: Handle multi-device filesystems.
13928 * util/grub-probe.c (probe). Make device_names a char **. Add delim
13929 argument. All users updated.
13930 Handle multi-device filesystems.
13931 Use 'delim' as separator.
13932 Remove device check to allow filesystems on file.
13933 (main): Support -0 argument. Handle multi-device.
13934 * util/grub-setup.c (setup): Remove root argument. Handle multi-device.
13935 Fix a cross-device check while on it.
13936 (arguments): Remove root_dev.
13937 (argp_parser): Remove -r.
13938 (main): Remove root_dev.
13939
2f53a9ed
VS
139402012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
13941
13942 * grub-core/fs/zfs/zfscrypt.c: Add link to documentation.
13943
17e1d934
VS
139442012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
13945
13946 * grub-core/commands/videotest.c (grub_cmd_videotest): Fix subset
13947 symbol.
13948 Reported by: NODA, Kai <nodakai>.
13949
d3e3fab5
VS
139502012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
13951
13952 Fix ehci on amd64.
13953
13954 * grub-core/bus/usb/usbhub.c (grub_usb_hub_add_dev): Use %p to print
13955 pointers.
13956 * grub-core/bus/usb/ehci.c (grub_ehci_pci_iter): Likewise.
13957 (grub_ehci_setup_qh): Likewise.
13958 (grub_ehci_find_qh): Likewise.
13959 (grub_ehci_transaction): Likewise.
13960 (grub_ehci_setup_transfer): Likewise.
13961 (grub_ehci_check_transfer): Likewise.
13962 (grub_ehci_portstatus): Likewise.
13963 (grub_ehci_detect_dev): Likewise.
13964 (grub_ehci_transfer_controller_data): New field td_last_phys.
13965 (grub_ehci_setup_transfer): Fill td_last_phys.
13966 (grub_ehci_check_transfer): Use td_last_phys.
13967
3008675b
SG
139682012-02-01 Seth Goldberg <seth.goldberg@oracle.com>
13969
13970 * grub-core/normal/context.c (grub_env_extractor_close): Don't crash
13971 if no submenu is present.
13972
fc9b5652
AN
139732012-02-01 Aleš Nesrsta <starous@volny.cz>
13974
13975 CBI support.
13976
13977 * include/grub/usb.h (grub_usbms_protocol_t): New values
13978 GRUB_USBMS_PROTOCOL_CB and GRUB_USBMS_PROTOCOL_CBI.
13979 * grub-core/disk/usbms.c (GRUB_USBMS_CBI_CMD_SIZE): New define.
13980 (GRUB_USBMS_CBI_ADSC_REQ): Likewise.
13981 (grub_usbms_dev): Add subclass, protocol and intrpt.
13982 Remove in_maxsz and out_maxsz.
13983 (grub_usbms_reset): Rename to ...
13984 (grub_usbms_bo_reset): .. this.
13985 (grub_usbms_cbi_cmd): New function.
13986 (grub_usbms_cbi_reset): Likewise.
13987 (grub_usbms_reset): Likewise.
13988 (grub_usbms_attach): Recognize cbi. Same subclass and protocol.
13989 (grub_usbms_transfer): Rename to ...
13990 (grub_usbms_transfer_bo): ... this.
13991 (grub_usbms_transfer_cbi): Likewise.
13992 (grub_usbms_transfer): Likewise.
13993
a2b81d53
AN
139942012-02-01 Aleš Nesrsta <starous@volny.cz>
139952012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
13996
13997 EHCI support. All of the credit goes to Aleš Nesrsta. I've just added
13998 the support for the CS5536 modification thereos and few bugfixes.
13999
14000 * grub-core/Makefile.core.def (ehci): New module.
14001 * grub-core/bus/usb/ehci.c: New file.
14002 * grub-core/bus/usb/usbhub.c (grub_usb_hub_add_dev): New arguments
14003 port and hubaddr. All users updated.
14004 Save port and hubaddr into dev structure.
14005 * include/grub/cs5536.h (GRUB_CS5536_MSR_USB_BASE_SMI_ENABLE): New
14006 define.
14007 * include/grub/pci.h (grub_dma_phys2virt): New function.
14008 (grub_dma_virt2phys): Likewise.
14009 * include/grub/usb.h (grub_usb_device): New members port and hubaddr.
14010
b1d51f02
VS
140112012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
14012
14013 * grub-core/fs/fat.c (grub_fat_mount) [!MODE_EXFAT]: Remove fstype
14014 check as some mkfs implementations omit it.
14015
fc694106
VS
140162012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
14017
14018 * docs/grub.texi (Unicode): Mention identifier and space limitations.
14019
6c0920e3
VS
140202012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
14021
14022 * grub-core/fs/jfs.c (grub_jfs_sblock): Make volname a char array.
14023 Add new member volname2.
14024 (grub_jfs_label): Use volname2 if available.
14025
d1a46f9a
VS
140262012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
14027
14028 * grub-core/fs/nilfs2.c (grub_nilfs2_super_block): Expand volume_name
14029 over last_mounted as seen in image generated by mkfs.nilfs2.
14030 (grub_nilfs2_label): Use sizeof for the size of s_volume_name.
14031
dec8ed14
VS
140322012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
14033
14034 * grub-core/fs/fat.c (grub_fat_dir_entry) [MODE_EXFAT]: Expand label
14035 to 15 UTF-16 characters as seen in FS generated by mkexfatfs.
14036 (grub_fat_label) [MODE_EXFAT]: Use macros for size.
14037
7397c69b
VS
140382012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
14039
14040 * grub-core/fs/romfs.c (grub_romfs_mount): Fix a bug with labels going
14041 over the sector.
14042
b3fe42ad
VS
140432012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
14044
14045 * grub-core/fs/zfs/zfs.c (get_filesystem_dnode): Support space in
14046 subvolume name (by removing a bogus and useless check).
14047
10476bb0
VS
140482012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
14049
14050 * grub-core/fs/ext2.c (grub_ext2_label): Fix field size. Change to
14051 sizeof while on it.
14052
9c08ad87
VS
140532012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
14054
14055 * grub-core/disk/scsi.c (grub_scsi_read_capacity): Renamed to ...
14056 (grub_scsi_read_capacity10): ... this.
14057 (grub_scsi_read_capacity16): New function.
14058 (grub_scsi_open): Use read_capacity16 if read_capacity10 returned
14059 0xffffffff.
14060 Fix off-by-one error.
14061 * include/grub/scsi.h (grub_scsi): Rename size to last_block and make it
14062 64-bit unsigned.
14063 * include/grub/scsicmd.h (grub_scsi_read_capacity): Rename to ...
14064 (grub_scsi_read_capacity10): ... this.
14065 (grub_scsi_read_capacity_data): Rename to ...
14066 (grub_scsi_read_capacity10_data): ... this. Rename size to last_block.
14067 (grub_scsi_read_capacity16): New struct.
14068 (grub_scsi_read_capacity16_data): Likewise.
14069 (grub_scsi_cmd_t): Rename grub_scsi_cmd_read_capacity to
14070 grub_scsi_cmd_read_capacity10.
14071 New command grub_scsi_cmd_read_capacity16.
14072
bc8d0f45
VS
140732012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
14074
14075 SCSI >2TiB support.
14076
14077 * grub-core/disk/scsi.c (grub_scsi_read16): New function.
14078 (grub_scsi_write16): Likewise.
14079 (grub_scsi_read): Use read16 when necessary.
14080 (grub_scsi_write): Likewise.
14081 * include/grub/scsicmd.h (grub_scsi_read16): New struct.
14082 (grub_scsi_write16): Likewise.
14083 (grub_scsi_cmd_t): Add READ16 and WRITE16.
14084
cc774926
VS
140852012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
14086
14087 SCSI write support (for usbms mainly).
14088
14089 * grub-core/disk/scsi.c (grub_scsi_write10): Uncomment. Make buffer
14090 a const pointer.
14091 (grub_scsi_write): Implement.
14092 * include/grub/scsi.h (grub_scsi_dev): Make write buffer a const pointer
14093
67639fd7
VS
140942012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
14095
14096 * grub-core/io/lzopio.c (uncompress_block): Fix use of incorrect
14097 variable.
14098
9079d3ed
VS
140992012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14100
14101 * grub-core/lib/posix_wrap/string.h (memchr): New function.
14102
c6a6f204
VS
141032012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14104
14105 * po/POTFILES.in: Regenerate.
14106
ecbf8cd1
VS
141072012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14108
14109 * grub-core/lib/posix_wrap/assert.h (assert_real): Replace grub_fatal
14110 with grub_printf to avoid unnecessary fatal failure.
14111
0b3b3b38
VS
141122012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14113
14114 * grub-core/lib/posix_wrap/limits.h (SHRT_MAX): New define.
14115 (INT_MAX): Likewise.
14116 * grub-core/lib/posix_wrap/stdio.h (snprintf): New function.
14117 * grub-core/lib/posix_wrap/stdlib.h (abs): Likewise.
14118 * grub-core/lib/posix_wrap/string.h (memcmp): Likewise.
14119 (strcpy): Likewise.
14120 (strstr): Likewise.
14121 (strchr): Likewise.
14122 (strncpy): Likewise.
14123 (strcat): Likewise.
14124 (strncat): Likewise.
14125 (strcoll): Likewise.
14126 * include/grub/types.h (GRUB_SHRT_MAX): New define.
14127 (GRUB_INT_MAX): Likewise.
14128
db7337a3
VS
141292012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14130
14131 * grub-core/gnulib/regcomp.c (regerror): Don't use abort on
14132 unexpected error.
14133 (optimize_utf8): Likewise.
14134 * grub-core/lib/posix_wrap/stdlib.h (abort): Removed.
14135
f37c87e1
VS
141362012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14137
14138 * grub-core/boot/i386/pc/lnxboot.S: Use
14139 GRUB_DECOMPRESSOR_MAX_DECOMPRESSOR_SIZE.
14140 * grub-core/boot/i386/pc/startup_raw.S: Ensure about boot_dev
14141 location.
14142 * include/grub/offsets.h (GRUB_DECOMPRESSOR_I386_PC_BOOT_DEVICE): New
14143 definition.
14144 (GRUB_DECOMPRESSOR_I386_PC_MAX_DECOMPRESSOR_SIZE): Likewise.
14145
63fe43f3
VS
141462012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14147
14148 * util/getroot.c (grub_util_get_dm_node_linear_info): Fix memory leak.
14149 * grub-core/disk/cryptodisk.c (cryptodisk_cleanup): Disable for
14150 now to avoid double free.
14151 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_dev): Rename to
14152 hostdisk.
14153 * include/grub/disk.h (grub_disk_dev_id): New id HOSTDISK.
14154 * util/grub-probe.c (escape_of_path): Always return a new copy.
14155 (print_full_name): Escape path.
14156 (probe): Don't call grub_util_devname_to_ofpath on NULL.
14157 Fix hints on abstractions.
14158
ebe2c961
VS
141592012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14160
14161 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device):
14162 Don't add "root" line if no compatibility hont is available.
14163 Suggested by: Seth Goldberg.
14164
2b5336a2
VS
141652012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14166
14167 * include/grub/ata.h (grub_ata): Add a new element maxbuffer.
14168 * grub-core/disk/ata.c (grub_ata_readwrite): Limit to ata->maxbuffer.
14169 * grub-core/disk/pata.c (grub_pata_open): Set ata->maxbuffer.
14170 * grub-core/disk/ahci.c (grub_ahci_open): Likewise.
14171
74310bd8
VS
141722012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14173
14174 * include/grub/zfs/dnode.h (DN_MIN_INDBLKSHIFT): Removed.
14175
c30582ba
VS
141762012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14177
14178 * util/grub-pe2elf.c (ehdr): Make static.
14179 (shdr): Likewise.
14180 (num_sections): Likewise.
14181 (offset): Likewise.
14182
5f47782c
VS
141832012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14184
14185 Eliminate ofpath limits and possible overflows.
14186
14187 * util/ieee1275/ofpath.c (grub_util_info) [STANDALONE]: New function.
14188 (OF_PATH_MAX): Removed.
14189 (MAX_DISK_CAT): New const.
14190 (find_obppath): Use allocated rather than preallocated buffer.
14191 Return result. Argument of_path removed. All users updated.
14192 Add missing fdstat.
14193 (xrealpath): New function.
14194 (block_device_get_sysfs_path_and_link): Remove sysfs argument.
14195 Allocate rather than use preallocated buffer. All users updated.
14196 (__of_path_common): Use allocated rather than preallocatecd buffer.
14197 Return result. Argument of_path removed. All users updated.
14198 (vendor_is_ATA): Read only needed part form the file.
14199 (check_sas): Allocate depending on contents rather than fixed.
14200 (main) [STANDALONE]: Handle NULL result.
14201
f990cbf9
VS
142022012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14203
14204 * grub-core/normal/completion.c (iterate_dev): Close the disk.
14205
9c6e84b8
VS
142062012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14207
14208 Cryptodisk write support.
14209
14210 * grub-core/disk/cryptodisk.c (grub_crypto_pcbc_encrypt): New function.
14211 (grub_cryptodisk_decrypt): Moved logic to ...
14212 (grub_cryptodisk_endecrypt): ...this. New argument "encrypt".
14213 (grub_cryptodisk_write): Implement.
14214 * grub-core/kern/emu/hostdisk.c (nwrite): Rename to ...
14215 (grub_util_fd_write): ... this. Make global.
14216 * include/grub/emu/hostdisk.h (grub_util_fd_write): New proto.
14217
87cf9744
VS
142182012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14219
14220 * include/grub/list.h (grub_list_remove): Don't crash if element is
14221 removed twice.
14222
ca8c0baf
VS
142232012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14224
14225 Rename ofconsole to console.
14226
14227 * grub-core/commands/terminal.c (handle_command): Handle ofconsole
14228 as sysnonym to console.
14229 * grub-core/term/ieee1275/ofconsole.c: Renamed to ..
14230 * grub-core/term/ieee1275/console.c: ... this. All users updated.
14231 Rename grub_ofconsole_ to grub_console_. All users updated
14232 (grub_console_term_output): Rename "ofconsole" to "console".
14233 * grub-core/term/terminfo.c (grub_cmd_terminfo): Handle "ofconsole"
14234 as "console".
14235
64c8b8f6
VS
142362012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14237
14238 * grub-core/loader/i386/pc/plan9.c (grub_cmd_plan9): Remove PXE
14239 handling.
14240 * include/grub/disk.h (grub_disk_dev_id): Remove obsolete
14241 GRUB_DISK_DEVICE_UUID_ID, GRUB_DISK_DEVICE_PXE_ID and
14242 GRUB_DISK_DEVICE_FILE_ID.
14243
f6c434d5
VS
142442012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14245
14246 * grub-core/kern/partition.c (grub_partition_get_name): Simplify logic
14247 and improve performance.
14248
5858b42d
VS
142492012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14250
14251 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname): Fix
14252 missing ieee1275/ prefix on whole disk.
14253
4ed3c26b
VS
142542012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14255
14256 * include/grub/powerpc/ieee1275/util/biosdisk.h: Remove.
14257 * include/grub/powerpc/ieee1275/biosdisk.h: Likewise.
14258
df71143e
VS
142592012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14260
14261 * grub-core/fs/cpio.c (handle_symlink): Fix a bug.
14262
076e7c0f
VS
142632012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14264
14265 Merge common RAID and LVM logic to an abstract diskfilter.
14266 Add LDM support using the same framework.
14267
14268 * Makefile.util.def (libgrubkern): Add grub-core/disk/ldm.c,
14269 grub-core/disk/diskfilter.c and grub-core/partmap/gpt.c.
14270 (libgrubmods): Remove grub-core/disk/raid.c and
14271 grub-core/partmap/gpt.c.
14272 * grub-core/Makefile.core.def (ldm): New module.
14273 (raid): Renamed to diskfilter. All users updated.
14274 * grub-core/disk/raid.c: Moved to ...
14275 * grub-core/disk/diskfilter.c: ... here.
14276 * grub-core/disk/diskfilter.c: Rename grub_raid_ to grub_diskfilter_.
14277 (lv_num): New var.
14278 (find_array): Renamed to ...
14279 (find_lv): ... this. Support multi-LV. Skip nameless LVs
14280 (grub_is_array_readable): Renamed to ...
14281 (grub_is_lv_readable): ... this. Support multinode hierarchy.
14282 (insert_array): New argument id.
14283 (is_node_readable): New function.
14284 (scan_device): Rename to ...
14285 (scan_disk): .. this. Restrict to one disk.
14286 (scan_devices): New function.
14287 (grub_diskfilter_iterate): Support multi-LV.
14288 Skip invisible and nameless LVs.
14289 (grub_diskfilter_memberlist): Support multi-LV.
14290 (grub_diskfilter_read_node): New function.
14291 (grub_raid_read): Most of logic moved to ...
14292 (read_segment): ... here
14293 (read_lv): New function.
14294 (grub_diskfilter_get_vg_by_uuid): New function.
14295 (grub_diskfilter_make_raid): Likewise.
14296 * grub-core/disk/ldm.c: New file.
14297 * grub-core/disk/lvm.c (vg_list): Removed.
14298 (lv_count): Likewise.
14299 (scan_depth): Likewise.
14300 (is_lv_readable): Likewise.
14301 (grub_lvm_getvalue): Advance pointer past the number.
14302 (find_lv): Removed.
14303 (do_lvm_scan): Refactored into ...
14304 (grub_lvm_detect): ... this. Support raid.
14305 (grub_lvm_iterate): Removed.
14306 (grub_lvm_memberlist): Likewise.
14307 (grub_lvm_open): Likewise.
14308 (grub_lvm_close): Likewise.
14309 (read_lv): Likewise.
14310 (read_node): Likewise.
14311 (is_node_readable): Likewise.
14312 (is_lv_readable): Likewise.
14313 (grub_lvm_read): Likewise.
14314 (grub_lvm_write): Likewise.
14315 (grub_lvm_dev): Use diskfilter
14316 (GRUB_MOD_INIT): Likewise.
14317 (GRUB_MOD_FINI): Likewise.
14318 * grub-core/disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Use
14319 new interface.
14320 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Likewise.
14321 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
14322 * grub-core/disk/raid5_recover.c (grub_raid5_recover): Use
14323 grub_diskfilter_read_node.
14324 Fix a bug with xor.
14325 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Use
14326 grub_diskfilter_read_node.
14327 Support GRUB_RAID_LAYOUT_MUL_FROM_POS.
14328 * grub-core/kern/disk.c (grub_disk_dev_list): Make global.
14329 (grub_disk_dev_iterate): Move from here...
14330 * include/grub/disk.h (grub_disk_dev_iterate): ... to here. Inlined.
14331 * grub-core/kern/emu/hostdisk.c (grub_hostdisk_find_partition_start):
14332 Make global.
14333 (grub_hostdisk_find_partition_start): Likewise.
14334 (grub_hostdisk_os_dev_to_grub_drive): New function.
14335 (grub_util_biosdisk_get_osdev): Check that disk is biosdisk.
14336 * grub-core/kern/emu/hostdisk.c (make_device_name): Move to ...
14337 * util/getroot.c (make_device_name): ... here.
14338 * grub-core/kern/emu/hostdisk.c (grub_util_get_dm_node_linear_info):
14339 Move to ...
14340 * util/getroot.c (grub_util_get_dm_node_linear_info): ...here.
14341 * grub-core/kern/emu/hostdisk.c
14342 (convert_system_partition_to_system_disk): Move to ...
14343 * util/getroot.c (convert_system_partition_to_system_disk): ...here.
14344 * grub-core/kern/emu/hostdisk.c (device_is_wholedisk): Move to ...
14345 * util/getroot.c (device_is_wholedisk): ... here.
14346 * grub-core/kern/emu/hostdisk.c (find_system_device): Move to ...
14347 * util/getroot.c (find_system_device): ... here.
14348 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_present):
14349 Move to ...
14350 * util/getroot.c (grub_util_biosdisk_is_present): ...here.
14351 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev):
14352 Move to ...
14353 * util/getroot.c (grub_util_biosdisk_get_grub_dev): ... here.
14354 Handle LDM.
14355 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy):
14356 Move to ...
14357 * util/getroot.c (grub_util_biosdisk_is_floppy): ... here.
14358 * grub-core/partmap/gpt.c (grub_gpt_partition_map_iterate): Made global.
14359 * include/grub/disk.h (grub_disk_dev_id): Replaced RAID and LVM with
14360 DISKFILTER.
14361 * include/grub/raid.h: Renamed to ...
14362 * include/grub/diskfilter.h: ... this.
14363 * include/grub/diskfilter.h: Rename grub_raid_* to grub_diskfilter_*
14364 (GRUB_RAID_LAYOUT_*): Make into array.
14365 (GRUB_RAID_LAYOUT_MUL_FROM_POS): New value.
14366 (grub_diskfilter_vg): New struct.
14367 (grub_diskfilter_pv_id): Likewise.
14368 (grub_raid_member): Removed.
14369 (grub_raid_array): Likewise.
14370 (grub_diskfilter_pv): New struct.
14371 (grub_diskfilter_lv): Likewise.
14372 (grub_diskfilter_segment): Likewise.
14373 (grub_diskfilter_node): Likewise.
14374 (grub_diskfilter_get_vg_by_uuid): New proto.
14375 (grub_raid_register): Inline.
14376 (grub_diskfilter_unregister): Likewise.
14377 (grub_diskfilter_make_raid): New proto.
14378 (grub_diskfilter_vg_register): Likewise.
14379 (grub_diskfilter_read_node): Likewise.
14380 (grub_diskfilter_get_pv_from_disk) [GRUB_UTIL]: Likewise.
14381 * include/grub/emu/hostdisk.h (grub_util_get_ldm): New proto.
14382 (grub_util_is_ldm): Likewise.
14383 (grub_util_ldm_embed) [GRUB_UTIL]: Likewise.
14384 (grub_hostdisk_find_partition_start): Likewise.
14385 (grub_hostdisk_os_dev_to_grub_drive): Likewise.
14386 * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_LDM):
14387 New definition.
14388 (grub_gpt_partition_map_iterate): New proto.
14389 * include/grub/lvm.h (grub_lvm_vg): Removed.
14390 (grub_lvm_pv): Likewise.
14391 (grub_lvm_lv): Likewise.
14392 (grub_lvm_segment): Likewise.
14393 (grub_lvm_node): Likewise.
14394 * util/getroot.c [...]
14395 * util/grub-probe.c (probe_raid_level): Handle diskfilter.
14396 (probe_abstraction): Likewise.
14397 * util/grub-setup.c (setup): Remove must_embed. Support LDM.
14398 (main): Remove dead logic.
14399
8a7f9b9c
VS
144002012-01-28 Vladimir Serbinenko <phcoder@gmail.com>
14401
14402 Simplify root device discover and don't fail when trying to open
14403 incorrect devices.
14404
14405 * grub-core/disk/efi/efidisk.c (get_diskname_from_path_real): New
14406 function.
14407 (get_diskname_from_path): Likewise.
14408 (grub_efidisk_get_device_name): Use get_diskname_from_path instead
14409 of iterating.
14410
30545b85
VS
144112012-01-27 Vladimir Serbinenko <phcoder@gmail.com>
14412
14413 * grub-core/Makefile.core.def (setpci): Enable on all PCI platforms.
14414
28ea58cf
VS
144152012-01-27 Vladimir Serbinenko <phcoder@gmail.com>
14416
14417 * grub-core/fs/zfs/zfs.c (nvlist_find_value): Check that we don't go
14418 pastthe end.
14419
692dabca
VS
144202012-01-27 Vladimir Serbinenko <phcoder@gmail.com>
14421
14422 * util/grub-install.in: Add missing \.
14423 Reported by: gentoofan
14424
f6e4ea70
VS
144252012-01-26 Vladimir Serbinenko <phcoder@gmail.com>
14426
14427 * grub-core/fs/squash4.c (xz_decompress): Fix return value.
14428 (direct_read): Use correct compressed size.
14429 (grub_squash_read_data): Likewise.
14430
144312012-01-26 Vladimir Serbinenko <phcoder@gmail.com>
ca1dacea
VS
14432
14433 * docs/grub.texi (Platform limitations): New section.
14434 (Platform-specific operations): Likewise.
14435 * docs/grub-dev.texi (Porting): Likewise.
14436
76261110
VS
144372012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
14438
14439 IEEE1275 disk write support.
14440
14441 * grub-core/kern/ieee1275/ieee1275.c (grub_ieee1275_write): Make buffer
14442 const void *.
14443 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_write): Likewise.
14444 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_read): Move open
14445 and seek loginc to ...
14446 (grub_ofdisk_prepare): ... here.
14447 (grub_ofdisk_write): Implement.
14448
fc36d603
VS
144492012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
14450
14451 ARC disk write support.
14452
14453 * grub-core/disk/arc/arcdisk.c (handle_writable): New var.
14454 (reopen): New argument writable. All users updated.
14455 Handle required access mode.
14456 (grub_arcdisk_write): Implement.
14457 * include/grub/arc/arc.h (grub_arc_file_access): New enum.
14458 (grub_arc_firmware_vector): Make buffer to write a const buffer.
14459
e06c2e7a
VS
144602012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
14461
14462 * grub-core/fs/btrfs.c (grub_btrfs_device): New field size.
14463 (read_sblock): Don't attempt to read superblocks outside the disk size.
14464
ff447958
VS
144652012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
14466
14467 * grub-core/fs/nilfs2.c (grub_nilfs2_load_sb): Use device size from
14468 first superblock to find the second one when possible.
14469
9e88df39
VS
144702012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
14471
14472 * util/grub-install.in: Fix an ARC bug.
14473 Print a warning if no platform-specific setup is available.
14474
bb26e4ff
VS
144752012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
14476
14477 Use static allocation rather than scratch pointer in reed_solomon.
14478 It decreases its size significantly and avoids a variable in .text.
14479
14480 * grub-core/lib/reed_solomon.c (scratch): Removed.
14481 (chosenstat): New const or static array.
14482 (sigma): Likewise.
14483 (errpot): Likewise.
14484 (errpos): Likewise.
14485 (sy): Likewise.
14486 (mstat): Likewise.
14487 (errvals): Likewise.
14488 (eqstat): Likewise.
14489 (pol_evaluate): Replace x with log_x argument. All users updated.
14490 (syndroms): Removed.
14491 (gauss_solve): Use statically allocated arrays.
14492 (rs_recover): Likewise.
14493 Calculate syndroms directly.
14494 (decode_block): Use statically allocated arrays.
14495 (grub_reed_solomon_add_redundancy) [TEST]: Fix -DTEST compilation.
14496 (main) [TEST]: Allow -DTEST -DSTANDALONE.
14497
2e13ede5
VS
144982012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
14499
14500 Eliminate fixed limit on reed solomon decoder length.
14501
14502 * grub-core/boot/i386/pc/lnxboot.S: Scan for multiboot signature
14503 rather than hardcoding the address.
14504 * grub-core/boot/i386/pc/startup_raw.S: Add new data field
14505 no_reed_solomon_length.
14506 Move gate_a20 to no-reed-solomon part.
14507 Don't force a particular size of no reed-solomon part.
14508 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART):
14509 Removed.
14510 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_LENGTH): New define.
14511 * util/grub-setup.c (setup): Read no_rs_length from the image itself.
14512
f8a9ab12
VS
145132012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
14514
14515 * grub-core/commands/wildcard.c (match_files): Handle filenames
14516 without explicit device.
14517 (wildcard_expand): Don't add explicit device if not already present.
14518 * tests/grub_script_echo1.in: Add a new expansion test.
14519
87edb894
VS
145202012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
14521
14522 Replace single-linked with double-linked lists. It results in more
14523 compact and more efficient code.
14524
14525 * grub-core/kern/list.c (grub_list_push): Moved from here ...
14526 * include/grub/list.h (grub_list_push): ... to here. Set prev.
14527 (grub_list_remove): Moved from here ...
14528 * include/grub/list.h (grub_list_remove): ... here. Use and set prev.
14529 (grub_prio_list_insert): Set prev.
14530 * include/grub/list.h (grub_list): Add prev. All users updated.
14531
48b391e9
VS
145322012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
14533
14534 Handle newer autotools. Add some missing quotes while on it.
14535
14536 * Makefile.am (pkglib_DATA): Remove update-grub_lib.
14537 (pkglib_DATA): Move grub-mkconfig_lib from here ...
14538 (pkgdata_DATA): ... here.
14539 * Makefile.util.def (update-grub_lib): Removed.
14540 * conf/Makefile.common (pkglib_DATA): Removed.
14541 (pkglib_SCRIPTS): Likewise.
14542 (pkgdata_DATA): New variable.
14543 * tests/util/grub-shell-tester.in: Replace pkglib with pkgdata where
14544 needed.
14545 Add missing quotes.
14546 Remove unused variable while on it.
14547 * tests/util/grub-shell.in: Likewise.
14548 * util/grub-install.in: Likewise.
14549 * util/grub-mkconfig.in: Likewise.
14550 * util/grub-mknetdir.in: Likewise.
14551 * util/grub-mkrescue.in: Likewise.
14552 * util/grub-mkstandalone.in: Likewise.
14553 * util/grub.d/00_header.in: Likewise.
14554 * util/grub.d/10_hurd.in: Likewise.
14555 * util/grub.d/10_illumos.in: Likewise.
14556 * util/grub.d/10_kfreebsd.in: Likewise.
14557 * util/grub.d/10_linux.in: Likewise.
14558 * util/grub.d/10_netbsd.in: Likewise.
14559 * util/grub.d/10_windows.in: Likewise.
14560 * util/grub.d/20_linux_xen.in: Likewise.
14561 * util/grub.d/30_os-prober.in: Likewise.
14562 * util/update-grub_lib.in: Removed.
14563
145642012-01-24 Seth Goldberg <seth.goldberg@oracle.com>
e555f379
SG
14565
14566 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_recv): Relax checks as
14567 a workaround for intel problem.
14568
66832792
PRP
145692012-01-23 Paulo de Rezende Pinatti <ppinatti@linux.vnet.ibm.com>
145702012-01-23 Vladimir Serbinenko <phcoder@gmail.com>
145712012-01-23 pfsmorigo
14572
14573 * util/grub-install.in: Support dd'in into PreP partition.
14574 * util/grub-probe.c (probe): Support discovering partition type.
14575 (main): Support -t msdos_parttype.
14576
7816a17e
VS
145772012-01-23 Vladimir Serbinenko <phcoder@gmail.com>
14578
14579 * grub-core/normal/crypto.c (grub_crypto_autoload): Prevent
14580 infinite recursion using counter.
14581 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_init): Defer s->crc32
14582 init to skip it if the magic check fails.
14583 (dec_stream_header): Init s->crc32.
14584
8f9d3a8c
ZB
145852012-01-22 Vladimir Serbinenko <phcoder@gmail.com>
145862012-01-22 Zachary Bedell <pendorbound@gmail.com>
145872012-01-22 Richard Laager <rlaager@wiktel.com>
14588
14589 * grub-core/fs/zfs/zfs.c (uberblock_verify): New parameter size.
14590 All users updated.
14591 (find_bestub): Determine correct size.
14592 (fill_vdev_info_real): Fill ashift. New argument. All users updated.
14593 (scan_disk): Align the size down.
14594 Call check pool before find_bestub to have ashift.
14595
b055dd32
VS
145962012-01-22 Vladimir Serbinenko <phcoder@gmail.com>
14597
14598 * grub-core/lib/relocator.c (malloc_in_range): Remove couple of
14599 dprintf in no-malloc zone.
14600
d779e9bd
ML
146012012-01-22 Mario Limonciello <mario_limonciello@dell.com>
14602
14603 * configure.ac: Add back in test for limits.h.
14604
b508af69
VS
146052012-01-20 Vladimir Serbinenko <phcoder@gmail.com>
14606
14607 Support 4K-sector NTFS.
14608
14609 * include/grub/ntfs.h (GRUB_NTFS_MAX_MFT): Increase to 8.
14610 (grub_ntfs_data): Remove blocksize.
14611 * grub-core/fs/ntfs.c (fixup): Fix size comparison.
14612 Remove data argument. All users updated.
14613
dad9c8b5
VS
146142012-01-20 Vladimir Serbinenko <phcoder@gmail.com>
14615
14616 * grub-core/kern/mips/arc/init.c (grub_total_modules_size): Mark as
14617 being in .text to avoid dprel references.
14618 * include/grub/mips/loongson/kernel.h (grub_arch_machine): Likewise.
14619 * include/grub/mips/loongson/memory.h (grub_arch_memsize): Likewise.
14620 (grub_arch_highmemsize): Likewise.
14621 * include/grub/mips/loongson/time.h (grub_arch_busclock): Likewise.
14622 * include/grub/mips/qemu_mips/memory.h (grub_arch_memsize): Likewise.
14623 * include/grub/mips/time.h (grub_arch_cpuclock): Likewise.
14624
d43a777e
VS
146252012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
14626
14627 Support powerpc with GCC that defines __PPC__ but not __powerpc__.
14628
14629 * config.h.in (__powerpc__) [__PPC__ && !__powerpc__]: New definition.
14630 * grub-core/lib/setjmp.S: Treat __PPC__ as equivalent to __powerpc__.
14631
34e4208f
VS
146322012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
14633
14634 * include/grub/datetime.h (grub_get_datetime_cmos): Don't define in
14635 GRUB_UTIL.
14636 (grub_set_datetime_cmos): Likewise.
14637
3ec0fc1c
VS
146382012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
14639
14640 Make XZ compression parameters dependent on target and not host CPU.
14641
14642 * configure.ac: Define GRUB_TARGET_CPU_XYZ series.
14643 * grub-core/lib/xzembed/xz_config.h: Use GRUB_TARGET_CPU_XYZ.
14644
22489834
VS
146452012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
14646
14647 * grub-core/kern/powerpc/dl.c (grub_arch_dl_get_tramp_got_size): Remove
14648 set but not used variable.
14649
8502fbca
VS
146502012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14651
14652 * grub-core/fs/reiserfs.c (grub_reiserfs_uuid): Reject 0-uuid as
14653 created when no uuid support is compiled into mkfs.reiser.
14654
76df2068
VS
146552012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14656
14657 * grub-core/fs/hfs.c (macroman_to_utf8): Convert / to :.
14658 (utf8_to_macroman): Do the opposite.
14659 * grub-core/fs/hfsplus.c (grub_hfsplus_iterate_dir): Convert / to :.
14660
64e3f8f6
VS
146612012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14662
14663 * configure.ac: Refise build qemu_mips w/o unifont.
14664
9c271078
VS
146652012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14666
14667 Eliminate grub_min/grub_max prone to overflow usage.
14668
14669 * grub-core/bus/usb/usbhub.c (grub_usb_add_hub): Eliminate grub_min.
14670 (poll_nonroot_hub): Likewise.
14671 * grub-core/fs/affs.c (grub_affs_iterate_dir): Likewise.
14672 (grub_affs_label): Likewise.
14673 * grub-core/fs/btrfs.c (grub_btrfs_lzo_decompress): Likewise.
14674 * grub-core/fs/hfs.c (grub_hfs_dir): Likewise.
14675 (grub_hfs_label): Likewise.
14676 * grub-core/fs/hfsplus.c (grub_hfsplus_cmp_catkey): Likewise.
14677 * grub-core/fs/zfs/zfs.c (MIN): Remove.
14678 (zap_leaf_array_equal): Use grub_size. Remove MIN.
14679 (zap_leaf_array_get): Likewise.
14680 (dnode_get_path): Likewise.
14681 * grub-core/io/lzopio.c (grub_lzopio_read): Eliminate grub_min.
14682 * grub-core/io/xzio.c (grub_xzio_read): Likewise.
14683 * grub-core/script/execute.c (grub_script_break): Likewise.
14684 * grub-core/script/lexer.c (grub_script_lexer_record): Eliminate
14685 grub_max.
14686 * grub-core/script/yylex.l (grub_lexer_yyrealloc): Likewise.
14687 * include/grub/misc.h (grub_min): Removed.
14688 (grub_max): Likewise.
14689
80662dbc
VS
146902012-01-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
14691
14692 * grub-core/fs/ext2.c (grub_ext2_iterate_dir): Ignore entries with
14693 direct.inode = 0.
14694
e6da1467
VS
146952012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14696
14697 * grub-core/lib/posix_wrap/wctype.h (CHARCLASS_NAME_MAX): New define.
14698
b1ac4cb1
VS
146992012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14700
14701 * include/grub/datetime.h (grub_datetime2unixtime): Fix offset.
14702
b4bf7c3b
VS
147032012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14704
14705 * grub-core/lib/posix_wrap/stdlib.h (MB_CUR_MAX): Moved from here ...
14706 * grub-core/lib/posix_wrap/wchar.h (MB_CUR_MAX): ... here. Value fixed.
14707
8ee1101a
VS
147082012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14709
14710 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Use grub_strcasecmp
14711 rather than a hack for grub_strncasemap.
14712
147132012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14714
14715 Support multiple initrds
14716 Note: part of this was accidently committed in r3739.
14717
14718 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Support multiple
14719 initrd.
14720 * grub-core/loader/i386/pc/linux.c (grub_cmd_initrd): Likewise.
14721 * grub-core/loader/ia64/efi/linux.c (grub_cmd_initrd): Likewise.
14722 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Likewise.
14723 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_initrd): Likewise.
14724 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_initrd): Likewise.
14725
4d1e2bc9
VS
147262012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14727
14728 * grub-core/disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Skip
14729 disks with unknown size.
14730 * grub-core/disk/raid.c (scan_devices): Allow disks with unknown sizes.
14731
75b49ebe
VS
147322012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14733
14734 Remove defines pertaining to arbitrary limits not affecting GRUB
14735 anymore.
14736
14737 * grub-core/fs/ext2.c (EXT2_PATH_MAX): Removed.
14738 (EXT2_MAX_SYMLINKCNT): Likewise.
14739 * grub-core/fs/nilfs2.c (NILFS_BTREE_LEVEL_MAX): Likewise.
14740 * grub-core/net/tftp.c (TFTP_MAX_PACKET): Likewise.
14741 * include/grub/i386/pc/pxe.h (GRUB_PXE_MIN_BLKSIZE): Likewise.
14742 (GRUB_PXE_MAX_BLKSIZE): Likewise.
14743 * include/grub/normal.h (GRUB_MAX_CMDLINE): Likewise.
14744 * include/grub/zfs/dnode.h (DN_MAX_INDBLKSHIFT): Likewise.
14745 (DN_MAX_OBJECT_SHIFT): Likewise.
14746 (DN_MAX_OFFSET_SHIFT): Likewise.
14747 (DN_MAX_OBJECT): Likewise.
14748 (DNODES_PER_LEVEL_SHIFT): Likewise.
14749 * include/grub/zfs/spa.h (SPA_MAXBLOCKSHIFT): Likewise.
14750 (SPA_MAXBLOCKSIZE): Likewise.
14751 (SPA_BLOCKSIZES): Likewise.
14752 * include/grub/zfs/zap_impl.h (MZAP_MAX_BLKSHIFT): Likewise.
14753 (MZAP_MAX_BLKSZ): Likewise.
14754
74a1dce7
VS
147552012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14756
14757 * grub-core/fs/zfs/zfs.c (grub_zfs_read): Remove useless alloc and
14758 handle NULL appropriately.
14759 Remove MIN.
14760
30c7d3ce
VS
147612012-01-13 Vladimir Serbinenko <phcoder@gmail.com>
14762
14763 Fix efiemu.
14764
14765 * grub-core/efiemu/runtime/efiemu.c: explicitly include right
14766 cpu/types.h.
14767 (efiemu_set_virtual_address_map): Remove UINT_TO_PTR.
14768 * configure.ac: Fix efiemu check.
14769
3c76ea0c
VS
147702012-01-13 Vladimir Serbinenko <phcoder@gmail.com>
14771
14772 * util/grub.d/30_os-prober.in: Fix occurence of grub-probe instead of
14773 grub_probe.
14774 Reported by: adamwill
14775
7e532280
SG
147762012-01-12 Seth Goldberg <seth.goldberg@oracle.com>
14777
14778 * grub-core/lib/arg.c (grub_arg_parse): Fix NULL pointer dereference.
14779
30492374
VS
147802012-01-12 Vladimir Serbinenko <phcoder@gmail.com>
14781
14782 Fix handling of wide characters in gfxterm.
14783
14784 * grub-core/term/gfxterm.c (grub_colored_char): Remove width and index.
14785 (clear_char): Likewise.
14786 (paint_char): Skip code == NULL chars.
14787 (grub_gfxterm_putchar): Set code = NULL on "shadowed" positions.
14788
e70cb72f
VS
147892012-01-12 Vladimir Serbinenko <phcoder@gmail.com>
14790
14791 * grub-core/normal/charset.c: Move comment to right place.
14792
5c827cf9
VS
147932012-01-11 Vladimir Serbinenko <phcoder@gmail.com>
14794
14795 * grub-core/fs/affs.c (grub_affs_bblock): Revert flags.
14796 (GRUB_AFFS_FLAG_FFS): Put back where it was.
14797 (grub_affs_mount): Revert the correct version checking.
14798
53603892
VS
147992012-01-11 Vladimir Serbinenko <phcoder@gmail.com>
14800
14801 * docs/grub.texi (Unicode): Mention several other unsupported features.
14802
ff094b9b
VS
148032011-12-26 Vladimir Serbinenko <phcoder@gmail.com>
14804
14805 * grub-core/fs/squash4.c (squash_mount): Mark endian conversion in
14806 case statements as compile-time one.
14807 (direct_read): Prevent spurious warnings.
14808 (grub_squash_read_data): Likewise.
14809
c029da8a
VS
148102011-12-26 Vladimir Serbinenko <phcoder@gmail.com>
14811
14812 Various squash4 fixes and LZO and XZ support.
14813
14814 * Makefile.util.def (libgrubmods.a): Add xzembed directory to cppflags.
14815 Add xzembed source files.
14816 * grub-core/Makefile.core.def (squash4): Add xzembed and minilzo flags.
14817 * grub-core/fs/squash4.c (grub_squash_super): New field compression.
14818 (grub_squash_inode): New subtype long_dir.
14819 (SQUASH_TYPE_LONG_DIR): New inode type.
14820 (COMPRESSION): New enum.
14821 (XZBUFSIZ): New const.
14822 (grub_squash_data): New fields blksz, decompress, xzdec, xzbuf.
14823 (read_chunk): Use data->decompress.
14824 (zlib_decompress): New function.
14825 (lzo_decompress): Likewise.
14826 (xz_decompress): Likewise.
14827 (squash_mount): Set new data fields.
14828 (grub_squash_iterate_dir): Handle long dir.
14829 (squash_unmount): Free xzdec and xzbuf.
14830 (grub_squash_open): Check ino type.
14831 (direct_read): Stylistic fixes. Use data->decompress.
14832 (grub_squash_read_data): Likewise.
14833 * grub-core/io/gzio.c (grub_gzio): Remove disk_input.
14834 (get_byte): Likewise.
14835 (grub_zlib_disk_read): Removed.
14836 * grub-core/lib/posix_wrap/sys/types.h (ssize_t): New type.
14837 (GRUB_POSIX_BOOL_DEFINED): New define.
14838 * grub-core/lib/posix_wrap/unistd.h: Include sys/types.h.
14839 * grub-core/lib/xzembed/xz.h: Addmissing includes.
14840 [!GRUB_POSIX_BOOL_DEFINED]: Define bool.
14841 * include/grub/deflate.h (grub_zlib_disk_read): Removed.
14842
7a45a539
VS
148432011-12-26 Vladimir Serbinenko <phcoder@gmail.com>
14844
14845 Don't override more informative errors.
14846
14847 * grub-core/commands/acpi.c (grub_cmd_acpi): Don't override errors.
14848 * grub-core/font/font.c (open_section): Likewise.
14849 * grub-core/loader/i386/bsd.c (grub_bsd_load_aout): New argument
14850 filename. Don't override errors.
14851 (grub_cmd_openbsd_ramdisk): Don't override errors.
14852 * grub-core/loader/i386/linux.c (grub_cmd_linux): Likewise.
14853 (grub_cmd_initrd): Likewise.
14854 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
14855 (grub_cmd_initrd): Likewise.
14856 * grub-core/loader/ia64/efi/linux.c (grub_load_elf64): Likewise.
14857 (grub_cmd_linux): Likewise.
14858 (grub_cmd_initrd): Likewise.
14859 (grub_cmd_payload): Likewise.
14860 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Likewise.
14861 * grub-core/loader/multiboot.c (grub_cmd_multiboot): Likewise.
14862 (grub_cmd_module): Likewise.
14863 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_initrd): Likewise.
14864 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_initrd): Likewise.
14865 * grub-core/loader/xnu.c (grub_xnu_load_driver): Likewise.
14866 (grub_cmd_xnu_mkext): Likewise.
14867 (grub_cmd_xnu_ramdisk): Likewise.
14868 (grub_xnu_check_os_bundle_required): Likewise.
14869 (grub_xnu_load_kext_from_dir): Likewise.
14870 (grub_cmd_xnu_kextdir): Likewise.
14871 * grub-core/loader/xnu_resume.c (grub_xnu_resume): Likewise.
14872
b2d004db
VS
148732011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
14874
14875 * grub-core/fs/minix.c (grub_minix_mount) [MODE_MINIX3]: Treat 0xffff
14876 as 1024 in block size field. Found on one of my test images.
14877 Small optimisation while on it.
14878
ec000eac
VS
148792011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
14880
14881 * docs/grub.texi (Filesystems): Mention SFS as Latin1 filesystem.
14882 * grub-core/fs/sfs.c (grub_sfs_mount): Fix a memory leak while on it.
14883 (grub_sfs_iterate_dir): Convert Latin1 to UTF8. Stylistic and
14884 performance fixes while on it.
14885 (grub_sfs_close): Fix memory leak while on it.
14886 (grub_sfs_label): Convert Latin1 to UTF-8.
14887
f50e1165
VS
148882011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
14889
14890 * grub-core/fs/hfs.c (grub_hfs_dir): Cap keylen to actually available
14891 space to avoid overflows.
14892 (grub_hfs_label): Convert from macroman to UTF-8.
14893
2ae254de
VS
148942011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
14895
14896 * grub-core/fs/affs.c (grub_affs_label): Interpret label as latin1.
14897
0108f491
VS
148982011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
14899
14900 * grub-core/normal/menu.c (menu_init): Don't stop menu init at gfxterm.
14901
f45f5f89
VS
149022011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
14903
14904 * unicode: Import Unicode 6.0 data.
14905
4d8c4765
VS
149062011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
14907
63fa8ef9
VS
14908 * grub-core/term/gfxterm.c (grub_gfxterm_putchar): Don't set values
14909 outside of range.
14910
149112011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
14912
14913 Avoid cutting in the middle of UTF-8 character.
4d8c4765
VS
14914
14915 * include/grub/charset.h (grub_getend): New function.
14916 * grub-core/script/function.c (grub_script_function_find): Use
14917 grub_getend.
14918 * grub-core/normal/completion.c (add_completion): Likewise.
14919
f3cb4a4e
VS
149202011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
14921
14922 * grub-core/normal/charset.c (grub_ucs4_to_utf8): Small stylistic fix.
14923 (grub_bidi_line_logical_to_visual): Skip tags. They are deprecated.
14924 * include/grub/unicode.h (GRUB_UNICODE_TAG_START): New enum value.
14925 (GRUB_UNICODE_TAG_END): Likewise.
14926 (GRUB_UNICODE_LAST_VALID): Likewise.
14927
5da8dbc5
VS
149282011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
14929
14930 * include/grub/unicode.h (grub_unicode_compact_range): Replace end with
14931 len and make it smaller. All users updated.
14932 * util/import_unicode.py: Put length and not end character.
14933 Check length.
14934
8569f13d
VS
149352011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
14936
14937 Make better Unicode-compliant and unify some UTF-8 code pathes.
14938
14939 * grub-core/normal/charset.c (grub_utf8_to_utf16): Don't eat possibly
14940 valid character.
14941 (grub_is_valid_utf8): Use grub_utf8_process.
14942 Check resulting code range.
14943 (grub_utf8_to_ucs4): Use grub_utf8_process.
14944 * include/grub/charset.h (grub_utf16_to_utf8): Don't eat up a possibly
14945 valid character.
14946
cc4fddf5
VS
149472011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
14948
14949 * grub-core/io/bufio.c (grub_bufio_read): Fix handling of corner cases.
14950
bbc47747
VS
149512011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
14952
14953 * docs/grub.texi (Filesystems): Mention AFS.
14954
f63d6bf4
VS
149552011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
14956
14957 * docs/grub.texi (Filesystems): Clarify restrictions.
14958 (Regexp): Mention non-Unicode regexp behaviour.
14959 (Other): Mention non-Unicode matching behaviour.
14960
74bbf0db
VS
149612011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
14962
f63d6bf4 14963 Make HFS implementation use MacRoman.
74bbf0db
VS
14964
14965 * grub-core/fs/hfs.c (MAX_UTF8_PER_MAC_ROMAN): New define.
14966 (macroman): New const array.
14967 (macroman_to_utf8): New function.
14968 (utf8_to_macroman): Likewise.
14969 (grub_hfs_find_dir): Use utf8_to_macroman.
14970 (grub_hfs_dir): Use macroman_to_utf8.
14971 Set case_insensitive.
14972
4ea0316e
VS
149732011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
14974
14975 * docs/grub.texi (Filesystems): Add IEEE1275 full-path example.
14976
d3c13cbd
VS
149772011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
14978
14979 Integrate hints into autogeneration scripts.
14980
14981 * docs/grub.texi (Filesystems): Add a hostdisk example.
14982 * Makefile.util.def (grub-mkdevicemap): Remove ofpath.
14983 (grub-probe): Add ofpath.
14984 * gentpl.py: Remove group nosparc64.
14985 * grub-core/commands/search.c (cache_entry): New struct.
14986 (cache): New var.
14987 (FUNC_NAME): Use and save cache. Fix handling of trailing comma.
14988 * grub-core/commands/search_wrap.c (options): Add platform-specific
14989 hint options.
14990 (grub_cmd_search): Handle platform-specific hints.
14991 (GRUB_MOD_INIT): Declare grub_cmd_search as accept_dash.
14992 * grub-core/kern/emu/hostdisk.c (map): New field device_map.
14993 (grub_util_biosdisk_data): Likewise.
14994 (grub_util_biosdisk_open): Set device_map.
14995 (read_device_map): Handle "" as indication of no map.
14996 Set device_map.
14997 (find_system_device): Add hostdisk/ prefix for autogenerated entries.
14998 (grub_util_biosdisk_get_compatibility_hint): New function.
14999 * grub-core/normal/main.c (features): Add feature_platform_search_hint.
15000 * include/grub/emu/hostdisk.h
15001 (grub_util_biosdisk_get_compatibility_hint): New proto.
15002 * util/grub-install.in: Don't call grub-mkdevicemap.
15003 Add platform-specific hint to load.cfg.
15004 * util/grub-mkconfig.in: Don't call grub-mkdevicemap.
15005 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Add
15006 hints. Set root preliminary to compatibility hint, not to OS name.
15007 * util/grub-probe.c (PRINT_*): Add hints.
15008 (print): Make static.
15009 (escape_of_path): New function.
15010 (guess_bios_drive): Likewise.
15011 (guess_efi_drive): Likewise.
15012 (guess_baremetal_drive): Likewise.
15013 (print_full_name): Likewise.
15014 (probe): Handle hints.
15015 (main): Likewise.
15016 * util/ieee1275/devicemap.c: Removed.
15017 * util/ieee1275/ofpath.c (find_obppath): Allow to fail. All users
15018 updated.
15019 (grub_util_devname_to_ofpath): Return NULL on failure.
15020
15021 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Fix
15022 resource leak.
15023 * util/getroot.c (grub_util_pull_device): Fix memory leak.
15024
15025 * po/POTFILES.in: Regenerated.
15026
15027 Allow purely long options
15028
15029 * grub-core/lib/arg.c (SHORT_ARG_HELP): Removed.
15030 (SHORT_ARG_USAGE): Likewise.
15031 (grub_arg_show_help): Compare opt with help_options.
15032 (parse_option): Receive opt as argument. If makes big simplificatons.
15033 All users updated
15034
00ce2df3
VS
150352011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
15036
15037 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (WORDS_BIGENDIAN):
15038 Restructure to avoid warning.
15039
e77e325f
VS
150402011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
15041
15042 * util/grub-install.in: Account for possible escaped comma in device
15043 name.
15044
165099ea
VS
150452011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
15046
15047 * util/ieee1275/ofpath.c (of_path_of_ide): Fix address for secondary
15048 channel.
15049
ce4a999d
VS
150502011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
15051
15052 * grub-core/kern/ieee1275/openfw.c (grub_devalias_iterate): Fix
15053 allocation and zero-setting.
15054 (grub_ieee1275_get_devname): Check that alias is complete.
15055
379586ad
VS
150562011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
15057
15058 * grub-core/kern/disk.c (grub_disk_read): Fix hook calling for
15059 unaligned segments.
15060
9197b0ad
VS
150612011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
15062
15063 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Add ieee1275/
15064 prefix.
15065 (grub_ofdisk_open): Check and discard ieee1275 prefix.
15066 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname):
15067 Add ieee1275 prefix.
15068
edddb7f9
VS
150692011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
15070
15071 * docs/grub.texi (Filesystems): Update.
15072
a1a8b1b9
VS
150732011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
15074
15075 Support odc, newc and bigendian cpio formats.
15076
15077 * Makefile.util.def (libgrubmods): Add odc.c, newc.c and cpio_be.c.
15078 * grub-core/Makefile.core.def (newc): New module.
15079 (odc): Likewise.
15080 (cpio_be): Likewise.
15081 * grub-core/fs/cpio.c (ALIGN_CPIO): New macro.
15082 (MAGIC): Likewise.
15083 (MAGIC2): Likewise.
15084 (head) [MODE_ODC]: Adapt for the format.
15085 (head) [MODE_NEWC]: Likewise.
15086 (head) [!MODE_*]: Write fields of interest as arrays.
15087 (MAGIC_USTAR): Removed.
15088 (read_number) [MODE_NEWC]: Change to hex.
15089 (read_number) [!MODE_*]: Parse binary arrays.
15090 (grub_cpio_find_file): Factor out the code for better structure and
15091 always use read_number.
15092 (grub_cpio_mount): Use MAGIC and MAGIC2.
15093 (grub_cpio_dir): Exit on first hook non-0 return.
15094 (grub_cpio_fs) [MODE_ODC]: Set name to odc.
15095 (grub_cpio_fs) [MODE_NEWC]: Set name to newc.
15096 (GRUB_MOD_INIT) [MODE_ODC]: Set name to odc.
15097 (GRUB_MOD_INIT) [MODE_NEWC]: Set name to newc.
15098 (GRUB_MOD_FINI) [MODE_ODC]: Set name to odc.
15099 (GRUB_MOD_FINI) [MODE_NEWC]: Set name to newc.
15100 * grub-core/fs/newc.c: New file.
15101 * grub-core/fs/odc.c: Likewise.
15102 * grub-core/fs/cpio_be.c: Likewise.
15103
58eba9ee
VS
151042011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
15105
15106 Fix handling of tar numbers occupying the whole field.
15107
15108 * grub-core/fs/cpio.c (read_number): New function.
15109 (grub_cpio_find_file): Use read_number instead of strtoull.
15110
a54a0e12
VS
151112011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
15112
15113 * grub-core/fs/cpio.c (grub_cpio_find_file): Fix handling of names
15114 occupying the whole field size.
15115
a6120aca
LA
151162011-12-23 Lukas Anzinger <l.anzinger@gmail.com>
15117
15118 * util/grub-mkconfig_lib.in (version_test_gt): Fix variable names.
15119
a93964ce
VS
151202011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
15121
15122 * grub-core/net/net.c (grub_cmd_delroute): Add missing out condition.
15123
3ea1ca46
SG
151242011-12-23 Seth Goldberg <seth.goldberg@oracle.com>
15125
15126 * grub-core/Makefile.core.def (lzma_decompress): Add missing
15127 TARGET_IMG_LDFLAGS.
15128
b87f7ef2
VS
151292011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
15130
15131 * util/getroot.c (ESCAPED_PATH_MAX): New define.
15132 (mountinfo_entry): Increase the field size to take escaping into
15133 account.
15134 (find_root_device_from_libzfs): Add one byte to size of strings for
15135 security.
15136
62092395
VS
151372011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
15138
15139 * grub-core/lib/reed_solomon.c (grub_reed_solomon_add_redundancy): Add
15140 an assert.
15141 * util/grub-setup.c (setup): Likewise.
15142
1f0b1a77
VS
151432011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
15144
15145 * grub-core/boot/i386/pc/startup_raw.S: Add missing argument for
15146 _LzmaDecodeA.
15147
8eba9997
VS
151482011-12-22 Vladimir Serbinenko <phcoder@gmail.com>
15149
15150 * docs/grub.texi (Internationalisation): New section.
15151
dd0c91e9
VS
151522011-12-22 Vladimir Serbinenko <phcoder@gmail.com>
15153
15154 * docs/grub.texi (Loopback booting): New section.
15155
151562011-12-22 Keshav P R <the.ridikulus.rat@gmail.com>
86717cbe
K
15157
15158 * util/grub-mkstandalone.in: Fix minor typo errors.
15159
198e150a
VS
151602011-12-20 Vladimir Serbinenko <phcoder@gmail.com>
15161
15162 IPv6, TCP, HTTP, ICMP and DNS support. Several cleanups and bugfixes.
15163
15164 * grub-core/Makefile.core.def (net): Add net/dns.c, net/tcp.c,
15165 net/icmp.c and net/icmp6.c.
15166 (http): New module.
15167 (priority_queue): Likewise.
15168 * grub-core/io/bufio.c: Rewritten.
15169 * grub-core/lib/legacy_parse.c (legacy_command): New argument type
15170 TYPE_WITH_CONFIGFILE_OPTION.
15171 (legacy_commands): Add bootp and dhcp.
15172 (is_option): Handle TYPE_WITH_CONFIGFILE_OPTION.
15173 (grub_legacy_parse): Likewise.
15174 * grub-core/lib/priority_queue.c: New file.
15175 * grub-core/net/arp.c: Add missing license header.
15176 (arp_find_entry): Removed.
15177 (arp_find_entry): Likewise.
15178 (grub_net_arp_resolve): Rename to ...
15179 (grub_net_arp_send_request): ...this.
15180 (grub_net_arp_receive): New card argument.
15181 * grub-core/net/bootp.c (parse_dhcp_vendor): Clean up.
15182 Set router and DNS server.
15183 (grub_net_configure_by_dhcp_ack): Handle routing information.
15184 (grub_cmd_bootp): Set checksum.
15185 (grub_bootp_init): Remove net_dhcp.
15186 * grub-core/net/dns.c: New file.
15187 * grub-core/net/drivers/efi/efinet.c (send_card_buffer): Wait for
15188 completion.
15189 (get_card_packet): Handle allocation.
15190 (grub_efinet_findcards): Set mtu.
15191 * grub-core/net/drivers/emu/emunet.c: Add missing license header.
15192 (get_card_packet): Handle allocation.
15193 (emucard): Set mtu.
15194 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_recv): Handle allocation
15195 (GRUB_MOD_INIT): Set mtu.
15196 * grub-core/net/drivers/ieee1275/ofnet.c (grub_ofnetcard_data): Remove
15197 mtu.
15198 (get_card_packet): Handle allocation.
15199 (grub_ofnet_findcards): Set mtu.
15200 * grub-core/net/ethernet.c (send_ethernet_packet): Add compile time
15201 assert.
15202 (grub_net_recv_ethernet_packet): Handle IPv6.
15203 * grub-core/net/http.c: New file.
15204 * grub-core/net/icmp.c: Likewise.
15205 * grub-core/net/icmp6.c: Likewise.
15206 * grub-core/net/ip.c (ip6addr): New type.
15207 (ip6hdr): Likewise.
15208 (reassemble): Likewise.
15209 (cmp): New function.
15210 (reassembles): New variable.
15211 (grub_net_ip_chksum): Handle 0xffff sum and unaligned buffers.
15212 (id): New variable.
15213 (send_fragmented): New function.
15214 (grub_net_send_ip_packet): Rename to ...
15215 (grub_net_send_ip4_packet): ... this. Send fragmented if needed.
15216 Handle non-UDP.
15217 (grub_net_recv_ip_packets): Rename to ...
15218 (handle_dgram): ... this. Check checksum. Handle non-UDP.
15219 (free_rsm): New function.
15220 (free_old_fragments): Likewise.
15221 (grub_net_recv_ip4_packets): New function.
15222 (grub_net_send_ip6_packet): Likewise.
15223 (grub_net_send_ip_packet): Likewise.
15224 (grub_net_recv_ip6_packets): Likewise.
15225 (grub_net_recv_ip_packets): Likewise.
15226 * grub-core/net/net.c (grub_net_link_layer_entry): New struct.
15227 (LINK_LAYER_CACHE_SIZE): New const.
15228 (link_layer_find_entry): New function.
15229 (grub_net_link_layer_add_address): Likewise.
15230 (grub_net_link_layer_resolve_check): Likewise.
15231 (grub_net_link_layer_resolve): Likewise.
15232 (grub_net_ipv6_get_slaac): Likewise.
15233 (grub_net_ipv6_get_link_local): Likewise.
15234 (grub_cmd_ipv6_autoconf): Likewise.
15235 (parse_ip): Handle one number representation.
15236 (parse_ip6): New functoion.
15237 (match_net): Handle IPv6.
15238 (grub_net_resolve_address): Handle IPv6 and DNS.
15239 (grub_net_resolve_net_address): Handle IPv6.
15240 (route_cmp): New function.
15241 (grub_net_route_address): Find best route.
15242 (grub_net_addr_to_str): Handle IPv6.
15243 (grub_net_addr_cmp): New function.
15244 (grub_net_add_addr): Register local route.
15245 (print_net_address): Handle net address.
15246 (grub_net_poll_cards): Retransmit TCP.
15247 (grub_net_poll_cards_idle_real): Likewise.
15248 (have_ahead): New function.
15249 (grub_net_seek_real): Use underlying seek.
15250 (GRUB_MOD_INIT): Register net_ipv6_autoconf and init dns.
15251 * grub-core/net/tcp.c: New file.
15252 * grub-core/net/tftp.c (tftp_data): Add priority_queue.
15253 (cmp): New function.
15254 (ack): Likewise.
15255 (tftp_receive): Handle unordered input.
15256 (destroy_pq): New function.
15257 (tftp_close): Close pq.
15258 * grub-core/net/udp.c: Put missing license header.
15259 (grub_net_udp_socket): New function.
15260 (udp_socket_register): Likewise.
15261 (grub_net_udp_close): Likewise.
15262 (grub_net_recv_udp_packet): Check checksum.
15263 * include/grub/efi/api.h (grub_efi_simple_network): Add status.
15264 * include/grub/misc.h (grub_memchr): New function.
15265 * include/grub/net.h (GRUB_NET_*_SIZE): New enum.
15266 (grub_net_card_driver): Return buf in recv.
15267 (grub_net_slaac_mac_list): New struct.
15268 (grub_network_level_protocol_id): Add ipv6.
15269 (grub_net_network_level_addr): Likewise.
15270 (grub_net_network_level_net_addr): Likewise.
15271 (grub_net_app_protocol): Add seek.
15272 (grub_net_socket): Removed.
15273 (grub_net_sockets): Likewise.
15274 (grub_net_socket_register): Likewise.
15275 (grub_net_socket_unregister): Likewise.
15276 (FOR_NET_SOCKETS): Likewise.
15277 (grub_net_add_addr): Add const.
15278 (GRUB_NET_BOOTP_*): New enum.
15279 (grub_net_addr_cmp): New proto.
15280 (GRUB_NET_MAX_STR_ADDR_LEN): Take IPV6 into account.
15281 (GRUB_NET_MAX_STR_HWADDR_LEN): New define.
15282 (grub_net_hwaddr_to_str): NEw proto.
15283 (FOR_NET_NETWORK_LEVEL_INTERFACES): New macro.
15284 (FOR_NET_NETWORK_LEVEL_INTERFACES_SAFE): Handle NULL.
15285 (grub_dns_init): New proto.
15286 (grub_dns_fini): Likewise.
15287 (grub_net_tcp_retransmit): Likewise.
15288 (grub_net_link_layer_add_address): Likewise.
15289 (grub_net_link_layer_resolve_check): Likewise.
15290 (grub_net_link_layer_resolve): Likewise.
15291 (grub_net_dns_lookup): Likewise.
15292 (grub_net_add_dns_server): Likewise.
15293 (grub_net_remove_dns_server): Likewise.
15294 (GRUB_NET_TRIES): New const.
15295 (GRUB_NET_INTERVAL): Likewise.
15296 * include/grub/net/arp.h: Mostly rewritten.
15297 * include/grub/net/ethernet.h (grub_net_ethertype_t): New enum.
15298 * include/grub/net/ip.h: Mostly rewritten.
15299 * include/grub/net/netbuff.h: Indent.
15300 * include/grub/net/tcp.h: New file.
15301 * include/grub/net/udp.h: Mostly rewritten.
15302 * include/grub/priority_queue.h: New file.
15303 * include/grub/types.h (PRIdGRUB_SSIZE): New define.
15304 (grub_swap_bytes64_compile_time): Likewise.
15305 (grub_cpu_to_be16_compile_time): Likewise.
15306 (grub_cpu_to_be32_compile_time): Likewise.
15307 (grub_cpu_to_be64_compile_time): Likewise.
15308 (grub_be_to_cpu64_compile_time): Likewise.
15309
215c1800
VS
153102011-12-16 Vladimir Serbinenko <phcoder@gmail.com>
15311
15312 * grub-core/commands/i386/pc/drivemap.c (int13slot): Replace
15313 UINT_TO_PTR with cast.
15314
c17e546c
VS
153152011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15316
15317 * util/import_gcry.py: Skip _gcry_rmd160_mixblock and serpent_test. We
15318 don't use them.
15319
ff6b18b6
VS
153202011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15321
15322 * util/import_gcry.py: Don't add include camellia.h to camellia.c. It's
15323 already there.
15324
70ffcc93
VS
153252011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15326
15327 * util/grub-mkimage.c (generate_image): Clean multiboot header to avoid
15328 confusing ipxe.
15329
e5f4d260
VS
153302011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15331
15332 * grub-core/lib/libgcrypt/cipher/md4.c (transform) [WORDS_BIGENDIAN]:
15333 Add missing const attribute.
15334 * grub-core/lib/libgcrypt/cipher/md5.c (transform) [WORDS_BIGENDIAN]:
15335 Likewise.
15336 * grub-core/lib/libgcrypt/cipher/rmd160.c (transform) [WORDS_BIGENDIAN]:
15337 Likewise.
15338
8e54b4b7
VS
153392011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15340
15341 * grub-core/lib/libgcrypt/cipher/serpent.c (serpent_key_prepare): Fix
15342 misaligned access.
15343 (serpent_setkey): Likewise.
15344 (serpent_encrypt_internal): Likewise.
15345 (serpent_decrypt_internal): Likewise.
15346 (serpent_encrypt): Don't put an alignment-increasing cast.
15347 (serpent_decrypt): Likewise.
15348 (serpent_test): Likewise.
15349
813c0a2b
VS
153502011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15351
15352 * grub-core/loader/multiboot.c (grub_cmd_module): Fix target address.
15353
f2b60fbd
VS
153542011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15355
15356 Replace UINT_TO_PTR and PTR_TO_UINT with explicit grub_addr_t casts.
15357
15358 * include/grub/types.h (UINT_TO_PTR): Removed. All users switched to
15359 grub_addr_t casts.
15360 (PTR_TO_UINT64): Likewise.
15361 (PTR_TO_UINT32): Likewise.
15362
5ef5c511
VS
153632011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15364
15365 * util/grub-mkimage.c (generate_image): Decrease the higher limit
15366 because of stack.
15367 * util/grub-setup.c (setup): Don't add redundancy past the higher load
15368 limit.
15369
c476e6df
VS
153702011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15371
15372 * grub-core/gfxmenu/gui_label.c (label_paint): Handle the case
15373 text_width > available width a bit more gracefully.
15374
384ad7cc
VS
153752011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15376
15377 * grub-core/loader/i386/bsdXX.c (grub_freebsd_load_elfmodule): Fix
15378 current address calculation.
15379
96f8caf8
VS
153802011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15381
15382 * grub-core/lib/reed_solomon.c (decode_block): Allocate on heap and not
15383 stack.
15384 (encode_block): Likewise.
15385
276b7a8b
VS
153862011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15387
15388 * grub-core/boot/i386/pc/startup_raw.S: Clear direction flag for
15389 certainety.
15390
e3fd394a
VS
153912011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15392
15393 * grub-core/boot/i386/pc/startup_raw.S: Move realmode routines to
15394 non-RS part to avoid RS messing with GDT.
15395 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART):
15396 Increase to suit in realmode routines.
15397
153982011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15399
15400 * grub-core/kern/i386/realmode.S: Increase alignment.
15401 * grub-core/boot/i386/pc/startup_raw.S: Likewise.
15402
ee9c2e7a
VS
154032011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
15404
15405 * grub-core/lib/reed_solomon.c (init_powx): Set gf_powx_inv[0] just to
15406 be deterministic.
15407 (syndroms): Compute 0 syndrom.
15408 (rs_recover): Use 0 syndrom.
15409
7a7f7cc9
VS
154102011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
15411
15412 * include/grub/kernel.h (FOR_MODULES): Make it a bit faster.
15413
a14b16d1
VS
154142011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
15415
15416 * include/grub/types.h (GRUB_PROPERLY_ALIGNED_ARRAY): Add missing
15417 brackets.
15418
9f59e9fc
VS
154192011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
15420
ca1b552c
VS
15421 * grub-core/gfxmenu/widget-box.c (get_left_pad): Take corners into
15422 account.
15423 (get_top_pad): Likewise.
15424 (get_right_pad): Likewise.
15425 (get_bottom_pad): Likewise.
15426
154272011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
15428
15429 * grub-core/gfxmenu/gui_list.c (draw_menu): Don't use assignment in if.
9f59e9fc 15430
e739d698
VS
154312011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
15432
15433 * include/grub/efi/api.h (grub_efi_memory_descriptor): Add packed
15434 attribute as the structure isn't guaranteed to be properly aligned.
15435 (grub_efi_pci_device_path): Likewise.
15436 (grub_efi_pccard_device_path): Likewise.
15437 (grub_efi_memory_mapped_device_path): Likewise. Additionaly explicitly
15438 specify the size of `memory_type'.
15439 (grub_efi_vendor_device_path): Likewise.
15440 (grub_efi_controller_device_path): Likewise.
15441 (grub_efi_acpi_device_path): Likewise.
15442 (grub_efi_expanded_acpi_device_path): Likewise.
15443 (grub_efi_atapi_device_path): Likewise.
15444 (grub_efi_scsi_device_path): Likewise.
15445 (grub_efi_fibre_channel_device_path): Likewise.
15446 (grub_efi_1394_device_path): Likewise.
15447 (grub_efi_usb_device_path): Likewise.
15448 (grub_efi_usb_class_device_path): Likewise.
15449 (grub_efi_i2o_device_path): Likewise.
15450 (grub_efi_mac_address_device_path): Likewise.
15451 (grub_efi_ipv4_device_path): Likewise.
15452 (grub_efi_ipv6_device_path): Likewise.
15453 (grub_efi_infiniband_device_path): Likewise.
15454 (grub_efi_uart_device_path): Likewise.
15455 (grub_efi_vendor_messaging_device_path): Likewise.
15456 (grub_efi_hard_drive_device_path): Likewise.
15457 (grub_efi_cdrom_device_path): Likewise.
15458 (grub_efi_vendor_media_device_path): Likewise.
15459 (grub_efi_file_path_device_path): Likewise.
15460 (grub_efi_protocol_device_path): Likewise.
15461 (grub_efi_piwg_device_path): Likewise.
15462 (grub_efi_bios_device_path): Likewise.
15463
cb8f88ea
VS
154642011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
15465
15466 * include/grub/charset.h (grub_utf16_to_utf8): Make src a const pointer.
15467 (grub_ucs4_to_utf8_alloc): Likewise.
15468 (grub_ucs4_to_utf8): Likewise.
15469 * grub-core/normal/charset.c (grub_ucs4_to_utf8): Likewise.
15470 (grub_ucs4_to_utf8_alloc): Likewise.
15471
309e5352
VS
154722011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
15473
15474 AFFS never uses unicode.
15475
15476 * include/grub/charset.h (GRUB_MAX_UTF8_PER_LATIN1): New const.
15477 (grub_latin1_to_utf8): New inline function.
15478 * grub-core/fs/affs.c (grub_affs_iterate_dir): Convert latin1 to UTF8.
15479
e7987e1b
VS
154802011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15481
15482 * grub-core/fs/romfs.c (grub_romfs_mount): Fix pointer comparison
15483 overflow.
15484
efc2616e
VS
154852011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15486
15487 * grub-core/fs/squash4.c (grub_squash_inode): Fix field sizes.
15488 (grub_squash_dirent_header): Likewise.
15489 (read_chunk): Don't double swap.
15490 (grub_squash_iterate_dir): Fix swap sizes.
15491
3c349f5a
VS
154922011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15493
15494 * grub-core/fs/jfs.c (grub_jfs_getent): Handle UTF16 endianness.
15495
b453412d
VS
154962011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15497
15498 * grub-core/fs/hfs.c (grub_hfs_find_node): Handle unaligned keys.
15499 (grub_hfs_iterate_dir): Likewise.
15500
12e9d4d1
VS
155012011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15502
15503 Fix video on platforms where unaligned access is forbidden.
15504 Make several optimisations while on it.
15505
15506 * grub-core/video/fb/fbblit.c (grub_video_fbblit_replace_directN):
15507 Optimise and use GRUB_VIDEO_FB_ADVANCE_POINTER.
15508 (grub_video_fbblit_replace_32bit_1bit): Likewise.
15509 (grub_video_fbblit_replace_24bit_1bit) [!GRUB_HAVE_UNALIGNED_ACCESS]:
15510 Disable.
15511 (grub_video_fbblit_replace_16bit_1bit):
15512 Optimise and use GRUB_VIDEO_FB_ADVANCE_POINTER.
15513 (grub_video_fbblit_replace_8bit_1bit): Likewise.
15514 (grub_video_fbblit_replace_BGRX8888_RGBX8888): Likewise.
15515 (grub_video_fbblit_replace_BGRX8888_RGB888): Likewise.
15516 (grub_video_fbblit_replace_BGR888_RGBX8888): Likewise.
15517 (grub_video_fbblit_replace_BGR888_RGBX8888): Likewise.
15518 (grub_video_fbblit_replace_BGR888_RGB888): Likewise.
15519 (grub_video_fbblit_replace_RGBX8888_RGB88): Likewise.
15520 (grub_video_fbblit_replace_RGB888_RGBX888): Likewise.
15521 (grub_video_fbblit_replace_RGB888_RGBX8888): Likewise.
15522 (grub_video_fbblit_replace_index_RGBX8888): Likewise.
15523 (grub_video_fbblit_replace_index_RGB888): Likewise.
15524 (grub_video_fbblit_blend_BGRA8888_RGBA8888): Likewise.
15525 (grub_video_fbblit_blend_BGR888_RGBA8888): Likewise.
15526 (grub_video_fbblit_blend_RGBA8888_RGBA8888): Likewise.
15527 (grub_video_fbblit_blend_RGB888_RGBA8888): Likewise.
15528 (grub_video_fbblit_blend_index_RGBA8888): Likewise.
15529 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
15530 (grub_video_fbblit_blend_XXX888_1bit) [!GRUB_HAVE_UNALIGNED_ACCESS]:
15531 Disable.
15532 (grub_video_fbblit_blend_XXX565_1bit):
15533 Optimise and use GRUB_VIDEO_FB_ADVANCE_POINTER.
15534 * grub-core/video/fb/fbfill.c (grub_video_fbfill_direct32): Likewise.
15535 * grub-core/video/fb/fbutil.c (grub_video_fb_get_video_ptr): Return
15536 void *.
15537 * grub-core/video/fb/video_fb.c (common_blitter)
15538 [!GRUB_HAVE_UNALIGNED_ACCESS]: Skip disabled blitters.
15539 (grub_video_fb_create_render_target_from_pointer)
15540 [!GRUB_HAVE_UNALIGNED_ACCESS]: Check alignment.
15541 * include/grub/fbutil.h (grub_video_fb_get_video_ptr): Return void *.
15542 * include/grub/i386/types.h (GRUB_HAVE_UNALIGNED_ACCESS): New
15543 definition.
15544 * include/grub/x86_64/types.h (GRUB_HAVE_UNALIGNED_ACCESS): Likewise.
15545
ace96609
VS
155462011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15547
15548 * grub-core/kern/sparc64/dl.c (grub_arch_dl_relocate_symbols): Support
15549 HH22 and HM10 relocations.
15550
fd261d73
VS
155512011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15552
15553 * grub-core/kern/misc.c (grub_vsnprintf_real): Fix fmt2 parsing.
15554
e59b7857
VS
155552011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15556
15557 * grub-core/commands/videotest.c (grub_cmd_videotest): Check that
15558 allocation succeeded.
15559
9b4baaa4
VS
155602011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15561
15562 * grub-core/fs/iso9660.c (grub_iso9660_convert_string): Make first
15563 argument a u8 pointer. All users updated.
15564 Handle unaligned buffers.
15565
dc713193
VS
155662011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15567
15568 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Force inlining of
15569 add_part to workaround compiler bug.
15570
30dd48c2
VS
155712011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15572
15573 * include/grub/kernel.h (FOR_MODULES): Preserve alignment invariants.
15574
0c6087a8
VS
155752011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15576
15577 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_add_elfsyms):
15578 Reserve alignment invariants.
15579 (grub_multiboot_load): Likewise.
15580 (retrieve_video_parameters): Likewise.
15581 (grub_multiboot_make_mbi): Likewise.
15582
c2e77777
VS
155832011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15584
15585 * grub-core/loader/i386/xnu.c (grub_xnu_devprop_remove_property): Fix
15586 incorrect pointer.
15587
b70b6d11
VS
155882011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15589
15590 * grub-core/disk/pata.c (grub_pata_pio_read): Handle unaligned buffer.
15591 (grub_pata_pio_write): Likewise.
15592
02a2bf83
VS
155932011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15594
15595 Add noreturn attributes and remove unreachable code.
15596
15597 * grub-core/bus/cs5536.c (grub_cs5536_smbus_wait): Remove unreachable
15598 code.
15599 * grub-core/commands/halt.c (grub_cmd_halt): Remove unreachable
15600 code. Mark as noreturn.
15601 * grub-core/commands/minicmd.c (grub_mini_cmd_exit): Likewise.
15602 * grub-core/commands/reboot.c (grub_cmd_reboot): Likewise.
15603 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Remove
15604 unreachable code.
15605 * grub-core/kern/main.c (grub_main): Mark as noreturn.
15606 * grub-core/kern/rescue_reader.c (grub_rescue_run): Likewise.
15607 * grub-core/lib/posix_wrap/stdlib.h (abort): Likewise.
15608 * grub-core/normal/menu.c (run_menu): Remove unreachable code.
15609 * include/grub/kernel.h (grub_main): Mark as noreturn.
15610 * include/grub/reader.h (grub_rescue_run): Likewise.
15611
2019d09e
VS
156122011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15613
15614 * include/grub/i386/qemu/memory.h (grub_machine_mmap_init): Remove
15615 redundant declaration.
15616
d1c501ee
VS
156172011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15618
15619 * include/grub/net.h (grub_net_network_level_interfaces): Remove
15620 redundant declaration.
15621 (FOR_NET_NETWORK_LEVEL_INTERFACES): Move to appropriate place.
15622
61664420
VS
156232011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15624
15625 * grub-core/commands/hdparm.c (le16_to_char): Make src and dest uint16 *
15626 to ensure alignment.
15627 (grub_hdparm_print_identify): Make argument uint16 * to ensure
15628 alignment. Ensure tmp alignment.
15629 (grub_cmd_hdparm): Ensure buf alignment.
15630 * grub-core/disk/ata.c (grub_ata_strncpy): Make src and dest uint16 *
15631 to ensure alignment.
15632 (grub_ata_dumpinfo): Ensure text alignment.
15633 (grub_atapi_identify): Preserve alignment invariant.
15634 (grub_ata_identify): Likewise. Use grub_get_unaligned32 when necessary.
15635
0d51ee20
VS
156362011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15637
15638 * include/grub/emu/misc.h (xasprintf): Add missing format attribute.
15639 * include/grub/mips/kernel.h (grub_halt): Remove redundant declaration.
15640 * include/grub/mips/qemu_mips/kernel.h (grub_halt): Likewise.
15641 * include/grub/misc.h (grub_reboot)
15642 [GRUB_MACHINE_EMU || GRUB_MACHINE_QEMU_MIPS]: Export.
15643 (grub_halt) [__mips__]: Likewise.
15644
753ef8c1
VS
156452011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15646
15647 * include/grub/efi/memory.h (grub_machine_mmap_iterate):
15648 Remove redundant declaration.
15649 (grub_mmap_get_post64): Likewise.
15650 (grub_mmap_get_upper): Likewise.
15651 (grub_mmap_get_lower): Likewise.
15652
85c85365
VS
156532011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15654
15655 * grub-core/partmap/dvh.c (grub_dvh_is_valid): Make argument
15656 uint32_t * to ensure alignment.
15657 (dvh_partition_map_iterate): Make `block' a union to ensure alignment.
15658
a23f2cc4
VS
156592011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15660
93018f64
VS
15661 * grub-core/partmap/sunpc.c (grub_sun_is_valid): Make argument
15662 uint16_t * to ensure alignment.
15663 (sun_pc_partition_map_iterate): Make `block' a union to ensure
15664 alignment.
15665
156662011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15667
15668 * grub-core/partmap/sun.c (grub_sun_is_valid): Make argument uint16_t *
a23f2cc4
VS
15669 to ensure alignment.
15670 (sun_partition_map_iterate): Make `block' a union to ensure alignment.
15671
58acccd6
VS
156722011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15673
15674 * grub-core/fs/ntfs.c (u16at): Make into inline function.
15675 Handle unaligned pointers.
15676 (u32at): Likewise.
15677 (u64at): Likewise.
15678 (fixup): Use byte access instead of v16at.
15679 (find_attr): Fix imporper usage of v32at.
15680 (read_data): Likewise.
15681 (list_file): Handle byte-swapping and unaligned strings.
15682 (grub_ntfs_label): Likewise.
15683
9b05cad7
VS
156842011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15685
15686 * grub-core/fs/udf.c (grub_udf_partmap): Add packed attribute
15687 as it's not necessarily aligned.
15688
b3950b84
VS
156892011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15690
15691 * grub-core/kern/mips/qemu_mips/init.c (grub_at_keyboard_init): Remove
15692 redundant declaration.
15693 (grub_serial_init): Likewise.
15694 (grub_terminfo_init): Likewise.
15695
fcd232b7
VS
156962011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15697
15698 * grub-core/fs/zfs/zfs.c (DVA_OFFSET_TO_PHYS_SECTOR): Make into inline
15699 function.
15700 (ZAP_HASH_IDX): Likewise.
15701 (ZAP_LEAF_HASH_SHIFT): Likewise.
15702 (ZAP_LEAF_HASH_NUMENTRIES): Likewise.
15703 (LEAF_HASH): Likewise.
15704 (ZAP_LEAF_NUMCHUNKS): Likewise.
15705 (ZAP_LEAF_CHUNK): Likewise. Changed pointer arithmetic to preserve
15706 alignment invariants. Return pointer. All users updated.
15707 (ZAP_LEAF_ENTRY): Make into inline function.
15708 (NBBY): Removed.
15709 (xor): LIkewise.
15710 (xor_out): Use grub_crypto_xor.
15711 (dnode_get_path): Use grub_get_unaligned.
15712 (nvlist_find_value): Likewise.
15713 (grub_zfs_nvlist_lookup_uint64): Likewise.
15714 (grub_zfs_nvlist_lookup_string): Likewise.
15715 (get_nvlist_size): Likewise.
15716 (grub_zfs_open): Likewise.
15717 (fill_fs_info): Likewise.
15718 (grub_zfs_dir): Likewise.
15719 * include/grub/zfs/zap_leaf.h (zap_leaf_phys): Adapt to preserve
15720 alignment invariants.
15721 * include/grub/zfs/zio.h (zio_eck_t): Mark as packed as it's not
15722 necessarily aligned.
15723
f138623a
VS
157242011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15725
15726 * grub-core/net/netbuff.c (grub_netbuff_alloc): Ensure proper alignment.
15727
564840dc
VS
157282011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15729
15730 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Change pointer
15731 arithmetic to conserve alignment invariants.
15732
9b40df20
VS
157332011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15734
15735 * include/grub/efiemu/efiemu.h (grub_efiemu_get_memory_map): Remove
15736 redundant declaration.
15737 (grub_efiemu_mm_obtain_request): Likewise.
15738 (grub_efiemu_prepare): Likewise.
15739
d1c930f9
VS
157402011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15741
15742 * include/grub/list.h: Explicitly cast return of grub_bad_type_cast
15743 to match types.
15744
4c5f3056
VS
157452011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15746
15747 * grub-core/fs/hfsplus.c (grub_hfsplus_btree_recoffset): Handle the
15748 case of aunaligned recptr.
15749 (grub_hfsplus_read_block): Declare extoverflow as key to ensure
15750 alignment.
15751 (grub_hfsplus_btree_search): Handle unaligned index.
15752
728cba91
VS
157532011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15754
15755 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Use grub_get_unaligned16
15756 to get freetag and skip.
15757
eb561f31
VS
157582011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15759
15760 * grub-core/fs/nilfs2.c (grub_nilfs2_btree_node): Add zero-size keys
15761 array.
15762 (grub_nilfs2_btree_node_dkeys): Ensure return pointer alignment.
15763 (grub_nilfs2_btree_lookup): Ensure buffer alignment.
15764
20993fbb
VS
157652011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15766
15767 * grub-core/fs/romfs.c (grub_romfs_iterate_dir): Properly align
15768 name for checksum and fix allocation algorithm.
15769
1f313b94
VS
157702011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15771
15772 * include/grub/types.h (grub_properly_aligned_t): New type.
15773 (GRUB_PROPERLY_ALIGNED_ARRAY): New macro.
15774 (grub_get_unaligned16): Add explicit casts.
15775 (grub_get_unaligned32): Likewise.
15776 (grub_get_unaligned64): Likewise.
15777 (grub_set_unaligned16): New function.
15778 (grub_set_unaligned32): Likewise.
15779
47ae27ec
VS
157802011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15781
15782 * grub-core/normal/datetime.c (grub_weekday_names): Make const.
15783
78c2cd1c
VS
157842011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15785
15786 * grub-core/fs/udf.c (read_string): Macroify GRUB_MAX_UTF8_PER_UTF16.
15787 * grub-core/fs/jfs.c (grub_jfs_diropen): Likewise.
15788 * grub-core/fs/fat.c (grub_fat_iterate_dir): Likewise.
15789
53072f9b
VS
157902011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15791
15792 * grub-core/term/at_keyboard.c (set_scancodes): Fix preprocessor
15793 conditionals.
15794
055dc239
VS
157952011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15796
15797 * grub-core/kern/emu/main.c (main): Add missing const qualifier.
15798 * grub-core/loader/efi/appleloader.c (devdata): Likewise.
15799
496bd074
VS
158002011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15801
15802 Unify and improve RAID and crypto xor.
15803
15804 * grub-core/disk/raid.c (grub_raid_block_xor): Removed. All users
15805 changed to grub_crypto_xor
15806 * grub-core/lib/crypto.c (grub_crypto_xor): Moved from here ...
15807 * include/grub/crypto.h (grub_crypto_xor): ... here. Inlined.
15808 Use bigger types when possible.
15809
ef6e4335
VS
158102011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15811
15812 * grub-core/disk/raid.c (scan_devices): Fix condition.
15813
5d048bf2
VS
158142011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15815
15816 * grub-core/net/drivers/ieee1275/ofnet.c (bootp_response_properties):
15817 Make name a const ptr.
15818
ee533335
VS
158192011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15820
15821 * grub-core/kern/ieee1275/ieee1275.c (grub_ieee1275_finddevice): Make
15822 first argument a const pointer.
15823 * grub-core/kern/ieee1275/openfw.c (grub_children_iterate): Likewise.
15824 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_finddevice): Update
15825 proto.
15826 (grub_children_iterate): Likewise.
15827 (grub_machine_mmap_iterate): Remove redundant declaration.
15828
cc8f3668
VS
158292011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15830
15831 * grub-core/commands/acpi.c (grub_acpi_create_ebda) [!x86]: Disable.
15832 (grub_cmd_acpi) [!x86]: Disable EBDA.
15833
c5fc563a
VS
158342011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15835
15836 Enable UTF8 in gnulib regexp.
15837
15838 * config.h.in (RE_ENABLE_I18N) [!GRUB_UTIL]: New define.
15839 * grub-core/lib/posix_wrap/ctype.h (islower): Use grub_islower.
15840 (isupper): Use grub_isupper.
15841 (isascii): New inline function.
15842 * grub-core/lib/posix_wrap/wchar.h: Replace dummy with real contents.
15843 * grub-core/lib/posix_wrap/wctype.h: Likewise.
15844 * grub-core/normal/charset.c (grub_utf8_process): New function.
15845 (grub_utf8_to_utf16): Use grub_utf8_process.
15846 (grub_encode_utf8_character): New function.
15847 (grub_ucs4_to_utf8): Use grub_encode_utf8_character.
15848 * include/grub/charset.h (grub_utf8_process): New declaration.
15849 (grub_encode_utf8_character): Likewise.
15850 * include/grub/misc.h (grub_islower): New inline function.
15851 (grub_isupper): Likewise.
15852 (grub_strchrsub): Moved down to fix the definitions.
15853
0af2346f
VS
158542011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15855
15856 * grub-core/bus/usb/ohci.c (grub_ohci_check_transfer): Add an unsigned
15857 specification.
15858
74dbd244
VS
158592011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15860
15861 * include/grub/loader.h (grub_loader_register_preboot_hook):
15862 Use struct preboot * and not void * for handle. All users updated.
15863 (grub_loader_unregister_preboot_hook): Likewise.
15864
1bc8f60d
VS
158652011-12-12 Vladimir Serbinenko <phcoder@gmail.com>
15866
15867 * include/grub/charset.h (GRUB_MAX_UTF8_PER_UTF16): New const.
15868 * grub-core/fs/hfsplus.c (grub_hfsplus_catkey_internal): Change to
15869 UTF-16-BE. All users updated.
15870 (grub_hfsplus_cmp_catkey): Fix unicode handling.
15871 (grub_hfsplus_iterate_dir): Likewise.
15872 (grub_hfsplus_label): Likewise.
15873
48d6e456
VS
158742011-12-12 Vladimir Serbinenko <phcoder@gmail.com>
15875
15876 * grub-core/disk/ahci.c (grub_ahci_pciinit): Fix compat condition.
15877
bf3a3857
VS
158782011-11-30 Vladimir Serbinenko <phcoder@gmail.com>
15879
15880 Add missing const qualifiers.
15881
15882 * grub-core/commands/i386/pc/sendkey.c (keysym): Add missing const.
15883 * grub-core/commands/lspci.c (grub_pci_classname): Likewise.
15884 * grub-core/commands/menuentry.c (hotkey_aliases): Likewise.
15885 * grub-core/disk/lvm.c (grub_lvm_getvalue): Likewise.
15886 (grub_lvm_check_flag): Likewise.
15887 * grub-core/efiemu/i386/coredetect.c
15888 (grub_efiemu_get_default_core_name): Likewise
15889 * grub-core/efiemu/main.c (grub_efiemu_autocore): Likewise.
15890 * grub-core/fs/hfsplus.c (grub_hfsplus_catkey_internal): Likewise.
15891 * grub-core/fs/ntfs.c (fixup): Likewise.
15892 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Likewise.
15893 * grub-core/fs/zfs/zfs.c (decomp_entry): Likewise.
15894 (fzap_lookup): Likewise.
15895 (zap_lookup): Likewise.
15896 * grub-core/gnulib/regcomp.c (init_dfa): Likewise.
15897 * grub-core/lib/legacy_parse.c (check_option): Likewise.
15898 * grub-core/lib/posix_wrap/langinfo.h (nl_langinfo): Likewise.
15899 * grub-core/loader/i386/bsd.c (grub_bsd_add_meta): Likewise.
15900 (grub_freebsd_add_meta_module): Likewise.
15901 (grub_cmd_freebsd_module): Likewise.
15902 * grub-core/loader/i386/xnu.c (tbl_alias): Likewise.
15903 * grub-core/loader/xnu.c (grub_xnu_register_memory): Likewise.
15904 (grub_xnu_writetree_get_size): Likewise.
15905 (grub_xnu_writetree_toheap_real): Likewise.
15906 (grub_xnu_find_key): Likewise.
15907 (grub_xnu_create_key): Likewise.
15908 (grub_xnu_create_value): Likewise.
15909 (grub_xnu_register_memory): Likewise.
15910 (grub_xnu_check_os_bundle_required): Likewise.
15911 (grub_xnu_scan_dir_for_kexts): Likewise.
15912 (grub_xnu_load_kext_from_dir): Likewise.
15913 * grub-core/normal/color.c (color_list): Likewise.
15914 * grub-core/normal/completion.c (current_word): Likewise.
15915 * grub-core/normal/menu_entry.c (insert_string): Likewise.
15916 * grub-core/term/serial.c (grub_serial_find): Likewise.
15917 * grub-core/term/tparm.c (grub_terminfo_tparm): Likewise.
15918 * include/grub/efiemu/efiemu.h (grub_efiemu_get_default_core_name):
15919 Likewise.
15920 * include/grub/i386/bsd.h (grub_bsd_add_meta): Likewise.
15921 (grub_freebsd_add_meta_module): Likewise.
15922 * include/grub/lib/arg.h (grub_arg_option): Likewise.
15923 * include/grub/net.h (grub_net_card_driver): Likewise.
15924 (grub_net_card): Likewise.
15925 (grub_net_app_protocol): Likewise.
15926 * include/grub/parttool.h (grub_parttool_argdesc): Likewise.
15927 * include/grub/serial.h (grub_serial_find): Likewise.
15928 * include/grub/tparm.h (grub_terminfo_tparm): Likewise.
15929 * include/grub/xnu.h (grub_xnu_create_key): Likewise.
15930 (grub_xnu_create_value): Likewise.
15931 (grub_xnu_find_key): Likewise.
15932 (grub_xnu_scan_dir_for_kexts): Likewise.
15933 (grub_xnu_load_kext_from_dir): Likewise.
15934
15935 * include/grub/zfs/zio_checksum.h (zio_checksum_t): Moved from here ...
15936 * grub-core/fs/zfs/zfs.c (zio_checksum_t): ...here.
15937 * include/grub/zfs/zio_checksum.h (zio_checksum_info):
15938 Moved from here ...
15939 * grub-core/fs/zfs/zfs.c (zio_checksum_info): ... here. Added missing const.
15940
112b4837
CW
159412011-11-28 Colin Watson <cjwatson@ubuntu.com>
15942
15943 * util/getroot.c (find_root_device_from_libzfs): Use xasprintf.
15944
49e891ac
VS
159452011-11-27 Vladimir Serbinenko <phcoder@gmail.com>
15946
15947 * grub-core/fs/zfs/zfs.c (recovery): Fix spelling.
15948 (read_device): Fix size calculation.
15949
fd258e5c
RM
159502011-11-25 Robert Millan <rmh@gnu.org>
15951
15952 * util/getroot.c [HAVE_LIMITS_H]: Include `<limits.h>'.
15953 (find_root_device_from_libzfs): Add zpool output parser to be used
15954 as fallback when libzfs isn't available.
15955
78845dc2
SG
159562011-11-25 Seth Goldberg <seth.goldberg@oracle.com>
15957
15958 * po/Makefile.in.in: Add missing escape-continuation.
15959
adac5211
VS
159602011-11-25 Vladimir Serbinenko <phcoder@gmail.com>
15961
15962 * grub-core/fs/cpio.c (grub_cpio_dir): Handle subdirs correctly.
15963
10b64f1c
VS
159642011-11-16 Vladimir Serbinenko <phcoder@gmail.com>
15965
15966 * grub-core/kern/dl.c (grub_dl_load_segments): Fix alignment handling.
15967
bb416954
VS
159682011-11-16 Vladimir Serbinenko <phcoder@gmail.com>
15969
15970 * grub-core/kern/dl.c (grub_dl_unload): Fix freeing segments.
15971
bdfe9eeb
VS
159722011-11-16 Vladimir Serbinenko <phcoder@gmail.com>
15973
15974 * grub-core/kern/x86_64/efi/callwrap.S: Fix the comment.
15975
581ffa8a
VS
159762011-11-14 Vladimir Serbinenko <phcoder@gmail.com>
15977
15978 * grub-core/lib/adler32.c: Add missing license specification.
15979 * grub-core/lib/crc64.c: Likewise.
15980 * grub-core/loader/i386/pc/plan9.c: Likewise.
15981 * grub-core/partmap/plan.c: Likewise.
15982
2536cf64
LK
159832011-11-13 Lubomir Kundrak <lkundrak@redhat.com>
15984
15985 Add facility to debug GRUB with gdb under qemu.
15986
15987 * grub-core/gdb_grub.in: New file.
15988 * grub-core/gmodule.pl.in: Likewise.
15989 * grub-core/Makefile.core.def (gmodule.pl): New script.
15990 (gdb_grub): Likewise.
15991
bc108a4a
VS
159922011-11-13 Vladimir Serbinenko <phcoder@gmail.com>
15993
15994 * util/grub-mount.c (argp_parser): Accept relative pathes.
15995 * util/grub-fstest.c (argp_parser): Likewise.
15996
111c1778
VS
159972011-11-13 Vladimir Serbinenko <phcoder@gmail.com>
15998
15999 Plan9 support.
16000
16001 * Makefile.util.def (libgrubmods): Add
16002 grub-core/partmap/plan.c.
16003 * docs/grub.texi: Notice Plan9 support.
16004 * grub-core/Makefile.core.def (plan9): New module.
16005 (part_plan): Likewise.
16006 * grub-core/loader/i386/pc/plan9.c: New file.
16007 * grub-core/partmap/plan.c: Likewise.
16008 * include/grub/msdos_partition.h (GRUB_PC_PARTITION_TYPE_PLAN9): New
16009 define.
16010 (GRUB_PC_PARTITION_TYPE_LINUX_SWAP): Likewise.
16011 * include/grub/mm.h (grub_extend_alloc): New inline function.
16012
c30be3b6
VS
160132011-11-13 Vladimir Serbinenko <phcoder@gmail.com>
16014
16015 Make Reed-Solomon faster by using power of generator representation of
16016 GF(256)*.
16017
16018 * grub-core/lib/reed_solomon.c (grub_uint16_t) [TEST]: Removed.
16019 (gf_double_t): Likewise.
16020 (gf_invert): Removed.
16021 (gf_powx): New array.
16022 (gf_powx_inv): Likewise.
16023 (scratch): Move higher.
16024 (gf_reduce): Removed.
16025 (gf_mul): Use powx.
16026 (gf_invert): Likewise.
16027 (init_inverts): Replaced with ...
16028 (init_powx): ...this. All users updated.
16029 (pol_evaluate): Replace multiplications with additions.
16030 (rs_encode): Likewise.
16031 (gauss_eliminate): Call gf_invert.
16032 (grub_reed_solomon_add_redundancy): Call init_powx.
16033 (grub_reed_solomon_recover): Call init_powx unconditionally.
16034
fa5aeffc
VS
160352011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16036
16037 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Fix spelling.
16038
a346b81c
VS
160392011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16040
16041 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Restore
16042 disk->partiton for safety.
16043
d89ee414
VS
160442011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16045
16046 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev):
16047 Fix a memory leak.
16048 (grub_util_biosdisk_get_grub_dev): Add a useful debug info.
16049
91ee7b6d
VS
160502011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16051
16052 * grub-core/kern/emu/hostdisk.c (find_system_device): Fix a memory leak.
16053
91e5a33d
VS
160542011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16055
16056 * include/grub/lvm.h (grub_lvm_pv): Correct start type.
16057
9edd7be2
VS
160582011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16059
16060 Fix spaces handling in proc/self/mountinfo.
16061
16062 * util/getroot.c (unescape): New function.
16063 (grub_find_root_device_from_mountinfo): Use unescape.
16064
ba102053
VS
160652011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16066
16067 Support ZFS embedding.
16068
16069 * grub-core/fs/zfs/zfs.c (grub_zfs_embed): New function.
16070 (grub_zfs_fs): Register grub_zfs_embed.
16071
aa94b870
VS
160722011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16073
16074 Fix MIPS compilation.
16075
16076 * grub-core/boot/mips/startup_raw.S: Use GRUB_DECOMPRESSOR_*
16077 * include/grub/offsets.h: Rename decompressor fields from
16078 GRUB_KERNEL_* to GRUB_DECOMPRESSOR_*.
16079 * util/grub-mkimage.c (image_targets): Use new names.
16080
5fbdac14
VS
160812011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16082
16083 Defer multiboot device parsing until we're in compressed part.
16084
16085 * grub-core/boot/i386/pc/lnxboot.S: Remove setting dos_part and
16086 bsd_part. setdevice has fallen into disuse.
16087 * grub-core/boot/i386/pc/startup_raw.S (dos_part): Removed.
16088 (bsd_part): Likewise.
16089 (boot_dev): New variable.
16090 (multiboot_trampoline): Don't parse multiboot device.
16091 Pass multiboot device in %edx.
16092 * grub-core/disk/i386/pc/biosdisk.c (GRUB_MOD_INIT): Parse
16093 grub_boot_device.
16094 * grub-core/kern/i386/pc/init.c (grub_machine_get_bootlocation):
16095 Likewise.
16096 * grub-core/kern/i386/pc/startup.S: Save edx.
16097 (grub_boot_drive): Removed.
16098 (grub_install_dos_part): Likewise.
16099 (grub_install_bsd_part): Likewise.
16100 (grub_boot_device): New variable.
16101 * include/grub/i386/pc/kernel.h (grub_install_dos_part): Removed.
16102 (grub_install_bsd_part): Likewise.
16103 (grub_boot_drive): Likewise.
16104 (grub_boot_device): New variable.
16105 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_INSTALL_DOS_PART):
16106 Removed.
16107 (GRUB_KERNEL_I386_PC_INSTALL_BSD_PART): Likewise.
16108 (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY): Moved lower.
16109 (GRUB_KERNEL_MACHINE_INSTALL_BSD_PART): Removed.
16110 (GRUB_KERNEL_MACHINE_INSTALL_DOS_PART): Likewise.
16111 * util/grub-install.in: Remove redundant condition.
16112
691cbb58
VS
161132011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16114
16115 Fix bug introduced by previous commit.
16116
16117 * grub-core/boot/i386/pc/startup_raw.S: Compute RS start correctly.
16118
60240b8b
VS
161192011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16120
16121 Use decompressors framework on i386-pc. It increases core size
16122 by 46 bytes but improves compatibility and maintainability.
16123
16124 * grub-core/Makefile.core.def (lzma_decompress): New image.
16125 (kernel): Add i386_pc_ldflags.
16126 * grub-core/kern/i386/pc/startup.S: Move intial part to ..
16127 * grub-core/boot/i386/pc/startup_raw.S: ... here. Pass pointers
16128 to real_to_prot, prot_to_real and device info.
16129 * include/grub/offsets.h: Renamed decompressor offsets.
16130 * util/grub-mkimage.c (grub_compression_t): New cmpression lzma.
16131 (image_target_desc): Remove raw_size and rename decompressor fields.
16132 (compress_kernel): Handle lzma.
16133 (generate_image): Handle decompressors on i386-pc.
16134
e9d3421c
VS
161352011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16136
16137 * configure.ac: Add -fno-asynchronous-unwind-tables.
16138
2b23074a
VS
161392011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16140
16141 Move assembly code to C by using intwrap. It increases core size
16142 by 88 bytes but improves compatibility and maintainability.
16143
16144 * grub-core/kern/i386/pc/startup.S (grub_console_putchar): Moved to ...
16145 * grub-core/term/i386/pc/console.c (grub_console_putchar_real):
16146 ... here. Translated to C.
16147 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Moved to ...
16148 * grub-core/term/i386/pc/console.c (grub_console_getkey):
16149 ... here. Translated to C.
16150 * grub-core/kern/i386/pc/startup.S (grub_console_getxy): Moved to ...
16151 * grub-core/term/i386/pc/console.c (grub_console_getxy):
16152 ... here. Translated to C.
16153 * grub-core/kern/i386/pc/startup.S (grub_console_gotoxy): Moved to ...
16154 * grub-core/term/i386/pc/console.c (grub_console_gotoxy):
16155 ... here. Translated to C.
16156 * grub-core/kern/i386/pc/startup.S (grub_console_cls): Moved to ...
16157 * grub-core/term/i386/pc/console.c (grub_console_cls):
16158 ... here. Translated to C.
16159 * grub-core/kern/i386/pc/startup.S (grub_console_setcursor): Moved to ..
16160 * grub-core/term/i386/pc/console.c (grub_console_setcursor):
16161 ... here. Translated to C.
16162 * grub-core/kern/i386/pc/startup.S (grub_get_rtc): Moved to ..
16163 * grub-core/kern/i386/pc/init.c (grub_get_rtc): ... here.
16164 Translated to C.
16165 * grub-core/term/i386/pc/console.c (int10_9): New function.
16166 (grub_console_putchar): Likewise.
16167 * include/grub/i386/pc/console.h: Removed the not anymore shared
16168 functions.
16169
678f4b67
VS
161702011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16171
16172 Move grub_chainloader_real_boot out of the kernel.
16173
16174 * grub-core/Makefile.am: Remove machine/loader.h.
16175 * grub-core/kern/i386/pc/startup.S (grub_chainloader_real_boot):
16176 Removed.
16177 * grub-core/lib/i386/relocator.c (grub_relocator16_esi): New extern
16178 variable.
16179 (grub_relocator16_keep_a20_enabled): Likewise.
16180 (grub_relocator16_boot): Fill new variables.
16181 * grub-core/lib/i386/relocator16.S: Add gate a20 handling.
16182 * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_boot): Use
16183 relocator.
16184 (grub_chainloader_unload): Likewise.
16185 (grub_chainloader_cmd): Likewise.
16186 * include/grub/i386/pc/loader.h: Removed.
16187 * include/grub/i386/relocator.h (grub_relocator16_state): Add a20
16188 and esi. All initialisers updated.
16189
4626edf6
VS
161902011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
161912011-11-12 Colin Watson <cjwatson@ubuntu.com>
16192
16193 * Makefile.util.def (grub-mount): New util.
16194 * .bzrignore: Add grub-mount.
16195 * configure.ac: Check for fuse and enable grub-mount if available.
16196 * docs/man/grub-mount.h2m: New file.
16197 * util/grub-mount.c: Likewise.
16198
10f0117b
VS
161992011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16200
16201 * grub-core/commands/efi/fixvideo.c: Gettextize.
16202 * grub-core/commands/hashsum.c: Likewise.
16203 * grub-core/commands/i386/cmostest.c: Likewise.
16204 * grub-core/commands/i386/pc/drivemap.c: Likewise.
16205 * grub-core/commands/i386/pc/lsapm.c: Likewise.
16206 * grub-core/commands/i386/pc/sendkey.c: Likewise.
16207 * grub-core/commands/lsmmap.c: Likewise.
16208 * grub-core/commands/menuentry.c: Likewise.
16209 * grub-core/commands/mips/loongson/lsspd.c: Likewise.
16210 * grub-core/commands/setpci.c: Likewise.
16211 * grub-core/loader/i386/bsd.c: Likewise.
16212 * grub-core/loader/i386/linux.c: Likewise.
16213 * util/getroot.c: Likewise.
16214 * util/grub-editenv.c: Likewise.
16215 * util/grub-fstest.c: Likewise.
16216 * util/grub-mkfont.c: Likewise.
16217 * util/grub-mkimage.c: Likewise.
16218 * util/grub-mkpasswd-pbkdf2.c: Likewise.
16219 * util/grub-pe2elf.c: Likewise.
16220 * util/grub-probe.c: Likewise.
16221 * util/grub-setup.c: Likewise.
16222 * util/ieee1275/ofpath.c: Likewise.
16223 * util/misc.c: Likewise.
16224 * util/raid.c: Likewise.
16225
566f779b
RM
162262011-11-11 Robert Millan <rmh@gnu.org>
16227
16228 * util/getroot.c (grub_util_get_geom_abstraction): Remove
16229 __attribute__((unused)) from `os_dev', which *is* being used.
16230
b50787de
VS
162312011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16232
16233 * include/grub/dl.h (GRUB_ARCH_DL_TRAMP_SIZE) [__ia64__]: Add back
16234 forgotten define.
16235 (GRUB_ARCH_DL_GOT_ALIGN) [__ia64__]: Redefine in terms of
16236 GRUB_IA64_DL_GOT_ALIGN.
16237 (GRUB_ARCH_DL_TRAMP_ALIGN) [__ia64__]: Redefine in terms of
16238 GRUB_IA64_DL_TRAMP_ALIGN.
16239
119d11c8
VS
162402011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16241
16242 Replace grub_fatal with normal errors in i386 linux loader.
16243
16244 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Return 0 on error.
16245 (allocate_pages): Check find_efi_mmap_size return value.
16246 (grub_e820_add_region): Return error.
16247 (grub_linux_boot): Check mmap return value.
16248
6e0632e2
VS
162492011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16250
16251 * grub-core/commands/acpihalt.c: Gettextized.
16252 * grub-core/commands/cacheinfo.c: Likewise.
16253 * grub-core/commands/cmp.c: Likewise.
16254 * grub-core/commands/efi/loadbios.c: Likewise.
16255 * grub-core/commands/gptsync.c: Likewise.
16256 * grub-core/commands/ieee1275/suspend.c: Likewise.
16257 * grub-core/commands/legacycfg.c: Likewise.
16258 * grub-core/commands/memrw.c: Likewise.
16259 * grub-core/commands/minicmd.c: Likewise.
16260 * grub-core/commands/parttool.c: Likewise.
16261 * grub-core/commands/time.c: Likewise.
16262 * grub-core/commands/videoinfo.c: Likewise.
16263 * grub-core/disk/geli.c: Likewise.
16264 * grub-core/disk/i386/pc/biosdisk.c: Likewise.
16265 * grub-core/disk/luks.c: Likewise.
16266 * grub-core/disk/lvm.c: Likewise.
16267 * grub-core/font/font_cmd.c: Likewise.
16268 * grub-core/fs/zfs/zfscrypt.c: Likewise.
16269 * grub-core/fs/zfs/zfsinfo.c: Likewise.
16270 * grub-core/gfxmenu/view.c: Likewise.
16271 * grub-core/kern/emu/hostdisk.c: Likewise.
16272 * grub-core/kern/emu/main.c: Likewise.
16273 * grub-core/kern/emu/misc.c: Likewise.
16274 * grub-core/kern/emu/mm.c: Likewise.
16275 * grub-core/kern/mips/arc/init.c: Likewise.
16276 * grub-core/kern/mips/loongson/init.c: Likewise.
16277 * grub-core/kern/partition.c: Likewise.
16278 * grub-core/lib/i386/halt.c: Likewise.
16279 * grub-core/lib/mips/arc/reboot.c: Likewise.
16280 * grub-core/lib/mips/loongson/reboot.c: Likewise.
16281 * grub-core/loader/i386/pc/chainloader.c: Likewise.
16282 * grub-core/loader/i386/xnu.c: Likewise.
16283 * grub-core/loader/multiboot.c: Likewise.
16284 * grub-core/net/bootp.c: Likewise.
16285 * grub-core/net/net.c: Likewise.
16286 * grub-core/normal/term.c: Likewise.
16287 * grub-core/partmap/bsdlabel.c: Likewise.
16288 * grub-core/parttool/msdospart.c: Likewise.
16289 * grub-core/term/gfxterm.c: Likewise.
16290 * grub-core/term/terminfo.c: Likewise.
16291 * grub-core/video/i386/pc/vbe.c: Likewise.
16292 * util/grub-menulst2cfg.c: Likewise.
16293 * util/grub-mkdevicemap.c: Likewise.
16294 * util/grub-mklayout.c: Likewise.
16295 * util/grub-mkrelpath.c: Likewise.
16296 * util/grub-script-check.c: Likewise.
16297 * util/ieee1275/grub-ofpathname.c: Likewise.
16298 * util/resolve.c: Likewise.
16299
073aa7a9
VS
163002011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16301
16302 Support %1$d syntax.
16303
16304 * tests/printf_unit_test.c: New file.
16305 * Makefile.util.def (printf_test): New test.
16306 * grub-core/kern/misc.c (grub_vsnprintf_real): Support %1$d syntax.
16307
c76b5417
VS
163082011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16309
16310 * grub-core/hook/datehook.c (grub_read_hook_datetime): Small stylistic
16311 fix.
16312
df067ad1
VS
163132011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16314
16315 * grub-core/efiemu/mm.c (grub_efiemu_mmap_fill): Change printf into
16316 dprintf.
16317 * grub-core/font/font.c (grub_font_load): Likewise.
16318
5b289bc5
VS
163192011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16320
16321 * util/grub-macho2img.c: Add comment concerning gettext.
16322 * grub-core/lib/legacy_parse.c: Likewise.
16323
c1860f87
VS
163242011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16325
16326 * grub-core/kern/misc.c (grub_vprintf): Add missing va_end.
16327 (grub_xvasprintf): Likewise.
16328
d35d0d37
VS
163292011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16330
16331 Add const keyword to grub_env_get and gettextize week days.
16332
16333 * grub-core/hook/datehook.c (grub_datetime_names): Make const.
16334 (grub_read_hook_datetime): Return const char *.
16335 * grub-core/kern/env.c (grub_env_get): Return const char *. All users
16336 updated.
16337 * grub-core/normal/datetime.c (grub_weekday_names): Make const.
16338 Mark for gettext.
16339 (grub_get_weekday_name): Return const char *. Call gettext.
16340 * grub-core/script/argv.c (grub_script_argv_append): Receive const
16341 char * and len as the argument. All users updated.
16342 (grub_script_argv_split_append): Receive const char *.
16343 * include/grub/datetime.h (grub_get_weekday_name): Update proto.
16344 * include/grub/env.h (grub_env_get): Likewise.
16345 (grub_env_read_hook_t): Return const char *.
16346 * include/grub/script_sh.h (grub_script_argv_append): Update proto.
16347 (grub_script_argv_split_append): Likewise.
16348
9aed8a71
VS
163492011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16350
16351 * grub-core/normal/main.c (grub_normal_execute): Remove leftover call.
16352
067fdf00
VS
163532011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16354
16355 * grub-core/kern/misc.c (grub_strstr): Moved from here ...
16356 * include/grub/misc.h (grub_strstr): ... here. Make static and inline.
16357
a8bd9d39
VS
163582011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16359
16360 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_set_property):
16361 Fix prototype.
16362
f7ce5baf
VS
163632011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16364
16365 Fix mips compilation.
16366
16367 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec): Restrict hash_id to
16368 normal decoder.
16369 (hashes): Use in embed decoder as well (for sizes).
16370 (dec_stream_header): Fix embed decompressor logic.
16371 (dec_stream_footer): Likewise.
16372
9bb182f3
VS
163732011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16374
16375 * grub-core/kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Issue
16376 an error and not a fatal on unrecognised relocation types.
16377
63a9e6f6
VS
163782011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16379
16380 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args):
16381 Issue error rather than printf on unknown arguments.
16382
4c458569
VS
163832011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16384
16385 * grub-core/kern/ieee1275/ieee1275.c (grub_ieee1275_set_property):
16386 Make buf a const.
16387
e2d22baf
VS
163882011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16389
16390 * grub-core/fs/zfs/zfscrypt.c (GRUB_MOD_INIT), (GRUB_MOD_FINI):
16391 Fix module name.
16392
53dc8590
VS
163932011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16394
16395 * grub-core/fs/ntfs.c (grub_ntfs_read_symlink): Stylistic fix. Remove
16396 leftover debug printf.
16397
6c189294
VS
163982011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16399
16400 * grub-core/fs/btrfs.c (grub_btrfs_embed): Spelling fix.
16401
f7688369
VS
164022011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16403
16404 * grub-core/efiemu/main.c (grub_efiemu_register_configuration_table):
16405 A stylistic fix.
16406
11a775a3
VS
164072011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16408
16409 * grub-core/commands/probe.c (grub_cmd_probe): Fix error message.
16410
33f784e8
SL
164112011-11-10 Shea Levy <slevy@tieronedesign.com>
16412
16413 Allow all modules to perform serial IO
16414
16415 * grub-core/term-serial.c (grub_serial_find): Remove static qualifier
16416 * include/grub/serial.h (grub_serial_port_configure): New inline
16417 function.
16418 (grub_serial_port_fetch): Likewise.
16419 (grub_serial_port_put): Likewise.
16420 (grub_serial_port_fini): Likewise.
16421 (grub_serial_find): New proto.
16422
f6276525
VS
164232011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
16424
16425 Put symlink at the end of the node and fix a potential
16426 memory corruption.
16427
16428 * grub-core/fs/iso9660.c (grub_fshelp_node): New field have_symlink.
16429 Make symlink into an array.
16430 (set_rockridge): Set have_symlink and alloc_dirents.
16431 (grub_iso9660_read_symlink): Use new layout.
16432 (grub_iso9660_iterate_dir): Fix memory corruption.
16433 Use new layout.
16434 (grub_iso9660_dir): Set have_symlink.
16435 (grub_iso9660_open): Likewise.
16436
c3591189
VS
164372011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
16438
16439 Remove local keyword.
16440
16441 * util/grub-mkconfig_lib.in (version_test_numeric): Remove local.
16442 (version_test_gt): Likewise.
16443 (version_find_latest): Likewise.
16444 (gettext_printf): Likewise.
16445 * util/grub.d/10_windows.in (get_os_name_from_boot_ini): Likewise.
16446
cb544caa
VS
164472011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
16448
16449 * grub-core/fs/zfs/zfs.c (zfs_mount): Fix spurious warning.
16450
45bd824d
VS
164512011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
16452
16453 Fix ZFS memory and resource leaks.
16454
16455 * grub-core/fs/zfs/zfs.c (fill_vdev_info_real): New paramter inserted.
16456 All users updated.
16457 Free type on exit.
16458 (fill_vdev_info): New parameter inserted. All users updated.
16459 (check_pool_label): Likewise.
16460 (scan_disk): Likewise.
16461 (scan_devices): Close non-inserted disks.
16462 (fzap_iterate): Free l.
16463 (unmount_device): Free children descripto memory.
16464
ad9a2f44
VS
164652011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
16466
16467 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Fix grub_strncat
16468 argument (access out of bounds).
16469
6b68db81
VS
164702011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
16471
16472 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Fix RAID10 logic for
16473 >= 6 drives.
16474
28840fda
VS
164752011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
16476
16477 * include/grub/i386/netbsd_bootinfo.h (grub_netbsd_btinfo_bootwedge):
16478 Fix declaration.
16479
8a5a3a5b
VS
164802011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
16481
16482 Fix several memory leaks.
16483
16484 * grub-core/fs/btrfs.c (grub_btrfs_dir): Fix memory leak.
16485 * grub-core/fs/cpio.c (grub_cpio_find_file): Likewise.
16486 (grub_cpio_dir): Likewise.
16487 * grub-core/fs/fat.c (grub_fat_label): Likewise.
16488 * grub-core/fs/jfs.c (grub_jfs_label): Likewise.
16489 * grub-core/fs/romfs.c (grub_romfs_close): Likewise.
16490 (grub_romfs_label): Likewise.
16491 * grub-core/fs/squash4.c (squash_mount): Use zalloc for safety.
16492 (squash_unmount): New function.
16493 (grub_squash_dir): Fix memory leak.
16494 (grub_squash_open): Likewise.
16495 (grub_squash_read): Likewise.
16496 (grub_squash_mtime): Likewise.
16497 * grub-core/fs/xfs.c (grub_xfs_open): Likewise.
16498 * grub-core/fs/zfs/zfs.c (check_pool_label): Likewise.
16499 * util/grub-fstest.c (fstest): Likewise.
16500
57b01250
VS
165012011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
16502
16503 * include/grub/misc.h (grub_strncat): Fix the order of conditionals to
16504 avoid accessing beyond the array.
16505
19e81ba7
VS
165062011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
16507
16508 * configure.ac: Add missing -mXX to TARGET_CPPFLAGS.
16509
52b656c0
VS
165102011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
16511
16512 Several AFFS fixes.
16513
16514 * grub-core/fs/affs.c (grub_affs_bblock): Replace flags with version.
16515 (GRUB_AFFS_FLAG_FFS): Removed.
16516 (GRUB_AFFS_SYMLINK_SIZE): Likewise.
16517 (GRUB_AFFS_FILETYPE_DIR): Make positive and unsigned.
16518 (GRUB_AFFS_FILETYPE_DIR), (GRUB_AFFS_FILETYPE_REG): Fix a mix-up.
16519 (grub_fshelp_node): Make block 32-bit.
16520 Add block_cache and last_block_cache.
16521 (grub_affs_read_block): Fill and use block cache.
16522 (grub_affs_read_file): Removed.
16523 (grub_affs_mount): Zero-fill node. Fix version check. Don't reread
16524 boot block.
16525 (grub_affs_read_symlink): Fix symlink size. Add a \0 at the end for
16526 safety.
16527 (grub_affs_iterate_dir): Use more appropriate types. Zero-fill allocated
16528 space.
16529 (grub_affs_close): Free block cache.
16530 (grub_affs_read): Use grub_fshelp_read_file directly.
16531
438a746a
VS
165322011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16533
16534 * grub-core/fs/zfs/zfs.c (read_dva): Issue an error if read failed
16535 with no error set.
16536
49a45021
VS
165372011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16538
16539 * grub-core/lib/LzmaEnc.c (LzmaEnc_CodeOneBlock): Remove set but not
16540 used variable.
16541 * grub-core/kern/ia64/dl_helper.c (grub_ia64_dl_get_tramp_got_size):
16542 Likewise.
16543
3ae17eb8
VS
165442011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16545
16546 Fix potential problem with calling zfs_to_cpu and cpu_to_be in a row.
16547
16548 * grub-core/fs/zfs/zfscrypt.c (grub_zfs_decrypt_real): Use explicit
16549 byteswap when needed.
16550
27610c38
VS
165512011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16552
16553 Fix FreeBSD compilation.
16554
16555 * grub-core/disk/geli.c (GRUB_MD_SHA256) [GRUB_UTIL]: Redefine in a way
16556 to avoid circular dependency.
16557 (GRUB_MD_SHA512) [GRUB_UTIL]: Likewise.
16558 * util/getroot.c (grub_util_follow_gpart_up): Move from here...
16559 * grub-core/kern/emu/hostdisk.c (+grub_util_follow_gpart_up): ... here.
16560
4a19b601
VS
165612011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16562
16563 Fix ZFS crypto error types.
16564
16565 * grub-core/fs/zfs/zfscrypt.c (grub_ccm_decrypt): Fix return type.
16566 (grub_gcm_decrypt): Likewise.
16567 (grub_zfs_load_key_real): Fix error code type. Handle possible error
16568 from PBKDF2.
16569
958ee221
VS
165702011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16571
16572 Illumos support.
16573
16574 * Makefile.util.def (10_illumos): New script.
16575 * configure.ac: Set COND_HOST_ILLUMOS.
16576 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors) [__sun__]:
16577 Support Illumos calls.
16578 (find_partition_start) [__sun__]: Likewise.
16579 (convert_system_partition_to_system_disk) [__sun__]: Likewise.
16580 (device_is_wholedisk) [__sun__]: Handle Illumos naming scheme.
16581 (grub_util_biosdisk_get_grub_dev) [__sun__]: Handle Illumos.
16582 * util/getroot.c (find_root_device_from_libzfs) [__sun__]: Return raw
16583 device.
16584 * util/grub-probe.c (probe) [__sun__]: Do character check.
16585 * util/grub.d/10_illumos.in: New file.
16586
cac14fb6
VS
165872011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16588
16589 Support escaped commas in hostdisk.
16590
16591 * grub-core/kern/emu/hostdisk.c (unescape_cmp): New function.
16592 (find_grub_drive): Use unescape_cmp.
16593 (make_device_name): Escape commas.
16594
78e08dc3
VS
165952011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16596
16597 * util/grub.d/10_kfreebsd.in: Use ${grub_mkrelpath} not grub-mkrelpath.
16598
9f421dd1
VS
165992011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16600
16601 * grub-core/fs/zfs/zfs.c (zap_iterate): Remove set but not used
16602 variable.
16603
ed64e9e2
VS
166042011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16605
16606 Support trampoline jumps on powerpc.
16607
16608 * grub-core/kern/dl.c (grub_dl_load_segments) [__powerpc__]: Follow
16609 __ia64__ path.
16610 (grub_dl_load_segments): Set mod->sz.
16611 (grub_dl_flush_cache): Flush whole space occupied by module, not just
16612 segments.
16613 * grub-core/kern/ia64/dl.c (nopm): Make const while on it.
16614 (jump): Likewise.
16615 * grub-core/kern/powerpc/dl.c (grub_arch_dl_get_tramp_got_size): New
16616 function.
16617 (trampoline): New struct.
16618 (trampoline_template): New const.
16619 (grub_arch_dl_relocate_symbols): Create trampolines on overflow.
16620 * include/grub/dl.h (grub_dl): Add sz element.
16621 [__powerpc__]: Follow __ia64__.
16622 (GRUB_ARCH_DL_TRAMP_ALIGN): Define on ppc.
16623 (GRUB_ARCH_DL_GOT_ALIGN): Likewise.
16624 (GRUB_ARCH_DL_TRAMP_SIZE): Likewise.
16625 (grub_arch_dl_get_tramp_got_size) [__powerpc__]: New proto.
16626
3084ede4
VS
166272011-11-06 Vladimir Serbinenko <phcoder@gmail.com>
16628
16629 ZFS crypto support.
16630
16631 * Makefile.util.def (libgrubmods): Add grub-core/fs/zfs/zfscrypt.c.
16632 * grub-core/Makefile.core.def (zfscrypt): New module.
16633 * grub-core/fs/zfs/zfs.c (subvolume): New structure.
16634 (grub_zfs_data): Replace mdn with subvol. Put case_insensitivity inside
16635 it. All users updated.
16636 (grub_zfs_decrypt): New var.
16637 (grub_zfs_load_key): Likewise.
16638 (zio_checksum_functions): Add SHA256+MAC.
16639 (zio_checksum_verify): Handle incomplete comparison due to MAC.
16640 (zio_read): Handle encrypted blocks.
16641 (zap_verify): Remove incorrect check.
16642 (fzap_iterate): Handle non-standard fzap.
16643 (zap_iterate): Likewise.
16644 (zap_iterate_u64): New function.
16645 (dnode_get_fullpath): Load keys.
16646 * grub-core/fs/zfs/zfscrypt.c: New file.
16647 * grub-core/lib/crypto.c (grub_crypto_cipher_close): Removed.
16648 (grub_crypto_ecb_encrypt): Make input const.
16649 * include/grub/crypto.h (grub_crypto_cipher_close): Inline.
16650 (grub_crypto_ecb_encrypt): Make input const.
16651 (GRUB_CIPHER_AES): New macro.
16652 * include/grub/zfs/dmu.h (dmu_object_type): Add DMU_OT_DSL_KEYCHAIN.
16653 * include/grub/zfs/dsl_dir.h (dsl_dir_phys): Add keychain.
16654 * include/grub/zfs/spa.h (grub_zfs_endian): Moved from here ...
16655 * include/grub/zfs/zfs.h (grub_zfs_endian): ... here. Added GURB_ZFS_
16656 prefix. All users updated.
16657 (grub_zfs_add_key): New proto.
16658 (grub_zfs_decrypt): Likewise.
16659 (grub_zfs_load_key): Likewise.
16660 * include/grub/zfs/zio.h (zio_checksum): Add SHA256+MAC.
16661 * util/grub-fstest.c (options): Add -K option.
16662 (argp_parser): Likewise.
16663
b632b404
VS
166642011-11-05 Vladimir Serbinenko <phcoder@gmail.com>
16665
16666 Support zle compression on ZFS.
16667
16668 * grub-core/fs/zfs/zfs.c (zle_decompress): New function.
16669 (decomp_table): Add zle.
16670 * include/grub/zfs/zio.h (zio_compress): Add zle.
16671
c7ba4f69
VS
166722011-11-05 Vladimir Serbinenko <phcoder@gmail.com>
16673
16674 Support BtrFS embedding.
16675
16676 * grub-core/fs/btrfs.c (grub_btrfs_embed) [GRUB_UTIL]: New function.
16677 (grub_btrfs_fs) [GRUB_UTIL]: Set embed.
16678 * include/grub/fs.h (grub_fs) [GRUB_UTIL]: New field embed.
16679 * util/grub-setup.c (setup): Use fs embedding if available.
16680 Add additional sanity check.
16681
455377d9
VS
166822011-11-05 Vladimir Serbinenko <phcoder@gmail.com>
16683
16684 * util/grub-install.in: Fix condition for config_opt.
16685
c2fd16ca
VS
166862011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
16687
16688 Support third redundancy strip on raidz3.
16689
16690 * grub-core/fs/zfs/zfs.c (recovery): Add Gauss for general case.
16691 Return error on singularity. All users updated.
16692 (read_device): Don't stop on 3rd failure on raidz3.
16693
8622923b
VS
166942011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
16695
16696 Support case-insensitive ZFS subvolumes.
16697
16698 * grub-core/fs/zfs/zfs.c (mzap_lookup): New parameter case_insensitive.
16699 All users updated.
16700 (zap_hash): Likewise.
16701 (name_cmp): New function.
16702 (zap_leaf_array_equal): New parameter case_insensitive.
16703 All users updated.
16704 (zap_leaf_lookup): Likewise.
16705 (fzap_lookup): Likewise.
16706 (zap_lookup): Likewise.
16707 (dnode_get_path): New parameter case_insensitive. Retrieve case
16708 sensitiviness of a volume. All users updated.
16709 (dnode_get_fullpath): New parameter case_insensitive.
16710 All users updated.
16711 (grub_zfs_dir): Set info.case_insensitiveness.
16712
95f2e860
VS
167132011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
16714
16715 Support second redundancy strip on raidz(2,3).
16716
16717 * grub-core/fs/zfs/zfs.c (powx): New array.
16718 (powx_inv): Likewise.
16719 (poly): New const.
16720 (xor_out): New function.
16721 (gf_mul): Likewise.
16722 (recovery): Likewise.
16723 (read_device): Use second redundancy strip.
16724
11ee4389
VS
167252011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
16726
16727 Use a power of generator representation of GF(256) multiplication group
16728 to save space time and complexity.
16729
16730 * grub-core/disk/raid6_recover.c (raid6_table1): Removed.
16731 (raid6_table2): Likewise.
16732 (powx): New array.
16733 (powx_inv): Likewise.
16734 (poly): New const.
16735 (grub_raid_block_mul): Replace with ...
16736 (grub_raid_block_mulx): ...this.
16737 (grub_raid6_init_table): Rewritten.
16738 (grub_raid6_recover): Use power of generator representation.
16739
09e2763f
VS
167402011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
16741
16742 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Get start_sector
16743 for the right device.
16744
8bec9a28
VS
167452011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
16746
16747 * include/grub/kernel.h (grub_module_header): Make type into uint32 as
16748 expected by grub-mkimage and it's more clear since there is no implicit
16749 padding.
16750
dbd3a32e
VS
167512011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
16752
16753 * grub-core/disk/raid.c (scan_devices): Don't derference NULL on whole
16754 disk.
16755 * grub-core/disk/lvm.c (do_lvm_scan): Likewise.
16756
182c872a
PMH
167572011-11-03 Philipp Matthias Hahn <pmhahn@debian.org>
16758
16759 * util/grub-mkrescue.in: Fix handling xorriso option.
16760
1e51cabd
VS
167612011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
16762
16763 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Exit if local is
16764 NULL.
16765
9cc3581d 167662011-11-03 crocket <crockabiscuit@gmail.com>
16767
16768 * util/grub.d/10_linux.in: Add Slackware initrd naming.
16769
158dc1ea
VS
167702011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
16771
16772 XZ CRC64 and SHA256 support.
16773
16774 * Makefile.util.def (libgrubmods): Add crc64.c.
16775 * grub-core/Makefile.core.def (crc64): New module.
16776 * grub-core/lib/crc64.c: New file.
16777 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_hash)
16778 [!GRUB_EMBED_DECOMPRESSOR]: Rename crc32_context to hash_context.
16779 Fix the type.
16780 (MAX_HASH_SIZE): New define.
16781 (xz_dec) [!GRUB_EMBED_DECOMPRESSOR]: Add generic hash fields.
16782 (dec_block) [!GRUB_EMBED_DECOMPRESSOR]: Handle non-crc32 hashes.
16783 (index_update) [!GRUB_EMBED_DECOMPRESSOR]: Likewise.
16784 (dec_index) [!GRUB_EMBED_DECOMPRESSOR]: Likewise.
16785 (crc32_validate) [!GRUB_EMBED_DECOMPRESSOR]: Rename to ...
16786 (hash_validate) [!GRUB_EMBED_DECOMPRESSOR]: ... this.
16787 Handle non-crc32 hashes.
16788 (hashes) [!GRUB_EMBED_DECOMPRESSOR]: New variable.
16789 (dec_stream_header): Handle non-crc32 hashes.
16790 (dec_stream_footer): Likewise.
16791 (dec_block_header): Likewise.
16792 (dec_main): Likewise.
16793 (xz_dec_init): Likewise.
16794 (xz_dec_reset): Likewise.
16795 (xz_dec_end): Likewise.
16796 * util/import_gcry.py: Add CRC64 line.
16797
9d9b3d2f
VS
167982011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
16799
16800 * grub-core/fs/ufs.c (grub_ufs_mtime) [MODE_UFS2]: Check mtime field
16801 as well.
16802
7d0ac931
VS
168032011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
16804
16805 Make reiserfs label retrieval similar to other *_label functions.
16806
16807 * grub-core/fs/reiserfs.c (grub_reiserfs_superblock): New field label.
16808 (REISERFS_MAX_LABEL_LENGTH): Removed.
16809 (REISERFS_LABEL_OFFSET): Likewise.
16810 (grub_reiserfs_label): Rewritten.
16811
168122011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
16813
16814 * grub-core/fs/nilfs2.c (grub_nilfs2_mtime): Use correct superblock
16815 field.
16816
cf5ba824
VS
168172011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
16818
16819 * grub-core/fs/zfs/zfs.c (read_device): Support raidz3.
16820
17744004
VS
168212011-11-02 Vladimir Serbinenko <phcoder@gmail.com>
16822
16823 * grub-core/fs/zfs/zfs.c (read_device): Add ability to sustain a single
16824 drive failure on both raidz and raidz2.
16825
aca5aefc
VS
168262011-11-02 Vladimir Serbinenko <phcoder@gmail.com>
16827
16828 Fix RAIDZ(2) for >= 5 devices.
16829
16830 * grub-core/fs/zfs/zfs.c (read_device): Fix length formula. Remove
16831 asize argument. All users updated.
16832
ce8ca56e
VS
168332011-11-01 Vladimir Serbinenko <phcoder@gmail.com>
16834
16835 Fix RAIDZ(2).
16836
16837 * grub-core/fs/zfs/zfs.c (grub_zfs_device_desc): New member ashift.
16838 (fill_vdev_info_real): Set ashift.
16839 (read_device): Rewrite RAIDZ part based on reverse engineering.
16840
7c01e783
VS
168412011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
16842
16843 * grub-core/fs/btrfs.c (grub_btrfs_extent_read): Add sanity check and
16844 don't report potentially unavialiable fields in debug output.
16845 (find_path): Fix double-free and memory leak.
16846
ce109e84
VS
168472011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
16848
16849 Read label on UFS1.
16850
16851 * grub-core/fs/ufs.c (grub_ufs_label): Remove MODE_UFS2 condition.
16852 (grub_ufs_fs): Always set .label.
16853
87661123
VS
168542011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
16855
16856 Use shifts in UFS.
16857
16858 * grub-core/fs/ufs.c (UFS_LOG_BLKSZ): New macro.
16859 (grub_ufs_data): New field log2_blksz.
16860 (grub_ufs_read_file): Use shifts.
16861 (grub_ufs_mount): Check block size and logarithm it.
16862
46bc1dc2
VS
168632011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
16864
16865 * grub-core/fs/ufs.c (grub_ufs_lookup_symlink): Fix handling of
16866 long symlinks.
16867
19ee2987
VS
168682011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
16869
16870 Handle symlinks and long names on tar and cpio.
16871
16872 * grub-core/fs/cpio.c (ATTR_TYPE): New definition.
16873 (ATTR_FILE): Likewise.
16874 (ATTR_DIR): Likewise.
16875 (ATTR_LNK): Likewise.
16876 (grub_cpio_data) [MODE_USTAR]: New fields linkname and linkname_alloc.
16877 (grub_cpio_find_file): Fill mode, handle linkname field as well as
16878 L and K entries.
16879 (grub_cpio_mount): Zero-fill data.
16880 (handle_symlink): New function.
46bc1dc2
VS
16881 (grub_cpio_dir): Handle symlinks.
16882 (grub_cpio_open): Likewise.
16883 (grub_cpio_close) [MODE_USTAR]: Free linkname.
19ee2987 16884
c83a08d8
VS
168852011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
16886
16887 Fix iso9660 filename limitations and fix memory leaks.
16888
16889 * grub-core/fs/iso9660.c (set_rockridge): Free sua at the end.
16890 (grub_iso9660_iterate_dir): Fix slash handling in symlinks.
16891
45cdd3ea
VS
168922011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
16893
16894 Fix JFS file name length limitations.
16895
16896 * grub-core/fs/jfs.c (grub_jfs_inode): Fix in-place symlink length.
16897 (grub_jfs_diropen): Fix maximum filename length.
16898 (grub_jfs_getent): Fix filename length.
16899 (grub_jfs_lookup_symlink): Fix size checks.
16900
94ef05c2
VS
169012011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
16902
16903 * grub-core/loader/mips/linux.c (loongson_machtypes): Fix fuloong type
16904 string.
16905
785ab8c7
VS
169062011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
16907
eb0b6b45
VS
16908 Leverage BFS implementation to read AFS.
16909
16910 * Makefile.util.def (libgrubmods): Add afs.c.
16911 * grub-core/Makefile.core.def (afs): New module
16912 * grub-core/fs/afs.c: New file.
16913 * grub-core/fs/bfs.c [MODE_AFS]: Adapt for AFS.
16914
169152011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
16916
16917 * grub-core/fs/bfs.c: Macroify and add some necessary sanity checks.
785ab8c7 16918
c4a1628f
VS
169192011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
16920
16921 * grub-core/fs/bfs.c: Run indent.
16922
5825b379
VS
169232011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
16924
16925 BFS implementation based on the specification.
16926
16927 * grub-core/fs/bfs.c: New file.
16928 * Makefile.util.def (libgrubmods): Add bfs.c.
16929 * grub-core/Makefile.core.def (bfs): New module.
16930
42b2a706
VS
169312011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
16932
16933 * util/grub-fstest.c (cmd_cp): Clarify error message.
16934 (cmd_cmp): Likewise.
16935
61b99bfc
YB
169362011-10-30 Yves Blusseau <blusseau@zetam.org>
16937
16938 * po/POTFILES.in: Regenerate because of the removal of afs, afs_be, befs
16939 and befs_be.
16940
faba3d16
VS
169412011-10-29 Vladimir Serbinenko <phcoder@gmail.com>
16942
16943 Remove afs and befs because of copyright problem.
16944
16945 * grub-core/fs/afs.c: Removed.
16946 * grub-core/fs/afs_be.c: Removed.
16947 * grub-core/fs/befs.c: Removed.
16948 * grub-core/fs/befs_be.c: Removed.
16949 * Makefile.util.def (libgrubkern): Remove afs, afs_be, befs and befs_be.
16950 * grub-core/Makefile.core.def (afs): Removed.
16951 (afs_be): Likewise.
16952 (befs): Likewise.
16953 (befs_be): Likewise.
16954
c39224b0
VS
169552011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
16956
16957 Prefer rockridge over Joliet.
16958
16959 * grub-core/fs/iso9660.c (grub_iso9660_mount): Move rockridge detection
16960 to ...
16961 (set_rockridge): ... here.
16962 (grub_iso9660_mount): Check rockridge on the primary label when
16963 discovering. Ignore Joliet if Rockridge is present.
16964
e551115a
VS
169652011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
16966
16967 Use shifts in nilfs2.
16968
16969 * grub-core/fs/nilfs2.c (LOG_INODE_SIZE): New definition.
16970 (LOG_NILFS_DAT_ENTRY_SIZE): Likewise.
16971 (grub_nilfs2_palloc_entries_per_group): Replace with ...
16972 (grub_nilfs2_log_palloc_entries_per_group): ... this.
16973 (grub_nilfs2_palloc_group): Use shifts and bitmasks.
16974 (grub_nilfs2_entries_per_block): Replaced with ...
16975 (grub_nilfs2_log_entries_per_block_log): ... this.
16976 (grub_nilfs2_blocks_per_group): Replaced with ...
16977 (grub_nilfs2_blocks_per_group_log): ... this.
16978 (grub_nilfs2_blocks_per_desc_block): Replaced with ...
16979 (grub_nilfs2_blocks_per_desc_block_log): ... this.
16980 (grub_nilfs2_palloc_desc_block_offset): Replaced with ...
16981 (grub_nilfs2_palloc_desc_block_offset_log): ... this.
16982 (grub_nilfs2_palloc_entry_offset): Replaced ...
16983 (grub_nilfs2_palloc_entry_offset_log): ... this. Use shifts.
16984 (grub_nilfs2_dat_translate): Use shifts.
16985 (grub_nilfs2_read_inode): Likewise.
16986 (GRUB_MOD_INIT): Ensure that logs are correct.
16987
564dd58c
VS
169882011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
16989
16990 Use shifts in minix filesystem.
16991
16992 * grub-core/fs/minix.c (GRUB_MINIX_ZONESZ): Use log_block_size.
16993 (GRUB_MINIX_ZONE2SECT): Likewise.
16994 (grub_minix_data): Replace block_size with log_block_size.
16995 (grub_minix_read_file): Use shifts.
16996 (grub_minix_mount): Check block size and take a logarithm.
16997
ed9ba06d
VS
169982011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
16999
17000 Use shifts in squash4.
17001
17002 * grub-core/fs/squash4.c (grub_squash_data): New field log2_blksz.
17003 (squash_mount): Check block size and take logarithm.
17004 (direct_read): Use shifts.
17005
ad03fe76
VS
170062011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
17007
17008 Correct befs block counting logic.
17009
17010 * grub-core/fs/afs.c (GRUB_AFS_BLOCKS_PER_DI_RUN): Replaced with...
17011 (GRUB_AFS_LOG_BLOCKS_PER_DI_RUN): ... this.
17012 (GRUB_AFS_BLOCKRUN_LOG_SIZE): New definition.
17013 (grub_afs_read_inode): Use block_shift.
17014 (RANGE_SHIFT): New definition.
17015 (grub_afs_read_block): Account for RANGE_SHIFT, emit errors on
17016 unexpected conditions, use shifts and appropriate types.
17017 (GRUB_MOD_INIT): Check the value of GRUB_AFS_BLOCKRUN_LOG_SIZE.
17018
6563f63d
VS
170192011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
17020
17021 * grub-core/disk/raid.c (scan_devices): Check partition.
17022 * grub-core/disk/lvm.c (do_lvm_scan): Likewise.
17023
5b1ae25f
VS
170242011-10-27 Vladimir Serbinenko <phcoder@gmail.com>
17025
17026 Support BFS (befs) UUID.
17027
17028 * grub-core/fs/afs.c (grub_afs_inode): Make small_data zero-size.
17029 (grub_afs_small_data_element_header): New struct.
17030 (grub_afs_read_inode): Read complete inode. Fix ino type while on it.
17031 (grub_afs_read_attribute) [MODE_BFS]: New function.
17032 (grub_afs_iterate_dir): Allocate for complete inode.
17033 (grub_afs_mount): Likewise.
17034 (grub_afs_uuid) [MODE_BFS]: New function.
17035 (grub_afs_fs) [MODE_BFS]: Add .uuid.
17036
f8d82408
VS
170372011-10-27 Vladimir Serbinenko <phcoder@gmail.com>
17038
17039 * grub-core/fs/zfs/zfs.c (read_device): Silence spurious warning.
17040 (zfs_unmount): Fix memory leak.
17041
5773fb64
VS
170422011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
17043
17044 Support NTFS reparse points.
17045
17046 * grub-core/fs/ntfs.c (list_file): Set symlink type when appropriate.
17047 (symlink_descriptor): New struct.
17048 (grub_ntfs_read_symlink): New function.
17049 (grub_ntfs_iterate_dir): Use grub_ntfs_read_symlink.
17050 (grub_ntfs_open): Likewise.
17051
91c3fdde
VS
170522011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
17053
17054 * include/grub/ntfs.h: Add GRUB_NTFS_ prefix. All users updated.
17055
3be82e10
VS
170562011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
17057
17058 fstest xnu_uuid subcommand.
17059
17060 * grub-core/commands/xnu_uuid.c (libgrubkrn): Add
17061 grub-core/commands/xnu_uuid.c.
17062 * util/grub-fstest.c (CMD_XNU_UUID): New enum value.
17063 (fstest): Handle xnu_uuid.
17064 (options): Document xnu_uuid.
17065 (argp_parser): Parse xnu_uuid.
17066
8e32442e
VS
170672011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
17068
17069 * grub-core/commands/xnu_uuid.c (grub_cmd_xnu_uuid): Support
17070 -l argument. Add newline at the end if printing.
17071 (GRUB_MOD_INIT): Document -l.
17072
52a05075
VS
170732011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
17074
17075 * grub-core/fs/nilfs2.c (grub_nilfs2_uuid): Add missing field length.
17076
1869edb5
VS
170772011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
17078
17079 ZFS multi-device and version 33 support.
17080
17081 * Makefile.util.def (libgrubkern): Add grub-core/fs/zfs/zfsinfo.c.
17082 * grub-core/fs/zfs/zfs.c (grub_zfs_device_desc): New struct.
17083 (grub_zfs_data): Add multidev-ice-related fields.
17084 (zio_checksum_verify): Zero-pad printed values. Print checksum name.
17085 (dva_get_offset): Make dva const.
17086 (zfs_fetch_nvlist): New function.
17087 (fill_vdev_info_real): Likewise.
17088 (fill_vdev_info): Likewise.
17089 (check_pool_label): Likewise.
17090 (scan_disk): Likewise.
17091 (scan_devices): Likewise.
17092 (read_device): Likewise.
17093 (read_dva): Likewise.
17094 (zio_read_gang): Use read_dva.
17095 (zio_read_data): Likewise.
17096 (zap_leaf_lookup): Add missing endian conversion.
17097 (zap_verify): Add missing endian conversion. All users updated.
17098 (fzap_lookup): Likewise.
17099 (fzap_iterate): Likewise.
17100 (dnode_get_path): Handle SA bonus.
17101 (nvlist_find_value): Make input const. All users updated.
17102 (unmount_device): New function.
17103 (zfs_unmount): Use unmount_device.
17104 (zfs_mount): Use scan_disk.
17105 (zfs_mtime): New function.
17106 (grub_zfs_open): Handle system attributes.
17107 (fill_fs_info): Likewise.
17108 (grub_zfs_dir): Likewise.
17109 (grub_zfs_fs): Add mtime.
17110 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Add missing return.
17111 * include/grub/zfs/sa_impl.h (SA_TYPE_OFFSET): New definition.
17112 (SA_MTIME_OFFSET): Likewise.
17113 (SA_SYMLINK_OFFSET): Likewise.
17114 * include/grub/zfs/zfs.h (SPA_VERSION): Increase to 33.
17115 * util/grub-fstest.c (CMD_ZFSINFO): New enum value.
17116 (fstest): Support zfsinfo.
17117 (argp_parser): Likewise.
17118
186b4028
VS
171192011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
17120
17121 * include/grub/datetime.h (grub_datetime2unixtime): Fix off-by-one
17122 error.
17123
171242011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
5587329c
VS
17125
17126 ZFS fixes.
17127
17128 * grub-core/fs/zfs/zfs.c (fzap_iterate): Fix handling of indexes
17129 sharing the same block. Iterate over correct number of indices.
17130 (dnode_get_path): Handle symlinks correctly.
17131
c0584900
VS
171322011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17133
17134 * grub-core/fs/jfs.c (grub_jfs_sblock): Fix offset to volname.
17135
67e2bd71
VS
171362011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17137
17138 Read label on HFS+.
17139
17140 * grub-core/fs/hfsplus.c (grub_hfsplus_cmp_catkey_id): New function.
17141 (grub_hfsplus_btree_search): Fix types.
17142 (grub_hfsplus_label): Implement.
17143
e9cc6b7b
VS
171442011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17145
17146 * grub-core/fs/ntfs.c (grub_ntfs_uuid): Fix a memory leak.
17147
19832ddb
VS
171482011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17149
17150 * grub-core/fs/fat.c (grub_fat_uuid): Make uppercase to match Linux.
17151
66b40850
VS
171522011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17153
17154 Fix symlink handling on iso9660.
17155
17156 * grub-core/fs/iso9660.c (grub_fshelp_node): Remove dir_off. Add symlink
17157 All users updated.
17158 (grub_iso9660_susp_iterate): Accept zero-size iterate.
17159 (grub_iso9660_read_symlink): Moved most of code ...
17160 (grub_iso9660_iterate_dir): ... here. Fill node->symlink.
17161
db821363
VS
171622011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17163
17164 * grub-core/loader/i386/bsd.c (grub_netbsd_add_boot_disk_and_wedge):
17165 Use union to avoid breaking strict-aliasing rules.
17166
e1211949
VS
171672011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17168
17169 Support multi-extent iso files.
17170
17171 * grub-core/fs/iso9660.c (grub_iso9660_data): Remove first_sector.
17172 Add node.
17173 (grub_fshelp_node): Revamp. All users updated.
17174 (FLAG_*): New enum.
17175 (read_node): New function.
17176 (grub_iso9660_susp_iterate): Use read_node. Receive a node as argument.
17177 All users updated.
17178 (grub_iso9660_mount): Don't attempt to read sua when there is none.
17179 (get_node_size): New function.
17180 (grub_iso9660_iterate_dir): Use read_node. Agglomerate multi-extent
17181 entries.
17182 Fix memory leak on . and ..
17183 (grub_iso9660_read): Use read_node.
17184 (grub_iso9660_close): Free node.
17185
d4888031
VS
171862011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17187
17188 Fix tar 4G limit and handle paths containing dot.
17189
17190 * grub-core/fs/cpio.c (grub_cpio_data): Use grub_off_t for offsets.
17191 (canonicalize): New function.
17192 (grub_cpio_find_file): Use canonicalize. Store offs in
17193 grub_disk_addr_t.
17194 (grub_cpio_dir): Use grub_disk_addr_t.
17195 (grub_cpio_open): Likewise.
17196
9f12e664
VS
171972011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17198
17199 Fix handling of uncompressed blocks on squashfs and break 4G limit.
17200
17201 * grub-core/fs/squash4.c (grub_squash_super): Add block_size. Remove
17202 unused flags.
17203 (grub_squash_inode): Add long_file and block_size.
17204 (grub_squash_cache_inode): New struct.
17205 (grub_squash_dirent): Make types into enum.
17206 (SQUASH_TYPE_LONG_REGULAR): New type.
17207 (grub_squash_frag_desc): Add field size.
17208 (SQUASH_BLOCK_FLAGS): New enum.
17209 (grub_squash_data): Use grub_squash_cache_inode.
17210 (grub_fshelp_node): Make ino_chunk 64-bit.
17211 (read_chunk): Minor argument change. All users updated.
17212 (squash_mount): Use correct le_to_cpu.
17213 (grub_squash_open): Handle LONG_REGULAR.
17214 (direct_read): New function.
17215 (grub_squash_read_data): Handle blocks correctly.
17216
9f326fba
VS
172172011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17218
17219 * grub-core/kern/disk.c (grub_disk_read_small): Fix memory leak.
17220
f4d9b64b
VS
172212011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17222
17223 * grub-core/fs/romfs.c (grub_romfs_open): Add missing return.
17224
5bbd28b8
VS
172252011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
17226
17227 Fix 2G limit on ZFS.
17228
17229 * grub-core/fs/zfs/zfs.c (zio_checksum_verify): Use more appropriate
17230 types.
17231 (uberblock_verify): Likewise.
17232 (dmu_read): Likewise.
17233 (grub_zfs_read): Likewise. Remove invalid cast.
17234
68c72069
VS
172352011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
17236
17237 * grub-core/fs/jfs.c (grub_jfs_blkno): Use more appropriate types.
17238 (grub_jfs_blkno): Fix incorrect shift.
17239 (grub_jfs_read_file): Use more appropriate types.
17240
6e536dc8
VS
172412011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
17242
17243 Support triple indirect on minix2 and minix3.
17244
17245 * grub-core/fs/minix.c (grub_minix_inode) [MODE_MINIX2 || MODE_MINIX3]:
17246 Declare triple_indir_zone.
17247 (grub_minix_get_file_block) [MODE_MINIX2 || MODE_MINIX3]: Handle triple
17248 indirect.
17249
e0864e7a
VS
172502011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
17251
17252 Minix FS fixes.
17253
17254 * grub-core/fs/minix.c (GRUB_MINIX_INODE_SIZE): Size is always 32-bit.
17255 (grub_minix_inode) [!MODE_MINIX2 && !MODE_MINIX3]: Make size 32-bit.
17256 Rename ctime to mtime. All users updated.
17257 (grub_minix_get_file_block): Fix types and double indirect computations.
17258
89481cab
VS
172592011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17260
17261 * grub-core/fs/fat.c (grub_fat_label) [MODE_EXFAT]: Set *label to 0
17262 if no label is found.
17263 (grub_fat_iterate_dir): Fix file size type.
17264 (grub_fat_iterate_dir): Likewise.
17265
f646e143
VS
172662011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17267
17268 * grub-core/lib/reed_solomon.c (gf_invert): Declare as const and
17269 save some space.
17270 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): Decrease.
17271 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
17272
534d769e
VS
172732011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17274
17275 * util/import_gcry.py: Automatically fix camellia.c and camellia.h.
17276
e084ba18
VS
172772011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17278
17279 * util/import_gcry.py: Accept space between # and include.
17280
3471ecdf
VS
172812011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17282
17283 * grub-core/lib/setjmp.S [__ia64__]: Include ./ia64/longjmp.S.
17284
124df5f6
VS
172852011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17286
17287 Fine grainely disable warnings on lexer. Remove Wno-error on it.
17288
17289 * grub-core/Makefile.core.def (normal): Remove -Wno-error.
17290 * grub-core/script/lexer.c: Declare yytext_ptr to avoid having
17291 yylex_strncpy.
17292 * grub-core/script/yylex.l: Add fine-grained #pragma.
17293
4defb8d5
VS
172942011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17295
17296 * grub-core/lib/posix_wrap/string.h (memcpy) [GRUB_UTIL]:
17297 New inline function.
17298 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (memcpy) [GRUB_UTIL]:
17299 Likewise.
17300 (memset) [GRUB_UTIL]: Likewise.
17301 (memcmp) [GRUB_UTIL]: Likewise.
17302
4e94ae65
VS
173032011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17304
17305 * include/grub/misc.h (grub_memcpy): Declare grub_memcpy with static
17306 inline function rather than a define.
17307
18c575e5
VS
173082011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17309
17310 * util/grub-setup.c: Add missing include.
17311
f8bc22a8
VS
173122011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17313
17314 * util/ieee1275/grub-ofpathname.c: Add missing include.
17315
3ce69fc9
VS
173162011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17317
17318 * grub-core/kern/i386/pc/startup.S (grub_exit): Add missing zeroing-out.
17319 * grub-core/lib/i386/reboot_trampoline.S (grub_reboot_start):
17320 Likewise.
17321
d1e293bb
VS
173222011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17323
17324 * grub-core/io/lzopio.c (test_header): Fix incorrect memcmp instead of
17325 grub_memcmp usage.
17326
7a5c54a4
VS
173272011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17328
17329 * util/grub-install.in: Add datarootdir as per automake manual
17330 suggestion.
17331 * util/grub-mknetdir.in: Likewise.
17332
173332011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
7bec1053
VS
17334
17335 * util/grub.d/10_hurd.in: Add datarootdir as per automake manual
17336 suggestion.
17337 * util/grub.d/10_kfreebsd.in: Likewise.
17338 * util/grub.d/10_linux.in: Likewise.
17339 * util/grub.d/10_netbsd.in: Likewise.
17340 * util/grub.d/10_windows.in: Likewise.
17341 * util/grub.d/20_linux_xen.in: Likewise.
17342
766f7d08
VS
173432011-10-20 Vladimir Serbinenko <phcoder@gmail.com>
17344
17345 Remove redundant grub_kernel_image_size.
17346
17347 * grub-core/kern/i386/coreboot/init.c (grub_machine_init): Use
17348 _edata and _start.
17349 * grub-core/kern/i386/coreboot/startup.S: Move multiboot header after
17350 the small code. It moves it only by few bytes but simplifies the code.
17351 * grub-core/kern/i386/pc/init.c (grub_machine_init): Use _edata and
17352 _start.
17353 * grub-core/kern/i386/pc/startup.S: Use _edata and _start.
17354 (grub_kernel_image_size): Removed.
17355 * grub-core/kern/i386/qemu/startup.S: Use _edata and _start.
17356 (grub_kernel_image_size): Removed.
17357 [APPLE_CC]: Remove apple compiler support. i386-qemu port can't be
17358 compiled with Apple toolchain.
17359 * grub-core/kern/sparc64/ieee1275/crt0.S: Remove leftover fields.
17360 * include/grub/i386/pc/kernel.h (grub_kernel_image_size): Removed.
17361 * include/grub/i386/qemu/kernel.h (grub_kernel_image_size): Removed.
17362 (grub_total_module_size): Likewise.
17363 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_KERNEL_IMAGE_SIZE):
17364 Removed.
17365 (GRUB_KERNEL_I386_PC_COMPRESSED_SIZE): Put it lower.
17366 (GRUB_KERNEL_I386_PC_INSTALL_DOS_PART): Likewise.
17367 (GRUB_KERNEL_I386_PC_INSTALL_BSD_PART): Likewise.
17368 (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY): Likewise.
17369 (GRUB_KERNEL_I386_QEMU_KERNEL_IMAGE_SIZE): Removed.
17370 (GRUB_KERNEL_SPARC64_IEEE1275_KERNEL_IMAGE_SIZE): Likewise.
17371 (GRUB_KERNEL_SPARC64_IEEE1275_COMPRESSED_SIZE): Likewise.
17372 * include/grub/sparc64/ieee1275/kernel.h (grub_kernel_image_size):
17373 Removed.
17374 (grub_total_module_size): Removed.
17375 * util/grub-mkimage.c (image_target_desc): Remove image_size.
17376 (image_targets): Likewise.
17377 Set .compressed_size to no field on sparc.
17378 (generate_image): Remove kernel_image_size handling.
17379
fcf1d672
SJ
173802011-10-19 Szymon Janc <szymon@janc.net.pl>
17381
17382 * grub-core/bus/usb/uhci.c (grub_uhci_setup_transfer): Fix possible
17383 NULL pointer dereference.
17384
de9c615e
VS
173852011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
17386
17387 Removed unused GRUB_BOOT_VERSION. Check for kernel version is better
17388 done with a dedicated section.
17389
17390 * grub-core/boot/sparc64/ieee1275/boot.S: Remove GRUB_BOOT_VERSION.
17391 Ensure the correct position of boot_path.
17392 * grub-core/kern/i386/efi/startup.S: Remove GRUB_BOOT_VERSION.
17393 * grub-core/kern/i386/pc/startup.S: Likewise. Ensure correct position of
17394 other fields.
17395 * grub-core/kern/x86_64/efi/startup.S: Remove GRUB_BOOT_VERSION.
17396 * include/grub/boot.h: Removed. All references removed.
17397 * include/grub/sparc64/ieee1275/boot.h (GRUB_BOOT_MACHINE_VER_MAJ):
17398 Removed.
17399 (GRUB_BOOT_MACHINE_BOOT_DEVPATH): Make it lower.
17400
e55599dc
VS
174012011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
17402
17403 * util/grub-install.in: Declare IEEE1275 as able to find out the disk
17404 name.
17405
36dd20ad
VS
174062011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
17407
17408 * grub-core/kern/main.c (grub_set_prefix_and_root): Init prefix.
17409
f8f72eb8
VS
174102011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
17411
17412 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname):
17413 Don't add the bogus brackets.
17414
a374751b
VS
174152011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
17416
17417 ExFAT support.
17418
17419 * Makefile.util.def (libgrubmods.a): Add grub-core/fs/exfat.c.
17420 * grub-core/Makefile.core.def (exfat): New module.
17421 * grub-core/fs/exfat.c: New file.
17422 * grub-core/fs/fat.c (GRUB_FAT_DIR_ENTRY_SIZE): Removed.
17423 (GRUB_FAT_ATTR_*): Make into an enum.
17424 (GRUB_FAT_ATTR_LONG_NAME) [MODE_EXFAT]: Removed.
17425 (GRUB_FAT_ATTR_VALID) [MODE_EXFAT]: Remove GRUB_FAT_ATTR_VOLUME_ID.
17426 (GRUB_FAT_ATTR_VOLUME_ID) [MODE_EXFAT]: Removed.
17427 (GRUB_FAT_MAXFILE): Removed.
17428 (grub_exfat_bpb) [MODE_EXFAT]: New struct.
17429 (grub_current_fat_bpb_t): New type.
17430 (grub_fat_dir_entry) [MODE_EXFAT]: New struct.
17431 (grub_fat_dir_node) [MODE_EXFAT]: New struct.
17432 (grub_fat_dir_node_t): New type.
17433 (grub_fat_data) [MODE_EXFAT]: Remove root_sector and num_root_sectors.
17434 (fat_log2) [MODE_EXFAT]: Removed.
17435 (grub_fat_mount): Use grub_current_fat_bpb_t. Add some sanity checks.
17436 (grub_fat_mount) [MODE_EXFAT]: Handle ExFAT.
17437 (grub_fat_iterate_dir) [MODE_EXFAT]: New function.
17438 (grub_fat_find_dir) [MODE_EXFAT]: Handle ExFAT.
17439 (grub_fat_label) [MODE_EXFAT]: New function.
17440 (grub_fat_fs) [MODE_EXFAT]: Set name to "exfat" and
17441 reserved_first_sector to 0.
17442
544c2487
VS
174432011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
17444
17445 Move grub_reboot out of the kernel.
17446
17447 * grub-core/Makefile.core.def (reboot): Add platform-specific files.
17448 * grub-core/kern/efi/efi.c (grub_reboot): Moved to ...
17449 * grub-core/lib/efi/reboot.c: ... here.
17450 * grub-core/kern/i386/efi/startup.S: Remove including of realmode.S.
17451 * grub-core/kern/i386/ieee1275/startup.S: Likewise.
17452 * grub-core/kern/i386/pc/startup.S (grub_exit): Inline cold_reboot.
17453 * grub-core/kern/i386/realmode.S (grub_reboot): Moved to...
17454 * grub-core/lib/i386/reboot_trampoline.S: ... here.
17455 * grub-core/kern/ieee1275/openfw.c (grub_reboot): Moved to...
17456 * grub-core/lib/ieee1275/reboot.c: ... here.
17457 * grub-core/kern/mips/arc/init.c (grub_reboot): Moved to...
17458 * grub-core/lib/mips/arc/reboot.c: ... here.
17459 * grub-core/kern/mips/loongson/init.c (grub_reboot): Moved to...
17460 * grub-core/lib/mips/loongson/reboot.c: ...here.
17461 * grub-core/kern/mips/qemu_mips/init.c (grub_reboot): Moved to...
17462 * grub-core/lib/mips/qemu_mips/reboot.c: ... here.
17463 * include/grub/emu/misc.h (grub_reboot): New function declaration.
17464 * include/grub/i386/reboot.h: New file.
17465 * include/grub/mips/loongson/ec.h: Fix includes.
17466 * include/grub/mips/qemu_mips/kernel.h (grub_reboot): Removed.
17467 * include/grub/misc.h (grub_reboot): Don't mark as kernel function.
17468 * grub-core/lib/i386/reboot.c: New file.
17469
a97501d2
VS
174702011-10-18 Vladimir Serbinenko <phcoder@gmail.com>
17471
17472 Make grub_prefix into module to fix the arbitrary limit and save
17473 some space.
17474
17475 * grub-core/kern/emu/main.c (grub_prefix): Removed.
17476 * grub-core/kern/i386/coreboot/startup.S (grub_prefix): Likewise.
17477 * grub-core/kern/i386/efi/startup.S (grub_prefix): Likewise.
17478 * grub-core/kern/i386/ieee1275/startup.S (grub_prefix): Likewise.
17479 * grub-core/kern/i386/pc/startup.S (grub_prefix): Likewise.
17480 * grub-core/kern/i386/qemu/startup.S (grub_prefix): Likewise.
17481 * grub-core/kern/ia64/efi/startup.S (grub_prefix): Likewise.
17482 * grub-core/kern/mips/startup.S (grub_prefix): Likewise.
17483 * grub-core/kern/powerpc/ieee1275/startup.S (grub_prefix): Likewise.
17484 * grub-core/kern/sparc64/ieee1275/crt0.S (grub_prefix): Likewise.
17485 * grub-core/kern/x86_64/efi/startup.S (grub_prefix): Likewise.
17486 * include/grub/ia64/efi/kernel.h: Removed.
17487 * include/grub/kernel.h: New module type OBJ_TYPE_PREFIX.
17488 (grub_prefix): Removed.
17489 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_PREFIX): Removed.
17490 (GRUB_KERNEL_I386_PC_PREFIX_END): Likewise.
17491 (GRUB_KERNEL_I386_QEMU_PREFIX): Likewise.
17492 (GRUB_KERNEL_I386_QEMU_PREFIX_END): Likewise.
17493 (GRUB_KERNEL_SPARC64_IEEE1275_PREFIX): Likewise.
17494 (GRUB_KERNEL_SPARC64_IEEE1275_PREFIX_END): Likewise.
17495 (GRUB_KERNEL_POWERPC_IEEE1275_PREFIX): Likewise.
17496 (GRUB_KERNEL_POWERPC_IEEE1275_PREFIX_END): Likewise.
17497 (GRUB_KERNEL_MIPS_LOONGSON_PREFIX): Likewise.
17498 (GRUB_KERNEL_MIPS_LOONGSON_PREFIX_END): Likewise.
17499 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX): Likewise.
17500 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX_END): Likewise.
17501 (GRUB_KERNEL_MIPS_ARC_PREFIX): Likewise.
17502 (GRUB_KERNEL_MIPS_ARC_PREFIX_END): Likewise.
17503 (GRUB_KERNEL_I386_EFI_PREFIX): Likewise.
17504 (GRUB_KERNEL_I386_EFI_PREFIX_END): Likewise.
17505 (GRUB_KERNEL_IA64_EFI_PREFIX): Likewise.
17506 (GRUB_KERNEL_IA64_EFI_PREFIX_END): Likewise.
17507 (GRUB_KERNEL_X86_64_EFI_PREFIX): Likewise.
17508 (GRUB_KERNEL_X86_64_EFI_PREFIX_END): Likewise.
17509 (GRUB_KERNEL_I386_COREBOOT_PREFIX): Likewise.
17510 (GRUB_KERNEL_I386_COREBOOT_PREFIX_END): Likewise.
17511 (GRUB_KERNEL_I386_MULTIBOOT_PREFIX): Likewise.
17512 (GRUB_KERNEL_I386_MULTIBOOT_PREFIX_END): Likewise.
17513 (GRUB_KERNEL_I386_IEEE1275_PREFIX): Likewise.
17514 (GRUB_KERNEL_I386_IEEE1275_PREFIX_END): Likewise.
17515 (GRUB_KERNEL_MACHINE_PREFIX): Likewise.
17516 (GRUB_KERNEL_MACHINE_PREFIX_END): Likewise.
17517 * grub-core/kern/main.c (grub_set_prefix_and_root): Retrieve grub_prefix
17518 from module.
17519 * util/grub-mkimage.c (image_target_desc): Removed prefix and
17520 prefix_end.
17521 (image_targets): Likewise.
17522 (generate_image): Put prefix as a module.
17523
39705fad
VS
175242011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
17525
17526 Replace grub_module_iterate with FOR_MODULES.
17527
17528 * grub-core/disk/memdisk.c (GRUB_MOD_INIT): Switched to new interface.
17529 * grub-core/kern/efi/efi.c (grub_arch_modules_addr): Renamed to...
17530 (grub_efi_modules_addr): ...this.
17531 * grub-core/kern/efi/init.c (grub_modbase): New variable.
17532 (grub_efi_init): Set grub_modbase.
17533 * grub-core/kern/emu/main.c (grub_arch_modules_addr): Removed.
17534 (grub_modbase): New variable.
17535 * grub-core/kern/i386/coreboot/init.c (grub_arch_modules_addr): Removed.
17536 (grub_modbase): New variable.
17537 (grub_machine_init): Set grub_modbase.
17538 * grub-core/kern/i386/pc/init.c (grub_arch_modules_addr): Removed.
17539 (grub_modbase): New variable.
17540 (grub_machine_init): Set grub_modbase.
17541 * grub-core/kern/ieee1275/init.c (grub_arch_modules_addr): Removed.
17542 (grub_modbase): New variable.
17543 (grub_machine_init): Set grub_modbase.
17544 * grub-core/kern/main.c (grub_module_iterate): Remove.
17545 (grub_modules_get_end): Use grub_modbase.
17546 (grub_load_modules): Use FOR_MODULES.
17547 (grub_load_config): Likewise.
17548 * grub-core/kern/mips/arc/init.c (grub_arch_modules_addr): Removed.
17549 (grub_modbase): New variable.
17550 (grub_machine_init): Set grub_modbase.
17551 * grub-core/kern/mips/loongson/init.c (grub_arch_modules_addr): Removed.
17552 (grub_modbase): New variable.
17553 (grub_machine_init): Set grub_modbase.
17554 * grub-core/kern/mips/qemu_mips/init.c (grub_arch_modules_addr):
17555 Removed.
17556 (grub_modbase): New variable.
17557 (grub_machine_init): Set grub_modbase.
17558 * include/grub/efi/efi.h (grub_efi_modules_addr): New declaration.
17559 * include/grub/kernel.h (grub_arch_modules_addr): Removed.
17560 (grub_module_iterate): Likewise.
17561 (grub_modbase): New variable declaration.
17562 (FOR_MODULES): New macro.
17563
2afb7f6c
VS
175642011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
17565
17566 * configure.ac: Check for __ctzdi2 and __ctzsi2.
17567 * include/grub/libgcc.h: Include __ctzdi2 and __ctzsi2 if present.
17568
366e34fa
VS
175692011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
17570
17571 Fix few obvious type discrepancies.
17572
17573 * grub-core/fs/affs.c (grub_affs_read_file): Use grub_off_t for offset.
17574 * grub-core/fs/afs.c (grub_afs_read_file): Likewise.
17575 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Remove leftover
17576 variable.
17577 * grub-core/fs/hfs.c (grub_hfs_read_file): Use grub_off_t for offset
17578 and connected types.
17579 * grub-core/fs/nilfs2.c (grub_nilfs2_read_file): Use grub_off_t for
17580 offset.
17581 (grub_nilfs2_iterate_dir): Use grub_off_t for fpos.
17582 * grub-core/fs/sfs.c (grub_sfs_read_file): Use grub_off_t for offset.
17583 * grub-core/fs/ufs.c (grub_ufs_read_file): Use grub_off_t for offset
17584 and connected types.
17585
177b960e
VS
175862011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
17587
17588 Fix python 3.x incompatibilities.
17589
17590 * gentpl.py: Put brackets around print strings.
17591 * util/import_gcry.py: Open explicitly as utf-8.
17592 Use in instead of has_key.
17593
3b619ae1
VS
175942011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
17595
17596 * grub-core/fs/xfs.c (grub_xfs_inode): New field fork_offset.
17597 (GRUB_XFS_INO_AGBITS): Make into inline function.
17598 (GRUB_XFS_INO_INOINAG): Likewise.
17599 (GRUB_XFS_INO_AG): Likewise.
17600 (GRUB_XFS_FSB_TO_BLOCK): Likewise.
17601 (GRUB_XFS_EXTENT_OFFSET): Likewise.
17602 (GRUB_XFS_EXTENT_BLOCK): Likewise.
17603 (GRUB_XFS_EXTENT_SIZE): Likewise.
17604 (GRUB_XFS_ROUND_TO_DIRENT): Likewise.
17605 (GRUB_XFS_NEXT_DIRENT): Likewise.
17606 (grub_xfs_read_block): Rewrite the btree parsing. Fixes invalid BMAP.
17607 (grub_xfs_read_file): Fix offset type.
17608
8bcebcb8
RM
176092011-10-15 Robert Millan <rmh@gnu.org>
17610
17611 * util/getroot.c (grub_util_get_grub_dev): Fix OS selection #ifdefs.
17612
0017e5ef
RM
176132011-10-15 Robert Millan <rmh@gnu.org>
17614
17615 Fix build problem on FreeBSD and GNU/kFreeBSD.
17616
17617 * util/getroot.c [__FreeBSD_kernel__]: Include `<sys/mount.h>'.
17618
d8919552
VS
176192011-10-14 Vladimir Serbinenko <phcoder@gmail.com>
17620
17621 Fix overflow with >2GiB file on HFS+. >4GiB wasn't tested.
17622
17623 * grub-core/fs/hfsplus.c (grub_hfsplus_btree): Use more appropriate
17624 types.
17625 (grub_hfsplus_btree_recoffset): Likewise.
17626 (grub_hfsplus_btree_recptr): Likewise.
17627 (grub_hfsplus_find_block): Likewise.
17628 (grub_hfsplus_btree_search): Likewise.
17629 (grub_hfsplus_read_block): Likewise.
17630 (grub_hfsplus_read_file): Likewise.
17631 (grub_hfsplus_mount): Likewise.
17632 (grub_hfsplus_btree_iterate_node): Likewise.
17633 (grub_hfsplus_btree_search): Likewise.
17634 (grub_hfsplus_iterate_dir): Likewise.
17635 (grub_hfsplus_read): A small code simplification.
17636
c81296b6
VS
176372011-10-14 Vladimir Serbinenko <phcoder@gmail.com>
17638
17639 * grub-core/kern/emu/hostdisk.c
17640 (convert_system_partition_to_system_disk): Don't assume that children
17641 of mapper nodes are mapper nodes.
17642
0eb8ffb1
VS
176432011-10-14 Vladimir Serbinenko <phcoder@gmail.com>
17644
17645 * grub-core/lib/posix_wrap/ctype.h (isxdigit): Use grub_isxdigit.
17646 * include/grub/misc.h (grub_isxdigit): New function.
17647 * grub-core/video/colors.c (my_isxdigit): Removed. All users
17648 switched to grub_isxdigit.
17649 * grub-core/term/serial.c (grub_serial_find): Fix in case of port
17650 number starting with a letter.
17651
a98f4a08
RM
176522011-10-09 Robert Millan <rmh@gnu.org>
17653
17654 LVM support for FreeBSD and GNU/kFreeBSD.
17655
17656 * util/lvm.c (grub_util_lvm_isvolume): Enable on FreeBSD and
17657 GNU/kFreeBSD.
17658 (LVM_DEV_MAPPER_STRING): Move from here ...
17659 * include/grub/util/lvm.h (LVM_DEV_MAPPER_STRING): ... to here.
17660 * util/getroot.c: Include `<grub/util/lvm.h>'.
17661 (grub_util_get_dev_abstraction): Enable
17662 grub_util_biosdisk_is_present() on FreeBSD and GNU/kFreeBSD.
17663 Check for LVM abstraction on FreeBSD and GNU/kFreeBSD.
17664 (grub_util_get_grub_dev): Replace "/dev/mapper/" with
17665 `LVM_DEV_MAPPER_STRING'. Enable LVM and mdRAID only on platforms that
17666 support it.
17667 * util/grub-setup.c (main): Check for LVM also on FreeBSD and
17668 GNU/kFreeBSD.
17669 * util/grub.d/10_kfreebsd.in: Load `geom_linux_lvm' kernel module
17670 when LVM abstraction is required for ${GRUB_DEVICE}.
17671
050e8e90
SJ
176722011-10-06 Szymon Janc <szymon@janc.net.pl>
17673
17674 Add support for LZO compression in GRUB:
17675 - import of minilzo library,
17676 - LZO decompression for btrfs,
17677 - lzop files decompression.
17678
17679 * grub-core/io/lzopio.c: New file.
17680 * grub-core/lib/adler32.c: Likewise.
17681 * grub-core/lib/minilzo/lzoconf.h: Likewise.
17682 * grub-core/lib/minilzo/lzodefs.h: Likewise.
17683 * grub-core/lib/minilzo/minilzo.c: Likewise.
17684 * grub-core/lib/minilzo/minilzo.h: Likewise.
17685 * Makefile.util.def (libgrubmods.a): Add grub-core/io/lzopio.c,
17686 grub-core/lib/adler32.c, grub-core/io/lzopio.c,
17687 grub-core/lib/minilzo/minilzo.c to common.
17688 * Makefile.util.def (libgrubmods.a): Add flags required by minilzo to
17689 cflags in cppflags.
17690 * grub-core/Makefile.core.def (btrfs): Likewise.
17691 * grub-core/Makefile.core.def (lzopio): New module.
17692 (adler32): Likewise.
17693 * grub-core/fs/btrfs.c: Include minilzo.h.
17694 (GRUB_BTRFS_COMPRESSION_LZO): New define.
17695 (GRUB_BTRFS_LZO_BLOCK_SIZE): Likewise.
17696 (GRUB_BTRFS_LZO_BLOCK_MAX_CSIZE): Likewise.
17697 (grub_btrfs_lzo_decompress): New function.
17698 (grub_btrfs_extent_read): Add support for LZO compression type.
17699 * include/grub/types.h (GRUB_UCHAR_MAX): New define.
17700 (GRUB_USHRT_MAX): Likewise.
17701 (GRUB_UINT_MAX): Likewise.
17702 * grub-core/lib/posix_wrap/limits.h (USHRT_MAX): Likewise.
17703 (UINT_MAX): Likewise.
17704 (CHAR_BIT): Likewise.
17705 * grub-core/lib/posix_wrap/sys/types.h (ULONG_MAX): Moved to
17706 grub-core/lib/posix_wrap/limits.h
17707 (UCHAR_MAX): Likewise.
17708 * include/grub/file.h (grub_file_filter_id): New compression filter
17709 GRUB_FILE_FILTER_LZOPIO.
17710 * include/grub/file.h (grub_file_filter_id): Set
17711 GRUB_FILE_FILTER_LZOPIO as GRUB_FILE_FILTER_COMPRESSION_LAST.
17712 * include/grub/types.h (grub_get_unaligned16): New function.
17713 (grub_get_unaligned32): Likewise.
17714 (grub_get_unaligned64): Likewise.
17715 * util/import_gcry.py (cryptolist): Add adler32.
17716
0eb8ffb1
VS
177172011-10-05 Vladimir Serbinenko <phcoder@gmail.com>
17718
17719 * grub-core/Makefile.core.def: Eliminate rarely used emu_condition. This
17720 in perspective decreases the complexity of build system and fixes
17721 compilation right now.
17722
ce79cc99 177232011-10-01 Ales Nesrsta <starous@volny.cz>
17724
17725 * grub-core/bus/usb/uhci.c: Changes made by Rock Cui - thanks!
17726 (fixed problem related to using UHCI with coreboot).
17727
8667a314
BC
177282011-08-25 BVK Chaitanya <bvk.groups@gmail.com>
17729
17730 * gentpl.py: Use Autogen macros so that the output template file
17731 (Makefile.tpl) size is reduced.
17732
fc5efcc0
MK
177332011-09-29 Mads Kiilerich <mads@kiilerich.com>
17734
17735 * grub-core/Makefile.core.def (kernel): Add kern/i386/int.S to
17736 extra_dist.
17737
d1ab689d
ML
177382011-09-29 Mario Limonciello <mario_limonciello@dell.com>
17739
17740 * util/misc.c (grub_util_get_disk_size) [__MINGW32__]: Strip trailing
17741 slashes on PHYSICALDRIVE%d paths when making Windows CreateFile calls.
17742
c05de032
ML
177432011-09-29 Mario Limonciello <mario_limonciello@dell.com>
17744
17745 * grub-core/kern/emu/misc.c (canonicalize_file_name) [__MINGW32__]: Use
17746 _fullpath.
17747
cca7ccd8
ML
177482011-09-29 Mario Limonciello <mario_limonciello@dell.com>
17749
17750 Remove extra declaration of sleep for mingw32.
17751
17752 * util/misc.c (sleep) [__MINGW32__]: Removed.
17753 * include/grub/util/misc.h (sleep) [__MINGW32__]: Likewise.
17754
e0b0dc83
GS
177552011-09-28 Grégoire Sutre <gregoire.sutre@gmail.com>
17756
17757 * include/grub/bsdlabel.h (grub_partition_bsd_disk_label): Add fields
17758 type and packname.
17759 * include/grub/i386/netbsd_bootinfo.h (NETBSD_BTINFO_BOOTDISK):
17760 Resurrected.
17761 (NETBSD_BTINFO_BOOTWEDGE): New definition.
17762 (grub_netbsd_btinfo_bootwedge): New struct.
17763 * grub-core/loader/i386/bsd.c (grub_netbsd_add_boot_disk_and_wedge):
17764 New function.
17765 (grub_cmd_netbsd): Call grub_netbsd_add_boot_disk_and_wedge.
17766
91a1a164
TH
177672011-09-28 Thomas Haller <thomas.haller@fen-net.de>
17768
17769 * grub-core/loader/multiboot_elfxx.c (Elf_Shdr): Set according to
17770 loader.
17771
2ded951e
AB
177722011-09-28 Andreas Born <futur.andy@googlemail.com>
17773
17774 Fix incorrect identifiers in bash-completion.
17775
17776 * util/bash-completion.d/grub-completion.bash.in
17777 (_grub_mkpasswd-pbkdf2): Rename to ...
17778 (_grub_mkpasswd_pbkdf2): ... this. All users updated.
17779 (_grub_script-check): Rename to ...
17780 (_grub_script_check): ... this. All users updated.
17781
69915030
VS
177822011-09-28 Vladimir Serbinenko <phcoder@gmail.com>
17783
17784 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy):
17785 Return 0 if disk isn't biosdisk.
17786
20fd15f9
GS
177872011-09-17 Grégoire Sutre <gregoire.sutre@gmail.com>
17788
17789 * Makefile.util.def (grub-mkrelpath): Add LIBUTIL for getrawpartition(3)
17790 on NetBSD.
17791 * Makefile.util.def (grub-fstest): Likewise.
17792
1a7d7db9
GS
177932011-09-17 Grégoire Sutre <gregoire.sutre@gmail.com>
17794
17795 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors) [__NetBSD__]:
17796 Get sector size from disk label.
17797
2221ab6c
CW
177982011-09-05 Colin Watson <cjwatson@ubuntu.com>
17799
17800 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Return 1 for
17801 */README* as well as README*.
17802 Reported by: Axel Beckert.
17803
ca51c4a0
VS
178042011-08-23 Vladimir Serbinenko <phcoder@gmail.com>
17805
17806 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Handle the
17807 case of less than 256 MiB of RAM.
17808
ab80f326
VS
178092011-08-23 Vladimir Serbinenko <phcoder@gmail.com>
17810
17811 * grub-core/commands/wildcard.c (make_regex): Handle @.
17812
4155e697
VS
178132011-08-23 Vladimir Serbinenko <phcoder@gmail.com>
17814
17815 * util/grub-install.in: Move cryptodisk logic to appropriate place.
17816
ab178c08
SJ
178172011-08-21 Szymon Janc <szymon@janc.net.pl>
17818
17819 * acinclude.m4: Use AC_LANG_PROGRAM macro to generate source code for
17820 AC_LANG_CONFTEST macros.
17821
7dc3c686
SJ
178222011-08-20 Szymon Janc <szymon@janc.net.pl>
17823
17824 Add grub-fstest option to uncompress data for commands.
17825
17826 * util/grub-fstest.c (uncompress): New var.
17827 (options): New option -u.
17828
fe8d4a7b
SJ
178292011-08-20 Szymon Janc <szymon@janc.net.pl>
17830
17831 * grub-core/loader/i386/linux.c (grub_linux_setup_video): Add
17832 GRUB_VIDEO_DRIVER_RADEON_FULOONG2E to switch case statement.
17833
a5219af1
SJ
178342011-08-20 Szymon Janc <szymon@janc.net.pl>
17835
17836 * grub-core/io/gzio.c (grub_gzio_open): Always return original io if
17837 file type was not recognized correctly (not gzip or corrupted).
17838
f87abff5
VS
178392011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
17840
17841 * grub-core/kern/mips/loongson/init.c (grub_reboot): Reboot Fuloong.
17842 * include/grub/cs5536.h (GRUB_CS5536_MSR_DIVIL_RESET): New definition.
17843
d94497ea
VS
178442011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
17845
17846 * grub-core/Makefile.core.def (kernel): Add video/radeon_fuloong2e.c on
17847 loongson.
17848 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Init
17849 video_radeon_fuloong2e.
17850 * grub-core/video/radeon_fuloong2e.c: New file.
17851 * include/grub/video.h (grub_video_id_t): Add new ID
17852 GRUB_VIDEO_DRIVER_RADEON_FULOONG2E.
17853
0d1fd011
VS
178542011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
17855
17856 * include/grub/mips/loongson.h (GRUB_CPU_LOONGSON_COP0_PRID): New
17857 define.
17858 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Check
17859 that PRID matches the detected subplatform and reset the subplatform
17860 if it doesn't.
17861
84beb0ee
VS
178622011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
17863
17864 * grub-core/kern/misc.c (grub_vprintf): Fix a bug on malloc failure.
17865
1227c133
VS
178662011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
17867
17868 Fix PCI iterating on functions >= 4.
17869
17870 * grub-core/bus/pci.c (grub_pci_iterate): Remove useless ghost skipping.
17871 * include/grub/mips/loongson/pci.h (GRUB_LOONGSON_OHCI_GHOST_FUNCTION):
17872 Removed.
17873 (GRUB_LOONGSON_EHCI_GHOST_FUNCTION): Likewise.
17874 (grub_pci_read): Fix bitmask.
17875 (grub_pci_read_word): Likewise.
17876 (grub_pci_read_byte): Likewise.
17877 (grub_pci_write): Likewise.
17878 (grub_pci_write_word): Likewise.
17879 (grub_pci_write_byte): Likewise.
17880
9594c689
VS
178812011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
17882
17883 * configure.ac: Don't impose march=loongson2f on loongson platform. (It
17884 can still be specified in TARGET_CFLAGS)
17885
14a2562c
VS
178862011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
17887
17888 Rename Fuloong into Fuloong 2F. Add new ID for Fuloong2E.
17889
17890 * grub-core/Makefile.core.def (fwstart_fuloong): Rename fwstart_fuloong
17891 into fwstart_fuloong2f. Use boot/mips/loongson/fuloong2f.S.
17892 * grub-core/boot/mips/loongson/fuloong.S: Rename to ...
17893 * grub-core/boot/mips/loongson/fuloong2f.S: ... this.
17894 (FULOONG): Rename to ...
17895 (FULOONG2F): ... this. All users updated.
17896 * grub-core/boot/mips/startup_raw.S (machtype_fuloong_str): Rename to
17897 (machtype_fuloong2f_str): ... this.
17898 (machtype_fuloong2e_str): New string.
17899 Check for machtype_fuloong2e_str.
17900 * grub-core/loader/mips/linux.c (loongson_machtypes)
17901 [GRUB_MACHINE_MIPS_LOONGSON]: Add GRUB_ARCH_MACHINE_FULOONG2E.
17902 * grub-core/term/serial.c (loongson_defserial)
17903 [GRUB_MACHINE_MIPS_LOONGSON]: New array.
17904 (grub_serial_register) [GRUB_MACHINE_MIPS_LOONGSON]: Use
17905 loongson_defserial.
17906 * include/grub/mips/loongson/kernel.h (GRUB_ARCH_MACHINE_FULOONG):
17907 Rename to ...
17908 (GRUB_ARCH_MACHINE_FULOONG2F): ... this.
17909 (GRUB_ARCH_MACHINE_FULOONG2E): New const.
17910 * util/grub-mkimage.c (image_target_desc): Rename IMAGE_FULOONG_FLASH
17911 to IMAGE_FULOONG2F_FLASH. All users updated.
17912 (image_targets): Rename images.
17913 * util/grub-mkstandalone.in: Accept fuloong2f and fuloong2e.
17914
b526cbb6
SJ
179152011-08-19 Szymon Janc <szymon@janc.net.pl>
17916
17917 Make enable of disk cache statistics code configurable.
17918
17919 * configure.ac: --enable-cache-stats added.
17920 * config.h.in (DISK_CACHE_STATS): New define.
17921 * grub-core/Makefile.core.def (cacheinfo): New command.
17922 * include/grub/disk.h(grub_disk_cache_get_performance): New function.
17923 * grub-core/commands/cacheinfo.c: New file.
17924 * grub-core/commands/minicmd.c (grub_rescue_cmd_info): Updated and
17925 moved to cacheinfo.c.
17926 * grub-core/kern/disk.c: Use DISK_CACHE_STATS to disable disk cache
17927 debug code.
17928 * include/grub/disk.h: Likewise.
17929
fb739ccd
SJ
179302011-08-19 Szymon Janc <szymon@janc.net.pl>
17931
17932 * Makefile.am (AUTOMAKE_OPTIONS): = Added -Wno-portability flag.
17933 * grub-core/Makefile.am: Likewise.
17934
2bba8cfd
VS
179352011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
17936
17937 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_iterate): Skip with
17938 non-zero pull.
17939
43526629
VS
179402011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
17941
17942 * grub-core/fs/jfs.c (grub_jfs_read_file): New parameter ino.
17943 All users updated.
17944 (grub_jfs_lookup_symlink): Use correct starting inode.
17945
5c144cc8
VS
179462011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
17947
17948 * util/grub-setup.c (main): Add missing gcry initialisation.
17949
b1257f65
VS
179502011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
17951
17952 Don't accept text modes on EFI when booting Linux.
17953
17954 * grub-core/loader/i386/linux.c (ACCEPTS_PURE_TEXT): New define.
17955 (grub_linux_boot) [!ACCEPTS_PURE_TEXT]: Restrict to graphics modes.
17956
828bc390
ML
179572011-08-15 Mario Limonciello <mario_limonciello@dell.com>
179582011-08-15 Colin Watson <cjwatson@ubuntu.com>
17959
17960 * util/grub-probe.c (probe): Canonicalise the path argument, fixing
17961 use of "/path/.." as in grub-install for EFI as well as handling
17962 symlinks correctly.
17963 Fixes Debian bug #637768.
17964
5f60ccac
CW
179652011-08-15 Colin Watson <cjwatson@ubuntu.com>
17966
17967 * util/grub-probe.c: Remove duplicate #include.
17968
6dc212f9
RM
179692011-08-10 Robert Millan <rmh@gnu.org>
17970
17971 Detect LSI MegaRAID SAS (`mfi') devices on GNU/kFreeBSD.
17972
17973 * util/deviceiter.c [__FreeBSD_kernel__] (get_mfi_disk_name): New
17974 function.
17975 [__FreeBSD_kernel__] (grub_util_iterate_devices): Scan for mfi
17976 (/dev/mfid[0-9]+) devices using get_mfi_disk_name().
17977
66816d85
RM
179782011-08-03 Robert Millan <rmh@gnu.org>
17979
17980 * include/grub/zfs/zap_leaf.h (typedef union zap_leaf_chunk): Mark
17981 la_array as packed.
17982 Reported by: Zachary Bedell
17983
20168fca
CW
179842011-07-26 Colin Watson <cjwatson@ubuntu.com>
17985
17986 * configure.ac: The Loongson port requires grub-mkfont due to its
17987 use of -DUSE_ASCII_FAILBACK. Raise an error if it is not going to
17988 be built.
17989
303b6246
CW
179902011-07-26 Colin Watson <cjwatson@ubuntu.com>
17991
17992 * util/grub-install.in: Don't source grub-mkconfig_lib until after
17993 processing arguments (otherwise help2man fails when GRUB has not yet
17994 been installed).
17995
6795300e
VS
179962011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
17997
41aa28ea
VS
17998 New script grub-mkstandalone.
17999
18000 * Makefile.util.def (grub-mkstandalone): New script.
18001 * docs/man/grub-mkstandalone.h2m: New file.
18002 * util/grub-mkstandalone.in: Likewise.
18003
180042011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
18005
18006 Support ATA disks with 4K sectors.
6795300e
VS
18007
18008 * include/grub/ata.h (grub_ata): New member log_sector_size.
18009 * grub-core/disk/ata.c (grub_ata_dumpinfo): Show sector size.
18010 (grub_ata_identify): Read sector size.
18011 (grub_ata_readwrite): Use log_sector_size rather than hardcoded value.
18012
92227597
VS
180132011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
18014
18015 * util/grub-install.in: Don't use uhci outside of x86.
18016
c77069f5
VS
180172011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
18018
18019 * util/grub-mkrescue.in: Add missing quotes.
18020
180212011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
b70e4cb0
VS
18022
18023 * grub-core/normal/menu.c (grub_menu_execute_entry): Fix NULL
18024 dereference.
18025
583168a2
VS
180262011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
18027
18028 * grub-core/disk/pata.c (grub_pata_readwrite): Add missing wait.
18029
6be1c01f
VS
180302011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
18031
18032 * include/grub/video.h: add missing EXPORT_FUND on
18033 grub_video_edid_checksum and grub_video_edid_preferred_mode.
18034
a1167439
VS
180352011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
18036
18037 * include/grub/mips/kernel.h: Fix define conflict.
18038
bf66054f
VS
180392011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
18040
18041 * grub-core/kern/mips/cache_flush.S [GRUB_MACHINE_MIPS_LOONGSON]: Flush
18042 all four ways.
18043
8fc4fa45
CW
180442011-07-21 Colin Watson <cjwatson@ubuntu.com>
18045
18046 Preferred resolution detection for VBE.
18047
18048 * grub-core/video/video.c (grub_video_edid_checksum): New function.
18049 (grub_video_edid_preferred_mode): Likewise. Try EDID followed by
18050 the Flat Panel extension, in line with the X.org VESA driver.
18051 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_flat_panel_info):
18052 New function.
18053 (grub_vbe_bios_get_ddc_capabilities): Likewise.
18054 (grub_vbe_bios_read_edid): Likewise.
18055 (grub_vbe_get_preferred_mode): Likewise.
18056 (grub_video_vbe_setup): When the mode is "auto", try to get the
18057 preferred mode from VBE, and use the largest mode that is no larger
18058 than the preferred mode (some BIOSes expose a preferred mode that is
18059 not in their mode list!). If this fails, fall back to 640x480 as a
18060 safe conservative choice.
18061 (grub_video_vbe_get_edid): New function.
18062 (grub_video_vbe_adapter): Add get_edid.
18063 * include/grub/video.h (struct grub_vbe_edid_info): New structure.
18064 (struct grub_video_adapter): Add get_edid.
18065 (grub_video_edid_checksum): Add prototype.
18066 (grub_video_edid_preferred_mode): Likewise.
18067 * include/grub/i386/pc/vbe.h (struct grub_vbe_flat_panel_info): New
18068 structure.
18069
18070 * grub-core/commands/videoinfo.c (print_edid): New function.
18071 (grub_cmd_videoinfo): Print EDID if available.
18072
18073 * util/grub.d/00_header.in (GRUB_GFXMODE): Default to "auto". This
18074 is more appropriate on a wider range of platforms than 640x480.
18075 * docs/grub.texi (Simple configuration): Update GRUB_GFXMODE
18076 documentation.
18077
ca5572a9
VS
180782011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
18079
18080 * util/grub-install.in: Recognize ESP mounted at /boot/EFI.
18081
e4bcf625
VS
180822011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
18083
18084 * po/POTFILES.in: Regenerate.
18085
c4edd548
VS
180862011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
18087
18088 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Fix
18089 incorrect memory usage.
18090
16a2bab0
VS
180912011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
18092
18093 * util/grub-install.in: Source grub-mkconfig_lib.
18094
2e418de6
VS
180952011-07-08 Vladimir Serbinenko <phcoder@gmail.com>
18096
18097 Remove getroot.c from core on emu platform.
18098
18099 * grub-core/Makefile.core.def (kernel): Remove kern/emu/getroot.c and
18100 kern/emu/raid.c.
18101 * grub-core/kern/emu/main.c (main): Don't try to guess root device. It's
18102 useless.
18103 * grub-core/kern/emu/misc.c (get_win32_path): Moved from here...
18104 * util/getroot.c (get_win32_path): ... here.
18105 * grub-core/kern/emu/misc.c (fini_libzfs): Moved from here...
18106 * util/getroot.c (fini_libzfs): ... here.
18107 * grub-core/kern/emu/misc.c (grub_get_libzfs_handle): Moved from here...
18108 * util/getroot.c (grub_get_libzfs_handle): ... here.
18109 * grub-core/kern/emu/misc.c (grub_find_zpool_from_dir):
18110 Moved from here...
18111 * util/getroot.c (grub_find_zpool_from_dir): ... here.
18112 * grub-core/kern/emu/misc.c
18113 (grub_make_system_path_relative_to_its_root): Moved from here...
18114 * util/getroot.c (grub_make_system_path_relative_to_its_root): ... here.
18115 * grub-core/kern/emu/getroot.c: Moved from here ...
18116 * util/getroot.c: ... here. All users updated.
18117 * grub-core/kern/emu/raid.c: Moved from here ...
18118 * util/raid.c: ... here. All users updated.
18119
def9832a
VS
181202011-07-08 Vladimir Serbinenko <phcoder@gmail.com>
18121
18122 * po/POTFILES.in: Regenerate.
18123
cd8fe79a
VS
181242011-07-07 Vladimir Serbinenko <phcoder@gmail.com>
18125
18126 Fix compilation on GNU/Linux.
18127
18128 * grub-core/kern/emu/getroot.c (grub_util_pull_device) [!FreeBSD]:
18129 Disable geli.
18130 (grub_util_get_grub_dev) [!FreeBSD]: Likewise.
18131 (grub_util_pull_device) [HAVE_DEVICE_MAPPER]: Fix const and func name.
18132 * grub-core/disk/cryptodisk.c (grub_cryptodisk_open): Fix proto.
18133
a251b719
VS
181342011-07-07 Vladimir Serbinenko <phcoder@gmail.com>
181352011-07-07 Michael Gorven <michael@gorven.za.net>
181362011-07-07 Clemens Fruhwirth <clemens@endorphin.org>
18137
18138 LUKS and GELI support.
18139
18140 * Makefile.util.def (libgrubkern.a): Add grub-core/lib/crypto.c,
18141 grub-core/disk/luks.c, grub-core/disk/geli.c,
18142 grub-core/disk/cryptodisk.c, grub-core/disk/AFSplitter.c,
18143 grub-core/lib/pbkdf2.c, grub-core/commands/extcmd.c,
18144 grub-core/lib/arg.c.
18145 (libgrubmods.a): Remove gcrypts cflags and cppflags.
18146 Remove grub-core/commands/extcmd.c, grub-core/lib/arg.c,
18147 grub-core/lib/crypto.c, grub-core/lib/libgcrypt-grub/cipher/sha512.c,
18148 grub-core/lib/libgcrypt-grub/cipher/crc.c and grub-core/lib/pbkdf2.c.
18149 (grub-bin2h): Add libgcry.a.
18150 (grub-mkimage): Likewise.
18151 (grub-mkrelpath): Likewise.
18152 (grub-script-check): Likewise.
18153 (grub-editenv): Likewise.
18154 (grub-mkpasswd-pbkdf2): Likewise.
18155 (grub-pe2elf): Likewise.
18156 (grub-fstest): Likewise.
18157 (grub-mkfont): Likewise.
18158 (grub-mkdevicemap): Likewise.
18159 (grub-probe): Likewise.
18160 (grub-ofpath): Likewise.
18161 (grub-mklayout): Likewise.
18162 (example_unit_test): Likewise.
18163 (grub-menulst2cfg): Likewise.
18164 * autogen.sh (UTIL_DEFS): Add Makefile.utilgcry.def.
18165 * grub-core/Makefile.core.def (cryptodisk): New module.
18166 (luks): Likewise.
18167 (geli): Likewise.
18168 * grub-core/disk/AFSplitter.c: New file.
18169 * grub-core/disk/cryptodisk.c: Likewise.
18170 * grub-core/disk/geli.c: Likewise.
18171 * grub-core/disk/luks.c: Likewise.
18172 * grub-core/kern/emu/getroot.c (get_dm_uuid): New function based on
18173 grub_util_is_lvm.
18174 (grub_util_get_dm_abstraction): New function.
18175 (grub_util_follow_gpart_up): Likewise.
18176 (grub_util_get_geom_abstraction): Likewise.
18177 (grub_util_get_dev_abstraction): Use new functions.
18178 (grub_util_pull_device): Pull GELI and LUKS.
18179 (grub_util_get_grub_dev): Handle LUKS and GELI.
18180 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): New function.
18181 (grub_util_biosdisk_open): Use grub_util_get_fd_sectors.
18182 (follow_geom_up): Removed.
18183 (grub_util_fd_seek): New function.
18184 (open_device): Use grub_util_fd_seek.
18185 (nread): Rename to ..
18186 (grub_util_fd_read): ... this. All users updated.
18187 * grub-core/lib/crypto.c (grub_crypto_ecb_decrypt): A better prototype.
18188 (grub_crypto_cbc_decrypt): Likewise.
18189 (grub_crypto_hmac_write): Likewise.
18190 (grub_crypto_hmac_buffer): Likewise.
18191 (grub_password_get): Extend to util.
18192 * include/grub/crypto.h (gcry_cipher_spec) [GRUB_UTIL]:
18193 New member modname.
18194 (gcry_md_spec) [GRUB_UTIL]: Likewise.
18195 * include/grub/cryptodisk.h: New file.
18196 * include/grub/disk.h (grub_disk_dev_id): Rename LUKS to CRYPTODISK.
18197 * include/grub/emu/getroot.h (grub_dev_abstraction_types): Add
18198 LUKS and GELI.
18199 (grub_util_follow_gpart_up): New proto.
18200 * include/grub/emu/hostdisk.h (grub_util_fd_seek): Likewise.
18201 (grub_util_fd_read): Likewise.
18202 (grub_cryptodisk_cheat_mount): Likewise.
18203 (grub_util_cryptodisk_print_uuid): Likewise.
18204 (grub_util_get_fd_sectors): Likewise.
18205 * util/grub-fstest.c (mount_crypt): New var.
18206 (fstest): Mount crypto if requested.
18207 (options): New option -C.
18208 (argp_parser): Parse -C.
18209 (main): Init and fini gcry.
18210 * util/grub-install.in: Support cryptodisk install.
18211 * util/grub-mkconfig.in: Export GRUB_ENABLE_CRYPTODISK.
18212 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Support
18213 cryptodisk.
18214 (prepare_grub_to_access_device): Likewise.
18215 * util/grub-mkpasswd-pbkdf2.c (main): Use grub_password_get.
18216 * util/grub-probe.c (probe_partmap): Support cryptodisk UUID probe.
18217 (probe_cryptodisk_uuid): New function.
18218 (probe_abstraction): Likewise.
18219 (probe): Use new functions.
18220 * util/import_gcry.py: Create Makefile.utilgcry.def.
18221 Add modname member.
18222
9bfdcbbc
VS
182232011-07-07 Vladimir Serbinenko <phcoder@gmail.com>
18224
18225 Lazy device scanning.
18226
18227 * Makefile.util.def (libgrubkern.a): Add grub-core/kern/emu/raid.c.
18228 (grub-setup): Remove util/raid.c.
18229 * grub-core/Makefile.core.def (kernel): Add kern/emu/raid.c on emu.
18230 * grub-core/disk/lvm.c (scan_depth): New variable.
18231 (grub_lvm_iterate): Rescan if necessary.
18232 (find_lv): New function based on grub_lvm_open.
18233 (grub_lvm_open): Use find_lv. Rescan on error.
18234 (is_node_readable): New function.
18235 (is_lv_readable): Likewise.
18236 (grub_lvm_scan_device): Skip already found disks.
18237 (do_lvm_scan): New function. Move grub_lvm_scan_device inside of it.
18238 Stop if searched device is found and readable.
18239 * grub-core/disk/raid.c (inscnt): New variable.
18240 (scan_depth): Likewise.
18241 (scan_devices): New function based on grub_raid_register. Abort if
18242 looked for device is found.
18243 (grub_raid_iterate): Rescan if needed.
18244 (find_array): NEw function based on -grub_raid_open.
18245 (grub_raid_open): Use find_array and rescan.
18246 (insert_array): Set became_readable_at.
18247 * grub-core/kern/disk.c (grub_disk_dev_iterate): Iterate though "pull.
18248 * grub-core/kern/emu/getroot.c (grub_util_open_dm) [HAVE_DEVICE_MAPPER]:
18249 New function.
18250 (grub_util_is_lvm) [HAVE_DEVICE_MAPPER]: Use grub_util_open_dm.
18251 (grub_util_pull_device): New function.
18252 (grub_util_get_grub_dev): Call grub_util_pull_device.
18253 * util/raid.c: Moved to ..
18254 * grub-core/kern/emu/raid.c: ... here.
18255 (grub_util_raid_getmembers): New parameter "bootable".
18256 All users updated. Support 1.x.
18257 * include/grub/ata.h (grub_ata_dev): Change iterate prototype.
18258 All users updated.
18259 * include/grub/disk.h (grub_disk_pull_t): New enum.
18260 (grub_disk_dev): Change iterate prototype.
18261 All users updated.
18262 * include/grub/emu/getroot.h (grub_util_raid_getmembers) [__linux__]:
18263 New proto.
18264 * include/grub/emu/hostdisk.h (grub_util_pull_device): Likewise.
18265 * include/grub/lvm.h (grub_lvm_lv): New members fullname and compatname.
18266 * include/grub/raid.h (grub_raid_array): New member became_readable_at.
18267 * include/grub/scsi.h (grub_scsi_dev): Change iterate prototype.
18268 All users updated.
18269 * include/grub/util/raid.h: Removed.
18270
1c358e59
VS
182712011-07-06 Vladimir Serbinenko <phcoder@gmail.com>
18272
18273 * po/POTFILES.in: Regenerate.
18274
abee94ed
VS
182752011-07-06 Vladimir Serbinenko <phcoder@gmail.com>
18276
18277 Unify sparc init with other ieee1275.
18278
18279 * grub-core/Makefile.core.def (kernel): Use kern/ieee1275/init.c
18280 instead of kern/sparc64/ieee1275/init.c.
18281 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options)
18282 [__sparc__]: Set GRUB_IEEE1275_FLAG_NO_PARTITION_0.
18283 * grub-core/kern/ieee1275/init.c [__sparc__]: Include
18284 grub/machine/kernel.h.
18285 (grub_ieee1275_original_stack) [__sparc__]: New variable.
18286 (grub_claim_heap) [__sparc__]: Use sparc version.
18287 (grub_machine_init): Moved args parsing to
18288 (grub_parse_cmdline): ...this.
18289 * grub-core/kern/sparc64/ieee1275/init.c: Removed.
18290 * include/grub/offsets.h (GRUB_KERNEL_SPARC64_IEEE1275_MOD_GAP):
18291 New definition.
18292 (GRUB_KERNEL_SPARC64_IEEE1275_MOD_ALIGN): Likewise.
18293
18294 Move BOOTP to separate file.
18295
18296 * grub-core/Makefile.core.def (net): Add net/bootp.c.
18297 * grub-core/net/net.c: Move all BOOTP functions to
18298 * grub-core/net/bootp.c: ... here.
18299
18300 Use frame interface on PXE.
18301
18302 * grub-core/Makefile.core.def (pxecmd): Removed.
18303 (pxe): Use net/drivers/i386/pc/pxe.c rather than net/i386/pc/pxe.c.
18304 * grub-core/commands/i386/pc/pxecmd.c: Removed.
18305 * grub-core/i386/pc/pxe.c: Moved from here ...
18306 * grub-core/net/i386/pc/pxe.c: ... here. Rewritten.
18307 * grub-core/net/net.c (grub_net_open_real): Handle old pxe syntax.
18308 * include/grub/i386/pc/pxe.h (grub_pxe_unload): Removed.
18309
18310 EFI network support.
18311
18312 * grub-core/Makefile.core.def (efinet): New module.
18313 * grub-core/disk/efi/efidisk.c (compare_device_paths): Moved from
18314 here...
18315 * grub-core/kern/efi/efi.c (grub_efi_compare_device_paths): ... here.
18316 All users updated.
18317 * grub-core/kern/efi/init.c (grub_efi_net_config): New variable.
18318 (grub_machine_get_bootlocation): Call grub_efi_net_config if needed.
18319 * grub-core/kern/x86_64/efi/callwrap.S (efi_wrap_7): New function.
18320 * grub-core/net/drivers/efi/efinet.c: New file.
18321 * include/grub/efi/efi.h (grub_efi_compare_device_paths): New proto.
18322 (grub_efi_net_config): New extern var.
18323
18324 Various cleanups and bugfixes.
18325
18326 * grub-core/disk/efi/efidisk.c (grub_efidisk_open): Fix off-by-one
18327 error.
18328 (grub_efidisk_get_device_name): Unify similar codepaths. Accept whole
18329 disk declared as partition.
18330 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_open): Fix memory
18331 leak on failure.
18332 * grub-core/kern/dl.c (grub_dl_load_file): Fix memory leak.
18333 * grub-core/kern/mm.c (grub_debug_malloc): Don't use unsupported %zx.
18334 (grub_debug_zalloc): Likewise.
18335 (grub_debug_realloc): Likewise.
18336 (grub_debug_memalign): Likewise.
18337 * grub-core/net/arp.c (grub_net_arp_receive): IPv4 is 4-byte wide.
18338 Check that target is IPv4.
18339 * grub-core/net/drivers/ieee1275/ofnet.c (grub_ofnet_findcards): Use
18340 local-mac-address as fallback.
18341 * grub-core/net/ethernet.c (grub_net_recv_ethernet_packet): Prevent
18342 memory leak.
18343 * grub-core/net/ip.c (ipchksum): Rename to ...
18344 (grub_net_ip_chksum): ... this. All users updated.
18345 (grub_net_recv_ip_packets): Special handling for DHCP.
18346 * util/grub-mkimage.c (generate_image): Zero-out aout header.
18347
18348 Unify prefix handling
18349
18350 * grub-core/kern/efi/init.c (grub_efi_set_prefix): Revamped into ...
18351 (grub_machine_get_bootlocation): ... this.
18352 * grub-core/kern/emu/main.c (grub_machine_set_prefix): Revamped into ...
18353 (grub_machine_get_bootlocation): ... this.
18354 (grub_prefix): New variable.
18355 (prefix): Removed.
18356 (root_dev): New variable.
18357 (dir): Likewise.
18358 (main): Use new variables.
18359 * grub-core/kern/i386/coreboot/init.c (grub_machine_set_prefix):
18360 Revamped into ...
18361 (grub_machine_get_bootlocation): ... this.
18362 * grub-core/kern/i386/efi/init.c (grub_machine_set_prefix): Removed.
18363 * grub-core/kern/i386/pc/init.c (make_install_device): Revamped into ...
18364 (grub_machine_get_bootlocation): ... this.
18365 (grub_machine_set_prefix): Removed.
18366 * grub-core/kern/ia64/efi/init.c (grub_machine_set_prefix): Removed.
18367 * grub-core/kern/ieee1275/init.c (grub_machine_set_prefix):
18368 Revamped into ...
18369 (grub_machine_get_bootlocation): ... this.
18370 * grub-core/kern/main.c (grub_set_root_dev): Revamped into ...
18371 (grub_set_prefix_and_root): ... this. All users updated.
18372 * grub-core/kern/mips/init.c (grub_machine_set_prefix):
18373 Revamped into ...
18374 (grub_machine_get_bootlocation): ... this.
18375 * include/grub/kernel.h (grub_machine_set_prefix): Removed.
18376 (grub_machine_get_bootlocation): New proto.
18377 * include/grub/i386/pc/kernel.h (grub_pc_net_config): New var.
18378
18379 Less intrusive and more reliable seek on network implementation.
18380
18381 * grub-core/kern/file.c (grub_file_net_seek): Removed.
18382 (grub_file_seek): Don't call grub_file_net_seek.
18383 * grub-core/net/net.c (grub_net_fs_read): Renamed to ...
18384 (grub_net_fs_read_real): .. this.
18385 (grub_net_seek_real): Use net->offset.
18386 (grub_net_fs_read): Seek if necessary.
18387
18388 Unify IEEE1275 netwotk config with the other platforms.
18389
18390 * grub-core/kern/ieee1275/init.c (grub_ieee1275_net_config):
18391 New variable.
18392 (grub_machine_get_bootlocation): Support network.
18393 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args):
18394 Support type and device parsing.
18395 (grub_ieee1275_get_device_type): New function.
18396 * grub-core/net/drivers/ieee1275/ofnet.c (grub_getbootp_real): Revamped
18397 into ...
18398 (grub_ieee1275_net_config_real): ... this.
18399 (grub_ofnet_probecards): Removed.
18400 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Remove ofnet.h.
18401 * include/grub/ieee1275/ofnet.h: Removed.
18402 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_net_config): NEw
18403 extern var.
18404 (grub_ieee1275_get_device_type): New function.
18405
18406 Unify network device closing across platforms and make more robust.
18407
18408 * grub-core/kern/ieee1275/init.c (grub_machine_fini): Don't call
18409 grub_grubnet_fini.
18410 * grub-core/net/ethernet.c (send_ethernet_packet): Open card if it isn't
18411 already.
18412 * grub-core/net/net.c (grub_net_network_level_interface_register):
18413 Update num_ifaces.
18414 (grub_net_card_unregister): Close all interfaces.
18415 (receive_packets): Don't poll if no iterfaces are registered.
18416 Open if necessary.
18417 (grub_net_fini_hw): New function.
18418 (grub_net_restore_hw): Likewise.
18419 (fini_hnd): New variable.
18420 (GRUB_MOD_INIT): Register preboot hook.
18421 (GRUB_MOD_FINI): Run and unregister preboot hook.
18422
18423 Poll network cards when idle.
18424
18425 * grub-core/kern/term.c (grub_net_poll_cards_idle): New variable.
18426 (grub_checkkey): Call grub_net_poll_cards_idle if it's not NULL.
18427 * grub-core/net/net.c (receive_packets): Save last poll time.
18428 (grub_net_poll_cards_idle_real): New function.
18429 (GRUB_MOD_INIT): Register grub_net_poll_cards_idle.
18430 (GRUB_MOD_FINI): Unregister grub_net_poll_cards_idle.
18431 * include/grub/kernel.h (grub_poll_cards_idle): New extern variable.
18432
18433 Rename ofnet interfaces.
18434
18435 * grub-core/net/drivers/ieee1275/ofnet.c (find_alias): New function.
18436 (grub_ofnet_findcards): Use ofnet_%s names.
18437
18438 * util/grub-mknetdir.in: Support for EFI and IEEE1275.
18439
18440 Cleanup socket opening.
18441
18442 * grub-core/net/net.c (grub_net_fs_open): Rewritten.
18443 (grub_net_fs_close): Likewise.
18444 (grub_net_fs_read_real): Use eof member.
18445 * include/grub/net/udp.h (+grub_net_udp_open): New proto.
18446 (+grub_net_udp_close): New inline function.
18447
18448 * include/grub/net/tftp.h: Moved to the top of ...
18449 * grub-core/net/tftp.c: ... here.
18450 * include/grub/net/ip.h: Moved mostly to the top of ...
18451 * grub-core/net/ip.c: ... here.
18452 * include/grub/net/ethernet.h: Moved mostly to the top of ...
18453 * grub-core/net/ethernet.c: ... here.
18454
18455 * grub-core/kern/device.c (grub_device_close): Free device->net->server.
18456
18457 * grub-core/commands/probe.c (grub_cmd_probe): Use protocol name for
18458 FS name.
18459
18460 * include/grub/net/ip.h (ipv4_ini): Removed.
18461 (ipv4_fini): Likewise.
18462
18463 * include/grub/net/ip.h (grub_net_recv_ip_packets): New proto.
18464 (grub_net_send_ip_packets): Likewise.
18465
cf1337aa
VS
184662011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
18467
18468 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_init): Use new
18469 grub_read_cmos prototype.
18470
93c06ff9
VS
184712011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
18472
18473 VGA text support in qemu-mips
18474
18475 * grub-core/Makefile.core.def (kernel): Add term/i386/pc/vga_text.c,
18476 term/i386/vga_common.c and kern/vga_init.c on qemu-mips.
18477 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_init): Init vga
18478 text.
18479 * grub-core/kern/i386/qemu/init.c: Renamed to ...
18480 * grub-core/kern/vga_init.c: ... this.
18481 * grub-core/kern/vga_init.c (VGA_ADDR) [__mips__]: Adjust.
18482 (grub_qemu_init_cirrus) [__mips__]: Skip PCI and adjust the I/O base.
18483 * grub-core/term/i386/pc/vga_text.c (VGA_TEXT_SCREEN) [__mips__]:
18484 Adjust.
18485 * include/grub/vga.h [GRUB_MACHINE_MIPS_QEMU_MIPS]: Declare
18486 GRUB_MACHINE_PCI_IO_BASE.
18487
748ccabe
VS
184882011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
18489
18490 MIPS qemu flash support.
18491
18492 * grub-core/boot/mips/startup_raw.S [GRUB_MACHINE_MIPS_QEMU_MIPS]: Check
18493 magic.
18494 * grub-core/kern/mips/qemu_mips/init.c (probe_mem): New function.
18495 (grub_machine_init): Probe memory if its size isn't known.
18496 * util/grub-mkimage.c (image_targets): Add flash targets.
18497 (generate_image): Handle flash targets.
18498
d7345994
VS
184992011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
18500
18501 MIPS qemu at_keyboard support.
18502
18503 * gentpl.py (videoinkernel): Add qemu-mips.
18504 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add necessary headers.
18505 * grub-core/Makefile.core.def (kernel): Add at_keyboard and layout.
18506 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_init): Init new
18507 modules.
18508 * grub-core/term/at_keyboard.c (grub_keyboard_controller_init)
18509 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Don't consider original set.
18510 * grub-core/term/serial.c (grub_serial_register)
18511 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Make com0 explicitly active.
18512
a07a81b3
VS
185132011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
18514
18515 CMOS support on sparc.
18516
18517 * gentpl.py (cmos): Add powerpc and sparc.
18518 * grub-core/Makefile.core.def (datetime): Add lib/ieee1275/cmos.c on
18519 powerpc and sparc.
18520 * grub-core/lib/cmos_datetime.c (grub_get_datetime)
18521 [__powerpc__ || __sparc__]: Rename to grub_get_datetime_cmos.
18522 (grub_set_datetime) [__powerpc__ || __sparc__]: Likewise to
18523 grub_set_datetime_cmos.
18524 * grub-core/lib/ieee1275/cmos.c: New file.
18525 * grub-core/lib/ieee1275/datetime.c (no_ieee1275_rtc): New vaiable.
18526 (find_rtc): Set no_ieee1275_rtc on error.
18527 (grub_get_datetime): Call grub_get_datetime_cmos on error.
18528 (grub_set_datetime): Call grub_set_datetime_cmos on error.
18529 * include/grub/cmos.h (grub_cmos_read): Return grub_err_t since it may
18530 fail. Move value to argument. All users updated
18531 (grub_cmos_write): Likewise.
18532 (grub_cmos_read) [__powerpc__ || __sparc__]: Rewritten.
18533 (grub_cmos_write) [__powerpc__ || __sparc__]: Likewise.
18534 * include/grub/datetime.h [__powerpc__ || __sparc__]: Declare
18535 grub_get_datetime_cmos and grub_set_datetime_cmos.
18536
77546584
GS
185372011-07-02 Grégoire Sutre <gregoire.sutre@gmail.com>
18538
18539 * util/grub-mkconfig.in: Use @PACKAGE@ instead of hardcoded name when
18540 sourcing grub-mkconfig_lib.
18541 * util/update-grub_lib.in: Likewise.
18542 * util/grub.d/00_header.in: Likewise.
18543 * util/grub.d/10_hurd.in: Likewise.
18544 * util/grub.d/10_kfreebsd.in: Likewise.
18545 * util/grub.d/10_linux.in: Likewise.
18546 * util/grub.d/10_netbsd.in: Likewise.
18547 * util/grub.d/10_windows.in: Likewise.
18548 * util/grub.d/20_linux_xen.in: Likewise.
18549 * util/grub.d/30_os-prober.in: Likewise.
18550
54894791
CW
185512011-06-28 Colin Watson <cjwatson@ubuntu.com>
18552
18553 * grub-core/term/gfxterm.c (grub_virtual_screen_setup): Use
18554 default_bg_color rather than black.
18555 (grub_gfxterm_fullscreen): Likewise.
18556 (grub_gfxterm_background_color_cmd): Save new background color in
18557 default_bg_color.
18558
8d5d8444
VS
185592011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18560
18561 * grub-core/Makefile.core.def (chain): Fix coreboot filename.
18562
5afeb5bd
VS
185632011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18564
18565 * grub-core/disk/pata.c (grub_pata_initialize) [QEMU_MIPS]: Fix a
18566 mismerge.
18567
ba7df45e
VS
185682011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18569
18570 Chainloading on coreboot support.
18571
18572 * grub-core/Makefile.core.def (chain): Add coreboot.
18573 * grub-core/loader/i386/coreboot/chainloader.c: New file.
18574
d0b526b2
VS
185752011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18576
18577 * grub-core/loader/i386/bsd.c (grub_bsd_load): Handle relocator failure
18578 if it happens.
18579
5ff1d945
VS
185802011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18581
18582 Implement time command.
18583
18584 * grub-core/Makefile.core.def (time): New module.
18585 * grub-core/commands/time.c: New file.
18586 * grub-core/script/parser.y: Remove "time" keyword.
18587 * grub-core/script/yylex.l: Likewise.
18588
5ebaad7e
VS
185892011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18590
18591 * include/grub/loader.h (grub_loader_unregister_preboot_hook): Export.
18592
bdea3798
VS
185932011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18594
18595 * grub-core/lib/relocator.c (malloc_in_range): Fix a memory corruption
18596 when handling leftovers.
18597
b28c5655
VS
185982011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18599
18600 * util/ieee1275/grub-ofpathname.c (main): Handle --help and --version
18601 so that help2man doesn't fail.
18602
b6f945dc
VS
186032011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18604
18605 * grub-core/net/drivers/ieee1275/ofnet.c (send_card_buffer) Use right
18606 type in pointers on sparc64.
18607 (get_card_packet): Likewise.
18608
f9b75e8a
CW
186092011-06-27 Colin Watson <cjwatson@ubuntu.com>
18610
18611 * grub-core/commands/videoinfo.c (hook): Indicate current video mode
18612 with `*'.
18613 (grub_cmd_videoinfo): Fetch current video mode.
18614
1e3d9b86
VS
186152011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18616
18617 * grub-core/disk/scsi.c (grub_scsi_read): Limit SCSI reads to 32K
18618 because of underlying system restrictions.
18619
efff4b1c
VS
186202011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18621
18622 * util/grub-mkrescue.in: Rename "ata" to "pata" and add ahci when
18623 necessary.
18624
9fc9ce37
VS
186252011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18626
18627 Coreboot video support.
18628
18629 * grub-core/Makefile.core.def (vga): Extend to coreboot and multiboot.
18630 (vbe): Likewise.
18631 * grub-core/kern/i386/coreboot/startup.S: Include int.S.
18632 * grub-core/kern/i386/pc/startup.S (grub_bios_interrupt): Moved from
18633 here ...
18634 * grub-core/kern/i386/int.S: ... here.
18635 * grub-core/video/i386/pc/vbe.c: Updated includes.
18636 * grub-core/video/i386/pc/vga.c: Likewise.
18637 * include/grub/i386/coreboot/memory.h
18638 (GRUB_MEMORY_MACHINE_SCRATCH_ADDR): New definition.
18639 (GRUB_MEMORY_MACHINE_SCRATCH_SEG): Likewise.
18640 (GRUB_MEMORY_MACHINE_SCRATCH_SIZE): Likewise.
18641 * include/grub/i386/pc/int.h (GRUB_CPU_INT_FLAGS_DEFAULT) [!PCBIOS]:
18642 Disable interrupts.
18643 * include/grub/i386/pc/vga.h: Removed. All users updated.
18644
41bec7fe
VS
186452011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18646
18647 * grub-core/disk/ahci.c (grub_ahci_readwrite_real): Use proper
18648 definitions for dprintf.
18649 * grub-core/disk/pata.c (grub_pata_readwrite): Likewise.
18650
ca80309d
VS
186512011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18652
18653 * grub-core/net/drivers/ieee1275/ofnet.c (send_card_buffer): Fix
18654 prototype.
18655 (get_card_packet): Likewise.
18656
9e322ce8
YB
186572011-06-26 Yves Blusseau <blusseau@zetam.org>
18658
18659 Display the path of the file when file is not found
18660
18661 * grub-core/fs/fat.c: Display the filename when file is not found.
18662 * grub-core/fs/fshelp.c: Likewise.
18663 * grub-core/fs/hfs.c: Likewise.
18664 * grub-core/fs/jfs.c: Likewise.
18665 * grub-core/fs/minix.c: Likewise.
18666 * grub-core/fs/ufs.c: Likewise.
18667 * grub-core/fs/btrfs.c: Likewise.
18668 * grub-core/commands/i386/pc/play.c: Likewise.
18669
cbf597af
SJ
186702011-06-26 Szymon Janc <szymon@janc.net.pl>
18671
18672 * grub-core/commands/cmp.c (grub_cmd_cmp): Remove unnecessary NULL
18673 pointer checks before calling grub_free().
18674 * grub-core/commands/wildcard.c (match_devices): Likewise.
18675 * grub-core/commands/wildcard.c (match_files): Likewise.
18676 * grub-core/fs/cpio.c (grub_cpio_dir): Likewise.
18677 * grub-core/fs/cpio.c (grub_cpio_open): Likewise.
18678 * grub-core/fs/udf.c (grub_udf_read_block): Likewise.
18679 * grub-core/fs/xfs.c (grub_xfs_read_block): Likewise.
18680 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Likewise.
18681 * grub-core/normal/cmdline.c (grub_cmdline_get): Likewise.
18682 * grub-core/script/yylex.l (grub_lexer_unput): Likewise.
18683 * grub-core/video/readers/jpeg.c (grub_video_reader_jpeg): Likewise.
18684 * grub-core/video/readers/png.c (grub_png_output_byte): Likewise.
18685
6295b32f
P
186862011-06-25 Patrick <p55@mailinator.com>
18687
18688 * grub-core/kern/main.c (grub_load_normal_mode): Correct the comment.
18689
77c0840b
VS
186902011-06-25 Vladimir Serbinenko <phcoder@gmail.com>
18691
18692 * grub-core/net/i386/pc/pxe.c (grub_pxe_recv): Fix declaration.
18693 (grub_pxe_send): Likewise.
18694 (GRUB_MOD_INIT): Fix types.
18695
40ea05de
SJ
186962011-06-24 Szymon Janc <szymon@janc.net.pl>
18697
18698 * grub-core/io/xzio.c: Fix code style issues
18699
90162423
MRA
187002011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
187012011-06-24 Manoel Rebelo Abranches <mrabran@gmail.com>
423a1849
MRA
18702
18703 Network infrastructure.
18704 The ARP protocol was made by Paulo Pinatti <ppinatti@br.ibm.com>
18705
18706 * include/grub/net/arp.h: New file.
90162423
MRA
18707 * include/grub/net/device.h: Likewise.
18708 * include/grub/net/ethernet.h: Likewise.
18709 * include/grub/net/ip.h: Likewise.
18710 * include/grub/net/netbuff.h: Likewise.
18711 * include/grub/net/tftp.h: Likewise.
18712 * include/grub/net/udp.h: Likewise.
18713 * include/grub/ieee1275/ofnet.h: Likewise.
18714 * include/grub/emu/export.h: Likewise.
18715 * include/grub/net.h: Likewise.
18716 * grub-core/net/arp.c: Likewise.
18717 * grub-core/net/ethernet.c: Likewise.
18718 * grub-core/net/ip.c: Likewise.
18719 * grub-core/net/udp.c: Likewise.
18720 * grub-core/net/tftp.c: Likewise.
18721 * grub-core/net/netbuff.c: Likewise.
18722 * grub-core/net/net.c: Likewise.
18723 * grub-core/net/drivers/emu/emunet.c: Likewise.
18724 * grub-core/net/drivers/ieee1275/ofnet.c: Likewise.
18725 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add net.h, ofnet.h and
18726 export.h.
18727 * grub-core/Makefile.core.def (net): New module.
18728 (tftp): Likewise.
18729 (ofnet): Likewise.
18730 (emunet): Likewise.
18731 * grub-core/commands/ls.c (grub_ls_list_devices) [!GRUB_UTIL]: List
18732 network protocols.
18733 * grub-core/kern/device.c (grub_net_open) : New variable.
18734 (grub_device_open): Handle network device.
18735 (grub_device_close): Likewise.
18736 * grub-core/kern/file.c (grub_file_net_seek) : New variable.
18737 (grub_grubnet_fini): Likewise.
18738 (grub_file_seek): Seek in network device.
18739 * grub-core/kern/fs.c (grub_fs_probe): Handle network devices.
18740 * grub-core/kern/ieee1275/init.c (grub_machine_set_prefix): Handle
18741 network root.
18742 (grub_machine_fini): Call grub_grubnet_fini.
18743 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args): Handle
18744 network.
18745 (grub_ieee1275_get_aliasdevname): New function.
18746 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
18747 Add unofficial Solaris network info.
18748 (grub_multiboot_make_mbi): Likewise.
18749 * grub-core/fs/i386/pc/pxe.c: Moved from here ...
18750 * grub-core/net/i386/pc/pxe.c: ...here. Adapted for new design.
18751 * include/grub/device.h (grub_fs): Removed.
18752 * include/grub/err.h (grub_err_t): Add network-related values.
18753 * include/grub/i386/pc/pxe.h: Removed bootp parts.
18754 * include/grub/ieee1275/ieee1275.h (grub_ofnetcard_data): New struct.
18755 (grub_ieee1275_get_aliasdevname): New proto.
18756 * include/grub/net.h: Rewritten.
423a1849 18757
031f22a0
VS
187582011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
18759
18760 * grub-core/disk/raid.c (insert_array): Ensure uniqueness of readable
18761 names.
18762
4388ca72
VS
187632011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
18764
18765 * grub-core/commands/wildcard.c (match_files): Add a useful dprintf.
18766 (wildcard_expand): Don't stop on nonregexp parts after regexp ones since
18767 it truncates the output.
18768 Reported by: Ximin Luo.
18769
98e2f506
VS
187702011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
18771
18772 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Skip . and ..
18773
2a5e94d8
VS
187742011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
18775
18776 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Load
18777 partmap before abstraction.
18778
535c1910
AK
187792011-06-24 Alexander Kurtz <kurtz.alex@googlemail.com>
18780
18781 * util/grub-mkconfig_lib.in: Add missing quotes.
18782
bc09e1a2
VS
187832011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
18784
18785 * grub-core/kern/emu/getroot.c (grub_guess_root_device): Revert to
18786 old method if mountinfo would return /dev/root and /dev/root doesn't
18787 exist.
18788
290766fb
VS
187892011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
18790
18791 ZFS zlib support
18792
18793 * grub-core/fs/zfs/zfs.c (zlib_decompress): New function.
18794 (decomp_table): Add zlib entries.
18795 (zio_read): USe 8 bits for compression function rather than 3.
18796 * include/grub/zfs/zio.h (zio_compress): Add zlib values.
18797
187982011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
18799
18800 * grub-core/disk/ahci.c: Add missing license statements.
18801 * grub-core/fs/romfs.c: Likewise.
18802 * grub-core/lib/ia64/setjmp.S: Likewise.
18803 * grub-core/loader/i386/pc/freedos.c: Likewise.
18804 * grub-core/loader/ia64/efi/linux.c: Likewise.
18805 * grub-core/video/colors.c: Likewise.
18806 * include/grub/dl.h (GRUB_MOD_DEP): New macro.
18807
5ab3f48a
VS
188082011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
18809
18810 AHCI support.
18811
18812 * grub-core/Makefile.core.def (ata_pthru): Removed.
18813 (ahci): New module.
18814 (pata): Likewise.
18815 * grub-core/bus/usb/ohci.c (GRUB_MOD_FINI): Unregister preboot hook
18816 on unload.
18817 * grub-core/commands/hdparm.c (grub_hdparm_do_ata_cmd): Use ATA
18818 readwrite.
18819 (grub_hdparm_do_check_powermode_cmd): Likewise.
18820 (grub_hdparm_do_smart_cmd): Likewise.
18821 (grub_hdparm_set_val_cmd): Likewise.
18822 (grub_cmd_hdparm): Likewise. Check thta we have an ATA device.
18823 * grub-core/disk/ahci.c: New file.
18824 * grub-core/disk/ata.c: Factor out the low-level part into ...
18825 * grub-core/disk/pata.c: ... here.
18826 * grub-core/disk/ata_pthru.c: Contents moved to ...
18827 * grub-core/disk/pata.c: ... here.
18828 * grub-core/disk/scsi.c (grub_scsi_names): New array.
18829 (grub_scsi_iterate): Use grub_scsi_names.
18830 (grub_scsi_open): Likewise.
18831 * grub-core/kern/disk.c (grub_disk_ata_pass_through): Removed.
18832 * include/grub/ata.h (grub_ata_commands): Add DMA commands.
18833 (grub_ata_regs_t): New struct.
18834 (grub_disk_ata_pass_through_parms): Likewise.
18835 (grub_ata_device): Renamed to ...
18836 (grub_ata): ... this.
18837 (grub_ata_dev): New struct.
18838 Removed all low-level inline functions.
18839 * include/grub/scsi.h: Add PATA and AHCI subsystems.
18840 (grub_scsi_dev): Removed 'name' and 'id'. Added 'id' parameter to
18841 iterate hooks and open. All users updated.
18842 * util/grub-install.in: Handle AHCI disk module.
18843
c31dc5f5
SJ
188442011-06-23 Szymon Janc <szymon@janc.net.pl>
18845
18846 Add support for DRI and RSTn markers in JPEG files.
18847
18848 * grub-core/video/readers/jpeg.c (JPEG_MARKER_DRI): New define.
18849 (JPEG_MARKER_RST0): Likewise.
18850 (JPEG_MARKER_RST1): Likewise.
18851 (JPEG_MARKER_RST2): Likewise.
18852 (JPEG_MARKER_RST3): Likewise.
18853 (JPEG_MARKER_RST4): Likewise.
18854 (JPEG_MARKER_RST5): Likewise.
18855 (JPEG_MARKER_RST6): Likewise.
18856 (JPEG_MARKER_RST7): Likewise.
18857 (grub_jpeg_data): New fields dri, r1, bitmap_ptr.
18858 (grub_jpeg_decode_dri): New function.
18859 (grub_jpeg_decode_sos): Move image data related part into
18860 grub_jpeg_decode_data function.
18861 (grub_jpeg_decode_data): New function.
18862 (grub_jpeg_reset): New function.
18863 (grub_jpeg_decode_jpeg): Handle new markers.
18864
fe12fd5b
VS
188652011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
18866
18867 * util/ieee1275/ofpath.c (check_sas): Close fd.
18868 (main): Free of_path.
18869 Reported by: David Volgyes <dvolgyes>.
18870
03147f46
VS
188712011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
18872
18873 * util/grub-mkpasswd-pbkdf2.c (main): Don't double-close.
18874 Reported by: David Volgyes <dvolgyes>.
18875
cad3237f
VS
188762011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
18877
18878 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): Close
18879 file after stat.
18880 Reported by: David Volgyes <dvolgyes>.
18881
13548d26
VS
188822011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
18883
18884 * util/raid.c (grub_util_raid_getmembers): Close fd before returning.
18885
18886 Reported by: David Volgyes <dvolgyes>.
18887
e061a1b5
VS
188882011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
18889
18890 * grub-core/lib/reed_solomon.c (rs_recover) [STANDALONE]:
18891 Prevent memory leak.
18892
1abe47dc
VS
188932011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
18894
18895 * grub-core/lib/reed_solomon.c (rs_recover): Prevent memory leak.
18896 (main): Close file.
e061a1b5 18897 Reported by: David Volgyes <dvolgyes>.
1abe47dc 18898
fbc62666
VS
188992011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
18900
18901 * grub-core/loader/i386/xnu.c (grub_cpu_xnu_fill_devprop): Don't attempt
18902 to continue if allocation is failed.
18903
18904 Reported by: David Volgyes <dvolgyes>.
18905
e98c83e9
DV
189062011-06-23 David Volgyes <dvolgyes>
18907
18908 * grub-core/bus/usb/ohci.c (grub_ohci_pci_iter): Avoid NULL-pointer
18909 dereference.
18910
a199a8cd
VS
189112011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
18912
18913 Fix spurious warning.
18914
18915 * grub-core/partmap/acorn.c (grub_acorn_boot_block): Make a union.
18916 (acorn_partition_map_find): Use .bin member.
18917
e2d1dba0
VS
189182011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
18919
18920 * grub-core/kern/emu/getroot.c (grub_guess_root_device): Don't accept
18921 /dev/root as a valid device.
18922
8a5d6919
JM
189232011-06-23 Jim Meyering <meyering@redhat.com>
18924
e2d1dba0
VS
18925 Avoid NULL deref in grub_device_open.
18926
8a5d6919
JM
18927 * grub-core/kern/device.c (grub_device_open): Don't dereference
18928 a NULL pointer upon failed grub_env_get.
18929
f7db6f4a
VS
189302011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
18931
18932 Support non-512B sectors and agglomerate reads.
18933
18934 * Makefile.util.def (libgrubmods.a): Add grub-core/commands/testload.c.
18935 * grub-core/disk/efi/efidisk.c (grub_efidisk_data): Remove disk_io.
18936 (disk_io_guid): Removed.
18937 (make_devices): Locate solely by BlockIO.
18938 (grub_efidisk_open): Fill log_sector_size and total_sectors.
18939 (grub_efidisk_read): Use read_blocks.
18940 (grub_efidisk_write): Use write_blocks.
18941 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_open): Fill
18942 log_sector_size.
18943 (get_safe_sectors): Handle non-512B sectors.
18944 (grub_biosdisk_read): Remove special CDROM handling. Handle non-512B
18945 sectors.
18946 (grub_biosdisk_write): Handle non-512B sectors.
18947 * grub-core/disk/scsi.c (grub_scsi_open): Fill log_sector_size.
18948 (grub_scsi_read): Remove special non-512B block handling (now handled
18949 one level up).
18950 * grub-core/kern/disk.c (grub_disk_open): Fill default log_sector_size
18951 and do sanity checks.
18952 (grub_disk_adjust_range): Handle non-512B sectors.
18953 (transform_sector): New function.
18954 (grub_disk_read_small): Likewise.
18955 (grub_disk_read): Rewritten.
18956 (grub_disk_write): Handle non-512B sectors.
18957 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_open): Fill
18958 log_sector_size.
18959 (open_device): Use log_sector_size.
18960 (grub_util_biosdisk_read): Likewise.
18961 (grub_util_biosdisk_write): Likewise.
18962 * grub-core/partmap/msdos.c (grub_partition_msdos_iterate): Handle
18963 non-512B sectors.
18964 (pc_partition_map_embed): Likewise.
18965 * include/grub/disk.h (grub_disk): New field log_sector_size.
18966 (GRUB_DISK_CACHE_SIZE): Redefined from GRUB_DISK_CACHE_BITS.
18967 (GRUB_DISK_CACHE_BITS): Increased to 6.
18968 * util/grub-fstest.c (fstest): New command testload.
18969 (argp_parser): Likewise.
18970
881ac815
RM
189712011-06-16 Robert Millan <rmh@gnu.org>
18972
18973 Detect `ataraid' devices on GNU/kFreeBSD. Fix for ATA devices using
18974 `ata' driver on kernel of FreeBSD 9.
18975
18976 * util/deviceiter.c [__FreeBSD_kernel__] (get_ada_disk_name)
18977 (get_ataraid_disk_name): New functions.
18978 [__FreeBSD_kernel__] (grub_util_iterate_devices): Scan for ataraid
18979 (/dev/ar[0-9]+) and ada (/dev/ada[0-9]+) devices using
18980 get_ataraid_disk_name() and get_ada_disk_name().
18981
1e9aef7d
CW
189822011-06-13 Colin Watson <cjwatson@ubuntu.com>
18983
18984 * docs/man/grub-mklayout.h2m (DESCRIPTION): Add a reference to the
18985 input format.
18986
351c7c8a
CW
189872011-05-29 Colin Watson <cjwatson@ubuntu.com>
18988
18989 * docs/grub.texi (Obtaining and Building GRUB): Substitute
18990 `ftp.gnu.org' for `alpha.gnu.org'.
18991
6b4e6430
CW
189922011-05-27 Colin Watson <cjwatson@ubuntu.com>
18993
18994 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Handle
18995 partitions under /dev/disk/by-id/.
18996
c64db050
CW
189972011-05-27 Colin Watson <cjwatson@ubuntu.com>
18998
18999 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Give up
19000 after ten consecutive open failures. Scanning all the way up to
19001 10000 is excessive and can cause serious performance problems in
19002 some configurations.
19003 Fixes Ubuntu bug #787461.
19004
245f4aba
VS
190052011-05-21 Vladimir Serbinenko <phcoder@gmail.com>
19006
19007 * grub-core/disk/arc/arcdisk.c (reopen): Close old handle before
19008 opening new one.
19009
f767c929
VS
190102011-05-21 Colin Watson <cjwatson@ubuntu.com>
190112011-05-21 Vladimir Serbinenko <phcoder@gmail.com>
19012
19013 Don't stat devices unless we have to.
19014
19015 * grub-core/kern/emu/getroot.c (grub_find_device): Recognize
19016 dir == /dev/mapper.
19017 (grub_guess_root_device): Use already known os_dev if possible.
19018 * grub-core/kern/emu/hostdisk.c
19019 (convert_system_partition_to_system_disk): Scan only in /dev/mapper
19020 if device is known to be a dm one.
19021
f35fa3a6
CW
190222011-05-20 Colin Watson <cjwatson@ubuntu.com>
19023
19024 * util/grub-mkconfig.in: Export GRUB_CMDLINE_LINUX_XEN_REPLACE and
19025 GRUB_CMDLINE_LINUX_XEN_REPLACE_DEFAULT.
19026 Reported by: Pawel Tecza.
19027
9a79fcf2
VS
190282011-05-19 Vladimir Serbinenko <phcoder@gmail.com>
19029
19030 * grub-core/Makefile.core.def (lsacpi): Fix ia64 mismerge.
19031 (lsefisystab): Likewise.
19032 (lssal): Likewise.
19033 (lsefimmap): Likewise.
19034 (hdparm): Enable on qemu-mips.
19035 (setjmp): Add ia64 nodist.
19036 (serial): Simplify tags.
19037
63e3eea9
CW
190382011-05-18 Colin Watson <cjwatson@ubuntu.com>
19039
19040 * Makefile.util.def (grub-ofpathname): Install manual page.
19041
09728256
CW
190422011-05-18 Colin Watson <cjwatson@ubuntu.com>
19043
19044 * grub-core/fs/squash4.c: Add missing GRUB_MOD_LICENSE.
19045
8b63a142
CW
190462011-05-18 Colin Watson <cjwatson@ubuntu.com>
19047
19048 * .bzrignore: Add grub-core/modinfo.sh and a number of test files.
19049
e775d8ed
VS
190502011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
19051
19052 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Downgrade a printf
19053 into dprintf.
19054
bf947d36
VS
190552011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
19056
19057 Use full 64-bit division.
19058
19059 * grub-core/kern/misc.c (grub_divmod64_full): Renamed to ...
19060 (grub_divmod64): ... this.
19061 * include/grub/misc.h (grub_divmod64): Removed. All users switch to full
19062 version.
19063
b84f26c5
CW
190642011-05-18 Colin Watson <cjwatson@ubuntu.com>
19065
19066 * util/grub-mkrescue.in: Use portable `.' rather than non-portable
19067 `source'.
19068
5626056f
CW
190692011-05-18 Colin Watson <cjwatson@ubuntu.com>
19070
19071 * grub-core/genmod.sh.in: Use 'set -e' rather than '#! /bin/sh -e',
19072 to avoid accidents when debugging with 'sh -x'.
19073 * grub-core/gensyminfo.sh.in: Likewise.
19074 * tests/example_scripted_test.in: Likewise.
19075 * tests/grub_cmd_regexp.in: Likewise.
19076 * tests/grub_script_blanklines.in: Likewise.
19077 * tests/grub_script_dollar.in: Likewise.
19078 * tests/grub_script_expansion.in: Likewise.
19079 * tests/grub_script_final_semicolon.in: Likewise.
19080 * tests/partmap_test.in: Likewise.
19081 * tests/util/grub-shell-tester.in: Likewise.
19082 * tests/util/grub-shell.in: Likewise.
19083
e2965f4a
CW
190842011-05-18 Colin Watson <cjwatson@ubuntu.com>
19085
19086 Move gfxmenu color handling to video, so that gfxterm can use it
19087 too.
19088
19089 * grub-core/gfxmenu/named_colors.c: Move to ...
19090 * grub-core/video/colors.c: ... here. Rename
19091 grub_gui_get_named_color to grub_video_get_named_color.
19092 * grub-core/gfxmenu/gui_string_util.c (my_isxdigit): Move to ...
19093 * grub-core/video/colors.c (my_isxdigit): ... here.
19094 * grub-core/gfxmenu/gui_string_util.c (parse_hex_color_component):
19095 Move to ...
19096 * grub-core/video/colors.c (parse_hex_color_component): ... here.
19097 * grub-core/gfxmenu/gui_string_util.c (grub_gui_parse_color): Move
19098 to ...
19099 * grub-core/video/colors.c (grub_video_parse_color): ... here.
19100
19101 * include/grub/gui.h (grub_gui_color_t): Move to ...
19102 * include/grub/video.h (grub_video_rgba_color_t): ... here.
19103 * include/grub/gui.h (grub_gui_color_rgb): Move to ...
19104 * include/grub/video.h (grub_video_rgba_color_rgb): ... here.
19105 * include/grub/gui.h (grub_gui_map_color): Move to ...
19106 * include/grub/video.h (grub_video_map_rgba_color): ... here.
19107 * include/grub/gui_string_util.h (grub_gui_get_named_color): Move
19108 to ...
19109 * include/grub/video.h (grub_video_get_named_color): ... here.
19110 * include/grub/gui_string_util.h (grub_gui_parse_color): Move to ...
19111 * include/grub/video.h (grub_video_parse_color): ... here.
19112
19113 * grub-core/Makefile.core.def (kernel) [videoinkernel]: Add
19114 video/colors.c.
19115 (gfxmenu): Remove gfxmenu/named_colors.c.
19116 (video) [videomodules]: Add video/colors.c.
19117
19118 Add a background_color command.
19119
19120 * grub-core/term/gfxterm.c (grub_gfxterm_background_color_cmd): New
19121 function.
19122 (GRUB_MOD_INIT): Register background_color command.
19123 (GRUB_MOD_FINI): Unregister background_color command.
19124 (redraw_screen_rect): Allow blend/replace of text layer to be
19125 controlled independently from whether there is a background bitmap.
19126 (grub_gfxterm_background_image_cmd): Change blend_text_bg when
19127 changing bitmap.
19128
1e4b4390
VS
191292011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
19130
26618ff0
VS
19131 Patch BPB in ntldr and chainloader --bpb.
19132
1e4b4390
VS
19133 * grub-core/fs/fat.c: Include grub/fat.h.
19134 (grub_fat_bpb): Moved to ...
19135 * include/grub/fat.h (grub_fat_bpb): ... here. New file.
19136 * grub-core/loader/i386/pc/chainloader.c: Include grub/fat.h and
19137 grub/ntfs.h.
19138 * include/grub/i386/pc/chainloader.h (grub_chainloader_flags_t):
19139 Moved from here...
19140 * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_flags_t): ...
19141 here.
19142 * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_patch_bpb):
19143 New function.
19144 (grub_chainloader_cmd): Patch BPB if --bpb is given.
19145 (GRUB_MOD_INIT): Show --bpb.
19146 * grub-core/loader/i386/pc/ntldr.c (grub_cmd_ntldr): Patch BPB.
19147 * grub-core/normal/main.c (features): New variable.
19148 (GRUB_MOD_INIT): Set feature_* variables.
19149 * include/grub/i386/pc/chainloader.h (grub_chainloader_patch_bpb): New
19150 proto.
19151 * include/grub/ntfs.h (grub_ntfs_bpb): New field bios_drive.
19152
cf02731e
VS
191532011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
19154
19155 * grub-core/Makefile.core.def (ieee1275_fb): Use enable=powerpc_ieee1275
19156 for cleanness.
19157
e3a1073f
VS
191582011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
19159
19160 FreeDOS direct loading support.
19161
19162 * docs/grub.texi (Supported OS): Add FreeDOS.
19163 * grub-core/Makefile.core.def (freedos): New module.
19164 * grub-core/lib/i386/relocator.c (grub_relocator16_ebx): New extern
19165 variable.
19166 (grub_relocator16_boot): Handle %ebx.
19167 * grub-core/lib/i386/relocator16.S: Likewise.
19168 * grub-core/loader/i386/pc/freedos.c: New file.
19169
05caa461
VS
191702011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
19171
19172 Long Linux command line support.
19173
19174 * grub-core/loader/i386/linux.c (GRUB_LINUX_CL_END_OFFSET): Removed.
19175 (maximal_cmdline_size): New variable.
19176 (allocate_pages): Use maximal_cmdline_size.
19177 (grub_cmd_linux): Set and use maximal_cmdline_size.
19178 * grub-core/loader/i386/pc/linux.c (GRUB_LINUX_CL_END_OFFSET): Removed.
19179 (allocate_pages): Use maximal_cmdline_size.
19180 (grub_cmd_linux): Set and use maximal_cmdline_size.
19181 * include/grub/i386/linux.h (GRUB_LINUX_SETUP_MOVE_SIZE): Removed.
19182 (linux_kernel_header): Add fields kernel_alignment, relocatable, pad
19183 and cmdline_size.
19184
a2491e23
VS
191852011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
191862011-05-18 Colin Watson <cjwatson@ubuntu.com>
19187
19188 Improve devmapper support
19189
19190 * grub-core/kern/emu/getroot.c (grub_util_is_dmraid): Removed.
19191 (grub_util_is_lvm): New function.
19192 (grub_util_get_dev_abstraction): Assume dmraid if not lvm rather
19193 than lvm if not dmraid.
19194 Handle mapped md nodes.
19195 * grub-core/kern/emu/hostdisk.c (device_is_mapped): Rename to ...
19196 (grub_util_device_is_mapped): ... this. Make always available. All users
19197 updated.
19198 (grub_util_get_dm_node_linear_info) [HAVE_DEVICE_MAPPER]: New function.
19199 (convert_system_partition_to_system_disk): Handle lvm, mpath and
19200 dmraid nodes.
19201 * include/grub/emu/misc.h (grub_util_device_is_mapped): New proto.
19202
6ad6223e
VS
192032011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
19204
19205 Unify grub-mkrescue (except powerpc) and grrub-mknetdir across platforms
19206
19207 * grub-core/Makefile.am (platform_DATA): Add modinfo.sh.
19208 * grub-core/modinfo.sh.in: New file.
19209 * grub-core/Makefile.core.def (modinfo.sh): New script.
19210 * util/grub-mknetdir.in: Use modinfo.sh.
19211 * util/grub-mkrescue.in: Likewise.
19212
543a8f6e
VS
192132011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
19214
19215 * grub-core/kern/ia64/dl_helper.c (grub_ia64_dl_get_tramp_got_size):
19216 Fix potential usage of Elf32 instead of Elf64 when compiling on
19217 32-bit architecture. Add endianness macros while on it.
19218
4959e111
VS
192192011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
19220
19221 Use mipsel- rather than mips- in directories involving mipsel ports to
19222 allow both endiannesses coexist.
19223
19224 * configure.ac: proparate target_cpu=mipsel rather than resetting to
19225 mips. All conditions adjusted.
19226 * tests/util/grub-shell-tester.in: Remove gratuitious target_cpu
19227 variable.
19228 * util/grub-install.in: Adjust conditions to take renaming into account.
19229 * util/grub-mkimage.c (image_targets): Likewise. New target
19230 mips-qemu_mips-elf for bigendian mips.
19231
35341bbc
VS
192322011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
19233
19234 Avoid unnecessary copying on MIPS.
19235
19236 * grub-core/boot/decompressor/none.c (grub_decompress_core): Exit
19237 early if src == dest.
19238 * util/grub-mkimage.c (generate_image): Arange for src == dest if
19239 compression is none.
19240
b772baed
VS
192412011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
19242
19243 Reduce memory footprint on SGI by putting modules before the kernel
19244 as opposed to after.
19245
19246 * grub-core/Makefile.core.def (kernel): Increase linking address.
19247 (none_decompress): Likewise.
19248 (xz_decompress): Likewise.
19249 * grub-core/boot/mips/startup_raw.S: Use prewritten uncompression
19250 address.
19251 * grub-core/kern/mips/arc/init.c (grub_machine_init): Handle memory
19252 layout change.
19253 (grub_arch_modules_addr): New function.
19254 * grub-core/kern/mips/init.c (grub_arch_modules_addr): Moved from here...
19255 * grub-core/kern/mips/loongson/init.c (grub_arch_modules_addr): .. here
19256 * grub-core/kern/mips/qemu_mips/init.c (grub_arch_modules_addr): ... and
19257 here.
19258 * grub-core/kern/mips/startup.S (total_size): Rename to ...
19259 (grub_total_modules_size): ... this. Make global.
19260 [GRUB_MACHINE_ARC]: Don't attempt to move modules out of the bss.
19261 * include/grub/offsets.h (GRUB_KERNEL_MIPS_LOONGSON_UNCOMPRESSED_ADDR):
19262 New definition.
19263 (GRUB_KERNEL_MIPS_QEMU_MIPS_UNCOMPRESSED_ADDR): Likewise.
19264 (GRUB_KERNEL_MIPS_ARC_UNCOMPRESSED_ADDR): Likewise.
19265 (GRUB_KERNEL_MACHINE_UNCOMPRESSED_ADDR): Likewise.
19266 (GRUB_KERNEL_MIPS_ARC_LINK_ADDR): Increased.
19267 * util/grub-mkimage.c (image_target_desc): New flag
19268 PLATFORM_FLAGS_MODULES_BEFORE_KERNEL.
19269 (image_targets): Set PLATFORM_FLAGS_MODULES_BEFORE_KERNEL on mips-arc.
19270 (generate_image): Handle images with modules before kernel.
19271
566a1917
VS
192722011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
19273
19274 Prevent potential loss of memory map by overwrite on qemu-mips.
19275
19276 * grub-core/boot/mips/startup_raw.S [GRUB_MACHINE_MIPS_QEMU_MIPS]:
19277 Save ram size in $s4.
19278 * grub-core/kern/mips/qemu_mips/init.c (RAMSIZE): Removed.
19279 All users changed to grub_arch_memsize.
19280 * grub-core/kern/mips/startup.S (grub_arch_machine): Restrict to
19281 Loongson.
19282 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Save grub_arch_memsize.
19283 * grub-core/loader/mips/linux.c (grub_linux_boot): Pass memory size.
19284 * include/grub/mips/qemu_mips/memory.h (grub_arch_memsize): New
19285 external variable.
19286
5d420cd9
CW
192872011-05-17 Colin Watson <cjwatson@ubuntu.com>
19288
19289 * .bzrignore: Remove grub-dumpbios.
19290
d064b830
CW
192912011-05-17 Colin Watson <cjwatson@ubuntu.com>
19292
19293 * util/grub.d/20_linux_xen.in: Honour GRUB_CMDLINE_LINUX_XEN_REPLACE
19294 and GRUB_CMDLINE_LINUX_XEN_REPLACE_DEFAULT, which replace
19295 GRUB_CMDLINE_LINUX and GRUB_CMDLINE_LINUX_DEFAULT (complementing the
19296 existing options which append).
19297 * docs/grub.texi (Simple configuration): Document new options.
19298 Reported by: Ian Jackson. Fixes Debian bug #617538.
19299
3ca2b466
CW
193002011-05-17 Colin Watson <cjwatson@ubuntu.com>
19301
19302 * util/grub-fstest.c (cmd_cat): New function.
19303 (fstest): Handle CMD_CAT.
19304 (options): Add cat.
19305 (argp_parser): Handle cat.
19306
24c9143a
CW
193072011-05-17 Colin Watson <cjwatson@ubuntu.com>
19308
19309 * Makefile.util.def (grub-bin2h): Don't install.
19310 * docs/man/grub-bin2h.h2m: Remove.
19311
90f7ac19
VS
193122011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
19313
19314 * grub-core/kern/mips/startup.S (grub_arch_cpuclock): Move to the right
19315 place.
19316
8d4a5178
VS
193172011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
19318
19319 Reenable qemu-mips port.
19320
19321 * configure.ac: Handle --target=qemu-mips and --target=qemu_mips.
19322 Fix small arc bug while on it.
19323 * gentpl.py: Handle qemu_mips.
19324 * grub-core/Makefile.am: Likewise.
19325 * grub-core/Makefile.core.def: Likewise.
19326 * grub-core/disk/ata.c [GRUB_MACHINE_MIPS_QEMU_MIPS]: Remove
19327 inappropriate includes.
19328 (grub_ata_pciinit) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Removed.
19329 (grub_ata_initialize): [GRUB_MACHINE_MIPS_QEMU_MIPS]: Rewritten.
19330 * grub-core/kern/main.c (grub_modules_get_end)
19331 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Enable.
19332 * grub-core/kern/mips/qemu-mips: Moved to ..
19333 * grub-core/kern/mips/qemu_mips: ... this.
19334 * grub-core/kern/mips/qemu_mips/init.c (grub_get_rtc): Removed.
19335 (grub_machine_init): Call terminfo_init and serial_init.
19336 * grub-core/kern/mips/startup.S: Change MIPS_LOONGSON to MACHINE.
19337 * grub-core/loader/mips/linux.c (params) [GRUB_MACHINE_MIPS_QEMU_MIPS]:
19338 New variable.
19339 (grub_linux_boot) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Handle the qemu-mips
19340 parameter passing.
19341 (grub_linux_unload) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Free params.
19342 (grub_cmd_linux) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Handle params.
19343 (grub_cmd_initrd) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Likewise.
19344 * include/grub/mips/qemu_mips/cmos.h: New file.
19345 * include/grub/mips/qemu-mips/kernel.h: Don't include cpu/kernel.h.
19346 * include/grub/mips/qemu-mips/memory.h (grub_machine_mmap_iterate):
19347 Removed.
19348 * include/grub/mips/qemu-mips/serial.h (GRUB_MACHINE_SERIAL_PORTS):
19349 Use correct mips-style address.
19350 * include/grub/mips/qemu-mips/time.h: Include cpu/time.h.
19351 (GRUB_TICKS_PER_SECOND): Removed.
19352 (grub_get_rtc): Likewise.
19353 (grub_cpu_idle): Likewise.
19354 * include/grub/offsets.h (GRUB_KERNEL_MIPS_QEMU_MIPS_LINK_ADDR):
19355 New definition.
19356 (GRUB_KERNEL_MIPS_QEMU_MIPS_LINK_ALIGN): Likewise.
19357 (GRUB_KERNEL_MIPS_QEMU_MIPS_COMPRESSED_SIZE): Likewise.
19358 (GRUB_KERNEL_MIPS_QEMU_MIPS_UNCOMPRESSED_SIZE): Likewise.
19359 (GRUB_KERNEL_MIPS_QEMU_MIPS_TOTAL_MODULE_SIZE): Likewise.
19360 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX): Likewise.
19361 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX_END): Likewise.
19362 (GRUB_KERNEL_MIPS_QEMU_MIPS_MOD_ALIGN): Likewise.
19363 * util/grub-mkimage.c (image_targets): Add mipsel-qemu_mips-elf.
19364
400b9371
VS
193652011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
19366
19367 SGI ARCS port.
19368
19369 * Makefile.util.def (libgrubmods.a): Add dvh.c.
19370 * conf/Makefile.common (CCASFLAGS_PLATFORM): Add -mips3 on all mips
19371 platforms.
19372 * configure.ac: New target mips-arc.
19373 * gentpl.py: Likewise.
19374 * grub-core/Makefile.am: Likewise.
19375 * grub-core/Makefile.core.def: Likewise.
19376 (xz_decompress): Remove -D GRUB_MACHINE_LINK_ADDR.
19377 (none_decompress): Likewise.
19378 (lsdev): New module.
19379 (datetime): Use lib/arc/datetime.c on ARC.
19380 (part_dvh): New module.
19381 * grub-core/commands/arc/lsdev.c: New file.
19382 * grub-core/disk/arc/arcdisk.c: Likewise.
19383 * grub-core/kern/mips/arc/init.c: Likewise.
19384 * grub-core/kern/mips/cache_flush.S: Don't flush non 4-byte
19385 aligned addresses.
19386 * grub-core/kern/mips/dl.c (grub_arch_dl_check_header): Fix bigendian
19387 support.
19388 (grub_arch_dl_relocate_symbols): Likewise.
19389 * grub-core/kern/mips/loongson/init.c (grub_get_rtc): Moved from here...
19390 * grub-core/kern/mips/init.c (grub_get_rtc): ... here.
19391 * grub-core/kern/mips/startup.S (grub_arch_cpuclock): Have on all
19392 platforms.
19393 * grub-core/lib/arc/datetime.c: New file.
19394 * grub-core/loader/mips/linux.c: Always include time.h. Don't include
19395 pci.h on non-loongson.
19396 (envp_off) [!GRUB_MACHINE_MIPS_LOONGSON]: Remove.
19397 (grub_linux_boot): Set unused registers to 0.
19398 (grub_cmd_linux) [!GRUB_MACHINE_MIPS_LOONGSON]: Remove envp.
19399 * grub-core/mmap/mips/loongson/uppermem.c: Moved from here ...
19400 * grub-core/mmap/mips/uppermem.c: ...here.
19401 * grub-core/partmap/dvh.c: New file.
19402 * grub-core/term/arc/console.c: Likewise.
19403 * grub-core/term/terminfo.c (ANSI_C0_STR): New const.
19404 (grub_terminfo_set_current): Add terminal "arc".
19405 (grub_terminfo_readkey): Support ARC sequences.
19406 * include/grub/arc/arc.h: New file.
19407 * include/grub/arc/console.h: Likewise.
19408 * include/grub/disk.h (grub_disk_dev_id): Add
19409 GRUB_DISK_DEVICE_ARCDISK_ID.
19410 * include/grub/mips/arc/kernel.h: New file.
19411 * include/grub/mips/arc/memory.h: Likewise.
19412 * include/grub/mips/arc/time.h: Likewise.
19413 * include/grub/mips/loongson/kernel.h (grub_halt): Moved from here ...
19414 * include/grub/mips/kernel.h (grub_halt): ... here.
19415 * include/grub/mips/loongson.h (GRUB_CPU_REGISTER_WRAP): Moved from
19416 here...
19417 * include/grub/mips/mips.h (GRUB_CPU_REGISTER_WRAP): ... here.
19418 (GRUB_CPU_LOONGSON_COP0_TIMER_COUNT): Moved from here ...
19419 * include/grub/mips/mips.h (GRUB_CPU_LOONGSON_COP0_TIMER_COUNT): .. here
19420 * include/grub/mips/loongson/kernel.h (grub_reboot): Removed redundant
19421 proto.
19422 * include/grub/mips/loongson/memory.h (GRUB_ARCH_LOWMEMVSTART): Moved
19423 from here ...
19424 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMVSTART): ... here.
19425 (GRUB_ARCH_LOWMEMPSTART): Moved from here ...
19426 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMPSTART): ... here.
19427 (GRUB_ARCH_LOWMEMMAXSIZE): Moved from here ...
19428 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMMAXSIZE): ... here.
19429 (GRUB_ARCH_HIGHMEMPSTART): Moved from here ...
19430 * include/grub/mips/memory.h (GRUB_ARCH_HIGHMEMPSTART): ... here.
19431 (grub_phys_addr_t): Moved from here ...
19432 * include/grub/mips/memory.h (grub_phys_addr_t): ... here.
19433 (grub_vtop): Moved from here ...
19434 * include/grub/mips/memory.h (grub_vtop): ... here.
19435 (grub_map_memory): Moved from here ...
19436 * include/grub/mips/memory.h (grub_map_memory): ... here.
19437 (grub_unmap_memory): Moved from here ...
19438 * include/grub/mips/memory.h (grub_unmap_memory): ... here.
19439 (grub_machine_mmap_iterate): Moved from here ...
19440 * include/grub/mips/memory.h (grub_machine_mmap_iterate): ... here.
19441 (grub_mmap_get_lower): Moved from here ...
19442 * include/grub/mips/memory.h (grub_mmap_get_lower): ... here.
19443 (grub_mmap_get_upper): Moved from here ...
19444 * include/grub/mips/memory.h (grub_mmap_get_upper): ... here.
19445 * include/grub/mips/loongson/time.h (grub_arch_cpuclock): Moved from
19446 here ...
19447 * include/grub/mips/time.h (grub_arch_cpuclock): ... here.
19448 * include/grub/mips/loongson/time.h (grub_get_rtc): Moved from
19449 here ...
19450 * include/grub/mips/time.h (grub_get_rtc): ... here.
19451 * include/grub/mips/loongson/time.h (grub_arch_cpuclock): Moved from
19452 here ...
19453 * include/grub/mips/time.h (grub_arch_cpuclock): ... here.
19454 * include/grub/mips/loongson/time.h (grub_cpu_idle): Moved from
19455 here ...
19456 * include/grub/mips/time.h (grub_cpu_idle): ... here.
19457 * include/grub/offsets.h (GRUB_KERNEL_MIPS_ARC_LINK_ADDR): New
19458 definition.
19459 (GRUB_KERNEL_MIPS_ARC_LINK_ALIGN): Likewise.
19460 (GRUB_KERNEL_MIPS_ARC_COMPRESSED_SIZE): Likewise.
19461 (GRUB_KERNEL_MIPS_ARC_UNCOMPRESSED_SIZE): Likewise.
19462 (GRUB_KERNEL_MIPS_ARC_TOTAL_MODULE_SIZE): Likewise.
19463 (GRUB_KERNEL_MIPS_ARC_PREFIX): Likewise.
19464 (GRUB_KERNEL_MIPS_ARC_PREFIX_END): Likewise.
19465 (GRUB_KERNEL_MIPS_ARC_MOD_ALIGN): Likewise.
19466 (GRUB_MACHINE_LINK_ADDR): Likewise.
19467 * include/grub/terminfo.h (GRUB_TERMINFO_READKEY_MAX_LEN): Increased
19468 to 6.
19469 * util/grub-install.in: Run dvhtool on ARC.
19470 * util/grub-mkimage.c (image_targets): Add mips-arc.
b6296b3f 19471 (generate_image): Handle ECOFF output for mips-arc.
400b9371 19472
c8ecc840
VS
194732011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
19474
19475 * grub-core/bus/pci.c (grub_memalign_dma32): Always allocate in 64-byte
19476 blocks.
19477
153a4b55
VS
194782011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
19479
19480 * grub-core/bus/usb/usbhub.c (attach_root_port): Wait 10ms
19481 after enabling port.
19482
ff44d107
VS
194832011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
19484
19485 Skip incorrect USB devices.
19486
19487 * grub-core/bus/usb/usb.c (grub_usb_device_initialize): Fail if
19488 configcnt == 0.
19489 * include/grub/usb.h (grub_usb_err_t): New enum value
19490 GRUB_USB_ERR_BADDEVICE.
19491
638dbe4f
VS
194922011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
19493
19494 Fuloong video init support.
19495
19496 * include/grub/vga.h (grub_vga_write_arx): inb monochrome address as
19497 well.
19498 (grub_vga_read_arx): New function.
19499 * grub-core/video/sis315pro.c (GRUB_SIS315PRO_MMIO_SPACE): New
19500 definition.
19501 (framebuffer): New members io, mmioptr and mmiobase.
19502 (read_sis_cmd): New function.
19503 (write_sis_cmd): Likewise.
19504 (grub_video_sis315pro_setup): Do the initialisation. Use 640x480
19505 rather than 640x400.
19506 * grub-core/video/sis315_init.c: New file.
19507
c3fc520c
VS
195082011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
19509
19510 * grub-core/bus/cs5536.c: Don't include grub/machine/kernel.h on
19511 non-loongson.
19512 * grub-core/kern/mips/dl.c (grub_arch_dl_init_linker): Fix argument
19513 to grub_dl_register_symbol.
19514
67b1e5c9
VS
195152011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
19516
19517 Fix compilation errors.
19518
19519 * grub-core/term/ns8250.c (serial_get_divisor): Declare 'port' as
19520 potentially unused.
19521 * grub-core/loader/i386/linux.c (grub_linux_setup_video):
19522 Handle GRUB_VIDEO_DRIVER_SIS315PRO.
19523 * grub-core/bus/cs5536.c (grub_cs5536_init_geode): Restrict DIVIL init
19524 to loongson machines.
19525
b756f75f
VS
195262011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
19527
19528 Several FS mtime support.
19529
19530 * grub-core/fs/affs.c (grub_affs_time): New struct.
19531 (grub_affs_file): New field mtime.
19532 (grub_fshelp_node): Changed 'block' and 'parent' to more appropriate
19533 type. Removed 'size'. New field 'di'. All users updated.
19534 (grub_affs_mount): Simplify checsum checking.
19535 (grub_affs_iterate_dir): New helper grub_affs_create_node.
19536 (grub_affs_dir): Handle mtime.
19537 * grub-core/fs/cpio.c (grub_cpio_find_file): Handle mtime.
19538 (grub_cpio_dir): Likewise.
19539 * grub-core/fs/hfs.c (grub_hfs_dirrec): New fields 'ctime' and 'mtime'.
19540 (grub_hfs_filerec): New field mtime.
19541 (grub_hfs_dir): Handle mtime.
19542 (grub_hfs_mtime): New function.
19543 (grub_hfs_fs): Register grub_hfs_mtime.
19544 * grub-core/fs/iso9660.c (grub_iso9660_date2): New struct.
19545 (grub_iso9660_dir): New field mtime.
19546 (grub_fshelp_node): New field dirent.
19547 (iso9660_to_unixtime): New function.
19548 (iso9660_to_unixtime2): Likewise.
19549 (grub_iso9660_read_symlink): Use node->dirent.
19550 (grub_iso9660_iterate_dir): Likewise.
19551 (grub_iso9660_dir): Set mtime.
19552 (grub_iso9660_mtime): New function.
19553 (grub_iso9660_fs): Register grub_iso9660_mtime.
19554 * grub-core/fs/jfs.c (grub_jfs_time): New struct.
19555 (grub_jfs_inode): New fields atime, ctime and mtime.
19556 (grub_jfs_dir): Set mtime.
19557 * grub-core/fs/minix.c (grub_minix_dir): Likewise.
19558 * grub-core/fs/ntfs.c (list_file): Set mtime.
19559 (grub_ntfs_dir): Likewise.
19560 * grub-core/fs/reiserfs.c (grub_fshelp_node): New field 'mtime'.
19561 (grub_reiserfs_iterate_dir): Set mtime.
19562 (grub_reiserfs_dir): Likewise.
19563 * grub-core/fs/sfs.c (grub_sfs_obj): New field mtime.
19564 (grub_fshelp_node): Likewise.
19565 (grub_sfs_iterate_dir): Set mtime.
19566 (grub_sfs_dir): Likewise.
19567 * grub-core/fs/udf.c (grub_udf_dir): Set mtime.
19568 * grub-core/fs/xfs.c (grub_xfs_time): New struct.
19569 (grub_xfs_inode): New fields atime, mtime, ctime.
19570 (grub_xfs_dir): Set mtime.
19571 * include/grub/datetime.h (grub_datetime2unixtime): New function.
19572 * include/grub/hfs.h (grub_hfs_sblock): New fields ctime and mtime.
19573 * include/grub/ntfs.h (grub_fshelp_node): New field mtime.
19574
19575 Support UDF symlinks.
19576
19577 * grub-core/fs/udf.c (grub_udf_iterate_dir): Handle symlinks.
19578 (grub_ufs_read_symlink): New function. All users updated.
19579
19580 Check amiga partmap checksum.
19581
19582 * grub-core/partmap/amiga.c (grub_amiga_rdsk): Pad to 128 bytes.
19583 (grub_amiga_partition): Likewise.
19584 (amiga_partition_map_checksum): New function.
19585 (amiga_partition_map_iterate): Check checksum.
19586
5470225d
VS
195872011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
19588
19589 ROMFS support.
19590
19591 * Makefile.util.def (libgrubmods.a): Add romfs.
19592 * grub-core/Makefile.core.def (romfs): New module.
19593 * grub-core/fs/romfs.c: New file.
19594
d4680a35
VS
195952011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
19596
19597 Squashfs v4 support.
19598
19599 * Makefile.util.def (libgrubmods.a): Add squash4.
19600 * grub-core/Makefile.core.def (squash4): New module.
19601 * grub-core/fs/squash4.c: New file.
19602 * grub-core/io/gzio.c (grub_gzio): New members disk_input_off,
19603 disk_input_start, disk_input.
19604 (get_byte): Handle disk_input.
19605 (grub_zlib_disk_read): New function.
19606 * include/grub/deflate.h (grub_zlib_disk_read): New proto.
19607
bcb18e74
FZ
196082011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
196092011-05-15 Feiran Zheng <famcool@gmail.com>
19610
19611 * Makefile.util.def (libgrubmods.a): Add minix3.
19612 * grub-core/Makefile.core.def (minix3): New module.
19613 * grub-core/fs/minix.c (GRUB_MINIX_MAGIC) [MODE_MINIX3]: New value.
19614 (GRUB_MINIX_BSIZE): Removed.
19615 (GRUB_MINIX_INODE_DIR_BLOCKS): New definition. All users updated.
19616 (grub_minix_ino_t): New type.
19617 (grub_minix_le_to_cpu_ino): New macro.
19618 (GRUB_MINIX_ZONE2SECT): New definition. All users updated.
19619 (grub_minix_sblock) [MODE_MINIX3]: Change for minix3.
19620 (grub_minix_data): New field block_size.
19621 (grub_minix_read_file): Handle 64-bit correctly.
19622 * grub-core/fs/minix3.c: New file.
19623
32297d5f
TG
196242011-05-15 Tristan Gingold <gingold@free.fr>
196252011-05-15 Robert Millan <rmh.grub@aybabtu.com>
196262011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
19627
19628 IA64 support.
19629
19630 * Makefile.util.def (libgrubmods.a): Add grub-core/kern/ia64/dl_helper.c
19631 * configure.ac: Add ia64-efi target.
19632 Probe for __ia64_trampoline, __udivsi3, __umoddi3, __udivdi3,
19633 __divsi3, __modsi3, __umodsi3, __moddi3 and __divdi3 symbols.
19634 * gentpl.py: Add ia64_efi platform.
19635 Rename x86_efi to efi and Add ia64-efi. All users updated.
19636 * grub-core/Makefile.am: Set KERNEL_HEADER_FILES for ia64-efi.
19637 * grub-core/Makefile.core.def (kernel.img): Add compile flags for ia64.
19638 Remove kern/generic/rtc_get_time_ms.c on EFI.
19639 Add kern/ia64/efi/startup.S, kern/ia64/efi/init.c, kern/ia64/dl.c,
19640 kern/ia64/dl_helper.c on ia64-efi.
19641 Add kern/emu/cache.c on emu.
19642 (linux): Use on loader/ia64/efi/linux.c on ia64.
19643 * grub-core/gensymlist.sh (grub_register_exported_symbols): Check
19644 whether symbol is a function.
19645 * grub-core/kern/dl.c [GRUB_MACHINE_EMU]: Include sys/mman.h.
19646 (grub_symbol): New field 'isfunc'.
19647 (grub_dl_resolve_symbol): Return whole symbol rather than just address.
19648 (grub_dl_register_symbol): New argument 'isfunc'. All users updated.
19649 (grub_dl_load_segments): Place all sections into the same region.
19650 [__ia64__]: Create trampolines and got.
19651 [GRUB_MACHINE_EMU]: Call mprotect.
19652 (grub_dl_resolve_symbols): Resolve symbol type as well.
19653 [__ia64__]: Create function descriptors.
19654 * grub-core/kern/efi/efi.c (grub_get_rtc): Renamed to ...
19655 (grub_rtc_get_time_ms): ... this. Expressions simplified.
19656 (grub_get_rtc): New function.
19657 * grub-core/kern/emu/cache.c [__ia64__]: New file.
19658 * grub-core/kern/emu/cache.S: Renamed to ...
19659 * grub-core/kern/emu/cache_s.S: ... this.
19660 [__ia64__]: Add a nop.
19661 * grub-core/kern/emu/full.c (grub_arch_dl_get_tramp_got_size)
19662 [__ia64__]: New function.
19663 * grub-core/kern/emu/lite.c [__ia64__]: Include ../ia64/dl.c.
19664 * grub-core/kern/ia64/dl.c: New file.
19665 * grub-core/kern/ia64/dl_helper.c: Likewise.
19666 * grub-core/kern/ia64/efi/init.c: New file.
19667 * grub-core/kern/ia64/efi/startup.S: Likewise.
19668 * grub-core/lib/efi/halt.c [__ia64__]: Don't try acpi.
19669 * grub-core/lib/ia64/longjmp.S: New file (from glibc).
19670 * grub-core/lib/ia64/setjmp.S: Likewise (from glibc).
19671 * grub-core/lib/setjmp.S [__ia64__]: Include ./ia64/setjmp.S.
19672 * grub-core/loader/ia64/efi/linux.c: New file.
19673 * include/grub/dl.h (GRUB_MOD_NAME): Redefined using C rather than asm.
19674 (GRUB_MOD_DEP): Likewise.
19675 (grub_dl) [__ia64__]: New fields got and tramp.
19676 (grub_dl): New field 'base'.
19677 (grub_dl_register_symbol): New argument isfunc. All users updated.
19678 (GRUB_IA64_DL_TRAMP_ALIGN): New definition.
19679 (GRUB_IA64_DL_TRAMP_SIZE): Likewise.
19680 (GRUB_IA64_DL_GOT_ALIGN): Likewise.
19681 (grub_ia64_dl_get_tramp_got_size): New proto.
19682 (GRUB_ARCH_DL_TRAMP_ALIGN) [__ia64__]: Likewise
19683 (GRUB_ARCH_DL_GOT_ALIGN) [__ia64__]: Likewise
19684 (grub_arch_dl_get_tramp_got_size) [__ia64__]: Likewise
19685 * include/grub/efi/api.h: Skip call wrappers on ia64.
19686 * include/grub/efi/pe32.h (GRUB_PE32_MACHINE_IA64): New definition.
19687 * include/grub/efi/time.h (GRUB_TICKS_PER_SECOND): Change to 1000.
19688 * include/grub/elf.h (ELF_ST_INFO): New definition.
19689 * include/grub/ia64/efi/kernel.h: New file.
19690 * include/grub/ia64/efi/memory.h: Likewise.
19691 * include/grub/ia64/efi/time.h: Likewise.
19692 * include/grub/ia64/kernel.h: Likewise.
19693 * include/grub/ia64/setjmp.h: Likewise (from glibc).
19694 * include/grub/ia64/time.h: New file.
19695 * include/grub/ia64/types.h: Likewise.
19696 * include/grub/libgcc.h (__udivsi3, __umodsi3, __umoddi3, __udivdi3,
19697 __moddi3, __divdi3, __divsi3, __modsi3, __ia64_trampoline):
19698 New protos.
19699 * include/grub/offsets.h (GRUB_KERNEL_IA64_EFI_PREFIX): New definition.
19700 (GRUB_KERNEL_IA64_EFI_PREFIX_END): Likewise.
19701 * include/grub/types.h (PRIxGRUB_ADDR): Likewise.
19702 * util/grub-mkimage.c (image_target_desc): New field pe_target.
19703 All users updated.
19704 (EFI64_HEADER_SIZE): New definition. All users updated.
19705 (image_targets): Add ia64-efi.
19706 * util/grub-mkimagexx.c (relocate_symbols): New arguments jumpers and
19707 jumpers_addr. All users updated.
19708 Create function descriptors.
19709 (count_funcs): New function.
19710 (unaligned_uint32): New struct.
19711 (MASK20): New definition.
19712 (MASK19): Likewise.
19713 (MASKF21): Likewise.
19714 (add_value_to_slot_20b): New function.
19715 (add_value_to_slot_21_real): Likewise.
19716 (add_value_to_slot_21): Likewise.
19717 (ia64_kernel_trampoline): New struct.
19718 (nopm): New variable.
19719 (jump): Likewise.
19720 (make_trampoline): New function.
19721 (relocate_addresses): Handle ia64.
19722 (make_reloc_section): Likewise.
19723 (load_image): Likewise.
19724
983b414d
VS
197252011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
19726
19727 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Silence spurious
19728 warning. Move variables before code while on it.
19729
5d063cdc
VS
197302011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
19731
19732 Fuloong support.
19733
19734 * configure.ac: Rename yeeloong platform to loongson. All users updated.
19735 * grub-core/Makefile.core.def (fwstart_fuloong): New image.
19736 * grub-core/boot/mips/loongson/fuloong.S: New file.
19737 * grub-core/boot/mips/loongson/fwstart.S: Wait for CS5536 to come up.
19738 Explicitly init CS5536.
19739 [FULOONG]: Don't use serial until CS5536 is available.
19740 Set GPIO based on dumps.
19741 (serial_hw_init) [FULOONG]: Handle CS5536 parts.
19742 [FULOONG]: Handle GPIO and memory controller differences.
19743 Parse machine type in $a2.
19744 * grub-core/boot/mips/startup_raw.S: Determine and save the
19745 architecture.
19746 * grub-core/bus/cs5536.c (gpiodump): Move to fwstart.S.
19747 (grub_cs5536_init_geode): Remove gpio part. Conditionalise DIVIL
19748 init on architecture type.
19749 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Init
19750 SIS315E. Don't init at_keyboard on fuloong.
19751 (grub_halt): Support Fuloong.
19752 * grub-core/kern/mips/startup.S [LOONGSON]: Save $s7.
19753 * grub-core/loader/mips/linux.c (LOONGSON_MACHTYPE): Removed.
19754 (loongson_machtypes): New array.
19755 (grub_cmd_linux) [GRUB_MACHINE_MIPS_LOONGSON]: Pass the right machine
19756 type.
19757 * grub-core/term/ns8250.c (serial_get_divisor): New parameter port and
19758 config. All users updated. Handle CS5536 serial.
19759 * grub-core/term/serial.c (grub_serial_register): Conditionalise
19760 default port on machine type. Register serial as inactive.
19761 * grub-core/video/sis315pro.c: New file.
19762 * include/grub/cs5536.h (GRUB_CS5536_MSR_MAILBOX_CONFIG_ENABLED): New
19763 definition.
19764 (GRUB_CS5536_MSR_MAILBOX_CONFIG): Likewise.
19765 (GRUB_CS5536_MSR_DIVIL_LEG_IO_UART1_COM1): Likewise.
19766 (GRUB_CS5536_MSR_DIVIL_LEG_IO_UART2_COM3): Likewise.
19767 (GRUB_CS5536_MSR_DIVIL_UART1_CONF): Likewise.
19768 (GRUB_CS5536_MSR_DIVIL_UART2_CONF): Likewise.
19769 * include/grub/mips/loongson.h (GRUB_CPU_LOONGSON_SHUTDOWN_GPIO): Rename
19770 to ...
19771 (GRUB_CPU_YEELOONG_SHUTDOWN_GPIO): ... this.
19772 * include/grub/mips/loongson/kernel.h (GRUB_ARCH_MACHINE_YEELOONG): New
19773 definition.
19774 (GRUB_ARCH_MACHINE_FULOONG): Likewise.
19775 (grub_arch_machine): New extern var.
19776 * include/grub/mips/loongson/serial.h
19777 (GRUB_MACHINE_SERIAL_DIVISOR_115200): Renamed to ...
19778 (GRUB_MACHINE_SERIAL_PORT0_DIVISOR_115200): ... this.
19779 (GRUB_MACHINE_SERIAL_PORT): Renamed to ...
19780 (GRUB_MACHINE_SERIAL_PORT0): ... this.
19781 (GRUB_MACHINE_SERIAL_PORT2_DIVISOR_115200): New definition.
19782 (GRUB_MACHINE_SERIAL_PORT1): Likewise.
19783 (GRUB_MACHINE_SERIAL_PORT2): Likewise.
19784 (GRUB_MACHINE_SERIAL_PORTS): Include ports 1 and 2.
19785 * include/grub/term.h (grub_term_register_input_inactive): New inline
19786 function.
19787 (grub_term_register_output_inactive): Likewise.
19788 * include/grub/video.h (grub_video_driver_id): New value
19789 GRUB_VIDEO_DRIVER_SIS315PRO.
19790 * util/grub-mkimage.c (image_target_desc): Rename name to dirname.
19791 New field "names". All users updated.
19792 New field value IMAGE_FULOONG_FLASH.
19793 (generate_image): USe separate fwstart hashes for yeeloong and fuloong.
19794
6ada82d1
JU
197952011-05-14 Jordan Uggla <jordan.uggla@gmail.com>
19796
19797 * docs/grub.texi (Invoking grub-install): Fix additional outdated claims
19798 and add some clarification.
19799
90c571a4
VS
198002011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
19801
19802 * util/grub.d/10_linux.in: Autoload gzio since it's needed on some
19803 platforms if kernel is compressed.
19804
de04eecf
VS
198052011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
19806
19807 * grub-core/kern/mm.c (grub_memalign): Disable auto-unloadding of
19808 unused modules since currently referrence counter isn't reliable and
19809 there isn't much memory to recover there anyway.
19810
57688121
VS
198112011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
19812
19813 * grub-core/kern/dl.c (grub_dl_load_file): Decrease ref counter
19814 rather than resetting it to allow modules to reference themselves
19815 in init.
19816
3d2c7e35
VS
198172011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
19818
19819 * grub-core/kern/dl.c (grub_dl_unload): Don't decrease reference
19820 counter on dependencies since grub_dl_unref already handles this.
19821
b25db218
VS
198222011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
19823
19824 * grub-core/font/font_cmd.c (loadfont_command): Set grub_errno
19825 on error if not already done.
19826
25a45338
VS
198272011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
19828
19829 Fix few potential memory misusage.
19830
19831 * grub-core/font/font.c (load_font_index): Don't free char_index to
19832 avoid double free.
b25db218
VS
19833 (grub_font_load): Zero-fill font at alloc for safety.
19834 Close file on error.
19835 (free_font): Free bmp_idx.
25a45338 19836
0cac83df
VS
198372011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
19838
19839 * docs/grub.texi (Installation): Fix several outdated claims.
19840
2217a143
VS
198412011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
19842
19843 Handle module_license on windows.
19844
19845 * util/grub-pe2elf.c (MODLICENSE_SECTION): New definition. All following
19846 sections shifted.
19847 (insert_string): Make argument const char * instead of char *.
19848 (write_section_data): Handle long section names.
19849 Handle module_license.
19850
d4de6b01
VS
198512011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
19852
19853 * grub-core/commands/menuentry.c (grub_cmd_menuentry): Correctly
19854 handle class-free menuentries.
19855 (grub_normal_add_menu_entry): Add a check to be sure.
19856
4c2a3b43
VS
198572011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
19858
19859 * grub-core/term/at_keyboard.c (set1_e0_mapping): Fix swap between
19860 PgUp and PgDown.
19861
85c6210f
VS
198622011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
19863
19864 * configure.ac: Bump version to 1.99.
19865
36084912
VS
198662011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
19867
19868 Give ATA device a bit more time on first try in order to allow disks
19869 to spin up.
19870
19871 * grub-core/disk/ata.c (grub_atapi_identify): Use GRUB_ATA_TOUT_DEV_INIT
19872 if dev->present is 1. Reset dev->present on failure.
19873 (grub_ata_device_initialize): Set dev->present to 1.
19874 * include/grub/ata.h (GRUB_ATA_TOUT_DEV_INIT): New value.
19875 (grub_ata_device): New member 'present'.
19876
bda0e219
VS
198772011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
19878
19879 * util/grub-mkimage.c (generate_image): Update hash.
19880
19e1c41b
VS
198812011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
19882
19883 Flush caches on DMA memory.
19884
19885 * grub-core/kern/mips/cache.S (grub_arch_sync_dma_caches): New function.
19886 * grub-core/bus/pci.c (grub_memalign_dma32): Flush caches.
19887 (grub_dma_free): Likewise.
19888 * include/grub/cache.h (grub_arch_sync_dma_caches): New declaration.
19889
91bbcc0c
VS
198902011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
19891
19892 * grub-core/boot/mips/yeeloong/fwstart.S: Add explicit set mips3
19893 to avoid asm treating ld and sd as macros.
19894
60ddfad3
VS
198952011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
19896
19897 * grub-core/boot/mips/startup_raw.S: Flush cache after loading
19898 decompressor.
19899
a298aa04
VS
199002011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
19901
19902 * grub-core/boot/mips/startup_raw.S: Use jalr rather than bal to call
19903 grub_decompress_core since later would fail if grub_decompress_core
19904 is too far.
19905
9b44feca
VS
199062011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
19907
19908 * grub-core/kern/mips/dl.c (grub_arch_dl_relocate_symbols): Handle
19909 R_MIPS_JALR since it's used by newer compiler.
19910
56dbe7b4
VS
199112011-05-10 Vladimir Serbinenko <phcoder@gmail.com>
19912
19913 * util/grub.d/10_linux.in: Correctly handle the Linux in root.
19914
52856af2
VS
199152011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
19916
19917 * grub-core/loader/efi/chainloader.c (grub_chainloader_unload): Set
19918 file_path to 0 for surety.
19919 (grub_chainloader_boot): Set exit_data to NULL.
19920 Unset the loader once done.
19921 (grub_cmd_chainloader): Fix confusing error message if file is empty.
19922
9c9bfc6d
VS
199232011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
19924
19925 * grub-core/term/at_keyboard.c (fetch_key): Make a printf on
19926 unknown key into a dprintf.
19927
dd94a3df
VS
199282011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
19929
19930 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Don't abort
19931 on first non-existant partition.
19932
fa68d99c
VS
199332011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
19934
19935 * grub-core/kern/emu/hostdisk.c (open_device): Set data->fd to -1 if
19936 openning fails.
19937 Reported by: Mark Korenberg.
19938
157effb7
VS
199392011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
19940
19941 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Prevent possible
19942 overflow.
19943
ea75312f
VS
199442011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
19945
19946 * util/grub-mkimage.c (main): Explicitely flush and sync the output
19947 before closing to ensure that it will be readable by grub-setup.
19948
072b5d31
VS
199492011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
19950
19951 * grub-core/loader/efi/appleloader.c (MAKE_PIWG_PATH): New macro.
19952 (devpath_1): Use MAKE_PIWG_PATH.
19953 (devpath_2): Likewise.
19954 (devpath_3): Likewise.
19955 (devpath_4): Likewise.
19956 (devpath_5): Likewise.
19957 (devpath_6): Likewise.
19958
19959 The appleldr.mod was checked that to be binary identical to previous
19960 version.
19961
7fae0051
Z
199622011-05-05 Zach <mikezackles>
19963
19964 Support 2010 Macbooks.
19965
19966 * grub-core/loader/efi/appleloader.c (devpath_6): New variable.
19967 (devs): Add devpath_6.
19968
7c515bee
VS
199692011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
19970
19971 * util/grub-mkpasswd-pbkdf2.c (main): Use /dev/urandom and not
19972 /dev/random. /dev/urandom is good enough for our purposes (salting).
19973
ed660bd8
VS
199742011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
19975
19976 * util/grub-mkrescue.in (process_input_dir): Include efiemu??.o.
19977
ee5614b7
VS
199782011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
19979
19980 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Correctly handle
19981 hexadecimal.
19982
664889a6
VS
199832011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
19984
19985 * grub-core/efiemu/main.c (grub_efiemu_load_file): Return grub_errno
19986 and not 0 on failure.
19987
bd405bbc
CW
199882011-05-03 Colin Watson <cjwatson@ubuntu.com>
19989
19990 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_dir): Return
19991 GRUB_ERR_BAD_FS rather than GRUB_ERR_IO if the disk is not a pxe
19992 disk; otherwise grub_fs_probe will not fall back to the next
19993 filesystem.
19994 (grub_pxefs_open): Likewise, for consistency.
19995 Reported and tested by: Ezekiel Grave.
19996
4ebff753
CW
199972011-05-03 Colin Watson <cjwatson@ubuntu.com>
19998
19999 * tests/partmap_test.in: Don't hardcode path to parted.
20000 Reported by: Peter Hjalmarsson. Fixes Savannah bug #33150.
20001
8f942553
CW
200022011-05-01 Colin Watson <cjwatson@ubuntu.com>
20003
20004 * docs/grub.texi (GRUB only offers a rescue shell): Suggest the use
20005 of `ls' to find out which devices are available.
20006
3c62402d
VS
200072011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
20008
20009 * grub-core/loader/i386/linux.c (grub_linux_boot): Supply target rather
20010 than source address for efi mmap buffer.
20011
723f63f2
VS
200122011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
20013
20014 * grub-core/partmap/amiga.c (amiga_partition_map_iterate): Fix a
20015 wrong action on non-detecting the magic.
20016
68797f92
VS
200172011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
20018
20019 * grub-core/gnulib/regex.c: Remove GRUB_MOD_LICENSE since it's
20020 already supplied by another part of the module (fixes compilation on
20021 FreeBSD).
20022
6be8715d
VS
200232011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
20024
20025 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Make mdraid UUID
20026 match the one used by mdadm.
20027
e91dba5b
CW
200282011-04-21 Colin Watson <cjwatson@ubuntu.com>
20029
20030 * po/README: Add instructions for creating po/LINGUAS.
20031
c85140b3
CW
200322011-04-21 Colin Watson <cjwatson@ubuntu.com>
20033
20034 Add "SEE ALSO" sections to most man pages. Fixes Debian bug
20035 #551428.
20036
20037 * docs/man/grub-editenv.h2m (SEE ALSO): New section.
20038 * docs/man/grub-emu.h2m (SEE ALSO): Likewise.
20039 * docs/man/grub-fstest.h2m (SEE ALSO): Likewise.
20040 * docs/man/grub-install.h2m (SEE ALSO): Likewise.
20041 * docs/man/grub-macho2img.h2m (SEE ALSO): Likewise.
20042 * docs/man/grub-menulst2cfg.h2m (SEE ALSO): Likewise.
20043 * docs/man/grub-mkconfig.h2m (SEE ALSO): Likewise.
20044 * docs/man/grub-mkdevicemap.h2m (SEE ALSO): Likewise.
20045 * docs/man/grub-mkfont.h2m (SEE ALSO): Likewise.
20046 * docs/man/grub-mkimage.h2m (SEE ALSO): Likewise.
20047 * docs/man/grub-mklayout.h2m (SEE ALSO): Likewise.
20048 * docs/man/grub-mknetdir.h2m (SEE ALSO): Likewise.
20049 * docs/man/grub-mkpasswd-pbkdf2.h2m (SEE ALSO): Likewise.
20050 * docs/man/grub-mkrelpath.h2m (SEE ALSO): Likewise.
20051 * docs/man/grub-mkrescue.h2m (SEE ALSO): Likewise.
20052 * docs/man/grub-ofpathname.h2m (SEE ALSO): Likewise.
20053 * docs/man/grub-pe2elf.h2m (SEE ALSO): Likewise.
20054 * docs/man/grub-probe.h2m (SEE ALSO): Likewise.
20055 * docs/man/grub-reboot.h2m (SEE ALSO): Likewise.
20056 * docs/man/grub-script-check.h2m (SEE ALSO): Likewise.
20057 * docs/man/grub-set-default.h2m (SEE ALSO): Likewise.
20058 * docs/man/grub-setup.h2m (SEE ALSO): Likewise.
20059
92051871
CW
200602011-04-21 Colin Watson <cjwatson@ubuntu.com>
20061
20062 * grub-core/kern/emu/getroot.c
20063 (grub_find_root_device_from_mountinfo): Remove non-virtual-device
20064 test that was incorrectly reintroduced in r3214.
20065 Reported by: Ian Dall. Fixes Savannah bug #33133.
20066
b13f79a4
CW
200672011-04-21 Colin Watson <cjwatson@ubuntu.com>
20068
20069 Fix stack pointer handling in 16-bit relocator.
20070
20071 * grub-core/lib/i386/relocator16.S (grub_relocator16_start): Move
20072 grub_relocator16_sp to %esp rather than %ss, and zero-extend it.
20073 Fixes Ubuntu bug #683904.
20074
9b710a88
VS
200752011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
20076
20077 * configure.ac: Bump version to 1.99~rc2.
20078
d97e7b59
VS
200792011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
20080
20081 * include/grub/dl.h [ASM_FILE]: Adapt for assembly.
20082 * grub-core/lib/i386/setjmp.S: Add missing GRUB_MOD_LICENSE.
20083 * grub-core/lib/x86_64/setjmp.S: Likewise.
20084 * grub-core/lib/mips/setjmp.S: Likewise.
20085 * grub-core/lib/powerpc/setjmp.S: Likewise.
20086 * grub-core/lib/sparc64/setjmp.S: Likewise.
20087
0624551c
VS
200882011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
20089
20090 * grub-core/lib/efi/datetime.c: Add missing GRUB_MOD_LICENSE.
20091 * grub-core/lib/efi/datetime.c: Likewise.
20092
e8f28d4c
VS
200932011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
20094
20095 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_flush):
20096 New function.
20097 (grub_util_biosdisk_close): Use grub_util_biosdisk_flush.
20098 * include/grub/emu/hostdisk.h (grub_util_biosdisk_flush): New proto.
20099 * util/grub-setup.c (setup): Use grub_util_biosdisk_flush.
20100
bba79a15
VS
201012011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
20102
20103 * grub-core/term/gfxterm.c (grub_gfxterm_fullscreen): Preserve previous
20104 bitmap.
20105 (grub_gfxterm_term_init): Likewise.
20106
abc474ef
VS
201072011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
20108
20109 Take into account the decorations the computing menu entry width.
20110
20111 * grub-core/gfxmenu/widget-box.c (get_border_width): New function.
20112 (grub_gfxmenu_create_box): Register get_border_width.
20113 * grub-core/gfxmenu/gui_list.c (draw_menu): Use get_border_width
20114 if available.
20115 * include/grub/gfxwidgets.h (grub_gfxmenu_box): New member
20116 get_border_width.
20117
e74b3947
EP
201182011-04-18 Endres Puschner <code@e7p.de>
20119
20120 * grub-core/gfxmenu/icon_manager.c (grub_gfxmenu_icon_manager_get_icon):
20121 Don't skip first class.
20122
34faa595
VS
201232011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
20124
20125 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Support huge
20126 chunks.
20127 * include/grub/err.h (grub_err_t): New enum value GRUB_ERR_BUG.
20128
93a777e3
VS
201292011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
20130
20131 Complete 64-bit division support.
20132
20133 * grub-core/kern/misc.c (grub_divmod64): Rename to ...
20134 (grub_divmod64_full): ... this. Support 64-bit divisor and reminder.
20135 * include/grub/misc.h (grub_divmod64): Rename to ...
20136 (grub_divmod64_full): ... this.
20137 (grub_divmod64): New inline function.
20138
a5102d94
VS
201392011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
20140
20141 * util/grub-mkimage.c (generate_image): Add forgotten comma.
20142
f3fb7b36
VS
201432011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
20144
20145 * util/grub-mkimage.c (generate_image): Update fwstart.img hash after
20146 performing the necessary test.
20147
9ac718b0
VS
201482011-04-17 Vladimir Serbinenko <phcoder@gmail.com>
20149
20150 * Makefile.am (multiboot.elf): Add -Wl,--build-id=none.
20151 (kfreebsd.elf): Likewise.
20152 (pc-chainloader.elf): Likewise.
20153 (ntldr.elf): Likewise.
20154
50d2cc5a
VS
201552011-04-17 Vladimir Serbinenko <phcoder@gmail.com>
20156
20157 Identify RAID by its UUID rather than (guessed) name.
20158
20159 * grub-core/disk/raid.c (ascii2hex): New function.
20160 (grub_raid_open): Accept mduuid/%s specification.
20161 * grub-core/kern/emu/getroot.c (get_mdadm_name): Revamped into ...
20162 (get_mdadm_uuid): ... this.
20163 (grub_util_get_grub_dev): Use mduuid/%s if UUID is available.
20164
e03f7bea
VS
201652011-04-16 Vladimir Serbinenko <phcoder@gmail.com>
20166
20167 * grub-core/gfxmenu/gui_image.c (rescale_image): Don't attempt to scale
20168 to negative size.
20169
e74c3112
CW
201702011-04-13 Colin Watson <cjwatson@ubuntu.com>
20171
20172 * util/grub.d/10_linux.in: Add rootflags=subvol=<name> if / is on a
20173 btrfs subvolume.
20174 * util/grub.d/20_linux_xen.in: Likewise.
20175
78fa584f
CW
201762011-04-13 Colin Watson <cjwatson@ubuntu.com>
20177
20178 Rewrite /proc/self/mountinfo handling to cope with bind-mounts and
20179 move-mounts appearing out of order. Fixes Ubuntu bug #738345.
20180
20181 * grub-core/kern/emu/getroot.c (find_root_device_from_mountinfo):
20182 Build a list of relevant visible mounts using the mnt_id and
20183 parent_mnt_id fields, and then scan that list at the end.
20184
9d5f8162
CW
201852011-04-12 Colin Watson <cjwatson@ubuntu.com>
20186
20187 * docs/grub.texi (normal): New section.
20188 (normal_exit): New section.
20189 (Embedded configuration): Add reference to normal.
20190 (GRUB only offers a rescue shell): Likewise.
20191 * docs/grub-dev.texi (Error Handling): Fix typo.
20192
09a9d66f
CW
201932011-04-12 Colin Watson <cjwatson@ubuntu.com>
20194
20195 * NEWS: Drop obsolete entry about probe-only btrfs support.
20196
0c676933
CW
201972011-04-12 Colin Watson <cjwatson@ubuntu.com>
20198
20199 * util/import_gcry.py: Fix typo.
20200
ec9f5e0d
VS
202012011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
20202
20203 * NEWS: Add btrfs support.
20204
fe6b2cba
VS
202052011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
202062011-04-11 Colin Watson <cjwatson@ubuntu.com>
20207
20208 BtrFS support. Written by me (Vladimir) with important bugfixes and
20209 even more important testing by Colin.
20210
20211 * Makefile.util.def (libgrubmods.a): Add crc.c and gzio.c
20212 * grub-core/Makefile.core.def (btrfs): Add crc.c.
20213 * grub-core/fs/btrfs.c: Stub replaced with real implementation.
20214 * grub-core/io/gzio.c (grub_gzio): New fields mem_input_size,
20215 mem_input_off and mem_input. All users updated to accept in-RAM input.
20216 (gzio_seek): New function.
20217 (test_zlib_header): Likewise.
20218 (grub_gzio_read): Likewise.
20219 (grub_zlib_decompress): Likewise.
20220 * grub-core/kern/emu/getroot.c (grub_find_root_device_from_mountinfo):
20221 Accept partial and non-virtual mounts.
20222 (grub_guess_root_device): Do rescanning after device_from_mountinfo to
20223 avoid receiving /dev/dm-X as device.
20224 * grub-core/kern/emu/misc.c (grub_make_system_path_relative_to_its_root):
20225 Handle bind and partial mounts.
20226 * grub-core/lib/crc.c: New file.
20227 * include/grub/deflate.h: Likewise.
20228 * include/grub/emu/misc.h (grub_find_root_device_from_mountinfo): New
20229 proto.
20230 * include/grub/lib/crc.h: New file.
20231
e745cf0c
VS
202322011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
20233
20234 Implement automatic module license checking according to new GNU
20235 guidelines.
20236
20237 * grub-core/kern/dl.c (grub_dl_check_license): New function.
20238 (grub_dl_load_core): Use grub_dl_check_license.
20239 * include/grub/dl.h (GRUB_MOD_SECTION): New macro.
20240 (GRUB_MOD_LICENSE): Likewise.
20241 (GRUB_MOD_DUAL_LICENSE): Likewise.
20242 All modules updated.
20243
2a9bc016
CW
202442011-04-11 Colin Watson <cjwatson@ubuntu.com>
20245
20246 * grub-core/fs/btrfs.c (grub_btrfs_fs) [GRUB_UTIL]: Set
20247 reserved_first_sector to 1. btrfs reserves plenty of space for boot
20248 loaders.
20249 Reported by: Gene Cumm. Fixes Ubuntu bug #757446.
20250
8a3bc88e
VS
202512011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
20252
20253 * util/grub-fstest.c (cmd_cmp): Check that sizes match.
20254
af869a4a
VS
202552011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
20256
20257 * util/grub-fstest.c (read_file): Report GRUB error if file opening
20258 failed.
20259
9ee8d94f
VS
202602011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
20261
20262 * grub-core/kern/file.c (grub_file_open): Don't take into account the
20263 parenthesis in the middle of the filename.
20264
b01abe3e
VS
202652011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
20266
20267 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Use correct limits
20268 rather than trying to put initrd way too high.
20269 Reported by: Ryan Lortie <desrt@desrt.ca>
20270
335bda1e
VS
202712011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
20272
20273 * grub-core/boot/mips/yeeloong/fwstart.S (no_cs5536): Put back
20274 improperly removed string.
20275
5ca1a64d
VS
202762011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
20277
20278 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_data): New member
20279 is_disk.
20280 (grub_util_biosdisk_open): Don't apply ioctl on non-disk devices.
20281 (open_device) Likewise.
20282 (grub_util_biosdisk_close): Likewise.
d8ce9995 20283 Reported by: Mark Korenberg.
5ca1a64d 20284
cbac5b1e
AK
202852011-04-10 Alexander Kurtz <kurtz.alex@googlemail.com>
20286
20287 * util/grub-mkconfig_lib.in: Add missing quotes.
20288
088cdb65
CW
202892011-04-10 Colin Watson <cjwatson@ubuntu.com>
20290
20291 * grub-core/gnulib/argp-parse.c (__argp_input): Don't crash if pstate
20292 is NULL.
20293
8b8a81fa
VS
202942011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
20295
20296 Dynamically count the number of lines for the lower banner.
20297
20298 * grub-core/normal/menu_entry.c (per_term_screen): New member
20299 num_entries.
20300 (print_down): Use num_entries.
20301 (update_screen): Likewise.
20302 (grub_menu_entry_run): Set num_entries.
20303 * grub-core/normal/menu_text.c (menu_viewer_data): New member
20304 num_entries.
20305 (grub_print_message_indented): Move real part to ...
20306 (grub_print_message_indented_real): ... here. Additional argument
20307 dry_run.
20308 (draw_border): Additional argument num_entries.
20309 (print_message): Additional argument dry_run.
20310 (print_entries): Receive menu viewer data.
20311 (grub_menu_init_page): New argment num_entries.
20312 (menu_text_set_chosen_entry): Use num_entries.
20313 (grub_menu_try_text): Likewise.
20314 * grub-core/normal/term.c (print_ucs4_terminal): New argument dry_run.
20315 All users updated.
20316 (grub_ucs4_count_lines): New function.
20317 * include/grub/term.h (grub_term_cursor_x): Moved from here ..
20318 * grub-core/normal/menu_text.c (grub_term_cursor_x): ... to here.
20319 * include/grub/term.h (GRUB_TERM_MESSAGE_HEIGHT): Removed.
20320 (grub_term_border_height): Likewise.
20321 (grub_term_num_entries): Likewise.
20322
277f955b
VS
203232011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
20324
20325 * grub-core/boot/mips/yeeloong/fwstart.S: Fix address to error message.
20326 Remove now unused string.
20327
536ce85a
CW
203282011-04-09 Colin Watson <cjwatson@ubuntu.com>
20329
20330 * docs/grub-dev.texi (Finding your way around): Update for 1.99
20331 build system.
20332 (Getting started): GRUB is developed in Bazaar now, not Subversion.
20333
20334 (Comment): Fix typo.
20335 (Getting started): General copy-editing.
20336 (Typical Development Experience): Likewise.
20337 (Error Handling): Likewise.
20338 (Video API): Likewise.
20339
2cf09e32
CW
203402011-04-09 Colin Watson <cjwatson@ubuntu.com>
20341
20342 * docs/grub-dev.texi: Replace MoinMoin syntax with Texinfo syntax
20343 throughout.
20344
1ec652f4
VS
203452011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20346
20347 * util/grub-mkimage.c (main): Handle special naming of yeeloong
20348 directory.
20349
2c583728
CW
203502011-04-08 Colin Watson <cjwatson@ubuntu.com>
20351
20352 * docs/grub-dev.texi: Fix spelling of "developer" throughout.
20353 * grub-core/fs/i386/pc/pxe.c (parse_dhcp_vendor): Fix spelling of
20354 "development".
20355
d7a565e9
VS
203562011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20357
20358 * grub-core/normal/menu_entry.c (run): Use grub_memcpy rather than
20359 grub_strcpy since the lines aren't necessarily 0-terminated.
20360
7c2e4909
VS
203612011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20362
20363 * grub-core/lib/legacy_parse.c (legacy_commands): Find doesn't set
20364 root on legacy.
20365
34c09785
VS
203662011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20367
20368 * grub-core/commands/probe.c (options): Argument to set isn't optional.
20369 (GRUB_MOD_INIT): DEVICE isn't optional.
20370
6a6f8058
VS
203712011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20372
20373 * grub-core/normal/term.c (print_ucs4_terminal): Don't try to put the
20374 word on new line if it's too long anyway. Fixes a hang.
20375
2e335e90
VS
203762011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20377
20378 * include/grub/util/raid.h (grub_util_raid_getmembers): Make argument
20379 const.
20380 * util/grub-setup.c (main): Reuse md device name if available.
20381 * util/raid.c (grub_util_raid_getmembers): Receive device name and
20382 not GRUB name as argument.
20383 Based on patch by: Florian Wagner <fwagner>.
20384
10a7a867
VS
203852011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20386
20387 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
20388 Place mbi on low memory for better compatibility.
20389
7a3d6cd9
VS
203902011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20391
20392 * include/grub/efiemu/efiemu.h: Use grub_memory_hook_t type.
20393
18dd6b47
VS
203942011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
203952011-04-08 Colin Watson <cjwatson@ubuntu.com>
20396
20397 * autogen.sh: Ensure that collate and ctype locale is C.
4ed4ce58 20398 * conf/Makefile.common: Likewise.
18dd6b47 20399
3c0e3f14
VS
204002011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20401
f7148863
VS
20402 * grub-core/normal/menu.c: Add missing include.
20403
204042011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20405
20406 * grub-core/disk/raid.c [GRUB_UTIL]: Add missing include.
3c0e3f14 20407
6d1fa41f
MZ
204082011-04-08 Martin Zuther <mzuther@mzuther.de>
20409
20410 * util/grub-mkconfig.in: Ignore emacsen backup.
20411
478182a8
VS
204122011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20413
20414 * grub-core/kern/emu/hostdisk.c (open_device): Sync on close and not
20415 on open.
20416 (grub_util_biosdisk_close): Likewise.
20417
72a89a54
VS
204182011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20419
20420 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev): Add missing
20421 const attribute and use grub_isdigit.
20422
b5ebecfa
A
204232011-04-06 Andrey <dev_null@ukr.net>
20424
20425 * grub-core/video/fb/video_fb.c (grub_video_fb_setup): Silence older
20426 gcc warning.
20427
7755f66e
VS
204282011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
20429
20430 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align): Add few
20431 useful grub_dprintf's.
20432
461121ff
VS
204332011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
20434
20435 * include/grub/fs.h (grub_dirhook_info): Use unsigned for 1-bit fields.
20436
2a961775
VS
204372011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
20438
20439 * util/grub.d/00_header.in: Don't use LANG unless unifont is available.
20440
adf594cc
VS
204412011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
20442
20443 Output errors if theme loading failed.
20444
20445 * grub-core/gfxmenu/gfxmenu.c (grub_gfxmenu_try): Move the call to
20446 grub_gfxterm_fullscreen on error paths to ...
20447 * grub-core/normal/menu.c (menu_init): ...here. Wait after showing
20448 theme loading error.
20449
665900a3
VS
204502011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
20451
20452 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): Let a bit more
20453 space for older compilers.
20454 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
20455
a562b479
VS
204562011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
20457
20458 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Detect spares
20459 and report them as not RAID members since they are useless for GRUB.
20460 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
20461
850e9373
VS
204622011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
20463
20464 Increase LVM implementation robustness in order not to crash on
20465 configurations like pvmove. Previously code assumed that in some places
20466 only lvs or only pvs are used whereas it seems that they are used
20467 interchangeably.
20468
20469 * grub-core/disk/lvm.c (read_node): New function.
20470 (read_lv): Use read_node.
20471 (grub_lvm_scan_device): Use only first mirror on pvmove'd lvs.
20472 Match volumes only at the end when all lvs are found. Take both
20473 pvs (first) and lvs (second) into account.
20474 * include/grub/lvm.h (grub_lvm_segment): Merge fields stripe_* and
20475 mirror_* into node_*. All users updated.
20476 (grub_lvm_stripe): Merge this ...
20477 (grub_lvm_mirror): ... and this ...
20478 (grub_lvm_node): ... into this. All users updated.
20479
6f332153
VS
204802011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
20481
20482 * grub-core/disk/lvm.c (grub_lvm_scan_device): Print errors on the end
20483 of function to allow further scanning for LVMs.
20484
829ea451
VS
204852011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
20486
20487 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_read): Don't close
20488 on failed seek as it breaks open fd reusage.
20489
09ceb9a5
VS
204902011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
20491
20492 * util/grub-install.in: Add a recommendation to use --recheck before
20493 reporting bugs.
20494
67e11623
VS
204952011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
20496
20497 * docs/grub.texi (Vendor power-on buttons): Explain how the numbers
20498 are obtained.
20499
caee5efd
VS
205002011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
20501
20502 GRUB developper manual based on existing Internals section and
20503 contributions by the various authors with active copyright assignment.
20504
20505 * docs/Makefile.am (info_TEXINFOS): Add grub-dev.texi.
20506 * docs/font_char_metrics.png: New file.
20507 * docs/font_char_metrics.txt: Likewise.
20508 * docs/grub-dev.texi: Likewise.
20509 * docs/grub.texi (Internals): Move from here ...
20510 * docs/grub-dev.texi: ... here.
20511
2cccc747
CW
205122011-04-01 Colin Watson <cjwatson@ubuntu.com>
20513
20514 Store the loopback device as data on loopback grub_disk structures,
20515 rather than the file it points to. This fixes use of freed memory
20516 if an existing loopback device is replaced.
20517
20518 * grub-core/disk/loopback.c (grub_loopback_open): Store dev in
20519 disk->data, not dev->file.
20520 (grub_loopback_read): Adjust file assignment to match.
20521 Fixes Ubuntu bug #742967.
20522
186ae367
CW
205232011-04-01 Colin Watson <cjwatson@ubuntu.com>
20524
20525 * grub-core/disk/loopback.c (grub_cmd_loopback): Fix a memory leak
20526 when replacing an existing device.
20527
cfed2ad0
VS
205282011-04-01 Vladimir Serbinenko <phcoder@gmail.com>
20529
20530 Fix incorrect types in jfs.c. This enables >2TiB disks and fixes some
20531 memory corruptions.
20532
20533 * grub-core/fs/jfs.c (struct grub_jfs_diropen): Interpret bytes as
20534 unsigned.
20535 (grub_jfs_lookup_symlink): Make ino a grub_uint32_t rather than int.
20536 (grub_jfs_blkno): Use 64-bit quantities for block sectors.
20537 (grub_jfs_read_inode): Likewise.
20538 (grub_jfs_opendir): Likewise. Remove now useless casts.
20539 (grub_jfs_getent): Likewise.
20540 Make ino a grub_uint32_t rather than int.
20541 (grub_jfs_mount): Ensure that blksize and log2_blksize are consistent.
20542 (grub_jfs_read_file): Use 64-bit quantities when necessary. Replace
20543 division and module with bit operations.
20544 (grub_jfs_find_file): Make ino a grub_uint32_t.
20545 (grub_jfs_lookup_symlink): Likewise. Use 64-bit quantities
20546
05d2ed32
CW
205472011-04-01 Colin Watson <cjwatson@ubuntu.com>
20548
20549 * grub-core/normal/menu_entry.c (run): Quieten uninitialised
20550 warning. (This was in fact always initialised before use, but GCC
20551 wasn't smart enough to prove that.)
20552 * grub-core/script/lexer.c (grub_script_lexer_yywrap): Likewise.
20553
91dc6073
VS
205542011-03-31 Vladimir Serbinenko <phcoder@gmail.com>
20555
20556 * grub-core/kern/x86_64/efi/callwrap.S (efi_wrap_0): Preserve 16-byte
20557 stack alignment.
20558 (efi_wrap_1): Likewise.
20559 (efi_wrap_2): Likewise.
20560 (efi_wrap_3): Likewise.
20561 (efi_wrap_4): Likewise.
20562 (efi_wrap_5): Likewise.
20563 (efi_wrap_6): Likewise.
20564 (efi_wrap_10): Likewise.
20565 Based on information by: Red Hat/Peter Jones.
20566
a8afc1d1
CW
205672011-03-31 Colin Watson <cjwatson@ubuntu.com>
20568
20569 * grub-core/mmap/efi/mmap.c (grub_mmap_unregister): Remove
20570 set-but-not-used variable.
20571
a826cc7d
CW
205722011-03-31 Colin Watson <cjwatson@ubuntu.com>
20573
20574 * docs/grub.texi (Simple configuration): Be more explicit about
20575 GRUB_DEFAULT, and add an example.
20576 Reported by: Leslie Rhorer.
20577
875b67ba
CW
205782011-03-30 Colin Watson <cjwatson@ubuntu.com>
20579
20580 * docs/grub.texi (Commands): Link to "GRUB only offers a rescue
20581 shell".
20582
fd7cd914
AS
205832011-03-30 Alexey Shvetsov <alexxy@gentoo.org>
20584
20585 * util/grub.d/10_linux.in: Add gentoo-specific config filename.
20586 * util/grub.d/20_linux_xen.in: Likewise.
20587
090b1b6a
VS
205882011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
20589
20590 * util/grub.d/10_linux.in: Try alternative config filenames where
20591 we parse config file.
20592 * util/grub.d/20_linux_xen.in: Likewise.
20593
baad885c
AS
205942011-03-30 Alexey Shvetsov <alexxy@gentoo.org>
20595
20596 * util/grub.d/10_linux.in: Add gentoo-specific Linux and initrd names.
20597 * util/grub.d/20_linux_xen.in: Likewise.
20598
241e41f5
VS
205992011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
20600
20601 * grub-core/disk/raid.c (insert_array): Add few potentially
20602 useful grub_util_info.
20603 (grub_raid_register): Likewise.
20604
56445fb2
VS
206052011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
20606
20607 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev) [__linux__]:
20608 Preserve partition number in mdadm code path.
20609
c871b1c6
VS
206102011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
20611
20612 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Add
20613 few potentially useful grub_util_info.
20614
5e631b4f
CW
206152011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
20616
20617 * grub-core/disk/lvm.c (grub_lvm_scan_device): Remove spurious \n.
20618
2d5d0333
CW
206192011-03-30 Colin Watson <cjwatson@ubuntu.com>
20620
20621 * docs/grub.texi (default): Use @example rather than nested
20622 itemized lists to avoid breaking gendocs.
20623
3d7ed04e
CW
206242011-03-30 Colin Watson <cjwatson@ubuntu.com>
20625
20626 * docs/grub.texi (Future): Update.
20627
abf04200 206282011-03-30 Colin Watson <cjwatson@ubuntu.com>
20629
20630 * docs/grub.texi (Environment): New chapter.
20631 (Changes from GRUB Legacy): Link to "Environment block" section for
20632 details of limitations.
20633 (Simple configuration): Likewise. Link to documentation of gfxmode
20634 and gfxpayload variables from GRUB_GFXMODE and GRUB_GFXPAYLOAD
20635 respectively.
20636 (Shell-like scripting): Note that normal variables are stored in the
20637 environment.
20638 (gettext): Link to documentation of lang and locale_dir.
20639 (list_env): New section.
20640 (load_env): New section.
20641 (save_env): New section.
20642
20643 (Reporting bugs): Fix typo.
20644
e1ad0edd
VS
206452011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
20646
20647 * docs/grub.texi: Correctly use "terminal_input" and not "terminal" in
20648 the example.
20649
5d803174
VS
206502011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
20651
20652 * grub-core/term/at_keyboard.c (set_scancodes)
20653 [!GRUB_MACHINE_MIPS_YEELOONG && !GRUB_MACHINE_QEMU]: Use scancode set 1.
20654
2a2da1d0
CW
206552011-03-30 Colin Watson <cjwatson@ubuntu.com>
20656
20657 * docs/grub.texi (Menu-specific commands): Remove some semantics
20658 that were true in GRUB Legacy but not in GRUB 2.
20659 (submenu): New section.
20660 (false): New section.
20661 (read): New section.
20662 (true): New section.
20663
a7527639
CW
206642011-03-30 Colin Watson <cjwatson@ubuntu.com>
20665
20666 * docs/grub.texi (Changes from GRUB Legacy): Minor proofreading.
20667
206682011-03-30 Colin Watson <cjwatson@ubuntu.com>
e30af029
CW
20669
20670 * docs/grub.texi (Simple configuration): Explain some of the
20671 current limitations of grub-mkconfig.
8a748df2 20672 Reported by: Leslie Rhorer.
e30af029 20673
fc858482
VS
206742011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20675
20676 Old macs search for boot.efi rather than for bootia32.efi.
20677
20678 * util/grub-install.in: Copy bootia32.efi to boot.efi.
20679 * util/grub-mkrescue.in: Likewise.
20680 Suggested by: Peter Jones.
20681
e1eb511d
VS
206822011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20683
20684 * util/grub.d/20_linux_xen.in: Accept old-style xen kernels.
20685
70e75364
VS
206862011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20687
20688 * include/grub/lvm.h (grub_lvm_lv): New field 'visible'.
20689 (grub_lvm_segment): New fields 'type', 'mirror_count' and 'mirrors'.
20690 (grub_lvm_mirror): New struct.
20691 * grub-core/disk/lvm.c (grub_lvm_checkvalue): Commented out.
20692 (grub_lvm_iterate): Iterate only visible volumes.
20693 (grub_lvm_read): Factor out to ..
20694 (read_lv): ... this. Support mirrors.
20695 (grub_lvm_read): New wrapper function.
20696 (grub_lvm_scan_device): Parse mirrors. Skip everything that isn't
20697 stripped or mirrored.
20698
fc18f6a3
VS
206992011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20700
20701 * util/grub.d/10_linux.in: Skip vmlinux-* on x86 platforms.
20702
5c650f4c
CW
207032011-03-29 Colin Watson <cjwatson@ubuntu.com>
20704
20705 * docs/grub.texi (loopback): New section.
20706
61d7156b
CW
207072011-03-29 Colin Watson <cjwatson@ubuntu.com>
20708
20709 * grub-core/disk/loopback.c (GRUB_MOD_INIT): Stop documenting
20710 removed -p option.
20711
994b8264
CW
207122011-03-29 Colin Watson <cjwatson@ubuntu.com>
20713
20714 * docs/grub.texi (BIOS installation): New section, partly based on
20715 previous text in other sections.
20716 (Installing GRUB using grub-install): Replace BIOS discussion with a
20717 cross-reference.
20718 (Images): Likewise.
20719
9e4d19e0
VS
207202011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20721
20722 * grub-core/kern/emu/hostdisk.c (find_partition_start)
20723 [HAVE_DIOCGDINFO]: Add safety checks.
20724
a307c0b2
VS
207252011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20726
20727 * util/grub.d/10_kfreebsd.in: Allow ufs.ko to be missing as it's
20728 per default compiled in kernel and prior to 8.0 isn't shipped at all.
20729
b4db4f39
CW
207302011-03-29 Colin Watson <cjwatson@ubuntu.com>
20731
20732 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): If
20733 real_sb->size is zero (e.g. RAID-0), get the disk size from
20734 real_sb->data_size instead.
20735 Fixes Ubuntu bug #743136.
20736
35e5f84c
VS
207372011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20738
20739 * grub-core/normal/misc.c (grub_normal_print_device_info): Use correct
20740 printf clauses for printing size and start.
20741
d2e29d81
VS
207422011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20743
20744 * grub-core/fs/ext2.c (grub_ext2_read_inode): Fix an overflow.
20745 Reported and tested by: Timothy Nikkel.
20746
ed5587af
VS
207472011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20748
20749 * grub-core/term/gfxterm.c (dirty_region_add): Move core part to ...
20750 (dirty_region_add_real): ... this.
20751 (dirty_region_add): Don't discard margin refresh when performing
20752 scheduled repaint.
20753
a1dc717c
VS
207542011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20755
20756 * grub-core/lib/relocator.c (allocate_regstart)
20757 [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Avoid grub_dprintf since not all
20758 terminals are capabple of malloc-free operation.
20759 (allocate_inreg) [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Likewise.
20760 (malloc_in_range) [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Likewise.
20761
9f3677d3
VS
207622011-03-29 Mario Limonciello <Mario_Limonciello@Dell.com>
20763
20764 * util/grub-setup.c: Copy the partition table zone if floppy support
20765 is disabled, even if no partition table is found.
20766
20767 Otherwise, the BIOS on Dell Latitude E series laptops will freeze
20768 during POST if an invalid partition table is contained in the PBR
20769 of the active partition when GRUB is installed to a partition.
20770
24148725
CW
207712011-03-28 Colin Watson <cjwatson@debian.org>
20772
20773 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Remove stale
20774 comment.
20775
f329eda7
CW
207762011-03-28 Colin Watson <cjwatson@debian.org>
20777
20778 * grub-core/disk/raid.c (grub_raid_register): Adjust debug message
20779 to be specific about what kind of RAID device we're scanning for.
20780
c482ad98
SG
207812011-03-26 Seth Goldberg <seth.goldberg@oracle.com>
20782
20783 * grub-core/kern/emu/getroot.c (find_root_device_from_libzfs): Don't
20784 return freed string.
20785
5ee04984
VS
207862011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
20787
20788 * grub-core/fs/iso9660.c (grub_iso9660_label): Rtrim the label.
20789
f4727da9
VS
207902011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
20791
20792 Use libgeom on FreeBSD to detect partitions.
20793
20794 * Makefile.util.def (grub-mkimage): Add LIBGEOM to ldadd.
20795 (grub-mkrelpath): Likewise.
20796 (grub-script-check): Likewise.
20797 (grub-editenv): Likewise.
20798 (grub-mkpasswd-pbkdf2): Likewise.
20799 (grub-fstest): Likewise.
20800 (grub-mkfont): Likewise.
20801 (grub-mkdevicemap): Likewise.
20802 (grub-probe): Likewise.
20803 (grub-setup): Likewise.
20804 (grub-ofpathname): Likewise.
20805 (grub-mklayout): Likewise.
20806 (example_unit_test): Likewise.
20807 (grub-menulst2cfg): Likewise.
20808 * grub-core/Makefile.core.def (grub-emu): Likewise.
20809 (grub-emu-lite): Likewise.
20810 * configure.ac: Check for -lgeom on FreeBSD and set LIBGEOM.
20811 * grub-core/kern/emu/hostdisk.c [FreeBSD]: Include libgeom.h. Don't
20812 define HAVE_DIOCGDINFO.
20813 (follow_geom_up) [FreeBSD]: New function.
20814 (find_partition_start) [FreeBSD]: Rewritten using follow_geom_up.
20815 (convert_system_partition_to_system_disk) [FreeBSD]: Likewise.
20816 (grub_util_biosdisk_get_grub_dev) [FreeBSD]: Use FreeBSD path
20817 unconditionally of HAVE_DIOCGDINFO.
20818
82fe6c75
VS
208192011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
20820
20821 Fix FreeBSD compilation problem.
20822
20823 * grub-core/kern/emu/hostdisk.c (MAJOR) [FreeBSD]: New definition.
20824 (FLOPPY_MAJOR) [FreeBSD]: Likewise.
20825
4c6c9431
CW
208262011-03-24 Colin Watson <cjwatson@ubuntu.com>
20827
20828 * grub-core/video/fb/video_fb.c (grub_video_fb_get_info_and_fini):
20829 Switch back to page zero before loading a kernel, since some kernel
20830 drivers expect that.
20831 Thanks to: Felix Kuehling.
20832
c7064d94
VS
208332011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
20834
20835 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_addr)
20836 [DEBUG_RELOCATOR]: Reuse grub_mm_check.
20837 (grub_relocator_alloc_chunk_align) [DEBUG_RELOCATOR]: Likewise.
20838
3f71cded
VS
208392011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
20840
20841 * include/grub/mm.h (GRUB_MM_CHECK): Rename to ...
20842 (grub_mm_check): ... this. MAke a function-like macro and use GRUB_FILE.
20843
ef6de21a
VS
208442011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
20845
20846 * grub-core/lib/relocator.c (allocate_inreg): Avoid dprintf unless
20847 DEBUG_RELOCATOR is defined since gfxterm can't cope with output when
20848 malloc is disabled.
20849
8bc66a2c
VS
208502011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
20851
20852 * grub-core/loader/i386/bsdXX.c (grub_freebsd_load_elfmodule): Account
20853 for modules headers when counting the needed allocation size.
20854
5657722c
VS
208552011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
20856
20857 * grub-core/term/gfxterm.c (calculate_normal_character_width): Return 8
20858 if no ASCII character is found to prevent crash.
20859
41a85f55
AK
208602011-03-23 Alexander Kurtz <kurtz.alex@googlemail.com>
20861
20862 * grub-core/video/bitmap.c (match_extension): Ignore case.
20863
59e1e5f1
VS
208642011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
20865
20866 * grub-core/normal/menu_entry.c (init_line): Fix off-by-one error.
20867
bd4d051a
VS
208682011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
20869
20870 * grub-core/script/parser.y: Declare "time" as valid argument.
20871
bae7fcc1
PJ
208722011-03-23 Peter Jones <pjones@redhat.com>
20873
20874 Fix incorrect assert failure reporting.
20875
20876 * grub-core/tests/example_functional_test.c (example_test): Add
20877 a failure comment.
20878 * grub-core/tests/lib/test.c (add_failure): Renamed to ...
20879 (failure_start): ...this. Check that malloc succeeded.
20880 Don't call xvasprintf. Return failure struct.
20881 (failure_append_vtext): New function.
20882 (failure_append_text): Likewise.
20883 (add_failure): Likewise.
20884 (grub_test_assert_helper): Likewise.
20885 * include/grub/test.h (grub_test_assert_helper): New declaration.
20886 (grub_test_assert): Macro rewritten.
20887
537dc9be
VS
208882011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
20889
20890 * grub-core/normal/main.c (GRUB_MOD_INIT): Export pager variable.
20891
fa3e01bf
VS
208922011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
20893
20894 * grub-core/lib/i386/pc/biosnum.c: Add missing include.
20895
b1d28404
VS
208962011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
20897
20898 * grub-core/disk/usbms.c (grub_usbms_reset): Transform USB-style error
20899 into GRUB-style one.
20900
2e3e2e09
VS
209012011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
20902
20903 * grub-core/bus/usb/usbtrans.c (grub_usb_control_msg): Return usb-style
20904 error and not grub_errno.
20905 * grub-core/bus/usb/usbhub.c (grub_usb_add_hub): Likewise.
20906
ed57e557
VS
209072011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
20908
20909 * grub-core/bus/usb/uhci.c (grub_uhci_detect_dev): Return
20910 GRUB_USB_SPEED_NONE in case of failure and not the error code.
20911
d1611f01
VS
209122011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
20913
20914 * grub-core/efiemu/i386/pc/cfgtables.c
20915 (grub_machine_efiemu_init_tables): Make declaration a prototype.
20916 * grub-core/loader/xnu.c (grub_xnu_lock): Likewise.
20917 (grub_xnu_unlock): Likewise.
20918 * grub-core/normal/cmdline.c (grub_cmdline_get/cl_set_pos_all): Likewise.
20919
7d4e39d6
VS
209202011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
20921
20922 * grub-core/bus/usb/usb.c (attach_hooks): Make static.
20923 * grub-core/bus/usb/usbhub.c (hubs): Likewise.
20924 * grub-core/commands/hashsum.c (aliases): Likewise.
20925 * grub-core/commands/setpci.c (pci_registers): Likewise.
20926 * grub-core/disk/usbms.c (attach_hook): Likewise.
20927 * grub-core/fs/zfs/zfs.c (decomp_table): Likewise.
20928 (zio_checksum_table): Likewise.
20929 * grub-core/gettext/gettext.c (grub_gettext_msg_list): Likewise.
20930 * grub-core/gfxmenu/gfxmenu.c (cached_view): Likewise.
20931 * grub-core/lib/legacy_parse.c (legacy_commands): Likewise.
20932 * grub-core/lib/relocator.c (leftovers): Likewise.
20933 (extra_blocks): Likewise.
20934 * grub-core/loader/i386/bsd.c (relocator): Likewise.
20935 * grub-core/loader/i386/multiboot_mbi.c (modules): Likewise.
20936 (modules_last): Likewise.
20937 * grub-core/loader/i386/xnu.c (table_aliases): Likewise.
20938 (devices): Likewise.
20939 * grub-core/loader/multiboot_mbi2.c (modules): Likewise.
20940 (modules_last): Likewise.
20941 * grub-core/normal/auth.c (users): Likewise.
20942 * grub-core/normal/context.c (initial_menu): Likewise.
20943 (current_menu): Likewise.
20944 * grub-core/normal/crypto.c (crypto_specs): Likewise.
20945 * grub-core/term/serial.c (grub_serial_ports): Likewise.
20946 (grub_serial_terminfo_input_template): Likewise.
20947 (grub_serial_terminfo_output_template): Likewise.
20948 (grub_serial_terminfo_input): Likewise.
20949 (grub_serial_terminfo_output): Likewise.
20950 (registered): Likewise.
20951 * grub-core/term/usb_keyboard.c (attach_hook): Likewise.
20952
40fc4659
VS
209532011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
20954
20955 * grub-core/video/bochs.c (grub_video_bochs_setup): Use
20956 grub_video_mode_type_t.
20957 * grub-core/video/cirrus.c (grub_video_cirrus_setup): Likewise.
20958 * grub-core/video/i386/pc/vbe.c (grub_video_vbe_setup): Likewise.
20959 * grub-core/video/i386/pc/vga.c (grub_video_vga_setup): Likewise.
20960
2da48d28
VS
209612011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
20962
20963 * util/grub-install.in: Correct the x86-64 name as x86_64.
20964
9b43bf39
CW
209652011-03-11 Colin Watson <cjwatson@ubuntu.com>
20966
20967 * grub-core/boot/i386/pc/lnxboot.S (real_code_2): Ensure that the
20968 initial chunk read from the kernel always includes GRUB's multiboot
20969 header, which is now outside the first sector.
20970
be1a7ce0
CW
209712011-03-09 Colin Watson <cjwatson@ubuntu.com>
20972
20973 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Page-align
20974 cached mmap_size, so that this works correctly when called multiple
20975 times.
20976 Reported by: Daniel Kahn Gillmor. Should fix Debian bug #616638.
20977
83a3c48d
CW
209782011-03-09 Colin Watson <cjwatson@ubuntu.com>
20979
20980 * docs/grub.texi (Simple configuration): Tidy up formatting.
20981
57d75699
SJ
209822011-03-07 Szymon Janc <szymon@janc.net.pl>
20983
20984 * grub-core/fs/zfs/zfs.c (zap_leaf_lookup):
20985 Set-but-not-used variable removed.
20986
028501a0
VS
209872011-02-12 Vladimir Serbinenko <phcoder@gmail.com>
20988
20989 Workaround yet another IEEE1275 bug.
20990
20991 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum value
20992 GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS.
20993 * grub-core/kern/ieee1275/mmap.c (grub_machine_mmap_iterate): Ignore
20994 adress_cells and size:cells if GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS
20995 is set.
20996 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
20997 GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS on powermacs.
20998
d998657d
VS
209992011-02-12 Vladimir Serbinenko <phcoder@gmail.com>
21000
21001 * grub-core/partmap/msdos.c (pc_partition_map_embed): Fix off by one
21002 error.
21003
fee7cdd4
CW
210042011-02-11 Colin Watson <cjwatson@ubuntu.com>
21005
21006 * util/grub.d/20_linux_xen.in: Bail out early if linux_list is
21007 empty, since in that case we can only generate either nothing or a
21008 syntactically invalid configuration file.
21009 Reported by: Michal Suchanek. Fixes Debian bug #612898.
21010
97286eb5
CW
210112011-02-09 Colin Watson <cjwatson@ubuntu.com>
21012
21013 * docs/grub.texi (Kernel): Add reference to grub-mkrescue.
21014 (Making a GRUB bootable CD-ROM): Likewise.
21015 (Invoking grub-mkrescue): New section.
21016 Reported by: Yann Dirson. Fixes Debian bug #612585.
21017
22b28eb3
CW
210182011-02-09 Colin Watson <cjwatson@ubuntu.com>
21019
21020 * util/grub-install.in: Remove unnecessary brackets from tr
21021 arguments.
21022 * util/grub.d/10_hurd.in: Likewise.
21023 * util/grub.d/10_kfreebsd.in: Likewise.
21024 * util/grub.d/10_linux.in: Likewise.
21025 * util/grub.d/20_linux_xen.in: Likewise.
21026 Reported by: Jamie Heilman. Fixes Debian bug #612564.
21027
7e735e43
CW
210282011-02-08 Colin Watson <cjwatson@ubuntu.com>
21029
21030 * include/grub/file.h (not_easly_seekable): Rename to ...
21031 (not_easily_seekable): ... this. Update all users.
21032
800f1881
CW
210332011-01-28 Colin Watson <cjwatson@ubuntu.com>
21034
21035 * docs/grub.texi (Making a GRUB bootable CD-ROM): Update to describe
21036 grub-mkrescue.
21037
3281d3d6
VS
210382011-01-24 Vladimir Serbinenko <phcoder@gmail.com>
21039
21040 * util/grub-mkimage.c (generate_image): Refuse to create the images
21041 bigger than the actual flash (512K) in Loongson machines. 512K is also
21042 the biggest chip supported by them.
21043
3533413c
VS
210442011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
21045
21046 * grub-core/kern/emu/getroot.c: Include config-util.h explicitly.
21047
73ae4f4f
VS
210482011-01-22 Anthony DeRobertis <anthony@derobert.net>
21049
21050 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Check
21051 super_offset field.
21052
37f4f608
VS
210532011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
21054
21055 * util/grub-install.in: Ignore install device on platforms
21056 where it doesn't make sense. Always use UUIDs except on pc, efi and
21057 sparc64.
21058 Reported by: Daniel Kahn Gillmor.
21059
03a4ccb5
VS
210602011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
21061
21062 * grub-core/bus/bonito.c (write_bases): Fix direction of the shift.
21063
ffc8f4d8
VS
210642011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
21065
21066 * grub-core/partmap/bsdlabel.c: Include grub/emu/misc.h and not grub/util/misc.h.
21067 (iterate_real): Don't rely on partition being non-NULL.
21068
80f23be7
VS
210692011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
21070
21071 * grub-core/script/argv.c (round_up_exp): unsigned is 32-bit on all
21072 supported platforms. Put a compile time assert for this rather than
21073 generate a warning with 32-bit shift.
21074
5d4f4dd5
VS
210752011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
21076
21077 * grub-core/disk/scsi.c (grub_scsi_read): Fix binary and check and make
21078 logical expression more readable.
21079
e489601a
VS
210802011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
21081
21082 * grub-core/disk/raid.c (insert_array): Ensure uniqueness of p->number
21083 even if some elements have a name.
21084 Reported by: Alexander GQ Gerasiov.
21085
96e0a6ea
CW
210862011-01-22 Colin Watson <cjwatson@ubuntu.com>
21087
21088 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Consider a
21089 path unreadable if `grub-probe -t abstraction' fails, for example if
21090 memberlist fails on an LVM volume group.
21091 Reported by: Darius Jahandarie.
21092
81431e2b
CW
210932011-01-22 Colin Watson <cjwatson@ubuntu.com>
21094
21095 * docs/grub.texi (Simple configuration): Document
21096 GRUB_PRELOAD_MODULES.
21097
5e79d66a
CW
210982011-01-17 Colin Watson <cjwatson@ubuntu.com>
21099
21100 * .bzrignore: Remove nonexistent grub-pbkdf2.
21101
646ada34
VS
211022011-01-16 Vladimir Serbinenko <phcoder@gmail.com>
21103
21104 * configure.ac: Bump version to 1.99~rc1.
21105
04360337
VS
211062011-01-15 Vladimir Serbinenko <phcoder@gmail.com>
21107
21108 * util/grub-mkimage.c (generate_image): Check fwstart.img checksum
21109 for safety.
21110
46c9db88
VS
211112011-01-14 Vladimir Serbinenko <phcoder@gmail.com>
21112
21113 * grub-core/kern/mips/yeeloong/init.c (grub_machine_init): Init boot
21114 module.
21115
211162011-01-14 Vladimir Serbinenko <phcoder@gmail.com>
1d955d00
VS
21117
21118 * grub-core/Makefile.core.def (fwstart): Add lost LDFLAGS.
21119
4fbf1852
VS
211202011-01-13 Vladimir Serbinenko <phcoder@gmail.com>
21121
21122 * grub-core/fs/zfs/zfsinfo.c (grub_cmd_zfs_bootfs): Quote bootpath and
21123 diskdevid.
21124
f1632d4d
VS
211252011-01-13 Vladimir Serbinenko <phcoder@gmail.com>
21126
21127 Fix compilation on cygwin.
21128
21129 * conf/Makefile.common (STRIPFLAGS_KERNEL): Add -F elf32-i386 and
21130 -R .drectve on cygwin.
21131 * conf/i386-pc-cygwin-img-ld.sc: Merge rdata and pdata into data.
21132 * configure.ac: Use $(top_builddir) in TARGET_OBJ2ELF.
21133 (COND_CYGWIN): New condition.
21134 * grub-core/Makefile.am (%.mod): Set TARGET_OBJ2ELF.
21135 * grub-core/genmod.sh.in: Use ${TARGET_OBJ2ELF} and
21136 not @TARGET_OBJ2ELF@.
21137 * util/grub-pe2elf.c (write_symbol_table): Use pe_symtab->type and not
21138 type to determine whether aux is to be used.
21139
0b5e127b
VS
211402011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
21141
21142 * util/ieee1275/ofpath.c (grub_util_devname_to_ofpath): Use the
21143 realpath'ed device string.
21144 Handle floppy (somewhat).
21145 Issue error in unknown case rather than garbage.
21146 Reported by: Axel Beckert.
21147
173b71e9
VS
211482011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
21149
21150 * util/grub.d/00_header.in (load_video): Handle the case when no video
21151 drivers available.
21152 Thanks to: Axel Beckert.
21153
f8f479db
VS
211542011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
21155
21156 * util/grub-mkfont.c (write_font_pf2): Use appropriate type for data
21157 variable. Fixes problem on big endian platforms.
21158
8fc0a245
VS
211592011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
21160
21161 * grub-core/Makefile.core.def (ieee1275_fb): Disable on sparc.
21162 It doesn't work well there.
21163
b8494fbe
VS
211642011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
21165
21166 * grub-core/normal/context.c (grub_env_context_close): Silence spurious
21167 warning.
21168 * grub-core/normal/menu.c (grub_menu_execute_entry): Likewise.
21169 * grub-core/partmap/msdos.c (pc_partition_map_embed): Use unsigned
21170 counter.
21171
b44a558c
VS
211722011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
21173
21174 Use alias->path rather than buggy "canon".
21175
21176 * grub-core/disk/ieee1275/ofdisk.c (ofdisk_hash_add_real): New function.
21177 (ofdisk_hash_add): New argument curcan. All users updated.
21178
51fa856c
CW
211792011-01-11 Colin Watson <cjwatson@ubuntu.com>
21180
21181 * configure.ac: Fall back to `true' if `makeinfo' does not exist.
21182
9da068a5
VS
211832011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
21184
21185 * grub-core/loader/powerpc/ieee1275/linux.c (grub_linux_load32): Apply
21186 loadmask before doing any calculations. Use correct type for offset.
21187 (grub_linux_load64): Likewise.
21188
86205c94
CW
211892011-01-11 Colin Watson <cjwatson@ubuntu.com>
21190
21191 * util/grub-mklayout.c (console_grub_equivalences_shift): Terminate
21192 with NULL.
21193 (console_grub_equivalences_unshift): Likewise.
21194 Reported by: Daniel Dehennin.
21195
4531a206
VS
211962011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
21197
21198 * grub-core/fs/i386/pc/pxe.c (set_mac_env): Export variable.
21199 (set_env_limn_ro): Likewise.
21200 (GRUB_MOD_INIT): Likewise.
21201 * grub-core/hook/datehook.c (GRUB_MOD_INIT): Likewise. Change to
21202 ARRAY_SIZE while on it.
21203 (GRUB_MOD_FINI): Change to ARRAY_SIZE.
21204 * grub-core/normal/context.c (grub_env_export): Move from here ...
21205 * grub-core/kern/env.c (grub_env_export): ... here.
21206 * grub-core/normal/context.c (grub_cmd_export): Skip exporting root and
21207 prefix.
21208 * grub-core/kern/main.c (grub_main): Export root and prefix.
21209 * include/grub/env.h (grub_env_export): Export.
21210 Reported by: Seth Goldberg.
21211
45146057
VS
212122011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
21213
21214 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
21215 Take into account space used by ELF sections and multiboot palette.
21216 Reported by: Grégoire Sutre.
21217
f093110b
VS
212182011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
21219
21220 * BUGS: New file.
21221
3395fe52
VS
212222011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21223
21224 Pass more appropriate video id to Linux.
21225
21226 * grub-core/loader/i386/linux.c (grub_linux_setup_video): Use
21227 grub_video_get_driver_id and variable gfxpayloadforcelfb to
21228 fill have_vga.
21229 (grub_linux_boot): Rely on grub_linux_setup_video to fill have_vga and
21230 shift params->lfb_size.
21231 * include/grub/i386/linux.h: Make an enume out of have_vga values.
21232
c2fa6cbb
VS
212332011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21234
21235 * util/grub-menulst2cfg.c: Add missing include of misc.h.
21236
b3ff6ff0
VS
212372011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21238
21239 * grub-core/fs/zfs/zfsinfo.c (grub_cmd_zfs_bootfs): Use comma as
21240 separator and pass bootpath/devid even if only one of them is available.
21241 Reported by: Seth Goldberg.
21242
ae67942e
VS
212432011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21244
21245 Don't use post-4G memory on EFI even if 64-bit since some non-compliant
21246 implementations bug on them.
21247
21248 * grub-core/kern/efi/mm.c (grub_efi_allocate_pages): Skip post-4G
21249 memory.
21250 (filter_memory_map): Likewise.
21251
d570097a
VS
212522011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21253
21254 * util/grub-kbdcomp.in: Add missing prefix and exec_prefix variables.
21255 Reported by: nebuchadnezzar.
21256
a508e776
VS
212572011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21258
21259 * util/grub-kbdcomp.in: Add missing transform and bindir variables.
21260 Reported by: nebuchadnezzar.
21261
dcb883b1
VS
212622011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21263
21264 Submenu default support.
21265
21266 * grub-core/normal/menu.c (grub_menu_execute_entry): New parameter
21267 auto_boot. All users updated.
21268 Declared static.
21269 Handle chosen and default with submenus.
21270 (grub_menu_execute_with_fallback): Declared static.
21271 Don't notify failure if autobooted. Upper level does it.
21272 (menuentry_eq): New function.
21273 (get_entry_number): Use menuentry_eq.
21274 (show_menu): New parameter "autobooted". All users updated.
21275 (grub_show_menu): Likewise.
21276 * include/grub/normal.h (grub_show_menu): Likewise.
21277 * include/grub/menu.h (grub_menu_execute_entry): Removed.
21278 (grub_menu_execute_with_fallback): Likewise.
21279
6fef99b4
VS
212802011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21281
21282 * util/grub-mklayout.c (usage): Update help text.
21283
47a77af5
VS
212842011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21285
21286 * grub-core/commands/legacycfg.c (legacy_file): Trim the line.
21287
ce6bb3ee
VS
212882011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21289
21290 * util/grub-menulst2cfg.c (main): Trim the line.
21291
db87be2a
VS
212922011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21293
21294 * grub-core/kern/i386/pc/init.c (grub_get_conv_memsize): Removed.
21295 (grub_machine_init): Don't check amount of low memory as reportedly
21296 INT 12h can be broken and if low memory is too low we wouldn't have
21297 gotten into grub_machine_init anyway.
21298
c49849cc
VS
212992011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21300
21301 * grub-core/kern/i386/pc/mmap.c (grub_get_conv_memsize): New function.
21302 (grub_machine_mmap_iterate): Take low memory into account
21303
b1969b30
VS
213042011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21305
21306 * grub-core/fs/btrfs.c (grub_btrfs_mount): Transform out of range into
21307 badfs.
21308 Reported by: TiCPU.
21309
cf0eaf13
VS
213102011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21311
21312 * grub-core/disk/raid.c (insert_array): Display RAID name in duplicate
21313 members errors.
21314
1f060f39
GS
213152011-01-09 Grégoire Sutre <gregoire.sutre@gmail.com>
21316
21317 * util/grub.d/10_netbsd.in (netbsd_load_fs_module): New function.
21318 (netbsd_entry): Use netbsd_load_fs_module() to load filesystem module.
21319
a21e5672
GS
213202011-01-09 Grégoire Sutre <gregoire.sutre@gmail.com>
21321
21322 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Handle
21323 openbsd and netbsd types being in part_bsd module.
21324
c88172fa
VS
213252011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
21326
21327 * config.h.in (_LARGEFILE_SOURCE): Add missing define.
21328 (_FILE_OFFSET_BITS): Likewise.
21329 Reported by: Seth Goldberg.
21330
53798c4b
GS
213312011-01-08 Grégoire Sutre <gregoire.sutre@gmail.com>
21332
21333 * configure.ac: Check for libdevmapper header.
21334
e7121b69
VS
213352011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
21336
21337 * grub-core/fs/zfs/zfs.c (dmu_read): Use void * for some pointers to
21338 avoid aliasing.
21339 (fzap_lookup): Likewise.
21340 (dnode_get): Likewise.
21341 (make_mdn): Likewise.
21342 (zfs_mount): Likewise.
21343 (fzap_iterate): Use temporary pointer to avoid aliasing.
21344 (grub_zfs_read): Likewise.
21345 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Likewise.
21346 * grub-core/loader/xnu.c (grub_cmd_xnu_kernel): Use void * for some
21347 pointers to avoid aliasing.
21348 (grub_cmd_xnu_kernel64): Likewise.
21349 (grub_xnu_load_driver): Likewise.
21350
fc836af9
VS
213512011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
21352
21353 * grub-core/commands/terminal.c (grub_cmd_terminal_input): Silence
21354 aliasing warning.
21355 (grub_cmd_terminal_output): Likewise.
21356 Reported and tested by: Grégoire Sutre.
21357
f9f37648
VS
213582011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
21359
21360 * grub-core/term/at_keyboard.c (grub_keyboard_getkey): Silence spurious
21361 warning.
21362 Reported and tested by: Grégoire Sutre.
21363
ec1dfd63
VS
213642011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
21365
21366 * configure.ac: Do CPU substitution even if it's specified explicitly.
21367 Reported and tested by: Alain Greppin.
21368
9462775a
VS
213692011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
21370
21371 * grub-core/Makefile.am (rs_decoder.S): Force compilation with -Os.
21372 Reported and tested by: Alain Greppin.
21373
0fd48e35
VS
213742011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
21375
21376 Satisfy some bison versions need for inttypes.h.
21377
21378 * grub-core/lib/posix_wrap/inttypes.h: New file.
21379 * grub-core/lib/posix_wrap/sys/types.h (int8_t): New type.
21380 (int16_t): Likewise.
21381 (int32_t): Likewise.
21382 (int64_t): Likewise.
21383 Reported and tested by: Alain Greppin.
21384
43f1bc83
VS
213852011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
21386
21387 * grub-core/loader/i386/bsdXX.c (grub_netbsd_load_elf_meta):
21388 Silence spurious warning.
21389 Reported and tested by: Alain Greppin.
21390
64d1f041
SJ
213912011-01-07 Szymon Janc <szymon@janc.net.pl>
21392
21393 * docs/grub.texi (Support automatic decompression): Update with xz
21394 decompression support.
21395
25953e10
SJ
213962011-01-07 Szymon Janc <szymon@janc.net.pl>
21397
21398 Improve loaders' kernel command line handling.
21399
21400 * grub-core/lib/cmdline.c: New file.
21401 * include/grub/lib/cmdline.h: Likewise.
21402 * grub-core/loader/i386/linux.c (grub_cmd_linux): Use
21403 grub_create_loader_cmdline to create kernel command line.
21404 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
21405 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_linux): Likewise.
21406 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_linux): Likewise.
21407 * grub-core/Makefile.core.def (linux16): Add lib/cmdline.c on i386_pc.
21408 (linux): Add lib/cmdline.c on common.
21409
e72d259f
VS
214102011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
21411
21412 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Take into account that
21413 inopos might be unaligned.
21414
c0cf26da
VS
214152011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
21416
21417 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Add missing
21418 endian transformations.
21419 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
21420 Based on report by: Doug Nazar.
21421
0ca09e6c
DN
214222011-01-07 Doug Nazar <nazard.michi@gmail.com>
21423
21424 * grub-core/disk/raid5_recover.c (grub_raid5_recover): Add missing
21425 array->members[i].start_sector.
21426 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Likewise.
21427
014b6806
VS
214282011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
21429
21430 * util/grub-setup.c (setup): Handle NetBSD and OpenBSD disklabels.
21431 Reported and tested by: Grégoire Sutre.
21432
415502c2
CW
214332011-01-06 Colin Watson <cjwatson@ubuntu.com>
21434
21435 * tests/util/grub-shell.in: Set serial terminfo type to `dumb', to
21436 avoid causing test failures by clearing the screen.
21437
71b6a2b7
CW
214382011-01-06 Colin Watson <cjwatson@ubuntu.com>
21439
21440 * grub-core/kern/emu/getroot.c (find_root_device_from_mountinfo):
21441 Fix prefix check to handle the case where dir ends with a slash
21442 (most significantly, "/" itself).
21443 Reported by: Michael Vogt.
21444
b3f8d28a
VS
214452011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
21446
21447 Run terminfo_cls on initing terminfo output to clear the screen and
21448 move the cursor to (0,0).
21449
21450 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_init_output):
21451 Call grub_terminfo_output_init.
21452 * grub-core/term/serial.c (grub_serial_term_output): Set .init.
21453 * grub-core/term/terminfo.c (grub_terminfo_output_init): New function.
21454 * include/grub/terminfo.h (grub_terminfo_output_init): New declaration.
21455
4c3e4f37
VS
214562011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
21457
21458 * util/grub-install.in: Determine ofpathname, nvsetenv and efibootmgr
21459 only when needed.
21460
488f71f1
VS
214612011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
21462
21463 * grub-core/term/terminfo.c (grub_terminfo_readkey): Handle keys with
21464 CTRL.
21465
18a38098
VS
214662011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
21467
21468 The E820 type 5 is BADRAM, not EXEC_CODE.
21469
21470 * grub-core/loader/i386/bsd.c (GRUB_E820_EXEC_CODE): Removed.
21471 (GRUB_E820_BADRAM): New define.
21472 * grub-core/loader/i386/linux.c (grub_linux_boot): Translate code
21473 into reserved. Propagate BADRAM.
21474 * grub-core/loader/i386/bsd.c (GRUB_E820_EXEC_CODE): Removed.
21475 (GRUB_E820_BADRAM): New define.
21476
9eae2084
VS
214772011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
21478
21479 * grub-core/lib/efi/relocator.c (grub_relocator_firmware_fill_events):
21480 Ignore the memory post-4G.
21481 (grub_relocator_firmware_alloc_region): Additional debug statement.
21482
ebc71d28
VS
214832011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
21484
21485 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev): Check md/%s
21486 names.
21487 Reported by: David Pravec.
21488
446fa400
VS
214892011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
21490
21491 * grub-core/disk/i386/pc/biosdisk.c (GRUB_MOD_INIT): Workaround buggy
21492 BIOSes.
21493
a0159f37
VS
214942011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
21495
21496 * grub-core/lib/reed_solomon.c (grub_reed_solomon_add_redundancy):
21497 Prevent overflow.
21498 (grub_reed_solomon_recover): Likewise.
21499
e5146ca1
VS
215002011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
21501
21502 * grub-core/lib/reed_solomon.c (main) [TEST]: Reactivate normal test.
21503
215042011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
95638499
VS
21505
21506 * grub-core/lib/reed_solomon.c (scratch) [! STANDALONE]: Remove leftover
21507 variable.
21508
5b1bdf12
CW
215092011-01-04 Colin Watson <cjwatson@ubuntu.com>
21510
21511 * grub-core/commands/legacycfg.c (GRUB_MOD_INIT): Fix typo in
21512 descriptions of extract_legacy_entries_source and
21513 extract_legacy_entries_configfile.
21514 Reported by: Seung Soo, Ha.
21515
99d925aa
CW
215162011-01-03 Colin Watson <cjwatson@ubuntu.com>
21517
21518 * grub-core/bus/pci.c (grub_pci_iterate): Skip remaining functions
21519 on devices that do not implement function 0.
21520
4af0504b
DV
215212011-01-03 Dave Vasilevsky <dave@vasilevsky.ca>
21522
21523 * grub-core/fs/hfsplus.c: Make parent unsigned.
21524 (grub_hfsplus_cmp_catkey): Don't compare using subtraction, it
21525 overflows.
21526 (grub_hfsplus_cmp_extkey): Likewise
21527
469ee10a
VS
215282011-01-03 Vladimir Serbinenko <phcoder@gmail.com>
21529
21530 * util/grub-install.in: Correctly use bootloader_id and not
21531 GRUB_DISTRIBUTOR on efibootmgr line.
21532
323a8e9c
VS
215332011-01-03 Vladimir Serbinenko <phcoder@gmail.com>
21534
21535 * util/grub-mkfont.c (main): Report errors in FT_New_Face.
21536
1b394975
IC
215372010-12-31 Ian Campbell <ijc@hellion.org.uk>
21538
21539 * util/grub.d/20_linux_xen.in (linux_entry): Correctly capitalize
21540 Xen and reorder menu item wording to make it clearer that this entry
21541 will launch Xen. Print separate messages when loading Xen and
21542 Linux.
21543
275bff5f
VS
215442010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
21545
21546 * grub-core/partmap/amiga.c (GRUB_AMIGA_PART_MAGIC): New define.
21547 (amiga_partition_map_iterate): Check "PART" magic to avoid a very long
21548 loop in case of incorrect amiga partmap.
21549
307806cb
VS
215502010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
21551
21552 * grub-core/partmap/amiga.c (GRUB_AMIGA_RDSK_MAGIC): New define.
21553 (amiga_partition_map_iterate): Use grub_memcmp instead of grub_strcmp.
21554 Reported by:EHeM.
21555
b12b923e
VS
215562010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
21557
21558 * grub-core/loader/i386/bsdXX.c (grub_openbsd_find_ramdisk): Silence
21559 spurious warning.
21560 Reported by: crocket
21561
14b48a19
VS
215622010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
21563
21564 * grub-core/loader/xnu.c (grub_cmd_xnu_kernel) [! GRUB_MACHINE_EFI]:
21565 Preload EFIemu.
21566 (grub_cmd_xnu_kernel64) [! GRUB_MACHINE_EFI]: Likewise.
21567
693db2df
VS
215682010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
21569
21570 * grub-core/loader/xnu.c (grub_cmd_xnu_kext): Abort if no kernel
21571 is loaded
21572 (grub_cmd_xnu_kextdir): Likewise.
21573 (grub_cmd_xnu_splash): Likewise.
21574
c7638645
VS
215752010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
21576
21577 Avoid using Reed-Solomon with 0 redundancy.
21578
21579 * grub-core/kern/i386/pc/startup.S: Remove 0-data check.
21580 * grub-core/lib/reed_solomon.c (decode_block): Do not proceed on 0 data
21581 or 0 redundancy.
21582 (grub_reed_solomon_add_redundancy): Do not proceed with 0 redundancy.
21583 (grub_reed_solomon_recover): Likewise.
21584
25dd4780
VS
215852010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
21586
21587 Don't use disk subsystem in freebsd_boot.
21588
21589 * grub-core/loader/i386/bsd.c (freebsd_bootdev): New variable.
21590 (freebsd_biosdev): Likewise.
21591 (grub_freebsd_boot): Use freebsd_bootdev and freebsd_biosdev.
21592 (grub_cmd_freebsd): Set freebsd_bootdev and freebsd_biosdev.
21593
0b2db943
VS
215942010-12-26 Vladimir Serbinenko <phcoder@gmail.com>
21595
21596 Handling of files of unknown size is currently limited. They can't be
21597 used e.g. for initrd or modules. Moreover gzip handling of not
21598 easily seekable files is buggy. Disable unknown file size for now. May
21599 be inefficient but works.
21600
21601 * grub-core/io/gzio.c (test_header): Always retrieve the file size.
21602 * grub-core/io/xzio.c (grub_xzio_open): Likewise.
21603
5c408d0f
MP
216042010-12-25 Mirko Parthey <mirko.parthey@informatik.tu-chemnitz.de>
21605
21606 * grub-core/boot/i386/pc/boot.S: Fix %es:%bx pointing to nowhere on
21607 floppy probe.
21608
190a011a
JD
216092010-12-25 Jeroen Dekkers <jeroen@dekkers.ch>
21610
21611 * grub-core/disk/raid.c (insert_array): Don't add spurious members.
21612
022d01b8
SL
216132010-12-25 Shea Levy <shlevy>
21614
21615 * grub-core/genmod.sh.in: Use @OBJCOPY@ rather than objcopy.
21616
c4855fdc
VS
216172010-12-25 Vladimir Serbinenko <phcoder@gmail.com>
21618
21619 * util/grub.d/30_os-prober.in: Don't emit drivemap directive for
21620 Windows Server 2008.
21621 Reported by: Devin Giddings.
21622
0354b867
VS
216232010-12-25 Vladimir Serbinenko <phcoder@gmail.com>
21624
21625 * grub-core/commands/acpihalt.c (grub_acpi_halt): Sleep for 1.5 before
21626 writing an error message because of async power management.
21627 * grub-core/kern/mips/yeeloong/init.c (grub_halt): Likewise.
21628 (grub_reboot): Likewise.
21629
ab66c69f
JU
216302010-12-23 Jordan Uggla <jordan.uggla@gmail.com>
21631
21632 * tests/util/grub-shell.in: Suppress "ACPI shutdown failed" error to
21633 keep unit tests from failing when they shouldn't.
21634
1426ef35
CW
216352010-12-21 Colin Watson <cjwatson@ubuntu.com>
21636
21637 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): The
21638 previous patch increased the size of the RS code by 20 bytes (at
21639 least with gcc-4.4), so increase this by 20 bytes to match.
21640 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
21641
20641b6b
CW
216422010-12-21 Colin Watson <cjwatson@ubuntu.com>
21643
21644 * grub-core/lib/reed_solomon.c (gauss_solve): Fix size of standalone
21645 scratch area. Make sure to initialise chosen in standalone mode as
21646 well as non-standalone.
21647 Reported by: Robert Hooker and Andy Whitcroft.
21648 Tested by: Andy Whitcroft.
21649
d060ad60
CW
216502010-12-21 Colin Watson <cjwatson@ubuntu.com>
21651
21652 * grub-core/commands/echo.c (grub_cmd_echo): Make UTF-8-clean by
21653 constructing a new unescaped string and passing it to grub_xputs in
21654 one go, rather than passing characters to grub_printf one at a time.
21655
b889cfad
CW
216562010-12-21 Colin Watson <cjwatson@ubuntu.com>
21657
21658 * grub-core/fs/udf.c (read_string): Pacify GCC warning by
21659 initialising utf16.
21660
4e01b6c8
CW
216612010-12-21 Colin Watson <cjwatson@ubuntu.com>
21662
21663 * util/grub-mkconfig_lib.in (gettext_quoted): Add clarifying
21664 comment. Add an extra layer of quotation, requiring the output of
21665 this function to be used in a printf format string.
21666 (gettext_printf): New function.
21667 * util/grub.d/10_hurd.in: Use gettext_printf where appropriate.
21668 Extract translatable strings from here-documents and use a temporary
21669 variable instead, so that xgettext can find them.
21670 * util/grub.d/10_kfreebsd.in: Likewise.
21671 * util/grub.d/10_linux.in: Likewise.
21672 * util/grub.d/20_linux_xen.in: Likewise.
21673
21674 * po/grub.d.sed: New file.
21675 * po/Makefile.in.in ($(DOMAIN).pot-update): Extract gettext_printf
21676 arguments. Set c-format flags on all strings extracted from
21677 util/grub.d/ (xgettext refuses to include these itself for strings
21678 it extracted from a shell file, but these really are c-format).
21679
5318fe98
VS
216802010-12-20 Vladimir Serbinenko <phcoder@gmail.com>
21681
21682 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_add_module):
21683 Avoid next pointing to nowhere.
21684
6c85b743
VS
216852010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
21686
21687 * grub-core/fs/affs.c (grub_affs_mount): Read data->bblock.rootblock
21688 rather than assuming than rootblock is exactly in the middle.
21689 (grub_affs_label): Likewise.
21690
a2a08a35
VS
216912010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
21692
21693 * grub-core/fs/affs.c (grub_affs_fs) [GRUB_UTIL]: Explicitly set
21694 reserved_first_sector to 0.
21695 * grub-core/fs/cpio.c (grub_cpio_fs) [GRUB_UTIL]: Likewise.
21696 * grub-core/fs/sfs.c (grub_sfs_fs) [GRUB_UTIL]: Likewise.
21697 * grub-core/fs/xfs.c (grub_xfs_fs) [GRUB_UTIL]: Likewise.
21698
7059d1ec
VS
216992010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
21700
21701 Fix handling of UTF-16 UDF labels.
21702
21703 * grub-core/fs/udf.c (grub_udf_iterate_dir): Move string-parsing part
21704 (read_string): .. here.
21705 (grub_udf_label): Use read_string.
21706
30aff4cb
BC
217072010-12-19 BVK Chaitanya <bvk.groups@gmail.com>
21708
21709 * grub-core/normal/menu_entry.c (run): Execute commands from menu
21710 editor under argument scope.
21711 Reported by: Jordan Uggla
21712
5cf86f4b
VS
217132010-12-18 Vladimir Serbinenko <phcoder@gmail.com>
21714
21715 * util/grub-mkfont.c (main): Handle errors from FT_Set_Pixel_Sizes.
21716
32570200
CW
217172010-12-18 Colin Watson <cjwatson@ubuntu.com>
21718
21719 * grub-core/normal/term.c (print_more): Make \r or \n scroll one
21720 line, and other keys scroll an entire page (previous handling was
21721 for \r and \n to scroll a page and other keys to scroll two lines).
21722
e1dffcf2
VS
217232010-12-18 Vladimir Serbinenko <phcoder@gmail.com>
21724
21725 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
21726 Set ptrdest to correct get_physical_target_address rather than
21727 incorrect get_virtual_current_address.
21728
b04298cf 217292010-12-18 kashyap garimella <garimella.kashyap@gmail.com>
21730
21731 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_load): Use
21732 correct cat to grub_uint8_t * rather than grub_uint32_t *.
21733
5367ecd3
CW
217342010-12-10 Colin Watson <cjwatson@ubuntu.com>
21735
21736 * .bzrignore: Ignore grub-core/rs_decoder.S.
21737
1fb430f8
CW
217382010-12-10 Colin Watson <cjwatson@ubuntu.com>
21739
21740 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Factor out
21741 .mo/.mo.gz opening sequence to ...
21742 (grub_mofile_open_lang): ... here.
21743 (grub_gettext_init_ext): If opening ll_CC fails, try ll.
21744 * util/grub.d/00_header.in (grub_lang): Include country part of
21745 locale.
21746 Reported by: Mario Limonciello.
21747
a94a6671
RM
217482010-12-09 Robert Millan <rmh@gnu.org>
21749
21750 * NEWS: Document addition of ZFS support.
21751
24b7938b
CW
217522010-12-04 Colin Watson <cjwatson@ubuntu.com>
21753
21754 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Use `>> 1'
21755 rather than `/ 2', as the latter requires -Wa,--divide which would
21756 require bumping our minimum binutils version.
21757
bddc3ef6
BC
217582010-12-03 BVK Chaitanya <bvk.groups@gmail.com>
21759
21760 * util/grub-script-check.c (main): Print script line number on
21761 error.
21762
bf78d5b2
RM
217632010-12-01 Robert Millan <rmh@gnu.org>
21764
21765 * grub-core/fs/zfs/zfs.c: New file.
21766 * grub-core/fs/zfs/zfs_fletcher.c: Likewise.
21767 * grub-core/fs/zfs/zfs_lzjb.c: Likewise.
21768 * grub-core/fs/zfs/zfs_sha256.c: Likewise.
21769 * grub-core/fs/zfs/zfsinfo.c: Likewise.
21770
21771 * include/grub/zfs/dmu.h: Likewise.
21772 * include/grub/zfs/dmu_objset.h: Likewise.
21773 * include/grub/zfs/dnode.h: Likewise.
21774 * include/grub/zfs/dsl_dataset.h: Likewise.
21775 * include/grub/zfs/dsl_dir.h: Likewise.
21776 * include/grub/zfs/sa_impl.h: Likewise.
21777 * include/grub/zfs/spa.h: Likewise.
21778 * include/grub/zfs/uberblock_impl.h: Likewise.
21779 * include/grub/zfs/vdev_impl.h: Likewise.
21780 * include/grub/zfs/zap_impl.h: Likewise.
21781 * include/grub/zfs/zap_leaf.h: Likewise.
21782 * include/grub/zfs/zfs.h: Likewise.
21783 * include/grub/zfs/zfs_acl.h: Likewise.
21784 * include/grub/zfs/zfs_znode.h: Likewise.
21785 * include/grub/zfs/zil.h: Likewise.
21786 * include/grub/zfs/zio.h: Likewise.
21787 * include/grub/zfs/zio_checksum.h: Likewise.
21788
21789 * Makefile.util.def: Build ZFS into libgrubmods.
21790 * grub-core/Makefile.core.def: Build zfs.mod.
21791
3f0f3831
SJ
217922010-11-30 Szymon Janc <szymon@janc.net.pl>
21793
21794 * grub-core/commands/regexp.c (grub_cmd_regexp): Remove unused
21795 variable.
21796 * grub-core/commands/wildcard.c (match_files): Likewise.
21797
3a4253b2
RM
217982010-11-30 Robert Millan <rmh@gnu.org>
21799
21800 * grub-core/loader/i386/bsd.c
21801 (grub_cmd_freebsd_loadenv, grub_cmd_freebsd_module_elf): Check
21802 whether kernel is loaded using grub_loader_is_loaded(), rather
21803 than `kernel_type', which may still be `KERNEL_TYPE_NONE' under
21804 certain error conditions.
21805
8c317b27
RM
218062010-11-30 Robert Millan <rmh@gnu.org>
21807
c5c9cd3e
RM
21808 * grub-core/commands/echo.c: Include `<grub/term.h>'.
21809 (grub_cmd_echo): Call grub_refresh() after printing a message.
8c317b27 21810
49d3ab46
VS
218112010-11-26 Vladimir Serbinenko <phcoder@gmail.com>
21812
21813 Avoid using tricks for initialising endian variables.
21814
21815 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot):
21816 Make const.
21817 (GRUB_MOD_INIT): Don't byte-swap.
21818 * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_BIOS_BOOT):
21819 Use grub_cpu_to_le16_compile_time and grub_cpu_to_le32_compile_time.
21820 * include/grub/types.h (grub_swap_bytes16_compile_time): New macro.
21821 (grub_swap_bytes32_compile_time): Likewise.
21822 (grub_cpu_to_le32_compile_time): Likewise.
21823 (grub_cpu_to_le16_compile_time): Likewise.
21824
f420a804
VS
218252010-11-26 Vladimir Serbinenko <phcoder@gmail.com>
21826
21827 * util/grub-setup.c (setup): Stop recommending --force. People who
21828 understand the dangers of blocklists are able to find this option
21829 anyway and the ones who don't shouldn't use it anyway.
21830
4e7db17b
RM
218312010-11-26 Robert Millan <rmh@gnu.org>
21832
21833 * grub-core/term/i386/pc/vga_text.c (VGA_TEXT_SCREEN): Beautify.
21834 Update all users.
21835
9be57a0d
CW
218362010-11-26 Colin Watson <cjwatson@ubuntu.com>
21837
21838 Fix LVM-on-RAID probing.
21839
21840 * util/grub-probe.c (probe): Remember which disk was detected as
21841 RAID (perhaps an LVM physical volume). Use that disk's raidname
21842 rather than that of the top-level disk.
21843
2c7859b3 218442010-11-25 BVK Chaitanya <bvk.groups@gmail.com>
7e623b0d 21845
d7647bb6
BC
21846 Fix cmdline argument quotes for setparams command of menuentry
21847 definitions.
7e623b0d
BC
21848
21849 * grub-core/commands/menuentry.c (setparams_prefix): Use single
21850 quotes for arguments.
f866fe80 21851 * grub-core/lib/legacy_parse.c (grub_legacy_escape): Use
7955bea0 21852 grub_strchrsub function instead.
f866fe80 21853
7955bea0 21854 * include/grub/misc.h (grub_strchrsub): New function.
7e623b0d 21855
74f72a64
CW
218562010-11-24 Colin Watson <cjwatson@ubuntu.com>
21857
21858 * util/deviceiter.c (grub_util_iterate_devices): Save a bit of
21859 effort by skipping "." and ".." entries up-front.
21860 Suggested by: Michael Lazarev.
21861
5a407278
CW
218622010-11-24 Colin Watson <cjwatson@ubuntu.com>
21863
21864 * grub-core/Makefile.core.def (xz_decompress): Move -lgcc from
21865 ldflags to ldadd, to fix link line ordering.
21866 (none_decompress): Likewise.
21867
3030d8ec
CW
218682010-11-24 Colin Watson <cjwatson@ubuntu.com>
21869
21870 * grub-core/Makefile.core.def (kernel): Add kern/emu/cache.S for emu
21871 platforms.
21872 (grub-emu-lite): Remove kern/emu/cache.S.
21873
b7fbac12
CW
218742010-11-23 Colin Watson <cjwatson@ubuntu.com>
21875
21876 * util/deviceiter.c (compare_devices): If the by-id link for a
21877 device couldn't be resolved, fall back to sorting by the by-id link
21878 rather than segfaulting.
21879 Reported and tested by: Daniel Mierswa.
21880
5225f328
CW
218812010-11-23 Colin Watson <cjwatson@ubuntu.com>
21882
21883 * Makefile.util.def (grub-menulst2cfg): List libraries in ldadd, not
21884 ldflags, to fix link line ordering.
21885
038b3ce8
CW
218862010-11-23 Colin Watson <cjwatson@ubuntu.com>
21887
21888 * grub-core/Makefile.am (gentrigtables): Put -lm after $<; some
21889 linkers are picky about this.
21890
bf16e98e
CW
218912010-11-23 Colin Watson <cjwatson@ubuntu.com>
21892
21893 * grub-core/Makefile.am (command.lst): Adjust sed expression
21894 ordering so that extended and priority commands aren't treated as
21895 ordinary commands.
21896
7242bab6
CW
218972010-11-23 Colin Watson <cjwatson@ubuntu.com>
21898
21899 * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_BIOS_BOOT):
21900 Remove byte-swapping function calls, which are not valid in
21901 structure initialisers.
21902 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot): Make
21903 non-const.
21904 (GRUB_MOD_INIT): Byte-swap data1, data2, and data3 fields of
21905 grub_gpt_partition_type_bios_boot.
21906
14e8b279
CW
219072010-11-22 Colin Watson <cjwatson@ubuntu.com>
21908
21909 Fix test program build on GNU/kFreeBSD.
21910
21911 * Makefile.util.def (example_unit_test): Add `$(LIBZFS)
21912 $(LIBNVPAIR)' library dependencies.
21913
e6f63338 219142010-11-22 Colin Watson <cjwatson@ubuntu.com>
03df09c7
CW
21915
21916 * util/grub-install.in: Fix parsing of --grub-mkrelpath= option.
21917
cf8ffc38
CW
219182010-11-22 Colin Watson <cjwatson@ubuntu.com>
21919
21920 * util/grub-install.in: Remove excessive quoting that broke
21921 installations to RAID devices.
21922
7f8b0fd7
VS
219232010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
21924
21925 * grub-core/loader/i386/linux.c (grub_cmd_linux): Pass correctly the
21926 bootloader version instead of 0.
21927
dfd240b1
VS
219282010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
21929
21930 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Fix spurious
21931 warning.
21932
7b61e609
VS
219332010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
21934
21935 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Don't try to
21936 retrieve the metadat sector if size isn't known.
21937 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
21938
9dfe92d0
RM
219392010-11-18 Robert Millan <rmh@gnu.org>
21940
21941 * grub-core/fs/btrfs.c (grub_btrfs_mount): Replace grub_strncmp()
21942 with grub_memcmp().
21943
41cc919e
VS
219442010-11-18 Vladimir Serbinenko <phcoder@gmail.com>
21945
21946 * grub-core/normal/menu_entry.c (print_up): Fix displacement of up
21947 arrow.
21948 Reported by: Jordan Uggla.
21949
1afcc914
VS
219502010-11-16 Vladimir Serbinenko <phcoder@gmail.com>
21951
21952 Make better UTF compliant.
21953
21954 * grub-core/normal/charset.c (grub_utf8_to_utf16): Handle 6- and 7-byte
21955 sequences as incorrect.
21956 (grub_is_valid_utf8): Likewise.
21957 (grub_utf8_to_ucs4): Likewise.
21958 (grub_ucs4_to_utf8): Handle codepoints outside of BMP.
21959 (grub_ucs4_to_utf8_alloc): Likewise.
21960 * include/grub/charset.h (grub_utf16_to_utf8): Likewise.
21961
f1808884
VS
219622010-11-16 Vladimir Serbinenko <phcoder@gmail.com>
21963
21964 Make legacy_source behave like source.
21965
21966 * grub-core/commands/legacycfg.c (legacy_file): Don't call
21967 grub_show_menu.
21968 (grub_cmd_legacy_source): Call grub_show_menu if needed.
21969
24ec575b
CW
219702010-11-16 Colin Watson <cjwatson@debian.org>
21971
21972 * conf/Makefile.common (CFLAGS_GNULIB): Add -Wno-unused-parameter.
21973 (-Wunused implies -Wunused-parameter, but not vice versa).
21974
72b7c7aa
CW
219752010-11-16 Colin Watson <cjwatson@ubuntu.com>
21976
21977 * configure.ac: Make error messages less confusing by testing for
21978 -Wtrampolines rather than -Wno-trampolines (since -Wno-* is always
21979 accepted, but produces a diagnostic if something else is wrong).
21980
e98937aa
VS
219812010-11-15 Vladimir Serbinenko <phcoder@gmail.com>
21982
21983 * grub-core/term/at_keyboard.c (grub_keyboard_controller_read)
21984 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_QEMU]: ifdef-ed out
21985 (now unused).
21986 (grub_keyboard_controller_init)
21987 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_QEMU]: Don't attempt to
21988 read the initial state since controller isn't inited yet.
21989
f6bbabc3
VS
219902010-11-15 Vladimir Serbinenko <phcoder@gmail.com>
21991
21992 * grub-core/lib/relocator.c (malloc_in_range): Take into account that
21993 allocate_regbeg may need to create new chunk header.
21994
22e7dbb2
VS
219952010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
21996
21997 Fix quoting in legacy parser.
21998
21999 * grub-core/lib/legacy_parse.c (grub_legacy_escape): Correctly handle
22000 single quotes.
22001 (grub_legacy_parse): Likewise.
22002 Reported by: Jordan Uggla.
22003 Tested by: Jordan Uggla.
22004
03f80960
VS
220052010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
22006
22007 Don't add -lgcc on i386 and x86_64.
22008
22009 * configure.ac (LIBS): Don't add -lgcc on i386 and x86_64.
22010 * conf/Makefile.common (LDADD_KERNEL): Likewise.
22011 * grub-core/Makefile.core.def (kernel): Use LDADD_KERNEL.
22012
779dc15b
VS
220132010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
22014
22015 * configure.ac: Add -Wno-trampolines when supported.
22016
d20a3b37
MV
220172010-11-14 Modestas Vainius <modax@debian.org>
22018
22019 * grub-core/kern/emu/getroot.c (grub_util_is_dmraid): Recognise ddf1_
22020 fakeraid.
22021
e5360933
GC
220222010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
22023
22024 Add generic logical block size support for UDF.
22025
22026 * grub-core/fs/udf.c (GRUB_UDF_LOG2_BLKSIZE): Removed.
22027 (GRUB_UDF_BLKSZ): Removed.
22028 (struct grub_udf_data): New field "lbshift" to hold the logical block
22029 size of the file system in log2 format. All users updated.
22030 (sblocklist): Change type to unsigned.
22031 (grub_udf_mount): Change type of "sblklist" to unsigned.
22032 Move AVDP search before VRS recognition, because the latter requires
22033 knowledge of the logical block size, which is detected during the
22034 former.
22035 Detect and validate logical block size during AVDP search, adding
22036 support for block sizes 512, 1024 and 4096.
22037 Make VRS recognition independent of block size.
22038
cb0229c5
GC
220392010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
22040
22041 Properly handle deleted files on UDF.
22042
22043 * grub-core/fs/udf.c (grub_udf_iterate_dir): Skip directory entries
22044 whose "characteristics" field has the bit GRUB_UDF_FID_CHAR_DELETED
22045 set.
22046
406858a8
GC
220472010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
22048
22049 Support reading files larger than 2 GiB.
22050
22051 * grub-core/fs/udf.c (grub_udf_iterate_dir): Change type of variable
22052 "offset" to grub_off_t.
22053 (grub_udf_read_file): Likewise for parameter "pos".
22054
130da6a7
VS
220552010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
22056
22057 * docs/grub.texi (Changes from GRUB Legacy): Note when save_env is
22058 unavailable.
22059 (Simple configuration): Refer to Changes from GRUB Legacy about
22060 save_env availability.
22061
65e93f6b
VS
220622010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
22063
22064 * util/grub-install.in: Ignore empty partition table detection
22065 instead of trying to include part_ module.
22066
1fd08bf1
VS
220672010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
22068
22069 * grub-core/disk/lvm.c (GRUB_MOD_FINI): Reset the vg_list. Fixes
22070 LVM on RAID support.
22071
de1a024f
VS
220722010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
22073
22074 Properly define WORDS_BIGENDIAN in wrapped environments.
22075
22076 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (WORDS_BIGENDIAN): New
22077 definition.
22078 * grub-core/lib/posix_wrap/sys/types.h (WORDS_BIGENDIAN): Likewise.
22079
22080 Reported by: Manoel Rebelo Abranches.
22081 Tested by: Manoel Rebelo Abranches.
22082
bc5dd0b9
VS
220832010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
22084
22085 * util/grub-mkconfig.in: Fix quoting.
22086
58c184be
VS
220872010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
22088
22089 Support big ext2 files.
22090
22091 * grub-core/fs/ext2.c (grub_ext2_inode): Rename dir_acl to size_high.
22092 (grub_ext2_read_block): Support triple indirect blocks.
22093 (grub_ext2_read_file): Use 64-bit types and read size_high.
22094 (grub_ext2_open): Read size_high.
22095 Reported by: Ximin Luo.
22096 Tested by: Manoel Rebelo Abranches.
22097
5f0c02b3
VS
220982010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
22099
22100 * util/grub-install.in: Handle filenames containing spaces.
22101 Reported by: Jordan Uggla.
22102 Tested by: Jordan Uggla.
22103
4417aae6
VS
221042010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
22105
22106 * util/grub-mkconfig.in (grub_script_check): New variable.
22107 Use grub_script_check instead of grub-script-check.
22108 Reported by: Barry Jackson.
22109
7625a68e
VS
221102010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
22111
22112 * docs/grub.texi (menu): Correct the order.
22113 Reported by: D. Hugh Redelmeier.
22114
10001ac5
VS
221152010-11-12 Vladimir Serbinenko <phcoder@gmail.com>
22116
22117 * grub-core/kern/i386/pc/startup.S (multiboot_trampoline): Add missing
22118 jump.
22119
9c4cf53b
MRA
221202010-11-08 Manoel Rebelo Abranches <mrabran@br.ibm.com>
22121
10001ac5
VS
22122 * include/grub/elfload.h (grub_elf32_size): New parameter.
22123 All users updated.
9c4cf53b
MRA
22124 Return maximum segments alignment.
22125 (grub_elf64_size): Likewise.
22126 * kern/elf.c (grub_elf32_size): New parameter. All users updated.
22127 Return maximum segments alignment.
22128 (grub_elf64_size): Likewise.
22129 * grub-core/loader/powerpc/ieee1275/linux.c:
10001ac5
VS
22130 (grub_linux_claimmap_iterate): New function. Uses the
22131 "available" property in the "memory" node for memory allocation
22132 for kernel in the PowerPC loader.
9c4cf53b
MRA
22133 (grub_linux_load32): Correctly find linux entry point offset.
22134 (grub_linux_load64): Likewise.
22135
d2bf06bf
RM
221362010-11-07 Robert Millan <rmh@gnu.org>
22137
22138 On mips-yeeloong, build with -march=loongson2f when this flag is
22139 available (GCC >= 4.4).
22140 * conf/Makefile.common [COND_mips_yeeloong] (CFLAGS_PLATFORM): Remove
22141 `-march=mips3'.
22142 * configure.ac: For mips-yeeloong, add -march=loongson2f if available,
22143 or otherwise add -march=mips3.
22144
898c99a2
BC
221452010-11-07 BVK Chaitanya <bvk.groups@gmail.com>
22146
87220a68
BC
22147 Suppress shell expansion on echo '*' and echo "*" like cases.
22148 Reported by: Jordan Uggla.
898c99a2
BC
22149
22150 * grub-core/script/execute.c (grub_script_arglist_to_argv): Escape
22151 string arguments before shell expansion.
22152 * tests/grub_cmd_echo.in: New testcases.
22153
4f9b406a
RM
221542010-11-07 Robert Millan <rmh@gnu.org>
22155
22156 * conf/mips-qemu-mips.rmk: Remove stale file from previous
22157 transition.
22158
80c6d25e
VS
221592010-11-07 Vladimir Serbinenko <phcoder@gmail.com>
22160
22161 * grub-core/kern/emu/hostdisk.c
22162 (convert_system_partition_to_system_disk): Handle devices like "sdaa1".
22163
4a1a0153
VS
221642010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
22165
22166 * include/grub/emu/misc.h: Don't include grub/util/libzfs.h.
22167 * include/grub/emu/misc.h (grub_get_libzfs_handle): Move from here ...
22168 * include/grub/util/libzfs.h (grub_get_libzfs_handle): ... here.
22169
34706ddc
VS
221702010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
22171
22172 * grub-core/fs/ntfs.c (grub_ntfs_uuid): Make uppercase.
22173
6972dea9
VS
221742010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
22175
22176 * util/grub-install.in: Replace useless recomendation to pass
22177 --modules with a recomendation to report a bug.
22178
9c693bd6
VS
221792010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
22180
22181 Properly register serial terminfo.
22182 Reported by: Jordan Uggla
22183
22184 * grub-core/term/serial.c (grub_serial_terminfo_input_template): New
22185 const.
22186 (grub_serial_terminfo_output_template): Likewise.
22187 (grub_cmd_serial): Register "serial" with terminfo.
22188 (GRUB_MOD_INIT(serial)): Fill grub_serial_terminfo_input and
22189 grub_serial_terminfo_output.
22190
6c9e4c0c
RM
221912010-11-05 Robert Millan <rmh@gnu.org>
22192
22193 * util/grub-mkconfig.in: Remove gfxterm.mod probe (no longer
22194 needed).
22195
b9b3839f
RM
221962010-11-05 Robert Millan <rmh@gnu.org>
22197
22198 On Yeeloong, pass machine type information to Linux.
22199
22200 * grub-core/loader/mips/linux.c [GRUB_MACHINE_MIPS_YEELOONG]
22201 (LOONGSON_MACHTYPE): New macro, set to
22202 "machtype=lemote-yeeloong-2f-8.9inches".
22203 [LOONGSON_MACHTYPE] (grub_cmd_linux): Pass LOONGSON_MACHTYPE as
22204 additional argument to Linux.
22205
1a3aaff4
RM
222062010-11-04 Robert Millan <rmh@gnu.org>
22207
22208 * util/deviceiter.c (grub_util_iterate_devices): Increase SCSI
22209 limit to 48 (to cope with Sun Fire X4500), and IDE limit to 96
22210 (its SATA disks are detected as slaveless IDE master drives on
22211 kFreeBSD).
22212 Reported by Carsten Aulbert.
22213
a75f4f62
CW
222142010-11-02 Colin Watson <cjwatson@ubuntu.com>
22215
22216 * util/bin2h.c (main): Fix spelling error in generated output.
22217
33b4b0c6
GS
222182010-11-01 Grégoire Sutre <gregoire.sutre@gmail.com>
22219
22220 * grub-core/partmap/bsdlabel.c (iterate_real): Fix an integer overflow.
22221
2b36fbf4
VS
222222010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
22223
22224 * grub-core/loader/i386/linux.c (grub_cmd_linux): Autoload vbe.mod if
22225 vga= option is supplied.
22226
74aaf558
VS
222272010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
22228
22229 * util/grub.d/10_hurd.in: Don't call savedefault on recovery entries.
22230 * util/grub.d/10_kfreebsd.in: Likewise.
22231 * util/grub.d/10_linux.in: Likewise.
22232 * util/grub.d/20_linux_xen.in: Likewise.
22233
6428dec3
VS
222342010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
22235
22236 * grub-core/lib/arg.c (grub_arg_parse): Avoid interpreting direct
22237 argument as an argument to no-argument option.
22238
f8729d98
VS
222392010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
22240
22241 * util/grub.d/10_linux.in: Add missing load_video with explicit
22242 GRUB_GFXPAYLOAD_LINUX.
22243
89d68fa6
VS
222442010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
22245
22246 * Makefile.am (libgrub.pp): Propagate the libgrub.a split.
22247
3a1197cd
VS
222482010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
22249
22250 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Do not put
22251 elements with invlid index.
22252 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
22253 * grub-core/disk/raid.c (insert_array): Automatically reallocate
22254 members.
22255 * include/grub/raid.h (grub_raid_member): New struct.
22256 (grub_raid_array): Transform devices and start_sector into usage of
22257 grub_raid_member. All users updated
22258 (allocated_devs): New member.
22259
71574288
VS
222602010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
22261
22262 * docs/man/grub-set-default.h2m: Clarify that only saved default entry
22263 is modified
22264
8d40ec65
BC
222652010-10-29 BVK Chaitanya <bvk.groups@gmail.com>
22266
22267 NetBSD build fix for getline function conflict from gnulib.
22268
22269 * Makefile.util.def (libgrubkern.a): New library for grub kernel
22270 components that depend on gnulib headers.
22271 (libgrubmods.a): Renamed from earlier libgrub.a.
22272 * conf/Makefile.common: Remove gnulib from *_LIBRARY flags.
22273
95b9257e
VS
222742010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
22275
22276 * util/grub-setup.c (setup): Refuse to do a cross-disk embeddingless
22277 install rather than creating a broken install.
22278
26c53dc6
VS
222792010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
22280
22281 * util/grub-setup.c (argp): Remove misleading example of installing to
22282 a partition.
22283
4171b3c5
VS
222842010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
22285
22286 * util/grub-setup.c (setup): Clarify the error message.
22287
18568d18
VS
222882010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
22289
22290 * include/grub/types.h (grub_target_off_t): Removed no longer used type.
22291
4f6a2e21
VS
222922010-10-23 Vladimir Serbinenko <phcoder@gmail.com>
22293
22294 * grub-core/kern/emu/misc.c
22295 (grub_make_system_path_relative_to_its_root)
22296 [HAVE_LIBZFS && HAVE_LIBNVPAIR]: Fix mountpoint return on ZFS.
22297
222982010-10-23 Vladimir Serbinenko <phcoder@gmail.com>
5c81f8b3
VS
22299
22300 * grub-core/kern/emu/misc.c
22301 (grub_make_system_path_relative_to_its_root): Revert r2882.
22302
e138c458
VS
223032010-10-22 Vladimir Serbinenko <phcoder@gmail.com>
22304
22305 * grub-core/lib/relocator.c (grub_relocator_subchunk): Remove now
22306 useless field head. All users updated.
22307 (free_subchunk): Correct handling of IN_REGION subchunk.
22308
0cbcdf0e
CW
223092010-10-22 Colin Watson <cjwatson@ubuntu.com>
22310
22311 * docs/grub.texi (Installing GRUB using grub-install): Proofread.
22312 (Supported kernels): Likewise.
22313
b65ea155
GS
223142010-10-18 Grégoire Sutre <gregoire.sutre@gmail.com>
22315
22316 Make mktemp invocations portable.
22317
22318 * grub-core/genmod.sh.in: Use mktemp with an explicit template, and
22319 exit if mktemp fails.
22320 * tests/grub_script_blockarg.in: Likewise.
22321 * tests/partmap_test.in: Likewise.
22322 * tests/util/grub-shell-tester.in: Likewise.
22323 * tests/util/grub-shell.in: Likewise.
22324 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
22325 * Makefile.am: Likewise, and chain shell commands with `&&'
22326 instead of ';'.
22327 * util/grub-mkrescue.in: Use the same explicit template as above, and
22328 exit if mktemp fails.
22329
05f43cdd
BC
223302010-10-18 BVK Chaitanya <bvk.groups@gmail.com>
22331
22332 * util/grub.d/10_linux.in: Fix built-in initramfs image mode for
22333 Linux kernel, reported by Dennis Schridde.
22334
800e6a9b
SJ
223352010-10-17 Szymon Janc <szymon@janc.net.pl>
22336
22337 * grub-core/normal/auth.c (grub_auth_check_authentication):
22338 Set-but-not-used variable removed.
22339
d82df574
VS
223402010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
22341
22342 * docs/grub.texi (GNU/Linux): Document APM unavailability with
22343 32-bit linux protocol.
22344
7bced458
VS
223452010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
22346
22347 * grub-core/kern/i386/pc/startup.S (grub_console_setcursor): Check
22348 cursor shape for sanity.
22349
5b027690
VS
223502010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
22351
22352 * docs/grub.texi (Installation): Document buggy BIOS install.
22353
ba5f65cf
VS
223542010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
22355
22356 * docs/grub.texi (Installation): Indent.
22357
fdf2ec9c
VS
223582010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
22359
22360 * util/grub-setup.c (setup): New parameter allow_floppy.
22361 (arguments): New member allow_floppy.
22362 (argp_parser): Handle --allow-floppy.
22363 (main): Pass allow_floppy.
22364 * util/grub-install.in: New option --allow-floppy passed though to
22365 grub-setup.
22366
861dfd4c
VS
223672010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
22368
22369 * util/grub-install.in: Handle partitionless disks.
22370
f77a8c24
VS
223712010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
22372
22373 * util/grub-setup.c (setup): Don't clean blocklists before readability
22374 verfification.
22375
27d9ee32
VS
223762010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
22377
22378 * docs/grub.texi (Installation): Document embedding zone. Remove
22379 obsolete grub-install example.
22380
6bdda8f8
SJ
223812010-10-16 Szymon Janc <szymon@janc.net.pl>
22382
22383 * grub-core/commands/legacycfg.c (grub_cmd_legacy_kernel):
22384 Set-but-not-used variable ifdef'ed.
22385 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Likewise.
22386 * grub-core/bus/usb/ohci.c (grub_ohci_pci_iter): Set-but-not-used
22387 variable removed.
22388 * grub-core/disk/lvm.c (grub_lvm_scan_device): Likewise.
22389 * grub-core/fs/jfs.c (grub_jfs_find_file): Likewise.
22390 * grub-core/fs/minix.c (grub_minix_dir): Likewise.
22391 * grub-core/fs/sfs.c (grub_sfs_read_extent): Likewise.
22392 * grub-core/fs/ufs.c (grub_ufs_dir): Likewise.
22393 * grub-core/gfxmenu/gui_list.c (grub_gui_list_new): Likewise.
22394 * grub-core/gfxmenu/view.c (redraw_menu_visit): Likewise.
22395 * grub-core/gfxmenu/widget-box.c (draw): Likewise.
22396 * grub-core/lib/relocator.c (malloc_in_range): Likewise.
22397 * grub-core/loader/i386/bsdXX.c (grub_netbsd_load_elf_meta): Likewise.
22398 * grub-core/loader/i386/bsd_pagetable.c (fill_bsd64_pagetable):
22399 Likewise.
22400
e19b016b
VS
224012010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
22402
22403 * grub-core/commands/acpihalt.c (skip_ext_op): Skip index field op.
22404 * include/grub/acpi.h (GRUB_ACPI_EXTOPCODE_INDEX_FIELD_OP): New
22405 enum value.
22406
6c8d3002
VS
224072010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
22408
22409 * grub-core/commands/acpihalt.c (get_sleep_type): Accept \_S5_ as
22410 synonym to _S5_. Needed for some DSDTs.
22411
c32b51c9
VS
224122010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
22413
22414 Userspace ACPI parser debugging.
22415
22416 * grub-core/commands/acpihalt.c [GRUB_DSDT_TEST]: Include userspace
22417 headers and add relevant defines. Don't include standard headers.
22418 (main) [GRUB_DSDT_TEST]: New function.
22419 * include/grub/acpi.h [GRUB_DSDT_TEST]: Don't include standard headers.
22420 Don't declare functions.
22421
fbfbeb39
VS
224222010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
22423
22424 Remove dead grub_efi_mm_fini.
22425
22426 * grub-core/kern/efi/mm.c (allocated_page): Removed.
22427 (ALLOCATED_PAGES_SIZE): Likewise.
22428 (MAX_ALLOCATED_PAGES): Likewise.
22429 (allocated_pages): Likewise.
22430 (grub_efi_allocate_pages): Don't record allocated pages.
22431 (grub_efi_free_pages): Likewise.
22432 (grub_efi_mm_init): Likewise.
22433 (grub_efi_mm_fini): Removed.
22434
65f7ed7c
VS
224352010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
22436
22437 * grub-core/kern/efi/mm.c (BYTES_TO_PAGES): Round up instead of down.
22438 (grub_efi_mm_init): Take into account the memory map size increase.
22439
24977b44
VS
224402010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
22441
22442 * grub-core/term/ns8250.c (do_real_config): Set port->broken to 0.
22443 (serial_hw_put): Wait based on real time rather than port reads. Don't
22444 roken ports.
22445 * include/grub/serial.h (grub_serial_port): New field broken.
22446
1eb01cd2
RM
224472010-10-16 Robert Millan <rmh@gnu.org>
22448
22449 * grub-core/kern/emu/misc.c
22450 (grub_make_system_path_relative_to_its_root): Fix premature return
22451 when processing non-root ZFS filesystems.
5f8b440b 22452 Reported by Sergio Talens-Oliag.
1eb01cd2 22453
2d5fed60
RM
224542010-10-15 Robert Millan <rmh@gnu.org>
22455
22456 * util/grub.d/10_linux.in (list): Expand "vmlinu[zx]" instances to
22457 guarantee compressed ones are processed first.
22458
d0f4c1ea
VS
224592010-10-14 Vladimir Serbinenko <phcoder@gmail.com>
22460
22461 * grub-core/efiemu/main.c (grub_efiemu_prepare): Handle errors from
22462 grub_efiemu_autocore.
22463
d87c681f
VS
224642010-10-14 Vladimir Serbinenko <phcoder@gmail.com>
22465
22466 * grub-core/kern/i386/pc/startup.S (bypass_table): Use 0x1b explicitly
22467 rather than 0x1b.
22468 (grub_console_getkey): Use correct jae opcode rather than ja.
22469
219b3564
RM
224702010-10-12 Robert Millan <rmh@gnu.org>
22471
22472 * util/grub-mkconfig.in: Merge `GRUB_DISABLE_LINUX_RECOVERY' and
22473 `GRUB_DISABLE_NETBSD_RECOVERY' into a single `GRUB_DISABLE_RECOVERY'
22474 variable. All references updated.
22475
22476 * util/grub.d/10_kfreebsd.in: Support recovery boot entries.
22477
20c6bb7e
VS
224782010-10-08 Vladimir Serbinenko <phcoder@gmail.com>
22479
22480 Correctly distinguish mdraid flavours.
22481
22482 * grub-core/disk/raid.c (grub_raid_getname) [GRUB_UTIL]: New function.
22483 (insert_array): New argument raid.
22484 * include/grub/disk.h (grub_disk_dev) [GRUB_UTIL]: New member raidname.
22485 * include/grub/raid.h (grub_raid_array) [GRUB_UTIL]: New member driver.
22486 * util/grub-probe.c (probe): PRint raidname instead of plainly "mdraid".
22487
74baff84
VS
224882010-10-09 Vladimir Serbinenko <phcoder@gmail.com>
22489
22490 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Fix incorrect
22491 handling of special keys.
22492
3ef068df 224932010-10-02 Aleš Nesrsta <starous@volny.cz>
22494
c7980ad9
VS
22495 * include/grub/scsi.h (grub_make_scsi_id): Fix incorrect usgae of
22496 GRUB_SCSI_ID_BUS_SHIFT instead of GRUB_SCSI_ID_LUN_SHIFT.
3ef068df 22497
a9455194 224982010-10-02 Aleš Nesrsta <starous@volny.cz>
22499
c7980ad9
VS
22500 * grub-core/bus/usb/ohci.c (GRUB_OHCI_TDS): Increase.
22501 * grub-core/bus/usb/uhci.c (N_TD): New definition. All previous implicit
22502 users updated.
a9455194 22503 * grub-core/bus/usb/usbtrans.c (grub_usb_bulk_setup_readwrite):
c7980ad9 22504 Use right endpoint when querying descriptor.
a9455194 22505
441cfe65
VS
225062010-10-01 Vladimir Serbinenko <phcoder@gmail.com>
22507
22508 Clear out 0x80 color bit on EFI.
22509 Tested by: decoder
22510 Reported by: decoder and meta tech.
22511
22512 * grub-core/term/efi/console.c (grub_console_standard_color): Removed.
22513 (grub_console_setcolorstate): Clear out 0x80 bit.
22514 Use GRUB_TERM_DEFAULT_STANDARD_COLOR.
22515 (grub_console_output): Use GRUB_TERM_DEFAULT_NORMAL_COLOR.
22516 Use GRUB_TERM_DEFAULT_HIGHLIGHT_COLOR.
22517
bf26bcc4
VS
225182010-10-01 Vladimir Serbinenko <phcoder@gmail.com>
22519
22520 * grub-core/loader/i386/linux.c (DEFAULT_VIDEO_MODE) [GRUB_MACHINE_EFI]:
22521 Set to "auto".
22522
6e3c515d
VS
225232010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
22524
22525 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Avoid using
22526 mo_file after freeing.
22527
e6d983ba
VS
225282010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
22529
22530 * grub-core/normal/term.c (read_terminal_list): Free in a right order.
22531
74ccb5b5
VS
225322010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
22533
22534 * grub-core/script/execute.c (grub_script_execute_sourcecode): Set
22535 flags.
22536
17821956
VS
225372010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
22538
22539 * util/grub-setup.c (main) [GRUB_MACHINE_IEEE1275]: Propagate argp
22540 usage.
22541
ee74fa48
VS
225422010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
22543
22544 Put terminfo into core on ieee1275 and yeeloong (needed for console).
22545
22546 * gentpl.py: New groups terminfoinkernel and terminfomodule.
22547 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Include extcmd.h, arg.h
22548 and terminfo.h when needed.
22549 * grub-core/Makefile.core.def (kernel): Include term/terminfo.c,
22550 term/tparm.c, commands/extcmd.c, lib/arg.c on terminfokernel.
22551 (terminfo): Enable only on terminfokernel.
22552 (extcmd): Likewise.
22553 * include/grub/extcmd.h: Add missing EXPORT_FUNC.
22554 * include/grub/lib/arg.h: Likewise.
22555 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_dimensions): Fix
22556 incorrect usage of ->.
22557
aa438e68
VS
225582010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
22559
22560 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi]
22561 [GRUB_MACHINE_EFI && __i386__]: Fix typo.
22562
57994012
VS
225632010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
22564
22565 Fix coreboot compilation.
22566
22567 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
22568 Take VBE info into account even if only text is supported.
22569 (fill_vbe_info): Take into account the case when only VGA text
22570 is supported.
22571 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VBE): Set to zero
22572 on coreboot, multiboot and qemu.
22573
2a406611
VS
225742010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
22575
22576 * grub-core/lib/relocator.c (malloc_in_range): Trim too verbose
22577 debug messages.
22578 (grub_relocator_prepare_relocs): Set movers_chunk.srcv.
22579
d33613fc
VS
225802010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
22581
22582 * grub-core/loader/i386/bsd.c (grub_cmd_netbsd): Provide default serial
22583 parameters.
22584
44a1b432
VS
225852010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
22586
22587 * grub-core/lib/arg.c (grub_arg_parse): Fix treating of all commands as
22588 if they were BSD-style.
22589
edde54e6
VS
225902010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
22591
22592 * grub-core/boot/i386/pc/lnxboot.S: Replace
22593 GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE with
22594 GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART.
22595
b65830fa
VS
225962010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
22597
22598 Write embedding zone using Reed-Solomon.
22599
22600 * Makefile.util.def (grub-setup): Add grub-core/lib/reed_solomon.c.
22601 * grub-core/Makefile.am (rs_decoder.S): New target.
22602 (kern/i386/pc/startup.S): Depend on rs_decoder.S.
22603 * grub-core/kern/i386/pc/startup.S (reed_solomon_redundancy): New field.
22604 (multiboot): Move to RS part.
22605 (post_reed_solomon): New label.
22606 (grub_boot_drive): Move to non-RS part since it's modified in memory
22607 on boot.
22608 Include rs_decoder.S.
22609 * grub-core/lib/reed_solomon.c: New file.
22610 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY):
22611 New definition.
22612 (GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE): Removed.
22613 (GRUB_KERNEL_I386_PC_RAW_SIZE): Updated.
22614 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): New definition.
22615 * include/grub/partition.h (grub_partition_map): Change prototype of
22616 embed to allow returning additional sectors.
22617 * include/grub/reed_solomon.h: New file.
22618 * util/grub-setup.c (setup): Handle Reed-Solomon.
22619
0b4b227f
CW
226202010-09-28 Colin Watson <cjwatson@ubuntu.com>
22621
22622 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix
22623 i386 and x86-64 definedness tests.
22624
f772623b
YB
226252010-09-27 Yves Blusseau <blusseau@zetam.org>
22626
22627 Fix generation of kernel_syms.lst
22628
22629 * grub-core/Makefile.am (kernel_syms.lst): Fix value and position of
22630 ASM_PREFIX
22631
8e57a6ca
RM
226322010-09-26 Robert Millan <rmh@gnu.org>
22633
22634 Support degraded ZFS arrays in "grub-probe -t device" resolution.
22635
22636 * grub-core/kern/emu/getroot.c (find_root_device_from_libzfs): When
22637 the pool is an array of devices, iterate through it and return the
22638 first device that passes a stat() test (instead of blindly returning
22639 the first one).
22640
f9130836
RM
226412010-09-26 Robert Millan <rmh@gnu.org>
22642
22643 Build fixes for GNU/kFreeBSD.
22644
22645 * Makefile.util.def: Add `$(LIBZFS) $(LIBNVPAIR)' library dependencies
22646 to programs that require ZFS conversion.
22647 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): Support
22648 kernels that don't have FLOPPY_MAJOR.
22649
96510faf
BC
226502010-09-25 BVK Chaitanya <bvk.groups@gmail.com>
22651
22652 * grub-core/kern/emu/full.c (grub_emu_post_init): Fix typo.
22653
449333eb
BC
226542010-09-25 BVK Chaitanya <bvk.groups@gmail.com>
22655
22656 Fix grub-emu build.
22657
22658 * grub-core/kern/emu/main.c: Remove #include <getopt.h>.
22659 * grub-core/kern/emu/full.c: Split grub_mdraid_{init,fini} into
22660 mdraid09 and mdraid1x.
22661
e1fd1939
CW
226622010-09-24 Colin Watson <cjwatson@ubuntu.com>
22663
22664 Re-enable grub-extras.
22665
22666 * autogen.sh: Create symlinks to ${GRUB_CONTRIB} if necessary to
22667 avoid confusing Automake. Run autogen only twice, once for the top
22668 level and once for grub-core. Add Makefile.util.def and
22669 Makefile.core.def from extra modules to the appropriate autogen
22670 invocations. If Makefile.common exists in an extra module, include
22671 it in both Makefile.util.am and grub-core/Makefile.core.am;
22672 similarly, include any Makefile.util.common file in Makefile.util.am
22673 and any Makefile.core.common file in grub-core/Makefile.core.am.
22674 * conf/Makefile.common ($(top_srcdir)/grub-core/Makefile.core.am):
22675 Depend on $(top_srcdir)/grub-core/Makefile.gcry.def.
22676 ($(top_srcdir)/grub-core/Makefile.gcry.def): Remove.
22677 * grub-core/Makefile.am: Remove inclusion of Makefile.gcry.am.
22678
22679 * gentpl.py (gvar_add): Turn GVARS into a set.
22680 (global_variable_initializers): Sort global variables on output.
22681 (vars_init): New function.
22682 (first_time): Likewise.
22683 (library): Ensure that non-global variable initialisations are
22684 emitted before the first time we emit code for a library block.
22685 Append to variables rather than setting them. Only emit
22686 noinst_LIBRARIES, BUILT_SOURCES, and CLEANFILES the first time for
22687 each conditional path.
22688 (program): installdir() emits an Autogen macro, so must be passed to
22689 var_add rather than gvar_add.
22690 (data): Likewise.
22691 (script): Likewise.
22692 (rules): New function, centralising handling for different target
22693 types. Set up Guile association lists for first_time and vars_init,
22694 and send most output to a diversion so that variable initialisations
22695 can be emitted first.
22696 (module_rules): Use new rules function.
22697 (kernel_rules): Likewise.
22698 (image_rules): Likewise.
22699 (library_rules): Likewise.
22700 (program_rules): Likewise.
22701 (script_rules): Likewise.
22702 (data_rules): Likewise.
22703
22704 * configure.ac: Add AC_PROG_LN_S, for the benefit of ntldr-img.
22705
22706 * .bzrignore: Add contrib and grub-core/contrib. Remove
22707 grub-core/Makefile.gcry.am.
22708
1d12cf29
YB
227092010-09-24 Yves Blusseau <blusseau@zetam.org>
22710
22711 * grub-core/lib/LzFind.c: Add missing include.
22712 * grub-core/lib/LzmaEnc.c: Likewise.
22713 * grub-core/script/lexer.c: Likewise.
22714 * grub-core/script/yylex.l: Likewise.
22715 * util/grub-macho2img.c: Likewise.
22716 * util/grub-menulst2cfg.c: Likewise.
22717 * util/grub-mklayout.c: Likewise.
22718 * util/grub-mkpasswd-pbkdf2.c
22719 * util/grub-mkrelpath.c: Likewise.
22720 * util/resolve.c: Likewise.
22721
dd363028
BC
227222010-09-24 BVK Chaitanya <bvk.groups@gmail.com>
22723
22724 * Makefile.util.def (example_unit_test): Add
22725 grub-core/gnulib/libgnu.a.
22726
f5a109e2
GS
227272010-09-23 Grégoire Sutre <gregoire.sutre@gmail.com>
22728
22729 * grub-core/commands/acpihalt.c (get_sleep_type): Initialize prev.
22730
6d0fa83c
VS
227312010-09-23 Vladimir Serbinenko <phcoder@gmail.com>
22732
22733 Support xz compression on yeeloong.
22734
22735 * Makefile.util.def (grub-mkimage): Add $(LIBLZMA).
22736 * configure.ac: Check for LZMA.
22737 * grub-core/Makefile.core.def (xz_decompress): New target.
22738 (none_decompress): Likewise.
22739 * grub-core/boot/decompressor/minilib.c: New file.
22740 * grub-core/boot/decompressor/none.c: Likewise.
22741 * grub-core/boot/decompressor/xz.c: Likewise.
22742 * grub-core/kern/mips/cache.S: Change to noreorder nomacro.
22743 * grub-core/kern/mips/cache_flush.S: Likewise.
22744 * grub-core/kern/i386/pc/lzma_decode.S: Remove dead code.
22745 * grub-core/kern/mips/startup.S: Move first stage to ...
22746 * grub-core/boot/mips/startup_raw.S: ...here. Change to noreorder
22747 nomacro.
22748 * grub-core/kern/mips/startup.S: Change to noreorder nomacro.
22749 * grub-core/lib/mips/relocator_asm.S: Change to noreorder nomacro.
22750 * grub-core/lib/xzembed/xz_dec_bcj.c [GRUB_EMBED_DECOMPRESSOR]:
22751 Allocate statically.
22752 * grub-core/lib/xzembed/xz_dec_lzma2.c [GRUB_EMBED_DECOMPRESSOR]:
22753 Allocate statically or use scratch. Don't check CRC32.
22754 * grub-core/lib/xzembed/xz_dec_stream.c [GRUB_EMBED_DECOMPRESSOR]:
22755 Allocate statically. Don't check CRC32.
22756 * include/grub/decompressor.h: New file.
22757 * include/grub/offsets.h (GRUB_KERNEL_MIPS_YEELOONG_RAW_SIZE):
22758 Removed.
22759 (GRUB_KERNEL_MIPS_YEELOONG_UNCOMPRESSED_SIZE): New field.
22760 (GRUB_KERNEL_MIPS_YEELOONG_TOTAL_MODULE_SIZE): Adjusted.
22761 (GRUB_KERNEL_MIPS_YEELOONG_PREFIX): Likewise.
22762 (GRUB_KERNEL_MIPS_YEELOONG_PREFIX_END): Likewise.
22763 (GRUB_KERNEL_MACHINE_UNCOMPRESSED_SIZE): New define.
22764 * util/grub-mkimage.c (grub_compression_t): New type.
22765 (PLATFORM_FLAGS_DECOMPRESSORS): New flag.
22766 (image_target_desc): New field default_compression.
22767 (image_targets): Adjust yeeloong targets.
22768 (compress_kernel_xz) [HAVE_LIBLZMA]: New function.
22769 (compress_kernel): New parameter comp.
22770 (generate_image): Likewise. Handle new compression case.
22771 (options): New option --compression
22772 (help): Likewise.
22773 (main): Handle new option.
22774
1b655af6
GS
227752010-09-22 Grégoire Sutre <gregoire.sutre@gmail.com>
22776
22777 * grub-core/kern/emu/hostdisk.c [__NetBSD__]: Define FLOPPY_MAJOR.
22778
8f03f0b5
CW
227792010-09-22 Colin Watson <cjwatson@ubuntu.com>
22780
22781 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix
22782 typo in __i386__ conditional.
22783
7835dfd3
VS
227842010-09-22 Vladimir Serbinenko <phcoder@gmail.com>
22785
22786 * grub-core/loader/multiboot_mbi2.c (GRUB_MACHINE_EFI): Add missing
22787 include.
22788
e255597e
VS
227892010-09-22 Vladimir Serbinenko <phcoder@gmail.com>
22790
6d0fa83c 22791 Implement EFI and ACPI multiboot2 extensions.
e255597e
VS
22792
22793 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_load): Declare
22794 new tags as supported.
22795 (acpiv2_size): New function.
22796 (grub_multiboot_get_mbi_size): Take new tags into account.
22797 (grub_multiboot_make_mbi): Add new tags.
22798 * include/grub/multiboot.h (GRUB_MACHINE_HAS_ACPI): New definition.
6d0fa83c 22799
6cc14051 228002010-09-21 Aleš Nesrsta <starous@volny.cz>
22801
22802 * grub-core/bus/usb/serial/common.c (grub_usbserial_attach):
22803 Added missing configuration of USB device.
22804
df7769d8
CW
228052010-09-21 Colin Watson <cjwatson@ubuntu.com>
22806
22807 * grub-core/normal/menu_entry.c (run): Make sure we always return
22808 a value.
22809
b031012d
CW
228102010-09-21 Colin Watson <cjwatson@ubuntu.com>
22811
22812 * grub-core/commands/efi/lsefimmap.c (grub_cmd_lsefimmap):
22813 NumberOfPages is UINT64 according to the UEFI specification, not
22814 UINTN. Fix printf format.
22815
174de8f3
CW
228162010-09-21 Colin Watson <cjwatson@ubuntu.com>
22817
22818 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Change type of
22819 `err' to grub_usb_err_t.
22820 Reported and tested by: KESHAV P.R.
22821
d7dbe923
CW
228222010-09-21 Colin Watson <cjwatson@ubuntu.com>
22823
22824 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Make
22825 tpart non-const, so that we can assign to it. (Since this is a
22826 typedef, the constness refers to the pointer rather than what it
22827 points to.)
22828
8d5e2af3
CW
228292010-09-21 Colin Watson <cjwatson@ubuntu.com>
22830
22831 * conf/Makefile.common (CPPFLAGS_GNULIB): Add
22832 $(top_srcdir)/grub-core/gnulib as well as
22833 $(top_builddir)/grub-core/gnulib.
22834 Reported by: KESHAV P.R.
22835
5c527783
CW
228362010-09-21 Colin Watson <cjwatson@ubuntu.com>
22837
22838 * util/grub-install.in: Fix the bootloader ID option to be
22839 consistently --bootloader-id, not --bootloader_id.
22840 Reported by: KESHAV P.R.
22841
d309a16e
CW
228422010-09-21 Colin Watson <cjwatson@ubuntu.com>
22843
22844 * grub-core/commands/hashsum.c (GRUB_MOD_INIT): Make "Compute or
22845 check hash checksum." consistently translatable.
22846
b830cd16
YB
228472010-09-21 Yves Blusseau <blusseau@zetam.org>
22848
22849 * conf/Makefile.common (CPPFLAGS_GNULIB): Replace $(top_srcdir) with
22850 $(top_builddir).
22851
c4fe27a8
CW
228522010-09-21 Colin Watson <cjwatson@ubuntu.com>
22853
22854 * grub-core/commands/hashsum.c (aliases): Add sha1sum alias.
22855 (GRUB_MOD_INIT): Register sha1sum command.
22856 (GRUB_MOD_FINI): Unregister sha1sum command.
22857
a4c1d277
YB
228582010-09-21 Yves Blusseau <blusseau@zetam.org>
22859
22860 Keep boot and grub directory names in sync with utils scripts
22861
22862 * configure.ac: Define GRUB_BOOT_DIR_NAME and GRUB_DIR_NAME macros.
22863 * config.h.in: Add previous macros.
22864 * include/grub/emu/misc.h (DEFAULT_DIRECTORY): Use previous macros.
22865 * util/grub-install.in: Use $bootdir and $grubdir variables.
22866
4eff79d2
CW
228672010-09-21 Colin Watson <cjwatson@ubuntu.com>
22868
22869 * grub-core/kern/emu/hostdisk.c (find_system_device): Only try to
22870 convert partition names to disk names if the new `convert' parameter
22871 is set.
22872 (grub_util_biosdisk_get_grub_dev): If opening the disk device
22873 returns GRUB_ERR_UNKNOWN_DEVICE, treat the partition device as a
22874 disk in its own right. This can happen with Xen disk images.
22875
934d7e44
YB
228762010-09-21 Yves Blusseau <blusseau@zetam.org>
22877
22878 * util/grub-editenv.c: Update strings to avoid warnings when generating
22879 grub.pot file.
22880 * util/grub-setup.c: Likewise.
934d7e44 22881
df3367cc
VS
228822010-09-21 Vladimir Serbinenko <phcoder@gmail.com>
22883
22884 * configure.ac: Change version to 1.99~beta0.
22885
77a94e98
VS
228862010-09-21 Vladimir Serbinenko <phcoder@gmail.com>
22887
22888 * grub-core/loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap):
22889 Add BADRAM.
22890 * grub-core/loader/multiboot_mbi2.c (grub_fill_multiboot_mmap):
22891 Likewise.
22892 * include/multiboot.h: Resynced with specification.
22893 * include/multiboot2.h: Likewise.
22894
269004c1
CW
228952010-09-21 Colin Watson <cjwatson@ubuntu.com>
22896
22897 Fix po directory handling.
22898
22899 * configure.ac: Create po/Makefile.in rather than po/Makefile.
22900 * grub-core/gnulib/Makefile.am: Import gettext module.
22901 * m4/gnulib-cache.m4: Likewise.
22902 * m4/gnulib-comp.m4: Likewise.
22903 * m4/gettext.m4: New file, from gnulib.
22904 * m4/glibc2.m4: Likewise.
22905 * m4/iconv.m4: Likewise.
22906 * m4/intdiv0.m4: Likewise.
22907 * m4/intl.m4: Likewise.
22908 * m4/intldir.m4: Likewise.
22909 * m4/intlmacosx.m4: Likewise.
22910 * m4/intmax.m4: Likewise.
22911 * m4/inttypes-pri.m4: Likewise.
22912 * m4/lcmessage.m4: Likewise.
22913 * m4/lib-ld.m4: Likewise.
22914 * m4/lib-link.m4: Likewise.
22915 * m4/lib-prefix.m4: Likewise.
22916 * m4/lock.m4: Likewise.
22917 * m4/nls.m4: Likewise.
22918 * m4/po.m4: Likewise.
22919 * m4/printf-posix.m4: Likewise.
22920 * m4/progtest.m4: Likewise.
22921 * m4/threadlib.m4: Likewise.
22922 * m4/uintmax_t.m4: Likewise.
22923 * m4/visibility.m4: Likewise.
22924 * po/Makefile.am: Remove.
22925 * po/Makefile.in.in: New file, from gettext.
22926 ($(DOMAIN).pot-update): Support POTFILES-shell.
22927 * po/Makevars: New file.
22928 * po/POTFILES-shell: Rename to ...
22929 * po/POTFILES-shell.in: ... this. Update.
22930 * po/POTFILES: Rename to ...
22931 * po/POTFILES.in: ... this. Update.
22932 * po/Rules-quot: New file, from gettext.
22933 * po/boldquot.sed: Likewise.
22934 * po/en@boldquot.header: Likewise.
22935 * po/en@quot.header: Likewise.
22936 * po/insert-header.sin: Likewise.
22937 * po/quot.sed: Likewise.
22938 * po/remove-potcdate.sin: Likewise.
22939
3e0fa5d0
VS
229402010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
22941
22942 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Use UUID when possible.
22943
ade9bd66
VS
229442010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
22945
22946 * util/grub.d/20_linux_xen.in: Use submenus.
22947
fc55cc4c
VS
229482010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
22949
22950 Support submenus.
22951
22952 * grub-core/commands/menuentry.c (grub_normal_add_menu_entry): New
22953 parameter submenu. All users updated.
22954 * grub-core/normal/main.c (free_menu): Rename to ...
22955 (grub_normal_free_menu): ... this. Made global.
22956 * grub-core/normal/menu.c (grub_menu_execute_entry): Open new context
22957 if requested.
22958 * grub-core/normal/menu_entry.c (screen): New field submenu.
22959 (make_screen): Set submenu.
22960 (run): Open new context if requested.
22961 * include/grub/menu.h (grub_menu_entry): New field submenu.
22962 * include/grub/normal.h (grub_normal_free_menu): New proto.
22963
600cedf7
VS
229642010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
22965
22966 Menu entries extractor.
22967
22968 * grub-core/commands/configfile.c (grub_cmd_source): Implement extractor
22969 variants.
22970 (GRUB_MOD_INIT): Register new variants.
22971 (GRUB_MOD_FINI): Unregister new variants.
22972 * grub-core/commands/legacycfg.c (grub_cmd_legacy_configfile): Merge
22973 into grub_cmd_legacy_source.
22974 (grub_cmd_legacy_source): Implement extractor variants.
22975 (GRUB_MOD_INIT): Register new variants.
22976 (GRUB_MOD_FINI): Unregister new variants.
22977 * grub-core/commands/menuentry.c (grub_menu_init): Declare menuentry
22978 as an extractor.
22979 * grub-core/commands/search_wrap.c (GRUB_MOD_INIT): Declare
22980 search as an extractor.
22981 * grub-core/commands/test.c (GRUB_MOD_INIT): Declare
22982 test as an extractor.
22983 * grub-core/kern/corecmd.c (grub_register_core_commands): Declare set
22984 as an extractor.
22985 * grub-core/normal/context.c (grub_env_context_open): Reorganised.
22986 (grub_env_new_context): New function.
22987 (grub_env_context_open): Likewise.
22988 (grub_env_extractor_open): Likewise.
22989 (grub_env_extractor_close): Likewise.
22990 * grub-core/script/execute.c (grub_script_execute_cmdline): Handle
22991 grub_extractor_level.
22992 * include/grub/command.h (GRUB_COMMAND_FLAG_EXTRACTOR): New flag.
22993 * include/grub/env.h (grub_env_extractor_open): New proto.
22994 (grub_env_extractor_close): Likewise.
22995 * include/grub/normal.h (grub_extractor_level): New external variable.
22996
7bda3a87
VS
229972010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
22998
22999 Make cutmem accept a region specification.
23000 Suggested by: Samuel Thibault
23001
23002 * grub-core/mmap/mmap.c (parsemem): New function.
23003 (grub_cmd_cutmem): Handle new arguments.
23004
2ea57f88
VS
230052010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23006
23007 New command cutmem.
23008
23009 * grub-core/mmap/mmap.c (grub_cmd_cutmem): New function.
23010 (GRUB_MOD_INIT): Register new command.
23011 (GRUB_MOD_FINI): Unregister new command.
23012
74342e31
VS
230132010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23014
23015 Support some annoying BSD and Minix subpartitions.
23016
23017 * Makefile.util.def (libgrub.a): Add grub-core/partmap/bsdlabel.c.
23018 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name):
23019 Properly handle concatenation.
23020 * grub-core/kern/device.c (grub_device_iterate): Likewise.
23021 * grub-core/normal/completion.c (iterate_partition): Likewise.
23022 * grub-core/kern/disk.c (grub_disk_open): Make disk->name not
23023 contain partition. All users updated.
23024 * grub-core/partmap/bsdlabel.c (grub_netbsdlabel_partition_map): New
23025 struct.
23026 (grub_openbsdlabel_partition_map): Likewise.
23027 (bsdlabel_partition_map_iterate): Rename to ..
23028 (iterate_real): ... this. New arguments sector, freebsd and pmap.
23029 (bsdlabel_partition_map_iterate): New function.
23030 (netopenbsdlabel_partition_map_iterate): Likewise.
23031 (netbsdlabel_partition_map_iterate): Likewise.
23032 (openbsdlabel_partition_map_iterate): Likewise.
23033 (GRUB_MOD_INIT): Register new partmaps.
23034 (GRUB_MOD_FINI): Unregister new partmaps.
23035 * grub-core/partmap/msdos.c (pc_partition_map_iterate): Rename to ...
23036 (grub_partition_msdos_iterate): ... this. All users updated.
23037 Don't support embedding other than in a minix partition.
23038 * include/grub/msdos_partition.h (grub_partition_msdos_iterate): New
23039 proto.
23040 * include/grub/partition.h (grub_partition): New field msdostype.
23041 * util/grub-install.in: Handle openbsd and netbsd types being in
23042 part_bsd module.
23043
1e8d555b
VS
230442010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23045
23046 Split mdraid.mod into mdraid09.mod and mdraid1x.mod.
23047
23048 * Makefile.util.def (libgrub.a): Add grub-core/disk/mdraid1x_linux.c.
23049 * grub-core/Makefile.core.def (mdraid): Renamed to ...
23050 (mdraid09): ... this.
23051 (mdraid1x): New module.
23052 * grub-core/disk/mdraid_linux.c: Move 1.x parts ...
23053 * grub-core/disk/mdraid1x_linux.c: ...here. All users updated.
23054
899d8af4
VS
230552010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23056
23057 * grub-core/kern/emu/misc.c (asprintf): Use vsnprintf instead of
23058 vsprintf.
23059
40901acd
CW
230602010-09-20 Colin Watson <cjwatson@ubuntu.com>
23061
23062 * grub-core/commands/efi/lsefimmap.c: Correct header.
23063 * NEWS: Update.
23064
dfe3b247
CW
230652010-09-20 Colin Watson <cjwatson@ubuntu.com>
23066
23067 * util/grub-editenv.c (argp_parser): Don't pass translated strings
23068 as printf format strings; the translations might contain '%' which
23069 could cause a crash.
23070 (main): Likewise.
23071 * util/grub-fstest.c (argp_parser): Likewise.
23072 * util/grub-setup.c (argp_parser): Likewise.
23073 (main): Likewise.
23074
3286a4b4
VS
230752010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23076
23077 Use argp in grub-fstest.
23078
23079 * util/grub-fstest.c: Don't include getopt.h.
23080 Include argp.h.
23081 (root): New variable.
23082 (args_count): Likewise.
23083 (nparm): Likewise.
23084 (num_disks): Likewise.
23085 (images): Likewise.
23086 (cmd): Likewise.
23087 (debug_str): Likewise.
23088 (args): Likewise.
23089 (options): Transformed to argp.
23090 (usage): Removed.
23091 (main): Split argument parsing into ...
23092 (argp_parser): ... this. Changed to argp format.
23093 (argp): New variable.
23094 (main): Use argp_parse.
23095
3dccbe4b
TG
230962010-09-20 Tristan Gingold <gingold@free.fr>
230972010-09-20 Robert Millan <rmh.grub@aybabtu.com>
230982010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23099
23100 * grub-core/commands/efi/lsefimmap.c: New file.
23101 * grub-core/Makefile.core.def (lsefimmap): New module.
23102 * include/grub/efi/api.h (PRIxGRUB_EFI_UINTN_T): New definition.
23103
38c259a7
VS
231042010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23105
23106 Pause the execution (10s max) if any errors are displayed so the user
23107 has a chance to see them.
23108
23109 * grub-core/kern/err.c (grub_err_printed_errors): New variable.
23110 (grub_print_error): Increment grub_err_printed_errors.
23111 * grub-core/normal/menu.c (grub_menu_execute_entry): Pause the
23112 execution if any errors were displayed.
23113 (show_menu): Remove old code for pause.
23114 * grub-core/normal/menu_entry.c (run): Likewise.
23115 * grub-core/normal/term.c (grub_normal_char_counter): Removed. All
23116 users updated.
23117 (grub_normal_get_char_counter): Likewise.
23118 * include/grub/err.h (grub_err_printed_errors): New external variable.
23119 * include/grub/normal.h (grub_normal_get_char_counter): Removed.
23120
f218b09c
VS
231212010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23122
23123 Support multiboot VBE info.
23124
23125 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
23126 Take VBE info into account.
23127 (fill_vbe_info) [GRUB_MACHINE_HAS_VBE]: New function.
23128 (retrieve_video_parameters) [GRUB_MACHINE_HAS_VBE]:
23129 Call fill_vbe_info when appropriate.
23130 (grub_multiboot_make_mbi): Account for the size occupied by VBE info.
23131 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_load): Declare tags
23132 as supported.
23133 (grub_multiboot_get_mbi_size): Take new tags into account.
23134 (fill_vbe_tag) [GRUB_MACHINE_HAS_VBE]: New function.
23135 (retrieve_video_parameters) [GRUB_MACHINE_HAS_VBE]:
23136 Call fill_vbe_tag when appropriate.
23137 (grub_multiboot_make_mbi): Properly align tags.
23138 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_pm_interface): New
23139 function.
23140 * include/grub/i386/pc/vbe.h (grub_vbe_bios_get_pm_interface): New
23141 proto.
23142 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VBE): New definition.
23143
a9cc5438
VS
231442010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23145
23146 Suport manual terminal geometry specification.
23147
23148 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_dimensions):
23149 Save state in grub_ofconsole_terminfo_output.
23150 (grub_ofconsole_term): Use grub_terminfo_getwh.
23151 (grub_ofconsole_getwh): Removed.
23152 * grub-core/term/serial.c (grub_serial_getwh): Removed.
23153 (grub_serial_term): Use grub_terminfo_getwh.
23154 * grub-core/term/terminfo.c (grub_terminfo_getwh): New function.
23155 (options): New struct.
23156 (OPTION_*): New enum.
23157 (grub_cmd_terminfo): Transform into extcmd and handle new parameters.
23158 * include/grub/terminfo.h (grub_terminfo_output_state): New fields
23159 width and height.
23160 (grub_terminfo_getwh): New proto.
23161 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Handle --lines.
23162
1a8fed20
VS
231632010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23164
23165 Handle legacy "terminal" command.
23166
23167 * grub-core/lib/legacy_parse.c (legacy_command): New flags FLAG_TITLE
23168 and FLAG_TERMINAL.
23169 (legacy_commands): Add terminal and title.
23170 (grub_legacy_parse): Handle terminal. Simplify title handling.
23171
41e9c57d
VS
231722010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23173
23174 * grub-core/lib/arg.c (grub_arg_show_help): Correctly handle
23175 parameters overflow.
23176
61c874c5
CW
231772010-09-20 Colin Watson <cjwatson@ubuntu.com>
23178
23179 * .bzrignore: Add grub-core/gnulib/sys, widthspec.bin, and
23180 widthspec.h.
23181
23182 * docs/grub.texi (Shell-like scripting): Document `!'.
23183 (Network): Simplify using new i386-pc-pxe format. Mention
23184 grub-mknetdir.
23185
23186 * NEWS: Update.
23187
943682b4
CW
231882010-09-20 Colin Watson <cjwatson@ubuntu.com>
23189
23190 * Makefile.am (SUBDIRS): Restore "."; it's important to force
23191 ordering, so that e.g. ascii.h is built before grub-core/font/font.c
23192 when needed.
23193
6d3d698d
CW
231942010-09-20 Colin Watson <cjwatson@ubuntu.com>
23195
23196 * grub-core/commands/efi/lsefisystab.c: Correct header.
23197 * grub-core/commands/efi/lssal.c: Likewise.
23198 * grub-core/commands/testload.c: Likewise.
23199
c982589f
CW
232002010-09-20 Colin Watson <cjwatson@ubuntu.com>
23201
23202 * util/grub-mkrescue.in: Add explicit root argument to --set to
23203 prevent the UUID being interpreted as an argument to --set (matches
23204 previous change to prepare_grub_to_access_device).
23205
a63c31b6
CW
232062010-09-20 Colin Watson <cjwatson@ubuntu.com>
23207
23208 * kern/emu/hostdisk.c: Include <sys/ioctl.h> and <sys/disklabel.h>
23209 on FreeBSD. Define HAVE_DIOCGDINFO on NetBSD and FreeBSD to reduce
23210 the verbosity of later #ifs.
23211 (find_partition_start): Define this function on FreeBSD too.
23212 (device_is_wholedisk) [__FreeBSD__ || __FreeBSD_kernel__]: New
23213 function.
23214 (grub_util_biosdisk_get_grub_dev): Use partition-start-sector logic
23215 on FreeBSD.
23216
6439b8ee
YB
232172010-09-20 Yves Blusseau <blusseau@zetam.org>
23218
23219 * util/grub-editenv.c: Use argp instead of getopt.
23220
c5930ec8
YB
232212010-09-20 Yves Blusseau <blusseau@zetam.org>
23222
23223 * util/grub-setup.c: Use argp instead of getopt.
23224
15c69261
YB
232252010-09-20 Yves Blusseau <blusseau@zetam.org>
23226
23227 Use gnulib-tool to create gnulib source files.
23228
23229 * Add gnulib files generated by gnulib-tool in build-aux, m4 and
23230 grub-core/gnulib directories
23231 * .bzignore: Add **/.deps and autogenerated gnulib files
23232 * configure.ac: Assign auxiliary directory to build-aux, add invocation
23233 of gnulib macros, add grub-core/gnulib/Makefile
23234 * Makefile.am: Add gnulib directory in SUBDIRS (removing unnecessary .),
23235 include m4 directory to aclocal.
23236 * Makefile.util.def: Remove direct compilation of gnulib source files
23237 and use the new grub-core/gnulib/libgnu.a.
23238 * build-aux/config.rpath: move config.rpath from top directory to
23239 build-aux
23240 * conf/Makefile.common: Remove the macro _GL_UNUSED already defined
23241 in gnulib headers
23242 * conf/Makefile.extra-dist: Add m4/gnulib-cache.m4
23243 * grub-core/Makefile.core.def: Remove unnecessary extra_dist
23244 * grub-core/lib/posix_wrap/localcharset.h (locale_charset): Update
23245 header.
23246 * grub-core/lib/posix_wrap/langinfo.h (nl_langinfo): Return static
23247 string.
23248
e511c9f5
YB
232492010-09-20 Yves Blusseau <blusseau@zetam.org>
23250
23251 * .bzrignore: Add grub-kbdcomp, grub-menulst2cfg, *.marker,
23252 grub-core/genmod.sh and grub-core/gensyminfo.sh
23253
c2dede05
BC
232542010-09-20 BVK Chaitanya <bvk.groups@gmail.com>
23255
23256 Add a test for echo command options.
23257
23258 * tests/grub_cmd_echo.in: New test.
23259 * Makefile.util.def: Rules for new test.
23260
c55f5018
SJ
232612010-09-20 Szymon Janc <szymon@janc.net.pl>
23262
23263 Remove crc.mod and move crc command to hashsum.mod.
23264 Remove lib/crc.c - users updated to use gcrypt implementation.
23265
23266 * grub-core/commands/crc.c: Removed.
23267 * grub-core/Makefile.core.def (crc): Module removed.
23268 * grub-core/commands/hashsum.c (aliases[]): Add crc alias.
23269 * grub-core/commands/hashsum.c (GRUB_MOD_INIT): Register crc command.
23270 * grub-core/commands/hashsum.c (GRUB_MOD_FINI): Unregister crc command.
23271 * grub-core/lib/crc.c: Removed.
23272 * include/grub/lib/crc.h: Removed.
23273 * Makefile.util.def (crc): Remove lib/crc.c
23274 * grub-core/Makefile.core.def (libgrub.a): Remove grub-core/lib/crc.c.
23275 * util/grub-fstest.c (cmd_crd): Use libgcrypt crc implementation.
23276 * Makefile.util.def (libgrub.a): Add grub-core/lib/libgcrypt-grub/cipher/crc.c.
23277 * Makefile.util.def (grub-fstest): Add CFLAGS_GCRY to cflags.
23278 * Makefile.util.def (grub-fstest): Add CPPFLAGS_GCRY to cppflags.
23279 * grub-core/efiemu/prepare.c (grub_efiemu_crc): Use libgcrypt crc implementation.
23280
e0337366
VS
232812010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23282
23283 * grub-core/boot/i386/pc/boot.S: Ignore %dl if it's not in a sane range.
23284
742f9232
VS
232852010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
23286
23287 Split config.h for util and core.
23288
23289 * acinclude.m4 (HAVE_ASM_USCORE): Transformed into a variable.
23290 (ADDR32): Likewise.
23291 (DATA32): Likewise.
23292 (BSS_START_SYMBOL): Likewise.
23293 (END_SYMBOL): Likewise.
23294 (NEED_ENABLE_EXECUTE_STACK): Likewise. All users updated.
23295 (grub_I386_ASM_ABSOLUTE_WITHOUT_ASTERISK): Removed.
23296 * config.h.in: New file.
23297 * configure.ac: Use config-util.h as config define file.
23298 Rename MACHINE into GRUB_MACHINE. All users updated.
23299 (NEED_REGISTER_FRAME_INFO): Transformed into a variable. All users
23300 updated.
23301 (NESTED_FUNC_ATTR): Likewise.
23302 Substitue new variables.
23303 (COND_HAVE_ASM_USCORE): New conditional.
23304 * grub-core/Makefile.am (ASM_PREFIX): New variable.
23305 (kernel_syms.lst): Use ASM_PREFIX.
23306 * grub-core/kern/emu/console.c: Include config-util.h.
23307 * grub-core/kern/emu/misc.c: Likewise.
23308 * grub-core/kern/emu/mm.c: Likewise.
23309 * include/grub/emu/misc.h: Likewise.
23310 * include/grub/libgcc.h: Likewise.
23311
39feb0e8
VS
233122010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
23313
23314 * grub-core/term/efi/console.c (efi_codes): Fix GRUB_TERM_KEY_*
23315 constants usage.
23316 * grub-core/kern/emu/console.c (grub_ncurses_getkey):
23317 Fix GRUB_TERM_KEY_* constants usage.
23318 * grub-core/kern/emu/misc.c (asprintf): Fix vasprintf usage.
23319
9af6dac3
VS
233202010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
23321
23322 * grub-core/bus/usb/ohci.c (grub_ohci_cancel_transfer): Use %p to
23323 print pointer.
23324 * grub-core/bus/usb/uhci.c: Remove empty define.
23325 (grub_uhci_check_transfer): Add missing cast.
23326 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Use %p to
23327 print pointer.
23328 * grub-core/term/usb_keyboard.c (grub_usb_keyboard_getkey): Use
23329 PRIuGRUB_SIZE.
23330 * include/grub/types.h (PRIuGRUB_SIZE): New definition.
23331
d6d94820
VS
233322010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
23333
23334 * grub-core/Makefile.core.def (legacycfg): Add
23335 lib/i386/pc/vesa_modes_table.c on emu.
23336
3572f2b6
BC
233372010-09-19 BVK Chaitanya <bvk.groups@gmail.com>
23338
23339 Reduce number of temporary files generated by build system.
23340
23341 * grub-core/gencmdlist.sh: Removed.
23342 * grub-core/genfslist.sh: Removed.
23343 * grub-core/genhandlerlist.sh: Removed.
23344 * grub-core/genmodsrc.sh: Removed.
23345 * grub-core/genpartmaplist.sh: Removed.
23346 * grub-core/genparttoollist.sh: Removed.
23347 * grub-core/gentermiinallist.sh: Removed.
23348 * grub-core/genvideolist.sh: Removed.
23349
23350 * grub-core/genmod.sh.in: New file.
23351 * grub-core/gensyminfo.sh.in: New file.
23352
23353 * conf/Makefile.common (CPPFLAGS_*_LIST): New marker flags.
23354 * conf/Makefile.extra-dist: Update with new files.
23355 * gentpl.py: Remove rules related to unnecessary temporary files.
23356 * grub-core/Makefile.am (syminfo.lst): New replacement for def-*
23357 and und-* files.
23358 * grub-core/Makefile.core.def: New rules for gensyminfo.sh and
23359 genmod.sh scripts.
23360 * grub-core/bus/usb/uhci.c: Remove empty #define.
23361 * grub-core/genmoddep.awk: Updated with new syminfo format.
23362 * util/bash-completion.d/Makefile.am: Add config.log to
23363 CLEANFILES.
23364
c836b030
YB
233652010-09-19 Yves Blusseau <blusseau@zetam.org>
23366
23367 * Makefile.util.def: Add forgotten $(LIBINTL) library.
23368
2f4e8053
BC
233692010-09-19 BVK Chaitanya <bvk.groups@gmail.com>
23370
23371 * util/grub-mkconfig.in: Check the config script for syntax errors
23372 before saving.
23373
75831c34
CW
233742010-09-19 Colin Watson <cjwatson@ubuntu.com>
233752010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
23376
23377 * Makefile.util.def (grub-install): Use util/grub-install.in on all
23378 platforms.
23379 * util/grub-install.in: Add EFI and IEEE1275 support.
23380 * util/i386/efi/grub-install.in: Removed.
23381 * util/ieee1275/grub-install.in: Likewise.
23382
eaf41b25
VS
233832010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
23384
23385 * grub-core/commands/i386/cmostest.c (+parse_args): New function.
23386 (grub_cmd_cmosclean): Likewise.
23387 (GRUB_MOD_INIT): Register command cmosclean.
23388 * util/grub-mkconfig.in: Export GRUB_BUTTON_CMOS_CLEAN.
23389 * util/grub.d/00_header.in: Handle GRUB_BUTTON_CMOS_CLEAN.
23390
1a9130dd
CPE
233912010-09-18 Carles Pina i Estany <carles@pina.cat>
233922010-09-18 Aleš Nesrsta <starous@volny.cz>
233932010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
23394
23395 Add keyboard layouts support.
23396
23397 * Makefile.util.def (grub-mklayout): New file.
23398 (grub-kbdcomp): New script.
23399 * grub-core/Makefile.am (KERNEL_HEADER_FILES) [COND_mips_yeeloong]:
23400 Add keyboard_layouts.h.
23401 * grub-core/Makefile.core.def (kernel): Add commands/keylayouts.c and
23402 commands/boot.c on yeeloong.
23403 (keylayouts): New module.
23404 * grub-core/bus/usb/ohci.c
23405 * grub-core/bus/usb/uhci.c
23406 * grub-core/bus/usb/usbhub.c (rescan): New variable.
23407 (grub_usb_add_hub): Poll interrupt pipe for device handling.
23408 (attach_root_port): Likewise.
23409 (poll_nonroot_hub): Likewise.
23410 (grub_usb_poll_devices): Likewise.
23411 (detach_device): Close transfer.
23412 * grub-core/bus/usb/usbtrans.c (grub_usb_execute_and_wait_transfer): New
23413 function.
23414 (grub_usb_bulk_setup_readwrite): Likewise.
23415 (grub_usb_bulk_finish_readwrite): Likewise.
23416 * grub-core/commands/keylayouts.c: New file.
23417 * grub-core/commands/keystatus.c (grub_getkeystatus): New function.
23418 * grub-core/commands/menuentry.c (hotkey_aliases): All several new
23419 aliases.
23420 * grub-core/term/at_keyboard.c: Restructured to use keylayouts and
23421 support scancode 2.
23422 * grub-core/term/usb_keyboard.c: Restructured to use keylayouts.
23423 * include/grub/keyboard_layouts.h: New file.
23424 * util/grub-mklayout.c: New file.
23425 * util/grub-kbdcomp.in: Likewise.
23426
a1d84a5e
VS
234272010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
23428
23429 Unify memory types.
23430
23431 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Include memory.h.
23432 * grub-core/commands/lsmmap.c (grub_cmd_lsmmap): Output user-readable
23433 types.
23434 * grub-core/kern/i386/multiboot_mmap.c (grub_lower_mem): Removed.
23435 (grub_upper_mem): Likewise.
23436 * grub-core/kern/ieee1275/init.c (grub_upper_mem): Likewise.
23437 * include/grub/memory.h (grub_memory_type_t): New enum.
23438 All users updated.
23439
9696382e
VS
234402010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
23441
23442 * grub-core/Makefile.core.def (lsapm): New module.
23443 * grub-core/commands/i386/pc/lsapm.c: New file.
23444 * grub-core/loader/i386/multiboot_mbi.c (make_mbi) [GRUB_MACHINE_PCBIOS]: Pass APM info.
23445 * grub-core/loader/multiboot_mbi2.c (make_mbi) [GRUB_MACHINE_PCBIOS]:
23446 Likewise.
23447 * include/grub/i386/pc/apm.h: New file.
23448 * include/multiboot.h (multiboot_apm_info): New struct.
23449
234502010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
23451
23452 GRUB-legacy configuration file support.
23453
23454 * Makefile.util.def (grub-menulst2cfg): New util.
23455 * docs/man/grub-menulst2cfg.h2m: New file.
23456 * grub-core/Makefile.core.def (legacycfg): New module.
23457 * grub-core/commands/legacycfg.c: New file.
23458 * grub-core/commands/menuentry.c (append_menu_entry): Rename to ...
23459 (grub_normal_add_menu_entry): ... this.
23460 * grub-core/commands/password.c (grub_cmd_password): Split main part to ...
23461 (grub_normal_set_password): ...this.
23462 * grub-core/commands/videoinfo.c (grub_cmd_videoinfo): Support MODE.
23463 * grub-core/loader/i386/linux.c (linux_vesafb_res): Move to ..,
23464 * grub-core/lib/i386/pc/vesa_modes_table.c: ... here.
23465 * grub-core/lib/legacy_parse.c: New file.
23466 * grub-core/normal/auth.c (grub_cmd_authenticate): New command.
23467 * include/grub/i386/pc/vesa_modes_table.h: New file.
23468 * include/grub/legacy_parse.h: Likewise.
23469 * include/grub/normal.h (grub_normal_add_menu_entry): New proto.
23470 * util/grub-menulst2cfg.c: New file.
23471
bf8d1338
CW
234722010-09-17 Colin Watson <cjwatson@ubuntu.com>
23473
23474 * grub-core/kern/emu/hostdisk.c
23475 (convert_system_partition_to_system_disk): Initialise node.
23476
9c0bad2e
CW
234772010-09-17 Colin Watson <cjwatson@ubuntu.com>
23478
23479 * grub-core/kern/emu/hostdisk.c
23480 (convert_system_partition_to_system_disk): Fix devmapper memory pool
23481 leak.
23482 Reported and based on patch by: Modestas Vainius.
23483
a939d135
CW
234842010-09-17 Colin Watson <cjwatson@ubuntu.com>
23485
23486 Fix DM-RAID probing with recent versions of device-mapper udev
23487 rules.
23488
23489 * grub-core/kern/emu/hostdisk.c (read_device_map): Don't
23490 canonicalise device paths under /dev/mapper/.
23491 (convert_system_partition_to_system_disk): Compare the
23492 uncanonicalised path to /dev/mapper/ rather than the canonicalised
23493 path, since device nodes under /dev/mapper/ are often symlinks.
23494
0f7ee3c9
YB
234952010-09-17 Yves Blusseau <blusseau@zetam.org>
23496
23497 * .bzrignore: *.d removed (old rule), add *.image and symlist.h.
23498
10854d0d
YB
234992010-09-16 Yves Blusseau <blusseau@zetam.org>
23500
23501 * configure.ac: Avoid some annoying error messages if freetype-config
23502 program is not found.
23503
108538d8
CW
235042010-09-16 Colin Watson <cjwatson@ubuntu.com>
23505
23506 Support RAID on virtio devices, and others.
23507
23508 * grub-core/kern/emu/getroot.c [__MINGW32__] (find_root_device):
23509 Rename to ...
23510 [__MINGW32__] (grub_find_device): ... this.
23511 [! __MINGW32__ && ! __CYGWIN__] (find_root_device): Rename to ...
23512 [! __MINGW32__ && ! __CYGWIN__] (grub_find_device): ... this. Use a
23513 reasonable default if dir is NULL.
23514 [! __MINGW32__ && __CYGWIN__] (find_cygwin_root_device): Rename to
23515 ...
23516 [! __MINGW32__ && __CYGWIN__] (grub_find_device): ... this.
23517 (grub_guess_root_device): Update callers.
23518 * include/grub/emu/getroot.h (grub_find_device): Add prototype.
23519
23520 * util/raid.c (grub_util_getdiskname): Remove.
23521 (grub_util_raid_getmembers): Use grub_find_device rather than
23522 grub_util_getdiskname.
23523
e5bfc130
CW
235242010-09-16 Colin Watson <cjwatson@ubuntu.com>
23525
23526 * docs/grub.texi (serial): Remove obsolete comment about GRUB
23527 needing to be compiled with serial support.
23528 (ls): Indicate that multiple files are accepted.
23529 * grub-core/commands/ls.c (GRUB_MOD_INIT): Update help text to
23530 indicate that multiple files are accepted.
23531
be458ae2
CW
235322010-09-16 Colin Watson <cjwatson@ubuntu.com>
23533
23534 * .bzrignore: Add *.1, *.8, grub-shell, grub-shell-tester,
23535 libgrub_a_init.c, and util/bash-completion.d/grub.
23536
cb731b5e
VS
235372010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
23538
23539 * util/grub-setup.c (setup): Fix incorrect container semantics.
23540
35139e8a
VS
235412010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
23542
23543 * grub-core/commands/parttool.c (grub_cmd_parttool): Fix a variable
23544 misusage.
23545 Reported by: J. Nick Terry
23546
e50fca4a
VS
235472010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
23548
23549 Move embedding routines to partmap sources files.
23550
23551 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot)
23552 [GRUB_UTIL]: New variable.
23553 (gpt_partition_map_iterate): Set part.parent.
23554 (gpt_partition_map_embed) [GRUB_UTIL]: New function.
23555 (grub_gpt_partition_map) [GRUB_UTIL]: Set .embed.
23556 * grub-core/partmap/msdos.c (pc_partition_map_embed) [GRUB_UTIL]:
23557 New function.
23558 (grub_msdos_partition_map) [GRUB_UTIL]: Set .embed.
23559 * include/grub/partition.h (grub_embed_type_t) [GRUB_UTIL]: New type.
23560 (grub_partition_map) [GRUB_UTIL]: New field embed.
23561 * util/grub-setup.c (grub_gpt_partition_type_bios_boot): Removed.
23562 (setup): Use ->embed.
23563
f00478b7
VS
235642010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
23565
23566 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): New
23567 function.
23568 * include/grub/emu/hostdisk.h (grub_util_biosdisk_is_floppy): New proto.
23569 * util/grub-setup.c (setup): Use grub_util_biosdisk_is_floppy.
23570
2b94e3ff
YB
235712010-09-15 Yves Blusseau <blusseau@zetam.org>
23572
23573 Add function to get completions from usage.
23574
23575 * util/bash-completion.d/grub-completion.bash.in: Add function to get
23576 completions from usage. Use LC_ALL=C to get options properly.
23577
2e04a006
VS
235782010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
23579
23580 * grub-core/gnulib/basename-lgpl.c: Imported.
23581 * grub-core/gnulib/basename.c: Likewise.
23582 * grub-core/gnulib/dirname-lgpl.c: Likewise.
23583 * grub-core/gnulib/dirname.c: Likewise.
23584 * grub-core/gnulib/dirname.h: Likewise.
23585 * grub-core/gnulib/stripslash.c: Likewise.
23586
5dcdf93a
VS
235872010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
23588
23589 * grub-core/gnulib/error.c: Resynced.
23590 * grub-core/gnulib/getopt.c: Likewise.
23591 * grub-core/gnulib/getopt_int.h: Likewise.
23592 * grub-core/gnulib/regex.h: Likewise.
23593 * grub-core/gnulib/regex_internal.c: Likewise.
23594 * grub-core/gnulib/regex_internal.h: Likewise.
23595
014f47b7
SJ
235962010-09-15 Szymon Janc <szymon@janc.net.pl>
23597
23598 * grub-core/lib/xzembed/xz_dec_stream.c (dec_main): Fix index and block
23599 CRC calculations and validity checks.
23600 * grub-core/lib/xzembed/xz_dec_stream.c (dec_index): Fix index CRC
23601 calculations.
23602
dd521a4a
SJ
236032010-09-15 Szymon Janc <szymon@janc.net.pl>
23604
23605 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_end): Fix memory leak.
23606
79c4eeb9
VS
236072010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23608
23609 Fix incorrect echo options handling.
23610 Reported by: Yves Blusseau.
23611
23612 * include/grub/command.h (grub_command_flags_t): New flags
23613 GRUB_COMMAND_ACCEPT_DASH and GRUB_COMMAND_OPTIONS_AT_START.
23614 * grub-core/lib/arg.c (grub_arg_parse): Handle new flags.
23615 * grub-core/commands/echo.c (GRUB_MOD_INIT): Use new flags.
23616
ed80f7d5
VS
236172010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23618
23619 * include/grub/command.h (GRUB_COMMAND_FLAG_CMDLINE): Removed. All
23620 users updated.
23621 (GRUB_COMMAND_FLAG_MENU): Likewise.
23622 (GRUB_COMMAND_FLAG_BOTH): Likewise.
23623 (GRUB_COMMAND_FLAG_TITLE): Removed.
23624 (GRUB_COMMAND_FLAG_NO_ECHO): Likewise.
23625 (GRUB_COMMAND_FLAG_EXTCMD): Moved into enum.
23626 (GRUB_COMMAND_FLAG_DYNCMD): Likewise.
23627 (GRUB_COMMAND_FLAG_BLOCKS): Likewise.
23628 (grub_command_flags_t): New enum. All users updated.
23629
5fe7620a
SG
236302010-09-14 Seth Goldberg <seth.goldberg@oracle.com>
23631
23632 Fix solaris compilation.
23633
23634 * grub-core/Makefile.core.def (kernel): Include gnulib/error.c on emu.
23635 (grub-emu): Add LIBZFS and LIBNVPAIR to ldadd.
23636 (grub-emu-list): Likewise.
23637
545b752f
VS
236382010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23639
23640 Remove deprecated root command.
23641
23642 * grub-core/commands/minicmd.c (grub_mini_cmd_root): Removed. All users
23643 updated.
23644
6c1a338c
VS
236452010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23646
23647 * util/i386/pc/grub-setup.c: Merge this ...
23648 * util/sparc64/ieee1275/grub-setup.c: ... and this ...
23649 * util/grub-setup.c: ... into this.
23650 * include/grub/sparc64/ieee1275/boot.h (grub_boot_blocklist) [ASM_FILE]:
23651 New struct.
23652
236532010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23654
23655 * grub-core/fs/ext2.c (grub_ext2_open): Use return error value when
23656 possible.
23657
d2ea4551
VS
236582010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23659
23660 * grub-core/partmap/sun.c (sun_partition_map_iterate): Don't needlesly
23661 allocate p.
23662
3c3b5040
VS
236632010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23664
23665 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Add
23666 explicit root argument to set to prevent UUID to be interpreted as
23667 argument to set.
23668
b71c3fae
VS
236692010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23670
23671 * grub-core/kern/sparc64/ieee1275/crt0.S: Align stack.
23672
275433e6
VS
236732010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23674
23675 Don't export grub_gate_a20.
23676
23677 * grub-core/kern/i386/pc/init.c: Remove leftovers.
23678 * grub-core/kern/i386/pc/startup.S (FUNCTION(grub_gate_a20)): Rename
23679 to ...
23680 (grub_gate_a20): ... this. All users updated.
23681 * include/grub/i386/pc/init.h: Removed. All users updated.
23682
a5dbb1f1
VS
236832010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23684
23685 Create euro.pf2 which supports most European languages.
23686
23687 * Makefile.am (grubdata_DATA): Add euro.pf2.
23688 (euro.pf2): New target.
23689 (CLEANFILES): Add euro.pf2.
23690
62a747cb
VS
236912010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23692
23693 * configure.ac: Disable emu-usb by default to prevent inadvertent
23694 device takeover.
23695
608e43b1
VS
236962010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23697
23698 Disable usbserial on grub-emu since our libusb code isn't good enough
23699 yet.
23700
23701 * grub-core/Makefile.core.def (usbserial_common): Disable on emu.
23702 (usbserial_pl2303): Likewise.
23703 (usbserial_ftdi): Likewise.
23704
94564f81
VS
237052010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23706
23707 * include/grub/disk.h (grub_disk): Remove has_partitions.
23708 All users updated.
23709 * disk/loopback.c (grub_loopback): Remove has_partitions.
23710 All users updated.
23711 (options): Remove partitions. All users updated.
23712 * util/grub-fstest.c (fstest): Don't pass "-p" to loopback.
23713 * util/i386/pc/grub-setup.c (setup): copy partition table only when
23714 actual partition table is found.
23715
3352800b
VS
237162010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23717
23718 Remove readability checks (too many false negatives).
23719
23720 * util/grub-install.in: Remove readability checks.
23721 * util/grub-mkconfig.in: Likewise.
23722 * util/grub.d/10_hurd.in: Likewise.
23723 * util/grub.d/10_kfreebsd.in: Likewise.
23724 * util/grub.d/10_linux.in: Likewise.
23725 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Revert to old
23726 way.
23727
2419f17a
VS
237282010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23729
23730 Enable acpi shutdown on all ACPI platforms.
23731
23732 * grub-core/Makefile.core.def (halt): Inlude commands/acpihalt.c
23733 on coreboo, multiboot and EFI.
23734 * grub-core/commands/acpihalt.c (get_sleep_type): Add missing casts.
23735 (grub_acpi_halt): Likewise.
23736 * grub-core/commands/i386/pc/halt.c (grub_halt): Call grub_acpi_halt.
23737 (grub_cmd_halt): Don't call grub_acpi_halt directly.
23738 * grub-core/lib/efi/halt.c (grub_halt): Call grub_acpi_halt.
23739 * grub-core/lib/i386/halt.c (grub_halt)
23740 [GRUB_MACHINE_COREBOOT || GRUB_MACHINE_MULTIBOOT]: Likewise.
23741
0575c7c3
VS
237422010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23743
23744 * grub-core/commands/iorw.c (grub_cmd_read): Declare buf in smallest
23745 context.
23746
54ac3cd1
VS
237472010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23748
23749 * grub-core/video/efi_gop.c: Fix over-80-chars line.
23750 * grub-core/video/efi_uga.c: Likewise.
23751
b2a30ac5
VS
237522010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23753
23754 Filter devaliases and never open same device twice.
23755
23756 * grub-core/disk/ieee1275/ofdisk.c (last_devpath): New variable.
23757 (last_ihandle): Likewise.
23758 (ofdisk_hash_ent): New member shortest.
23759 (ofdisk_hash_add): Add canonical path too.
23760 (scan): New function.
23761 (grub_ofdisk_iterate): Iterate over hashed entries.
23762 (compute_dev_path): Don't add :0.
23763 (grub_ofdisk_open): Don't really open the disk.
23764 (grub_ofdisk_close): Avoid closing unrelated disk.
23765 (grub_ofdisk_read): Implement reopen logic.
23766 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_canonicalise_devname):
23767 New function.
23768 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_canonicalise_devname):
23769 New proto.
23770
fb53b340
VS
237712010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23772
23773 Fix sparc64.
23774
23775 * configure.ac (GRUB_KERNEL_MACHINE_LINK_ADDR): Removed.
23776 * grub-core/Makefile.core.def (kernel): Make ldflags just use the
23777 right address. Add sparc64_ieee1275_ldflags.
23778 * grub-core/loader/sparc64/ieee1275/linux.c: Remove leftover include.
23779 * util/grub-mkimagexx.c (locate_sections): Correct grub_host_to_target32
23780 to grub_host_to_target_addr
23781 (load_image): Likewise.
23782
f452b040
VS
237832010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23784
23785 * grub-core/normal/completion.c (complete_file): Handle device
23786 containing slash.
23787 Fix based on patch by Doug Nazar.
23788
9b5b2541
VS
237892010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23790
23791 grub-mknetdir script.
23792
23793 * Makefile.util.def (grub-mknetdir): New module.
23794 * tests/util/grub-shell.in: Support boot=net
23795 * util/grub-mknetdir.in: New file.
23796
9d2be652
VS
237972010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23798
23799 videoinfo on non-vbe.
23800
23801 * grub-core/Makefile.core.def (vbeinfo): Removed.
23802 (vbetest): Removed.
23803 (videoinfo): New module.
23804 * grub-core/commands/i386/pc/vbeinfo.c: Removed.
23805 * grub-core/commands/i386/pc/vbetest.c: Removed.
23806 * grub-core/commands/videoinfo.c: New file.
23807 * grub-core/commands/videotest.c (grub_cmd_videotest): Support mode
23808 specification.
23809 (grub_cmd_videotest) [GRUB_MACHINE_PCBIOS]: Load vbe.mod when invoked
23810 as vbetest.
23811 (GRUB_MOD_INIT) [GRUB_MACHINE_PCBIOS]: New command vbetest.
23812 (GRUB_MOD_FINI) [GRUB_MACHINE_PCBIOS]: Unregister vbetest.
23813 * grub-core/video/efi_gop.c (grub_video_gop_fill_mode_info): Fill
23814 mode_number. New parameter mode. All users updated.
23815 (grub_video_gop_iterate): New function.
23816 (grub_video_efi_gop): New member iterate.
23817 * grub-core/video/i386/pc/vbe.c (framebuffer): Removed leftover fields.
23818 (grub_vbe_set_video_mode): Remove setting useless fields.
23819 (vbe2videoinfo): New function.
23820 (grub_video_vbe_iterate): Likewise.
23821 (grub_video_vbe_setup): Use vbe2videoinfo.
23822 (grub_video_vbe_print_adapter_specific_info): New function.
23823 (grub_video_vbe_adapter): New fields iterate and
23824 print_adapter_specific_info.
23825 * include/grub/video.h (GRUB_VIDEO_MODE_*): Transform into enum.
23826 All users updated.
23827 (grub_video_mode_info): New field mode_number.
23828 (grub_video_adapter): New fields iterate and
23829 print_adapter_specific_info.
23830
179503f5
TG
238312010-09-13 Tristan Gingold <gingold@free.fr>
238322010-09-13 Robert Millan <rmh.grub@aybabtu.com>
238332010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23834
23835 * grub-core/commands/efi/lsefisystab.c: New file.
23836 * grub-core/commands/efi/lssal.c: Likewise.
23837 * grub-core/Makefile.core.def (lsacpi): New module.
23838 (lsefisystab): Likewise.
23839 * include/grub/efi/api.h (GRUB_EFI_SAL_TABLE_GUID): New definition.
23840 (GRUB_EFI_HCDP_TABLE_GUID): Likewise.
23841 (grub_efi_sal_system_table): New struct.
23842 (grub_efi_sal_system_table_entrypoint_descriptor): Likewise.
23843 (grub_efi_sal_system_table_memory_descriptor): Likewise.
23844 (grub_efi_sal_system_table_platform_features): Likewise.
23845 (grub_efi_sal_system_table_translation_register_descriptor): Likewise.
23846 (grub_efi_sal_system_table_purge_translation_coherence): Likewise.
23847 (grub_efi_sal_system_table_ap_wakeup): Likewise.
23848 * include/grub/types.h (PRIuGRUB_UINT64_T): New definition.
23849
cf9827de
VS
238502010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23851
23852 Support explicit user claim that a device is BIOS-visible.
23853
23854 * grub-core/kern/emu/getroot.c (grub_util_get_dev_abstraction):
23855 Return GRUB_DEV_ABSTRACTION_NONE if device is in device.map.
23856 * grub-core/kern/emu/hostdisk.c
23857 (convert_system_partition_to_system_disk): Support mdX.
23858 (find_system_device): New parameter add. All users updated.
23859 (grub_util_biosdisk_is_present): New function.
23860 * include/grub/emu/hostdisk.h (grub_util_biosdisk_is_present): New
23861 proto.
23862
53f0eb1f
VS
238632010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23864
23865 Search hints support.
23866
23867 * commands/search.c (FUNC_NAME): New arguments hints and nhints.
23868 All users updated.
23869
b23ffd70
YB
238702010-09-13 Yves Blusseau <blusseau@zetam.org>
23871
23872 Bash completion script for util commands
23873
23874 * Makefile.am: Add util/bash-completion.d directory
23875 * configure.ac: Likewise.
23876 * util/bash-completion.d/Makefile.am: New file.
23877 * util/bash-completion.d/grub-completion.bash.in: Likewise.
23878
d547dc28
VS
238792010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
23880
23881 * grub-core/normal/term.c (put_glyphs_terminal): Correct sign.
23882 (print_backlog): set backlog_ucs4 and backlog_glyphs.
23883 Reported by: Yves Blusseau.
23884
2fc8ccb9
VS
238852010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
23886
23887 * grub-core/normal/misc.c (grub_normal_print_device_info): Show
23888 partition size and offset.
23889
d8a84076
VS
238902010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
23891
23892 * grub-core/commands/wildcard.c (make_regex): Escape brackets.
23893
84fb3b3d
VS
238942010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
23895
23896 * grub-core/commands/ls.c (grub_cmd_ls): Accept multiple files.
23897
768ec2e2
VS
238982010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
23899
23900 * grub-core/kern/misc.c (grub_vprintf): Use va_copy when necessary.
23901 (grub_xvasprintf): Likewise.
23902
4870900f
VS
239032010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
23904
23905 * grub-core/kern/emu/main.c (main): Call hostfs_init only after init_all.
23906
faca6bec
VS
239072010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
23908
23909 * grub-core/commands/menuentry.c (append_menu_entry): Don't rely on
23910 args ending with NULL.
23911
239122010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
788f1f3a
VS
23913
23914 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_reset): Preserve context
23915 pointer.
23916
3c70f225
SJ
239172010-09-11 Szymon Janc <szymon@janc.net.pl>
23918
23919 * grub-core/commands/lsacpi.c (grub_cmd_lsacpi): Fix prototype.
23920
4df7996d
VS
239212010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
23922
23923 Shutdown using ACPI.
23924
23925 * grub-core/Makefile.core.def (halt): Add commands/acpihalt.c on i386-pc.
23926 * grub-core/commands/acpihalt.c: New file.
23927 * grub-core/commands/i386/pc/halt.c (grub_cmd_halt): Call grub_acpi_halt.
23928 * include/grub/acpi.h (grub_acpi_fadt): New member pm1a.
23929 (grub_acpi_halt): New proto.
23930 (GRUB_ACPI_SLP_EN): New const.
23931 (GRUB_ACPI_SLP_TYP_OFFSET): Likewise.
23932 (GRUB_ACPI_OPCODE_*): New enum.
23933 (GRUB_ACPI_EXTOPCODE_*): Likewise.
23934
126b4c32
TG
239352010-09-11 Tristan Gingold <gingold@free.fr>
239362010-09-11 Robert Millan <rmh.grub@aybabtu.com>
239372010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
23938
23939 * commands/lsacpi.c: New file.
23940 * grub-core/Makefile.core.def (lsacpi): New module.
23941 * include/grub/acpi.h (GRUB_ACPI_FADT_SIGNATURE): New definition.
23942 (GRUB_ACPI_MADT_SIGNATURE): Likewise.
23943 (grub_acpi_madt_entry_header): New struct.
23944 (grub_acpi_madt): Likewise.
23945 (grub_acpi_madt_entry_interrupt_override): Likewise.
23946 (grub_acpi_madt_entry_sapic): Likewise.
23947 (grub_acpi_madt_entry_lsapic): Likewise.
23948 (grub_acpi_madt_entry_platform_int_source): Likewise.
23949 * include/grub/types.h (PRIxGRUB_UINT32_T): New definition.
23950 (PRIuGRUB_UINT32_T): Likewise.
23951 (PRIxGRUB_UINT64_T): Likewise.
23952
1aa4fe88
VS
239532010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
23954
23955 Implement loading palette on ieee1275_fb.
23956
23957 * grub-core/video/ieee1275.c (stdout_ihandle): New variable.
23958 (have_setcolors): Likewise.
23959 (grub_video_ieee1275_init): Fill stdout_ihandle and have_setcolors.
23960 (grub_video_ieee1275_setup): Use grub_video_ieee1275_set_palette.
23961 (grub_video_ieee1275_set_palette): Implement.
23962
25761e13
VS
239632010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
239642010-09-11 Colin Watson <cjwatson@ubuntu.com>
23965
23966 * util/grub-install.in (grub_partition): New variable.
23967 Set prefix_drive on EFI and PC to (,$grub_partition) as last resort.
23968 * util/i386/pc/grub-setup.c (setup): Don't touch prefix.
23969 Fixes a bug reported by Yves Blusseau.
23970
050abaea
VS
239712010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
23972
23973 Fix emu on mipsel.
23974
23975 * conf/Makefile.common (CFLAGS_PLATFORM): Add -mflush-func
23976 =grub_cpu_flush_cache on all mips and not only yeeloong.
23977 * configure.ac (COND_mips): New conditional.
23978 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add libgcc on all
23979 platforms.
23980 * grub-core/kern/emu/cache.S (__mips__): Use _flush_cache.
23981 * grub-core/kern/emu/full.c (grub_arch_dl_init_linker)
23982 [GRUB_LINKER_HAVE_INIT]: New function.
23983 (grub_emu_post_init): Likewise.
23984 * grub-core/kern/emu/lite.c (grub_emu_post_init): Likewise.
23985 * grub-core/kern/emu/main.c: Use grub_emu_post_init.
23986 * include/grub/cache.h (_mips): Include mips/cache.h.
23987 * include/grub/disk.h [GRUB_UTIL || GRUB_MACHINE_EMU]: Add missing
23988 LVM and RAID prototypes.
23989 * include/grub/emu/misc.h (grub_emu_post_init): New proto.
23990 * include/grub/mips/time.h (grub_cpu_idle) [GRUB_MACHINE_EMU]: New
23991 function.
23992
5ed7d816
CW
239932010-09-10 Colin Watson <cjwatson@ubuntu.com>
23994
23995 * util/grub-install.in: Don't try to verify core.img until after
23996 running grub-mkimage to create it.
23997
90367e04
RM
239982010-09-10 Robert Millan <rmh@gnu.org>
23999
24000 * util/grub.d/10_hurd.in: Add misc readability checks.
24001 * util/grub.d/10_kfreebsd.in: Likewise.
24002 * util/grub.d/10_linux.in: Likewise.
24003
c452fa66
CW
240042010-09-10 Colin Watson <cjwatson@ubuntu.com>
24005
24006 * util/grub-install.in: ${imgext} won't be defined here until the
24007 install branch is merged. For the meantime, only verify core.img on
24008 i386-pc and sparc64-ieee1275 platforms.
24009
c38fe9f4
RM
240102010-09-10 Robert Millan <rmh@gnu.org>
24011
24012 Solaris support in grub_find_zpool_from_dir(). Thanks
24013 Seth Goldberg for referring to getextmntent() facility.
24014
24015 * configure.ac: Check for getextmntent(), `sys/mnttab.h' and
24016 `sys/mkdev.h'.
24017 * grub-core/kern/emu/misc.c [HAVE_SYS_MNTTAB_H]: Include
24018 `<sys/mnttab.h>'.
24019 [HAVE_SYS_MKDEV_H]: Include `<sys/mkdev.h>'.
24020 [HAVE_GETEXTMNTENT] (grub_find_zpool_from_dir): Add getextmntent()
24021 method for finding zpool name.
24022
905f7773
CW
240232010-09-10 Colin Watson <cjwatson@ubuntu.com>
24024
24025 grub-fstest needs the host and hostfs modules while other utilities
24026 actively require those modules to be absent, so grub-fstest needs
24027 its own initialisation and finalisation code.
24028
24029 * Makefile.am (grub_fstest.pp): New target.
24030 (grub_fstest_init.lst): Likewise.
24031 (grub_fstest_init.c): Likewise.
24032 * Makefile.util.def (grub-fstest): Add grub_fstest_init.c.
24033
fb90b546
RM
240342010-09-10 Robert Millan <rmh@gnu.org>
24035
24036 * configure.ac: Check for `struct statfs.f_fstypename' and
24037 `struct statfs.f_mntfromname'.
24038
24039 * grub-core/kern/emu/misc.c (grub_find_zpool_from_dir): Conditionalize
24040 kFreeBSD-specific code.
24041
66d4bea5
RM
240422010-09-10 Robert Millan <rmh@gnu.org>
24043
24044 * util/grub.d/10_kfreebsd.in: Fix ${kfreebsd_device} initialization
24045 on ZFS. Now non-main filesystems are supported as / too.
24046
b6a690ee
CW
240472010-09-09 Colin Watson <cjwatson@ubuntu.com>
24048
24049 * Makefile.util.def (libgrub.a): Move grub-core/kern/emu/hostfs.c
24050 and grub-core/disk/host.c to ...
24051 (grub-fstest): ... here. Having the host disk implementation
24052 present confuses grub-probe and other utility programs.
24053
24054 * util/grub-mkconfig.in: Only verify readability of grub.cfg.new
24055 when writing to a file, not when writing to stdout.
24056
8901b00c 240572010-09-09 BVK Chaitanya <bvk.groups@gmail.com>
24058
24059 * tests/partmap_test.in: New test for partitions.
24060 * Makefile.util.def: Rules for new test.
24061
7bf45fdd
RM
240622010-09-09 Robert Millan <rmh@gnu.org>
24063
24064 * util/grub-probe.c (probe): Fix a pair of unhandled error
24065 conditions.
24066
4dfbc574
RM
240672010-09-09 Robert Millan <rmh@gnu.org>
24068
24069 Basic Btrfs support (detection and UUID).
24070
24071 * grub-core/fs/btrfs.c: New file.
24072 * Makefile.util.def (library): Register btrfs.c.
24073 * grub-core/Makefile.core.def: Likewise.
24074
6b8e78ae
RM
240752010-09-08 Robert Millan <rmh@gnu.org>
24076
24077 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Improve
24078 with (optional) parameters to specify device and relative path.
24079 * util/grub-install.in: Use is_path_readable_by_grub() to
24080 verify readability of a few critical files.
24081 * util/grub-mkconfig.in: Use is_path_readable_by_grub() to
24082 verify readability of grub.cfg.new.
24083
27f21a8b
VS
240842010-09-08 Vladimir Serbinenko <phcoder@gmail.com>
24085
24086 Split minix.mod into minix.mod and minix2.mod.
24087
24088 * Makefile.util.def (libgrub.a): Add grub-core/fs/minix2.c.
24089 * grub-core/Makefile.core.def (minix2): New module.
24090 * grub-core/fs/minix.c: Use definitions instead of runtime version
24091 checking.
24092 * grub-core/fs/minix2.c: New file.
24093
c0e53ea5
YB
240942010-09-08 Yves Blusseau <blusseau@zetam.org>
24095
24096 Add new --boot-directory option to replace --root-directory
24097
24098 * util/grub-install.in: Add new --boot-directory option
24099 * util/grub-reboot.in: Likewise.
24100 * util/grub-set-default.in: Likewise.
24101
b9fe6ea2
YB
241022010-09-08 Yves Blusseau <blusseau@zetam.org>
24103
24104 * util/grub-mkconfig.in: Use new variable.
24105
d87aedff
YB
241062010-09-08 Yves Blusseau <blusseau@zetam.org>
24107
24108 * configure.ac: Define some useful variables.
24109
e55e8495
VS
241102010-09-08 Vladimir Serbinenko <phcoder@gmail.com>
24111
24112 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
24113 GRUB_IEEE1275_FLAG_HAS_CURSORONOFF when appropriate.
24114 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_setcursor):
24115 Use terminfo and don't use cursor-on/cursor-off unless it's known
24116 to work.
24117 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New element
24118 GRUB_IEEE1275_FLAG_HAS_CURSORONOFF.
24119
6fa6d675
CW
241202010-09-08 Colin Watson <cjwatson@ubuntu.com>
24121
24122 * grub-core/kern/efi/init.c (grub_efi_set_prefix): If the prefix
24123 starts with "(,", fill the drive containing the loaded image in
24124 between those two characters, but expect that a full partition
24125 specification including partition map names will follow.
24126
92f2aef0
RM
241272010-09-08 Robert Millan <rmh@gnu.org>
24128
24129 * configure.ac: Remove `--enable-grub-fstest' option.
24130 * Makefile.util.def (grub-fstest): Remove COND_GRUB_FSTEST condition.
24131
24132 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Use
24133 `grub-fstest' instead of `grub-probe' for readability verification.
24134 * util/grub-probe.c (probe): Remove readability verification kludge.
24135
99fd620d
RM
241362010-09-08 Robert Millan <rmh@gnu.org>
24137
24138 * util/grub-mkconfig.in: Pass `--device ${GRUB_DEVICE}' when
24139 initializing `GRUB_FS'.
24140
058e30ac 241412010-09-08 BVK Chaitanya <bvk.groups@gmail.com>
24142
24143 Not command (!) support to GRUB script.
24144
24145 * tests/grub_script_not.in: New test.
24146 * Makefile.util.def: Rules for new test.
24147
24148 * grub-core/script/execute.c (grub_script_execute_cmdline): Handle
24149 ! command as a special case.
24150 * grub-core/script/yylex.l (GRUB_PARSER_TOKEN_NOT): Removed.
24151
b61d05ed 241522010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
24153
058e30ac 24154 * grub-core/commands/wildcard.c (wildcard_expand): Fix wrong
24155 grub_free.
b61d05ed 24156
4d69c786 241572010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
24158
24159 * docs/grub.texi (Shell-like scripting): Fix @dots to @dots{}.
24160
aa3119c4 241612010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
24162
24163 * docs/grub.texi (Shell-like scripting): Documentation for break,
24164 continue, shift and return commands.
24165
db0f7e3d
VS
241662010-09-06 Vladimir Serbinenko <phcoder@gmail.com>
24167
24168 Rename CD-ROM to cd on BIOS.
24169
24170 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_get_drive): Recognise
24171 "cd".
24172 (grub_biosdisk_call_hook): Call with "cd" instead of arbitrary hdX.
24173
88b87c93
VS
241742010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
24175
24176 * grub-core/kern/emu/main.c (main): Reinit LVM and RAID.
24177 * util/grub-probe.c (main): Likewise.
24178 * util/i386/pc/grub-setup.c (main): Likewise.
24179 * util/sparc64/ieee1275/grub-setup.c (main): Likewise.
24180 Reported and debugged by: alexxy
24181
294f324d
VS
241822010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
24183
24184 * grub-core/disk/lvm.c (grub_lvm_scan_device) [GRUB_UTIL]: Output more
24185 diagnostic info.
24186
d7ee3441
JS
241872010-09-05 Jo Shields <directhex@apebox.org>
24188
24189 * util/grub.d/30_os-prober.in: Add missing classes.
24190
d7e06c1f
VS
241912010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
24192
24193 * docs/grub.texi (Theme file format): Document new position format.
24194
fc157e53
VS
241952010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
24196
24197 * docs/grub.texi (Theme file format): Replace Box_slice_names.png with
24198 a table. Use @code instead of @verbatim.
24199
506e9a1c
CB
242002010-09-05 Colin D Bennett <colin@gibibit.com>
24201
24202 Gfxmenu documentation.
24203
24204 * docs/grub.texi (Theme file format): New chapter.
24205
f0aff67c
SJ
242062010-09-05 Szymon Janc <szymon@janc.net.pl>
24207
24208 * grub-core/Makefile.core.def (xzio): New module.
24209 * grub-core/io/xzio.c: New file.
24210 * grub-core/lib/xzembed/xz.h: New file (from xembed).
24211 * grub-core/lib/xzembed/xz_config.h: Likewise.
24212 * grub-core/lib/xzembed/xz_dec_bcj.c: Likewise.
24213 * grub-core/lib/xzembed/xz_dec_lzma2.c: Likewise.
24214 * grub-core/lib/xzembed/xz_dec_stream.c: Likewise.
24215 * grub-core/lib/xzembed/xz_lzma2.h: Likewise.
24216 * grub-core/lib/xzembed/xz_private.h: Likewise.
24217 * grub-core/lib/xzembed/xz_stream.h: Likewise.
24218 * include/grub/file.h (grub_file_filter_id): New compression filter
24219 GRUB_FILE_FILTER_XZIO.
24220
82a85062
VS
242212010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
24222
24223 * include/grub/file.h (GRUB_FILE_SIZE_UNKNOWN): New definition.
24224 * grub-core/disk/loopback.c (grub_loopback_open): Handle unknown file
24225 size.
24226
3579415d
VS
242272010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
24228
24229 * include/grub/err.h (grub_err_t): Replace GRUB_ERR_BAD_GZIP_DATA with
24230 GRUB_ERR_BAD_COMPRESSED_DATA. All users updated.
24231
5124ae6d
VS
242322010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
24233
24234 Uncompressed checksum support.
24235
24236 * grub-core/commands/hashsum.c (options): Add option --uncompress.
24237 (check_list): New parameter uncompress.
24238 (grub_cmd_hashsum): Handle --uncompress.
24239
9aadb3d1
VS
242402010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
24241
24242 Reintroduce testload.
24243
24244 * grub-core/commands/minicmd.c (grub_rescue_cmd_testload) [0]: Moved
24245 from here ...
24246 * grub-core/commands/testload.c (grub_cmd_testload): ... here.
24247 (GRUB_MOD_INIT): New function.
24248 (GRUB_MOD_FINI): Likewise.
24249 * grub-core/Makefile.core.def (testload): New module.
24250
a17792c3
SJ
242512010-09-05 Szymon Janc <szymon@janc.net.pl>
24252
24253 * grub-core/lib/posix_wrap/sys/types.h (bool): Transform into an enum.
24254 (uint8_t): New type.
24255 (uint16_t): Likewise.
24256 (uint32_t): Likewise.
24257 (uint64_t): Likewise.
24258
b81e40a3
SJ
242592010-09-05 Szymon Janc <szymon@janc.net.pl>
24260
24261 * include/grub/crypto.h (GRUB_MD_CRC32): New definition.
24262
fc2ef117
VS
242632010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
24264
24265 * grub-core/io/gzio.c (grub_gzio_open): Removed "transparent" parameter.
24266 Made static.
24267 (grub_gzfile_open): Removed. All users updated.
24268 (GRUB_MOD_INIT): New function.
24269 (GRUB_MOD_FINI): Likewise.
24270 * grub-core/kern/file.c (grub_file_filters_all): New variable.
24271 (grub_file_filters_enabled): Likewise.
24272 (grub_file_open): Handle filters.
24273 * grub-core/loader/i386/bsd.c (GRUB_MOD_INIT): Load gzio.
24274 * grub-core/normal/main.c (GRUB_MOD_INIT): Likewise.
24275 * include/grub/file.h (grub_file_filter_id_t): New type.
24276 (grub_file_filter_t): Likewise.
24277 (grub_file_filters_all): New extern variable.
24278 (grub_file_filters_enabled): Likewise.
24279 (grub_file_filter_register): New inline function.
24280 (grub_file_filter_unregister): Likewise.
24281 (grub_file_filter_disable): Likewise.
24282 (grub_file_filter_disable_compression): Likewise.
24283 * include/grub/gzio.h: Removed.
24284
35ee15e0
BC
242852010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
24286
24287 Filename expansion support for wildcards in GRUB script.
24288
24289 * tests/grub_script_expansion.in: New test.
24290 * Makefile.util.def: Rule for new test.
24291
24292 * grub-core/commands/wildcard.c: New file, implements filename
24293 expansion support for GRUB script.
24294 * grub-core/Makefile.core.def: Rule update for regexp.mod.
24295 * grub-core/script/argv.c: Cosmetic changes.
24296 * grub-core/script/execute.c (grub_script_arglist_to_argv):
24297 Refactored to perform wildcard expansion on arguments.
24298 * include/grub/script_sh.h (grub_script_wildcard_translator): New
24299 struct.
24300
24301 * tests/util/grub-shell.in: Fix quoting for read input.
24302
5f0c4aca
BC
243032010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
24304
24305 Support for updating environment variables with matched substrings
24306 of regexp.
24307
24308 * tests/grub_cmd_regexp.in: New test.
24309 * Makefile.util.def: Rule for new test.
24310
24311 * grub-core/commands/regexp.c: New option -s to update environment
24312 variables with regexp matches.
24313
3759a35f
SJ
243142010-09-04 Szymon Janc <szymon@janc.net.pl>
24315
24316 * include/grub/file.h (grub_file): New member not_easly_seekable.
24317 (grub_file_seekable): New inline function.
24318 * grub-core/io/gzio.c (test_header): Don't test end magic if file isn't
24319 easily seekable.
24320 (grub_gzio_open): Set not_easly_seekable.
24321 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_open): Set not_easily_seekable.
24322 * grub-core/io/bufio.c (grub_bufio_open): Propagate not_easily_seekable.
24323
ed8c6dec
BC
243242010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
24325
24326 Support for options to appear multiple times on cmdline.
24327
24328 * include/grub/lib/arg.h (grub_arg_list_alloc): New prototype.
24329 * grub-core/commands/extcmd.c: Support for repeatable option.
24330 * grub-core/lib/arg.c (grub_arg_list_alloc): New function for
24331 repeatable option support.
24332
24333 Refactor menuentry into a regular command.
24334
24335 * grub-core/commands/menuentry.c: New file, menuentry command
24336 implementation.
24337 * grub-core/Makefile.core.def: Rule update for normal.mod.
24338 * grub-core/normal/main.c: Moved menuentry creation to
24339 grub-core/commands/menuentry.c.
24340 * grub-core/normal/menu.c (grub_menu_execute_entry): Removed.
24341 (grub_menu_execute_entry_real): Removed.
24342 * grub-core/script/execute.c (grub_script_execute_sourcecode): New
24343 function.
24344 (grub_script_execute_menuentry): Removed.
24345 * grub-core/script/parser.y (menuentry): Removed.
24346 * grub-core/script/script.c (grub_script_create_cmdmenu): Removed.
24347 * grub-core/script/yylex.l (menuentry): Removed.
24348 * include/grub/menu.h (grub_menu_init): New prototype.
24349 (grub_menu_fini): New prototype.
24350 * include/grub/normal.h (grub_normal_add_menu_entry): Removed.
24351 * include/grub/script_sh.h (grub_script_cmd_menuentry): Removed.
24352 (grub_script_execute_sourcecode): New prototype.
24353
dacd0cf0
BC
243542010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
24355
24356 "return" command for GRUB script functions.
24357
24358 * tests/grub_script_return.in: New test.
24359 * Makefile.util.def: Rules for new test.
24360
24361 * grub-core/script/execute.c (grub_script_return): New function.
24362 * grub-core/script/main.c: Register/unregister return commaond.
24363 * include/grub/script_sh.h (grub_script_return): New prototype.
24364
52e72f9d
BC
243652010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
24366
24367 "setparams" command to update positional parameters.
24368
24369 * tests/grub_script_setparams.in: New test.
24370 * Makefile.util.def: Rules for new test.
24371
24372 * grub-core/script/argv.c (grub_script_argv_make): New function.
24373 * grub-core/script/execute.c (replace_scope): New function.
24374 (grub_script_setparams): New function.
24375 * grub-core/script/lexer.c: Remove unused variables.
24376 * grub-core/script/main.c: Register/unregister setparams command.
24377 * include/grub/script_sh.h (grub_script_argv_make): New prototype.
24378 (grub_script_setparams): New prototype.
24379
25b60c91
BC
243802010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
24381
24382 * grub-core/normal/completion.c (grub_normal_do_completion): Fix
24383 grub_free order.
24384
37e7bf68
BC
243852010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
24386
24387 Support for passing block of commands as an argument to extcmds.
24388
24389 * Makefile.util.def: Rules for new test.
24390 * tests/grub_script_blockarg.in: New test.
24391 * grub-core/tests/test_blockarg.c: New file, block argument
24392 command used in the test.
24393
24394 * include/grub/extcmd.h (grub_extcmd_context): New struct.
24395 (grub_register_extcmd_prio): New function prototype.
24396 (grub_extcmd_dispatcher): New function prototype.
24397 * include/grub/command.h (GRUB_COMMAND_FLAG_BLOCKS): New command
24398 type.
24399 * include/grub/script_sh.h (struct grub_script): New members
24400 `children', `next_siblings' and `refcnt' for block arguments and
24401 reference counting.
24402 (GRUB_SCRIPT_ARG_TYPE_BLOCK): New argument type.
24403 (grub_script_arg): New member `script' for block argument.
24404 (grub_script_argv): New member `script' for block argument.
24405 (grub_parser_param): New member `scripts' for block argument.
24406 (grub_script_mem_free): New extern function prototype.
24407 (grub_script_ref): New function prototype.
24408 (grub_script_unref): New function prototype.
24409
24410 * grub-core/normal/dyncmd.c (grub_dyncmd_dispatcher): Moved to
24411 extcmd form to support block arguments.
24412 * grub-core/script/argv.c: Block arguments support.
24413 * grub-core/script/execute.c: Likewise.
24414 * grub-core/script/lexer.c: Likewise.
24415 * grub-core/script/main.c: Likewise.
24416 * grub-core/script/script.c: Likewise.
24417 * grub-core/script/parser.y: Likewise. New `block' and `block0'
24418 non-terminals.
24419
24420 * grub-core/commands/acpi.c: Update extcmd implementations with
24421 grub_extcmd_context_t.
24422 * grub-core/commands/cat.c: Likewise.
24423 * grub-core/commands/echo.c: Likewise.
24424 * grub-core/commands/extcmd.c: Likewise.
24425 * grub-core/commands/hashsum.c: Likewise.
24426 * grub-core/commands/hdparm.c: Likewise.
24427 * grub-core/commands/help.c: Likewise.
24428 * grub-core/commands/hexdump.c: Likewise.
24429 * grub-core/commands/i386/cpuid.c: Likewise.
24430 * grub-core/commands/i386/pc/drivemap.c: Likewise.
24431 * grub-core/commands/i386/pc/halt.c: Likewise.
24432 * grub-core/commands/i386/pc/sendkey.c: Likewise.
24433 * grub-core/commands/iorw.c: Likewise.
24434 * grub-core/commands/keystatus.c: Likewise.
24435 * grub-core/commands/loadenv.c: Likewise.
24436 * grub-core/commands/ls.c: Likewise.
24437 * grub-core/commands/lspci.c: Likewise.
24438 * grub-core/commands/memrw.c: Likewise.
24439 * grub-core/commands/probe.c: Likewise.
24440 * grub-core/commands/search_wrap.c: Likewise.
24441 * grub-core/commands/setpci.c: Likewise.
24442 * grub-core/commands/sleep.c: Likewise.
24443 * grub-core/disk/loopback.c: Likewise.
24444 * grub-core/hello/hello.c: Likewise.
24445 * grub-core/loader/i386/bsd.c: Likewise.
24446 * grub-core/loader/xnu.c: Likewise.
24447 * grub-core/term/gfxterm.c: Likewise.
24448 * grub-core/term/serial.c: Likewise.
24449 * grub-core/tests/lib/functional_test.c: Likewise.
24450
888d1500
BC
244512010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
24452
24453 Multi-line quoted strings support.
24454
24455 * grub-core/script/lexer.c (append_newline): Removed.
24456 (grub_script_lexer_yywrap): Refactored.
24457 (grub_script_lexer_init): Refactored.
24458 * grub-core/script/yylex.l (yywrap): New function.
24459 (grub_lexer_resplit): New function.
24460 (grub_lexer_unput): New function.
24461 * include/grub/script_sh.h (grub_lexer_param): New members, unput
24462 and resplit.
24463 * tests/grub_script_echo1.in: Added few more testcases.
24464
dda060dd
VS
244652010-09-04 Vladimir Serbinenko <phcoder@gmail.com>
24466
24467 * grub-core/kern/misc.c: Don't add abort alias in utils.
24468 Reported by: echoline.
24469
6556eba9
BC
244702010-09-03 BVK Chaitanya <bvk.groups@gmail.com>
24471
24472 Add missing files into "make dist" tarball for other platforms.
24473
24474 * gentpl.py (script): Use dist_noinst_DATA instead of EXTRA_DIST.
24475 * conf/Makefile.common (dist_noinst_DATA): New variable.
24476 * conf/Makefile.extra-dist: Added missing make dist files.
24477 * grub-core/Makefile.core.def: Likewise.
24478
c8e7bf5f
VS
244792010-09-03 Vladimir Serbinenko <phcoder@gmail.com>
24480
24481 Compress grub_prefix.
24482
24483 * grub-core/boot/i386/pc/lnxboot.S: Use
24484 GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE.
24485 * grub-core/kern/i386/pc/startup.S: Move grub_prefix to compressed part.
24486 * include/grub/offsets.h: Rename GRUB_MACHINE_DATA_END to
24487 GRUB_MACHINE_PREFIX_END. All users updated.
24488 (GRUB_KERNEL_I386_PC_PREFIX): Set to GRUB_KERNEL_I386_PC_RAW_SIZE.
24489 (GRUB_KERNEL_I386_PC_PREFIX_END): Set to GRUB_KERNEL_I386_PC_PREFIX
24490 + 0x40.
24491 (GRUB_KERNEL_I386_PC_RAW_SIZE): Decrease.
24492 * util/grub-mkimage.c (image_target_desc): Change data_end to
24493 prefix_end. All users updated.
24494
a7c00cdb
VS
244952010-09-03 Vladimir Serbinenko <phcoder@gmail.com>
24496
24497 * grub-core/loader/i386/bsd.c (grub_freebsd_boot): Set %ebp to sane
24498 value.
24499 (grub_openbsd_boot): Likewise.
24500 (grub_netbsd_boot): Likewise.
24501 * grub-core/loader/i386/xnu.c (grub_xnu_boot_resume): Likewise.
24502 (grub_xnu_boot): Likewise.
24503
9f915872
VS
245042010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
24505
24506 * configure.ac: Clean LIBS variable after tests.
24507
efa1bee7
CW
245082010-09-02 Colin Watson <cjwatson@ubuntu.com>
24509
24510 * INSTALL: Document that libdevmapper needs to be 1.02.34 or later.
24511
61d720e5
VS
245122010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
24513
24514 * configure.ac: Check for dm_log_with_errno_init in libdevmapper and
24515 echo if libdevmapper will be used.
24516
ef8e0ec8
IT
245172010-09-02 Ian Turner <Ian.Turner@deshaw.com>
24518
24519 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_read): Keep the blocksize
24520 constant for the same file.
24521
03e261d8
VS
245222010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
24523
24524 * grub-core/kern/i386/multiboot_mmap.c: Remove leftover include.
24525
c2a4eba6
CW
245262010-09-02 Colin Watson <cjwatson@ubuntu.com>
24527
24528 * .bzrignore: Add *.pp, **/.dirstamp, grub-core/*.module, and
24529 grub-core/*.pp.
24530
9056cbf3
CW
245312010-09-02 Colin Watson <cjwatson@ubuntu.com>
24532
24533 Zero %ebp and %edi when entering Linux's 32-bit entry point, as
24534 required by the boot protocol.
24535
24536 * include/grub/i386/relocator.h (struct grub_relocator32_state): Add
24537 ebp and edi members.
24538 * grub-core/lib/i386/relocator.c (grub_relocator_boot): Handle
24539 state.ebp and state.edi.
24540 * grub-core/lib/i386/relocator32.S (grub_relocator32_start): Set
24541 %ebp and %edi according to grub_relocator32_ebp and
24542 grub_relocator32_edi respectively.
24543 * grub-core/loader/i386/linux.c (grub_linux_boot): Zero state.ebp
24544 and state.edi.
24545
529cc99a
VS
245462010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
24547
24548 Add i386-pc-pxe image target.
24549
24550 * util/grub-mkimage.c (image_target_desc): New enum value
24551 IMAGE_I386_PC_PXE.
24552 (image_targets): New target i386-pc-pxe.
24553 (generate_image): Handle i386-pc-pxe image.
24554
9a093920
VS
245552010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
24556
24557 Fix grub_pxe_scan.
24558
24559 * grub-core/fs/i386/pc/pxe.c (grub_pxe_pxenv): Put correct type bangpxe.
24560 (grub_pxe_scan): Fix types and pxe_rm_entry computation.
24561 All users updated.
24562 * include/grub/i386/pc/pxe.h (grub_pxe_bangpxe): New struct.
24563 (grub_pxe_pxenv): Correct type.
24564
f9cefc4e
CW
245652010-09-01 Colin Watson <cjwatson@ubuntu.com>
24566
24567 * NEWS: Document most of the important changes since 1.98.
24568
4066f57f
CW
245692010-09-01 Colin Watson <cjwatson@ubuntu.com>
24570
24571 * util/grub-mkrescue.in (usage): Tidy up usage output (and hence
24572 generated manual page) a little.
24573
da2891f9
CW
245742010-09-01 Colin Watson <cjwatson@ubuntu.com>
24575
24576 * docs/grub.texi: Add myself as an author.
24577
ad717fae
VS
245782010-09-01 Vladimir Serbinenko <phcoder@gmail.com>
24579
24580 * Makefile.util.def (libgrub.a): Add missing sunpc.
24581 Reported by: Seth Goldberg.
24582
eefe8abd
VS
245832010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
24584
24585 Interrupt wrapping and code simplifications.
24586
9494ef9a
VS
24587 * Makefile.util.def (grub-mkrescue): Use x86 tg instead of
24588 x86_noieee1275 which are functionaly equivalent in this case.
24589 (grub-install): Make source on each platform explicit. Enable on
24590 all noemu.
24591 * gentpl.py (x86_efi_pc): Removed group.
24592 (x86_noefi): Likewise.
24593 (i386_noefi): Likewise.
24594 (x86_noieee1275): Likewise.
24595 (i386_noieee1275): Likewise.
24596 (i386_noefi_noieee1275): Likewise.
24597 (i386_pc_qemu_coreboot): Likewise.
24598 (i386_coreboot_multiboot): Likewise.
24599 (i386_pc_coreboot_multiboot_qemu): Likewise.
24600 (x86_noefi_mips): Likewise.
24601 (noieee1275): Likewise.
24602 (ieee1275_mips): Likewise.
24603 (noemu_noieee1275): Likewise.
24604 (cmos): New group.
24605 (usb): Likewise.
24606 (videoinkernel): Likewise.
24607 (videomodules): Likewise.
eefe8abd 24608 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Remove
9494ef9a
VS
24609 include/grub/elf.h, include/grub/elfload.h, include/grub/net.h,
24610 include/grub/reader.h, include/grub/symbol.h, include/grub/types.h,
24611 include/grub/loader.h, include/grub/msdos_partition.h,
24612 include/grub/machine/biosdisk.h, include/grub/machine/boot.h,
24613 include/grub/machine/console.h, include/grub/machine/vga.h,
24614 include/grub/machine/vbe.h, include/grub/machine/init.h,
24615 include/grub/machine/kernel.h, include/grub/cpu/time.h,
24616 include/grub/cpu/types.h, include/grub/gzio.h and include/grub/menu.h
eefe8abd 24617 (KERNEL_HEADER_FILES) [i386-pc]: Add include/grub/machine/int.h.
9494ef9a
VS
24618 (KERNEL_HEADER_FILES) [i386-ieee1275]: Add include/grub/i386/pit.h
24619 * grub-core/Makefile.core.def (kernel): Explicit the source for
24620 startup. Explicit the platforms using kern/generic/rtc_get_time_ms.c.
24621 Split ieee1275_mips. Remove kern/i386/halt.c. Remove kern/i386/misc.S.
24622 Enable kern/i386/pit.c on all x86. Remove kern/i386/ieee1275/init.c.
24623 Use videoinkernel tag.
24624 (usb): Enable on all usb.
24625 (usbserial_common): Likewise.
24626 (usbserial_pl2303): Likewise.
24627 (usbserial_ftdi): Likewise.
24628 (uhci): Enable on all x86.
24629 (ohci): Enable on all pci.
24630 (cmostest): Enable on all CMOS.
24631 (acpi): Include commands/acpi.c on all platforms.
24632 (halt): Add relevant lib/*/halt.c.
24633 (hdparm): Enable on all pci.
24634 (lspci): Likewise.
24635 (usbtest): Enable on all usb.
24636 (ata): Enable on all pci.
24637 (ata_pthru): Likewise.
24638 (usbms): Enable on all usb.
24639 (usb_keyboard): Likewise.
24640 (font): Use tag videomodules.
24641 (bufio): Likewise.
24642 (datetime): Use tag cmos. Enable on all noemu.
24643 (mmap): Use tags common and x86.
24644 (gfxterm): Use tag videomodules.
24645 (bitmap): Likewise.
24646 (bitmap_scale): Likewise.
24647 (video_fb): Likewise.
24648 (video): Likewise.
24649 * grub-core/bus/usb/ohci.c (grub_ohci_td): Make link_td a pointer and
24650 adjust padding accordingly. All users updated.
24651 (grub_ohci_transaction): Fix bad format specification.
24652 (GRUB_MOD_INIT): Add asserts for struct size.
24653 * grub-core/bus/usb/uhci.c (grub_uhci_pci_iter): Add explicit casts.
24654 (grub_alloc_td): Likewise.
24655 (grub_free_queue): Likewise.
24656 (grub_uhci_transfer): Likewise.
24657 (grub_uhci_transaction): Fix bad format specification.
24658 * grub-core/bus/usb/usbtrans.c (grub_usb_control_msg): Likewise.
24659 (grub_usb_bulk_readwrite): Likewise.
24660 * grub-core/kern/i386/misc.S (grub_stop): Moved from here ...
24661 * grub-core/commands/i386/pc/halt.c (stop): ...here. Transformed into C.
24662 Made static.
24663 * grub-core/lib/i386/halt.c (stop): ... and here. Transformed into C.
24664 Made static.
24665 * grub-core/kern/i386/pc/startup.S (grub_halt): Moved from here ...
24666 * grub-core/commands/i386/pc/halt.c (grub_halt): ...here.
24667 Transformed into C.
24668 * grub-core/kern/i386/pc/startup.S (grub_biosdisk_rw_int13_extensions):
24669 Moved from here ...
24670 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_rw_int13_extensions):
24671 ... here. Transformed into C. Made static.
24672 * grub-core/kern/i386/pc/startup.S (grub_biosdisk_rw_standard):
24673 Moved from here ...
24674 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_rw_standard):
24675 ... here. Transformed into C. Made static.
24676 * grub-core/kern/i386/pc/startup.S
24677 (grub_biosdisk_check_int13_extensions): Moved from here ...
24678 * grub-core/disk/i386/pc/biosdisk.c
24679 (grub_biosdisk_check_int13_extensions): ... here. Transformed into C.
24680 Made static.
24681 * grub-core/kern/i386/pc/startup.S
24682 (grub_biosdisk_get_cdinfo_int13_extensions): Moved from here ...
24683 * grub-core/disk/i386/pc/biosdisk.c
24684 (grub_biosdisk_get_cdinfo_int13_extensions): ... here.
24685 Transformed into C. Made static.
24686 * grub-core/kern/i386/pc/startup.S
24687 (grub_biosdisk_get_diskinfo_int13_extensions): Moved from here ...
24688 * grub-core/disk/i386/pc/biosdisk.c
24689 (grub_biosdisk_get_diskinfo_int13_extensions): ... here.
24690 Transformed into C. Made static.
24691 * grub-core/kern/i386/pc/startup.S
24692 (grub_biosdisk_get_diskinfo_standard): Moved from here ...
24693 * grub-core/disk/i386/pc/biosdisk.c
24694 (grub_biosdisk_get_diskinfo_standard): ... here.
24695 Transformed into C. Made static.
24696 * grub-core/kern/i386/pc/startup.S
24697 (grub_biosdisk_get_num_floppies): Moved from here ...
24698 * grub-core/disk/i386/pc/biosdisk.c
24699 (grub_biosdisk_get_num_floppies): ... here.
24700 Transformed into C. Made static.
24701 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_get_diskinfo_real):
24702 New function.
24703 * grub-core/kern/i386/pc/startup.S (grub_pxe_scan): Moved from here ...
24704 * grub-core/fs/i386/pc/pxe.c (grub_pxe_scan): ... here.
24705 Transformed into C. Made static.
24706 * grub-core/kern/i386/pc/startup.S (grub_rm_entry): Moved from here ...
24707 * grub-core/fs/i386/pc/pxe.c (grub_rm_entry): ... here.
24708 Transformed into C. Made static.
24709 * grub-core/kern/i386/ieee1275/init.c: Removed.
24710 * grub-core/kern/i386/misc.S: Likewise.
24711 * grub-core/kern/i386/pc/startup.S (grub_get_memsize):
24712 Splitted from here ...
24713 * grub-core/kern/i386/pc/init.c (grub_get_conv_memsize): ... here.
24714 Transformed into C. Made static. All users updated.
24715 * grub-core/kern/i386/pc/mmap.c (grub_get_ext_memsize): ... and here.
24716 Transformed into C. Made static. All users updated.
24717 * grub-core/kern/i386/pc/startup.S (grub_get_eisa_mmap):
24718 Moved from here...
24719 * grub-core/kern/i386/pc/mmap.c (grub_get_eisa_mmap): ... here.
24720 Transformed into C. Made static. All users updated.
24721 * grub-core/kern/i386/pc/startup.S (grub_get_mmap_entry):
24722 Moved from here...
24723 * grub-core/kern/i386/pc/mmap.c (grub_get_mmap_entry): ... here.
24724 Transformed into C. Made static. All users updated.
24725 * grub-core/kern/i386/pc/startup.S (grub_stop_floppy):
24726 Removed (replaced by C version).
24727 * grub-core/kern/i386/pc/startup.S (grub_vga_set_mode):
24728 Moved from here...
24729 * grub-core/video/i386/pc/vga.c (grub_vga_set_mode): ...here.
24730 Transformed into C. Made static.
24731 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_controller_info):
24732 Moved from here...
24733 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_controller_info):
24734 ... here. Transformed into C.
24735 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_mode_info):
24736 Moved from here...
24737 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_mode_info):
24738 ... here. Transformed into C.
24739 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_mode):
24740 Moved from here...
24741 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_mode):
24742 ... here. Transformed into C. Made static.
24743 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_mode):
24744 Moved from here...
24745 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_mode):
24746 ... here. Transformed into C.
21ed554b
VS
24747 * grub-core/kern/i386/pc/startup.S
24748 (grub_vbe_bios_getset_dac_palette_width):Moved from here...
24749 * grub-core/video/i386/pc/vbe.c
24750 (grub_vbe_bios_getset_dac_palette_width):... here. Transformed into C.
9494ef9a
VS
24751 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_memory_window):
24752 Moved from here...
24753 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_memory_window):
24754 ... here. Transformed into C.
24755 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_memory_window):
24756 Moved from here...
24757 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_memory_window):
24758 ... here. Transformed into C.
24759 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_scanline_length):
24760 Moved from here...
24761 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_scanline_length):
24762 ... here. Transformed into C.
24763 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_scanline_length):
24764 Moved from here...
24765 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_scanline_length):
24766 ... here. Transformed into C.
24767 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_display_start):
24768 Moved from here...
24769 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_display_start):
24770 ... here. Transformed into C. Made static.
24771 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_display_start):
24772 Moved from here...
24773 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_display_start):
24774 ... here. Transformed into C. Made static.
24775 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_palette_data):
24776 Moved from here...
24777 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_palette_data):
24778 ... here. Transformed into C. Made static.
24779 * grub-core/kern/i386/pc/startup.S (grub_pxe_call): Receive
24780 pxe_rm_entry as third argument.
24781 (grub_bios_interrupt): New function.
24782 * grub-core/kern/i386/qemu/mmap.c: Remove useless include.
24783 * grub-core/kern/i386/qemu/startup.S (codestart): Do cli;hlt instead
24784 of calling grub_stop.
24785 * grub-core/kern/efi/efi.c (grub_halt): Moved from here ...
24786 * grub-core/lib/efi/halt.c (grub_halt): ...here.
24787 * grub-core/kern/emu/main.c (grub_halt): Moved from here ...
24788 * grub-core/lib/emu/halt.c (grub_halt): ... here.
24789 * grub-core/lib/i386/halt.c: Moved from here ...
24790 * grub-core/lib/i386/halt.c: ... here.
24791 * grub-core/kern/ieee1275/openfw.c (grub_halt): Moved from here ...
24792 * grub-core/lib/ieee1275/halt.c (grub_halt): ... here.
24793 * grub-core/loader/i386/pc/linux.c (grub_linux16_boot): Call
24794 grub_stop_floppy.
24795 * grub-core/loader/i386/xnu.c (guessfsb) [IEEE1275]: Enable.
24796 * include/grub/i386/coreboot/init.h: Removed.
24797 * include/grub/i386/multiboot/init.h: Likewise.
24798 * include/grub/i386/pc/biosdisk.h: Removed all function prototypes.
24799 * include/grub/i386/pc/init.h: Likewise except grub_gate_a20.
24800 * include/grub/i386/pc/int.h: New file.
24801 * include/grub/i386/pc/pxe.h (GRUB_PXE_SIGNATURE): New definition.
24802 (grub_pxe_scan): Removed.
24803 (grub_pxe_call): Update prototype.
24804 * include/grub/i386/pc/vbe.h: Removed EXPORT_FUNC and useless
24805 prototypes.
24806 * include/grub/i386/pc/vga.h (grub_vga_set_mode): Removed.
24807 * include/grub/i386/qemu/init.h: Removed.
24808 * include/grub/mips/yeeloong/kernel.h (grub_reboot): Add missing
24809 noreturn.
24810 (grub_halt): Likewise.
24811 * include/grub/misc.h (grub_halt): Removed EXPORT_FUNC.
24812 (grub_reboot): Likewise.
24813 * grub-core/kern/i386/coreboot/init.c (grub_stop_floppy): Moved from here...
24814 * include/grub/i386/floppy.h (grub_stop_floppy): ...here. Inlined.
21ed554b
VS
24815 * grub-core/kern/i386/pc/startup.S (grub_hard_stop): Removed.
24816
215dd471
RM
248172010-08-30 Robert Millan <rmh@gnu.org>
24818
24819 * NEWS: Document addition of ZFS support in `grub-install' and
24820 `grub-mkconfig'.
24821
ebd65b82
BC
248222010-08-30 BVK Chaitanya <bvk.groups@gmail.com>
24823
24824 * conf/Makefile.common (CPPFLAGS_DEFAULT): Remove leading / from
24825 dprintf output.
24826
11721d19
VS
248272010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
24828
24829 Remove leftover embedding of font objects.
24830
24831 * include/grub/kernel.h (OBJ_TYPE_FONT): Removed.
24832 * util/grub-install.in (font): Removed.
24833 * util/grub-mkimage.c (generate_image): Remove font support. All users
24834 updated.
24835
37837d4e
VS
248362010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
24837
24838 Remove leftover embedding of font objects.
24839
24840 * include/grub/kernel.h (OBJ_TYPE_FONT): Removed.
24841 * util/grub-install.in (font): Removed.
24842 * util/grub-mkimage.c (generate_image): Remove font support. All users
24843 updated.
24844
b4c1aae0
VS
248452010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
24846
24847 * docs/grub.texi (Network): Fix reference to pxe_blksize.
e176a764 24848 Reported by: Ian Turner
b4c1aae0 24849
8920a08d
VS
248502010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
24851
24852 * grub-core/normal/menu.c (grub_wait_after_message): Add a 10 second
24853 timeout to avoid indefinite boot stalling.
24854
f21db033
VS
248552010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
24856
24857 * grub-core/normal/color.c (grub_env_write_color_normal): Fix a warning.
24858 (grub_env_write_color_highlight): Likewise.
24859
9a9de209
VS
248602010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
24861
24862 * grub-core/normal/term.c (print_more): Return to normal and not
24863 to standard state after printing "---MORE---".
24864
3dca01d7
VS
248652010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
24866
24867 * grub-core/term/i386/vga_common.c (grub_console_setcolorstate):
24868 Mask out the bit 0x80 since it has other meaning that specifiing color.
24869
0b986c40
VS
248702010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
24871
24872 New relocator. Allows for more kernel support and more straightforward
24873 loader writing.
24874
24875 * Makefile.am (BOOTTARGET): New variable.
24876 (QEMU32): Likewise.
24877 (linux.init.x86_64): New target.
24878 (linux.init.i386): Likewise.
24879 (multiboot.elf): Likewise.
24880 (kfreebsd.elf): Likewise.
24881 (kfreebsd.aout): Likewise.
24882 (pc-chainloader.elf): Likewise.
24883 (pc-chainloader.bin): Likewise.
24884 (ntldr.elf): Likewise.
24885 (ntldr.bin): Likewise.
24886 (multiboot2.elf): Likewise.
24887 (kfreebsd.init.x86_64): Likewise.
24888 (kfreebsd.init.i386): Likewise.
24889 (knetbsd.init.i386): Likewise.
24890 (kopenbsd.init.i386): Likewise.
24891 (knetbsd.init.x86_64): Likewise.
24892 (kopenbsd.init.x86_64): Likewise.
24893 (linux-initramfs.i386): Likewise.
24894 (linux-initramfs.x86_64): Likewise.
24895 (kfreebsd-mfsroot.i386.img): Likewise.
24896 (knetbsd.image.i386): Likewise.
24897 (kopenbsd.image.i386): Likewise.
24898 (kopenbsd.image.x86_64): Likewise.
24899 (knetbsd.miniroot-image.i386.img): Likewise.
24900 (kfreebsd-mfsroot.x86_64.img): Likewise.
24901 (knetbsd.image.x86_64): Likewise.
24902 (knetbsd.miniroot-image.x86_64.img): Likewise.
24903 (kfreebsd-mfsroot.i386.gz): Likewise.
24904 (bootcheck-kfreebsd-i386): Likewise.
24905 (kfreebsd-mfsroot.x86_64.gz): Likewise.
24906 (bootcheck-kfreebsd-x86_64): Likewise.
24907 (knetbsd.miniroot-image.i386.gz): Likewise.
24908 (bootcheck-knetbsd-i386): Likewise.
24909 (bootcheck-kopenbsd-i386): Likewise.
24910 (bootcheck-kopenbsd-x86_64): Likewise.
24911 (knetbsd.miniroot-image.x86_64.gz): Likewise.
24912 (bootcheck-knetbsd-x86_64): Likewise.
24913 (bootcheck-linux-i386): Likewise.
24914 (bootcheck-linux-x86_64): Likewise.
24915 (bootcheck-linux16-i386): Likewise.
24916 (bootcheck-linux16-x86_64): Likewise.
24917 (bootcheck-multiboot): Likewise.
24918 (bootcheck-multiboot2): Likewise.
24919 (bootcheck-kfreebsd-aout): Likewise.
24920 (bootcheck-pc-chainloader): Likewise.
24921 (bootcheck-ntldr): Likewise.
24922 (CLEANFILES): Add new targets.
24923 (BOOTCHECKS): New variable.
24924 (.PHONY): Add bootchecks.
24925 (SUCCESSFUL_BOOT_STRING): New variable.
24926 (BOOTCHECK_TIMEOUT): Likewise.
24927 (bootcheck): New target
24928 * Makefile.util.def (grub-mkrescue): Enable on i386-multiboot.
24929 * configure.ac: Correct efiemu excuse.
24930 * docs/grub.texi (Supported kernels): New chapter.
24931 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add
24932 include/grub/mm_private.h. Simplify inclusion of
24933 include/grub/boot.h, include/grub/loader.h
24934 and include/grub/msdos_partition.h
24935 (KERNEL_HEADER_FILES) [i386_coreboot]:
24936 Remove include/grub/machine/loader.h. Add include/grub/i386/pit.h.
24937 (KERNEL_HEADER_FILES) [i386_multiboot]: Likewise.
24938 (KERNEL_HEADER_FILES) [i386_qemu]: Likewise.
24939 (KERNEL_HEADER_FILES) [i386_ieee1275]: Remove
24940 include/grub/machine/loader.h.
24941 (KERNEL_HEADER_FILES) [x86_64-efi]: Likewise.
24942 * grub-core/Makefile.core.def (kernel): Remove kern/i386/loader.S from
24943 extra_dist.
24944 (pci.mod): Enable on i386-multiboot.
24945 (acpi.mod): Enable on i386-multiboot and i386-coreboot.
24946 (efiemu.mod): Enable on i386-coreboot, i386-ieee1275, i386-multiboot and
24947 i386-qemu.
24948 (relocator.mod): Rewritten.
24949 (aout.mod): Enable on all x86.
24950 (bsd.mod): Likewise.
24951 (ntldr.mod): New module.
24952 (linux.mod): Use loader/i386/linux.c on all x86.
24953 (xnu.mod): Enable on all x86.
24954 (vga_text.mod): disable on EFI and QEMU.
24955 * grub-core/efiemu/i386/coredetect.c: Remove useless include.
24956 * grub-core/efiemu/i386/pc/cfgtables.c: Likewise.
24957 * grub-core/efiemu/loadcore.c: Likewise.
24958 * grub-core/efiemu/main.c: Likewise.
24959 (grub_efiemu_exit_boot_services): Removed.
24960 (grub_efiemu_finish_boot_services): Likewise.
24961 * grub-core/efiemu/mm.c (grub_efiemu_finish_boot_services): New
24962 function.
24963 * grub-core/efiemu/i386/nocfgtables.c: New file.
24964 * grub-core/kern/dl.c (grub_dl_unload_all): Removed.
24965 * grub-core/kern/efi/efi.c (grub_efi_exit_boot_services): Removed.
24966 (grub_efi_finish_boot_services): Moved from here ...
24967 * grub-core/kern/efi/mm.c (grub_efi_finish_boot_services): ...here.
24968 Fille finish memory map and related data.
24969 (finish_mmap_buf): New variable.
24970 (grub_efi_uintn_t finish_mmap_size): Likewise.
24971 (grub_efi_uintn_t finish_key): Likewise.
24972 (grub_efi_uintn_t finish_desc_size): Likewise.
24973 (grub_efi_uint32_t finish_desc_version): Likewise.
24974 (grub_efi_is_finished): Likewise.
24975 (grub_efi_get_memory_map): Use saved memory map if EFI is already
24976 finished.
24977 * grub-core/kern/elf.c (grub_elf32_phdr_iterate): Make global.
24978 (grub_elf64_phdr_iterate): Likewise.
24979 * grub-core/kern/i386/coreboot/init.c (grub_os_area_addr): Removed.
24980 (grub_os_area_size): Likewise.
24981 (grub_machine_init): Don't reserve os area.
24982 * grub-core/kern/i386/coreboot/startup.S: Don't include loader.S.
24983 * grub-core/kern/i386/ieee1275/startup.S: Likewise.
24984 * grub-core/kern/i386/loader.S: Removed.
24985 * grub-core/kern/i386/pc/init.c (grub_os_area_addr): Removed.
24986 (grub_os_area_size): Likewise.
24987 (grub_machine_init): Don't reserve os area.
24988 * grub-core/kern/i386/pc/startup.S (grub_chainloader_real_boot):
24989 Don't call grub_dl_unload_all.
24990 Don't include loader.S.
24991 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_iterate):
24992 Declare the memory after _end as available.
24993 * grub-core/kern/mm.c (GRUB_MM_FREE_MAGIC): Moved from here...
1935c077 24994 * include/grub/mm_private.h (GRUB_MM_FREE_MAGIC): ... here.
0b986c40 24995 (GRUB_MM_ALLOC_MAGIC): Moved from here...
1935c077
VS
24996 * include/grub/mm_private.h (GRUB_MM_ALLOC_MAGIC): ... here.
24997 * grub-core/kern/mm.c (grub_mm_header): Moved from here...
24998 * include/grub/mm_private.h (grub_mm_header): ... here.
24999 * grub-core/kern/mm.c (GRUB_MM_ALIGN): Moved from here...
25000 * include/grub/mm_private.h (GRUB_MM_ALIGN): ... here.
0b986c40
VS
25001 * grub-core/kern/mm.c (grub_mm_region): Moved from here ...
25002 (grub_mm_region): ..here. Removed addr. Added pre_size.
25003 All users updated.
25004 * grub-core/kern/mm.c (base): Renamed to ...
25005 (grub_mm_base): ... this. Made global.
25006 (grub_real_malloc): Alloc from end of region.
25007 (grub_memalign): Don't attempt to malloc if grub_mm_base is NULL.
25008 * grub-core/kern/powerpc/cache.S (grub_arch_sync_caches): Move to ...
25009 * grub-core/kern/powerpc/cache_flush.S: ... here.
25010 * grub-core/lib/efi/relocator.c: New file.
25011 * grub-core/lib/i386/relocator.c: Rewritten.
25012 * grub-core/lib/i386/relocator16.S: New file.
25013 * grub-core/lib/i386/relocator32.S: Likewise.
25014 * grub-core/lib/i386/relocator64.S: Likewise.
25015 * grub-core/lib/i386/relocator_asm.S: Rewritten.
25016 * grub-core/lib/i386/relocator_common.S: New file.
25017 * grub-core/lib/ieee1275/relocator.c: Likewise.
25018 * grub-core/lib/mips/relocator.c: Rewritten.
25019 * grub-core/lib/mips/relocator_asm.S: Renamed variables and minor
25020 stylistic adjustments.
25021 * grub-core/lib/powerpc/relocator.c: New file.
25022 * grub-core/lib/powerpc/relocator_asm.S: Likewise.
25023 * grub-core/lib/relocator.c: Rewritten.
25024 * grub-core/lib/x86_64/relocator_asm.S: New file.
25025 * grub-core/loader/aout.c (grub_aout_load): Make load_addr a void *.
25026 * grub-core/loader/i386/bsd.c (NETBSD_DEFAULT_VIDEO_MODE): New const.
25027 (bsd_tag): New struct.
25028 (tags): New variable.
25029 (tags_last): Likewise.
25030 (netbsd_module): New struct.
25031 (netbsd_mods): New variable.
25032 (netbsd_mods_last): Likewise.
25033 (openbsd_opts): New parameter "serial".
25034 (OPENBSD_SERIAL_ARG): New definition.
25035 (netbsd_opts): New parameter "serial".
25036 (NETBSD_SERIAL_ARG): New definition.
25037 (grub_freebsd_add_meta): Reorganised into ...
25038 (grub_bsd_add_meta): ...this. All users updated.
25039 (grub_freebsd_add_mmap): Reorganised into ...
25040 (generate_e820_mmap): ...this...
25041 (grub_bsd_add_mmap): ...and this. All users updated.
25042 (grub_freebsd_list_modules): Use tags.
25043 (grub_netbsd_add_meta_module): New function.
25044 (grub_netbsd_list_modules): Likewise.
25045 (grub_freebsd_boot): Use relocator and finish EFI.
25046 (grub_openbsd_boot): Likewise.
25047 (grub_netbsd_setup_video): New function.
25048 (grub_netbsd_add_modules): Likewise.
25049 (grub_netbsd_boot): Use grub_netbsd_add_modules, relocator, netbsd_tags
25050 and finish EFI.
25051 (grub_bsd_unload): Unload tags.
25052 (grub_bsd_load_aout): Use relocator.
25053 (grub_bsd_elf32_size_hook): New function.
25054 (grub_bsd_elf32_hook): Use relocator.
25055 (grub_bsd_elf64_size_hook): New function.
25056 (grub_bsd_elf64_hook): Use relocator.
25057 (grub_bsd_load_elf): Use relocator and call grub_openbsd_find_ramdisk.
25058 (grub_bsd_load): Zero-out openbsd_ramdisk.
25059 (grub_bsd_load): Use relocator.
25060 (grub_cmd_openbsd): Support serial.
25061 (grub_cmd_netbsd): Support modules.
25062 (grub_cmd_freebsd_module): Use relocator.
25063 (grub_netbsd_module_load): New function.
25064 (grub_cmd_netbsd_module): Likewise.
25065 (grub_cmd_openbsd_ramdisk): Likewise.
25066 (GRUB_MOD_INIT): Register knetbsd_module, knetbsd_module_elf and
25067 kopenbsd_ramdisk.
25068 (GRUB_MOD_FINI): Unregister new commands.
25069 * grub-core/loader/i386/bsdXX.c (load): Remove useless checks.
25070 (grub_freebsd_load_elfmodule_obj): Use relocator.
25071 (grub_freebsd_load_elfmodule): Likewise.
25072 (grub_freebsd_load_elf_meta): Likewise.
25073 (grub_netbsd_load_elf_meta): New function.
25074 (grub_openbsd_find_ramdisk): Likewise.
25075 * grub-core/loader/i386/bsd_helper.S: Removed.
25076 * grub-core/loader/i386/bsd_pagetable.c: Support relocator.
25077 * grub-core/loader/i386/bsd_trampoline.S: Removed.
25078 * grub-core/loader/i386/efi/linux.c: Likewise.
25079 * grub-core/loader/i386/ieee1275/linux.c: Likewise.
25080 * grub-core/loader/i386/linux.c (HAS_VGA_TEXT): New const.
25081 (DEFAULT_VIDEO_MODE): Likewise.
25082 (real_mode_target): New variable.
25083 (prot_mode_target): Likewise.
25084 (initrd_mem_target): Likewise.
25085 (relocator): Likewise.
25086 (efi_mmap_buf): Likewise.
25087 (efi_mmap_size): Likewise.
25088 (find_efi_mmap_size): Moved from grub-core/loader/i386/efi/linux.c.
25089 (free_pages): Use relocator.
25090 (allocate_pages): Account for efi_mmap and use relocator. Return error.
25091 (grub_linux_setup_video): Return error.
25092 (grub_linux_trampoline_start): Removed.
25093 (grub_linux_trampoline_end): Likewise.
25094 (grub_linux_boot): Use relocator and DEFAULT_VIDEO_MODE. Pass console
25095 andd video parameters depending on firmware.
25096 [GRUB_MACHINE_IEEE1275]: Pass OFW parameters.
25097 [GRUB_MACHINE_EFI]: Pass EFI parameters.
25098 (grub_cmd_linux) [GRUB_MACHINE_EFI]: Likewise.
25099 (grub_cmd_initrd): Use relocator.
25100 * grub-core/loader/i386/linux_trampoline.S: Removed.
25101 * grub-core/loader/i386/multiboot_mbi.c (elf_sec_num): New variable.
25102 (elf_sec_entsize): Likewise.
25103 (elf_sec_shstrndx): Likewise.
25104 (elf_sections): Likewise.
25105 (grub_multiboot_load): Use relocator.
25106 (grub_multiboot_get_mbi_size): Account for sections.
25107 (grub_multiboot_make_mbi): Use relocator and support sections.
25108 (grub_multiboot_add_elfsyms): New function.
25109 (grub_multiboot_free_mbi): Free sections.
25110 * grub-core/loader/i386/pc/linux.c (relocator): New variable.
25111 (grub_linux_real_target): Likewise.
25112 (grub_linux_real_chunk): Likewise.
25113 (grub_linux16_prot_size): Likewise.
25114 (grub_linux16_boot): Use relocator.
25115 (grub_linux_unload): Unload relocator.
25116 (grub_cmd_linux): Use relocator.
25117 (grub_cmd_initrd): Likewise.
25118 * grub-core/loader/i386/pc/ntldr.c: New file.
25119 * grub-core/loader/i386/xnu.c (guessfsb) [GRUB_MACHINE_IEEE1275]:
25120 Don't try to guess CPU frequency.
25121 (grub_xnu_set_video): Stretch bitmap.
25122 (grub_xnu_boot): Use relocator.
25123 * grub-core/loader/mips/linux.c (grub_linux_boot): Use relocator.
25124 (grub_linux_unload): Free relocator.
25125 (grub_linux_load32): Use relocator.
25126 (grub_linux_load64): Likewise.
25127 (grub_cmd_initrd): Likewise.
25128 * grub-core/loader/multiboot.c (grub_multiboot_boot): Use relocator.
25129 (grub_multiboot_unload): Unload relocator.
25130 (grub_cmd_multiboot): Use relocator.
25131 (grub_cmd_module): Likewise.
25132 * grub-core/loader/multiboot_elfxx.c (grub_multiboot_load_elfXX):
25133 Use relocator and support sections.
25134 * grub-core/loader/multiboot_mbi2.c(elf_sec_num): New variable.
25135 (elf_sec_entsize): Likewise.
25136 (elf_sec_shstrndx): Likewise.
25137 (elf_sections): Likewise.
25138 (grub_multiboot_load): Use relocator.
25139 (grub_multiboot_get_mbi_size): Account for sections.
25140 (grub_multiboot_make_mbi): Use relocator and support sections.
25141 (grub_multiboot_add_elfsyms): New function.
25142 * grub-core/loader/powerpc/ieee1275/linux.c: Remove useless include.
25143 * grub-core/loader/sparc64/ieee1275/linux.c: Likewise.
25144 * grub-core/loader/xnu.c (grub_xnu_heap_malloc): Use relocator.
25145 Prototype changed. All users updated.
25146 (grub_xnu_align_heap): Simplified.
25147 (grub_xnu_writetree_toheap): Likewise.
25148 (grub_xnu_unload): Unload relocator.
25149 (grub_cmd_xnu_kernel): Use relocator.
25150 (grub_cmd_xnu_kernel64): Likewise.
25151 (grub_xnu_register_memory): Simplified.
25152 * grub-core/loader/xnu_resume.c (grub_xnu_resume): Use relocator.
1935c077
VS
25153 * grub-core/term/efi/console.c (grub_console_putchar): Abort if
25154 EFI is finished.
25155 (grub_console_checkkey): Likewise.
25156 (grub_console_getkey): Likewise.
25157 (grub_console_getwh): Likewise.
25158 (grub_console_getxy): Likewise.
25159 (grub_console_gotoxy): Likewise.
25160 (grub_console_cls): Likewise.
25161 (grub_console_setcolorstate): Likewise.
25162 (grub_console_setcursor): Likewise.
25163 * grub-core/term/ns8250.c (grub_ns8250_hw_get_port): New function.
25164 * grub-core/tests/boot/kbsd.init-i386.S: New file.
25165 * grub-core/tests/boot/kbsd.init-x86_64.S: Likewise.
25166 * grub-core/tests/boot/kbsd.spec.txt: Likewise.
25167 * grub-core/tests/boot/kernel-8086.S: Likewise.
25168 * grub-core/tests/boot/kernel-i386.S: Likewise.
25169 * grub-core/tests/boot/kfreebsd-aout.cfg: Likewise.
25170 * grub-core/tests/boot/kfreebsd.cfg: Likewise.
25171 * grub-core/tests/boot/kfreebsd.init-i386.S: Likewise.
25172 * grub-core/tests/boot/kfreebsd.init-x86_64.S: Likewise.
25173 * grub-core/tests/boot/knetbsd.cfg: Likewise.
25174 * grub-core/tests/boot/kopenbsd.cfg: Likewise.
25175 * grub-core/tests/boot/kopenbsdlabel.txt: Likewise.
25176 * grub-core/tests/boot/linux.cfg: Likewise.
25177 * grub-core/tests/boot/linux.init-i386.S: Likewise.
25178 * grub-core/tests/boot/linux.init-x86_64.S: Likewise.
25179 * grub-core/tests/boot/linux16.cfg: Likewise.
25180 * grub-core/tests/boot/multiboot.cfg: Likewise.
25181 * grub-core/tests/boot/multiboot2.cfg: Likewise.
25182 * grub-core/tests/boot/ntldr.cfg: Likewise.
25183 * grub-core/tests/boot/pc-chainloader.cfg: Likewise.
25184 * include/grub/aout.h (grub_aout_load): Make load_addr a void *.
25185 * include/grub/autoefi.h (grub_autoefi_finish_boot_services):
25186 New definition.
25187 * include/grub/dl.h (grub_dl_unload_all): Removed.
25188 * include/grub/efi/efi.h (grub_efi_exit_boot_services): Likewise.
25189 (grub_efi_finish_boot_services): Change prototype.
25190 (grub_efi_is_finished): New variable.
25191 * include/grub/efiemu/efiemu.h (grub_efiemu_finish_boot_services):
25192 Changed prototype.
25193 (grub_efiemu_finish_boot_services): Removed.
25194 (grub_machine_efiemu_init_tables): New prototype.
25195 * include/grub/elfload.h (grub_elf32_phdr_iterate): Likewise.
25196 (grub_elf64_phdr_iterate): Likewise.
25197 * include/grub/i386/bsd.h: Include relocator.h.
25198 (freebsd_tag_header): New struct.
25199 (grub_openbsd_bios_mmap): Removed.
25200 (grub_unix_real_boot): Removed.
25201 (grub_freebsd_load_elfmodule32): Changed prototype.
25202 (grub_freebsd_load_elfmodule_obj64): Likewise.
25203 (grub_freebsd_load_elf_meta32): Likewise.
25204 (grub_freebsd_load_elf_meta64): Likewise.
25205 (grub_freebsd_add_meta): Removed.
25206 (grub_netbsd_load_elf_meta32): New prototype.
25207 (grub_netbsd_load_elf_meta64): Likewise.
25208 (grub_bsd_add_meta): Likewise.
25209 (grub_openbsd_ramdisk_descriptor): New struct.
25210 (grub_openbsd_find_ramdisk32): New prototype.
25211 (grub_openbsd_find_ramdisk64): Likewise.
25212 * include/grub/i386/coreboot/loader.h: Removed.
25213 * include/grub/i386/efi/loader.h: Likewise.
25214 * include/grub/i386/ieee1275/loader.h: Likewise.
25215 * include/grub/i386/linux.h (linux_kernel_header): Change void *
25216 to grub_uint32_t.
25217 * include/grub/i386/loader.h: Removed.
25218 * include/grub/i386/memory.h (GRUB_MEMORY_CPU_CR4_PAE_ON): Correct the
25219 value.
25220 (GRUB_MEMORY_CPU_CR4_PSE_ON): New definition.
25221 (grub_phys_addr_t): New type.
25222 (grub_vtop): New inline function.
25223 (grub_map_memory): Likewise.
25224 (grub_unmap_memory): Likewise.
25225 * include/grub/i386/multiboot/loader.h: Removed.
25226 * include/grub/i386/netbsd_bootinfo.h (NETBSD_BTINFO_BOOTDISK): Removed.
25227 (NETBSD_BTINFO_CONSOLE): New definition.
25228 (NETBSD_BTINFO_SYMTAB): Likewise.
25229 (NETBSD_BTINFO_MODULES): Likewise.
25230 (NETBSD_BTINFO_FRAMEBUF): Likewise.
25231 (grub_netbsd_bootinfo): New struct.
25232 (grub_netbsd_btinfo_common): Use explicit bitsize.
25233 (grub_netbsd_btinfo_mmap_entry): Removed.
25234 (GRUB_NETBSD_MAX_BOOTPATH_LEN): New definition.
25235 (grub_netbsd_btinfo_bootdisk): New struct.
25236 (grub_netbsd_btinfo_symtab): Likewise.
25237 (grub_netbsd_btinfo_serial): Likewise.
25238 (grub_netbsd_btinfo_modules): Likewise.
25239 (grub_netbsd_btinfo_framebuf): Likewise.
25240 (GRUB_NETBSD_MAX_ROOTDEVICE_LEN): New definition.
25241 * include/grub/i386/openbsd_bootarg.h (OPENBSD_BOOTARG_CONSOLE):
25242 Likewise.
25243 (grub_openbsd_bootargs): Use explicit bitsize.
25244 (grub_openbsd_bootarg_console): New struct.
25245 (GRUB_OPENBSD_COM_MAJOR): New definition.
25246 (GRUB_OPENBSD_VGA_MAJOR): Likewise.
25247 * include/grub/i386/pc/efiemu.h: Removed.
25248 * include/grub/i386/pc/loader.h: Don't include cpu/loader.h.
25249 * include/grub/i386/qemu/loader.h: Removed.
25250 * include/grub/i386/relocator.h: Rewritten.
25251 * include/grub/i386/xnu.h (grub_xnu_heap_will_be_at): Removed.
25252 * include/grub/mips/memory.h: New file.
25253 * include/grub/mips/multiboot.h: Rewritten.
25254 * include/grub/mips/relocator.h: Rewritten.
25255 * include/grub/mips/yeeloong/memory.h (grub_phys_addr_t): New type.
25256 (grub_vtop): New function.
25257 (grub_map_memory): Likewise.
25258 (grub_unmap_memory): Likewise.
25259 * include/grub/misc.h (ALIGN_DOWN): New definition.
25260 * include/grub/mm.h (grub_mm_check_real): New proto.
25261 (GRUB_MM_CHECK): New definition.
25262 * include/grub/mm_private.h: New file.
25263 * include/grub/multiboot.h (grub_multiboot_relocator): New variable.
25264 (grub_multiboot_get_mbi_size): Removed.
25265 (grub_multiboot_make_mbi): Change prottype.
25266 (grub_multiboot_set_accepts_video): New proto.
25267 (grub_multiboot_add_elfsyms): Likewise.
25268 (grub_multiboot_payload_eip): New variable.
25269 * include/grub/ns8250.h (grub_ns8250_hw_get_port) [!ASM_FILE]:
25270 New prototype.
25271 * include/grub/offsets.h (GRUB_KERNEL_I386_MULTIBOOT_PREFIX):
25272 New definition.
25273 (GRUB_KERNEL_I386_MULTIBOOT_DATA_END): Likewise.
25274 (GRUB_KERNEL_I386_MULTIBOOT_MOD_ALIGN): Likewise.
25275 * include/grub/powerpc/ieee1275/loader.h: Removed.
25276 * include/grub/powerpc/memory.h: New file.
25277 * include/grub/powerpc/relocator.h: Likewise.
25278 * include/grub/relocator.h: Likewise.
25279 * include/grub/relocator_private.h: Likewise.
25280 * include/grub/sparc64/ieee1275/loader.h: Removed.
25281 * include/grub/x86_64/memory.h: New file.
25282 * include/grub/xnu.h (grub_xnu_writetree_toheap): Changed prototype.
25283 (grub_xnu_heap_malloc): Likewise.
25284 (grub_xnu_heap_real_start): Removed.
25285 (grub_xnu_heap_start): Likewise.
25286 (grub_xnu_relocator): New variable.
25287 (grub_xnu_heap_target_start): Likewise.
25288 * tests/util/grub-shell.in: Support non-pc.
25289 * util/grub-mkimage.c (image_targets): Fix multiboot target.
0b986c40 25290
5303b85d
VS
252912010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
25292
25293 * grub-core/normal/charset.c (grub_utf8_to_ucs4_alloc): Avoid deadloop
25294 on malloc error.
25295 (grub_bidi_logical_to_visual): Check that malloc succeded.
25296 * grub-core/normal/term.c (grub_puts_terminal): Fix fallback to dumb
25297 puts.
25298 (grub_xputs_normal): Likewise.
25299
d768d159
VS
253002010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
25301
25302 * grub-core/Makefile.core.def (kernel): Add kern/mips/cache_flush.S to
25303 extra_dist.
25304
253052010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
25306
25307 * grub-core/efiemu/runtime/efiemu.sh: Removed.
25308
5bf84df4
VS
253092010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
25310
25311 * Makefile.util.def (grub-ofpathname): Add missing ldadd.
25312
3626810e
VS
253132010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
25314
25315 * grub-core/kern/misc.c (grub_real_dprintf): Always refresh after
25316 dprintf.
25317
a7363f53
BC
253182010-08-29 BVK Chaitanya <bvk.groups@gmail.com>
25319
25320 * Makefile.util.def: Use ldadd instead of ldflags for libraries.
25321
902f75f6
VS
253222010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
25323
25324 * grub-core/normal/term.c (print_more): Fix a memory leak.
25325 (grub_puts_terminal): Revert to dumb puts if memory allocation fails.
25326 (grub_xputs_normal): Likewise.
25327
3c707967
VS
253282010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
25329
25330 * grub-core/script/lexer.c (grub_script_lexer_init): Don't look before
25331 the begining of the string
25332
2053cc07
VS
253332010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
25334
25335 * grub-core/script/script.c (grub_script_parse): Free parsed on
25336 failure.
25337
46422ebf
VS
253382010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
25339
25340 * grub-core/normal/completion.c (grub_normal_do_completion): Free argv
25341 on failure.
25342
9e0fa3f6
VS
253432010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
25344
25345 * grub-core/normal/cmdline.c (grub_cmdline_get): Free cl_terms on
25346 return.
25347
3393cf16
VS
253482010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
25349
25350 * grub-core/term/gfxterm.c (grub_gfxterm_term_fini): Free the text buffer.
25351 (scroll_up): Fix a memory leak.
25352
b17540cb
VS
253532010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
25354
25355 * grub-core/fs/nilfs2.c (grub_nilfs2_load_sb): Handle grub_disk_read
25356 errors.
25357
67140446
VS
253582010-08-27 Vladimir Serbinenko <phcoder@gmail.com>
25359
25360 Handle USB pendrives exposed as floppies.
25361
25362 * grub-core/boot/i386/pc/boot.S: Check LBA even on what appears to be
25363 floppy.
25364 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_open): Likewise.
25365 Check for partitions on all devices.
25366
e35e46fc
VS
253672010-08-25 Vladimir Serbinenko <phcoder@gmail.com>
25368
25369 * grub-core/term/ieee1275/ofconsole.c (put): Correct prototype.
25370 (readkey): Likewise.
25371
d24c6190
BC
253722010-08-25 BVK Chaitanya <bvk.groups@gmail.com>
25373
25374 Multiple variable names support to "export" command.
25375
25376 * normal/context.c (grub_cmd_export): "export" command supports
25377 multiple variable names.
25378
04ddcc6a
ST
253792010-08-23 Samuel Thibault <samuel.thibault@ens-lyon.org>
25380
25381 * util/grub.d/30_os-prober.in: Fix conversion from grub-probe
25382 --target=drive output to Mach device name.
25383
0c8b61d8
BC
253842010-08-23 BVK Chaitanya <bvk.groups@gmail.com>
25385
25386 New Automake based build system for GRUB.
25387
25388 * ABOUT-NLS: New file.
25389 * Makefile.am: New file. GRUB host utils' rules that doesn't fit
25390 in Makefile.util.def file.
25391 * Makefile.util.def: New file. Autogen build definitions file for
25392 GRUB host utils.
25393 * conf/Makefile.common: New file. Common variables for GRUB host
25394 utils and target modules.
25395 * conf/Makefile.extra-dist: New file. Extra files for make dist.
25396 * docs/Makefile.am: New file. Automake file for docs.
25397 * gentpl.py: New file. Python script to generate Autogen
25398 template.
25399 * grub-core/Makefile.am: New file. GRUB target modules' rules
25400 that doesn't fit in Makefile.core.def file.
25401 * grub-core/Makefile.core.def: New file. Autogen build
25402 definitions file for GRUB target modules.
25403 * grub-core/lib/setjmp.S: New file. Wrapper for target_cpu
25404 specific setjmp.S file.
25405 * po/Makefile.am: New file.
25406
25407 * .bzrignore: New ignores.
25408 * INSTALL: New requirements, without Ruby.
25409 * acinclude.m4: Use TARGET_IMG_BASE_LDOPT variable instead.
25410 * autogen.sh: Updated to invoke autogen as necessary.
25411 * configure.ac: Separate *FLAGS with HOST_ and TARGET_ prefixes,
25412 and defines for Automake conditionals.
25413 * geninit.sh: Refactoring.
25414
25415 * include/grub/dl.h: Allow build rules to define GRUB_MOD_* if
25416 necessary.
25417 * include/grub/emu/getroot.h (grub_make_system_path_relative_to_its_root):
25418 New prototype.
25419
25420 * include/grub/test.h: Fix functional test modules' naming.
25421 * grub-core/tests/example_functional_test.c: Fix test module name.
25422
25423 * util/misc.c: Hosted versions' of grub functions for libgrub.a
25424 * tests/lib/unit_test.c: Remove hosted versions of grub functions.
25425 * util/grub-editenv.c: Likewise.
25426 * util/grub-fstest.c: Likewise.
25427 * util/grub-mkdevicemap.c: Likewise.
25428 * util/grub-mkfont.c: Likewise.
25429 * util/grub-mkimage.c: Likewise.
25430 * util/grub-mkpasswd-pbkdf2.c: Likewise.
25431 * util/grub-probe.c: Likewise.
25432 * util/grub-script-check.c: Likewise.
25433 * util/i386/pc/grub-setup.c: Likewise.
25434 * util/sparc64/ieee1275/grub-setup.c: Likewise.
25435
25436 * tests/util/grub-shell.in: Fix override directory path.
25437 * util/grub-mkrescue.in: Replace @pkglib_DATA@ with files.
25438 * util/import_gcry.py: Create Makefile.gcry.def file instead.
25439
25440 * util/lvm.c: Update #includes.
25441 * util/raid.c: Likewise.
25442 * util/resolve.c: Likewise.
25443 * grub-core/bus/emu/pci.c: Likewise.
25444 * grub-core/lib/posix_wrap/stdlib.h: Likewise.
25445 * grub-core/lib/posix_wrap/string.h: Likewise.
25446 * grub-core/kern/emu/main.c: Likewise.
25447
25448 * grub-core/gensymlist.sh: New file. Script for generating kernel
25449 symbols file.
25450 * grub-core/genmoddep.awk: Support new kernel_syms.lst format.
25451
25452 * grub-core/gentrigtables.c: Fix unused variable warnings.
25453
25454 * Makefile.in: Removed.
25455 * conf/any-emu.rmk: Removed.
25456 * conf/common.rmk: Removed.
25457 * conf/i386-coreboot.rmk: Removed.
25458 * conf/i386-efi.rmk: Removed.
25459 * conf/i386-ieee1275.rmk: Removed.
25460 * conf/i386-multiboot.rmk: Removed.
25461 * conf/i386-pc.rmk: Removed.
25462 * conf/i386-qemu.rmk: Removed.
25463 * conf/i386.rmk: Removed.
25464 * conf/mips-yeeloong.rmk: Removed.
25465 * conf/mips.rmk: Removed.
25466 * conf/powerpc-ieee1275.rmk: Removed.
25467 * conf/sparc64-ieee1275.rmk: Removed.
25468 * conf/tests.rmk: Removed.
25469 * conf/x86-efi.rmk: Removed.
25470 * conf/x86_64-efi.rmk: Removed.
25471 * gendistlist.sh: Removed.
25472 * geninitheader.sh: Removed.
25473 * genkernsyms.sh.in: Removed.
25474 * genmk.rb: Removed.
25475 * gensymlist.sh.in: Removed.
25476 * mkinstalldirs: Removed.
25477 * boot: Moved ...
25478 * grub-core/boot: ... to here.
25479 * bus: Moved ...
25480 * grub-core/bus: ... to here.
25481 * commands: Moved ...
25482 * grub-core/commands: ... to here.
25483 * disk: Moved ...
25484 * grub-core/disk: ... to here.
25485 * efiemu: Moved ...
25486 * grub-core/efiemu: ... to here.
25487 * font: Moved ...
25488 * grub-core/font: ... to here.
25489 * fs: Moved ...
25490 * grub-core/fs: ... to here.
25491 * gencmdlist.sh: Moved ...
25492 * grub-core/gencmdlist.sh: ... to here.
25493 * genemuinit.sh: Moved ...
25494 * grub-core/genemuinit.sh: ... to here.
25495 * genemuinitheader.sh: Moved ...
25496 * grub-core/genemuinitheader.sh: ... to here.
25497 * genfslist.sh: Moved ...
25498 * grub-core/genfslist.sh: ... to here.
25499 * genhandlerlist.sh: Moved ...
25500 * grub-core/genhandlerlist.sh: ... to here.
25501 * genmoddep.awk: Moved ...
25502 * grub-core/genmoddep.awk: ... to here.
25503 * genmodsrc.sh: Moved ...
25504 * grub-core/genmodsrc.sh: ... to here.
25505 * genpartmaplist.sh: Moved ...
25506 * grub-core/genpartmaplist.sh: ... to here.
25507 * genparttoollist.sh: Moved ...
25508 * grub-core/genparttoollist.sh: ... to here.
25509 * genterminallist.sh: Moved ...
25510 * grub-core/genterminallist.sh: ... to here.
25511 * gentrigtables.c: Moved ...
25512 * grub-core/gentrigtables.c: ... to here.
25513 * genvideolist.sh: Moved ...
25514 * grub-core/genvideolist.sh: ... to here.
25515 * gettext: Moved ...
25516 * grub-core/gettext: ... to here.
25517 * gfxmenu: Moved ...
25518 * grub-core/gfxmenu: ... to here.
25519 * gnulib: Moved ...
25520 * grub-core/gnulib: ... to here.
25521 * hello: Moved ...
25522 * grub-core/hello: ... to here.
25523 * hook: Moved ...
25524 * grub-core/hook: ... to here.
25525 * io: Moved ...
25526 * grub-core/io: ... to here.
25527 * kern: Moved ...
25528 * grub-core/kern: ... to here.
25529 * lib: Moved ...
25530 * grub-core/lib: ... to here.
25531 * loader: Moved ...
25532 * grub-core/loader: ... to here.
25533 * mmap: Moved ...
25534 * grub-core/mmap: ... to here.
25535 * normal: Moved ...
25536 * grub-core/normal: ... to here.
25537 * partmap: Moved ...
25538 * grub-core/partmap: ... to here.
25539 * parttool: Moved ...
25540 * grub-core/parttool: ... to here.
25541 * script: Moved ...
25542 * grub-core/script: ... to here.
25543 * term: Moved ...
25544 * grub-core/term: ... to here
25545 * tests/example_functional_test.c: Moved ...
25546 * grub-core/tests/example_functional_test.c: ... to here.
25547 * tests/lib/functional_test.c: Moved ...
25548 * grub-core/tests/lib/functional_test.c: ... to here.
25549 * tests/lib/test.c: Moved ...
25550 * grub-core/tests/lib/test.c: ... to here.
25551 * video: Moved ...
25552 * grub-core/video: ... to here.
25553
645586e6
BC
255542010-08-23 BVK Chaitanya <bvk.groups@gmail.com>
25555
25556 Replace --enable-grub-emu-modules with grub-emu-lite.
25557
25558 * kern/emu/cache.S: New file. Wrapper for $target_cpu specific
25559 cache.S.
25560
25561 * include/grub/emu/misc.h (grub_emu_init): New prototype.
25562 * kern/emu/full.c: New file. For grub-emu specific initialization.
25563 * kern/emu/lite.c: New file. For grub-emu-lite initialization.
25564 * kern/emu/main.c: Call initialization function grub_emu_init.
25565
25566 * Makefile.in: Include grub-emu-lite in install.
25567 * commands/parttool.c: Use grub_no_autoload to differentiate
25568 between grub-emu and grub-emu-lite.
25569 * include/grub/misc.h: New variable grub_no_autoload.
25570
25571 * conf/any-emu.rmk: New rules for grub-emu-lite.
25572 * configure.ac: Remove --enable-grub-emu-modules.
25573 * genmk.rb: Cleanup unnecessary rules.
25574 * include/grub/dl.h: Remove GRUB_NO_MODULES macro.
25575
25576 * normal/main.c: Don't load list files on grub-emu-lite.
25577 * util/misc.c (grub_arch_sync_caches): Removed.
25578
f86a4030
CW
255792010-08-23 Colin Watson <cjwatson@ubuntu.com>
25580
25581 * kern/mips/startup.S (grub_prefix): Update comment to refer to
25582 grub-mkimage rather than grub-mkelfimage.
25583 * kern/powerpc/ieee1275/startup.S (grub_prefix): Likewise.
25584
06776944
VS
255852010-08-22 Vladimir Serbinenko <phcoder@gmail.com>
25586
25587 * term/at_keyboard.c (grub_at_keyboard_getkey_noblock): Don't discard
25588 a key after CapsLock or NumLock. It's just a qemu bug.
25589
df262419
VS
255902010-08-21 Vladimir Serbinenko <phcoder@gmail.com>
25591
25592 * include/grub/usb.h (grub_usb_device): Add 'data' field back. It's
25593 needed by libusb wrapper.
25594
b40ea81b
ST
255952010-08-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
25596
25597 * docs/grub.texi (GNU/Hurd): Document booting GNU/Hurd.
25598
dee50575
VS
255992010-08-21 Vladimir Serbinenko <phcoder@gmail.com>
25600
25601 * loader/multiboot.c (grub_cmd_module): Don't unzip module if
25602 --nounzip is passed.
25603
fb1d7b79
VS
256042010-08-20 Vladimir Serbinenko <phcoder@gmail.com>
25605
25606 USB hotunplugging and USB serial support.
25607
25608 * bus/usb/ohci.c (grub_ohci_transfer): Fill *actual and respect timeout.
25609 * bus/usb/uhci.c (grub_free_queue): Compute *actual.
25610 (grub_uhci_transfer): Respect timeout and set *actual.
25611 * bus/usb/usb.c (grub_usb_device_initialize): Correctly skip fields of
25612 non-standard length.
25613 (grub_usb_device_attach): Autoload modules.
25614 (GRUB_MOD_INIT): Set grub_term_poll_usb.
25615 (GRUB_MOD_FINI): Unset grub_term_poll_usb.
25616 * bus/usb/usbhub.c (grub_usb_hub): Replace speed with devices. All
25617 users updated.
25618 (grub_usb_add_hub): Fill nports and children.
25619 (attach_root_port): Receive hub instead of controller.
25620 All users updated. Fill hub->devices.
25621 (grub_usb_root_hub): Allocate hub->devices.
25622 (detach_device): New function.
25623 (poll_nonroot_hub): Fill children and detach devices.
25624 * bus/usb/usbtrans.c (grub_usb_bulk_readwrite): Accept timeout and
25625 actual arguments. All users updated.
25626 (grub_usb_bulk_read_extended): New function.
25627 * bus/usb/serial/common.c: New file.
25628 * bus/usb/serial/ftdi.c: Likewise.
25629 * bus/usb/serial/pl2303.c: Likewise.
25630 * commands/terminal.c (handle_command): Support wildcard.
25631 * commands/usbtest.c: Output "Unknown" instead of empty string.
25632 * conf/any-emu.rmk (pkglib_MODULES): Add usbserial_common.mod.
25633 (usbserial_common_mod_SOURCES): New variable.
25634 (usbserial_common_mod_CFLAGS): Likewise.
25635 (usbserial_common_mod_LDFLAGS): Likewise.
25636 (pkglib_MODULES): Add usbserial_pl2303.mod.
25637 (usbserial_pl2303_mod_SOURCES): New variable.
25638 (usbserial_pl2303_mod_CFLAGS): Likewise.
25639 (usbserial_pl2303_mod_LDFLAGS): Likewise.
25640 (pkglib_MODULES): Add usbserial_ftdi.mod.
25641 (usbserial_ftdi_mod_SOURCES): New variable.
25642 (usbserial_ftdi_mod_CFLAGS): Likewise.
25643 (usbserial_ftdi_mod_LDFLAGS): Likewise.
25644 (pkglib_MODULES): Add serial.mod.
25645 (serial_mod_SOURCES): New variable.
25646 (serial_mod_CFLAGS): Likewise.
25647 (serial_mod_LDFLAGS): Likewise.
25648 * conf/i386-pc.rmk: Likewise.
25649 * conf/mips-yeeloong.rmk: Likewise.
25650 * conf/i386.rmk (serial_mod_SOURCES): Add term/ns8250.c.
25651 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Likewise.
25652 * disk/usbms.c (first_available_slot): New variable.
25653 (grub_usbms_attach): Don't reuse free slots due to potential cache
25654 problems.
25655 * include/grub/serial.h: Moved to ..
25656 * include/grub/ns8250.h: ...this.
25657 * include/grub/serial.h: New file.
25658 * include/grub/term.h (grub_term_poll_usb): New variable.
25659 * include/grub/terminfo.h (grub_terminfo_input_state): Pass term to
25660 readkey. All users updated.
25661 (grub_terminfo_output_state): Pass term to put.
25662 * include/grub/usb.h (GRUB_USB_REQTYPE): New enum.
25663 (grub_usb_controller_dev): Add timeout and actual arguments to
25664 transfer. All users updated.
25665 (grub_usb_interface): New field detach_data.
25666 (grub_usb_device): New fields children and nports.
25667 (grub_usb_ep_type_t): New type.
25668 (grub_usb_get_ep_type): New function.
25669 (grub_usb_bulk_read_extended): Likewise.
25670 * include/grub/usbdesc.h (grub_usb_desc): New type.
25671 * include/grub/usbserial.h: New file.
25672 * include/grub/usbtrans.h (grub_usb_transaction): New field preceding.
25673 * kern/term.c (grub_term_poll_usb): New variable.
25674 (grub_getkey): Call grub_term_poll_usb if set.
25675 (grub_checkkey): Likewise.
25676 (grub_getkeystatus): Likewise.
25677 * term/serial.c: Moved controller-specific parts to ...
25678 * term/ns8250.c: ... here.
25679 * term/serial.c: Mostly rewritten.
25680 * term/usb_keyboard.c: Reorganised to use GET_REPORT only on attaching
25681 according to spec.
25682
21a313de
RM
256832010-08-20 Robert Millan <rmh@gnu.org>
25684
25685 Make kFreeBSD code more generic to support ext2fs as root, ufs as
25686 a separate module and maybe other interesting combinations.
25687
25688 * util/grub.d/10_kfreebsd.in (load_kfreebsd_module): New function.
25689 (kfreebsd_entry): Use load_kfreebsd_module() to load modules.
25690 (kfreebsd_entry): Add generic filesystem module load routine.
25691 Map GRUB `ext2' to kFreeBSD `ext2fs'.
25692
63c734a6
CW
256932010-08-20 Colin Watson <cjwatson@ubuntu.com>
25694
25695 * commands/i386/pc/sendkey.c (keysym_table): Rename "numlock" to
25696 "numcenter" (I misunderstood the purpose of this entry).
25697 * docs/grub.texi (sendkey): Likewise.
25698
c4d16542
CW
256992010-08-20 Colin Watson <cjwatson@ubuntu.com>
25700
25701 * commands/i386/pc/sendkey.c (options): Remove "keep" from all
25702 status flag options; simply omitting the option is equivalent and
25703 simpler. Rename "wait" to "pause". Rename "sysreq" to "sysrq".
25704 (keysym_table): Rename "num5numlock" to "numlock".
25705 (grub_cmd_sendkey): Reinitialise `andmask' and `ormask', so that we
25706 can uniformly say that only the last of multiple `sendkey'
25707 invocations has any effect.
25708 * docs/grub.texi (sendkey): New section.
25709
93541d66
CW
257102010-08-19 Colin Watson <cjwatson@ubuntu.com>
25711
25712 * commands/i386/pc/sendkey.c (options): Fix three typos.
25713
b4ece5e1
VS
257142010-08-19 Vladimir Serbinenko <phcoder@gmail.com>
25715
25716 Implement sendkey support.
25717
25718 * commands/i386/pc/sendkey.c: New file.
25719 * conf/i386-pc.rmk (pkglib_MODULES): Add sendkey.mod.
25720 (sendkey_mod_SOURCES): New variable.
25721 (sendkey_mod_CFLAGS): Likewise.
25722 (sendkey_mod_LDFLAGS): Likewise.
25723
51f1f5af
CW
257242010-08-18 Colin Watson <cjwatson@ubuntu.com>
25725
25726 * configure.ac: Move AM_INIT_AUTOMAKE after AC_CANONICAL_TARGET to
25727 fix warnings from Autoconf.
25728
9da94e05
CW
257292010-08-18 Colin Watson <cjwatson@ubuntu.com>
25730
25731 * acinclude.m4 (grub_ASM_USCORE): Use a more accurate grep pattern,
25732 to avoid false positives with some assemblers that output things
25733 like "someprefix_func" as part of their output.
25734
729a0f2e
RM
257352010-08-15 Robert Millan <rmh@gnu.org>
25736
25737 * kern/emu/misc.c (grub_get_libzfs_handle): Handle libzfs_init()
25738 errors.
25739 * kern/emu/getroot.c (find_root_device_from_libzfs): Handle
25740 grub_get_libzfs_handle() errors.
25741
f3710e08
RM
257422010-08-14 Robert Millan <rmh@gnu.org>
25743
25744 * kern/emu/misc.c (grub_find_zpool_from_dir): Abort function if
25745 filesystem is not ZFS.
25746
7a3c13de
BC
257472010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
25748
25749 Fix for misspelled color names defaulting to black/black (bug
25750 reported by Doug Nazar)
25751
25752 * include/grub/normal.h (grub_parse_color_name_pair): Add return
25753 status to prototype.
25754 * normal/color.c (grub_parse_color_name_pair): Return failure
25755 status.
25756 (grub_env_write_color_normal): Ignore bad color names.
25757 (grub_env_write_color_highlight): Likewise.
25758 * normal/main.c (GRUB_MOD_INIT): Set default color names.
25759
ab8ba50d
BC
257602010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
25761
25762 "shift" command support to GRUB script.
25763
25764 * include/grub/script_sh.h (grub_script_shift): New prototype.
25765 * script/execute.c (grub_script_shift): New function.
25766 * script/main.c (grub_script_init): Register shift command.
25767 (grub_script_fini): Unregister shift command.
25768 * util/grub-script-check.c (grub_script_cmd_shift): New function.
25769
25770 * tests/grub_script_shift.in: New testcase.
25771 * conf/tests.rmk: Rules for new testcase.
25772
4d61999e
BC
257732010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
25774
25775 "continue" command support to GRUB script.
25776
25777 * script/execute.c (grub_script_execute_cmdwhile): Continue support.
25778 (grub_script_break): Continue support.
25779 * script/main.c (grub_script_init): Register continue command.
25780 (grub_script_fini): Unregister continue command.
25781
25782 * tests/grub_script_continue.in: New testcase.
25783 * conf/tests.rmk: Rules for new testcase.
25784
4df51e00
BC
257852010-08-12 BVK Chaitanya <bvk@dbook>
25786
25787 "break" command support to GRUB script.
25788
25789 * conf/common.rmk: Rule updates to grub-script-check.
25790 * include/grub/misc.h (grub_min): New function.
25791 * include/grub/script_sh.h (grub_script_init): New prototype.
25792 (grub_script_fini): New prototype.
25793 (grub_script_break): New prototype.
25794 * script/main.c (grub_script_init): New function.
25795 (grub_script_fini): New function.
25796 * script/execute.c (grub_script_break): New function.
25797 * normal/main.c: Calls to grub_script_{init,fini}.
25798 * util/grub-script-check.c (grub_script_break): New function.
25799
25800 * tests/grub_script_break.in: New testcase.
25801 * conf/tests.rmk: Rules for new test case.
25802
f12c8420
BC
258032010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
25804
25805 Function parameters support to GRUB script.
25806
25807 * script/yylex.l (VARIABLE): Regular expression update.
25808 * script/function.c (grub_script_function_call): Moved ...
25809 * script/execute.c (grub_script_function_call): ... to here.
25810 (grub_script_execute_arglist_to_argv): Removed.
25811 (grub_script_arglist_to_argv): New function.
25812 * script/argv.c: New file.
25813 (grub_script_argv_free): New function.
25814 (grub_script_argv_next): Likewise.
25815 (grub_script_argv_append): Likewise.
25816 (grub_script_argv_split_append): Likewise.
25817 * include/grub/script_sh.h (grub_script_argv): New struct.
25818 (grub_script_argv_free): New function.
25819 (grub_script_argv_next): Likewise.
25820 (grub_script_argv_append): Likewise.
25821 (grub_script_argv_split_append): Likewise.
25822
25823 * conf/common.rmk (normal.mod): New source script/argv.c.
25824
25825 * tests/grub_script_echo1.in: More tests.
25826 * tests/grub_script_vars1.in: Likewise.
25827 * tests/grub_script_functions.in: New test case.
25828 * conf/tests.rmk: Rules for new testcase.
25829
8022b748
BC
258302010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
25831
25832 Remove grub_script_cmdblock struct.
25833
25834 * include/grub/script_sh.h: Remove grub_script_cmdblock.
25835 * script/parser.y: Likewise.
25836 * script/execute.c: Rename cmdblock suffix to cmdlist.
25837 * script/script.c: Likewise.
25838 * util/grub-script-check.c: Likewise.
25839
79a6ba61
YB
258402010-08-11 Yves Blusseau <blusseau@zetam.org>
25841
25842 * .bzrignore: add grub-macho2img
25843
d04b9414
VS
258442010-08-11 Vladimir Serbinenko <phcoder@gmail.com>
25845
25846 * kern/i386/qemu/init.c (grub_qemu_init_cirrus): Fix compilation error.
25847
f947ab49
VS
258482010-08-11 Vladimir Serbinenko <phcoder@gmail.com>
25849
25850 Remove the dump of sm712 initialisation sequence.
25851
25852 * include/grub/pci.h (GRUB_PCI_CLASS_SUBCLASS_VGA): New const.
25853 * include/grub/vga.h (GRUB_VGA_IO_ARX_READ): New register.
25854 (GRUB_VGA_IO_MISC_WRITE): Likewise.
25855 (GRUB_VGA_CR_*): Added many registers.
25856 (GRUB_VGA_SR_*): Likewise.
25857 (GRUB_VGA_GR_*): Likewise.
25858 (grub_vga_write_arx): New function.
25859 (grub_video_hw_config): New struct.
25860 (grub_vga_set_geometry): New function.
25861 * kern/i386/qemu/init.c (load_palette): Use grub_vga_write_arx and
25862 GRUB_PCI_CLASS_SUBCLASS_VGA.
25863 * video/cirrus.c (grub_video_cirrus_setup): Use grub_vga_set_geometry.
25864 * video/sm712.c (grub_sm712_write_reg): New function
25865 (grub_sm712_read_reg): Likewise.
25866 (grub_sm712_sr_write): Likewise.
25867 (grub_sm712_gr_write): Likewise.
25868 (grub_sm712_cr_write): Likewise.
25869 (grub_sm712_write_arx): Likewise.
25870 (grub_sm712_cr_shadow_write): Likewise.
25871 (grub_sm712_write_dda_lookup): Likewise.
25872 (grub_video_sm712_setup): Initialise the video rather then
25873 blindly replay the dump.
25874 (main) [TEST]: Add a routine to be able to compile as standalone for
25875 tests.
25876 * video/sm712_init.c (sm712_init): Removed.
25877 (sm712_sr_seq1): New array.
25878 (sm712_sr_seq2): Likewise.
25879
f0206638
VS
258802010-08-10 Vladimir Serbinenko <phcoder@gmail.com>
25881
25882 * include/grub/vga.h: Add missing grub/pci.h include.
25883
2764da3b
YB
258842010-08-10 Yves Blusseau <blusseau@zetam.org>
25885
25886 * util/grub-macho2img.c (main): fix typo
25887
cf0c775e
VS
258882010-08-10 Vladimir Serbinenko <phcoder@gmail.com>
25889
25890 * include/grub/vga.h (grub_vga_gr_write): Add GRUB_MACHINE_PCI_IO_BASE.
25891 (grub_vga_gr_read): Likewise.
25892 (grub_vga_cr_write): Likewise.
25893 (grub_vga_cr_read): Likewise.
25894 (grub_vga_sr_write): Likewise.
25895 (grub_vga_sr_read): Likewise.
25896 (grub_vga_palette_read): Likewise.
25897 (grub_vga_palette_write): Likewise.
25898 * video/sm712.c (GRUB_SM712_REG_BASE): New definition.
25899 (grub_sm712_sr_read): New function.
25900 (grub_video_sm712_setup): Use grub_vga_sr_write and grub_sm712_sr_read.
25901 * video/sm712_init.c (sm712_init): Substract GRUB_MACHINE_PCI_IO_BASE.
25902
07f360e9
RM
259032010-08-09 Robert Millan <rmh@gnu.org>
25904
25905 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): Filter
25906 out unused variables on non-ZFS build.
25907
346c2072
RM
259082010-08-08 Robert Millan <rmh@gnu.org>
25909
25910 Fix path generation for sub-filesystems in ZFS.
25911
25912 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): Add
25913 missing slash.
25914
71175420
RM
259152010-08-08 Robert Millan <rmh@gnu.org>
25916
25917 * util/grub-fstest.c (read_file, cmd_cmp): Improve error message.
25918
0d8286f3
RM
259192010-08-08 Robert Millan <rmh@gnu.org>
25920
25921 * util/grub.d/10_kfreebsd.in: When files required for ZFS do not
25922 exist, issue a proper error message (rely on `ls' for translated
25923 strings).
25924
55dd2924
RM
259252010-08-08 Robert Millan <rmh@gnu.org>
25926
25927 Fix grub-probe invocation.
25928
25929 * util/grub.d/10_kfreebsd.in: s/label/fs_label/g.
25930
d3dd9e80
RM
259312010-08-04 Robert Millan <rmh@gnu.org>
25932
25933 * configure.ac: Remove checks for getfsstat() and getmntany().
25934 Add checks for `<sys/param.h>' and `<sys/mount.h>'.
25935 * kern/emu/misc.c [HAVE_GETMNTANY]: Remove `<sys/mnttab.h>'.
25936 [HAVE_SYS_PARAM_H]: Include `<sys/param.h>'.
25937 [HAVE_SYS_MOUNT_H]: Include `<sys/mount.h>'.
25938 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (find_mount_point_from_dir): Remove
25939 function.
25940 (grub_find_zpool_from_dir): Use statfs() instead of indirect matching
25941 via find_mount_point_from_dir() and getfsstat() / getmntany().
25942
0de22aa9
RM
259432010-08-04 Robert Millan <rmh@gnu.org>
25944
25945 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
25946 (grub_find_zpool_from_mount_point): Merge into ...
25947 (grub_find_zpool_from_dir): ... this.
25948 * kern/emu/misc.c: Likewise.
25949
25950 * kern/emu/misc.c
25951 (grub_make_system_path_relative_to_its_root): Replace
25952 grub_find_mount_point_from_dir() / grub_find_zpool_from_mount_point()
25953 with grub_find_zpool_from_dir().
25954 * kern/emu/getroot.c (find_root_device_from_libzfs): Likewise.
25955
62858144
RM
259562010-08-04 Robert Millan <rmh@gnu.org>
25957
25958 Support OpenSolaris in ZFS device resolution.
25959
25960 * configure.ac: Check for getmntany().
25961 * kern/emu/misc.c [HAVE_GETMNTANY]: Include `<sys/mnttab.h>'.
25962 [HAVE_GETMNTANY] (grub_find_zpool_from_mount_point): Add OpenSolaris
25963 support.
25964
9dd6fd50
RM
259652010-08-03 Robert Millan <rmh@gnu.org>
25966
25967 Fix grub-emu build.
25968
25969 * include/grub/util/misc.h: Move `<grub/util/libzfs.h>' to ...
25970 * include/grub/emu/misc.h: ... here.
25971
25972 * include/grub/util/misc.h (grub_get_libzfs_handle): Move function ...
25973 * include/grub/emu/misc.h (grub_get_libzfs_handle): ... here.
25974
25975 * util/misc.c: Remove `<grub/util/libzfs.h>'.
25976 [HAVE_LIBZFS] (libzfs_handle, fini_libzfs)
25977 (grub_get_libzfs_handle): Move to ...
25978 * kern/emu/misc.c [HAVE_LIBZFS] (__libzfs_handle, fini_libzfs)
25979 (grub_get_libzfs_handle): ... here.
25980
c9f7ff97
BC
259812010-08-03 BVK Chaitanya <bvk.groups@gmail.com>
25982
25983 * script/execute.c (grub_script_execute_cmdline): Check for NULL
25984 as command name case.
25985
a870a783
CW
259862010-08-02 Colin Watson <cjwatson@ubuntu.com>
25987
25988 * disk/raid.c (insert_array): Select unique numbers for named arrays
25989 as well, for use as keys in the disk cache.
25990
c7db243b
RM
259912010-08-01 Robert Millan <rmh@gnu.org>
25992
25993 * util/grub.d/10_kfreebsd.in: Initialize ${kfreebsd_device} as the
25994 kFreeBSD device name, except on ZFS where the filesystem label is
25995 used.
25996 (kfreebsd_entry): On ZFS root, load `opensolaris.ko', `zfs.ko' and
25997 `/boot/zfs/zpool.cache'.
25998 Set mountfrom kernel variable using ${kfreebsd_device}.
25999
f7abdefb
RM
260002010-08-01 Robert Millan <rmh@gnu.org>
26001
26002 Make it even harder to use uninitialized `libzfs_handle' (and
26003 make the interface a bit simpler).
26004
26005 * include/grub/util/misc.h (grub_util_init_libzfs)
26006 (libzfs_handle): Remove.
26007 (grub_get_libzfs_handle): New prototype.
26008
26009 * util/misc.c [HAVE_LIBZFS] (libzfs_handle): Add `static'
26010 attribute.
26011 (grub_util_init_libzfs): Remove.
26012 (grub_get_libzfs_handle): New function.
26013
26014 * kern/emu/getroot.c (find_root_device_from_libzfs): Use
26015 grub_get_libzfs_handle() to obtain a libzfs handle instead of
26016 accessing `libzfs_handle' directly.
26017
c882acc0
RM
260182010-08-01 Robert Millan <rmh@gnu.org>
26019
26020 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
26021 (grub_find_zpool_from_mount_point): New function prototypes.
26022
26023 * kern/emu/getroot.c [HAVE_GETFSSTAT]: Move `<sys/mount.h>' to ...
26024 * kern/emu/misc.c [HAVE_GETFSSTAT]: ... here.
26025
26026 * kern/emu/getroot.c (find_mount_point_from_dir): Move to ...
26027 * kern/emu/misc.c (grub_find_mount_point_from_dir): ... this. Remove
26028 `static' attribute.
26029
26030 * kern/emu/getroot.c (find_root_device_from_libzfs): Split code for
26031 finding zpool from mount point into ...
26032 * kern/emu/misc.c (grub_find_zpool_from_mount_point): ... this.
26033
26034 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): When
26035 requested path is part of a ZFS pool, use
26036 grub_find_zpool_from_mount_point() to detect its filesystem name,
26037 and generate a path with `/fsname@path' syntax.
26038
8bfe31d8
CW
260392010-08-01 Colin Watson <cjwatson@ubuntu.com>
26040
26041 * include/grub/util/libzfs.h (libzfs_init): Set argument list to
26042 (void) rather than () so that this is a proper prototype.
26043
553df63d
VS
260442010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
26045
26046 * lib/arg.c (grub_arg_show_help): Add the necessary spacing.
26047
8687cf07
VS
260482010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
26049
26050 * kern/emu/getroot.c (find_mount_point_from_dir): Compile only if
26051 [HAVE_LIBZFS && HAVE_LIBNVPAIR]
26052
ea9be8ea
CW
260532010-08-01 Colin Watson <cjwatson@ubuntu.com>
26054
26055 * util/grub-mkrescue.in: Remove ${efi_dir} after building efi.img.
26056
6eea041a
CW
260572010-08-01 Colin Watson <cjwatson@ubuntu.com>
26058
26059 * script/yylex.l (NAME): Remove [:digit:], redundant with [:alnum:].
26060
2cfb45df
CW
260612010-08-01 Colin Watson <cjwatson@ubuntu.com>
26062
26063 * docs/grub.texi (Simple configuration): Document GRUB_CMDLINE_XEN
26064 and GRUB_CMDLINE_XEN_DEFAULT. Recommend setting
26065 GRUB_GFXPAYLOAD_LINUX=text rather than unsetting it in order to
26066 disable gfxpayload.
26067 (Shell-like scripting): Add real content.
26068 (Serial terminal): Suggest `terminal_input serial; terminal_output
26069 serial' rather than putting the two commands on separate lines,
26070 since console input will be inoperative after the first command.
26071 (menuentry): Document --class, --users, and --hotkey options.
26072 (terminfo): Describe what `visually-ordered UTF-8' means (thanks,
26073 Vladimir Serbinenko).
26074
7decd202
VS
260752010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
260762010-08-01 Colin Watson <cjwatson@ubuntu.com>
26077
26078 * kern/misc.c (grub_memset): Optimise to reduce cache stalls.
26079
c882acc0
RM
260802010-08-01 Robert Millan <rmh@gnu.org>
26081
26082 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
26083 (grub_find_zpool_from_mount_point): New function prototypes.
26084
26085 * kern/emu/getroot.c [HAVE_GETFSSTAT]: Move `<sys/mount.h>' to ...
26086 * kern/emu/misc.c [HAVE_GETFSSTAT]: ... here.
26087
26088 * kern/emu/getroot.c (find_mount_point_from_dir): Move to ...
26089 * kern/emu/misc.c (grub_find_mount_point_from_dir): ... this. Remove
26090 `static' attribute.
26091
26092 * kern/emu/getroot.c (find_root_device_from_libzfs): Split code for
26093 finding zpool from mount point into ...
26094 * kern/emu/misc.c (grub_find_zpool_from_mount_point): ... this.
26095
26096 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): When
26097 requested path is part of a ZFS pool, use
26098 grub_find_zpool_from_mount_point() to detect its filesystem name,
26099 and generate a path with `/fsname@path' syntax.
26100
deb0caa3
RM
261012010-08-01 Robert Millan <rmh@gnu.org>
26102
26103 Prevent accidental use of uninitialized libzfs_handle.
26104
26105 * util/grub-probe.c (main): Move grub_util_init_libzfs() call to ...
26106 * kern/emu/getroot.c (find_root_device_from_libzfs): ... here.
26107 * util/misc.c (grub_util_init_libzfs): Make this function idempotent.
26108
ce04ef47
CW
261092010-08-01 Colin Watson <cjwatson@ubuntu.com>
26110
26111 * util/grub.d/20_linux_xen.in: Don't use UUID for LVM root (matching
26112 util/grub.d/10_linux.in). Fixes Debian bug #591093.
26113
ebf53056
RM
261142010-08-01 Robert Millan <rmh@gnu.org>
26115
26116 * kern/emu/getroot.c: Include `<grub/util/misc.h>'.
8687cf07 26117
3710bb6b
RM
261182010-07-31 Robert Millan <rmh@gnu.org>
26119
26120 * util/grub.d/10_kfreebsd.in: Make module handling more generic.
26121
8072efeb
RM
261222010-07-31 Robert Millan <rmh@gnu.org>
26123
26124 * kern/emu/misc.c: Add missing license header.
26125
3169f4c7
RM
261262010-07-31 Robert Millan <rmh@gnu.org>
26127
26128 * configure.ac: Check for `libzfs.h' and `libnvpair.h'.
26129
26130 * include/grub/util/libnvpair.h: Include `<config.h>'.
26131 [HAVE_LIBNVPAIR_H]: Include `<libnvpair.h>' instead of
26132 declaring libnvpair prototypes ourselves.
26133 * include/grub/util/libzfs.h: Include `<config.h>'.
26134 [HAVE_LIBZFS_H]: Include `<libzfs.h>' instead of
26135 declaring libzfs prototypes ourselves.
26136
26137 (libzfs_handle): Moved to ...
26138 * include/grub/util/misc.h (libzfs_handle): ... here.
26139 Include `<grub/util/libzfs.h>'.
26140
c9a00aee
RM
261412010-07-30 Robert Millan <rmh@gnu.org>
26142
26143 * include/grub/emu/misc.h: Add missing license header.
26144
a184f9c8
RM
261452010-07-30 Robert Millan <rmh@gnu.org>
26146
26147 Enable `grub-probe -t device' resolution on ZFS.
26148
26149 * configure.ac: Check for getfsstat(), libzfs and libnvpair.
26150 * include/grub/util/libnvpair.h: New file.
26151 * include/grub/util/libzfs.h: New file.
26152
26153 * kern/emu/getroot.c: Include `<assert.h>' and `<error.h>'.
26154 [HAVE_LIBZFS && HAVE_LIBNVPAIR]: Include `<grub/util/libzfs.h>' and
26155 `<grub/util/libnvpair.h>'.
26156 [HAVE_GETFSSTAT]: Include `<sys/mount.h>'.
26157
26158 (find_mount_point_from_dir): New static function.
26159 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (find_root_device_from_libzfs): New
26160 function.
26161 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (grub_guess_root_device): Use
26162 find_root_device_from_libzfs() before ressorting to find_root_device().
26163
26164 * include/grub/util/misc.h (grub_util_init_libzfs): New function
26165 prototype.
26166 * util/misc.c: Include `<grub/util/libzfs.h>'.
26167 (grub_util_init_libzfs): New function.
26168 [HAVE_LIBZFS] (libzfs_handle): New global variable.
26169 [HAVE_LIBZFS] (fini_libzfs): New static function.
26170 (grub_util_init_libzfs): New function.
26171 * util/grub-probe.c (main): Call grub_util_init_libzfs().
26172
f7790cdd
RM
261732010-07-30 Robert Millan <rmh@gnu.org>
26174
26175 * include/grub/emu/misc.h (grub_make_system_path_relative_to_its_root)
26176 (xmalloc, xrealloc, xstrdup, xasprintf): Add
26177 `warn_unused_result' attribute.
26178 * include/grub/misc.h (grub_strdup, grub_strndup, grub_strlen)
26179 (grub_xasprintf, grub_xvasprintf): Likewise.
26180 * include/grub/emu/misc.h (xasprintf): Remove duplicate prototype.
26181
0806b63c
RM
261822010-07-29 Robert Millan <rmh@gnu.org>
26183
26184 * util/grub-probe.c (PRINT_FS_LABEL): New enum value.
26185 (probe): Handle `PRINT_FS_LABEL'.
26186 (main): Handle `-t fs_label'.
26187
9f841f5c
RM
261882010-07-29 Robert Millan <rmh@gnu.org>
26189
26190 * configure.ac: Remove grub-mkisofs checks.
26191
46371121
VS
261922010-07-28 Vladimir Serbinenko <phcoder@gmail.com>
26193
26194 * util/ieee1275/grub-install.in: Don't use empty grub_device.
26195 Reported by: Lennart Sorensen.
26196
261972010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
26198
26199 * util/grub.d/00_header.in: Remove compatibility with terminal.mod
26200 prior to terminal_input/terminal_output separation. It's been over 1.5
26201 years and those versions weren't widely deployed.
26202
a9600892
CW
262032010-07-22 Colin Watson <cjwatson@ubuntu.com>
26204
26205 * disk/raid.c (insert_array): Don't count named arrays when looking
26206 for unused array numbers.
697e053c 26207 Reported and tested by: Michael Guntsche.
a9600892 26208
c03507df
CW
262092010-07-20 Colin Watson <cjwatson@ubuntu.com>
26210
26211 * bus/usb/emu/usb.c (grub_usb_poll_devices): Add a dummy
26212 implementation of this so that grub-emu links again, with a note
26213 that this should support hotplugging in the future.
26214
b26f1c11
CW
262152010-07-20 Colin Watson <cjwatson@ubuntu.com>
26216
26217 * kern/emu/getroot.c (grub_util_get_grub_dev): Use xasprintf.
26218
efc9d7f1
CW
262192010-07-20 Colin Watson <cjwatson@ubuntu.com>
26220
26221 * disk/loopback.c (grub_cmd_loopback): Don't leak a grub_file_t
26222 handle on failure.
26223 (grub_loopback_close): Remove empty function.
26224 (grub_loopback_dev): Remove close method.
26225
dd8ff5c9
CW
262262010-07-20 Colin Watson <cjwatson@ubuntu.com>
26227
26228 Disable EFI cursor when the EFI console becomes inactive.
26229
26230 * term/efi/console.c (grub_efi_console_init): New function.
26231 (grub_efi_console_fini): New function.
26232 (grub_console_term_output): Register init and fini methods.
26233
5e3bec67
VS
262342010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
26235
26236 * tests/util/grub-shell-tester.in: Remove bashism and declare as
26237 sh script.
26238
afaec079
VS
262392010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
26240
26241 * disk/loopback.c (grub_loopback): Replace filename with file.
26242 (delete_loopback): Handle new semantics.
26243 (grub_cmd_loopback): Likewise.
26244 (grub_loopback_iterate): Likewise.
26245 (grub_loopback_close): Likewise.
26246
a6a11f3c
VS
262472010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
26248
26249 * util/i386/efi/grub-install.in: Revert to platform-specific behaviour
26250 with -p "".
26251 Reported by: Tito Keitel.
26252
64a638b0
VS
262532010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
26254
26255 * docs/grub.texi (Naming convention): Document new naming convention.
26256
ab8ba957
VS
262572010-07-20 Vadim Solomin <vadic052@gmail.com>
262582010-07-20 Colin Watson <cjwatson@ubuntu.com>
26259
26260 Generate device.map in something closer to the old ordering.
26261
26262 * util/deviceiter.c (struct device): New declaration.
26263 (compare_file_names): Rename to ...
26264 (compare_devices): ... this. Sort by kernel name in preference to
26265 the stable by-id name, but keep the latter as a fallback comparison.
26266 Update header comment.
26267 (grub_util_iterate_devices) [__linux__]: Construct and sort an array
26268 of `struct device' rather than of plain file names.
26269
a29d6a4b
TF
262702010-07-20 Thomas Frauendorfer <Thomas.Frauendorfer@googlemail.com>
26271
26272 * lib/i386/relocator_asm.S [! __x86_64__]: Don't try to disable amd64
26273 on i386.
26274
39d824e8
VS
262752010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
26276
26277 * commands/acpi.c (setup_common_tables): Use sizeof instead of
26278 hardcoding size.
26279 (setv1table): Likewise.
26280
f058276b
FZ
262812010-07-20 Colin Watson <cjwatson@ubuntu.com>
26282
26283 * disk/raid.c (insert_array): Use md/%s to name mdadm 1.x devices,
26284 removing the homehost if present.
26285 * kern/emu/getroot.c (get_mdadm_name) [__linux__]: New function.
26286 (grub_util_get_grub_dev): Use md/%s to name mdadm 1.x devices,
26287 removing the homehost if present.
26288 (grub_util_get_grub_dev) [__linux__]: Get the array name from mdadm
26289 if possible.
26290 * util/i386/pc/grub-setup.c (main): Handle md/* devices.
26291
26292 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Add start_sector
26293 parameter. Set its pointer target to 0.
26294 * disk/mdraid_linux.c (grub_mdraid_detect): Add start_sector
26295 parameter. Set its pointer target to 0 for 0.9 metadata, or to the
26296 `data_offset' value from the superblock for 1.x metadata.
26297 * disk/raid.c (grub_raid_read): Offset reads by the start sector of
26298 data on the device.
26299 (insert_array): Record the start sector of data on the device.
26300 (grub_raid_register): Pass start_sector parameters to
26301 grub_raid_list->detect and insert_array.
26302 * include/grub/raid.h (struct grub_raid_array): Add start_sector
26303 member.
26304 (struct grub_raid): Add start_sector parameter to `detect'.
26305
26306 * disk/mdraid_linux.c (struct grub_raid_super_1x): Remove
26307 __attribute__ ((packed)), leaving a comment.
26308 (grub_mdraid_detect): Split out 0.9 and 1.x detection to ...
26309 (grub_mdraid_detect_09): ... here and ...
26310 (grub_mdraid_detect_1x): ... here.
26311
263122010-07-20 Peter Henn <peter.henn@web.de>
26313
26314 * disk/mdraid_linux.c (grub_mdraid_detect): Fix calculation of 1.x
26315 chunk size and disk size, which are already given as sector counts
26316 as distinct from the 0.90 units. Fetch the correct device number
26317 from the role table instead of using the table index.
26318
263192010-07-20 Felix Zielcke <fzielcke@z-51.de>
26320
26321 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Set array->name to NULL.
26322 * disk/mdraid_linux.c (grub_raid_super_1x): New structure.
26323 (WriteMostly1): New macro.
26324 Set array->name to NULL for metadata format 0.90. Add support for
26325 metadata 1.x. Fix some comments.
26326 * disk/raid.c (): Add support for name based RAID arrays. Fix a
26327 few comments.
26328 * util/getroot.c (grub_util_get_grub_dev): Add support for
26329 /dev/md/name style devices.
26330
4b761da9
CW
263312010-07-20 Colin Watson <cjwatson@ubuntu.com>
26332
26333 * .bzrignore: Ignore 20_linux_xen.
26334
5771289a
CW
263352010-07-17 Colin Watson <cjwatson@ubuntu.com>
26336
26337 * util/import_unicode.py: Remove unnecessary imports.
26338
5dab68df
AN
263392010-07-17 Aleš Nesrsta <starous@volny.cz>
26340
26341 Hotplugging and USB hub support.
26342
26343 * bus/usb/ohci.c (grub_ohci_td): Add convenience fields.
26344 (grub_ohci): Likewise.
26345 (GRUB_OHCI_REG_CONTROL_BULK_ENABLE): New definition.
26346 (GRUB_OHCI_REG_CONTROL_CONTROL_ENABLE): Likewise.
26347 (GRUB_OHCI_RESET_CONNECT_CHANGE): Likewise.
26348 (GRUB_OHCI_CTRL_EDS): Likewise.
26349 (GRUB_OHCI_BULK_EDS): Likewise.
26350 (GRUB_OHCI_TDS): Likewise.
26351 (GRUB_OHCI_ED_ADDR_MASK): Likewise.
26352 (grub_ohci_ed_phys2virt): New function.
26353 (grub_ohci_virt_to_phys): Likewise.
26354 (grub_ohci_td_phys2virt): Likewise.
26355 (grub_ohci_td_virt2phys): Likewise.
26356 (grub_ohci_pci_iter): Allocate memory and don't wait for stable
26357 attachment.
26358 (grub_ohci_find_ed): New function.
26359 (grub_ohci_alloc_td): Likewise.
26360 (grub_ohci_free_td): Likewise.
26361 (grub_ohci_free_tds): Likewise.
26362 (grub_ohci_transfer): Use previously allocated memory.
26363 (grub_ohci_portstatus): Reset status changed bit.
26364 (grub_ohci_detect_dev): Supply status changed.
26365 (grub_ohci_fini_hw): Free memory.
26366 (grub_ohci_restore_hw): Reallocate memory.
26367 * bus/usb/uhci.c (grub_uhci_portstatus): Don't reset on disable.
26368 Reset status change.
26369 (grub_uhci_detect_dev): Supply status_change.
26370 * bus/usb/usb.c (attach_hooks): New var.
26371 (grub_usb_device_attach): New function.
26372 (grub_usb_register_attach_hook_class): Likewise.
26373 (grub_usb_unregister_attach_hook_class): Likewise.
26374 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Handle errors correctly.
26375 (grub_usb_add_hub): Reset connection changed bit.
26376 (attach_root_port): New function.
26377 (grub_usb_root_hub): Likewise.
26378 (poll_nonroot_hub): Likewise.
26379 (grub_usb_poll_devices): Likewise.
26380 * commands/usbtest.c (grub_cmd_usbtest): Poll devices before listing.
26381 * disk/usbms.c (grub_usbms_open): Use device hooks.
26382 (grub_usbms_iterate) :Poll devices.
26383 (grub_usbms_finddevs): Split into ...
26384 (grub_usbms_attach): ... this ...
26385 (grub_usbms_attach): ... and this.
26386 * include/grub/usb.h (grub_usb_controller_dev): Supply status_changed
26387 in detect_dev.
26388 (grub_usb_interface): New fields attached and detach_hook.
26389 (grub_usb_attach_hook_class): New type.
26390 (grub_usb_attach_desc): New struct.
26391 (grub_usb_register_attach_hook_class): New function.
26392 (grub_usb_unregister_attach_hook_class): Likewise.
26393 (grub_usb_poll_devices): Likewise.
26394 (grub_usb_device_attach): Likewise.
26395 * include/grub/usbtrans.h (GRUB_USB_HUB_FEATURE_C_CONNECTED): New const.
26396 (GRUB_USB_HUB_STATUS_C_CONNECTED): Likewise.
26397
3222efaf
VS
263982010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
26399
26400 * include/grub/bsdlabel.h (GRUB_PC_PARTITION_BSD_LABEL_WHOLE_DISK_PARTITION): New definition.
26401 * partmap/bsdlabel.c (bsdlabel_partition_map_iterate): Use FreeBSD
26402 delta determination style. Works with most NetBSD partitions too.
26403
139b714a
VS
264042010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
26405
26406 * kern/partition.c [GRUB_UTIL]: Add missing util/misc.h inclusion.
26407 * partmap/bsdlabel.c [GRUB_UTIL]: Likewise.
26408
986aad56
VS
264092010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
26410
26411 * disk/scsi.c (grub_scsi_open): Fix incorrect pointer dereference.
26412
99be513c
AB
264132010-07-14 Anton Blanchard <anton@samba.org>
26414
26415 * loader/powerpc/ieee1275/linux.c (grub_cmd_linux): Do not reject
26416 ET_DYN files.
26417
18075f62
GS
264182010-07-14 Grégoire Sutre <gregoire.sutre@gmail.com>
26419
26420 * Makefile.in: Use the substituted @USE_NLS@ instead of ENABLE_NLS.
26421
8d9a5b15
GS
264222010-07-14 Grégoire Sutre <gregoire.sutre@gmail.com>
26423
26424 * kern/partition.c (grub_partition_check_containment): New function to
26425 check that a partition is physically contained in a parent. Since
26426 offsets are relative (and non-negative), this reduces to checking that
26427 the partition ends before its parent.
26428 (grub_partition_map_probe): Discard out-of-range sub-partitions.
26429 (grub_partition_iterate): Likewise.
26430 * include/grub/partition.h (grub_partition_map): Slightly more detailed
26431 comments.
26432 * partmap/bsdlabel.c (bsdlabel_partition_map_iterate): Discard
26433 partitions that start before their parent, and add debug printfs.
26434
19563c25
CW
264352010-07-13 Colin Watson <cjwatson@ubuntu.com>
26436
26437 * Makefile.in (.SUFFIX): Spell correctly, as ...
26438 (.SUFFIXES): ... this. Fixes bug where `make foo' (where foo is a
26439 bare module name without `.mod', e.g. `test') tried to invoke a
26440 Modula-2 compiler.
26441
1a1f1e67
CW
264422010-07-13 Colin Watson <cjwatson@ubuntu.com>
26443
26444 * README: Point to the Info manual.
26445
811b0dca
JS
264462010-07-13 Jiro SEKIBA <jir@unicus.jp>
26447
26448 * fs/nilfs2.c: fix macro NILFS_2ND_SUPER_BLOCK to calculate
26449 2nd superblock position from partition size.
26450
e4f4eafc
CW
264512010-07-10 Colin Watson <cjwatson@ubuntu.com>
26452
26453 * Makefile.in (MAINTAINER_CLEANFILES): Remove
26454 unicode/UnicodeData.txt, unicode/BidiMirroring.txt, and
26455 unicode/ArabicShaping.txt again; these are inputs to autogen.sh, not
26456 outputs.
26457
4274c30f
VS
264582010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
26459
26460 Restructure SCSI .id handling.
26461 Reported and tested by: Aleš Nesrsta.
26462
26463 * disk/ata.c (grub_atapi_close): Removed. All users updated.
26464 (grub_atapi_dev): Changed .name to "ata". New field .id.
26465 * disk/usbms.c (grub_usbms_close): Removed. All users updated.
26466 (grub_usbms_dev): New field .id.
26467 * disk/scsi.c (grub_scsi_iterate): Generate name.
26468 (grub_scsi_open): Parse name.
26469 * include/grub/scsi.h (grub_make_scsi_id): New function.
26470 (grub_scsi_dev): Change iterate and open to number instead of naming
26471 busses. All users updated.
26472 (grub_scsi): Remove name. Add .bus.
26473
5bc24388
VS
264742010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
26475
26476 * commands/help.c (grub_cmd_help): Fix a typo.
26477
249975ba
VS
264782010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
26479
26480 * normal/term.c (put_glyphs_terminal): Fix state->num_lines counting.
26481 Reported and tested by: Colin Watson.
26482
3eaac1a1
VS
264832010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
26484
26485 * util/grub-mkrescue.in: Don't use tar GNU-ism since it's not necessary
26486 in this context.
26487
becce1b1
VS
264882010-07-07 Vladimir Serbinenko <phcoder@gmail.com>
26489
26490 * tests/util/grub-shell.in: Remove bashisms and declare as sh script.
26491
f7bf0918
CW
264922010-07-07 Colin Watson <cjwatson@ubuntu.com>
26493
26494 * term/gfxterm.c (grub_gfxterm_background_image_cmd): Fix
26495 indentation.
26496
0b0f9620
CW
264972010-07-06 Colin Watson <cjwatson@ubuntu.com>
26498
26499 * conf/common.rmk (grub_probe_SOURCES): Add disk/raid5_recover.c
26500 and disk/raid6_recover.c.
26501 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
26502 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Likewise.
26503
1e545469
CW
265042010-07-06 Colin Watson <cjwatson@ubuntu.com>
26505
26506 * term/gfxterm.c (repaint_schedulded): Rename to ...
26507 (repaint_scheduled): ... this. Update all callers.
26508 (repaint_was_schedulded): Rename to ...
26509 (repaint_was_scheduled): ... this. Update all callers.
26510
5357687a
CW
265112010-07-06 Colin Watson <cjwatson@ubuntu.com>
26512
26513 * util/deviceiter.c (grub_util_iterate_devices): Skip MD devices,
26514 which we expect to be handled by upper layers.
26515
29d7e783
BC
265162010-07-06 BVK Chaitanya <bvk.groups@gmail.com>
26517
26518 * bus/usb/usbhub.c: #include time.h header.
26519
37582066
CW
265202010-07-06 Colin Watson <cjwatson@ubuntu.com>
26521
26522 * fs/reiserfs.c (grub_reiserfs_iterate_dir): Zero out first byte of
26523 entry_name also for entries without stat blocks (e.g. ".."); fixes
26524 corruption of the first entry in a directory.
26525
c8c06953
CW
265262010-07-06 Colin Watson <cjwatson@ubuntu.com>
26527
26528 * util/grub.d/00_header.in: Process GRUB_THEME and GRUB_BACKGROUND
26529 after setting gfxterm as the active terminal. GRUB_BACKGROUND
26530 doesn't work otherwise.
26531
e75056f1
CW
265322010-07-05 Colin Watson <cjwatson@ubuntu.com>
26533
26534 * docs/grub.texi (Features): Update list of supported file systems.
26535 (GNU/Linux): Update for GRUB 2.
26536 (Serial terminal): Remove mention of --disable-serial, which was a
26537 GRUB Legacy configure option. Update instructions to use
26538 `terminal_input' and `terminal_output' rather than `terminal'.
26539 (Vendor power-on keys): Copy-edit. Add cross-references to `Simple
26540 configuration' and `Installing GRUB using grub-install'.
26541 (Menu entry editor): Update for GRUB 2.
26542 (terminfo): Add vt100-color, ieee1275, and dumb terminal types.
26543 Document new -a, -u, and -v options.
26544 (initrd): New section.
26545 (initrd16): New section.
26546 (linux): New section.
26547 (linux16): New section.
26548 (search): The `var' argument to `--set' is optional.
26549 (GRUB only offers a rescue shell): Go into a little more detail on
26550 drive ordering.
26551
5cf69151
CW
265522010-07-05 Colin Watson <cjwatson@ubuntu.com>
26553
26554 * Makefile.in: Set LINGUAS to empty if ENABLE_NLS is undefined.
26555
e3f90044
CW
265562010-07-05 Colin Watson <cjwatson@ubuntu.com>
26557
26558 * Makefile.in (MAINTAINER_CLEANFILES): Add unicode/UnicodeData.txt,
26559 unicode/BidiMirroring.txt, unicode/ArabicShaping.txt, and unidata.c.
26560
38d8f4f3
CW
265612010-07-05 Colin Watson <cjwatson@ubuntu.com>
26562
26563 * util/i386/pc/grub-setup.c (setup): Rename prefix to
26564 install_prefix, in line with install_dos_part and install_bsd_part.
26565 Add new prefix variable, which is copied to install_prefix after
26566 comparing core.img in memory with the one read from disk in the
26567 no-embedding case, and use that rather than overwriting
26568 install_prefix immediately when installing to a partition.
26569 Fixes Debian bug #586621; based on patches by Matt Kraai and M. Vefa
26570 Bicakci.
26571
57ebd41e
GS
265722010-07-04 Grégoire Sutre <gregoire.sutre@gmail.com>
26573
26574 * configure.ac: Avoid == in test command, it's not portable.
26575 * util/grub.d/30_os-prober.in: Likewise.
26576
cb7f64b2
CW
265772010-07-04 Colin Watson <cjwatson@ubuntu.com>
26578
26579 * kern/emu/getroot.c [__GNU__]: Include <sys/mman.h> for munmap.
26580
6b654bb0
GS
265812010-07-04 Grégoire Sutre <gregoire.sutre@gmail.com>
26582
26583 * util/i386/pc/grub-setup.c (setup): Do not embed when there are
26584 multiple (top-level) partmaps.
26585
72a2026d
VS
265862010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
26587
26588 * util/i386/efi/grub-install.in: Don't use empty grub_device.
fcda2a1f 26589 Reported by: Tino Keitel.
72a2026d 26590
df3eb88f
VS
265912010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
26592
26593 Bidi and diacritics support.
26594
26595 * Makefile.in (widthspec.bin): New target.
26596 (widthspec.h): Likewise.
26597 (TARGET_CFLAGS): Add -DHAVE_UNIFONT_WIDTHSPEC=1 if font was available.
26598 * autogen.sh: Generate unidata.c.
26599 * commands/cat.c (grub_cmd_cat): Don't use grub_putchar.
26600 * commands/ls.c (grub_ls_list_devices): Likewise.
26601 (grub_ls_list_files): Likewise.
26602 * commands/minicmd.c (grub_mini_cmd_cat): Likewise.
26603 (grub_mini_cmd_lsmod): Likewise.
26604 * commands/read.c: Likewise.
26605 * kern/corecmd.c (grub_core_cmd_ls): Likewise.
26606 * kern/rescue_reader.c (grub_rescue_read_line): Likewise.
26607 * lib/arg.c (grub_arg_show_help): Likewise.
26608 * lib/crypto.c (grub_password_get): Likewise.
26609 * normal/auth.c (grub_username_get): Likewise.
26610 * normal/misc.c (grub_normal_print_device_info): Likewise.
26611 * commands/help.c (grub_cmd_help): Use grub_unicode_aglomerate_comb.
26612 * conf/common.rmk (grub_mkfont_SOURCES): Add unidata.c.
26613 (gfxmenu_mod_SOURCES): Add gfxmenu/font.c.
26614 (normal/charset.c_DEPENDENCIES): New variable.
26615 (normal_mod_SOURCES): Add normal/charset.c and unidata.c.
26616 (pkglib_MODULES): Remove charset.mod.
26617 (charset_mod_SOURCES): Removed.
26618 (charset_mod_CFLAGS): Likewise.
26619 (charset_mod_LDFLAGS): Likewise.
26620 (pkglib_MODULES) [ieee1275]: Remove terminfo.mod.
26621 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Add term/terminfo.c
26622 and term/tparm.c.
26623 * conf/sparc64-ieee1275.rmk (kernel_img_SOURCES): Likewise.
26624 * conf/i386-ieee1275.rmk (kernel_img_SOURCES): Likewise.
26625 (kernel_img_HEADERS): Add terminfo.h.
26626 * font/font.c (ascii_glyph_lookup): Return NULL on failure.
26627 Fill ->font. Reverse ascii bitmaps.
26628 (grub_font_get_xheight): New function.
26629 * font/font.c (grub_font_get_string_width): Moved from here ...
26630 * gfxmenu/font.c (grub_font_get_string_width): ... here.
26631 * font/font.c (grub_font_draw_string): Moved from here ...
26632 * gfxmenu/font.c (grub_font_draw_string): ... here.
26633 * font/font.c (grub_font_dup_glyph): New function.
26634 (grub_font_blit_glyph): Likewise.
26635 (grub_font_blit_glyph_mirror): Likewise.
26636 (blit_comb): Likewise.
26637 (grub_font_construct_dry_run): Likewise.
26638 (grub_font_get_constructed_device_width): Likewise.
26639 (grub_font_construct_glyph): Likewise.
26640 * include/grub/charset.h (grub_ucs4_to_utf8): New proto.
26641 * include/grub/misc.h (grub_utf8_to_ucs4): Moved from here ...
26642 * include/grub/charset.h (grub_utf8_to_ucs4): ... here.
26643 * include/grub/font.h (GRUB_FONT_CODE_CHAR_MASK): New constant.
26644 (GRUB_FONT_CODE_RIGHT_JOINED): Likewise.
26645 (GRUB_FONT_CODE_LEFT_JOINED): Likewise.
26646 (grub_font_get_xheight): New proto.
26647 (grub_font_get_constructed_device_width): Likewise.
26648 (grub_font_construct_glyph): Likewise.
26649 * include/grub/font.h (grub_font_get_string_width): Moved from here ...
26650 * include/grub/gfxmenu_view.h (grub_font_get_string_width): ... here.
26651 * include/grub/font.h (grub_font_draw_string): Moved from here ...
26652 * include/grub/gfxmenu_view.h (grub_font_draw_string): ... here.
26653 * include/grub/i386/vga_common.h (grub_console_putchar): Moved from here..
26654 * include/grub/i386/pc/console.h (grub_console_putchar): ... here.
26655 * include/grub/i386/vga_common.h (grub_console_real_putchar): Removed.
26656 (grub_console_getcharwidth): Likewise.
26657 * include/grub/misc.h (grub_xputs): New proto.
26658 (grub_puts): Inlined.
26659 * include/grub/normal.h (grub_print_ucs4): Add margin specification.
26660 (grub_normal_get_line_counter): Removed.
26661 (grub_install_newline_hook): Likewise.
26662 (grub_normal_get_char_counter): New proto.
26663 (grub_normal_reset_more): Likewise.
26664 (grub_xputs_normal): Likewise.
26665 * include/grub/powerpc/ieee1275/console.h: Removed.
26666 * include/grub/sparc64/ieee1275/console.h: Likewise.
26667 * include/grub/term.h (GRUB_TERM_CODE_TYPE_MASK): New definition.
26668 (GRUB_TERM_CODE_TYPE_ASCII): Likewise.
26669 (GRUB_TERM_CODE_TYPE_CP437): Likewise.
26670 (GRUB_TERM_CODE_TYPE_UTF8_LOGICAL): Likewise.
26671 (GRUB_TERM_CODE_TYPE_UTF8_VISUAL): Likewise.
26672 (GRUB_TERM_CODE_TYPE_VISUAL_GLYPHS): Likewise.
26673 (grub_term_input): Pass reference to self. All users updated.
26674 (grub_term_output): Pass grub_unicode_glyph to putchar and getcharwidth.
26675 Pass reference to self. New fields normal_color, highlight_color and
26676 data. All users updated.
26677 (grub_putchar): Removed.
26678 (grub_putcode): Remove EXPORT_FUNC since it's not in kernel anymore.
26679 (grub_unicode_estimate_width): New function.
26680 (grub_term_getcharwidth): Add defaults.
26681 (GRUB_TERM_DEFAULT_NORMAL_COLOR): New definition.
26682 (GRUB_TERM_DEFAULT_HIGHLIGHT_COLOR): Likewise.
26683 (GRUB_TERM_DEFAULT_STANDARD_COLOR): Likewise.
26684 (grub_cls): Remove EXPORT_FUNC.
26685 (grub_setcolorstate): Inline.
26686 (grub_newline_hook): Removed.
26687 * include/grub/terminfo.h: Rewritten. All users updated.
26688 * include/grub/unicode.h: New file.
26689 * include/grub/video.h (grub_video_signed_rect): New type.
26690 * kern/emu/console.c (grub_console_highlight_color): Removed.
26691 (grub_console_normal_color): Likewise.
26692 (grub_console_standard_color): Made static.
26693 (grub_ncurses_putchar): Remove mapping.
26694 (grub_ncurses_getcharwidth): Removed.
26695 (grub_ncurses_term_output): Declare as GRUB_TERM_CODE_TYPE_ASCII.
26696 (grub_ncurses_setcolor): Removed.
26697 (grub_ncurses_getcolor): Likewise.
26698 * kern/i386/pc/startup.S (grub_console_real_putchar): Renamed to ...
26699 (grub_console_putchar): ... this.
26700 (grub_console_putchar): Handle argument difference.
26701 * kern/ieee1275/init.c (grub_machine_init): Split console_init into
26702 console_init_early and console_init_lately.
26703 * kern/sparc64/ieee1275/init.c (grub_machine_init): Likewise.
26704 * kern/misc.c (grub_puts): Removed.
26705 (grub_vprintf): Store UTF-8 string instead of outputting it directly.
26706 (grub_vsnprintf_real): Remove str = NULL support.
26707 * kern/misc.c (grub_utf8_to_ucs4): Move from here ...
26708 * normal/charset.c (grub_utf8_to_ucs4): ... here.
26709 * kern/term.c (grub_putcode): Renamed to ...
26710 (grub_putcode_dumb): ... this. Pass grub_unicode_glyph instead of code.
26711 (grub_putchar): Removed.
26712 (grub_xputs_dumb): New function.
26713 (grub_xputs): New variable.
26714 * lib/charset.c: Move from here ...
26715 * normal/charset.c: ... to here.
26716 (grub_ucs4_to_utf8): New function.
26717 (grub_ucs4_to_utf8_alloc): Use grub_ucs4_to_utf8.
26718 (join_types): New variable.
26719 (unpack_join): New function.
26720 (bidi_types): New variable.
26721 (unpack_bidi): New function.
26722 (get_bidi_type): Likewise.
26723 (get_join_type): Likewise.
26724 (is_mirrored): Likewise.
26725 (grub_unicode_get_comb_type): Likewise.
26726 (grub_unicode_estimate_width) [HAVE_UNIFONT_WIDTHSPEC]: Likewise.
26727 (is_type_after): Likewise.
26728 (grub_unicode_aglomerate_comb): Likewise.
26729 (bidi_line_wrap): Likewise.
26730 (grub_bidi_line_logical_to_visual): Likewise.
26731 (grub_bidi_logical_to_visual): Likewise.
26732 (grub_unicode_mirror_code): Likewise.
26733 (grub_unicode_shape_code): Likewise.
26734 * normal/cmdline.c (grub_cmdline_get): Reset more counter.
26735 Don't use grub_putchar.
26736 * normal/main.c (grub_normal_init_page): Use grub_putcode.
26737 (grub_normal_reader_init): Likewise.
26738 (grub_xputs_saved): New variable.
26739 (GRUB_MOD_INIT): Set grub_xputs.
26740 (GRUB_MOD_FINI): Restore grub_xputs.
26741 * normal/menu.c (grub_wait_after_message): Don't use grub_putchar.
26742 (menu_init): Avoid printing gfxmenu error.
26743 (show_menu): Use grub_normal_get_char_counter.
26744 * normal/menu_entry.c (update_screen): Fix out-of-array.
26745 (complete): Avoid NULL dereferencing.
26746 * grub_menu_entry_run (grub_menu_entry_run): Don't use putchar.
26747 * normal/menu_text.c (print_spaces): Removed.
26748 (grub_print_ucs4): Likewise.
26749 (grub_print_message_indented): Use grub_print_ucs4.
26750 (print_message): Use grub_putcode.
26751 (print_entry): Hanlde diacritics.
26752 * normal/term.c (term_state): New type.
26753 (grub_more_lines): Removed.
26754 (term_states): New variable.
26755 (grub_normal_line_counter): Renamed to ..
26756 (grub_normal_char_counter): ...this. All users updated.
26757 (grub_normal_get_line_counter): Renamed to ...
26758 (grub_normal_get_char_counter): ... this.
26759 (grub_normal_reset_more): New function.
26760 (process_newline): Removed.
26761 (print_more): New function.
26762 (grub_install_newline_hook): Removed.
26763 (map_code): New function.
26764 (grub_puts_terminal): Use grub_print_ucs4.
26765 (putglyph): New function.
26766 (putcode_real): Likewise.
26767 (grub_putcode): Use putcode_real.
26768 (get_maxwidth): New function.
26769 (get_startwidth): Likewise.
26770 (print_ucs4_terminal): Likewise.
26771 (find_term_state): Likewise.
26772 (put_glyphs_terminal): Likewise.
26773 (print_backlog): Likewise.
26774 (print_ucs4_real): Likewise.
26775 (grub_print_ucs4): Likewise.
26776 (grub_xputs_normal): Likewise.
26777 * term/efi/console.c (grub_console_putchar): Output diacritics.
26778 (grub_console_getcharwidth): Removed.
26779 (grub_console_term_output): Declare as GRUB_TERM_CODE_TYPE_UCS4_VISUAL.
26780 * term/gfxterm.c (clear_char): Free chars.
26781 (scroll_up): Avoid leaking memory.
26782 (grub_gfxterm_putchar): Support diacritics.
26783 (grub_video_term): Declare as GRUB_TERM_CODE_TYPE_UCS4_VISUAL.
26784 * term/i386/pc/console.c (grub_console_term_output): Declare as
26785 GRUB_TERM_CODE_TYPE_VGA.
26786 * term/i386/pc/vga.c (grub_vga_term): Declare as
26787 GRUB_TERM_CODE_TYPE_VISUAL_GLYPHS.
26788 * term/i386/pc/vga_text.c (grub_vga_text_term): Declare as
26789 GRUB_TERM_CODE_TYPE_VGA.
26790 * term/i386/vga_common.c (map_char): Removed.
26791 (grub_console_putchar): Likewise.
26792 (grub_console_getcharwidth): Likewise.
26793 * term/ieee1275/ofconsole.c: Simplify using terminfo.
26794 (colors): Reordered to match terminfo.
26795 (grub_ofconsole_normal_color): Removed.
26796 (grub_ofconsole_writeesc): Likewise.
26797 (grub_ofconsole_highlight_color): Likewise.
26798 (grub_ofconsole_getcharwidth): Likewise.
26799 (grub_ofconsole_setcolorstate): Likewise.
26800 (grub_ofconsole_setcolor): Likewise.
26801 (grub_ofconsole_getcolor): Likewise.
26802 (grub_ofconsole_readkey): Renamed to ...
26803 (readkey): ... this. Remove escape sequence handling. Return -1 on no
26804 key.
26805 (grub_ofconsole_checkkey): Removed.
26806 (grub_ofconsole_getkey): Likewise.
26807 (grub_ofconsole_getxy): Likewise.
26808 (grub_ofconsole_gotoxy): Likewise.
26809 (grub_ofconsole_cls): Likewise.
26810 (grub_ofconsole_refresh): Likewise.
26811 (grub_ofconsole_terminfo_input): New struct.
26812 (grub_ofconsole_terminfo_output): Likewise.
26813 (grub_ofconsole_term_input): Use terminfo.
26814 (grub_ofconsole_term_output): Likewise.
26815 (grub_console_init): Split into ...
26816 (grub_console_init_early): ...this and ...
26817 (grub_console_init_lately): ...this. Use terminfo.
26818 (grub_ofconsole_putchar): Renamed to ...
26819 (put): ... this. Remove mapping.
26820 (grub_ofconsole_term_output): Declare as GRUB_TERM_CODE_TYPE_ASCII.
26821 * term/serial.c: Simplify using terminfo.
26822 (xpos): Removed.
26823 (ypos): Likewise.
26824 (keep_track): Likewise.
26825 (registered): Likewise.
26826 (input_buf): Likewise.
26827 (npending): Likewise.
26828 (serial_translate_key_sequence): Likewise.
26829 (fill_input_buf): Likewise.
26830 (grub_serial_checkkey): Likewise.
26831 (grub_serial_getkey): Likewise.
26832 (grub_serial_getxy): Likewise.
26833 (grub_serial_gotoxy): Likewise.
26834 (grub_serial_putchar): Likewise.
26835 (grub_serial_cls): Likewise.
26836 (grub_serial_setcolorstate): Likewise.
26837 (grub_serial_setcursor): Likewise.
26838 (serial_hw_init): Use serial_hw_fetch.
26839 (grub_serial_terminfo_input): New variable.
26840 (grub_serial_terminfo_output): Likewise.
26841 (grub_serial_term_input): Use terminfo.
26842 (grub_serial_term_output): Likewise.
26843 * term/terminfo.c (putstr): Use put.
26844 (grub_terminfo_all_free): New function
26845 (grub_terminfo_set_current): New types vt100-color, ieee1275 and dumb.
26846 (grub_terminfo_output_register): New function.
26847 (grub_terminfo_output_unregister): Likewise.
26848 (grub_terminfo_getxy): Likewise.
26849 (grub_terminfo_readkey): Likewise.
26850 (grub_terminfo_checkkey): Likewise.
26851 (grub_terminfo_getkey): Likewise.
26852 (grub_terminfo_input_init): Likewise.
26853 (print_terminfo): Likewise.
26854 (grub_cmd_terminfo): Handle encoding.
26855 (grub_terminfo_gotoxy): Track position.
26856 (grub_terminfo_cls): Likewise.
26857 (grub_terminfo_putchar): Likewise.
26858 (grub_terminfo_setcolorstate): Handle colors
26859 (grub_terminfo_cursor_on): This ...
26860 (grub_terminfo_cursor_off): ... and this merged into ...
26861 (grub_terminfo_setcursor): ... this.
26862 * term/tparm.c (grub_terminfo_tparm): Avoid NULL dereferencing.
26863 * unicode/ArabicShaping.txt: New file (imported from Unicode).
26864 * unicode/BidiMirroring.txt: Likewise.
26865 * unicode/UnicodeData.txt: Likewise.
26866 * unicode/COPYING: Likewise.
26867 * util/grub-editenv.c (grub_putchar): Removed.
26868 (grub_xputs_real): New function.
26869 (grub_xputs): New variable.
26870 * util/grub-fstest.c (grub_putchar): Removed.
26871 (grub_xputs_real): New function.
26872 (grub_xputs): New variable.
26873 * util/grub-mkdevicemap.c (grub_putchar): Removed.
26874 (grub_xputs_real): New function.
26875 (grub_xputs): New variable.
26876 * util/grub-probe.c (grub_putchar): Removed.
26877 (grub_xputs_real): New function.
26878 (grub_xputs): New variable.
26879 * util/grub-script-check.c (grub_putchar): Removed.
26880 (grub_xputs_real): New function.
26881 (grub_xputs): New variable.
26882 * util/i386/pc/grub-setup.c (grub_putchar): Removed.
26883 (grub_xputs_real): New function.
26884 (grub_xputs): New variable.
26885 * util/import_unicode.py: New file.
26886 * util/grub-mkfont.c (ft_errmsgs): New array.
26887 (grub_glyph_info): Make bitmap a pointer.
26888 (file_formats): New type WIDTH_SPEC.
26889 (grub_font_info): New members glyphs_unsorted, glyphs_sorted, num_glyphs.
26890 (options): Add width-spec.
26891 (help): Likewise.
26892 (add_char): Renamed to ...
26893 (add_glyph): ... this.
26894 (add_glyph): Use index. Show freetype errors. Cut blank space at borders.
26895 (glyph_replace): New type.
26896 (subst_rightjoin), (subst_leftjoin), (subst_medijoin): New variables.
26897 (add_char): New function.
26898 (add_subst): Likewise.
26899 (process_cursive): Likewise.
26900 (add_font): Handle GSUB.
26901 (write_font_width_spec): New function.
26902 (main): Sort glyphs.
26903 * commands/minicmd.c (grub_mini_cmd_clear): Moved from here ...
26904 * normal/main.c (grub_mini_cmd_clear): ..here. All users updated.
26905 * kern/term.c (grub_cls): Moved from here...
26906 * normal/term.c (grub_cls): ... here.
26907
50f0bcda
CW
269082010-07-02 Colin Watson <cjwatson@ubuntu.com>
26909
26910 * include/grub/types.h: Define the C99-style PRIxGRUB_SIZE macro,
26911 suitable for using within the format argument of printf when
26912 converting grub_size_t.
26913 * disk/usbms.c (grub_usbms_transfer): Use PRIxGRUB_SIZE rather than
26914 "x" to convert grub_size_t arguments.
26915
40372103
VS
269162010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
26917
26918 * gfxmenu/gui_list.c (draw_menu): Use viewport to simplify code and fix
26919 too long captions.
26920 (list_get_minimal_size): Take selection box into account.
26921
942a10c7
VS
269222010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
26923
26924 * font/font.c (grub_font_get_glyph_with_fallback): Avoid dereferencing
26925 NULL font.
26926
2bdb2892
CW
269272010-07-02 Colin Watson <cjwatson@ubuntu.com>
26928
26929 * util/deviceiter.c (grub_util_iterate_devices): Skip device-mapper
26930 devices when iterating over /dev/disk/by-id; they will be handled
26931 later if appropriate, which they aren't always (e.g. LVM).
26932
e03ed6c1
CW
269332010-07-02 Colin Watson <cjwatson@ubuntu.com>
26934
26935 * include/grub/misc.h (grub_reboot): Declare as noreturn.
26936 * kern/efi/efi.c (grub_reboot): Don't return, even if reset_system
26937 fails.
26938 (grub_halt): Likewise.
26939 * kern/ieee1275/openfw.c (grub_reboot): Don't return, even if
26940 reset-all fails.
26941 (grub_halt): Don't return, even if all of shut-down, power-off, and
26942 poweroff fail.
26943
47695765
CW
269442010-07-02 Colin Watson <cjwatson@ubuntu.com>
26945
26946 * kern/efi/init.c (grub_efi_init): set_watchdog_timer takes four
26947 arguments, not three.
26948
507736c8
CW
269492010-07-02 Colin Watson <cjwatson@ubuntu.com>
26950
26951 * util/grub-mkconfig_lib.in (uses_abstraction): New function.
26952 * util/grub.d/10_linux.in: Use it to check for LVM, so that
26953 LVM-on-RAID is handled correctly.
26954
e3c8cd37
CW
269552010-07-02 Colin Watson <cjwatson@ubuntu.com>
26956
26957 * docs/grub.texi (Changes from GRUB Legacy): New section.
26958 (Future): Fix typo.
26959
8d4a2fec
CW
269602010-07-02 Colin Watson <cjwatson@ubuntu.com>
26961
26962 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Sometimes
26963 grub.d/README accidentally ends up executable for one reason or
26964 another. Ignore it.
26965
1c4827be
VS
269662010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
26967
26968 * partmap/gpt.c (MAX_SECTOR_LOG): New definition.
26969 (gpt_partition_map_iterate): Support non-512B sectors.
26970
d9a0c941
VS
269712010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
26972
26973 * kern/efi/init.c (grub_efi_init): Disable watchdog.
26974 Tested by: Seth Goldberg.
26975
48f27e87
VS
269762010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
26977
26978 * loader/multiboot.c (grub_multiboot_boot) [GRUB_USE_MULTIBOOT2]:
26979 Properly align mbi.
26980 Reported by: Seth Goldberg.
26981
b0c4f956
VS
269822010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
26983
26984 * util/grub-mkrescue.in: Avoid module duplication.
26985
105a2e8c
SF
269862010-07-01 Sean Finney <seanius@seanius.net>
26987
26988 * util/grub.d/10_linux.in: Don't use UUID for LVM root.
26989
5944958c
SF
269902010-07-01 Sean Finney <seanius@seanius.net>
26991
26992 * disk/lvm.c (grub_lvm_scan_device): Skip snapshots.
26993
269942010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
26995
26996 * disk/lvm.c (grub_lvm_checkvalue): New function.
26997 (grub_lvm_check_flag): Likewise.
26998
b79889ba
RM
269992010-07-01 Robert Millan <rmh@gnu.org>
27000
27001 * kern/emu/hostdisk.c (convert_system_partition_to_system_disk):
27002 Support 'p' as partition separator on kernel of FreeBSD (used
27003 with GPT labels).
27004 (grub_util_biosdisk_get_grub_dev): Likewise.
27005
ec1d04f1
VS
270062010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
27007
27008 Yeeloong firmware port.
27009
27010 * boot/mips/yeeloong/fwstart.S: New file.
27011 * bus/cs5536.c (gpiodump): New const.
27012 (set_io_space): New function.
27013 (set_iod): Likewise.
27014 (set_p2d): Likewise.
27015 (grub_cs5536_init_geode): Likewise.
27016 * commands/mips/yeeloong/lsspd.c: New file.
27017 * conf/mips-qemu-mips.rmk (pkglib_MODULES): Add serial.mod.
27018 (serial_mod_SOURCES): New variable.
27019 (serial_mod_CFLAGS): Likewise.
27020 (serial_mod_LDFLAGS): Likewise.
27021 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Add term/serial.c,
27022 term/terminfo.c and term/tparm.c.
27023 (pkglib_IMAGES): Add fwstart.img.
27024 (fwstart_img_SOURCES): New variable.
27025 (fwstart_img_CFLAGS): Likewise.
27026 (fwstart_img_ASFLAGS): Likewise.
27027 (fwstart_img_LDFLAGS): Likewise.
27028 (fwstart_img_FORMAT): Likewise.
27029 (pkglib_MODULES): Add lsspd.mod.
27030 (lsspd_mod_SOURCES): New variable.
27031 (lsspd_mod_CFLAGS): Likewise.
27032 (lsspd_mod_LDFLAGS): Likewise.
27033 (pkglib_MODULES): Add halt.mod.
27034 (halt_mod_SOURCES): New variable.
27035 (halt_mod_CFLAGS): Likewise.
27036 (halt_mod_LDFLAGS): Likewise.
27037 * conf/mips.rmk (pkglib_MODULES): Remove serial.mod.
27038 (serial_mod_SOURCES): Removed.
27039 (serial_mod_CFLAGS): Likewise.
27040 (serial_mod_LDFLAGS): Likewise.
27041 * disk/ata.c (check_device): New function.
27042 (grub_ata_device_initialize): Use check_device.
27043 (grub_ata_iterate): Recheck devices.
27044 (grub_ata_open): Likewise.
27045 (grub_atapi_iterate): Likewise.
27046 (grub_atapi_open): Likewise.
27047 * include/grub/ata.h (GRUB_ATA_CH0_PORT1): New macro.
27048 (GRUB_ATA_CH1_PORT1): Likewise.
27049 (GRUB_ATA_CH0_PORT2): Likewise.
27050 (GRUB_ATA_CH1_PORT2): Likewise.
27051 * include/grub/mips/loongson.h: New file.
27052 * include/grub/mips/yeeloong/ec.h: Likewise.
27053 * include/grub/mips/yeeloong/serial.h (GRUB_MACHINE_SERIAL_PORT): New definition.
27054 (GRUB_MACHINE_SERIAL_DIVISOR_115200): Likewise.
27055 (GRUB_MACHINE_SERIAL_PORTS) [ASM_FILE]: Remove.
27056 * include/grub/misc.h (grub_halt): Declare as noreturn.
27057 * include/grub/serial.h (UART_ENABLE_FIFO): Renamed to ...
27058 (UART_ENABLE_FIFO_TRIGGER14): ... this. All users updated.
27059 (UART_ENABLE_FIFO_TRIGGER1): New definition.
27060 (UART_ENABLE_DTRRTS): Likewise.
27061 (UART_ENABLE_MODEM): Removed.
27062 (UART_ENABLE_OUT2): New const.
27063 * include/grub/term.h (grub_term_register_input_active): New function.
27064 (grub_term_register_output_active): Likewise.
27065 * kern/mips/startup.S [GRUB_MACHINE_MIPS_YEELOONG]: Handle 0xffffffff
27066 argument.
27067 * kern/mips/yeeloong/init.c (grub_get_rtc): Macroify.
27068 (init_pci): New function.
27069 (grub_machine_init): Execute platform init when firmware. Init serial.
27070 (grub_halt): Implement.
27071 (grub_exit): Likewise.
27072 (grub_reboot): Likewise.
27073 * term/serial.c (serial_hw_init): Update macros.
27074 [GRUB_MACHINE_MIPS_YEELOONG]: Init on startup.
27075 * util/grub-mkimage.c (image_target_desc): New id IMAGE_YEELOONG_FLASH.
27076 (image_targets): New target mipsel-yeeloong-flash.
27077 (generate_image): Support IMAGE_YEELOONG_FLASH.
27078 * video/sm712.c (GRUB_SM712_TOTAL_MEMORY_SPACE): New definition.
27079 (grub_video_sm712_setup): Init card.
27080 (grub_video_sm712_set_palette): Removed.
27081 * video/sm712_init.c: New file.
27082
ff4a70d2
CW
270832010-06-30 Colin Watson <cjwatson@ubuntu.com>
27084
27085 * Makefile.in (install-local): Temporarily prepend $(builddir) to
27086 PATH when running help2man and then run it on the unadorned
27087 executable names, rather than passing $(builddir)/* paths to
27088 help2man. This avoids the build directory ending up in generated
27089 manual pages.
27090
1246efeb
CW
270912010-06-29 Colin Watson <cjwatson@ubuntu.com>
27092
27093 * util/grub-mkconfig.in: Use 'set -e' rather than '#! /bin/sh -e',
27094 to avoid accidents when debugging with 'sh -x'.
27095 * util/grub-mkrescue.in: Likewise.
27096 * util/grub.d/00_header.in: Likewise.
27097 * util/grub.d/10_hurd.in: Likewise.
27098 * util/grub.d/10_kfreebsd.in: Likewise.
27099 * util/grub.d/10_linux.in: Likewise.
27100 * util/grub.d/10_netbsd.in: Likewise.
27101 * util/grub.d/10_windows.in: Likewise.
27102 * util/grub.d/20_linux_xen.in: Likewise.
27103 * util/grub.d/30_os-prober.in: Likewise.
27104 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
27105
1ba9b889
CW
271062010-06-29 Colin Watson <cjwatson@ubuntu.com>
27107
27108 * commands/cat.c (grub_cmd_cat): Fix buffer overrun if '\r' is the
27109 last character in the buffer.
27110 Reported by: Vladimir Serbinenko.
27111
dccaf99d
RM
271122010-06-29 Robert Millan <rmh@gnu.org>
27113
27114 * docs/grub.texi (Simple configuration): Document ${GRUB_BADRAM}.
27115 (Command-line and menu entry commands): Document `badram' command.
27116
d500ed12
RM
271172010-06-28 Robert Millan <rmh@gnu.org>
27118
27119 * util/grub-mkconfig.in: Export `GRUB_BADRAM' variable.
27120 * util/grub.d/00_header.in: When `GRUB_BADRAM' is set, issue badram
27121 command using ${GRUB_BADRAM} as parameter.
27122
20bc84a6
CW
271232010-06-28 Colin Watson <cjwatson@ubuntu.com>
27124
27125 * docs/grub.texi (Device map): New section.
27126 (Themes): New section (stub).
27127 * Makefile.in (docs/grub.info): The info documentation now builds
27128 without errors. Make sure it stays that way.
27129
4045dee1
VS
271302010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
27131
27132 Use normal parser for menu entries.
27133 Reported by: Thomas Frauendorfer
27134
27135 * include/grub/parser.h (grub_parser_execute): Don't export.
27136 * normal/menu.c (grub_menu_execute_entry_real): New function.
27137 (grub_menu_execute_entry): Use grub_menu_execute_entry_real.
27138
bca58c7b
CW
271392010-06-28 Colin Watson <cjwatson@ubuntu.com>
27140
27141 * docs/grub.texi (Embedded configuration): New section (replacing
27142 old "Preset Menu" stub).
27143 (Images): New section.
27144 (configfile): Note that any menu entries defined in `file' are shown
27145 immediately.
27146
dec53e63
JT
271472010-06-28 Josh Triplett <josh@joshtriplett.org>
27148
27149 * mmap/i386/pc/mmap_helper.S: Set CF on return.
27150
c06e40f7
CW
271512010-06-28 Colin Watson <cjwatson@ubuntu.com>
27152
27153 * util/grub-install.in: Add --debug-image= option.
27154
cb88052b
CW
271552010-06-28 Colin Watson <cjwatson@ubuntu.com>
27156
27157 Change grub-mkdevicemap to emit /dev/disk/by-id/ names where
27158 possible on Linux.
27159
27160 * util/deviceiter.c (check_device): Rename to ...
27161 (check_device_readable_unique): ... this. Update all callers.
27162 Maintain and check a list of which devices (by canonicalized name)
27163 have already been seen.
27164 (clear_seen_devices): New function.
27165 (compare_file_names) [__linux__]: New function.
27166 (grub_util_iterate_devices): Clear the list of seen devices on exit
27167 and (just in case) on entry.
27168 (grub_util_iterate_devices) [__linux__]: Iterate over non-partition
27169 devices in /dev/disk/by-id/, in sorted order. Remove DM-RAID
27170 seen-devices list, superseded by general code in check_device.
27171
bbe34652
CW
271722010-06-28 Colin Watson <cjwatson@ubuntu.com>
27173
27174 * commands/cat.c (options): New variable.
27175 (grub_cmd_cat): Parse options. If the --dos option is given, print
27176 DOS-style "\r\n" line endings as simple newlines (Debian bug
27177 #586358).
27178 (GRUB_MOD_INIT): Use extcmd.
27179 (GRUB_MOD_FINI): Likewise.
27180 * docs/grub.texi (cat): Document --dos.
27181
412e09f3
VS
271822010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
27183
27184 XEN with Linux grub-mkconfig support.
27185
27186 * conf/common.rmk (grub-mkconfig_SCRIPTS) [linux]: Add 20_linux_xen.
27187 * util/grub-mkconfig.in: Export GRUB_CMDLINE_XEN and
27188 GRUB_CMDLINE_XEN_DEFAULT.
27189 * util/grub.d/20_linux_xen.in: New file.
27190
53f3ef38 271912010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
994b0c27
VS
27192
27193 Initialise VGA video on qemu ourselves.
27194
27195 * boot/i386/qemu/boot.S: Don't call 0xc000.
27196 * conf/i386-qemu.rmk (kern/i386/qemu/init.c_DEPENDENCIES): New variable.
27197 (kernel_img_SOURCES): Add kern/i386/qemu/init.c and bus/pci.c.
27198 (kernel_img_HEADERS): Add pci.h.
27199 * conf/i386.rmk (pkglib_MODULES) [qemu]: Remove pci.mod.
27200 * configure.ac: Force unifont on qemu and yeeloong.
27201 * include/grub/i386/qemu/kernel.h (grub_qemu_init_cirrus): New proto.
27202 (grub_vga_palette_write): Use correct register.
27203 * kern/i386/coreboot/init.c (grub_machine_init) [GRUB_MACHINE_QEMU]:
27204 Call grub_qemu_init_cirrus.
27205 * kern/i386/qemu/init.c: New file.
27206 * term/i386/pc/vga_text.c (inc_y): Never read outside the screen.
27207
27208 * commands/videotest.c (grub_cmd_videotest): Handle double buffering.
27209
c75be4fb
PR
272102010-06-26 Pavel Roskin <proski@gnu.org>
27211
27212 * util/grub.d/10_linux.in: Add support for initrd images on Fedora
27213 13.
27214
d8034603
CW
272152010-06-26 Colin Watson <cjwatson@ubuntu.com>
27216
27217 * docs/grub.texi (Simple configuration): Explain that
27218 GRUB_DISABLE_LINUX_RECOVERY and GRUB_DISABLE_NETBSD_RECOVERY must be
27219 set to `true' to disable their respective recovery entries, not
27220 merely set.
27221
3fa06487
CW
272222010-06-26 Colin Watson <cjwatson@ubuntu.com>
27223
27224 Make the `source' command slightly faster.
27225
27226 * normal/main.c (grub_normal_execute): Don't re-read list files when
27227 nested.
27228
e9b29642
CW
272292010-06-23 Colin Watson <cjwatson@ubuntu.com>
27230
27231 * loader/i386/multiboot_mbi.c (retrieve_video_parameters): Set red
27232 field position and mask size to red fields from mode_info, not
27233 green.
27234 * loader/multiboot_mbi2.c (retrieve_video_parameters): Likewise.
27235 Remove redundant tag->common.framebuffer_type assignment.
27236 Reported by: Seth Goldberg.
27237
e726542f
CW
272382010-06-23 Colin Watson <cjwatson@ubuntu.com>
27239
27240 Sync up other versions of the Linux loader with Robert Millan's
27241 change of 2010-01-09, "Make loader output a bit more user-friendly".
27242
27243 * loader/i386/efi/linux.c (grub_linux_boot): Move debug info to
27244 grub_dprintf().
27245 (grub_cmd_linux): Likewise.
27246 (grub_cmd_initrd): Likewise.
27247 * loader/i386/ieee1275/linux.c (grub_cmd_linux): Likewise.
27248 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
27249
d6e98a17
CW
272502010-06-21 Colin Watson <cjwatson@ubuntu.com>
27251
27252 * kern/efi/mm.c (grub_efi_mm_init): Handle systems with memory maps
27253 larger than MEMORY_MAP_SIZE.
27254
14d3f08e
BC
272552010-06-21 BVK Chaitanya <bvk.groups@gmail.com>
27256
27257 Fix parallel build.
27258
27259 * conf/common.rmk: Add grub_script.tab.h as a grub-script-check
27260 dependency.
27261 * script/parser.y: #include grub_script.tab.h header.
27262
4f9613a3
VS
272632010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
27264
27265 Support >3GiB and <16MiB RAM in i386-qemu.
27266
27267 * kern/i386/qemu/mmap.c (QEMU_CMOS_MEMSIZE2_HIGH): New const.
27268 (QEMU_CMOS_MEMSIZE2_LOW): Likewise.
27269 (grub_lower_mem): Removed.
27270 (grub_upper_mem): Likewise.
27271 (mem_size): Made static.
27272 (above_4g): New variable.
27273 (grub_machine_mmap_init): Detect small mem_size and above_4g.
27274 (grub_machine_mmap_iterate): Order in ascending order and add above_4g
27275 support.
27276
05e51879
VS
272772010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
27278
27279 Cirrus 5446 and Bochs video cards support.
27280
27281 * conf/i386.rmk (pkglib_MODULES): Add video_cirrus.mod and
27282 video_bochs.mod
27283 (video_cirrus_mod_SOURCES): New variable.
27284 (video_cirrus_mod_CFLAGS): Likewise.
27285 (video_cirrus_mod_LDFLAGS): Likewise.
27286 (video_bochs_mod_SOURCES): Likewise.
27287 (video_bochs_mod_CFLAGS): Likewise.
27288 (video_bochs_mod_LDFLAGS): Likewise.
27289 * include/grub/vga.h: New file.
27290 * include/grub/video_fb.h (grub_video_fb_doublebuf_blit_init): Removed.
27291 (grub_video_fb_set_page_t): New type.
27292 (grub_video_fb_setup): New prototype.
27293 (grub_video_fb_swap_buffers): Likewise.
27294 (grub_video_fb_get_info_and_fini): Likewise.
27295 * term/i386/pc/vga_text.c (CRTC_ADDR_PORT): Moved to include/grub/vga.h.
27296 (CRTC_DATA_PORT): Likewise.
27297 (CRTC_CURSOR): Likewise.
27298 (CRTC_CURSOR_ADDR_HIGH): Likewise.
27299 (CRTC_CURSOR_ADDR_LOW): Likewise.
27300 (CRTC_CURSOR_DISABLE): Likewise.
27301 (update_cursor): Use grub_vga_cr_write.
27302 (grub_vga_text_setcursor): Likewise.
27303 * video/bochs.c: New file.
27304 * video/fb/video_fb.c (render_target): Moved into framebuffer variable.
27305 (palette): Likewise.
27306 (palette_size): Likewise.
27307 (framebuffer): New variable.
27308 (grub_video_fb_init): Use 'framebuffer'.
27309 (grub_video_fb_fini): Likewise.
27310 (grub_video_fb_get_info): Likewise.
27311 (grub_video_fb_get_palette): Likewise.
27312 (grub_video_fb_set_palette): Likewise.
27313 (grub_video_fb_set_viewport): Likewise.
27314 (grub_video_fb_get_viewport): Likewise.
27315 (grub_video_fb_map_color): Likewise.
27316 (grub_video_fb_map_rgb): Likewise.
27317 (grub_video_fb_map_rgba): Likewise.
27318 (grub_video_fb_unmap_color): Likewise.
27319 (grub_video_fb_unmap_color_int): Likewise.
27320 (grub_video_fb_fill_rect): Likewise.
27321 (grub_video_fb_blit_bitmap): Likewise.
27322 (grub_video_fb_blit_render_target): Likewise.
27323 (grub_video_fb_scroll): Likewise.
27324 (grub_video_fb_create_render_target): Likewise.
27325 (grub_video_fb_doublebuf_blit_init): Likewise.
27326 (grub_video_fb_set_active_render_target): Handle doublebuffering.
27327 (doublebuf_pageflipping_update_screen): New function.
27328 (doublebuf_pageflipping_init): Likewise.
27329 (grub_video_fb_setup): Likewise.
27330 (grub_video_fb_swap_buffers): Likewise.
27331 (grub_video_fb_get_info_and_fini): Likewise.
27332 * video/i386/pc/vbe.c (framebuffer): Remove all doublebuffering fields.
27333 All users updated.
27334 (doublebuf_pageflipping_commit): Restructured into ...
27335 (doublebuf_pageflipping_set_page): ... this.
27336 (doublebuf_pageflipping_update_screen): Removed.
27337 (doublebuf_pageflipping_init): Likewise.
27338 (double_buffering_init): Likewise.
27339 (grub_video_vbe_setup): Use grub_video_fb_setup.
27340 (grub_video_vbe_swap_buffers): Removed.
27341 (grub_video_vbe_set_active_render_target): Likewise.
27342 (grub_video_vbe_get_active_render_target): Likewise.
27343 (grub_video_vbe_get_info_and_fini): Use grub_video_fb_get_info_and_fini.
27344 (grub_video_vbe_adapter): Use grub_video_fb_swap_buffers,
27345 grub_video_fb_set_active_render_target and
27346 grub_video_fb_get_active_render_target.
27347 * video/i386/pc/vga.c (SEQUENCER_ADDR_PORT): Move to include/grub/vga.h.
27348 (SEQUENCER_DATA_PORT): Likewise.
27349 (MAP_MASK_REGISTER): Likewise.
27350 (CRTC_ADDR_PORT): Likewise.
27351 (CRTC_DATA_PORT): Likewise.
27352 (START_ADDR_HIGH_REGISTER): Likewise.
27353 (START_ADDR_LOW_REGISTER): Likewise.
27354 (GRAPHICS_ADDR_PORT): Likewise.
27355 (GRAPHICS_DATA_PORT): Likewise.
27356 (READ_MAP_REGISTER): Likewise.
27357 (INPUT_STATUS1_REGISTER): Likewise.
27358 (INPUT_STATUS1_VERTR_BIT): Likewise.
27359 (get_map_mask): Use grub_vga_sr_read.
27360 (set_map_mask): Use grub_vga_sr_write.
27361 (set_read_map): Use grub_vga_gr_write.
27362 (set_start_address): Use grub_vga_cr_write.
27363 * video/sm712.c (framebuffer): Remove leftover fields.
27364
4321c64a
CW
273652010-06-20 Colin Watson <cjwatson@ubuntu.com>
27366
27367 * util/grub-mkconfig.in: Capitalise and export GRUB_PREFIX. Stop
27368 setting GRUB_VIDEO_BACKEND. Make it available as a user override
27369 instead. Replace the gfxterm backend check with a check that
27370 ${GRUB_PREFIX}/video.lst is non-empty.
27371 * util/grub.d/00_header.in: Use GRUB_PREFIX rather than computing it
27372 again.
27373 (load_video): New generated function. Call it before loading
27374 gfxterm rather than loading ${GRUB_VIDEO_BACKEND}.
27375 * util/grub.d/10_linux.in (linux_entry): Call load_video.
27376 * util/grub.d/30_os-prober.in (osx_entry): Likewise.
27377 * docs/grub.texi (Simple configuration): Document
27378 GRUB_VIDEO_BACKEND.
27379
273802010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
27381
27382 Use video functions in linux and xnu loaders.
27383
27384 * conf/i386-pc.rmk (xnu_mod_SOURCES): Remove loader/i386/pc/xnu.c.
27385 * conf/x86-efi.rmk (xnu_mod_SOURCES): Remove loader/i386/efi/xnu.c.
27386 * include/grub/i386/xnu.h (grub_xnu_set_video): Removed.
27387 * loader/i386/efi/linux.c (grub_linux_setup_video): Copied from
27388 loader/i386/pc/linux.c.
27389 (grub_linux_boot): Resynced with loader/i386/pc/linux.c.
27390 (find_line_len): Removed.
27391 (find_framebuf): Likewise.
27392 (grub_cmd_linux): Declare grub_linux_boot as possibly returning.
27393 * loader/i386/efi/xnu.c: Removed.
27394 * loader/i386/pc/xnu.c: Moved from here...
27395 * loader/i386/xnu.c: ...here.
27396
27397 Enable priorities in video drivers.
27398
27399 * include/grub/video.h (grub_video_adapter_prio_t): New type.
27400 (grub_video_adapter): New field prio.
27401 (grub_video_register): Respect prio when inserting.
27402 * video/efi_gop.c (grub_video_gop_adapter): Add prio.
27403 * video/efi_uga.c (grub_video_uga_adapter): Likewise.
27404 * video/emu/sdl.c (grub_video_sdl_adapter): Likewise.
27405 * video/i386/pc/vbe.c (grub_video_vbe_adapter): Likewise.
27406 * video/i386/pc/vga.c (grub_video_vga_adapter): Likewise.
27407 * video/ieee1275.c (grub_video_ieee1275_adapter): Likewise.
27408 * video/sm712.c (grub_video_sm712_adapter): Likewise.
27409
27410 Fix SDL driver ID.
27411
27412 * include/grub/video.h (grub_video_driver_id_t): New value
27413 GRUB_VIDEO_DRIVER_SDL.
27414 * video/emu/sdl.c (grub_video_sdl_adapter): Add id.
27415
7d24e434
CW
274162010-06-17 Colin Watson <cjwatson@ubuntu.com>
27417
27418 * util/i386/pc/grub-setup.c (usage): Pass an extra `program_name'
27419 argument to printf.
27420 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
27421
c88a83f6
CW
274222010-06-17 Colin Watson <cjwatson@ubuntu.com>
27423
27424 * util/i386/pc/grub-setup.c (usage): Fix syntax error.
27425 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
27426
094dfb69
CW
274272010-06-17 Colin Watson <cjwatson@ubuntu.com>
27428
27429 * util/i386/pc/grub-setup.c (usage): Warn against running grub-setup
27430 directly, and recommend grub-install instead.
27431 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
27432
2164da6b
CW
274332010-06-17 Colin Watson <cjwatson@ubuntu.com>
27434
27435 Fix i386-pc prefix handling with nested partitions (Debian bug
27436 #585068). Note that the case where the core image is booted using
27437 multiboot and relocated from its original location still requires
27438 more work.
27439
27440 * kern/i386/pc/init.c (make_install_device): If the prefix starts
27441 with "(,", fill the boot drive in between those two characters, but
27442 expect that a full partition specification including partition map
27443 names will follow.
27444 * util/i386/pc/grub-setup.c (setup): Unless an explicit prefix was
27445 specified, write a prefix without the drive name but including a
27446 full partition specification.
27447
044e2e60
CW
274482010-06-16 Colin Watson <cjwatson@ubuntu.com>
27449
27450 * util/grub-mkconfig.in: Ignore non-option arguments, for
27451 compatibility with older versions (before 2010-06-12) which did the
27452 same. In particular, this makes it easier to ship an update-grub
27453 wrapper which is compatible with that used with GRUB Legacy (Debian
27454 bug #586056).
27455
5591324f
GS
274562010-06-14 Grégoire Sutre <gregoire.sutre@gmail.com>
27457
27458 * Makefile.in (install-local): Use $$file.h2m instead of $$dest.h2m
27459 for manual page generation.
27460
662e24d5
GS
274612010-06-14 Grégoire Sutre <gregoire.sutre@gmail.com>
27462
27463 * po/POTFILES: Remove leftover commands/handler.c.
27464
8d70754e
CW
274652010-06-14 Colin Watson <cjwatson@ubuntu.com>
27466
27467 * util/grub-mkconfig.in: Remove vestige of old argument parsing that
27468 left this script non-functional.
27469
41160e2e
CW
274702010-06-14 Colin Watson <cjwatson@ubuntu.com>
27471
27472 * docs/man/grub-emu.h2m: New file.
27473
b5309cc1
CW
274742010-06-13 Colin Watson <cjwatson@ubuntu.com>
27475
27476 * docs/grub.texi (Commands): Document reduced command set in rescue
27477 mode.
27478 (cpuid): New section.
27479
fcb2d090
GS
274802010-06-13 Grégoire Sutre <gregoire.sutre@gmail.com>
27481
27482 * kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Use the
27483 new partition naming style.
27484 * util/grub-install.in: Adapt sed subtitutions in grub-probe calls.
27485
96e5c556
BC
274862010-06-12 BVK Chaitanya <bvk.groups@gmail.com>
27487
27488 Add "-o grub.iso" like cmdline options support.
27489
27490 * util/grub-install.in: Improve cmdline option parsing.
27491 * util/grub-mkconfig.in: Likewise.
27492 * util/grub-mkrescue.in: Likewise.
27493 * util/grub-reboot.in: Likewise.
27494 * util/grub-set-default.in: Likewise.
27495 * util/i386/efi/grub-install.in: Likewise.
27496 * util/ieee1275/grub-install.in: Likewise.
27497 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
27498
c16be99b
CW
274992010-06-12 Colin Watson <cjwatson@ubuntu.com>
27500
27501 * .bzrignore: Ignore 41_custom.
27502
ce08a9fb
TS
275032010-06-12 Thomas Schmitt <scdbackup@gmx.net>
27504
27505 * util/grub-mkrescue.in: Pass unrecognized options to xorriso.
27506
7beac90c
CW
275072010-06-12 Colin Watson <cjwatson@ubuntu.com>
27508
27509 Avoid false positives in fs.lst, partmap.lst, and video.lst due to
27510 prototype declarations.
27511
27512 * genmk.rb (PModule::rule): Define GRUB_LST_GENERATOR when
27513 generating fs, partmap, and video lists.
27514 * include/grub/fs.h (grub_fs_register): Omit prototype if
27515 GRUB_LST_GENERATOR is defined.
27516 * include/grub/partition.h (grub_partition_map_register): Likewise.
27517 * include/grub/video.h (grub_video_register): Likewise.
27518
1c8f0f8d
JM
275192010-06-12 Javier Martín <lordhabbit@gmail.com>
27520
27521 * include/grub/types.h: Check for GRUB_CPU_SIZEOF_LONG when appropriate.
27522
a6085973
TS
275232010-06-12 Thomas Schmitt <scdbackup@gmx.net>
27524
27525 * util/grub-mkrescue.in: Support --xorriso argument.
27526
25c56d29
VS
275272010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
27528
27529 * util/grub-mkrescue.in: Use -graft-points instead of -pathspecs.
27530 Suggested by: Thomas Schmitt.
27531
e03e4b24
VS
275322010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
27533
27534 * util/grub-mkrescue.in: Add --sort-weight arguments to xorriso.
27535 Suggested by: Thomas Schmitt.
27536
57711df6
VS
275372010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
27538
27539 custom.cfg support.
27540
27541 * conf/common.rmk (grub-mkconfig_SCRIPTS): Add 41_custom.
27542 * util/grub.d/41_custom.in: New file.
27543
ee62c427
CW
275442010-06-12 Colin Watson <cjwatson@ubuntu.com>
27545
27546 * util/grub-mkrescue.in (make_image): Remove sh module, which has
27547 been merged back into normal.
27548
283af07a
CW
275492010-06-11 Colin Watson <cjwatson@ubuntu.com>
27550
27551 * include/grub/efi/uga_draw.h (GRUB_EFI_UGA_GLT_MAX): Rename to ...
27552 (GRUB_EFI_UGA_BLT_MAX): ... this (typo fix).
27553
56a0d956
CW
275542010-06-11 Colin Watson <cjwatson@ubuntu.com>
27555
27556 * Makefile.in (install-local): Include $(srcdir)/docs/man/$$dest.h2m
27557 when generating manual pages.
27558 * docs/man/grub-bin2h.h2m: New file.
27559 * docs/man/grub-editenv.h2m: New file.
27560 * docs/man/grub-fstest.h2m: New file.
27561 * docs/man/grub-install.h2m: New file.
27562 * docs/man/grub-macho2img.h2m: New file.
27563 * docs/man/grub-mkconfig.h2m: New file.
27564 * docs/man/grub-mkdevicemap.h2m: New file.
27565 * docs/man/grub-mkfont.h2m: New file.
27566 * docs/man/grub-mkimage.h2m: New file.
27567 * docs/man/grub-mkpasswd-pbkdf2.h2m: New file.
27568 * docs/man/grub-mkrelpath.h2m: New file.
27569 * docs/man/grub-mkrescue.h2m: New file.
27570 * docs/man/grub-ofpathname.h2m: New file.
27571 * docs/man/grub-pe2elf.h2m: New file.
27572 * docs/man/grub-probe.h2m: New file.
27573 * docs/man/grub-reboot.h2m: New file.
27574 * docs/man/grub-script-check.h2m: New file.
27575 * docs/man/grub-set-default.h2m: New file.
27576 * docs/man/grub-setup.h2m: New file.
27577
3a37e322
VS
275782010-06-10 Vladimir Serbinenko <phcoder@gmail.com>
27579
27580 Use FOR_* macros instead of *_iterate whenever possible.
27581
27582 * commands/handler.c: Removed.
27583 * commands/help.c (grub_cmd_help): Use FOR_COMMANDS.
27584 * commands/minicmd.c (grub_mini_cmd_lsmod): Use FOR_DL_MODULES.
27585 * conf/any-emu.rmk (kernel_img_SOURCES): Remove kern/handler.c.
27586 * conf/common.rmk (script/lexer.c_DEPENDENCIES): Add grub_script.yy.h.
27587 (grub_probe_SOURCES): Remove kern/parser.c.
27588 (util/grub-script-check.c_DEPENDENCIES): Removed.
27589 (grub_script_check_SOURCES): Remove kern/handler.c, kern/parser.c
27590 and grub_script_check_init.c.
27591 (grub_script_check_init.lst): Removed.
27592 (grub_script_check_init.h): Likewise.
27593 (grub_script_check_init.c): Likewise.
27594 (pkglib_MODULES): Remove handler.mod and sh.mod.
27595 (handler_mod_SOURCES): Removed.
27596 (handler_mod_CFLAGS): Likewise.
27597 (handler_mod_LDFLAGS): Likewise.
27598 (normal_mod_SOURCES): Remove normal/handler.c.
27599 Add script/main.c, script/script.c, script/execute.c,
27600 script/function.c, script/lexer.c, grub_script.tab.c
27601 and grub_script.yy.c.
27602 * conf/i386-coreboot.rmk (kernel_img_SOURCES): Remove kern/handler.c.
27603 * conf/i386-ieee1275.rmk (kernel_img_SOURCES): Likewise.
27604 * conf/i386-pc.rmk (kernel_img_SOURCES): Likewise.
27605 (grub_setup_SOURCES): Remove kern/parser.c.
27606 * conf/i386-qemu.rmk (kernel_img_SOURCES): Remove kern/handler.c.
27607 * conf/mips-qemu-mips.rmk (kernel_img_SOURCES): Likewise.
27608 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Likewise.
27609 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Likewise.
27610 * conf/sparc64-ieee1275.rmk (kernel_img_SOURCES): Likewise.
27611 (grub_setup_SOURCES): Remove kern/parser.c.
27612 * conf/x86-efi.rmk (kernel_img_SOURCES): Remove kern/handler.c.
27613 * gettext/gettext.c (grub_gettext_delete_list): Don't use grub_list_pop.
27614 * include/grub/command.h (grub_command_iterate): Removed.
27615 (FOR_COMMANDS): New macro.
27616 * include/grub/dl.h (grub_dl): New member next.
27617 (grub_dl_iterate): Removed.
27618 (grub_dl_head): New variable declaration.
27619 (FOR_DL_MODULES): New macro.
27620 * include/grub/fs.h: Include list.h.
27621 (grub_fs): Make next first element.
27622 (grub_fs_list): New variable declaration.
27623 (grub_fs_register): Make inline.
27624 (grub_fs_unregister): Likewise.
27625 (grub_fs_iterate): Removed.
27626 (FOR_FILESYSTEMS): New macro.
27627 * include/grub/handler.h: Removed.
27628 * include/grub/list.h (grub_list_hook_t): Removed.
27629 (grub_list_test_t): Likewise.
27630 (grub_list_pop): Likewise.
27631 (grub_list_iterate): Likewise.
27632 (grub_list_insert): Likewise.
27633 (FOR_LIST_ELEMENTS): New macro.
27634 * include/grub/parser.h (grub_parser_class): Removed.
27635 (grub_parser_register): Likewise.
27636 (grub_parser_unregister): Likewise.
27637 (grub_parser_get_current): Likewise.
27638 (grub_parser_set_current): Likewise.
27639 (grub_register_rescue_parser): Likewise.
27640 (grub_rescue_parse_line): New function.
27641 * include/grub/partition.h (FOR_PARTITION_MAPS): Use FOR_LIST_ELEMENTS.
27642 * include/grub/script_sh.h (grub_script_function_list): New variable
27643 declaration.
27644 (FOR_SCRIPT_FUNCTIONS): New macro.
27645 (grub_script_function_iterate): Removed.
27646 (grub_normal_parse_line): New prototype.
27647 * include/grub/term.h (FOR_ACTIVE_TERM_INPUTS): Use FOR_LIST_ELEMENTS.
27648 (FOR_DISABLED_TERM_INPUTS): Likewise.
27649 (FOR_ACTIVE_TERM_OUTPUTS): Likewise.
27650 (FOR_DISABLED_TERM_OUTPUTS): Likewise.
27651 * include/grub/video.h (grub_video_adapter): Move 'next' to first
27652 element.
27653 (grub_video_register): Inline.
27654 (grub_video_unregister): Likewise.
27655 (grub_video_adapter_list): New variable declaration.
27656 (grub_video_iterate): Removed.
27657 (FOR_VIDEO_ADAPTERS): New macro.
27658 * kern/dl.c (grub_dl_list): Removed. All users updated.
27659 (grub_dl_iterate): Removed.
27660 * kern/fs.c (grub_fs_list): Make global.
27661 (grub_fs_register): Removed.
27662 (grub_fs_unregister): Likewise.
27663 (grub_fs_iterate): Likewise.
27664 * kern/handler.c: Removed.
27665 * kern/list.c (grub_list_pop): Removed.
27666 (grub_list_iterate): Likewise.
27667 (grub_list_insert): Likewise.
27668 (grub_named_list_find): Use FOR_LIST_ELEMENTS.
27669 (grub_prio_list_insert): Don't use grub_list_insert.
27670 * kern/main.c (grub_register_rescue_parser): Don't call
27671 grub_register_rescue_parser.
27672 * kern/parser.c (grub_parser_class): Removed.
27673 (grub_parser_execute): Use grub_rescue_parse_line.
27674 * kern/rescue_parser.c (grub_rescue_parse_line): Make global.
27675 (grub_rescue_parser): Removed.
27676 (grub_register_rescue_parser): Likewise.
27677 * kern/rescue_reader.c (grub_rescue_run): Use grub_rescue_parse_line.
27678 * normal/auth.c (is_authenticated): Use FOR_LIST_ELEMENTS.
27679 (grub_auth_check_authentication): Likewise.
27680 * normal/completion.c (iterate_command): Removed.
27681 (grub_normal_do_completion): Use FOR_COMMANDS.
27682 * normal/handler.c: Removed.
27683 * normal/main.c (read_config_file): Remove parser changing.
27684 (grub_normal_execute): Don't call read_handler_list.
27685 (grub_normal_read_line_real): Statically allocate prompt.
27686 (grub_cmdline_run): Use grub_normal_parse_line.
27687 (GRUB_MOD_FINI): Don't call free_handler_list.
27688 * normal/menu_entry.c (run): Likewise.
27689 * script/function.c (grub_script_function_list): Make global.
27690 (grub_script_function_iterate): Removed.
27691 * script/main.c (grub_normal_parse_line): Make global.
27692 (grub_sh_parser): Removed.
27693 (GRUB_MOD_INIT): Likewise.
27694 (GRUB_MOD_FINI): Likewise.
27695 * tests/lib/functional_test.c (grub_functional_test): Use
27696 FOR_LIST_ELEMENTS.
27697 * tests/lib/test.c (free_failures): Don't use grub_list_pop.
27698 (grub_test_run): Use FOR_LIST_ELEMENTS.
27699 * tests/lib/unit_test.c (main): Likewise.
27700 * util/deviceiter.c (grub_util_iterate_devices): Don't use
27701 grub_list_pop.
27702 * util/grub-fstest.c (grub_term_input_class): Removed.
27703 (grub_term_output_class): Likewise.
27704 * util/grub-probe.c: Likewise.
27705 * util/i386/pc/grub-setup.c: Likewise.
27706 * util/sparc64/ieee1275/grub-setup.c: Likewise.
27707 * util/grub-script-check.c (main): Don't call grub_init_all and
27708 grub_fini_all.
27709 * video/video.c (grub_video_adapter_list): Make global.
27710 (grub_video_register): Removed.
27711 (grub_video_unregister): Likewise.
27712 (grub_video_iterate): Likewise.
27713
6289c3a7
VS
277142010-06-09 Vladimir Serbinenko <phcoder@gmail.com>
27715
27716 * docs/grub.texi (Vendor power-on button): Add Asus EeePC 1005PE as
27717 reported by Henrique Ferreiro.
27718
91460247
RM
277192010-06-09 Robert Millan <rmh@gnu.org>
27720
27721 * util/grub.d/10_linux.in: Prefer compressed images over non-compressed
27722 ones, when both are available.
27723
0ea7c4f9
GS
277242010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
27725
27726 Make --version uniform and avoid hard-coded program name.
27727
27728 * util/grub-mkimage.c (main): Use `program_name' instead of
27729 hard-coded string.
27730 * util/i386/pc/grub-setup.c (main): Likewise.
27731 * util/sparc64/ieee1275/grub-setup.c (parse_options): Likewise.
27732 * util/grub-install.in: Save the basename of $0 in $self, and use the
27733 latter in informational messages. Use the same format for --version
27734 as the binary programs.
27735 * util/grub-mkconfig.in: Likewise.
27736 * util/grub-mkrescue.in: Likewise.
27737 * util/grub-reboot.in: Likewise.
27738 * util/grub-set-default.in: Likewise.
27739 * util/i386/efi/grub-install.in: Likewise.
27740 * util/ieee1275/grub-install.in: Likewise.
27741 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
27742
e8a6f3b6
GS
277432010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
27744
27745 * util/i386/pc/grub-setup.c (setup): Use absolute offsets for start of
27746 embedding area. Use <= instead of == when checking for non-emptiness.
27747
f4d095d7
GS
277482010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
27749
27750 * configure.ac: Add `.' to the directories searched for unifont.
27751
50e532ca
CW
277522010-06-08 Colin Watson <cjwatson@ubuntu.com>
27753
27754 * .bzrignore: Add ascii.bitmaps, ascii.h, grub_script.yy.c, and
27755 grub_script.yy.h.
27756
d39f3dec
CW
277572010-06-08 Colin Watson <cjwatson@ubuntu.com>
27758
27759 * docs/grub.texi (History): Expand to cover GRUB 2.
27760 (Serial terminal): Refer to `terminal_input' and `terminal_output'
27761 commands, not `terminal'.
27762 (serial): Likewise.
27763 (terminal_input): New section.
27764 (terminal_output): New section.
27765 (uppermem): New section (stub).
27766 (Obtaining and Building GRUB): Refer to Bazaar, not Subversion.
27767
6ef0ddb4
CW
277682010-06-08 Colin Watson <cjwatson@ubuntu.com>
27769
27770 * docs/grub.texi (Security): Menu entries are unrestricted by
27771 default, not restricted to superusers as I had previously thought.
27772 Reword to account for this.
27773
e0f4c438
CW
277742010-06-07 Colin Watson <cjwatson@ubuntu.com>
27775
27776 * kern/emu/misc.c (device_mapper_null_log): New function.
27777 (grub_device_mapper_supported): New function.
27778 * include/grub/emu/misc.h (grub_device_mapper_supported): Add
27779 prototype.
27780 * kern/emu/hostdisk.c (find_partition_start): Check whether
27781 device-mapper is supported before trying to use it.
27782 * util/deviceiter.c (grub_util_iterate_devices): Likewise.
27783
da908200
CW
277842010-06-07 Colin Watson <cjwatson@ubuntu.com>
27785
27786 * docs/grub.texi (Naming convention): Use GRUB 2 syntax.
27787 (File name syntax): Likewise.
27788 (help): --all is no longer supported in GRUB 2. Be more precise
27789 about pattern matching.
27790
fb55c3ac
CW
277912010-06-07 Colin Watson <cjwatson@ubuntu.com>
27792
27793 * normal/completion.c (grub_normal_do_completion): When completing
27794 arguments to "set" and the current word contains an equals sign,
27795 skip to after the equals sign before starting completion.
27796
258c2573
CW
277972010-06-07 Colin Watson <cjwatson@ubuntu.com>
27798
27799 * fs/i386/pc/pxe.c (grub_pxe_open): Fix parsing of gateway_ip.
27800
ee75515e
CW
278012010-06-07 Colin Watson <cjwatson@ubuntu.com>
27802
27803 * docs/grub.texi (Network): New section.
27804 (Device syntax): The network device is called `(pxe)' in GRUB 2, not
27805 `(nd)' as in GRUB Legacy.
27806 (pxe_unload): New section.
27807
a6a700aa
CW
278082010-06-07 Colin Watson <cjwatson@ubuntu.com>
27809
27810 * docs/grub.texi (Troubleshooting): `echo' is not usually available
27811 in the rescue shell, so recommend using `set' instead. Thanks,
27812 Jordan Uggla.
27813
4003dd38
CW
278142010-06-07 Colin Watson <cjwatson@ubuntu.com>
27815
27816 * docs/grub.texi (Filesystem): Refer to `search' instead of `find'.
27817 (password): New section.
27818 (password_pbkdf2): New section.
27819 (search): New section.
27820 (Security): New section.
27821 (Troubleshooting): New section, currently very incomplete.
27822 (Invoking grub-mkpasswd-pbkdf2): New section.
27823 (Internals): New section, currently very incomplete.
27824
e1cbcc40
CW
278252010-06-07 Colin Watson <cjwatson@ubuntu.com>
27826
27827 * util/grub.d/00_header.in: Add some more quoting (of
27828 "${prev_saved_entry}" and "${boot_once}") needed to make savedefault
27829 work again.
27830 Reported by: Mario 'BitKoenig' Holbe (Debian bug #584812).
27831
db8fa1ad
CW
278322010-06-07 Colin Watson <cjwatson@ubuntu.com>
27833
27834 * util/grub-mkpasswd-pbkdf2.c (main): Rename top-level `c' variable
27835 to `count', fixing variable shadowing that broke the -c option.
27836
278372010-06-05 Colin Watson <cjwatson@ubuntu.com>
71c38098
CW
27838
27839 * util/grub.d/00_header.in: Quote values assigned to `saved_entry',
27840 in case they contain spaces.
27841
f28a9212
CW
278422010-06-04 Colin Watson <cjwatson@ubuntu.com>
27843
27844 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Prepend
27845 "part_" to partmap module names, in line with grub-install.
27846 Reported by: Jindřich Makovička (Debian bug #584426).
27847
9cdfe32f
CW
278482010-06-04 Colin Watson <cjwatson@ubuntu.com>
27849
27850 * util/grub-mkimage.c: Make target-related error messages slightly
27851 more helpful; -O talks about "format". Explicitly point to the use
27852 of -O if no target is specified.
27853 Reported by: Didier Raboud (Debian bug #584415).
27854
795b593a
CW
278552010-06-03 Colin Watson <cjwatson@ubuntu.com>
27856
27857 * INSTALL: Document several build requirements for optional features
27858 (libdevmapper, ncurses, libusb, SDL, FreeType, GNU Unifont).
27859
9d9b5833
GS
278602010-06-02 Grégoire Sutre <gregoire.sutre@gmail.com>
27861
27862 * kern/emu/hostdisk.c (convert_system_partition_to_system_disk)
27863 [__NetBSD__]: Handle all device names matching /dev/r[a-z]+[0-9][a-z].
27864 (find_partition_start) [__NetBSD__]: Correct error messages for NetBSD.
27865
0819fec8
CW
278662010-06-02 Colin Watson <cjwatson@ubuntu.com>
27867
27868 * docs/grub.texi (Simple configuration): Fix copy-and-paste typo.
27869 Thanks to Jordan Uggla for spotting this.
27870
49396b4f
VS
278712010-06-02 Aleš Nesrsta <starous@volny.cz>
27872
27873 Finally make USB usable.
27874
27875 * bus/usb/ohci.c (grub_ohci_reg_t): Add missing values.
27876 (GRUB_OHCI_RHUB_PORT_POWER_MASK): New macro.
27877 (GRUB_OHCI_RHUB_PORT_ALL_POWERED): Likewise.
27878 (GRUB_OHCI_REG_FRAME_INTERVAL_FSMPS_MASK): Likewise.
27879 (GRUB_OHCI_REG_FRAME_INTERVAL_FSMPS_SHIFT): Likewise.
27880 (GRUB_OHCI_REG_FRAME_INTERVAL_FI_SHIFT): Likewise.
27881 (GRUB_OHCI_FSMPS): Likewise.
27882 (GRUB_OHCI_PERIODIC_START): Likewise.
27883 (GRUB_OHCI_FRAME_INTERVAL): Likewise.
27884 (GRUB_OHCI_SET_PORT_ENABLE): Likewise.
27885 (GRUB_OHCI_CLEAR_PORT_ENABLE): Likewise.
27886 (GRUB_OHCI_SET_PORT_RESET): Likewise.
27887 (GRUB_OHCI_SET_PORT_RESET_STATUS_CHANGE): Likewise.
27888 * bus/usb/ohci.c (grub_ohci_pci_iter): Various important fixups.
27889 (grub_ohci_transaction): Likewise.
27890 (grub_ohci_transfer): Improve condition detection algorithms.
27891 Handle toggle property. Program the transactions correctly.
27892 Improve error handling. Various important fixups.
27893 (grub_ohci_portstatus): Put register writes in right order.
27894 * bus/usb/uhci.c (grub_free_queue): Compute last_trans.
27895 (grub_uhci_transfer): Don't show "failed" message on success.
27896 * bus/usb/usb.c (grub_usb_set_configuration): Zero-fill whole "toggle"
27897 array.
27898 (grub_usb_device_initialize): Read first 8 bytes of descriptor to
27899 determine its size.
27900 * bus/usb/usbtrans.c (grub_usb_control_msg): Use descdev.maxsize0 even
27901 before initialization is completed. Use IN direction for empty
27902 transfers. Use last_trans and compute toggle.
27903 * include/grub/usbtrans.h (grub_usb_transfer): New field last_trans.
27904 (GRUB_USB_FEATURE_ENDP_HALT): Correct the value.
27905 (GRUB_USB_FEATURE_DEV_REMOTE_WU): Likewise.
27906 (GRUB_USB_FEATURE_TEST_MODE): Likewise.
27907 * include/grub/usb.h (grub_usb_err_t): New value GRUB_USB_ERR_UNRECOVERABLE.
27908 (grub_usb_device): Increase toggle to 256.
27909 (grub_usbms_subclass_t): New values GRUB_USBMS_SUBCLASS_RBC,
27910 GRUB_USBMS_SUBCLASS_MMC2, GRUB_USBMS_SUBCLASS_UFI and
27911 GRUB_USBMS_SUBCLASS_SFF8070.
27912 * include/grub/scsicmd.h (grub_scsi_test_unit_ready): New structure.
27913 (grub_scsi_inquiry): New member page and alloc_length.
27914 (grub_scsi_request_sense): New structure.
27915 (grub_scsi_request_sense_data): Likewise.
27916 (grub_scsi_read_capacity): New fields logical_block_addr, PMI and
27917 control.
27918 * disk/scsi.c (grub_scsi_request_sense): New function.
27919 (grub_scsi_test_unit_ready): Likewise.
27920 (grub_scsi_inquiry): Fill new fields.
27921 (grub_scsi_read_capacity): Likewise.
27922 (grub_scsi_read10): Add request sense at the end.
27923 (grub_scsi_read12): Likewise.
27924 (grub_scsi_write10): Likewise.
27925 (grub_scsi_write12): Likewise.
27926 (grub_scsi_open): Add Test Unit Ready.
27927 * disk/usbms.c (grub_usbms_finddevs): Check configcnt.
27928 Support additional subclasses. Con't clear halt yet. Activate the
27929 proper config. Calculate LUNs correctly.
27930 (grub_usbms_transfer): Various important fixups.
27931
279322010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
27933
27934 * bus/pci.c (grub_pci_iterate) [GRUB_MACHINE_MIPS_YEELOONG]: Skip ghosts.
27935 * bus/usb/ohci.c (grub_ohci_portstatus): Handle R/WC correctly.
27936 (grub_ohci_fini_hw): New function.
27937 (grub_ohci_restore_hw): Likewise.
27938 (GRUB_MOD_INIT(ohci)): Register preboot hook.
27939 (GRUB_MOD_FINI(ohci)): Shutdown OHCI.
27940 * term/usb_keyboard.c: Remove include of grub/machine/console.h.
27941
279422010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
27943
27944 Dedicated DMA allocations.
27945
27946 * bus/pci.c (grub_memalign_dma32): New function
27947 (grub_dma_free): Likewise.
27948 (grub_dma_get_virt): Likewise.
27949 (grub_dma_get_phys): Likewise.
27950 * bus/usb/ohci.c (grub_ohci): New members hcca_addr and hcca_chunk.
27951 (grub_ohci_pci_iter): Use dma32_alloc.
27952 (grub_ohci_transfer): Likewise.
27953 * bus/usb/usbtrans.c (grub_usb_control_msg): Likewise.
27954 (grub_usb_bulk_readwrite): Likewise.
27955 * include/grub/pci.h: Add declarations.
27956
279572010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
27958
27959 CS5536 support.
27960
27961 * bus/cs5536.c: New file.
27962 * bus/usb/ohci.c (grub_ohci_pci_iter): Check for CS5536.
27963 * conf/i386.rmk (pkglib_MODULES): Add cs5536.mod.
27964 (cs5536_mod_SOURCES): New variable.
27965 (cs5536_mod_CFLAGS): Likewise.
27966 (cs5536_mod_LDFLAGS): Likewise.
27967 * conf/mips-yeeloong.rmk (kernel_img_HEADERS): Add cs5536.h and
27968 machine/pci.h.
27969 (kernel_img_SOURCES): Add bus/cs5536.c.
27970 (pkglib_MODULES): Add usb.mod, usbtest.mod, ohci.mod, usbms.mod and
27971 usb_keyboard.mod.
27972 (usb_mod_SOURCES): New variable.
27973 (usb_mod_CFLAGS): New variable.
27974 (usb_mod_LDFLAGS): New variable.
27975 (usbtest_mod_SOURCES): New variable.
27976 (usbtest_mod_CFLAGS): New variable.
27977 (usbtest_mod_LDFLAGS): New variable.
27978 (ohci_mod_SOURCES): New variable.
27979 (ohci_mod_CFLAGS): New variable.
27980 (ohci_mod_LDFLAGS): New variable.
27981 (usbms_mod_SOURCES): New variable.
27982 (usbms_mod_CFLAGS): New variable.
27983 (usbms_mod_LDFLAGS): New variable.
27984 (usb_keyboard_mod_SOURCES): New variable.
27985 (usb_keyboard_mod_CFLAGS): New variable.
27986 (usb_keyboard_mod_LDFLAGS): New variable.
27987 * include/grub/smbus.h: New file.
27988 * include/grub/cs5536.h: New file.
27989
0b35b2a9
CW
279902010-06-02 Colin Watson <cjwatson@ubuntu.com>
27991
27992 * util/grub.d/00_header.in: Add safety check to make sure that
27993 ${locale_dir} exists before trying to probe it.
27994
ca0afd5b
CW
279952010-06-02 Colin Watson <cjwatson@ubuntu.com>
27996
27997 * docs/grub.texi (SCO UnixWare): Remove, at Vladimir's request and
27998 per the GNU Coding Standards; this is now too obscure to be worth
27999 documenting.
28000 (QNX): Likewise.
28001 (chainloader): Remove cross-reference to `SCO UnixWare'.
28002
1c41aa78
CW
280032010-06-02 Colin Watson <cjwatson@ubuntu.com>
28004
28005 * docs/grub.texi (Chain-loading): New section.
28006 (DOS/Windows): New section, borrowed from GRUB Legacy with details
28007 adjusted for GRUB 2.
28008 (SCO UnixWare): Likewise.
28009 (QNX): Likewise.
28010 (chainloader): Add reference to `Block list syntax'.
28011 (drivemap): New section.
28012 (parttool): New section.
28013
bb8ea0f5
CW
280142010-06-02 Colin Watson <cjwatson@ubuntu.com>
28015
28016 * docs/grub.texi (GNU GRUB manual): Remove reference to `Invoking
28017 the grub shell'.
28018 (Installation): Add reference to `Making a GRUB bootable CD-ROM'.
28019 (Installing GRUB using grub-install): Remove reference to the grub
28020 shell; mention `grub-mkimage' and `grub-setup' instead.
28021 (Invoking grub-install): Likewise.
28022 (Interface): Add reference to `Menu entry editor'.
28023 (serial): Remove `--device' option.
28024
288dd6ed
CW
280252010-06-02 Colin Watson <cjwatson@ubuntu.com>
28026
28027 * docs/grub.texi (Configuration): New section, documenting
28028 configuration file generation using grub-mkconfig. I've left a slot
28029 for documenting the full shell scripting format but have not yet
28030 started on writing that up.
28031 (Invoking grub-mkconfig): New section.
28032
34c9f0e9
CW
280332010-06-02 Colin Watson <cjwatson@ubuntu.com>
28034
28035 * docs/grub.texi (direntry): Remove grub-terminfo reference.
28036 (GNU GRUB manual): Likewise.
28037 (General commands): Update description of `terminfo' for GRUB 2.
28038
9121567e
CW
280392010-06-02 Colin Watson <cjwatson@ubuntu.com>
28040
28041 * commands/gptsync.c (grub_cmd_gptsync): Fix typos.
28042 (GRUB_MOD_INIT): Fix capitalisation.
28043 * docs/grub.texi (Command-line and menu entry commands): Document
28044 gettext and gptsync commands.
28045
ab631611
CW
280462010-06-02 Colin Watson <cjwatson@ubuntu.com>
28047
28048 * conf/any-emu.rmk (kernel_img_SOURCES) [!x86]: Include
28049 kern/$(target_cpu)/cache.S even if TARGET_NO_MODULES = yes.
28050
bde4a9ac
CW
280512010-06-01 Colin Watson <cjwatson@ubuntu.com>
28052
28053 Add btrfs probing support, currently only in the single-device case.
28054
28055 * kern/emu/getroot.c (find_root_device_from_mountinfo): New
28056 function.
28057 (grub_guess_root_device): Call find_root_device_from_mountinfo
28058 before looking in /dev.
28059
b1d17e10
VS
280602010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
28061
28062 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Use
28063 GRUB_DISK_SIZE_UNKNOWN.
28064 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Likewise.
28065
dfbfe004
JS
280662010-05-31 Jiro SEKIBA <jir@unicus.jp>
28067
28068 * include/grub/disk.h (GRUB_DISK_SIZE_UNKNOWN): New macro.
28069 * fs/nilfs.c: Support 2nd super block in case 1st one is accidently
28070 corrupted or not synced properly.
28071
c2ffc8e9
VS
280722010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
28073
28074 * normal/main.c (grub_normal_add_menu_entry): Avoid going out of args.
28075 Reported by: Seth Goldberg.
28076
56293166
VS
280772010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
28078
28079 * loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix incorrect
28080 addition of dest.
28081 Reported by: Seth Goldberg.
28082
7620e7de
VS
280832010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
28084
28085 * commands/setpci.c (grub_setpci_iter): Fix an incorrect function check.
28086 Reported by: Seth Goldberg.
28087
c837af3f
VS
280882010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
28089
28090 * loader/multiboot_elfxx.c (grub_multiboot_load_elfXX) [__mips]: Check
28091 64-bit address as signed on MIPS.
28092
c7c75cf4
CW
280932010-05-28 Colin Watson <cjwatson@ubuntu.com>
28094
28095 * configure.ac: AC_PROG_LEX sets LEX to ":" if lex is missing, not
28096 to the empty string.
28097
fa4b8490
BC
280982010-05-28 BVK Chaitanya <bvk.groups@gmail.com>
28099
28100 Fix grub-emu issues on NetBSD, with gcc 4.1.3.
28101
28102 * conf/any-emu.rmk: Remove unnecessary COMMON_CFLAGS.
28103 * include/grub/emu/misc.h (canonicalize_file_name): New Prototype.
28104 * kern/misc.c (__enable_execute_stack): Disable on
28105 GRUB_MACHINE_EMU.
28106
a33075b9
CW
281072010-05-28 Colin Watson <cjwatson@ubuntu.com>
28108
28109 Make grub-probe work with symbolic links under /dev/mapper as well
28110 as with real block devices. The Linux world seems to be (at best)
28111 in transition here, and GRUB shouldn't get caught in the middle.
28112
28113 * kern/emu/getroot.c (find_root_device): Follow symbolic links under
28114 /dev/mapper.
28115
d8708134
CW
281162010-05-27 Colin Watson <cjwatson@ubuntu.com>
28117
28118 * util/grub-script-check.c (main): Ensure defined behaviour on empty
28119 input files (in which case exit zero).
28120
db2102a0
CW
281212010-05-27 Colin Watson <cjwatson@ubuntu.com>
28122
28123 * kern/emu/misc.c (canonicalize_file_name): realpath can still
28124 return NULL for various reasons even if it has a maximum-length
28125 buffer: for example, there might be a symlink loop, or the path
28126 might exceed PATH_MAX. If this happens, return NULL.
28127
5fdba519
RM
281282010-05-27 Robert Millan <rmh@gnu.org>
28129
28130 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Insert
28131 partmap module to handle cross-partmap setups.
28132 Reported by Orestes Mas. Gràcies!
28133
d1d368e4
CW
281342010-05-27 Colin Watson <cjwatson@ubuntu.com>
28135
28136 * util/grub-mkrescue.in: Initialise override_dir rather than
28137 assuming that it's unset or empty in the environment.
28138
95ac3c73
GS
281392010-05-26 Grégoire Sutre <gregoire.sutre@gmail.com>
28140
28141 * kern/emu/hostdisk.c (find_partition_start) [__NetBSD__]: Renamed
28142 variable index into p_index to suppress a warning with -Wshadow.
28143
7d8c0213
BC
281442010-05-25 BVK Chaitanya <bvk.groups@gmail.com>
28145
28146 * INSTALL: Added flex >= 2.5.35 requirement.
28147
db4d5813
VS
281482010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
28149
28150 * commands/usbtest.c (grub_usb_get_string): Properly support UTF-16.
28151
f24f4300
VS
281522010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
28153
28154 cmostest support.
28155
28156 * commands/i386/cmostest.c: New file.
28157 * conf/i386-coreboot.rmk (pkglib_MODULES): Add cmostest.mod.
28158 (cmostest_mod_SOURCES): New variable.
28159 (cmostest_mod_CFLAGS): Likewise.
28160 (cmostest_mod_LDFLAGS): Likewise.
28161 * conf/i386-pc.rmk: Likewise.
28162 * docs/grub.texi (Vendor power-on keys): New section.
28163 * util/grub-mkconfig.in: export GRUB_DEFAULT_BUTTON,
28164 GRUB_HIDDEN_TIMEOUT_BUTTON, GRUB_TIMEOUT_BUTTON
28165 and GRUB_BUTTON_CMOS_ADDRESS.
28166 * util/grub.d/00_header.in: Handle powering-on by separate button.
28167
ad603f61
VS
281682010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
28169
28170 * gfxmenu/gui_list.c (draw_menu): Don't add scrollbar width to padding.
28171 Removed drawing_scrollbar argument. All users updated
28172 Fixes #29792.
28173 Reported by Jo Shields
28174
3ecb080a
VS
281752010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
28176
28177 * gfxmenu/view.c (grub_gfxmenu_draw_terminal_box): Apply only to current
28178 buffer since gfxterm handles double repaint.
28179
5f2316c1
VS
281802010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
28181
28182 * gfxmenu/gfxmenu.c (grub_gfxmenu_try): Change viewport on both buffers.
28183 * term/gfxterm.c (real_scroll): Likewise.
28184
9a25f885
VS
281852010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
28186
28187 * kern/i386/pc/mmap.c (grub_machine_mmap_iterate): Zero-fill entry
28188 before calling BIOS.
28189
39fbb79a
VS
281902010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
28191
28192 * include/grub/i18n.h: Always enable grub_gettext.
28193
228cfa97
VS
281942010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
28195
28196 * kern/i386/pc/init.c (make_install_device): Fix a leftover usage of old
28197 partition naming style.
28198
21717c8f
CW
281992010-05-21 Colin Watson <cjwatson@ubuntu.com>
28200
28201 * util/grub-mkconfig.in: Fix handling of -o so that it works when
28202 not the first option.
28203
c0f48e65
CW
282042010-05-20 Colin Watson <cjwatson@ubuntu.com>
28205
28206 * util/grub-mkrelpath.c (usage): Remove excess apostrophe.
28207
96779aec
CW
282082010-05-20 Colin Watson <cjwatson@ubuntu.com>
28209
28210 * util/misc.c: Move inclusion of <limits.h> to ...
28211 * kern/emu/misc.c: ... here. Needed for canonicalize_file_name.
28212
fa9d256e
GS
282132010-05-20 Grégoire Sutre <gregoire.sutre@gmail.com>
28214
28215 * kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev) [__NetBSD__]:
28216 Fix merge error in NetBSD code.
28217 (find_partition_start) [__NetBSD__]: Likewise.
28218
123b7a85
BC
282192010-05-19 BVK Chaitanya <bvk.groups@gmail.com>
28220
28221 Fix grub-mkrescue usage unit testing.
28222
28223 * tests/util/grub-shell.in: Use --grub-mkimage with grub-mkrescue.
28224
74276c0d
CF
282252010-05-18 Christian Franke <franke@computer.org>
28226
28227 * util/grub.d/10_windows.in: Use path names instead of
28228 drive letters to prevent warning from Cygwin 1.7.
28229 Add drivemap command to menuentry if needed.
28230
c4f7b523
ST
282312010-05-18 Justus Winter <4winter@informatik.uni-hamburg.de>
28232
28233 * util/grub.d/10_hurd.in: Include all gnumach* kernels, not only
28234 gnumach and gnumach.gz.
28235
95b97950
VS
282362010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
28237
28238 * include/grub/i18n.h (gettext): Inline instead of using #define.
28239 (grub_gettext): Likewise.
28240 (_): Likewise.
28241
01b8d2d7
VS
282422010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
28243
28244 * Makefile.in (CPPFLAGS): Replace -DGRUB_LIBDIR with
28245 -DGRUB_PKGLIBROOTDIR= and prepend @PACKAGE_TARNAME@. All users updated.
28246 * util/grub-mkimage.c (image_targets): Add i386-multiboot.
28247 (main): Add a slash after pkglibdirroot.
28248
654e1d1e
VS
282492010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
28250
28251 * util/grub-install.in: Add missing "in" keyword.
28252
26966aeb
VS
282532010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
28254
28255 * util/grub-mkrescue.in: Remove -O i386-pc duplication.
28256 Reported by: Seth Goldberg.
28257
75006747
VS
282582010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
28259
28260 * po/POTFILES: Rename util/grub-mkrawimage.c to util/grub-mkimage.c.
28261
74cbf5bd
CW
282622010-05-18 Colin Watson <cjwatson@ubuntu.com>
28263
28264 * configure.ac: Check for Linux device-mapper support.
28265
28266 * util/hostdisk.c (device_is_mapped): New function.
28267 (find_partition_start): New function, partly broken out from
28268 linux_find_partition and grub_util_biosdisk_get_grub_dev but with
28269 device-mapper support added.
28270 (linux_find_partition): Use find_partition_start.
28271 (convert_system_partition_to_system_disk): Add `st' argument.
28272 Support Linux /dev/mapper/* devices if device-mapper support is
28273 available; only DM-RAID devices are understood at present.
28274 (find_system_device): Add `st' argument. Pass it to
28275 convert_system_partition_to_system_disk.
28276 (grub_util_biosdisk_get_grub_dev): Pass stat result to
28277 find_system_device and convert_system_partition_to_system_disk. Use
28278 find_partition_start.
28279
28280 * conf/common.rmk (grub_mkdevicemap_SOURCES): Add kern/env.c,
28281 kern/err.c, kern/list.c, kern/misc.c, and kern/emu/mm.c.
28282 * util/deviceiter.c [__linux__]: Define MINOR.
28283 (grub_util_iterate_devices): Add support for DM-RAID disk devices.
28284 * util/mkdevicemap.c (grub_putchar): New function.
28285 (grub_getkey): New function.
28286 (grub_refresh): New function.
28287 (main): Set debug=all if -v -v is used.
28288
355b51e9
CW
282892010-05-18 Colin Watson <cjwatson@ubuntu.com>
28290
28291 Fix build with non-GNU libcs.
28292
28293 * util/misc.c (canonicalize_file_name): Move to ...
28294 * kern/emu/misc.c (canonicalize_file_name): ... here. Needed by
28295 grub_make_system_path_relative_to_its_root.
28296
7fb5c25f
CW
282972010-05-18 Colin Watson <cjwatson@ubuntu.com>
28298
28299 * util/grub-mkrescue.in: Sync up with grub-install in terms of how
28300 we handle finding grub-mkimage. Default to finding grub-mkimage in
28301 ${bindir} with program_transform_name applied, and provide a
28302 --grub-mkimage option to override this.
28303
1d3293d6
VS
283042010-05-17 Vladimir Serbinenko <phcoder@gmail.com>
28305
28306 Remove grub-mkisofs.
28307
28308 * conf/common.rmk (bin_UTILITIES): Remove grub-mkisofs.
28309 (grub_mkisofs_SOURCES): Removed.
28310 (grub_mkisofs_CFLAGS): Removed.
28311 * util/mkisofs/defaults.h: Removed.
28312 * util/mkisofs/eltorito.c: Likewise.
28313 * util/mkisofs/exclude.h: Likewise.
28314 * util/mkisofs/hash.c: Likewise.
28315 * util/mkisofs/include/: Likewise.
28316 * util/mkisofs/include/fctldefs.h: Likewise.
28317 * util/mkisofs/include/mconfig.h: Likewise.
28318 * util/mkisofs/include/prototyp.h: Likewise.
28319 * util/mkisofs/include/statdefs.h: Likewise.
28320 * util/mkisofs/iso9660.h: Likewise.
28321 * util/mkisofs/joliet.c: Likewise.
28322 * util/mkisofs/match.c: Likewise.
28323 * util/mkisofs/match.h: Likewise.
28324 * util/mkisofs/mkisofs.c: Likewise.
28325 * util/mkisofs/mkisofs.h: Likewise.
28326 * util/mkisofs/msdos_partition.h: Likewise.
28327 * util/mkisofs/multi.c: Likewise.
28328 * util/mkisofs/name.c: Likewise.
28329 * util/mkisofs/rock.c: Likewise.
28330 * util/mkisofs/tree.c: Likewise.
28331 * util/mkisofs/write.c: Likewise.
28332
5dde9afe
VS
283332010-05-17 Vladimir Serbinenko <phcoder@gmail.com>
28334
28335 Unify grub-mkimage accross platforms.
28336
28337 * Makefile.in (CPPFLAGS): Set GRUB_LIBDIR to $(libdir).
28338 * conf/common.rmk (bin_UTILITIES): Removed grub-mkelfimage.
28339 (grub_mkelfimage_SOURCES): Removed.
28340 (util/elf/grub-mkimage.c_DEPENDENCIES): Renamed to ..
28341 (util/grub-mkimage.c_DEPENDENCIES): .. this.
28342 (bin_UTILITIES): Add grub-mkimage.
28343 (grub_mkimage_SOURCES): New variable.
28344 (kernel_img_HEADERS): Remove machine/kernel.h.
28345 * conf/i386-pc.rmk (pkglib_IMAGES): Remove kernel.img.
28346 (pkglib_PROGRAMS): Add kernel.img.
28347 (kernel_img_HEADERS): Add machine/kernel.h.
28348 (kernel_img_FORMAT): Removed.
28349 (bin_UTILITIES): Remove grub-mkimage.
28350 (grub_mkimage_SOURCES): Removed.
28351 (grub_mkimage_CFLAGS): Likewise.
28352 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
28353 * conf/i386-qemu.rmk (pkglib_IMAGES): Remove kernel.img.
28354 (pkglib_PROGRAMS): Add kernel.img.
28355 (bin_UTILITIES): Remove grub-mkimage.
28356 (grub_mkimage_SOURCES): Removed.
28357 (grub_mkimage_CFLAGS): Likewise.
28358 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
28359 * conf/mips-qemu-mips.rmk (pkglib_IMAGES): Remove kernel.img.
28360 (pkglib_PROGRAMS): Add kernel.img.
28361 * conf/mips-yeeloong.rmk (pkglib_IMAGES): Remove kernel.img.
28362 (pkglib_PROGRAMS): Add kernel.img.
28363 * conf/mips.rmk (bin_UTILITIES): Remove grub-mkimage.
28364 (grub_mkimage_SOURCES): Removed.
28365 (grub_mkimage_CFLAGS): Likewise.
28366 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
28367 * conf/sparc64-ieee1275.rmk (pkglib_IMAGES): Remove kernel.img.
28368 (pkglib_PROGRAMS): Add kernel.img.
28369 (bin_UTILITIES): Remove grub-mkimage.
28370 (grub_mkimage_SOURCES): Removed.
28371 (grub_mkimage_CFLAGS): Likewise.
28372 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
28373 * conf/x86-efi.rmk (bin_UTILITIES): Remove grub-mkimage.
28374 (grub_mkimage_SOURCES): Removed.
28375 (grub_mkimage_CFLAGS): Likewise.
28376 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
28377 * configure.ac (machine_CFLAGS): Add "-DMACHINE".
28378 * include/grub/efi/pe32.h (grub_pe32_optional_header): Split into ...
28379 (grub_pe32_optional_header): ... this.
28380 (grub_pe64_optional_header): ... and this. All users updated.
28381 (GRUB_PE32_PE32_MAGIC): Split into ..
28382 (GRUB_PE32_PE32_MAGIC): .. this.
28383 (GRUB_PE32_PE64_MAGIC): .. and this.
28384 (GRUB_PE32_SIGNATURE_SIZE): New definition.
28385 * include/grub/elf.h (PT_GNU_STACK): New definition.
28386 * include/grub/i386/coreboot/kernel.h: Merged into include/grub/offsets.h. All users updated.
28387 * include/grub/i386/efi/kernel.h: Likewise.
28388 * include/grub/i386/kernel.h: Likewise.
28389 * include/grub/i386/pc/kernel.h: Likewise.
28390 * include/grub/i386/qemu/boot.h: Likewise.
28391 * include/grub/mips/kernel.h: Likewise.
28392 * include/grub/mips/qemu-mips/kernel.h: Likewise.
28393 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
28394 * include/grub/powerpc/kernel.h: Likewise.
28395 * include/grub/sparc64/ieee1275/boot.h: Likewise.
28396 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
28397 * include/grub/sparc64/kernel.h: Likewise.
28398 * include/grub/x86_64/efi/kernel.h: Likewise.
28399 * include/grub/x86_64/kernel.h: Likewise.
28400 * include/grub/offsets.h: New file.
28401 * include/grub/kernel.h (grub_module_info): Split into ...
28402 (grub_module_info32): ... this.
28403 (grub_module_info64): ... and this.
28404 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_KERNEL_SEG): Moved from here ...
28405 * include/grub/offsets.h (GRUB_BOOT_I386_PC_KERNEL_SEG): ... here.
28406 (grub_boot_blocklist): Moved from here ...
28407 * include/grub/offsets.h (grub_pc_bios_boot_blocklist): ... here.
28408 * include/grub/i386/pc/memory.h (GRUB_MEMORY_MACHINE_UPPER): Moved from here.
28409 * include/grub/offsets.h (GRUB_MEMORY_I386_PC_UPPER): .. here.
28410 * include/grub/types.h (grub_target_to_host16): Removed.
28411 (grub_target_to_host32): Likewise.
28412 (grub_target_to_host64): Likewise.
28413 (grub_host_to_target16): Likewise.
28414 (grub_host_to_target32): Likewise.
28415 (grub_host_to_target64): Likewise.
28416 (grub_host_to_target_addr): Likewise.
28417
28418 Support grub-mkrescue for efi, coreboot and qemu.
28419
28420 * conf/x86-efi.rmk (bin_SCRIPTS): Add grub-mkrescue.
28421 * kern/efi/init.c (grub_efi_set_prefix): Handle baked in prefix.
28422 * util/elf/grub-mkimage.c: Merged into util/grub-mkimage.c.
28423 * util/grub-mkrawimage.c: Moved from here ...
28424 * util/grub-mkimage.c: ... here. All users updated.
28425 (ALIGN_ADDR): Use image_target.
28426 (TARGET_NO_FIELD): New const.
28427 (image_target_desc): New type.
28428 (image_targets): New array.
28429 (grub_target_to_host64): Use image_target.
28430 (grub_target_to_host32): Likewise.
28431 (grub_target_to_host16): Likewise.
28432 (grub_host_to_target64): Likewise.
28433 (grub_host_to_target32): Likewise.
28434 (grub_host_to_target16): Likewise.
28435 (grub_host_to_target_addr): Likewise.
28436 (generate_image): Handle multiimage.
28437 (main): Require -O parameter. All users updated.
28438 * util/grub-mkimagexx.c: New file. Based on util/grub-mkrawimage.c and
28439 util/efi/grub-mkimage.c
28440 * util/grub-mkrescue.in: Handle coreboot, efi and qemu.
28441 New option --rom-directory.
28442 Use xorriso.
28443 * util/i386/efi/grub-mkimage.c: Removed.
28444 * util/i386/pc/grub-setup.c (grub_target_to_host16): New definition.
28445 (grub_target_to_host32): Likewise.
28446 (grub_target_to_host64): Likewise.
28447 (grub_host_to_target16): Likewise.
28448 (grub_host_to_target32): Likewise.
28449 (grub_host_to_target64): Likewise.
28450 * util/sparc64/ieee1275/grub-setup.c (grub_target_to_host16): New definition.
28451 (grub_target_to_host32): Likewise.
28452 (grub_target_to_host64): Likewise.
28453 (grub_host_to_target16): Likewise.
28454 (grub_host_to_target32): Likewise.
28455 (grub_host_to_target64): Likewise.
28456
f4fc97d0
BC
284572010-05-17 BVK Chaitanya <bvk.groups@gmail.com>
28458
28459 Source tree is reorganized for emu build.
28460
28461 * include/grub/util/console.h: Move from here...
28462 * include/grub/emu/console.h: ...to here.
28463 * include/grub/util/getroot.h: Move from here...
28464 * include/grub/emu/getroot.h: ...to here.
28465 * include/grub/util/hostdisk.h: Move from here...
28466 * include/grub/emu/hostdisk.h: ...to here.
28467 * util/console.c: Move from here...
28468 * kern/emu/console.c: ...to here.
28469 * util/getroot.c: Move from here...
28470 * kern/emu/getroot.c: ...to here.
28471 * util/grub-emu.c: Move from here...
28472 * kern/emu/main.c: ...to here.
28473 * util/hostdisk.c: Move from here...
28474 * kern/emu/hostdisk.c: ...to here.
28475 * util/hostfs.c: Move from here...
28476 * kern/emu/hostfs.c: ...to here.
28477 * util/mm.c: Move from here...
28478 * kern/emu/mm.c: ...to here.
28479 * util/pci.c: Move from here...
28480 * bus/emu/pci.c: ...to here.
28481 * util/sdl.c: Move from here...
28482 * video/emu/sdl.c: ...to here.
28483 * util/time.c: Move from here...
28484 * kern/emu/time.c: ...to here.
28485 * util/usb.c: Move from here...
28486 * bus/usb/emu/usb.c: ...to here.
28487
28488 * include/grub/emu/misc.h: New header for grub-emu functions.
28489 * kern/emu/misc.c: grub-emu functions separated from util/misc.c
28490
28491 * conf/any-emu.rmk: Rule updates for above renames.
28492 * conf/common.rmk: Likewise.
28493 * conf/i386-pc.rmk: Likewise.
28494 * conf/i386-qemu.rmk: Likewise.
28495 * conf/mips.rmk: Likewise.
28496 * conf/sparc64-ieee1275.rmk: Likewise.
28497 * conf/x86-efi.rmk: Likewise.
28498
28499 * disk/lvm.h: #include updates for above renames.
28500 * util/grub-mkrelpath.c: Likewise.
28501 * util/grub-probe.c: Likewise.
28502 * util/i386/pc/grub-setup.c: Likewise.
28503 * util/sparc64/ieee1275/grub-setup.c: Likewise.
28504 * kern/emu/console.c: Likewise.
28505 * kern/emu/getroot.c: Likewise.
28506 * kern/emu/hostdisk.c: Likewise.
28507 * kern/emu/main.c: Likewise. (was grub-emu.c earlier)
28508
28509 * include/grub/dl.h: Remove grub_dl_{ref,unref}.
28510 * include/grub/util/misc.h: Move grub-emu functions to emu/misc.h.
28511 * kern/dl.c: Handle null mod in grub_dl_{ref,unref}.
28512 * util/misc.c: Remove grub-emu functions.
28513
cced9145
VS
285142010-05-13 Vladimir Serbinenko <phcoder@gmail.com>
28515
28516 Fix gfxmenu crash.
28517 Reported by: Thorsten Grützmacher.
28518
28519 * gfxmenu/gui_circular_progress.c (circprog_destroy): Unregister
28520 timeout hook.
28521 (circprog_set_property): Register and unregister timeout hook.
28522 * gfxmenu/gui_label.c (grub_gui_label): New fields template and value.
28523 (label_destroy): Free template. and unregister hook.
28524 (label_set_state): New function.
28525 (label_set_property): Handle templates and hooks.
28526 * gfxmenu/gui_progress_bar.c (progress_bar_destroy): Unregister
28527 timeout hook.
28528 (progress_bar_set_property): Register and unregister timeout hook.
28529 * gfxmenu/view.c (TIMEOUT_COMPONENT_ID): Move from here ...
28530 * include/grub/gui.h (GRUB_GFXMENU_TIMEOUT_COMPONENT_ID): ...to here
28531 * gfxmenu/view.c (grub_gfxmenu_timeout_notifications): New variable.
28532 (update_timeout_visit): Removed.
28533 (update_timeouts): New function.
28534 (redraw_timeouts): Likewise.
28535 (grub_gfxmenu_print_timeout): Use update_timeouts and redraw_timeouts.
28536 (grub_gfxmenu_clear_timeout): Likewise.
28537 * include/grub/gui.h (grub_gfxmenu_set_state_t): New type.
28538 (grub_gfxmenu_timeout_notify): Likewise.
28539 (grub_gfxmenu_timeout_notifications): New external variable.
28540 (grub_gfxmenu_timeout_register): New function.
28541 (grub_gfxmenu_timeout_unregister): Likewise.
28542
c6e5caab
VS
285432010-05-09 Vladimir Serbinenko <phcoder@gmail.com>
28544
28545 Transform (broken) vga terminal into (working) vga video driver.
28546
28547 * conf/i386-pc.rmk (vga_mod_SOURCES): Change term/i386/pc/vga.c to
28548 video/i386/pc/vga.c.
28549 * include/grub/video.h (grub_video_driver_id):
28550 Add GRUB_VIDEO_DRIVER_VGA.
28551 * term/i386/pc/vga.c: Renamed to ...
28552 * video/i386/pc/vga.c: ...this
28553 (DEBUG_VGA): Removed.
28554 (CHAR_WIDTH): Likewise.
28555 (CHAR_HEIGHT): Likewise.
28556 (TEXT_WIDTH): Likewise.
28557 (TEXT_HEIGHT): Likewise.
28558 (DEFAULT_FG_COLOR): Likewise.
28559 (DEFAULT_BG_COLOR): Likewise.
28560 (colored_char): Likewise.
28561 (xpos): Likewise.
28562 (ypos): Likewise.
28563 (cursor_state): Likewise.
28564 (fg_color): Likewise.
28565 (bg_color): Likewise.
28566 (text_buf): Likewise.
28567 (page): Likewise.
28568 (font): Likewise.
28569 (framebuffer): New variable.
28570 (set_read_map): Disabled.
28571 (setup): New variable.
28572 (is_target): Likewise.
28573 (grub_vga_mod_init): Likewise.
28574 (grub_vga_mod_fini): Likewise.
28575 (check_vga_mem): Likewise.
28576 (write_char): Likewise.
28577 (write_cursor): Likewise.
28578 (scroll_up): Likewise.
28579 (grub_vga_putchar): Likewise.
28580 (grub_vga_getcharwidth): Likewise.
28581 (grub_vga_getwh): Likewise.
28582 (grub_vga_getxy): Likewise.
28583 (grub_vga_gotoxy): Likewise.
28584 (grub_vga_cls): Likewise.
28585 (grub_vga_setcolorstate): Likewise.
28586 (grub_vga_setcursor): Likewise.
28587 (grub_video_vga_init): New function.
28588 (grub_video_vga_setup): Likewise.
28589 (grub_video_vga_fini): Likewise.
28590 (update_target): Likewise.
28591 (grub_video_vga_blit_bitmap): Likewise.
28592 (grub_video_vga_blit_render_target): Likewise.
28593 (grub_video_vga_set_active_render_target): Likewise.
28594 (grub_video_vga_get_active_render_target): Likewise.
28595 (grub_video_vga_swap_buffers): Likewise.
28596 (grub_video_vga_set_palette): Likewise.
28597 (grub_video_vga_get_info_and_fini): Likewise.
28598 (grub_vga_term): Removed.
28599 (grub_video_vga_adapter): New variable.
28600 (GRUB_MOD_INIT): Register a video driver instead of terminal.
28601 (GRUB_MOD_FINI): Unrefister a video driver instead of terminal.
28602
2bf61a98
VS
286032010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
28604
28605 * video/readers/jpeg.c: Indented.
28606
09ddcd11
VS
286072010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
28608
28609 Various jpeg cleanups.
28610
28611 * video/readers/jpeg.c (grub_jpeg_get_huff_code): Use ARRAY_SIZE.
28612 (grub_jpeg_decode_quan_table): Use sizeof.
28613 (grub_jpeg_decode_du): Use ARRAY_SIZE.
28614
e5507505
PH
286152010-05-05 Peter Hurley <No e-mail available> (tiny change)
28616
28617 * video/readers/jpeg.c (grub_jpeg_decode_huff_table): Loop over all
28618 tables. Ignore non-last ac bit.
28619 (grub_jpeg_decode_quan_table): Likewise.
28620
7e720a9b
VS
286212010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
28622
28623 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New value
28624 GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM.
28625 * kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
28626 GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM on qemu.
28627 * kern/ieee1275/init.c (grub_claim_heap): Don0t allocate below
28628 1.5MiB if GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM is set.
28629
a7fc080b
VS
286302010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
28631
28632 * term/ieee1275/ofconsole.c (grub_ofconsole_getkey): Fix off-by-one
28633 error.
28634
2bf6012d
VS
286352010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
28636
28637 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Support C0 code.
28638
265d68cd
VS
286392010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
28640
28641 * commands/parttool.c (grub_cmd_parttool): Fix #if !GRUB_NO_MODULES
28642 condition.
28643
286442010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
7dd5a111
VS
28645
28646 * kern/mm.c (grub_real_malloc): Put magic and size assignment in common
28647 part.
28648
265d68cd 286492010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
9b058d52
VS
28650
28651 * kern/mm.c (grub_mm_init_region): Check for region size after aligning
28652 pointers.
28653
265d68cd 286542010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
25893831
VS
28655
28656 * kern/mm.c (grub_real_malloc): Fix size calculation when extra == 0.
28657
d1b61374
CF
286582010-05-01 Christian Franke <franke@computer.org>
28659
28660 * util/grub-mkconfig_lib.in (make_system_path_relative_to_its_root):
28661 Remove broken Cygwin path conversion.
28662 * util/misc.c: [__CYGWIN__] Add include and define.
28663 [__CYGWIN__] (get_win32_path): Copy function from getroot.c, modify
28664 for Cygwin 1.7.
28665 (make_system_path_relative_to_its_root): Simplify loop, replace early
28666 return by break.
28667 [__CYGWIN__] Add conversion to win32 path.
28668 Include "/" case in trailing slash removal.
28669
3558c6e9
VS
286702010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28671
28672 * kern/main.c (grub_load_config): Fix copy-pasted comment.
28673 Reported by: Seth Goldberg
28674
f5f3ff93
VS
286752010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28676
28677 * commands/help.c (grub_cmd_help): Fix a typo.
28678 Reported by: Seth Goldberg
28679
d8b5cd40
VS
286802010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28681
28682 * commands/hashsum.c (GRUB_MOD_INIT): Remove duplication of command
28683 name and add N_.
28684 * commands/i386/pc/drivemap.c (GRUB_MOD_INIT): Likewise.
28685 * commands/iorw.c (GRUB_MOD_INIT): Likewise.
28686 * commands/password_pbkdf2.c (GRUB_MOD_INIT): Likewise.
28687 * commands/regexp.c (GRUB_MOD_INIT): Likewise.
28688 * commands/setpci.c (GRUB_MOD_INIT): Likewise.
28689 * commands/terminal.c (GRUB_MOD_INIT): Likewise.
28690 * efiemu/main.c (GRUB_MOD_INIT): Likewise.
28691 * font/font_cmd.c (GRUB_MOD_INIT): Likewise.
28692 * kern/corecmd.c (GRUB_MOD_INIT): Likewise.
28693 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
28694 * normal/context.c (GRUB_MOD_INIT): Likewise.
28695 * normal/main.c (GRUB_MOD_INIT): Likewise.
28696 * term/gfxterm.c (GRUB_MOD_INIT): Likewise.
28697 * term/serial.c (GRUB_MOD_INIT): Likewise.
28698 * term/terminfo.c (GRUB_MOD_INIT): Likewise.
28699
88c14915
VS
287002010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28701
28702 * kern/mm.c (grub_real_malloc): Satisfy alignment requirement when
28703 extra == 0.
28704
165134bc
VS
287052010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28706
28707 * commands/iorw.c: New file.
28708 * conf/i386.rmk (pkglib_MODULES): Add iorw.mod.
28709 (iorw_mod_SOURCES): New variable.
28710 (iorw_mod_CFLAGS): Likewise.
28711 (iorw_mod_LDFLAGS): Likewise.
28712
c5ac9b32
VS
287132010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28714
28715 Hotkey support
28716
28717 * include/grub/menu.h (grub_menu_entry): New field 'hotkey'.
28718 * normal/main.c (hotkey_aliases): New variable.
28719 (grub_normal_add_menu_entry): Parse "--hotkey".
28720 * normal/menu_text.c (run_menu): Handle hotkeys.
28721
ce60689c
VS
287222010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28723
28724 * kern/i386/coreboot/init.c (grub_machine_init): Call
28725 grub_machine_mmap_init on qemu.
28726
0359d006
VS
287272010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28728
28729 * boot/i386/qemu/boot.S: Add a missing .code16.
28730
7819a456
VS
287312010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28732
28733 Use LBIO on coreboot.
28734
28735 * conf/i386-coreboot.rmk (kernel_img_SOURCES): Change
28736 kern/i386/multiboot_mmap.c to kern/i386/coreboot/mmap.c.
28737 * include/grub/i386/coreboot/memory.h (GRUB_LINUXBIOS_MEMBER_LINK):
28738 New declaration.
28739 * kern/i386/coreboot/init.c (grub_machine_init): Don't call
28740 grub_machine_mmap_init on coreboot.
28741 * kern/i386/coreboot/mmap.c (grub_linuxbios_table_iterate): Handle
28742 GRUB_LINUXBIOS_MEMBER_LINK.
28743 (grub_machine_mmap_iterate): Fix declaration.
28744 * kern/i386/coreboot/startup.S: Don't save mbi location on coreboot.
28745
7210dca9
VS
287462010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28747
28748 Split coreboot and multiboot ports.
28749
28750 * conf/i386-multiboot.rmk: New file.
28751 * configure.ac: Add multiboot port.
28752 * include/grub/i386/multiboot/boot.h: New file.
28753 * include/grub/i386/multiboot/console.h: Likewise.
28754 * include/grub/i386/multiboot/init.h: Likewise.
28755 * include/grub/i386/multiboot/kernel.h: Likewise.
28756 * include/grub/i386/multiboot/loader.h: Likewise.
28757 * include/grub/i386/multiboot/memory.h: Likewise.
28758 * include/grub/i386/multiboot/serial.h: Likewise.
28759 * include/grub/i386/multiboot/time.h: Likewise.
28760 * include/grub/multiboot.h: Add GRUB_MACHINE_MULTIBOOT to ifdef.
28761 * loader/multiboot.c: Likewise.
28762 * loader/multiboot_mbi2.c: Likewise.
28763 * util/grub-mkrescue.in: Generate multiboot rescue.
28764
6f8aaf68
VS
287652010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28766
3080f7a7
VS
28767 * kern/parser.c (grub_parser_execute): Cope with read-only config.
28768
287692010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28770
28771 Merge handling of input and output terminals. Fix a hang.
6f8aaf68
VS
28772
28773 * commands/terminal.c (abstract_terminal): New struct.
28774 (handle_command): New function. Based on grub_cmd_terminal_input.
28775 (grub_cmd_terminal_input): Use handle_command.
28776 (grub_cmd_terminal_output): Use handle_command.
28777
a8ebb841
BC
287782010-05-01 BVK Chaitanya <bvk.groups@gmail.com>
28779
28780 Fix comment handling.
28781
28782 * tests/grub_script_comments.in: New testcase.
28783 * conf/tests.rmk: Rules for new testcase.
28784 * script/yylex.l: Updated flex rules.
28785
bb06ba08
ST
287862010-04-28 Samuel Thibault <samuel.thibault@ens-lyon.org>
28787
28788 * docs/grub.texi (play): Document that zero pitches produce rests.
c76a1838
ST
28789 * commands/i386/pc/play.c (grub_cmd_play): Call 'grub_file_open' only
28790 if argc is 1.
bb06ba08 28791
cc9d2425
VS
287922010-04-27 Vladimir Serbinenko <phcoder@gmail.com>
28793
28794 * conf/x86-efi.rmk (linux_mod_SOURCES): Write explicitly to avoid
28795 autogen issues.
28796
460d8402
CF
287972010-04-26 Christian Franke <franke@computer.org>
28798
28799 * include/grub/util/getroot.h (grub_get_prefix): Remove prototype.
28800 * util/getroot.c [__CYGWIN__] (get_win32_path): Remove function.
28801 (grub_get_prefix): Remove function.
28802 * util/grub-emu.c (main): Replace grub_get_prefix () call by
28803 make_system_path_relative_to_its_root ().
28804 * util/sparc64/ieee1275/grub-setup.c (main): Likewise.
28805
553c01f9
CF
288062010-04-24 Christian Franke <franke@computer.org>
28807
28808 * Makefile.in (TARGET_LDFLAGS): Add -static-libgcc.
28809 (kernel_img_LDFLAGS): Remove -static-libgcc.
28810
2aec1692
CF
288112010-04-24 Christian Franke <franke@computer.org>
28812
28813 * configure.ac: Do not CHECK_BSS_START_SYMBOL
28814 and CHECK_END_SYMBOL if grub-emu is built.
28815 Unset TARGET_OBJ2ELF if grub-emu is built
28816 without module support.
28817
f67dc308
JS
288182010-04-24 Jiro SEKIBA <jir@unicus.jp>
28819
28820 Nilfs2 support.
28821
28822 * conf/common.rmk (grub_probe_SOURCES): Add fs/nilfs2.c.
28823 (grub_fstest_SOURCES): Likewise.
28824 (pkglib_MODULES): Add nilfs2.mod.
28825 (nilfs2_mod_SOURCES): New variable.
28826 (nilfs2_mod_CFLAGS): Likewise.
28827 (nilfs2_mod_LDFLAGS): Likewise.
28828 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/nilfs2.c.
28829 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Add fs/nilfs2.c.
28830 * fs/nilfs2.c: New file.
28831
4ba8d354
VS
288322010-04-21 Vladimir Serbinenko <phcoder@gmail.com>
28833
28834 * configure.ac: Refuse to compile for x86_64-efi is mcmodel=large
28835 is not supported.
28836
0d2c20c6
GS
288372010-04-19 Grégoire Sutre <gregoire.sutre@gmail.com>
28838
28839 Add grub-mkconfig support for NetBSD.
28840
28841 * util/grub.d/10_netbsd.in: grub-mkconfig helper script for NetBSD.
28842 * util/grub-mkconfig.in: export new NetBSD specific variables.
28843 * po/POTFILES-shell: added 10_netbsd.in.
28844 * util/grub-mkconfig_lib.in: check for gettext binary, default to echo.
28845
bc4a2d83
BC
288462010-04-19 BVK Chaitanya <bvk.groups@gmail.com>
28847
28848 Fix emu build with grub-emu-pci and grub-emu-modules.
28849
28850 * include/grub/util/misc.h: Export grub_util_{info,error,warn}
28851 functions.
28852 * include/grub/libpciaccess.h: New file.
28853 * conf/any-emu.rmk: Update kernel headers for emu build.
28854
f48c87aa
VS
288552010-04-19 Vladimir Serbinenko <phcoder@gmail.com>
28856
28857 * fs/udf.c (grub_udf_iterate_dir): Silence a spurious warning.
28858
18959385
VS
288592010-04-19 Vladimir Serbinenko <phcoder@gmail.com>
28860
28861 * fs/udf.c (grub_udf_iterate_dir): Decode the Unicode filenames.
28862
0037de3f
VS
288632010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
28864
28865 * boot/sparc64/ieee1275/boot.S: Various size-reducing changes.
28866 Retrieve chosen/bootpath if bootpath isn't hardcoded.
28867 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Add
28868 util/ieee1275/ofpath.c.
28869 * util/sparc64/ieee1275/grub-ofpathname.c: Renamed to ...
28870 * util/ieee1275/grub-ofpathname.c: ... this. All users updated
28871 * include/grub/sparc64/ieee1275/boot.h
28872 (GRUB_BOOT_MACHINE_KERNEL_SECTOR): Renamed to ...
28873 (GRUB_BOOT_MACHINE_KERNEL_BYTE): ...this. Moved 8 bytes lower.
28874 * util/hostdisk.c (grub_util_biosdisk_get_osdev): New function.
28875 * util/ieee1275/ofpath.c (grub_util_devname_to_ofpath): Make argument
28876 const char *.
28877 * util/sparc64/ieee1275/grub-setup.c (compute_dest_ofpath): Removed.
28878 (setup): Use KERNEL_BYTE instead of KERNEL_SECTOR.
28879 Use grub_util_devname_to_ofpath. Zero-fill boot_devpath on same disk
28880 install.
28881
38e55e90
GS
288822010-04-18 Grégoire Sutre <gregoire.sutre@gmail.com>
28883
28884 * util/grub-mkconfig.in: Corrected two == equality tests.
28885 Set grub_prefix as in grub-install for NetBSD and OpenBSD.
28886 * configure.ac: All definitions and uses of TARGET_IMG_LDFLAGS_AC now
28887 expect a number appended to it.
28888 * acinclude.m4 (grub_PROG_OBJCOPY_ABSOLUTE): ${TARGET_IMG_LDFLAGS_AC}
28889 expects a number appended to it.
28890
a9e6ff28
VS
288912010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
28892
28893 * po/POTFILES: Renamed multiboot_loader.c to multiboot.c
28894
0b830b8f
VS
288952010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
28896
28897 * util/hostdisk.c (make_device_name): Change to new partition naming.
28898
0973daeb
VS
288992010-04-17 Vladimir Serbinenko <phcoder@gmail.com>
28900
28901 * disk/lvm.c (grub_lvm_memberlist): Issue an error if pv->disk = 0.
28902
460d8402 289032010-04-17 Christian Franke <franke@computer.org>
ebfe7eb4
CF
28904
28905 * Makefile.in: Add missing localedir setting.
28906
0b456309
CW
289072010-04-14 Colin Watson <cjwatson@ubuntu.com>
28908
28909 Restore TEXTDOMAINDIR correction from r1889, lost apparently by
28910 mistake in r2156. Noticed by Anthony Fok.
28911
28912 * util/grub.d/10_kfreebsd.in (TEXTDOMAINDIR): Set to lowercased
28913 @localedir@.
28914 * util/grub.d/10_linux.in (TEXTDOMAINDIR): Likewise.
28915
08f46d62
BC
289162010-04-14 BVK Chaitanya <bvk.groups@gmail.com>
28917
28918 Fix a spurious, uninitialized variable warning.
28919
28920 * loader/i386/bsdXX.c (grub_freebsd_load_elfmodule_obj):
28921 Initialize variable, shdr.
28922 (grub_freebsd_load_elfmodule): Likewise.
28923 (grub_freebsd_load_elf_meta): Likewise.
28924
8c4a72d4
BC
289252010-04-13 BVK Chaitanya <bvk.groups@gmail.com>
28926
28927 Fix for escaped dollar in double quoted strings.
28928
28929 * script/yylex.l: Updated flex rules.
28930 * conf/tests.rmk: Rule for new testcase.
28931 * tests/grub_script_dollar.in: New testcase.
28932
ce44826e
CPE
289332010-04-13 Carles Pina i Estany <carles@pina.cat>
289342010-04-13 Colin Watson <cjwatson@ubuntu.com>
28935
28936 Enclose all translated strings in grub.cfg in single quotes, and
28937 escape them appropriately (Ubuntu bug #552921).
28938
28939 * util/grub-mkconfig_lib.in (gettext_quoted): New function.
28940 * util/grub.d/10_hurd.in: Use it.
28941 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
28942 * util/grub.d/10_linux.in (linux_entry): Likewise.
28943
4b0cd8f8
VS
289442010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
28945
28946 Fix cygwin compilation.
28947
28948 * configure.ac: Define NEED_REGISTER_FRAME_INFO.
28949 * include/grub/misc.h (__register_frame_info)
28950 [NEED_REGISTER_FRAME_INFO && !UTIL]: New export.
28951 (__deregister_frame_info) [NEED_REGISTER_FRAME_INFO && !UTIL]: Likewise.
28952 * kern/misc.c (__register_frame_info)
28953 [NEED_REGISTER_FRAME_INFO && !UTIL]: New empty function.
28954 (__deregister_frame_info) [NEED_REGISTER_FRAME_INFO && !UTIL]: Likewise.
28955
01fcf061
VS
289562010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
28957
28958 * configure.ac: Respect grub_cv_asm_uscore when defining dummy symbols.
28959
5d04b11e
VS
289602010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
28961
28962 Unify libgcc processing.
28963
28964 * Makefile.in (kernel_img_LDFLAGS): New variable.
28965 * conf/common.rmk (kernel_img_HEADERS): Add libgcc.h.
28966 * conf/i386-coreboot.rmk (kernel_img_LDFLAGS): Append instead of
28967 overwriting.
28968 * conf/i386-ieee1275.rmk (kernel_img_LDFLAGS): Likewise.
28969 * conf/i386-pc.rmk (kernel_img_LDFLAGS): Likewise.
28970 * conf/i386-qemu.rmk (kernel_img_LDFLAGS): Likewise.
28971 * conf/x86-efi.rmk (kernel_img_LDFLAGS): Likewise.
28972 * conf/mips-qemu-mips.rmk (kernel_img_LDFLAGS): Append instead of
28973 overwriting. Remove -lgcc and -static-libgcc
28974 * conf/mips-yeeloong.rmk (kernel_img_LDFLAGS): Likewise.
28975 * conf/mips.rmk (kernel_img_HEADERS): Remove cpu/libgcc.h
28976 * conf/powerpc-ieee1275.rmk (kernel_img_HEADERS): Remove cpu/libgcc.h
28977 (kernel_img_LDFLAGS): Append instead of overwriting.
28978 Remove -lgcc and -static-libgcc
28979 * conf/sparc64-ieee1275.rmk: Likewise.
28980 * include/grub/powerpc/libgcc.h: Move to ...
28981 * include/grub/libgcc.h: .. this.
28982 * include/grub/libgcc.h: Don't export most of the function on x86.
28983 (__bswapsi2): New export.
28984 (__bswapdi2): Likewise.
28985 * include/grub/mips/libgcc.h: Removed.
28986 * include/grub/sparc64/libgcc.h: Likewise.
28987
b7f3ac29
VS
289882010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
28989
28990 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Remove
28991 disk_info_msg (conflicts with gettexting into languages with cases).
28992
2c7031b1
GS
289932010-04-10 Grégoire Sutre <gregoire.sutre@gmail.com>
28994
28995 Add grub-probe support for NetBSD.
28996
28997 * util/getroot.c (find_root_device): Convert block device to
28998 character device on NetBSD.
28999 * util/probe.c (probe): Require character device on NetBSD.
29000 * util/hostdisk.c: NetBSD specific headers.
29001 (configure_device_driver): new function to tune device driver
29002 parameters (currently only for NetBSD floppy driver).
29003 (grub_util_biosdisk_open): NetBSD specific code (get disk size
29004 via disklabel ioctl).
29005 (open_device): call configure_device_driver on NetBSD.
29006 (convert_system_partition_to_system_disk): NetBSD specific code.
29007 (device_is_wholedisk): Likewise.
29008 (grub_util_biosdisk_get_grub_dev): Likewise.
29009 (make_device_name): Fixed a typo in bsd_part_str.
29010 * configure.ac: check for opendisk() and getrawpartition() on
29011 NetBSD and set LIBUTIL.
29012 * Makefile.in: add LIBUTIL to LIBS.
29013
f516290c
BC
290142010-04-10 BVK Chaitanya <bvk.groups@gmail.com>
29015
29016 Documentation fix.
29017
29018 * util/grub-script-check.c: Better help message.
29019
d8dcc0df
BC
290202010-04-10 BVK Chaitanya <bvk.groups@gmail.com>
29021
29022 Fix FreeBSD build.
29023
29024 * configure.ac: Flex version check.
29025 * conf/common.rmk: Add -Wno-error to sh.mod.
29026 * script/yylex.l: Remove all #pragma.
29027
6734334a
VS
290282010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
29029
29030 * include/grub/util/misc.h (canonicalise_file_name): Add missing
29031 prototype.
29032 Reported by: Seth Goldberg.
29033
daea6abd
VS
290342010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
29035
29036 * loader/multiboot.c (GRUB_MOD_INIT) [GRUB_USE_MULTIBOOT2]:
29037 Rename "module" to "module2".
29038 Reported by: Seth Goldberg.
29039
f2fd9d2b
VS
290402010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
29041
29042 * include/grub/efi/memory.h (grub_machine_mmap_iterate): Remove
29043 EXPORT_FUNC.
29044 Reported by: Seth Goldberg.
29045
be124579
VS
290462010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
29047
29048 * lib/posix_wrap/locale.h: Add missing file.
29049 Reported by: Seth Goldberg.
29050
ef5da797
VS
290512010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
29052
29053 grub-emu module load support.
29054
29055 * Makefile.in (TARGET_NO_MODULES): New variable. All users of
29056 NO_DYNAMIC_MODULES switched to this.
29057 (TARGET_CFLAGS): Add -DGRUB_TARGET_NO_MODULES=1 if applicable.
29058 (CFLAGS): Likewise.
29059 * conf/any-emu.rmk: Generate symlist.
29060 (kernel_img_HEADERS): Add util/datetime.h.
29061 (kernel_img_HEADERS) [sdl]: Add sdl.h.
29062 (kernel_img_HEADERS) [libusb]: Add libusb.h.
29063 (kernel_img_SOURCES) [TARGET_NO_MODULES = no && !x86]: Add
29064 kern/$(target_cpu)/cache.S.
29065 * configure.ac (grub-emu-modules): New option.
29066 * genmk.rb: Handle multiple source lists.
29067 * include/grub/sdl.h: New file.
29068 * include/grub/libusb.h: Likewise.
29069 * util/grub-emu.c (main): Hanle (host) root.
29070 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Error with
29071 GRUB_ERR_UNKNOWN_DEVICE.
29072 * util/misc.c: Move mm functions to ...
29073 * util/mm.c: ... here. All users updated.
29074
47822096
VS
290752010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
29076
29077 * Makefile.in (RMKFILES): Search in srcdir and not current directory.
29078 (MAINTAINER_CLEANFILES): Don't add $(srcdir) to MKFILES. Add few
29079 missing files.
29080 (maintainer-clean): Remove libgcrypt-grub.
29081
5d7e7445
VS
290822010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
29083
29084 * term/efi/console.c (grub_console_checkkey): Macroify key contants.
29085
25f4e252
EC
290862010-04-09 EFI Coder <eficoder@hotmail.com>
29087
29088 * normal/menu_text.c (print_message): Clean up the message and show
29089 the Fn information when on EFI
29090 * term/efi/console.c (grub_console_checkkey): Add F4 support.
29091
027de555
VS
290922010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
29093
29094 * normal/autofs.c (read_fs_list): New parameter 'prefix'.
29095 All users updated.
29096 * normal/crypto.c (read_crypto_list): Likewise.
29097 * normal/dyncmd.c (read_command_list): Likewise.
29098 * normal/term.c (read_terminal_list): Likewise.
29099 * normal/main.c (read_lists): Use explicit prefix.
29100 (read_lists_hook): Use read_lists.
29101 (grub_normal_execute): Likewise.
29102
47779711
VS
291032010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
29104
29105 * util/grub-mkrescue.in: Fix incorrect path in coreboot part.
29106 Reported by: Thomas Schmitt.
29107 Add -no-emul-boot to grub-mkisofs parameters.
29108
1118c32e
VS
291092010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
29110
29111 * font/font.c: Indented.
29112
7d652447
BC
291132010-04-09 BVK Chaitanya <bvk.groups@gmail.com>
29114
29115 Elif support to GRUB script (by Deepak Vankadaru).
29116
29117 * tests/grub_script_if.in: New testcase.
29118 * conf/tests.rmk: Rule for new testcase.
29119 * script/parser.y: Grammar rules for elif.
29120
34bb22df
BC
291212010-04-09 BVK Chaitanya <bvk.groups@gmail.com>
29122
29123 While and until loops support to GRUB script.
29124
29125 * include/grub/script_sh.h (grub_script_cmdwhile): New struct.
29126 (grub_script_create_cmdwhile): New function prototype.
29127 (grub_script_execute_cmdwhile): New function prototype.
29128 * script/execute.c (grub_script_execute_cmdwhile): New function.
29129 * script/parser.y (command): New commands.
29130 (whilecmd): New grammar rule.
29131 (untilcmd): New grammar rule.
29132 * script/script.c (grub_script_create_cmdwhile): New function.
29133 * util/grub-script-check.c (grub_script_execute_cmdwhile): New
29134 function.
29135
29136 * tests/grub_script_while1.in: New testcase.
29137 * conf/tests.rmk: Rule for new testcase.
29138
e215d8e0
VS
291392010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
29140
29141 * util/grub.d/00_header.in: Add few missing quotes. Recognise *.jpeg
29142 as *.jpg.
29143
d7c43ba1
MV
291442010-04-09 Mario Vazquez <mariovazq@gmail.com>
29145
29146 GRUB_BACKGROUND support.
29147
29148 * util/grub-mkconfig.in: Export GRUB_BACKGROUND.
29149 * util/grub.d/00_header.in: Parse GRUB_BACKGROUND.
29150
d64795c0
VS
291512010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
29152
29153 Load fonts and modules for gfxmenu in grub-mkconfig.
d7c43ba1 29154 Idea by: Mario Vazquez
d64795c0
VS
29155
29156 * util/grub.d/00_header.in: Load pf2 and image modules.
29157
f267f83a
VS
291582010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
29159
29160 grub-mkconfig multiple terminal support.
29161
29162 * util/grub-mkconfig.in: Handle multiple terminals correctly.
29163 * util/grub.d/00_header.in: Likewise.
29164
b7841ceb
VS
291652010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
29166
29167 * Makefile.in: Specify files explicitly instead of using $< and $@ since
29168 we use cd $(srcdir).
29169
df60998c
CW
291702010-04-08 Colin Watson <cjwatson@ubuntu.com>
29171
29172 * util/grub.d/10_linux.in: Only use the first word of
29173 GRUB_DISTRIBUTOR for --class, to avoid problems if somebody puts
29174 spaces in GRUB_DISTRIBUTOR.
29175 * util/grub.d/10_kfreebsd.in: Likewise.
29176 * util/grub.d/10_hurd.in: Likewise.
29177
fa09c82e
BC
291782010-04-06 BVK Chaitanya <bvk.groups@gmail.com>
29179
14e18ae3 29180 Fix unit testing framework for Qemu 0.12.
fa09c82e
BC
29181
29182 * tests/util/grub-shell.in: Remove -serial stdio option.
29183
daf892b3
BC
291842010-04-06 Vladimir Serbinenko <phcoder@gmail.com>
29185
29186 POSIX header file wrappers.
29187
29188 * lib/posix_wrap/assert.h: New file. Wrapper for its POSIX
29189 equivalents.
29190 * lib/posix_wrap/ctype.h: Likewise.
29191 * lib/posix_wrap/errno.h: Likewise.
29192 * lib/posix_wrap/langinfo.h: Likewise.
29193 * lib/posix_wrap/limits.h: Likewise.
29194 * lib/posix_wrap/localcharset.h: Likewise.
29195 * lib/posix_wrap/stdint.h: Likewise.
29196 * lib/posix_wrap/stdio.h: Likewise.
29197 * lib/posix_wrap/stdlib.h: Likewise.
29198 * lib/posix_wrap/string.h: Likewise.
29199 * lib/posix_wrap/sys/types.h: Likewise.
29200 * lib/posix_wrap/unistd.h: Likewise.
29201 * lib/posix_wrap/wchar.h: Likewise.
29202 * lib/posix_wrap/wctype.h: Likewise.
29203 * conf/common.rmk (grub_script.yy.c): Remove #include elimination.
29204 (grub_script.yy.h): Likewise.
29205 * script/yylex.l: Remove POSIX emulation #defines.
29206 * Makefile.in (POSIX_CFLAGS): New variable.
29207 (GNULIB_UTIL_CFLAGS): Likewise.
29208
29209 Regexp support.
29210
29211 * conf/common.rmk (pkglib_MODULES): Add regexp.mod.
29212 (regexp_mod_SOURCES): New variable.
29213 (regexp_mod_CFLAGS): Likewise.
29214 (regexp_mod_LDFLAGS): Likewise.
29215 * commands/regexp.c: New file.
29216 * gnulib/regcomp.c: New file. Imported from gnulib.
29217 * gnulib/regex.c: Likewise.
29218 * gnulib/regex_internal.c: Likewise.
29219 * gnulib/regex_internal.h: Likewise.
29220 * gnulib/regexec.c: Likewise.
29221 * gnulib/regex.h: Likewise.
29222
974ac4f7
VS
292232010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
29224
29225 * loader/i386/multiboot_mbi.c (grub_multiboot_load): Correctly report
29226 unsupported video mode types.
29227
2622c3ff
VS
292282010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
29229
29230 * kern/i386/pc/startup.S (grub_getrtsecs): Removed (dead code).
29231
064cb524
VS
292322010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
29233
29234 * include/grub/i386/pc/init.h (grub_get_mmap_entry): Don't export.
29235 * conf/i386-pc.rmk (kernel_img_HEADERS): Remove machine/init.h.
29236
a8c3b552
VS
292372010-04-04 Vladimir Serbinenko <phcoder@gmail.com>
29238
29239 Remove unused grub_vga_get_font.
29240
29241 * kern/i386/pc/startup.S (grub_vga_get_font): Removed.
29242 * include/grub/i386/pc/vga.h (grub_vga_get_font): Likewise.
29243
187bbe3d
GS
292442010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
29245
29246 * kern/misc.c: Disable the __enable_execute_stack hack for utilities.
29247 * include/grub/misc.h: Likewise.
29248
b9396631
GS
292492010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
29250
29251 * util/grub-install.in: Add `|| exit 1' to all grub-probe calls
29252 for which failure is fatal.
29253
50479feb
GS
292542010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
29255
29256 * util/grub-install.in: Use mkdir -p to create grub directory.
29257 * util/i386/efi/grub-install.in: Likewise.
29258 * util/ieee1275/grub-install.in: Likewise.
29259
b1654fdf
GS
292602010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
29261
29262 * Makefile.in (LEX): new variable.
29263
bd5a6415
GS
292642010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
29265
29266 * util/i386/efi/grub-dumpdevtree: replaced the non-portable `==' by
29267 `=' and added double quotes on operands of this equality test.
29268
3db3a82b
VS
292692010-04-03 Vladimir Serbinenko <phcoder@gmail.com>
29270
29271 * Makefile.in (uninstall): Remove a leftover debug echo.
29272 Reported by: Grégoire Sutre
29273
38023412
VS
292742010-04-03 Vladimir Serbinenko <phcoder@gmail.com>
29275
29276 MIPS multiboot2 support.
29277
29278 * conf/mips.rmk (pkglib_MODULES): Add multiboot2.mod.
29279 (multiboot2_mod_SOURCES): New variable.
29280 (multiboot2_mod_CFLAGS): Likewise.
29281 (multiboot2_mod_LDFLAGS): Likewise.
29282 (multiboot2_mod_ASFLAGS): Likewise.
29283 * include/grub/i386/multiboot.h (MULTIBOOT_INITIAL_STATE): New
29284 definition.
29285 (MULTIBOOT_ENTRY_REGISTER): Likewise.
29286 (MULTIBOOT_MBI_REGISTER): Likewise.
29287 (MULTIBOOT_ARCHITECTURE_CURRENT): Likewise.
29288 (MULTIBOOT_ELF32_MACHINE): Likewise.
29289 (MULTIBOOT_ELF64_MACHINE): Likewise.
29290 * include/grub/mips/multiboot.h: New file.
29291 * include/grub/video.h (grub_video_driver_id): New type
29292 GRUB_VIDEO_DRIVER_SM712.
29293 (grub_video_get_info_and_fini): Export.
29294 (grub_video_get_palette): Likewise.
29295 (grub_video_get_driver_id): Likewise.
29296 * include/multiboot2.h: Resynced with spec.
29297 * loader/i386/multiboot.c: Moved from here ...
29298 * loader/multiboot.c: ... here. All users updated.
29299 (grub_multiboot_boot): Use platform-specific macros.
29300 * loader/i386/multiboot_elfxx.c: Moved from here ...
29301 * loader/multiboot_elfxx.c: ... here. All users updated.
29302 (E_MACHINE): Use MULTIBOOT_ELF32_MACHINE and MULTIBOOT_ELF64_MACHINE.
29303 * loader/i386/multiboot_mbi2.c (grub_multiboot_load): Check arcitecture.
29304 * video/sm712.c (grub_video_sm712_adapter): Add missing id field.
29305
47674667
VS
293062010-04-02 Vladimir Serbinenko <phcoder@gmail.com>
29307
29308 Import gnulib argp module.
29309
29310 * gnulib/argp-ba.c: New file.
29311 * gnulib/argp-eexst.c: Likewise.
29312 * gnulib/argp-fmtstream.c: Likewise.
29313 * gnulib/argp-fmtstream.h: Likewise.
29314 * gnulib/argp-fs-xinl.c: Likewise.
29315 * gnulib/argp-help.c: Likewise.
29316 * gnulib/argp-namefrob.h: Likewise.
29317 * gnulib/argp-parse.c: Likewise.
29318 * gnulib/argp-pin.c: Likewise.
29319 * gnulib/argp-pv.c: Likewise.
29320 * gnulib/argp-pvh.c: Likewise.
29321 * gnulib/argp-version-etc.c: Likewise.
29322 * gnulib/argp-version-etc.h: Likewise.
29323 * gnulib/argp-xinl.c: Likewise.
29324 * gnulib/argp.h: Likewise.
29325
495442ed
VS
293262010-03-31 Vladimir Serbinenko <phcoder@gmail.com>
29327
29328 * kern/device.c (grub_device_iterate): Clear errors after failed
29329 opening device.
29330
f9fd65df
VS
293312010-03-31 Vladimir Serbinenko <phcoder@gmail.com>
29332
29333 * kern/ieee1275/openfw.c (grub_children_iterate): Skip device itself if
29334 returned by firmware.
29335
af09641e
VS
293362010-03-30 Vladimir Serbinenko <phcoder@gmail.com>
29337
29338 * loader/i386/multiboot_mbi2.c (retrieve_video_parameters): Fix
29339 compilation on coreboot and qemu
29340
016883a5
VS
293412010-03-28 Vladimir Serbinenko <phcoder@gmail.com>
29342
29343 * include/multiboot2.h: Resync with spec.
29344
f97e1f7d
VS
293452010-03-28 Vladimir Serbinenko <phcoder@gmail.com>
29346
29347 Multiboot2 tag support
29348
29349 * conf/i386.rmk (multiboot2_mod_SOURCES): Replace
29350 loader/i386/multiboot_mbi.c with loader/i386/multiboot_mbi2.c.
29351 Remove loader/multiboot_loader.c.
29352 * include/grub/i386/multiboot.h (grub_multiboot_real_boot): Removed.
29353 (grub_multiboot2_real_boot): Likewise.
29354 * include/grub/multiboot.h (grub_multiboot_set_accepts_video): Removed.
29355 (grub_get_multiboot_mmap_count): New proto.
29356 (grub_fill_multiboot_mmap): Likewise.
29357 (grub_multiboot_set_video_mode): Likewise.
29358 (grub_multiboot_set_console): Likewise.
29359 (grub_multiboot_load): Likewise.
29360 (grub_multiboot_load_elf): Likewise.
29361 (GRUB_MULTIBOOT_CONSOLE_EGA_TEXT): New definition.
29362 (GRUB_MULTIBOOT_CONSOLE_FRAMEBUFFER): Likewise.
29363 * include/multiboot.h: Resynced with specification.
29364 * include/multiboot2.h: Resynced with specification.
29365 * loader/i386/multiboot_mbi.c (DEFAULT_VIDEO_MODE): Moved from here...
29366 * loader/i386/multiboot.c (DEFAULT_VIDEO_MODE): ... here.
29367 * loader/i386/multiboot_mbi.c (HAS_VGA_TEXT): Moved from here ..
29368 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VGA_TEXT): ... here. All
29369 users updated.
29370 * loader/i386/multiboot_mbi.c (accepts_video): Moved from here...
29371 * loader/i386/multiboot.c (accepts_video): ... here. All users updated.
29372 * loader/i386/multiboot_mbi.c (grub_multiboot_set_accepts_video):
29373 Removed.
29374 * loader/i386/multiboot_mbi.c (grub_get_multiboot_mmap_len):
29375 Moved from here...
29376 * loader/i386/multiboot.c (grub_get_multiboot_mmap_len): ... here.
29377 * loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap):
29378 Moved from here...
29379 * loader/i386/multiboot.c (grub_fill_multiboot_mmap): ... here.
29380 * loader/i386/multiboot_mbi.c (set_video_mode): Moved from here...
29381 * loader/i386/multiboot.c (grub_multiboot_set_video_mode): ... here.
29382 All users updated.
29383 * loader/i386/multiboot_mbi2.c: New file.
29384
3506b90b
VS
293852010-03-27 Vladimir Serbinenko <phcoder@gmail.com>
29386
29387 Resync with gnulib.
29388
29389 * Makefile.in (GNULIB_CFLAGS): New variable.
29390 * conf/common.rmk (grub_mkisofs_CFLAGS): Add GNULIB_CFLAGS.
29391 (grub_script_check_CFLAGS): New variable.
29392 * gnulib/alloca.h: Resync with gnulib.
29393 * gnulib/error.c: Likewise.
29394 * gnulib/error.h: Likewise.
29395 * gnulib/fnmatch.c: Likewise.
29396 * gnulib/fnmatch_loop.c: Likewise.
29397 * gnulib/getdelim.c: Likewise.
29398 * gnulib/getline.c: Likewise.
29399 * gnulib/getopt.c: Likewise.
29400 * gnulib/getopt1.c: Likewise.
29401 * gnulib/getopt_int.h: Likewise.
29402 * gnulib/gettext.h: Likewise.
29403 * gnulib/progname.c: Likewise.
29404 * gnulib/progname.h: Likewise.
29405
394a3120
GS
294062010-03-27 Grégoire Sutre <gregoire.sutre@gmail.com>
29407
29408 Fix a build failure (-Wundef -Werror) when ENABLE_NLS is not defined,
29409 which is the case with --disabled-nls.
29410
29411 * include/grub/i18n.h: Use (defined(ENABLE_NLS)
29412 && ENABLE_NLS) instead of ENABLE_NLS in all #if preprocessor macros.
29413 * util/misc.c: Likewise.
29414 * util/mkisofs/mkisofs.c: Likewise.
29415 * util/mkisofs/mkisofs.h: Likewise.
29416
969d1c78
VS
294172010-03-27 Vladimir Serbinenko <phcoder@gmail.com>
29418
29419 Simplify Apple CC support.
29420
29421 * commands/i386/pc/drivemap_int13h.S: Use LOCAL when possible.
29422 Add 0 byte at the end not to have a symbol with empty target.
29423 * mmap/i386/pc/mmap_helper.S: Likewise.
29424 * genmk.rb: Ignore errors 2030 and 2050.
29425 * kern/i386/pc/startup.S: Use LOCAL when possible.
29426
8d2977bb
BC
294272010-03-26 BVK Chaitanya <bvk.groups@gmail.com>
29428
29429 Testcase and the fix for final semicolon on cmdline.
29430
29431 * tests/grub_script_final_semicolon.in: New testcase.
29432 * conf/tests.rmk: Rules for the new testcase.
29433 * script/parser.y: Grammar fix.
29434
a7bd6915
BC
294352010-03-26 BVK Chaitanya <bvk@localhost>
29436
29437 Blank lines testcase for GRUB script.
29438
29439 * tests/grub_script_blanklines.in: New testcase.
29440 * conf/tests.rmk: Rules for the new testcase.
29441
e4ff6628
VS
294422010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
29443
29444 Don't use __FILE__.
29445
29446 * genmk.rb: Add -DGRUB_FILE to all C targets.
29447 * fs/reiserfs.c: Replace __FILE__ with GRUB_FILE.
29448 * include/grub/list.h: Likewise.
29449 * include/grub/misc.h: Likewise.
29450 * include/grub/mm.h: Likewise.
29451 * include/grub/test.h: Likewise.
29452 * kern/mm.c: Likewise.
29453 * lib/libgcrypt_wrap/cipher_wrap.h: Likewise.
29454
6a5cf6b6
VS
294552010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
29456
29457 Sunpc partitions support.
29458
29459 * conf/common.rmk (grub_probe_SOURCES): Add partmap/sunpc.c.
29460 (grub_fstest_SOURCES): Likewise.
29461 (pkglib_MODULES): Add part_sunpc.mod.
29462 (part_sunpc_mod_SOURCES): New variable.
29463 (part_sunpc_mod_CFLAGS): Likewise.
29464 (part_sunpc_mod_LDFLAGS): Likewise.
29465 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/sunpc.c.
29466 * partmap/sunpc.c: New file.
29467
746d9045
BC
294682010-03-26 BVK Chaitanya <bvk@localhost>
29469
29470 For loop support to GRUB script.
29471
29472 * include/grub/script_sh.h (grub_script_cmdfor): New struct.
29473 (grub_script_create_cmdfor): New function prototype.
29474 (grub_script_execute_cmdfor): New function prototype.
29475 * script/execute.c (grub_script_execute_cmdfor): New function.
29476 * script/parser.y (command): New for command.
29477 (forcmd): New grammar rule.
29478 * script/script.c (grub_script_create_cmdfor): New function.
29479 * util/grub-script-check.c (grub_script_execute_cmdfor): New
29480 function.
29481 * tests/grub_script_for1.in: New testcase.
29482 * conf/tests.rmk: Rules for new testcase.
29483
18486b18
VS
294842010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
29485
29486 Nested partitions
29487
29488 * commands/blocklist.c (grub_cmd_blocklist): Don't check whether
29489 'partition' is NULL, grub_partition_get_start already does that.
29490 * commands/loadenv.c (check_blocklists): Likewise.
29491 (write_blocklists): Likewise.
29492 * conf/common.rmk (grub_probe_SOURCES): Add partmap/bsdlabel.c.
29493 (grub_fstest_SOURCES): Likewise.
29494 (pkglib_MODULES): Add part_bsd.mod.
29495 (part_bsd_mod_SOURCES): New variable.
29496 (part_bsd_mod_CFLAGS): Likewise.
29497 (part_bsd_mod_LDFLAGS): Likewise.
29498 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/bsdlabel.c.
29499 (grub_emu_SOURCES): Likewise.
29500 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
29501 * include/grub/bsdlabel.h: New file.
29502 * include/grub/partition.h (grub_partition_map): Remove 'probe' and
29503 'get_name'.
29504 (grub_partition): Add 'parent' and 'number'. Remove 'data'.
29505 (grub_partition_map_list): New variable.
29506 (grub_partition_map_register): Inline.
29507 (grub_partition_map_unregister): Likewise.
29508 (FOR_PARTITION_MAPS): New macro.
29509 (grub_partition_map_iterate): Removed.
29510 (grub_partition_get_start): Handle nested partitions.
29511 * include/grub/msdos_partition.h: Remove bsd-related entries.
29512 (grub_pc_partition): Remove.
29513 * kern/disk.c (grub_disk_close): Free partition data.
29514 (grub_disk_adjust_range): Handle nested partitions.
29515 * kern/partition.c (grub_partition_map_probe): New function.
29516 (grub_partition_probe): Parse name to number, handle subpartitions.
29517 (get_partmap): New function.
29518 (grub_partition_iterate): Handle subpartitions.
29519 (grub_partition_get_name): Likewise.
29520 * loader/i386/pc/bsd.c (grub_bsd_get_device): Likewise.
29521 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): Likewise.
29522 * loader/i386/pc/chainloader.c (grub_chainloader_cmd): Likewise.
29523 * partmap/acorn.c (acorn_partition_map_iterate): Don't force raw access.
29524 Set 'number'.
29525 (acorn_partition_map_probe): Remove.
29526 (acorn_partition_map_get_name): Likewise.
29527 * partmap/amiga.c (amiga_partition_map_iterate): Don't force raw access.
29528 Set 'number'.
29529 Set 'index' to 0 since there can be only one partition entry per sector.
29530 (amiga_partition_map_probe): Remove.
29531 (amiga_partition_map_get_name): Likewise.
29532 * partmap/apple.c (apple_partition_map_iterate): Don't force raw access.
29533 Set 'number'.
29534 Set 'offset' and 'index' to real positions of partitions.
29535 (apple_partition_map_probe): Remove.
29536 (apple_partition_map_get_name): Likewise.
29537 * partmap/bsdlabel.c: New file.
29538 * partmap/gpt.c (gpt_partition_map_iterate): Don't force raw access.
29539 Set 'number'.
29540 Allocate 'data' so it can be correctly freed.
29541 Set 'index' to offset inside sector.
29542 (gpt_partition_map_probe): Remove.
29543 (gpt_partition_map_get_name): Likewise.
29544 * partmap/msdos.c (grub_partition_parse): Remove.
29545 (pc_partition_map_iterate): Don't force raw access.
29546 Set 'number'.
29547 Make 'ext_offset' a local variable.
29548 (pc_partition_map_probe): Remove.
29549 (pc_partition_map_get_name): Remove.
29550 * partmap/sun.c (sun_partition_map_iterate): Don't force raw access.
29551 Set 'number'.
29552 (sun_partition_map_probe): Remove.
29553 (sun_partition_map_get_name): Likewise.
29554 * parttool/msdospart.c (grub_pcpart_boot): Handle nested partitions.
29555 (grub_pcpart_type): Likewise.
29556 * util/hostdisk.c (open_device): Handle new numbering scheme.
29557 (grub_util_biosdisk_get_grub_dev): Handle nested partitions.
29558 * util/i386/pc/grub-setup.c (setup): Handle new numbering scheme.
29559 * util/grub-probe.c (probe_partmap): Handle nested paritions.
29560 * util/grub-install.in: Insert all subpartition modules.
29561 * util/ieee1275/grub-install.in: Likewise.
29562
a3940f88
AG
295632010-03-24 Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
29564
29565 * kern/dl.c (grub_dl_resolve_symbols): Improve error message
29566 grammar.
29567
21b99926 295682010-03-24 Colin Watson <cjwatson@ubuntu.com>
29569
29570 * .bzrignore: Add grub-bin2h, grub-reboot, and grub-set-default.
29571
bed1d352
CW
295722010-03-21 Colin Watson <cjwatson@ubuntu.com>
29573
29574 * util/grub-install.in: Copy .mo files from @datadir@/locale, to
29575 match where 'make install' puts them.
29576 * util/i386/efi/grub-install.in: Likewise.
29577
c9f58427
CW
295782010-03-19 Colin Watson <cjwatson@ubuntu.com>
29579
29580 * .bzrignore: Add gentrigtables, grub-script-check,
29581 grub_script_check_init.c, grub_script_check_init.h, and
29582 trigtables.c.
29583
f84afb27
VS
295842010-03-18 Vladimir Serbinenko <phcoder@gmail.com>
29585
29586 * kern/parser.c: Indented.
29587
ed0e3d30
VS
295882010-03-17 Vladimir Serbinenko <phcoder@gmail.com>
29589
29590 * term/i386/pc/vesafb.c: Removed (orphaned, deprecated and broken).
29591
0ea81d98
VS
295922010-03-17 Vladimir Serbinenko <phcoder@gmail.com>
29593
29594 * video/fb/fbblit.c (grub_video_fbblit_blend_XXXA8888_1bit): Handle
29595 alpha_mask_size == 0 case.
29596
0cdc2a09
BC
295972010-03-14 BVK Chaitanya <bvk.groups@gmail.com>
29598
29599 GRUB shell lexer and parser improvements.
29600
29601 * conf/any-emu.rmk: Build rule updates.
29602 * conf/common.rmk: Likewise.
29603 * conf/i386-coreboot.rmk: Likewise.
29604 * conf/i386-efi.rmk: Likewise.
29605 * conf/i386-ieee1275.rmk: Likewise.
29606 * conf/i386-pc.rmk: Likewise.
29607 * conf/powerpc-ieee1275.rmk: Likewise.
29608 * conf/x86_64-efi.rmk: Likewise.
29609
29610 * configure.ac: Configure check for flex.
29611
29612 * include/grub/script_sh.h (grub_script_arg_type_t): More argument
29613 types.
29614 (grub_lexer_param): Struct member updates.
29615 (grub_parser_param): Likewise.
29616 (GRUB_LEXER_TOKEN_MAX): Maximum token size.
29617 (GRUB_LEXER_RECORD_INCREMENT): Memory increments' size.
29618 (grub_script_lexer_init): Prototype update.
29619 (grub_script_lexer_record_start): Likewise.
29620 (grub_script_lexer_record_stop): Likewise.
29621 (grub_script_lexer_yywrap): New function prototype.
29622 (grub_script_lexer_fini): Likewise.
29623 (grub_script_execute_argument_to_string): Removed by...
29624 (grub_script_execute_argument_to_argv): ...better version.
29625
29626 * script/execute.c (ROUND_UPTO): New macro.
29627 (grub_script_execute_cmdline): Out of memory fixes.
29628 (grub_script_execute_menuentry): Likewise.
29629 (grub_script_execute_argument_to_string): Removed. Update all
29630 users by...
29631 (grub_script_execute_argument_to_argv): ...better version.
29632 * script/function.c (grub_script_function_create): Use
29633 grub_script_execute_argument_to_argv instead of
29634 grub_script_execute_argument_to_string.
29635
29636 * script/lexer.c (check_varstate): Removed.
29637 (check_textstate): Removed.
29638 (grub_script_lexer_record_start): Likewise.
29639 (grub_script_lexer_record_stop): Likewise.
29640 (recordchar): Replaced with...
29641 (grub_script_lexer_record): ...new function.
29642 (nextchar): Removed.
29643 (grub_script_lexer_init): Rewritten.
29644 (grub_script_yylex): Rewritten.
29645 (append_newline): New function.
29646 (grub_script_lexer_yywrap): New function.
29647 (grub_script_lexer_fini): New function.
29648 (grub_script_yyerror): Sets error flag.
29649
29650 * script/yylex.l: New file.
29651 (grub_lexer_yyfree): Wrapper for flex yyffre.
29652 (grub_lexer_yyalloc): Likewise.
29653 (grub_lexer_yyrealloc): Likewise.
29654 * script/parser.y: Refactored.
29655
29656 * script/script.c (grub_script_arg_add): Out of memory fixes.
29657 (grub_script_add_arglist): Likewise.
29658 (grub_script_create_cmdline): Likewise.
29659 (grub_script_create_cmdmenu): Likewise.
29660 (grub_script_add_cmd): Likewise.
29661 (grub_script_parse): Use grub_script_lexer_fini to deallocated.
29662 * util/grub-script-check.c (grub_script_execute_menuentry): Remove
29663 unnecessary code.
29664
29665 * tests/grub_script_echo1.in: New testcase.
29666 * tests/grub_script_vars1.in: New testcase.
29667 * tests/grub_script_echo_keywords.in: New testcase.
29668
1d63a066
VS
296692010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
29670
29671 Remove some redundancy in build system.
29672
29673 * Makefile.in (TARGET_CFLAGS): Add -ffreestanding.
29674 (TARGET_ASFLAGS): Add -nostdinc -fno-builtin.
29675 (TARGET_LDFLAGS): Add -nostdlib.
29676 (TARGET_IMG_LDFLAGS): Likewise.
29677 * commands/lsmmap.c (grub_cmd_lsmmap) [GRUB_MACHINE_EMU]: Don't do
29678 anything since mmap isn't available.
29679 * conf/any-emu.rmk (kernel_img_SOURCES): Remove commands/boot.c.
29680 Add util/time.c.
29681 (pkglib_MODULES): Remove reboot.mod.
29682 (reboot_mod_SOURCES): Removed.
29683 (reboot_mod_CFLAGS): Likewise.
29684 (reboot_mod_LDFLAGS): Likewise.
29685 * conf/common.rmk (script/lexer.c_DEPENDENCIES): New variable.
29686 (MOSTLYCLEANFILES): Add symlist.c kernel_syms.lst.
29687 (DEFSYMFILES): Add kernel_syms.lst.
29688 (kernel_img_HEADERS): Add common headers.
29689 (symlist.c): New target.
29690 (kernel_syms.lst): Likewise.
29691 (pkglib_MODULES): Add memdisk.mod.
29692 (memdisk_mod_SOURCES): New variable.
29693 (memdisk_mod_CFLAGS): Likewise.
29694 (memdisk_mod_LDFLAGS): Likewise.
29695 (pkglib_MODULES): Add reboot.mod.
29696 (reboot_mod_SOURCES): New variable.
29697 (reboot_mod_CFLAGS): Likewise.
29698 (reboot_mod_LDFLAGS): Likewise.
29699 (pkglib_MODULES): Add date.mod.
29700 (date_mod_SOURCES): New variable.
29701 (date_mod_CFLAGS): Likewise.
29702 (date_mod_LDFLAGS): Likewise.
29703 (pkglib_MODULES): Add datehook.mod.
29704 (datehook_mod_SOURCES): New variable.
29705 (datehook_mod_CFLAGS): Likewise.
29706 (datehook_mod_LDFLAGS): Likewise.
29707 (pkglib_MODULES): Add lsmmap.mod.
29708 (lsmmap_mod_SOURCES): New variable.
29709 (lsmmap_mod_CFLAGS): Likewise.
29710 (lsmmap_mod_LDFLAGS): Likewise.
29711 (pkglib_MODULES): Add boot.mod.
29712 (boot_mod_SOURCES): New variable.
29713 (boot_mod_CFLAGS): Likewise.
29714 (boot_mod_LDFLAGS): Likewise.
29715 * conf/i386-coreboot.rmk: Removed redundant parts.
29716 * conf/i386-ieee1275.rmk: Likewise.
29717 * conf/i386-pc.rmk: Likewise.
29718 * conf/mips-yeeloong.rmk: Likewise.
29719 * conf/mips.rmk: Likewise.
29720 * conf/powerpc-ieee1275.rmk: Likewise.
29721 * conf/sparc64-ieee1275.rmk: Likewise.
29722 * conf/x86_64-efi.rmk: Likewise.
29723 * conf/i386-coreboot.rmk: Moved qemu parts ..
29724 * conf/i386-qemu.rmk: ... here
29725 * conf/i386-efi.rmk: Moved common parts to...
29726 * conf/x86-efi.rmk: ... here.
29727 * conf/i386.rmk: Added modules common to all x86 variants.
29728 * configure.ac: Add -m32/-m64 to TARGET_ASFLAGS.
29729 * disk/memdisk.c: Remove grub/machine/kernel.h.
29730 * gensymlist.sh.in: Include symbol.h.
29731 * hook/datehook.c: Correct module name.
29732 * include/grub/datetime.h (grub_get_datetime) [GRUB_MACHINE_EMU]: Export.
29733 (grub_set_datetime) [GRUB_MACHINE_EMU]: Likewise.
29734 * include/grub/i386/efi/serial.h: New file.
29735 * include/grub/x86_64/efi/serial.h: Likewise.
29736 * util/time.c: Likewise.
29737 * video/ieee1275.c (grub_video_ieee1275_setup): Handle 64-bit void *.
29738
463ac55f
CK
297392010-03-14 Colin King <colin.king@ubuntu.com>
297402010-03-14 Colin Watson <cjwatson@ubuntu.com>
29741
29742 Shrink the pre-partition-table part of boot.img by eight bytes.
29743
29744 * boot/i386/pc/boot.S (ERR): New macro.
29745 (chs_mode): Use ERR.
29746 (geometry_error): Likewise.
29747 (hd_probe_error): Remove. This is only used once, so we wrwite
29748 it inline instead.
29749 (read_error): Instead of printing read_error_string, just set up
29750 %si and fall through to ...
29751 (error_message): ... this new function, also used by ERR.
29752
08e46ede
CW
297532010-03-14 Colin Watson <cjwatson@ubuntu.com>
29754
29755 Speed up consecutive hostdisk operations on the same device.
29756
29757 * util/hostdisk.c (struct grub_util_biosdisk_data): New structure.
29758 (grub_util_biosdisk_open): Initialise disk->data.
29759 (struct linux_partition_cache): New structure.
29760 (linux_find_partition): Cache partition start positions; these are
29761 expensive to compute on every read and write.
29762 (open_device): Cache open file descriptor in disk->data, so that we
29763 don't have to reopen it and flush the buffer cache for consecutive
29764 operations on the same device.
29765 (grub_util_biosdisk_close): New function.
29766 (grub_util_biosdisk_dev): Set `close' member.
29767
29768 * conf/common.rmk (grub_probe_SOURCES): Add kern/list.c.
29769 * conf/i386-efi.rmk (grub_setup_SOURCES): Likewise.
29770 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
29771 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Likewise.
29772 * conf/x86_64-efi.rmk (grub_setup_SOURCES): Likewise.
29773
4a6d2d06
VS
297742010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
29775
29776 Compile parts of grub-emu as modules.
29777
29778 * Makefile.in (TARGET_CPPFLAGS) [emu]: Remove -nostdinc -isystem.
29779 (pkglib_DATA) [emu]: Remove moddep.lst command.lst fs.lst
29780 partmap.lst parttool.lst handler.lst video.lst crypto.lst terminal.lst.
29781 (all-local): Add $(GRUB_EMU).
29782 (install-local): Install $(GRUB_EMU).
29783 (uninstall): Uninstall $(GRUB_EMU).
29784 * commands/parttool.c: Replace GRUB_UTIL with GRUB_NO_MODULES.
29785 * kern/dl.c: Likewise.
29786 * commands/sleep.c: Not include machine/time.h.
29787 * conf/any-emu.rmk (COMMON_LDFLAGS): New variable.
29788 (COMMON_CFLAGS): Likewise.
29789 (sbin_UTILITIES): Remove grub-emu.
29790 (grub_emu_SOURCES): Removed.
29791 (kernel_img_RELOCATABLE): New variable.
29792 (pkglib_PROGRAMS): Add kernel.img.
29793 (kernel_img_SOURCES): New variable
29794 (kernel_img_CFLAGS): Likewise.
29795 (kernel_img_LDFLAGS): Likewise.
29796 (TARGET_NO_STRIP): Likewise.
29797 (TARGET_NO_DYNAMIC_MODULES): Likewise.
29798 (pkglib_MODULES): Add progname.mod, hostfs.mod, host.mod, reboot.mod,
29799 halt.mod, cpuid.mod, usb.mod, sdl.mod and pci.mod.
29800 (grub-emu): New target.
29801 (GRUB_EMU): New variable.
29802 * configure.ac: Whitelist -emu as possible x86_64 architecture.
29803 * efiemu/main.c: Replace GRUB_UTIL with GRUB_MACHINE_EMU.
29804 * loader/xnu.c: Likewise.
29805 * include/grub/pci.h: Likewise.
29806 * genemuinit.sh: New file.
29807 * genemuinitheader.sh: Likewise.
29808 * genmk.rb: Don't strip if TARGET_NO_STRIP is yes.
29809 Support TARGET_NO_DYNAMIC_MODULES.
29810 * include/grub/dl.h (GRUB_NO_MODULES): New variable.
29811 * commands/search.c: Fix GRUB_MOD_INIT and GRUB_MOD_FINI arguments.
29812 * disk/loopback.c: Likewise.
29813 * font/font_cmd.c: Likewise.
29814 * partmap/acorn.c: Likewise.
29815 * partmap/amiga.c: Likewise.
29816 * partmap/apple.c: Likewise.
29817 * partmap/gpt.c: Likewise.
29818 * partmap/msdos.c: Likewise.
29819 * partmap/sun.c: Likewise.
29820 * parttool/msdospart.c: Likewise.
29821 * term/gfxterm.c: Likewise.
29822 * video/bitmap.c: Likewise.
29823 * video/readers/jpeg.c: Likewise.
29824 * video/readers/png.c: Likewise.
29825 * video/readers/tga.c: Likewise.
29826 * video/video.c: Likewise.
29827 * util/grub-emu.c (read_command_list): Removed.
29828 (main): Don't call util_init_nls.
29829 * util/misc.c (grub_err_printf) [!GRUB_UTIL]: Removed.
29830 (grub_util_init_nls) [!GRUB_UTIL]: Likewise.
29831
91fdd2ed
VS
298322010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
29833
29834 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add datetime.mod,
29835 date.mod, datehook.mod.
29836 (datetime_mod_SOURCES): New variable.
29837 (datetime_mod_CFLAGS): Likewise.
29838 (datetime_mod_LDFLAGS): Likewise.
29839 (date_mod_SOURCES): Likewise.
29840 (date_mod_CFLAGS): Likewise.
29841 (date_mod_LDFLAGS): Likewise.
29842 (datehook_mod_SOURCES): Likewise.
29843 (datehook_mod_CFLAGS): Likewise.
29844 (datehook_mod_LDFLAGS): Likewise.
29845 * conf/sparc64-ieee1275.rmk: Likewise.
29846 * lib/ieee1275/datetime.c: New file.
29847
873ccae6
VS
298482010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
29849
29850 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add ieee1275_fb.mod.
29851 (ieee1275_fb_mod_SOURCES): New variable.
29852 (ieee1275_fb_mod_CFLAGS): Likewise.
29853 (ieee1275_fb_mod_LDFLAGS): Likewise.
29854 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_devices_iterate):
29855 New proto.
29856 * kern/ieee1275/init.c (HEAP_MAX_SIZE): Increased.
29857 (HEAP_MAX_ADDR): Likewise.
29858 * kern/ieee1275/openfw.c (grub_children_iterate): Don't skip empty
29859 type.
29860 Correct stop condition.
29861 (grub_ieee1275_devices_iterate): New function.
29862 * video/ieee1275.c: New file.
29863
601c97c0
VS
298642010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
29865
29866 Merge sparc grub-mkimage into generic grub-mkimage and a.out support.
29867
29868 * boot/sparc64/ieee1275/boot.S (boot_continue): Use SCRATCH_PAD_BOOT
29869 as scratch.
29870 * boot/sparc64/ieee1275/diskboot.S (after_info_block): Use
29871 SCRATCH_PAD_DISKBOOT as scratch.
29872 (bootit): Pass Openfirmware pointer in %o4.
29873 * conf/sparc64-ieee1275.rmk (kernel_img_LDFLAGS): Link at 0x4400 instead
29874 of 0x200000.
29875 (grub_mkimage_SOURCES): Replace util/sparc64/ieee1275/grub-mkimage.c
29876 with util/grub-mkrawimage.c.
29877 * configure.ac: Handle GRUB_MACHINE_SPARC64 and GRUB_MACHINE_MIPS.
29878 * include/grub/aout.h (AOUT_MID_SUN): New definition.
29879 (grub_aout_get_type) [GRUB_UTIL]: Removed.
29880 (grub_aout_load) [GRUB_UTIL]: Likewise.
29881 * include/grub/kernel.h (grub_modules_get_end): New proto.
29882 * include/grub/sparc64/ieee1275/boot.h (SCRATCH_PAD): Removed.
29883 (SCRATCH_PAD_BOOT): New definition.
29884 (SCRATCH_PAD_DISKBOOT): Likewise.
29885 (GRUB_BOOT_MACHINE_IMAGE_ADDRESS): Set to 0x4400.
29886 * include/grub/sparc64/ieee1275/ieee1275.h
29887 (grub_ieee1275_original_stack): New variable
29888 * include/grub/sparc64/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
29889 New definition
29890 (GRUB_KERNEL_MACHINE_STACK_SIZE): Likewise.
29891 (GRUB_PLATFORM_IMAGE_FORMATS): Likewise.
29892 (GRUB_PLATFORM_IMAGE_DEFAULT_FORMAT): Likewise.
29893 (GRUB_PLATFORM_IMAGE_DEFAULT): Likewise.
29894 (GRUB_PLATFORM_IMAGE_RAW): Likewise.
29895 (GRUB_PLATFORM_IMAGE_AOUT): Likewise.
29896 (grub_platform_image_format_t): New type.
29897 * kern/mips/yeeloong/init.c (grub_modules_get_end): Move from here ...
29898 * kern/main.c (grub_modules_get_end)
29899 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_SPARC64]: ... here.
29900 * kern/sparc64/ieee1275/crt0.S: Store firmware entry point in %o0.
29901 (codestart): Switch stacks.
29902 * kern/sparc64/ieee1275/init.c (grub_ieee1275_original_stack): New
29903 variable.
29904 (grub_heap_init): Use grub_modules_get_end.
29905 * loader/sparc64/ieee1275/linux.c (grub_linux_boot): Restore original
29906 stack.
29907 * util/grub-mkrawimage.c (generate_image): Support sparc64.
29908 (main): Likewise.
29909 * util/sparc64/ieee1275/grub-mkimage.c: Removed.
29910
d68b491e
TG
299112010-03-14 Thorsten Glaser <tg@mirbsd.org>
29912
29913 * util/grub-mkrescue.in: Base ISO UUID on UTC.
29914
4e02ed50
MK
299152010-03-08 Matt Kraai <kraai@ftbfs.org>
29916
29917 * util/i386/pc/grub-setup.c (setup): Fix a grammatical error (Debian
29918 bug #559005).
29919
1f15fc1e
VS
299202010-03-07 Vladimir Serbinenko <phcoder@gmail.com>
29921
29922 * genmoddep.awk: Output all missing symbols and not only first.
29923
fce5d8ff
VS
299242010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
29925
29926 * NEWS: Put the date of 1.98 release.
29927
d1e8a02f
VS
299282010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
29929
29930 * configure.ac: Update CPPFLAGS and not CFLAGS when checking for
29931 ft2build.h.
29932
696fd607
VS
299332010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
29934
29935 * normal/cmdline.c (grub_cmdline_get): Fix gabled line after
29936 completition in the middle of string.
29937
33e2e6f3
VS
299382010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
29939
29940 * util/grub-mkrescue.in: Use mktemp with explicit template.
29941
b1f6d291
VS
299422010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
29943
29944 * loader/i386/bsd.c (grub_bsd_get_device): Fix a memory leak.
29945
2ac227c7
VS
299462010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
29947
29948 * loader/i386/multiboot_mbi.c (grub_multiboot_set_bootdev): Free the
29949 right pointer.
29950
8f9a632b
VS
299512010-03-05 Vladimir Serbinenko <phcoder@gmail.com>
29952
29953 Fix FreeBSD compilation.
29954
29955 * Makefile.in (TARGET_CPPFLAGS): Remove -nostdinc -isystem.
29956 * configure.ac: Add -nostdinc -isystem to TARGET_CPPFLAGS if it works.
29957
60b03859
VS
299582010-03-05 Vladimir Serbinenko <phcoder@gmail.com>
29959
29960 * util/import_gcry.py: Add autogenerated files to MAINTAINER_CLEANFILES.
29961
48a5a769
VS
299622010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
29963
29964 * gettext/gettext.c (grub_gettext_init_ext): Fix a memory leak.
29965
3ab4bd77
VS
299662010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
29967
29968 * disk/scsi.c (grub_scsi_iterate): Fix a memory leak.
29969
d116e0d8
RM
299702010-03-04 Robert Millan <rmh.grub@aybabtu.com>
29971
29972 Support relative image path in theme file.
29973
29974 * gfxmenu/gui_image.c (grub_gui_image): New member theme_dir.
29975 (image_set_property): Handle theme_dir and relative path.
29976
c7ef54aa
VS
299772010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
29978
29979 * configure.ac: Alias amd64 to x86_64.
29980
fcee14ed
VS
299812010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
29982
29983 * NEWS: mention multiboot on EFI.
29984
d0780363
VS
299852010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
29986
29987 * kern/main.c (grub_load_modules): Handle errors from init functions of
29988 embeded modules.
29989
41168ea4
VS
299902010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
29991
29992 * normal/autofs.c (autoload_fs_module): Handle errors.
29993
b54d93ac
VS
299942010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
29995
29996 Disable linux.mod on qemu-mips since it's not functional and leads
29997 to compilation failure.
29998
29999 * conf/mips.rmk (pkglib_MODULES): Remove linux.mod.
30000 * conf/mips-yeeloong.rmk (pkglib_MODULES): Add linux.mod.
30001 * conf/mips.rmk (linux_mod_SOURCES): Move from here ...
30002 * conf/mips-yeeloong.rmk (linux_mod_SOURCES): ... here
30003 * conf/mips.rmk (linux_mod_CFLAGS): Move from here ...
30004 * conf/mips-yeeloong.rmk (linux_mod_CFLAGS): ... here
30005 * conf/mips.rmk (linux_mod_ASFLAGS): Move from here ...
30006 * conf/mips-yeeloong.rmk (linux_mod_ASFLAGS): ... here
30007 * conf/mips.rmk (linux_mod_LDFLAGS): Move from here ...
30008 * conf/mips-yeeloong.rmk (linux_mod_LDFLAGS): ... here
30009 Reported by: BVK Chaitanya
30010
fc8345da
JU
300112010-03-04 Jordan Uggla <jordan.uggla@gmail.com>
30012
30013 * INSTALL: Add gettext as a dependency and add qemu to a new section
30014 "Prerequisites for make-check".
30015
4760f979
CF
300162010-03-04 Christian Franke <franke@computer.org>
30017
30018 * util/grub-pe2elf.c: Add missing include "progname.h".
30019
f209b5b2
VS
300202010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30021
30022 * normal/crypto.c (read_crypto_list): Fix a typo.
30023 Reported by: Seth Goldberg.
30024
b4b7be98
VS
300252010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30026
30027 * Makefile.in (DISTCLEANFILES): Add stamp-h1.
f209b5b2 30028 Reported by: Seth Goldberg.
b4b7be98 30029
c0ee0385
VS
300302010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30031
30032 * Makefile.in (CLEANFILES) [FONT_SOURCE && grub_mkfont]: Add
30033 ascii.bitmaps.
30034
a8efbf64
VS
300352010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30036
30037 * genmk.rb: Remove terminal*.lst in make clean.
f209b5b2 30038 Reported by: Seth Goldberg.
a8efbf64 30039
08dcd913
VS
300402010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30041
30042 * util/i386/efi/grub-install.in: Copy gettext files.
30043
c4d0b332
VS
300442010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
30045
30046 * fs/ext2.c (grub_ext2_read_block): Fix an integer overflow.
30047
c6f2fe52
VS
300482010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
30049
30050 Wait for user entry basing on presence of output rather than on errors.
30051
30052 * include/grub/normal.h (grub_normal_get_line_counter): New proto.
30053 (grub_install_newline_hook): Likewise.
30054 * normal/main.c (GRUB_MOD_INIT): Call grub_install_newline_hook.
30055 * normal/menu.c (show_menu): Check line_counter to determine presence
30056 of output.
30057 * normal/term.c (grub_normal_line_counter): New variable.
30058 (grub_normal_get_line_counter): New function.
30059 (grub_install_newline_hook): Likewise.
30060
5382b1e4
VS
300612010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
30062
30063 * commands/cat.c (grub_cmd_cat): Propagate grub_gzfile_open error.
30064
5519963b
VS
300652010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
30066
30067 * configure.ac: Update version to 1.98.
30068
72b28631
VS
300692010-02-26 Vladimir Serbinenko <phcoder@gmail.com>
30070
30071 * util/grub.d/10_linux.in (linux_entry): Don't default to
30072 gfxpayload=keep if Linux doesn't support video handover.
30073
c140a180
VS
300742010-02-25 Vladimir Serbinenko <phcoder@gmail.com>
30075
30076 Don't compile video modules on yeeloong since video subsystem is part
30077 of kernel.
30078
30079 * conf/common.rmk (pkglib_MODULES) [yeeloong]: Remove video.mod,
30080 video_fb.mod, bitmap.mod, font.mod, gfxterm.mod and bufio.mod
30081 * conf/mips-yeeloong.rmk (kernel_img_HEADERS): Add bitmap.h,
30082 video.h, gfxterm.h, font.h, bitmap_scale.h and bufio.h.
30083 * conf/mips.rmk (kernel_img_HEADERS): Add values instead of overwriting.
30084 * include/grub/bitmap.h: Add EXPORT_FUNC and EXPORT_VAR.
30085 * include/grub/bitmap_scale.h: Likewise.
30086 * include/grub/bufio.h: Likewise.
30087 * include/grub/font.h: Likewise.
30088 * include/grub/gfxterm.h: Likewise.
30089 * include/grub/video.h: Likewise.
30090 * include/grub/vbe.h: Don't include video_fb.h.
30091 * video/i386/pc/vbe.c: Include video_fb.h.
30092 * commands/i386/pc/vbetest.c: Include video.h.
30093
a0ca21c2
CW
300942010-02-25 Jordan Uggla <jordan.uggla@gmail.com>
30095
30096 * util/grub-mkconfig.in (GRUB_SAVEDEFAULT): Export new variable.
30097 * util/grub-mkconfig_lib.in (save_default_entry): Only save a new
30098 default entry if GRUB_SAVEDEFAULT=true. This allows using
30099 GRUB_DEFAULT=saved on its own to let grub-reboot work, without
30100 saving a new default on every boot.
30101
4a8a763c
VS
301022010-02-24 Vladimir Serbinenko <phcoder@gmail.com>
30103
30104 * normal/crypto.c (read_crypto_list): Fix a memory leak.
30105 * normal/term.c (read_terminal_list): Likewise.
30106 * normal/main.c (grub_normal_init_page): Likewise.
30107 (grub_normal_read_line_real): Likewise.
30108
607ffde2
VS
301092010-02-24 Vladimir Serbinenko <phcoder@gmail.com>
30110
30111 * loader/i386/multiboot_mbi.c (grub_multiboot_set_bootdev): Fix a
30112 memory leak.
30113 Reported by: Seth Goldberg.
30114
2b8fa975
CW
301152010-02-24 Joey Korkames <joey+lists@kidfixit.com>
30116
30117 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Remove
30118 duplicate declaration of `start'.
30119
618307dd
VS
301202010-02-20 Vladimir Serbinenko <phcoder@gmail.com>
30121
30122 * fs/iso9660.c (grub_iso9660_iterate_dir): Strip version from joliet
30123 filename.
30124 Reported by: Georgy Buranov
30125
7dd05b96 301262010-02-20 Carles Pina i Estany <carles@pina.cat>
30127
30128 * util/grub-mkrawimage.c (usage): Change string formatting to
30129 improve gettext.
30130
d1484a42
MRA
301312010-02-20 Manoel Rebelo Abranches <mrabran@br.ibm.com>
30132
30133 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Add delete and
30134 backspace keys.
30135
42b1d186
VS
301362010-02-20 Vladimir Serbinenko <phcoder@gmail.com>
30137
30138 * video/fb/video_fb.c (grub_video_fb_scroll): Fix a pixel size bug.
30139 Reported by: Michael Suchanek.
30140
301412010-02-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
0a39de87
ST
30142
30143 * util/grub-mkconfig.in: Export GRUB_INIT_TUNE.
30144 * util/grub.d/00_header.in: Handle GRUB_INIT_TUNE.
30145
d9f31a41
VS
301462010-02-16 Vladimir Serbinenko <phcoder@gmail.com>
30147
30148 Remove any reference to non-free fonts.
30149
30150 * commands/videotest.c (grub_cmd_videotest): Use unifont by default.
30151 * docs/gfxmenu-theme-example.txt: Removed. It's both outdated and
30152 uses non-free components.
30153 * font/font.c (grub_font_get_name): Remove example name.
30154 * gfxmenu/gui_label.c (grub_gui_label_new): Use unifont by default.
30155 * gfxmenu/gui_list.c (grub_gui_list_new): Likewise.
30156 * gfxmenu/gui_progress_bar.c (grub_gui_progress_bar_new): Likewise.
30157 * gfxmenu/view.c (grub_gfxmenu_view_new): Likewise.
30158
2793c71e
GB
301592010-02-16 Georgy Buranov <gburanov@gmail.com>
30160
30161 * disk/efi/efidisk.c (grub_efidisk_get_device_name): Fix a typo.
30162
402e3779
VS
301632010-02-15 Vladimir Serbinenko <phcoder@gmail.com>
30164
30165 * term/serial.c (serial_get_divisor) [GRUB_MACHINE_MIPS_YEELOONG]:
30166 Double divisor.
30167 (serial_hw_init) [GRUB_MACHINE_MIPS_YEELOONG]: Don't enable advanced
30168 features.
30169 (GRUB_MOD_INIT) [GRUB_MACHINE_MIPS_YEELOONG]: Default to 115200.
30170
0dd1e0dd
VS
301712010-02-15 Vladimir Serbinenko <phcoder@gmail.com>
30172
30173 * gensymlist.sh.in: Use TARGET_CC instead of CC.
30174
6fa7cfce
ST
301752010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
30176
30177 * commands/i386/pc/play.c (GRUB_MOD_INIT(play)): Fix help.
30178 * docs/grub.texi (Command-line and menu entry commands): Document play
30179 command.
30180
37c8483b
ST
301812010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
30182
30183 * commands/i386/pc/play.c (grub_cmd_play): If grub_file_open fails,
30184 parse arguments as inline tempo and notes. Move code for playing notes
30185 to...
30186 (play): ... new function.
30187
14da0fb7
ST
301882010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
30189
30190 * commands/i386/pc/play.c (T_REST, T_FINE, struct note, beep_on): Use
30191 grub_uint16_t instead of short.
30192 (grub_cmd_play): Use grub_uint32_t instead of int, convert data from
30193 disk from little endian to cpu endianness.
30194
04459e70
ST
301952010-02-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
30196
30197 * commands/i386/pc/play.c (BASE_TEMPO): Set to 60 *
30198 GRUB_TICKS_PER_SECOND instead of 120.
30199
a0876943
VS
302002010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
30201
30202 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Wait for possible
30203 escape sequence after \e.
30204
e29f95dc
VS
302052010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
30206
30207 * term/ieee1275/ofconsole.c (grub_ofconsole_putchar): Don't output
30208 non-ASCII characters.
30209
d27859b2
VS
302102010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
30211
30212 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Enclose
30213 set root in single quotes to prevent \, from being unescaped.
30214
bc028f2f
VS
302152010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
30216
30217 Prevent unknown commands from stopping menuentry execution.
30218
30219 * script/execute.c (grub_script_execute_cmdline): Print error after
30220 unknown command.
30221
095f5f82
VS
302222010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
30223
30224 * fs/i386/pc/pxe.c (GRUB_MOD_INIT): Fix typo.
30225 Reported by: Pavel Pisa.
30226
8c717950
VS
302272010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30228
30229 * io/gzio.c (grub_gzio_open): Use grub_zalloc.
30230
904935c3
VS
302312010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30232
30233 Merge grub_ieee1275_map_physical into grub_map and rename to
30234 grub_ieee1275_map
30235
30236 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_map): New proto.
30237 * include/grub/sparc64/ieee1275/ieee1275.h (grub_ieee1275_map_physical):
30238 Remove.
30239 * kern/ieee1275/openfw.c (grub_map): Rename to ...
30240 (grub_ieee1275_map): ... this. All users updated. Add phys_lo when
30241 necessary.
30242 * kern/sparc64/ieee1275/ieee1275.c (grub_ieee1275_map_physical): Remove.
30243
5b59a4e3
VS
302442010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30245
30246 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Check device type before
30247 opening and not after.
30248
69e137e8
VS
302492010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30250
30251 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Macroify
30252 constants.
30253
2c0fcc36
VS
302542010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30255
30256 * loader/sparc64/ieee1275/linux.c (align_addr): Remove.
30257 (alloc_phys): Use ALIGN_UP instead of align_addr.
30258
8c6052ce
VS
302592010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30260
30261 * loader/sparc64/ieee1275/linux.c (alloc_phys): Correct bounds checking.
30262
17cec782
VS
302632010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30264
30265 * kern/sparc64/ieee1275/crt0.S (codestart): Move modules backwards.
30266
e0128bbd
VS
302672010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30268
30269 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Remove excessively
30270 verbose dprintf.
30271
ca62070b
VS
302722010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30273
30274 Fix over-4GiB seek on sparc64.
30275
30276 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_seek):
30277 Replace pos_i and pos_lo with pos. All users updated.
30278 * include/grub/powerpc/ieee1275/ieee1275.h (GRUB_IEEE1275_CELL_SIZEOF):
30279 New constant.
30280 * include/grub/sparc64/ieee1275/ieee1275.h (GRUB_IEEE1275_CELL_SIZEOF):
30281 Likewise.
30282 * kern/ieee1275/ieee1275.c (grub_ieee1275_seek): Split pos into pos_hi
30283 and pos_lo.
30284
bdca2607
VS
302852010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30286
30287 * util/grub-mkrawimage.c (main): Call set_program_name.
30288
da278c4d
VS
302892010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30290
30291 Properly align 64-bit targets.
30292
30293 * util/grub-mkrawimage.c (ALIGN_ADDR): New macro.
30294 (generate_image): Use ALIGN_ADDR.
30295
b274d734
VS
302962010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30297
30298 Properly create cross-endian images.
30299
30300 * include/grub/types.h (grub_host_to_target_addr): New macro
30301 * util/grub-mkrawimage.c (generate_image): Add missing host_to_target.
30302
82da2062
VS
303032010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30304
30305 * util/grub-mkrawimage.c (generate_image): Add forgotten ALIGN_UP.
30306
7cae4377
VS
303072010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
30308
30309 Pass SIMPLE framebuffer size in bytes and not 64K blocks.
30310
30311 * loader/i386/efi/linux.c (grub_linux_setup_video): Don't divide by 64K.
30312 * loader/i386/linux.c (grub_linux_setup_video): Likewise.
30313 (grub_linux_boot): Divide by 64K when on VESA.
30314
65a533e7
VS
303152010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
30316
30317 Support GRUB_GFXPAYLOAD_LINUX.
30318
30319 * util/grub-mkconfig.in: Export GRUB_GFXPAYLOAD_LINUX.
30320 * util/grub.d/10_linux.in (linux_entry): Handle GRUB_GFXPAYLOAD_LINUX.
30321
dd01d397
VS
303222010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
30323
30324 * script/execute.c (grub_script_execute_cmdline): Use grub_print_error
30325 to show messages instead of discarding them.
30326 Process errors after executing command and not before. Keep old method
30327 too as precaution.
30328
660960d6
VS
303292010-02-09 Vladimir Serbinenko <phcoder@gmail.com>
30330
30331 * configure.ac: Check for ft2build.h.
30332
62509f04
VS
303332010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30334
30335 * kern/ieee1275/openfw.c (grub_halt): Try executing "poweroff".
30336
473df63d
VS
303372010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30338
30339 * genkernsyms.sh.in: Use TARGET_CC.
30340
c98d2a13
CW
303412010-02-07 Colin Watson <cjwatson@ubuntu.com>
30342
30343 * NEWS: Update.
30344
6e14234c
VS
303452010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30346
30347 * include/grub/multiboot2.h: Remove leftover file.
e28e32ae
VS
30348 * include/grub/normal.h [GRUB_UTIL]: Remove leftover declarations.
30349 * include/grub/partition.h [GRUB_UTIL]: Likewise.
6e14234c 30350
b255e9cf
YB
303512010-02-07 Yves Blusseau <blusseau@zetam.org>
30352
6e14234c 30353 * gnulib/getdelim.c: add missing header (type ssize_t must be defined).
b255e9cf 30354
98e6959d
VS
303552010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30356
30357 Fix warnings in grub-emu when compiling with maximum warning options.
30358
30359 * util/grub-emu.c (ENABLE_RELOCATABLE): New definition.
30360 (grub_arch_modules_addr): Return 0 and not NULL.
30361 * util/misc.c (ENABLE_RELOCATABLE): New definition.
74e4934e 30362 (xstrdup): Use newstr instead of dup.
f88d801b
VS
30363 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Rename one instance
30364 of disk to dsk to avoid shadowing.
74e4934e
VS
30365 (find_free_slot): Fix prototype.
30366 * util/getroot.c (grub_util_is_dmraid): Make static.
30367 * include/grub/time.h (grub_get_rtc) [GRUB_MACHINE_EMU || GRUB_UTIL]:
30368 Add missing prototype.
30369 * util/sdl.c (grub_video_sdl_set_viewport): Remove.
98e6959d 30370
74e31b5c
VS
303712010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30372
30373 * loader/i386/linux.c (grub_linux_setup_video): Handle error
30374 appropriately.
30375
6b2ad14b
VS
303762010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30377
30378 * fs/reiserfs.c (grub_reiserfs_read): Use #if 0 instead of commenting
30379 code out.
30380
8f891adc
VS
303812010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30382
30383 * include/grub/cache.h (grub_arch_sync_caches) [i386 || x86_64]: Inline.
30384 * kern/i386/coreboot/init.c (grub_arch_sync_caches): Remove.
30385 * kern/i386/efi/init.c (grub_arch_sync_caches): Likewise.
30386 * kern/i386/ieee1275/init.c (grub_arch_sync_caches): Likewise.
30387 * kern/i386/pc/init.c (grub_arch_sync_caches): Likewise.
30388 * util/misc.c (grub_arch_sync_caches) [i386 || x86_64]: Likewise.
30389
74b45184
VS
303902010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30391
30392 * include/grub/err.h (grub_err_printf): Don't export.
30393
a4bced77
VS
303942010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30395
30396 * include/grub/dl.h (grub_dl_register_symbol): Don't export.
30397
007d0695
VS
303982010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30399
30400 * include/grub/i18n.h (grub_gettext_dummy): Removed.
30401 * kern/misc.c (grub_gettext_dummy): Make static.
30402
b6c0d9c2
VS
304032010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30404
30405 * kern/misc.c (grub_utf8_to_ucs4): Don't eat valid characters preceeded
30406 by non-valid ones.
30407 * kern/term.c (grub_putchar): Likewise.
30408
f51a90d0
VS
304092010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30410
30411 * partmap/sun.c (sun_partition_map_iterate): Restructure flow to fix
30412 buggy hook call and memory leak.
30413
6846cec5
VS
304142010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30415
30416 * commands/ls.c (grub_ls_list_files): Free pathname on exit.
30417
468d69fe
VS
304182010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30419
30420 * fs/fat.c (grub_fat_iterate_dir): Free unibuf at exit.
30421
51906b8c
VS
304222010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30423
30424 * loader/i386/pc/xnu.c (grub_xnu_set_video): Add const qualifier to
30425 modevar.
30426 Return grub_errno on allocation error.
30427
09706ce5
VS
304282010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30429
30430 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Correct error handling.
30431
911df80c
YB
304322010-02-06 Yves Blusseau <blusseau@zetam.org>
30433
30434 * conf/common.rmk (grub_script_check_SOURCES): add missing dependencies.
30435 (grub_mkpasswd_pbkdf2_SOURCES): Likewise.
30436
3746a6bc
VS
304372010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30438
30439 * fs/i386/pc/pxe.c (grub_pxefs_dir): Return with failure on
30440 non-pxe disk.
30441 (grub_pxefs_open): Likewise.
30442
09706ce5
VS
304432010-02-06 Robert Millan <rmh.grub@aybabtu.com>
30444
30445 * util/grub.d/10_hurd.in: Add --class information to menuentries.
30446 * util/grub.d/10_kfreebsd.in: Likewise.
30447 * util/grub.d/10_linux.in: Likewise.
30448
7cc192d9
VS
304492010-02-06 Colin D Bennett <colin@gibibit.com>
30450
30451 * conf/common.rmk (pkglib_MODULES): Add gfxmenu.mod.
30452 (gfxmenu_mod_SOURCES): New variable.
30453 (gfxmenu_mod_CFLAGS): Likewise.
30454 (gfxmenu_mod_LDFLAGS): Likewise.
30455 * include/grub/term.h (grub_term_set_current_output): Declare
30456 argument as const.
30457 * docs/gfxmenu-theme-example.txt: New file.
30458 * gfxmenu/gfxmenu.c: Likewise.
30459 * gfxmenu/gui_box.c: Likewise.
30460 * gfxmenu/gui_canvas.c: Likewise.
30461 * gfxmenu/gui_circular_progress.c: Likewise.
30462 * gfxmenu/gui_image.c: Likewise.
30463 * gfxmenu/gui_label.c: Likewise.
30464 * gfxmenu/gui_list.c: Likewise.
30465 * gfxmenu/gui_progress_bar.c: Likewise.
30466 * gfxmenu/gui_string_util.c: Likewise.
30467 * gfxmenu/gui_util.c: Likewise.
30468 * gfxmenu/icon_manager.c: Likewise.
30469 * gfxmenu/model.c: Likewise.
30470 * gfxmenu/named_colors.c: Likewise.
30471 * gfxmenu/theme_loader.c: Likewise.
30472 * gfxmenu/view.c: Likewise.
30473 * gfxmenu/widget-box.c: Likewise.
30474 * include/grub/gfxmenu_model.h: Likewise.
30475 * include/grub/gfxmenu_view.h: Likewise.
30476 * include/grub/gfxwidgets.h: Likewise.
30477 * include/grub/gui.h: Likewise.
30478 * include/grub/gui_string_util.h: Likewise.
30479 * include/grub/icon_manager.h: Likewise.
30480
304812010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30482
30483 Agglomerate scrolling in gfxterm.
30484
30485 * term/gfxterm.c (grub_virtual_screen): New member 'total_screen'.
30486 (grub_virtual_screen_setup): Initialise 'total_screen'.
30487 (write_char): Split to ...
30488 (paint_char): ... this ...
30489 (write_char): ... and this.
30490 (paint_char): Handle delayed scrolling.
30491 (draw_cursor): Likewise.
30492 (scroll_up): Split to ...
30493 (real_scroll): ... this ...
30494 (scroll_up): ... and this.
30495 (real_scroll): Handle multi-line scroll and draw below-the-bottom
30496 characters.
30497 (grub_gfxterm_refresh): Call real_scroll.
30498
304992010-02-06 Colin D Bennett <colin@gibibit.com>
30500
30501 * include/grub/misc.h (grub_iscntrl): New inline function.
30502 (grub_isalnum): Likewise.
30503 (grub_strtol): Likewise.
30504
305052010-02-06 Colin D Bennett <colin@gibibit.com>
30506
30507 * normal/menu_text.c (get_entry_number): Move from here ...
30508 * normal/menu.c (get_entry_number): ... moved here.
30509 * include/grub/menu.h (grub_menu_get_default_entry_index):
30510 New prototype.
30511 * normal/menu.c (grub_menu_get_default_entry_index): New function.
30512 * normal/menu_text.c (run_menu): Use grub_menu_get_default_entry_index.
30513 * include/grub/menu_viewer.h (grub_menu_viewer_init): New prototype.
30514 (grub_menu_viewer_should_return): Likewise.
30515 * normal/main.c (GRUB_MOD_INIT (normal)): Call grub_menu_viewer_init.
30516 * normal/menu_text.c (run_menu): Enable menu switching.
30517 * normal/menu_viewer.c (should_return): New variable.
30518 (menu_viewer_changed): Likewise.
30519 (grub_menu_viewer_show_menu): Handle menu viewer changes.
30520 (grub_menu_viewer_should_return): New function.
30521 (menuviewer_write_hook): Likewise.
30522 (grub_menu_viewer_init): Likewise.
30523
305242010-02-06 Colin D Bennet <colin@gibibit.com>
305252010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30526
30527 Support for gfxterm in a window.
30528
30529 * include/grub/gfxterm.h: New file.
30530 * include/grub/video.h (struct grub_video_rect): New declaration.
30531 (grub_video_rect_t): Likewise.
30532 * term/gfxterm.c (struct grub_gfxterm_window): New type.
30533 (refcount): New variable.
30534 (render_target): Likewise.
30535 (window): Likewise.
30536 (repaint_callback): Likewise.
30537 (grub_virtual_screen_setup): Use 'render_target'.
30538 (init_window): New function.
30539 (grub_gfxterm_init_window): Likewise.
30540 (grub_gfxterm_init): Check reference counter.
30541 Use init_window.
30542 (destroy_window): New function.
30543 (grub_gfxterm_destroy_window): Likewise.
30544 (grub_gfxterm_fini): Check reference counter.
30545 Use destroy_window.
30546 (redraw_screen_rect): Restore viewport.
30547 Use 'render_target' and 'window'.
30548 Call 'repaint_callback'.
30549 (write_char): Use 'render_target'.
30550 (draw_cursor): Likewise.
30551 (scroll_up): Restore viewport.
30552 Use 'render_target' and 'window'.
30553 Call 'repaint_callback'.
30554 (grub_gfxterm_cls): Likewise.
30555 (grub_gfxterm_refresh): Use 'window'.
30556 (grub_gfxterm_set_repaint_callback): New function.
30557 (grub_gfxterm_background_image_cmd): Use 'window'.
30558 (grub_gfxterm_get_term): New function.
30559 (GRUB_MOD_INIT(term_gfxterm)): Set 'refcount' to 0.
30560
305612010-02-06 Colin D Bennett <colin@gibibit.com>
30562
30563 Bitmap scaling support.
30564
30565 * conf/common.rmk (pkglib_MODULES): Add bitmap_scale.mod.
30566 (bitmap_scale_mod_SOURCES): New variable.
30567 (bitmap_scale_mod_CFLAGS): Likewise.
30568 (bitmap_scale_mod_LDFLAGS): Likewise.
30569 * include/grub/bitmap_scale.h: New file.
30570 * term/gfxterm.c (BACKGROUND_CMD_ARGINDEX_MODE): New definiton.
30571 (background_image_cmd_options): New variable.
30572 (grub_gfxterm_background_image_cmd): Support bitmap stretching.
30573 (cmd): Rename and change type to ...
30574 (background_image_cmd_handle): ... this. All users updated.
30575 (GRUB_MOD_INIT(term_gfxterm)): Make background_image extended command.
30576 * video/bitmap_scale.c: New file.
30577
305782010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30579
30580 SDL support.
30581
30582 * Makefile.in (LIBSDL): New variable.
30583 (enable_grub_emu_sdl): Likewise.
30584 * conf/i386-pc.rmk (grub_emu_SOURCES): Add video files.
30585 (grub_emu_SOURCES) [enable_grub_emu_sdl]: Add util/sdl.c.
30586 (grub_emu_LDFLAGS) [enable_grub_emu_sdl]: Add $(LIBSDL).
30587 * configure.ac: Detect SDL availability and add --enable-grub-emu-sdl
30588 * util/sdl.c: New file.
30589
305902010-02-06 Colin D Bennett <colin@gibibit.com>
305912010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30592
30593 Double buffering support.
30594
30595 * commands/i386/pc/videotest.c (grub_cmd_videotest): Swap doublebuffers.
30596 * include/grub/video.h: Update comment.
30597 * include/grub/video_fb.h (grub_video_fb_doublebuf_update_screen_t):
30598 New type.
30599 (grub_video_fb_doublebuf_blit_init): New prototype.
30600 * term/gfxterm.c (scroll_up): Support double buffering.
30601 (grub_gfxterm_refresh): Likewise.
30602 * video/fb/video_fb.c (doublebuf_blit_update_screen): New function.
30603 (grub_video_fb_doublebuf_blit_init): Likewise.
30604 * video/i386/pc/vbe.c (framebuffer): Remove 'render_target'. Add
30605 'front_target', 'back_target', 'offscreen_buffer', 'page_size',
30606 'displayed_page', 'render_page' and 'update_screen'.
30607 (grub_video_vbe_fini): Free offscreen buffer.
30608 (doublebuf_pageflipping_commit): New function.
30609 (doublebuf_pageflipping_update_screen): Likewise.
30610 (doublebuf_pageflipping_init): Likewise.
30611 (double_buffering_init): Likewise.
30612 (grub_video_vbe_setup): Enable doublebuffering.
30613 (grub_video_vbe_swap_buffers): Implement.
30614 (grub_video_vbe_set_active_render_target): Handle double buffering.
30615 (grub_video_vbe_get_active_render_target): Likewise.
30616 (grub_video_vbe_get_info_and_fini): Likewise. Free offscreen_buffer.
30617 (grub_video_vbe_adapter): Use grub_video_vbe_get_active_render_target.
30618 (grub_video_vbe_enable_double_buffering): Likewise.
30619 (grub_video_vbe_swap_buffers): Use update_screen.
30620 (grub_video_set_mode): Use double buffering.
30621
306222010-02-06 Robert Millan <rmh.grub@aybabtu.com>
30623
30624 * maintainance/gentrigtables.py: Remove.
30625 * lib/trig.c: Likewise.
30626
30627 * gentrigtables.c: New file. C rewrite of gentrigtables.py.
30628
30629 * conf/common.rmk (trig_mod_SOURCES): Replace `lib/trig.c' with
30630 `trigtables.c'.
30631 (trigtables.c): New rule.
30632 (gentrigtables): Likewise.
30633 (DISTCLEANFILES): Add `trigtables.c' and `gentrigtables'.
30634
306352010-02-06 Robert Millan <rmh.grub@aybabtu.com>
30636
30637 * maintainance/gentrigtables.py: Avoid duplicate hardcoding of
30638 integer constants.
30639
306402010-02-06 Colin D Bennet <colin@gibibit.com>
30641
30642 Trigonometry support.
30643
30644 * include/grub/trig.h: New file.
30645 * lib/trig.c: Likewise.
30646 * maintainance/gentrigtables.py: Likewise.
30647 * conf/common.rmk (pkglib_MODULES): Add trig.mod.
30648 (trig_mod_SOURCES): New variable.
30649 (trig_mod_CFLAGS): Likewise.
30650 (trig_mod_LDFLAGS): Likewise.
30651
5562834e
VS
306522010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30653
30654 * kern/ieee1275/openfw.c (grub_ieee1275_encode_devname): Support whole
30655 disk devices.
30656
4f8528fc
VS
306572010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30658
30659 * kern/ieee1275/openfw.c (grub_devalias_iterate): Stop iterating on
30660 error.
30661
2b4068e9
VS
306622010-02-03 Vladimir Serbinenko <phcoder@gmail.com>
30663
30664 * util/hostdisk.c (open_device): Don't use partition device when reading
30665 before the partition.
30666 (grub_util_biosdisk_read): Don't read from partition and before the
30667 partition in single operation.
30668 (grub_util_biosdisk_write): Don't write to partition and before the
30669 partition in single operation.
30670
399f6e4d
TL
306712010-02-03 Torsten Landschoff <torsten@debian.org>
30672
30673 * kern/disk.c (grub_disk_read): Fix offset computation when reading
30674 last sectors.
30675
996649b0
VS
306762010-02-03 Vladimir Serbinenko <phcoder@gmail.com>
30677
30678 * disk/i386/pc/biosdisk.c (grub_biosdisk_read): Handle non-2048 aligned
30679 CDROM reads.
30680 (grub_biosdisk_write): Refuse to write to CDROM.
30681
3b205d4d
VS
306822010-01-31 Vladimir Serbinenko <phcoder@gmail.com>
30683
30684 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Fix off-by-one error.
30685
61e89d9d
VS
306862010-01-31 Vladimir Serbinenko <phcoder@gmail.com>
30687
30688 * font/font.c (find_glyph): Check that bmp_idx is available before
30689 using it.
30690 (grub_font_get_string_width): Never call grub_font_get_glyph_internal
30691 with (font == NULL).
30692
bf7fcba2
CS
306932010-01-28 Christian Schmitt <chris@ilovelinux.de>
30694
30695 * util/ieee1275/grub-install.in: Fix nvsetenv arguments.
30696
f45d2663
BC
306972010-01-28 BVK Chaitanya <bvk.groups@gmail.com>
30698
30699 * include/grub/script_sh.h (sourcecode): Add const qualifier.
30700 * util/grub-script-check.c (getline): Fix empty lines case.
30701
ec1444e6
RM
307022010-01-28 Robert Millan <rmh.grub@aybabtu.com>
30703
30704 * Makefile.in (check): Exit with fail status when one of the tests
30705 fails.
30706 * tests/example_functional_test.c (example_test): Fix reversed assert.
30707 * tests/example_unit_test.c (example_test): Likewise.
30708
2e1cb9bb
CW
307092010-01-28 Colin Watson <cjwatson@ubuntu.com>
30710
30711 * util/grub.d/10_linux.in: This script does not use any of the
30712 contents of gettext.sh, only the external command `gettext', so stop
30713 sourcing it. (Moreover, gettext.sh isn't necessarily installed in
30714 the same prefix as GRUB.)
30715 * util/grub.d/10_kfreebsd.in: Likewise.
30716
63533ab0
VS
307172010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
30718
30719 * normal/cmdline.c (grub_cmdline_get): Fix completion in the middle
30720 of the line.
30721
989e1f93
VS
307222010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
30723
30724 * kern/disk.c (grub_disk_read): Fix offset computation when reading
30725 last sectors.
30726
e709ebe2
VS
307272010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
30728
30729 * commands/hashsum.c (hash_file): Avoid possible stack overflow by
30730 having a 4KiB and not 32KiB buffer size.
30731
27dea7ed
RM
307322010-01-27 Robert Millan <rmh.grub@aybabtu.com>
30733
30734 * util/hostfs.c: Include `<errno.h>'.
30735 (grub_hostfs_read): Handle errors from fseeko() and fread().
30736
67667b9c
RM
307372010-01-27 Robert Millan <rmh.grub@aybabtu.com>
30738
30739 * kern/disk.c (grub_disk_read): Fix bug that would cause infinite
30740 loop when using read hooks on files whose size isn't sector-aligned.
30741
c294d9d8
RM
307422010-01-27 Robert Millan <rmh.grub@aybabtu.com>
30743
30744 Remove unused parameter.
30745
30746 * fs/iso9660.c (struct grub_iso9660_data): Remove `length' parameter.
30747 (grub_iso9660_open): Remove initialization of `data->length'.
30748
af75a9f1
RM
307492010-01-27 Robert Millan <rmh.grub@aybabtu.com>
30750
30751 * util/grub-fstest.c (fstest): Rewrite allocation, fixing a few
30752 memleak conditions.
30753
254e2ce5 307542010-01-27 Carles Pina i Estany <carles@pina.cat>
30755
30756 * util/lvm.c: New macro LVM_DEV_MAPPER_STRING.
30757 (grub_util_lvm_isvolume): Use LVM_DEV_MAPPER_STRING.
30758
b510928c 307592010-01-26 Carles Pina i Estany <carles@pina.cat>
30760
30761 * util/bin2h.c (usage): Fix warning (space after backslash).
30762
aa2f9dd2 307632010-01-26 Carles Pina i Estany <carles@pina.cat>
de0b7a4e 30764
30765 * font/font.c: Include `grub/fontformat.h.
30766 Remove font file format constants.
30767 (grub_font_load): Use the new macros.
30768 * include/grub/fontformat.h: New file.
30769 * util/grub-mkfont.c: Include `grub/fontformat.c'.
30770 (write_font_pf2): Use the new macros.
30771
94e7e712
RM
307722010-01-26 Robert Millan <rmh.grub@aybabtu.com>
30773
30774 * util/bin2h.c (usage): Make --help actually explain what `grub-bin2h'
30775 does.
30776
3973a59a
RM
307772010-01-26 Robert Millan <rmh.grub@aybabtu.com>
30778
30779 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_PXE_DL): New macro.
30780
30781 * boot/i386/pc/pxeboot.S: Include `<grub/machine/boot.h>'.
30782 (_start): Macroify `0x7F'.
30783
30784 * kern/i386/pc/init.c: Include `<grub/machine/boot.h>'.
30785 (make_install_device): Use "(pxe)" as fallback prefix when booting
30786 via PXE.
30787
42e0cba3
GS
307882010-01-26 Vladimir Serbinenko <phcoder@gmail.com>
30789
30790 * configure.ac: Reset LIBS after check for libgcc symbols.
30791
847effd8
CW
307922010-01-25 Colin Watson <cjwatson@ubuntu.com>
30793
30794 * util/hostdisk.c (open_device): Add trailing newline to debug
30795 message.
30796
ea4a7e35
GS
307972010-01-25 Grégoire Sutre <gregoire.sutre@gmail.com>
30798
30799 * configure.ac: Check for `limits.h'.
30800 * util/misc.c: Include `<limits.h>' (for PATH_MAX).
30801
67951a53
RM
308022010-01-24 Robert Millan <rmh.grub@aybabtu.com>
30803
30804 * loader/mips/linux.c (grub_cmd_linux, grub_cmd_initrd): Don't
30805 capitalize error strings.
30806
c273d4ce
ST
308072010-01-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
30808
30809 * util/grub.d/10_hurd.in: Add a recovery mode.
30810
69be5b74
VS
308112010-01-23 Vladimir Serbinenko <phcoder@gmail.com>
30812
30813 * configure.ac: Check for libgcc symbols with -nostdlib.
30814
fc9e5810
BC
308152010-01-23 BVK Chaitanya <bvk.groups@gmail.com>
30816
30817 * acinclude.m4: Quote underquoted AC_DEFUN parameters.
30818
4b358c0a
VS
308192010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
30820
30821 * term/ieee1275/ofconsole.c (grub_ofconsole_setcolorstate): Allocate on
30822 stack since heap may be unavailable at that point.
30823 (grub_ofconsole_gotoxy): Likewise.
30824
454fcd1c
VS
308252010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
30826
30827 * configure.ac: Check for _restgpr_14_x.
30828 * include/grub/powerpc/libgcc.h [HAVE__RESTGPR_14_X]: Add _restgpr_*_x
30829 and _savegpr_* prototypes.
30830
566863ca
RM
308312010-01-22 Robert Millan <rmh.grub@aybabtu.com>
30832
30833 Use generic grub_reboot() for i386-efi.
30834
30835 * kern/efi/efi.c [__i386__] (grub_reboot): Remove.
30836 * kern/i386/efi/startup.S: Include `"../realmode.S"'.
30837 * kern/i386/realmode.S: Include `<grub/i386/pc/memory.h>'.
30838
bf86e59a
VS
308392010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
30840
30841 * kern/ieee1275/init.c (grub_machine_set_prefix): Don't check for
30842 presence of "prefix" variable as it breaks when normal.mod is
30843 embedded.
30844
d645e0f8
VS
308452010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
30846
30847 * term/ieee1275/ofconsole.c (grub_ofconsole_dimensions): Allocate on
30848 stack since heap is unavailable at that point.
30849
f9ab2e25
VS
308502010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
30851
30852 * include/grub/i386/bsd.h (FREEBSD_N_BIOS_GEOM): Removed.
30853 (grub_freebsd_bootinfo): Rewritten.
30854 * loader/i386/bsd.c (grub_freebsd_boot): Use new grub_freebsd_bootinfo.
30855
01fc7054
VS
308562010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
30857
30858 * util/misc.c (make_system_path_relative_to_its_root): Fix typo.
30859
caab4fd6
RM
308602010-01-21 Robert Millan <rmh.grub@aybabtu.com>
30861
30862 * po/POTFILES: Remove mkisofs-related files. They have their own TLP
30863 domain now.
30864
67eb1427
FZ
308652010-01-20 Felix Zielcke <fzielcke@z-51.de>
30866
30867 * util/misc.c (make_system_path_relative_to_its_root): Change the work
30868 around for handling "/" to the correct fix. Fix a memory leak. Use
30869 xstrdup instead of strdup.
30870
a9ed4ff3
VS
308712010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
30872
30873 * conf/mips.rmk (kernel_img_HEADERS): Add env_private.h
30874
308752010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
bed35bda
VS
30876
30877 Optimise glyph lookup by Basic Multilingual Plane lookup array.
30878
30879 * font/font.c (struct grub_font): New member 'bmp_idx'.
30880 (font_init): Initialise 'bmp_idx'.
30881 (load_font_index): Fill 'bmp_idx'.
30882 (find_glyph): Make inline. Use bmp_idx for BMP characters.
30883
48209f4f
VS
308842010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
30885
30886 * video/fb/video_fb.c (grub_video_fb_scroll): Optimise by avoiding
30887 unnecessary calls.
30888
9f0a4bb7
VS
308892010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
30890
30891 Move context handling out of the kernel.
30892
30893 * conf/any-emu.rmk (grub_emu_SOURCES): Add normal/context.c.
30894 * conf/common.rmk (normal_mod_SOURCES): Add normal/context.c.
30895 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add env_private.h.
30896 * conf/i386-efi.rmk: Likewise.
30897 * conf/i386-ieee1275.rmk: Likewise.
30898 * conf/i386-pc.rmk: Likewise.
30899 * conf/powerpc-ieee1275.rmk: Likewise.
30900 * conf/sparc64-ieee1275.rmk: Likewise.
30901 * conf/x86_64-efi.rmk: Likewise.
30902 * include/grub/env.h: Include grub/menu.h.
30903 (grub_env_var_type): Removed.
30904 (grub_env_var): Replaced field 'type' with 'global'.
30905 (grub_env_find): New prototype.
30906 (grub_env_context_open): Remove EXPORT_FUNC.
30907 (grub_env_context_close): Likewise.
30908 (grub_env_export): Likewise.
30909 (grub_env_set_data_slot): Removed.
30910 (grub_env_get_data_slot): Likewise.
30911 (grub_env_unset_data_slot): Likewise.
30912 (grub_env_unset_menu): New prototype.
30913 (grub_env_set_menu): Likewise.
30914 (grub_env_get_menu): Likewise.
30915 * include/grub/env_private.h: New file.
30916 * include/grub/normal.h (grub_context_init): New prototype.
30917 (grub_context_fini): Likewise.
30918 * kern/corecmd.c (grub_core_cmd_export): Moved from here ...
30919 * normal/context.c (grub_cmd_export): ... to here.
30920 * kern/env.c: Include env_private.h.
30921 (HASHSZ): Moved to include/grub/env_private.h.
30922 (grub_env_context): Likewise.
30923 (grub_env_sorted_var): Likewise.
30924 (current_context): Renamed from this ...
30925 (grub_current_context): ...to this. 'static' removed. All users updated.
30926 (grub_env_find): Removed 'static'.
30927 (grub_env_context_open): Moved to normal/context.c.
30928 (grub_env_context_close): Likewise.
30929 (grub_env_export): Likewise.
30930 (mangle_data_slot_name): Removed.
30931 (grub_env_set_data_slot): Likewise.
30932 (grub_env_get_data_slot): Likewise.
30933 (grub_env_unset_data_slot): Likewise.
30934 * kern/main.c (grub_set_root_dev): Don't export root.
30935 It will be done later.
30936 (grub_main): Don't export prefix.
30937 It will be done later.
30938 * normal/context.c: New file.
30939 * normal/main.c (free_menu): Use grub_env_unset_menu.
30940 (grub_normal_add_menu_entry): Use grub_env_get_menu.
30941 (read_config_file): Use grub_env_get_menu and grub_env_set_menu.
30942 (GRUB_MOD_INIT(normal)): Call grub_context_init.
30943 (GRUB_MOD_FINI(normal)): Call grub_context_fini.
30944
8dd35b8c
VS
309452010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
30946
30947 setpci support.
30948
30949 * commands/setpci.c: New file.
30950 * conf/i386.rmk (pkglib_MODULES): Add setpci.mod.
30951 (setpci_mod_SOURCES): New variable.
30952 (setpci_mod_CFLAGS): Likewise.
30953 (setpci_mod_LDFLAGS): Likewise.
30954
449193d5
VS
309552010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
30956
30957 Byte-addressable PCI configuration space.
30958
30959 * bus/pci.c (grub_pci_make_address): Use byte address instead of
30960 dword address.
30961 (grub_pci_iterate): Use macroses GRUB_PCI_REG_PCI_ID and
30962 GRUB_PCI_REG_CACHELINE.
30963 * bus/usb/ohci.c (grub_ohci_pci_iter): Use macroses
30964 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESS_REG0.
30965 * bus/usb/uhci.c (grub_ohci_pci_iter): Use macroses
30966 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESS_REG4.
30967 * commands/efi/fixvideo.c (scan_card): Use macros GRUB_PCI_REG_CLASS.
30968 * commands/efi/loadbios.c (enable_rom_area): Pass byte-address to
30969 grub_pci_make_address.
30970 (lock_rom_area): Likewise.
30971 * commands/lspci.c (grub_lspci_iter): Use macroses
30972 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESSES. Handle byte-addressing
30973 of grub_pci_make_address.
30974 * disk/ata.c (grub_ata_pciinit): Likewise.
30975 * include/grub/pci.h (GRUB_PCI_REG_PCI_ID): New macro.
30976 (GRUB_PCI_REG_VENDOR): Likewise.
30977 (GRUB_PCI_REG_DEVICE): Likewise.
30978 (GRUB_PCI_REG_COMMAND): Likewise.
30979 (GRUB_PCI_REG_STATUS): Likewise.
30980 (GRUB_PCI_REG_REVISION): Likewise.
30981 (GRUB_PCI_REG_CLASS): Likewise.
30982 (GRUB_PCI_REG_CACHELINE): Likewise.
30983 (GRUB_PCI_REG_LAT_TIMER): Likewise.
30984 (GRUB_PCI_REG_HEADER_TYPE): Likewise.
30985 (GRUB_PCI_REG_BIST): Likewise.
30986 (GRUB_PCI_REG_ADDRESSES): Likewise.
30987 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
30988 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
30989 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
30990 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
30991 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
30992 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
30993 (GRUB_PCI_REG_CIS_POINTER): Likewise.
30994 (GRUB_PCI_REG_SUBVENDOR): Likewise.
30995 (GRUB_PCI_REG_SUBSYSTEM): Likewise.
30996 (GRUB_PCI_REG_ROM_ADDRESS): Likewise.
30997 (GRUB_PCI_REG_CAP_POINTER): Likewise.
30998 (GRUB_PCI_REG_IRQ_LINE): Likewise.
30999 (GRUB_PCI_REG_IRQ_PIN): Likewise.
31000 (GRUB_PCI_REG_MIN_GNT): Likewise.
31001 (GRUB_PCI_REG_MAX_LAT): Likewise.
31002 * loader/i386/efi/linux.c (find_framebuf): Use GRUB_PCI_REG_CLASS.
31003 * loader/i386/efi/xnu.c (find_framebuf): Likewise.
31004 * video/efi_uga.c (find_framebuf): Likewise.
fdb1b2ea 31005 * video/sm712.c (grub_video_sm712_setup): Likewise.
449193d5
VS
31006 * util/pci.c (grub_pci_make_address): Use byte-addressed configuration
31007 space.
31008
96d73208
RM
310092010-01-20 Robert Millan <rmh.grub@aybabtu.com>
31010
31011 * util/grub.d/10_linux.in (linux_entry): Set gfxpayload=keep when it
31012 can be reliably determined to be supported.
31013
d4484482
RM
310142010-01-20 Robert Millan <rmh.grub@aybabtu.com>
31015
31016 * loader/i386/linux.c (grub_cmd_linux): If `vga=' was used, write down
31017 that VESA is supported.
31018 (grub_linux_boot): Use generic framebuffer unless VESA is known to be
31019 supported.
31020
00308ecf
VS
310212010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31022
31023 * conf/common.rmk (font/font.c_DEPENDENCIES): Condition on FONT_SOURCE.
31024
f66924a4
RM
310252010-01-20 Robert Millan <rmh.grub@aybabtu.com>
31026
31027 * util/misc.c (make_system_path_relative_to_its_root): Work around
31028 special-casing of "/", as previous incarnation of this routine did.
31029
cbca0ada
VS
310302010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31031
31032 Fix any-emu compilation.
31033
31034 * conf/any-emu.rmk (bin_UTILITIES): Add grub-bin2h.
31035 * grub_bin2h_SOURCES: New variable.
31036
34a66d99
RM
310372010-01-20 Robert Millan <rmh.grub@aybabtu.com>
31038
31039 * util/grub.d/00_header.in: Fix stupid mistake from last commit.
31040
94fabf58
RM
310412010-01-20 Robert Millan <rmh.grub@aybabtu.com>
31042
31043 * util/grub.d/00_header.in: Fix handling of locale_dir.
31044
02cf98ca
VS
310452010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31046
31047 * configure.ac: Add /usr/share/fonts/unifont/unifont.pcf.gz
31048 as possible unifont location (Gentoo).
31049 Reported by: Alexander Brüning
31050
327dbcd7
VS
310512010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31052
31053 Don't try to generate lists for kernel.img.
31054
31055 * conf/i386-efi.rmk (pkglib_PROGRAMS): New variable.
31056 (pkglib_MODULES): Remove kernel.img.
31057 (kernel_img_EXPORTS): Removed.
31058 (kernel_img_RELOCATABLE): New variable.
31059 * conf/x86_64-efi.rmk: Likewise.
31060 * genmk.rb: Remove *_EXPORTS support and add *_RELOCATABLE support.
31061
ca467290
VS
310622010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31063
31064 * include/grub/misc.h (grub_sprintf): Removed. All users switched to
31065 grub_xasprintf or grub_snprintf.
31066 (grub_vsprintf): Likewise.
31067 (grub_snprintf): New proto.
31068 (grub_vsnprintf): Likewise.
31069 (grub_xasprintf): Likewise.
31070 (grub_xvasprintf): Likewise.
31071 * kern/misc.c (grub_vprintf): Use grub_vsnprintf_real.
31072 (grub_sprintf): Removed.
31073 (grub_vsnprintf): New function.
31074 (grub_snprintf): Likewise.
31075 (grub_xvasprintf): Likewise.
31076 (grub_xasprintf): Likewise.
31077 (grub_vsprintf): Renamed to ...
31078 (grub_vsnprintf_real): ...this. New argument max_len.
31079
aca655fd
BC
310802010-01-20 BVK Chaitanya <bvk.groups@gmail.com>
31081
31082 * include/grub/script_sh.h (sourcecode): Remove const qualifier to
31083 fix grub-script-check warning.
31084
7ee92c32
VS
310852010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31086
31087 * include/grub/font.h (grub_font_load): Fix prototype.
31088
f80927ca
VS
310892010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31090
31091 * conf/mips.rmk (kernel_img_HEADERS) [yeeloong]: Add pci.h.
31092
119c50ea
VS
310932010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31094
31095 * include/grub/x86_64/at_keyboard.h: New file.
31096
47d5f3c1
VS
310972010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31098
31099 * loader/mips/linux.c: Include missing grub/i18n.h.
31100
55ff5266
RM
311012009-12-20 Robert Millan <rmh.grub@aybabtu.com>
31102
31103 * normal/menu.c (notify_execution_failure): Clarify error message.
31104
c893cc87
RM
311052009-12-20 Robert Millan <rmh.grub@aybabtu.com>
31106
31107 * commands/loadenv.c (check_blocklists): Use `grub_err_t' as
31108 return value (and revert all return statements). Update users.
31109
917dd370
CW
311102010-01-20 Dan Merillat <debian@dan.merillat.org>
31111
31112 * kern/device.c (grub_device_iterate): Allocate new part_ent
31113 structure based on sizeof (*p) rather than sizeof (p->next), to
31114 account for structure padding.
31115
31116 * util/grub-probe.c (probe_raid_level): Return -1 immediately if
31117 disk is NULL, which might happen for LVM physical volumes with no
31118 LVM signature.
31119
d4a4ee57
RM
311202009-12-20 Robert Millan <rmh.grub@aybabtu.com>
31121
31122 * loader/mips/linux.c (grub_cmd_initrd)
31123 (GRUB_MOD_INIT(linux)): Adjust and gettextize a few strings.
31124
311252009-12-20 Robert Millan <rmh.grub@aybabtu.com>
31126
31127 * kern/mips/yeeloong/init.c (grub_video_sm712_init)
31128 (grub_video_video_init, grub_video_bitmap_init)
31129 (grub_font_manager_init, grub_term_gfxterm_init)
31130 (grub_at_keyboard_init): New extern declarations.
31131 (grub_machine_init): Initialize gfxterm and at_keyboard.
31132
31133 * kern/main.c (grub_main): Revert grub_printf delay kludge.
31134
31135 * util/grub-install.in: Revert embed of `at_keyboard.mod' and
31136 `gfxterm.mod' into core image.
31137
31138 * conf/mips.rmk (pkglib_IMAGES, kernel_img_SOURCES)
31139 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
31140 (kernel_img_FORMAT): Copy to ...
31141
31142 * conf/mips-qemu-mips.rmk (pkglib_IMAGES, kernel_img_SOURCES)
31143 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
31144 (kernel_img_FORMAT): ... here, and ...
31145
31146 * conf/mips-yeeloong.rmk (pkglib_IMAGES, kernel_img_SOURCES)
31147 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
31148 (kernel_img_FORMAT): ... here.
31149
31150 (kernel_img_SOURCES): Add files necessary for output (gfxterm)
31151 and input (at_keyboard) terminals in kernel.
31152 (kernel_img_CFLAGS): Add `-DUSE_ASCII_FAILBACK'.
31153
31154 (pkglib_MODULES): Remove `pci.mod'.
31155 (pci_mod_SOURCES, pci_mod_CFLAGS, pci_mod_LDFLAGS)
31156 (sm712_mod_SOURCES, sm712_mod_CFLAGS, sm712_mod_LDFLAGS)
31157 (at_keyboard_mod_SOURCES, at_keyboard_mod_CFLAGS)
31158 (at_keyboard_mod_LDFLAGS): Remove variables.
31159
311602010-01-11 Felix Zielcke <fzielcke@z-51.de>
31161
31162 * po/POTFILES: Replace `term/i386/pc/serial.c' with `term/serial.c'.
31163
311642009-12-10 Robert Millan <rmh.grub@aybabtu.com>
31165
31166 * include/grub/mips/libgcc.h: Only export symbols for functions
31167 that libgcc provides.
31168
311692009-12-02 Vladimir Serbinenko <phcoder@gmail.com>
31170
31171 MIPS support.
31172
31173 * bus/bonito.c: New file.
31174 * bus/pci.c (grub_pci_iterate): Use GRUB_PCI_NUM_BUS and
31175 GRUB_PCI_NUM_DEVICES.
31176 * term/i386/pc/serial.c: Move to ...
31177 * term/serial.c: ... here. All users updated.
31178 * util/i386/pc/grub-mkimage.c: Move to ...
31179 * util/grub-mkrawimage.c: ... here. All users updated.
31180 * term/i386/pc/at_keyboard.c: Move to ...
31181 * term/at_keyboard.c: ... here. All users updated.
31182 * conf/mips-qemu-mips.rmk: New file.
31183 * conf/mips-yeeloong.rmk: Likewise.
31184 * conf/mips.rmk: Likewise.
31185 * configure.ac: New platforms mipsel-yeeloong, mips-qemu-mips and
31186 mipsel-qemu-mips.
31187 * disk/ata.c (grub_ata_device_initialize): Add GRUB_MACHINE_PCI_IO_BASE
31188 to port addresses.
31189 (grub_ata_pciinit): Support CS5536.
31190 * font/font.c (grub_font_load): Use grub_file_t instead of filename.
31191 * font/font_cmd.c (loadfont_command): Open file before passing it to
31192 grub_font_load.
31193 (pseudo_file_read): New function.
31194 (pseudo_file_close): Likewise.
31195 (pseudo_fs): New structure.
31196 (load_font_module): New function.
31197 (GRUB_MOD_INIT(font_manager)): Load embedded font.
31198 * fs/cpio.c (grub_cpio_open): Handle partial matches correctly.
31199 * genmk.rb: Strip .rel.dyn, .reginfo, .note and .comment.
31200 * genmoddep.awk: Ignore __gnu_local_gp. It's defined by linker.
31201 * include/grub/i386/at_keyboard.h: Split into ...
31202 * include/grub/at_keyboard.h: ... this ...
31203 * include/grub/i386/at_keyboard.h: ... and this.
31204 * include/grub/dl.h (grub_arch_dl_init_linker) [_mips && !GRUB_UTIL]:
31205 New prototype.
31206 * include/grub/elfload.h (grub_elf32_size): New parameter. All users
31207 updated.
31208 (grub_elf64_size): Likewise.
31209 * include/grub/font.h (grub_font_load): Use grub_file_t instead of
31210 filename.
31211 * include/grub/i386/io.h (grub_port_t): New type. All users updated.
31212 * include/grub/i386/coreboot/serial.h: Rewritten.
31213 * include/grub/i386/ieee1275/serial.h: Include
31214 grub/i386/coreboot/serial.h instead of grub/i386/pc/serial.h.
31215 * include/grub/i386/pc/serial.h: Moved from here ...
31216 * include/grub/serial.h: ... to here. All users updated.
31217 * include/grub/i386/pci.h (GRUB_MACHINE_PCI_IO_BASE): New definition.
31218 (GRUB_PCI_NUM_BUS): Likewise.
31219 (GRUB_PCI_NUM_DEVICES): Likewise.
31220 (grub_pci_device_map_range): Add missing volatile keyword.
31221 * include/grub/kernel.h (OBJ_TYPE_FONT): New enum value.
31222 * include/grub/mips/at_keyboard.h: New file.
31223 * include/grub/mips/cache.h: Likewise.
31224 * include/grub/mips/io.h: Likewise.
31225 * include/grub/mips/kernel.h: Likewise.
31226 * include/grub/mips/libgcc.h: Likewise.
31227 * include/grub/mips/pci.h: Likewise.
31228 * include/grub/mips/qemu-mips/boot.h: Likewise.
31229 * include/grub/mips/qemu-mips/kernel.h: Likewise.
31230 * include/grub/mips/qemu-mips/loader.h: Likewise.
31231 * include/grub/mips/qemu-mips/memory.h: Likewise.
31232 * include/grub/mips/qemu-mips/serial.h: Likewise.
31233 * include/grub/mips/qemu-mips/time.h: Likewise.
31234 * include/grub/mips/relocator.h: Likewise.
31235 * include/grub/mips/time.h: Likewise.
31236 * include/grub/mips/types.h: Likewise.
31237 * include/grub/mips/yeeloong/at_keyboard.h: Likewise.
31238 * include/grub/mips/yeeloong/boot.h: Likewise.
31239 * include/grub/mips/yeeloong/kernel.h: Likewise.
31240 * include/grub/mips/yeeloong/loader.h: Likewise.
31241 * include/grub/mips/yeeloong/memory.h: Likewise.
31242 * include/grub/mips/yeeloong/pci.h: Likewise.
31243 * include/grub/mips/yeeloong/serial.h: Likewise.
31244 * include/grub/mips/yeeloong/time.h: Likewise.
31245 * kern/dl.c (grub_dl_resolve_symbols): Handle STT_OBJECT correctly.
31246 * kern/elf.c (grub_elf32_size): New parameter. All users
31247 updated.
31248 (grub_elf64_size): Likewise.
31249 * kern/main.c (grub_main): Call grub_arch_dl_init_linker if necessary.
31250 Load modules before saying "Welcome to GRUB!".
31251 Call grub_refresh after saying "Welcome to GRUB!".
31252 * kern/mips/cache.S: New file.
31253 * kern/mips/cache_flush.S: Likewise.
31254 * kern/mips/dl.c: Likewise.
31255 * kern/mips/init.c: Likewise.
31256 * kern/mips/qemu-mips/init.c: Likewise.
31257 * kern/mips/startup.S: Likewise.
31258 * kern/mips/yeeloong/init.c: Likewise.
31259 * kern/term.c (grub_putcode): Handle NULL terminal.
31260 (grub_getcharwidth): Likewise.
31261 (grub_getkey): Likewise.
31262 (grub_checkkey): Likewise.
31263 (grub_getkeystatus): Likewise.
31264 (grub_getxy): Likewise.
31265 (grub_getwh): Likewise.
31266 (grub_gotoxy): Likewise.
31267 (grub_cls): Likewise.
31268 (grub_setcolorstate): Likewise.
31269 (grub_setcolor): Likewise.
31270 (grub_getcolor): Likewise.
31271 (grub_refresh): Likewise.
31272 * lib/mips/relocator.c (JUMP_SIZEOF): Fix incorrect value.
31273 (write_jump): Add hatch nop.
31274 * lib/mips/relocator_asm.S: Use kern/mips/cache_flush.S.
31275 * lib/mips/setjmp.S: New file.
31276 * loader/mips/linux.c: Likewise.
31277 * term/i386/pc/at_keyboard.c: Move from here ...
31278 * term/at_keyboard.c: ... to here.
31279 * term/i386/pc/serial.c: Moved from here ...
31280 * term/serial.c: ... to here. All users updated.
31281 (TEXT_HEIGHT): Set to 24 to fit linux terminal.
31282 (serial_hw_io_addr): Use GRUB_MACHINE_SERIAL_PORTS.
31283 (serial_translate_key_sequence): Avoid deadlock.
31284 (grub_serial_getkey): Handle backspace.
31285 (grub_serial_putchar): Fix newline handling.
31286 * util/i386/pc/grub-mkimage.c: Move from here ...
31287 * util/grub-mkrawimage.c: ... to here. All users updated.
31288 (generate_image): New parameters 'font_path' and 'format'.
31289 Support embedding font.
31290 Use grub_host_to_target* instead of grub_cpu_to_le*.
31291 (generate_image) [GRUB_MACHINE_MIPS]: Support ELF encapsulation.
31292 (options) [GRUB_PLATFORM_IMAGE_DEFAULT]: New option "--format".
31293 (options): New option "--font".
31294 (usage): Likewise.
31295 (main) [GRUB_PLATFORM_IMAGE_DEFAULT]: Handle "--format".
31296 (main): Handle "--font".
31297 * term/gfxterm.c (grub_virtual_screen): New member bg_color_display.
31298 (grub_virtual_screen_setup): Set bg_color_display.
31299 (redraw_screen_rect): Use bg_color_display instead of incorrect
31300 bg_color.
31301 (grub_gfxterm_cls): Likewise.
31302 * util/elf/grub-mkimage.c (load_modules): New parameter 'config_path'.
31303 Support embedding config file.
31304 (add_segments): Likewise.
31305 (options): New option "--config".
31306 (main): Handle "--config".
31307 * video/sm712.c: New file.
31308
25c2b5b3
RM
313092010-01-18 Robert Millan <rmh.grub@aybabtu.com>
31310
31311 Fix parallel builds.
31312
31313 * conf/common.rmk (font/font.c_DEPENDENCIES): New variable (makes
31314 font.c depend on ascii.h).
31315
313162010-01-12 Carles Pina i Estany <carles@pina.cat>
31317
31318 * Makefile.in (DUSE_ASCII_FAILBACK): New macro.
31319
313202010-01-11 Carles Pina i Estany <carles@pina.cat>
31321
31322 * font/font.c (GENERATE_ASCII): Change the name to USE_ASCII_FAILBACK.
31323 By default: disabled.
31324 * Makefile.in (ascii.h): Remove the non-needed grub/bin2h size
31325 parameter.
31326
313272010-01-10 Carles Pina i Estany <carles@pina.cat>
31328
31329 * font/font.c: Update copyright years.
31330 * util/grub-mkfont.c (write_font_ascii_bitmap): Change comment format.
31331
313322010-01-10 Carles Pina i Estany <carles@pina.cat>
31333
31334 * font/font.c: Include `ascii.h'.
31335 (ASCII_BITMAP_SIZE): New macro.
31336 (ascii_font_glyph): Define.
31337 (ascii_glyph_lookup): New function.
31338 (grub_font_get_string_width): Change comment. If glyph not found, use
31339 ascii_glyph_lookup.
31340 (grub_font_get_glyph_with_fallback): If glyph not available returns
31341 ascii_glyph_lookup.
31342 * util/grub-mkfont.c (file_formats): New enum.
31343 (options): Add `ascii-bitmaps' new option.
31344 (usage): Add `asii-bitmaps' new option.
31345 (write_font_ascii_bitmap): New function.
31346 (write_font): Rename to ...
31347 (write_font_p2): ... this. Remove print_glyphs call.
31348 (main): Use file_format. Implement code for ranges if ascii-bitmaps is
31349 used. Call print_glyphs.
31350 * Makefile.in (pkgdata_DATA): Add `ascii.h'.
31351
313522010-01-14 Robert Millan <rmh.grub@aybabtu.com>
31353
31354 * conf/common.rmk (bin_UTILITIES): Add `grub-bin2h'.
31355 (grub_bin2h_SOURCES): New variable.
31356 * util/bin2h.c: New file.
31357
915fc1b8
VS
313582010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31359
31360 * include/multiboot.h: Resynced with spec.
31361 * include/multiboot2.h: Likewise.
31362 * loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap): Handle
31363 GRUB_MACHINE_MEMORY_ACPI_RECLAIMABLE and GRUB_MACHINE_MEMORY_NVS.
31364
9444b678
RM
313652010-01-18 Robert Millan <rmh.grub@aybabtu.com>
31366
31367 * include/grub/term.h (grub_term_register_input,
31368 grub_term_register_output): Check return of terminal init()
31369 routines, and abort if errors are raised.
31370
31371 * commands/terminal.c: Update copyright year.
31372
cba98e8d
RM
313732010-01-18 Robert Millan <rmh.grub@aybabtu.com>
31374
31375 * commands/terminal.c (grub_cmd_terminal_input)
31376 (grub_cmd_terminal_output): Check return of terminal init()
31377 routines, and abort if errors are raised.
31378
6f7db5d6
VS
313792010-01-18 Vladimir Serbinenko <phcoder@gmail.com>
31380
31381 * include/grub/i386/bsd.h: Fix include pathes.
31382
262bff8d
VS
313832010-01-18 Vladimir Serbinenko <phcoder@gmail.com>
31384
31385 Add missing *BSD copyright headers.
31386
31387 * include/grub/aout.h: Add BSD licence.
31388 * include/grub/i386/bsd.h: Parts under different licences moved to ...
31389 * include/grub/i386/freebsd_linker.h: ... here,
31390 * include/grub/i386/freebsd_reboot.h: ... here,
31391 * include/grub/i386/netbsd_bootinfo.h: ... here,
31392 * include/grub/i386/netbsd_reboot.h: ... here,
31393 * include/grub/i386/openbsd_bootarg.h: ... here,
31394 * include/grub/i386/openbsd_reboot.h: ... and here. Added appropriate
31395 licence to each file.
31396
b2cab848
RM
313972010-01-18 Robert Millan <rmh.grub@aybabtu.com>
31398
31399 * acinclude.m4: Remove `nop' assembly instruction; it's not
31400 implemented by all architectures.
31401
2cb6be4b
RM
314022010-01-18 Robert Millan <rmh.grub@aybabtu.com>
31403
31404 * loader/i386/efi/linux.c (grub_cmd_linux): Stop pretending we're
31405 ELILO. This is no longer necessary.
31406
a2eaee15
BC
314072010-01-18 BVK Chaitanya <bvk.groups@gmail.com>
31408
31409 Added new tool, grub-scrit-check to verify grub.cfg syntax.
31410
31411 * util/grub-script-check.c: grub-script-check tool.
31412 * conf/common.rmk: Make rules for grub-script-check.
31413
88d17012
RM
314142010-01-18 Robert Millan <rmh.grub@aybabtu.com>
31415
31416 Fix annoying UI bug in rescue mode. Thanks to Tristan Gingold for
31417 spotting it back in 2008. Shame on me for forgetting he did.
31418
31419 * kern/rescue_reader.c (grub_rescue_run): Skip zero-length lines.
31420
8040619d
RM
314212010-01-18 Robert Millan <rmh.grub@aybabtu.com>
31422
31423 * include/grub/i386/linux.h (GRUB_VIDEO_TYPE_TEXT): Rename to ...
31424 (GRUB_VIDEO_LINUX_TYPE_TEXT): ... this. Update all users.
31425 (GRUB_VIDEO_TYPE_VLFB): Rename to ...
31426 (GRUB_VIDEO_LINUX_TYPE_VESA): ... this. Update all users.
31427 (GRUB_VIDEO_TYPE_EFI): Rename to ...
31428 (GRUB_VIDEO_LINUX_TYPE_SIMPLE): ... this. Update all users.
31429
a0c2a0f6
RM
314302010-01-17 Robert Millan <rmh.grub@aybabtu.com>
31431
31432 * include/grub/test.h: Add license header.
31433 * tests/example_functional_test.c: Likewise.
31434 * tests/example_unit_test.c: Likewise.
31435 * tests/lib/functional_test.c: Likewise.
31436 * tests/lib/test.c: Likewise.
31437 * tests/lib/unit_test.c: Likewise.
31438
b0b13907
VS
314392010-01-17 Vladimir Serbinenko <phcoder@gmail.com>
31440
31441 Use flag-based instead of hook-based video mode selection and "auto"
31442 keyword.
31443
31444 * include/grub/video.h (grub_video_adapter): Changed 'setup' member.
31445 (grub_video_set_mode): Changed prototype. All users updated.
31446 (grub_video_check_mode_flag): New inline function.
31447 * video/video.c (parse_modespec): New function.
31448 (grub_video_set_mode): Parse flags and keywords.
31449
ea379330 314502010-01-17 Carles Pina i Estany <carles@pina.cat>
31451
31452 * util/misc.c (grub_util_info): Fix the order of the parameters in a
31453 fprintf call.
31454
e15c215e
FZ
314552010-01-16 Grégoire Sutre <gregoire.sutre@gmail.com>
31456
31457 * genmk.rb (class SCRIPT): Replace option -i of sed by a pipe.
31458
409ae1c9 314592010-01-16 Carles Pina i Estany <carles@pina.cat>
31460
31461 * util/grub-editenv.c (usage): Use `program_name' instead of hardcoded
31462 string.
31463 * util/grub-emu.c (usage): Likewise.
31464 * util/grub-mkpasswd-pbkdf2.c (usage): Likewise.
31465 * util/i386/efi/grub-mkimage.c (usage): Likewise.
31466 * util/i386/pc/grub-mkimage.c (usage): Likewise.
31467 * util/i386/pc/grub-setup.c (usage): Likewise.
31468
70a14d3d 314692010-01-16 Carles Pina i Estany <carles@pina.cat>
31470
31471 * util/misc.c (grub_util_warn): Gettextizze, print full stop after
31472 the message.
31473 (grub_util_info): Likewise.
31474 (grub_util_error): Likewise.
31475 * util/elf/grub-mkimage.c: Fix capitalisation, quotes, full stops
31476 and/or new lines in `grub_util_warna', `grub_util_info',
31477 `grub_util_error' calls.
31478 * util/getroot.c: Likewise.
31479 * util/grub-editenv.c: Likewise.
31480 * util/grub-emu.c: Likewise.
31481 * util/grub-fstest.c: Likewise.
31482 * util/grub-mkdevicemap.c: Likewise.
31483 * util/grub-mkfont.c: Likewise.
31484 * util/grub-mkpasswd-pbkdf2.c: Likewise.
31485 * util/grub-mkrelpath.c: Likewise.
31486 * util/grub-pe2elf.c: Likewise.
31487 * util/grub-probe.c: Likewise.
31488 * util/hostdisk.c: Likewise.
31489 * util/i386/efi/grub-mkimage.c: Likewise.
31490 * util/i386/pc/grub-mkimage.c: Likewise.
31491 * util/i386/pc/grub-setup.c: Likewise.
31492 * util/ieee1275/ofpath.c: Likewise.
31493 * util/mkisofs/eltorito.c: Likewise.
31494 * util/mkisofs/rock.c: Likewise.
31495 * util/mkisofs/write.c: Likewise.
31496 * util/raid.c: Likewise.
31497 * util/sparc64/ieee1275/grub-mkimage.c: Likewise.
31498 * util/sparc64/ieee1275/grub-setup.c: Likewise.
31499
a0b766fc
VS
315002010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
31501
31502 Enable multiboot on non-pc.
31503
31504 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (pkglib_MODULES): Move
31505 multiboot.mod and multiboot2.mod to ...
31506 * conf/i386.rmk (pkglib_MODULES): ... here.
31507 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_SOURCES):
31508 Moved to ...
31509 * conf/i386.rmk (multiboot_mod_SOURCES): .. here.
31510 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_CFLAGS):
31511 Moved to ...
31512 * conf/i386.rmk (multiboot_mod_CFLAGS): .. here.
31513 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_ASFLAGS):
31514 Moved to ...
31515 * conf/i386.rmk (multiboot_mod_ASFLAGS): .. here.
31516 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_LDFLAGS):
31517 Moved to ...
31518 * conf/i386.rmk (multiboot_mod_LDFLAGS): .. here.
31519 * conf/x86_64-efi.rmk (pkglib_MODULES): Remove ata.mod and
31520 relocator.mod.
31521 (ata_mod_SOURCES): Removed.
31522 (ata_mod_CFLAGS): Likewise.
31523 (ata_mod_LDFLAGS): Likewise.
31524 (relocator_mod_SOURCES): Removed.
31525 (relocator_mod_CFLAGS): Likewise.
31526 (relocator_mod_ASFLAGS): Likewise.
31527 (relocator_mod_LDFLAGS): Likewise.
31528 Include i386.mk.
31529 * include/grub/x86_64/multiboot.h: New file.
31530 * loader/i386/multiboot.c (grub_multiboot_boot) [GRUB_MACHINE_EFI]:
31531 Terminate EFI.
31532
884ade56
VS
315332010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
31534
31535 Video multiboot support.
31536
31537 * include/grub/multiboot.h (grub_multiboot_set_accepts_video):
31538 New prototype.
31539 * include/multiboot.h: Resynced with multiboot specification.
31540 * include/multiboot2.h: Likewise.
31541 * loader/i386/multiboot.c (UNSUPPORTED_FLAGS): Support video flags.
31542 (grub_multiboot): Parse MULTIBOOT_VIDEO_MODE fields.
31543 * loader/i386/multiboot_mbi.c (DEFAULT_VIDEO_MODE): New constant.
31544 (HAS_VGA_TEXT): Likewise.
31545 (accepts_video): New variable.
31546 (grub_multiboot_set_accepts_video): New function.
31547 (grub_multiboot_get_mbi_size): Account for video structures.
31548 (set_video_mode): New function.
31549 (retrieve_video_parameters): Likewise.
31550 (grub_multiboot_make_mbi): Fill video fields.
31551
0d90e8a6
VS
315522010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
31553
31554 Video driver ids.
31555
31556 * include/grub/video.h (grub_video_driver_id): New type.
31557 (grub_video_adapter): New member 'id'. All users updated.
31558 (grub_video_get_driver_id): New proto.
31559 * video/video.c (grub_video_get_driver_id): New function.
31560
5c71db1b 315612010-01-14 Carles Pina i Estany <carles@pina.cat>
31562
31563 * util/grub.d/30_os-prober.in: Use `set var=val' rather than plain
31564 `var=val'.
31565
cca15b52 315662010-01-14 Carles Pina i Estany <carles@pina.cat>
31567
31568 * normal/cmdline.c (print_completion): Gettextizze.
31569
c586fbb2 315702001-01-14 Carles Pina i Estany <carles@pina.cat>
31571
31572 * loader/i386/pc/chainloader.c: Include `<grub/mm.h>'.
31573
ba2f6848 315742010-01-14 Carles Pina i Estany <carles@pina.cat>
31575
31576 * gettext/gettext.c (grub_gettext_translate): Push and pop
31577 grub_errno.
31578 (grub_gettext_delete_list): Change comment style.
31579 * kern/err.c (grub_error): Gettextizze.
31580 (grub_fatal): Gettextizze.
31581
0a46429a
RM
315822010-01-14 Robert Millan <rmh.grub@aybabtu.com>
31583
31584 * include/grub/i386/loader.h (grub_linux16_boot): Renamed to ...
31585 (grub_linux16_real_boot): ... this.
31586 * kern/i386/loader.S: Likewise.
31587 * loader/i386/pc/linux.c: Include `<grub/video.h>' and `<grub/mm.h>'.
31588 (grub_linux16_boot): New function. Switches to text mode and calls
31589 grub_linux16_real_boot().
31590
31591 * loader/i386/bsd.c: Include `<grub/video.h>'.
31592 (grub_freebsd_boot, grub_openbsd_boot, grub_netbsd_boot): Switch to
31593 text mode before calling grub_unix_real_boot().
31594
31595 * loader/i386/multiboot.c: Include `<grub/video.h>'.
31596 (grub_multiboot_boot): Switch to text mode before calling
31597 grub_relocator32_boot().
31598
31599 * loader/i386/pc/chainloader.c: Include `<grub/video.h>'.
31600 (grub_chainloader_boot): Switch to text mode before calling
31601 grub_chainloader_real_boot().
31602
d6f93a66
RM
316032010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
316042010-01-05 Colin Watson <cjwatson@ubuntu.com>
31605
31606 * util/grub-reboot.in: Make sure prev_saved_entry always gets a
31607 non-empty value.
31608
316092010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
316102010-01-05 Colin Watson <cjwatson@ubuntu.com>
31611
31612 * util/grub.d/00_header.in: Define a "savedefault" function for use
31613 in menu entries.
31614 * util/grub-mkconfig_lib.in (save_default_entry): Use it.
31615
316162010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
316172010-01-05 Colin Watson <cjwatson@ubuntu.com>
31618
31619 * util/grub-mkconfig_lib.in (save_default_entry): Only set
31620 saved_entry if boot_once is unset.
31621 * util/grub.d/00_header.in: Set boot_once to "true" if there was a
31622 previous saved entry (i.e. grub-reboot).
31623
316242009-12-08 Colin Watson <cjwatson@ubuntu.com>
31625
31626 * util/grub.d/30_os-prober.in: Call save_default_entry for hurd.
31627
316282009-12-08 Colin Watson <cjwatson@ubuntu.com>
31629
31630 * util/grub.d/00_header.in: Use `set var=val' rather than plain
31631 `var=val'.
31632 * util/grub-mkconfig_lib.in (save_default_entry): Likewise.
31633
316342009-12-08 Colin Watson <cjwatson@ubuntu.com>
31635
31636 * util/grub-reboot.in: Fix --version output.
31637 * util/grub-set-default.in: Likewise.
31638
316392009-12-08 Colin Watson <cjwatson@ubuntu.com>
31640
31641 * util/grub.d/00_header.in: Silently ignore zero-sized environment
31642 blocks.
31643
316442009-12-08 Colin Watson <cjwatson@ubuntu.com>
31645
31646 * util/grub.d/00_header.in: Quote the value assigned to `default',
31647 in case it contains spaces.
31648
316492009-12-08 Colin Watson <cjwatson@ubuntu.com>
31650
31651 * util/grub.d/30_os-prober.in: Fix merge error that moved a
31652 `save_default_entry' call from the macosx case to the linux case.
31653
316542009-10-25 Vladimir Serbinenko <phcoder@gmail.com>
316552009-10-25 Colin Watson <cjwatson@ubuntu.com>
31656
31657 * normal/menu.c (grub_menu_execute_entry): Save selected entry title
31658 in `chosen' environment variable.
31659 * normal/menu_text.c (get_entry_number): Check if the variable
31660 matches the title of a menu entry.
31661 (run_menu): Pass menu to get_entry_number.
31662
31663 * util/grub-reboot.in: New file.
31664 * util/grub-set-default.in: New file.
31665 * conf/common.rmk (grub-reboot): New utility.
31666 (grub-set-default): New utility.
31667
31668 * util/grub-mkconfig_lib.in (save_default_entry): New function.
31669 * util/grub.d/00_header.in: If GRUB_DEFAULT is `saved', set
31670 default to `${saved_entry}'. If `${prev_saved_entry}' is non-empty,
31671 move it to `saved_entry' for the next boot. Load environment on
31672 initialisation.
31673 * util/grub.d/10_kfreebsd.in: Call save_default_entry.
31674 * util/grub.d/10_hurd.in: Likewise.
31675 * util/grub.d/10_linux.in (linux_entry): Likewise.
31676 * util/grub.d/10_windows.in: Likewise.
31677 * util/grub.d/30_os-prober.in: Likewise.
31678
31679 * util/grub-install.in: Create environment block.
31680 * util/i386/efi/grub-install.in: Likewise.
31681 * util/ieee1275/grub-install.in: Likewise.
31682 * util/sparc64/ieee1275/grub-install.in: Likewise.
31683
0934d184
BC
316842010-01-14 BVK Chaitanya <bvk.groups@gmail.com>
31685
31686 Unit testing framework for GRUB.
31687
31688 * Makefile.in: Test framework build rules for 'make check'.
31689 * conf/tests.rmk: Build rules for individual tests and framework.
31690
31691 * include/grub/test.h: Header file for whitebox tests.
31692 * tests/lib/functional_test.c: Framework support for whitebox
31693 functional tests.
31694 * tests/lib/test.c: Common whitebox testing code for unit and
31695 functional tests.
31696 * tests/lib/unit_test.c: Framework support for whitebox unit
31697 tests.
31698
31699 * tests/util/grub-shell-tester.in: Support utility for grub-script
31700 tests.
31701 * tests/util/grub-shell.in: Utility to execute grub-script
31702 commands in a Qemu instance.
31703
31704 * tests/example_functional_test.c: Example whitebox functional
31705 test.
31706 * tests/example_grub_script_test.in: Example grub-script test.
31707 * tests/example_scripted_test.in: Example scripted test.
31708 * tests/example_unit_test.c: Example whitebox unit test.
31709
9c4ffeeb
VS
317102010-01-14 Vladimir Serbinenko <phcoder@gmail.com>
31711
31712 * conf/i386-coreboot.rmk (multiboot_mod_SOURCES):
31713 Add loader/i386/multiboot_mbi.c.
31714 (multiboot2_mod_SOURCES): Likewise.
31715 * conf/i386-pc.rmk (multiboot_mod_SOURCES): Likewise.
31716 (multiboot2_mod_SOURCES): Likewise.
31717 * include/grub/multiboot.h (grub_multiboot_get_mbi_size): New proto.
31718 (grub_multiboot_make_mbi): Likewise.
31719 (grub_multiboot_free_mbi): Likewise.
31720 (grub_multiboot_init_mbi): Likewise.
31721 (grub_multiboot_add_module): Likewise.
31722 (grub_multiboot_set_bootdev): Likewise.
31723 * loader/i386/multiboot.c (mbi): Removed.
31724 (mbi_dest): Likewise.
31725 (alloc_mbi): New variable.
31726 (grub_multiboot_payload_size): Removed. All users updated.
31727 (grub_multiboot_pure_size): New variable.
31728 (grub_multiboot_boot): Use grub_multiboot_make_mbi.
31729 (grub_multiboot_unload): Use grub_multiboot_free_mbi.
31730 (grub_get_multiboot_mmap_len): Moved to loader/i386/multiboot_mbi.c.
31731 (grub_fill_multiboot_mmap): Likewise.
31732 (grub_multiboot_get_bootdev): Likewise.
31733 (grub_multiboot): Use multiboot_mbi functions.
31734 * loader/i386/multiboot_mbi.c: New file.
31735
17383dfe
VS
317362010-01-13 Vladimir Serbinenko <phcoder@gmail.com>
31737
31738 * kern/efi/init.c (grub_efi_fini): Don't call grub_efi_mm_fini as
31739 it would result in module crash.
31740
c1f28820
VS
317412010-01-13 Vladimir Serbinenko <phcoder@gmail.com>
31742
31743 * term/ieee1275/ofconsole.c (grub_ofconsole_putchar): Handle '\r'.
31744 (grub_ofconsole_getwh): Split to ...
31745 (grub_ofconsole_getwh): ... this.
31746 (grub_ofconsole_dimensions): ...and this.
31747 (grub_ofconsole_init_output): Call grub_ofconsole_dimensions.
31748
58655a16
RM
317492010-01-13 Robert Millan <rmh.grub@aybabtu.com>
31750
31751 * util/mkisofs/rock.c (generate_rock_ridge_attributes): Fix a typo.
31752
10891398
VS
317532010-01-12 Vladimir Serbinenko <phcoder@gmail.com>
31754
31755 * loader/i386/pc/multiboot2.c: Removed stalled file.
31756
0b8a223c
VS
317572010-01-12 Vladimir Serbinenko <phcoder@gmail.com>
31758
31759 * util/grub-mkpasswd-pbkdf2.c (main): Use grub_util_init_nls.
31760 Reported by: Grégoire Sutre
31761
92ab12b0
RM
317622010-01-11 Robert Millan <rmh.grub@aybabtu.com>
31763
31764 * util/misc.c (canonicalize_file_name): New function.
31765 (make_system_path_relative_to_its_root): Use canonicalize_file_name()
31766 instead of realpath().
31767
a788afb6
CW
317682010-01-11 Colin Watson <cjwatson@ubuntu.com>
31769
31770 * util/grub-install.in (usage): Clarify meaning of --root-directory,
31771 and make it clearer that it's optional. Based on confusion
31772 witnessed on IRC.
31773
ffa8e3d2
VS
317742010-01-10 Vladimir Serbinenko <phcoder@gmail.com>
31775
31776 * term/i386/pc/vga_text.c (inc_y): Fix off-by-one error which resulted
31777 in premature implicit newline.
31778
e9060a9d
VS
317792010-01-10 Vladimir Serbinenko <phcoder@gmail.com>
31780
31781 * normal/cmdline.c (grub_cmdline_get): Fix off-by-one error
31782 which resulted in garbled command line at the end of screen.
31783
f0d0c0b7
RM
317842010-01-10 Robert Millan <rmh.grub@aybabtu.com>
31785
31786 * loader/i386/ieee1275/linux.c (grub_linux_boot): Rework video position
31787 initialization with similar approach as with other Linux loaders.
31788
0e60bae7
RM
317892010-01-10 Robert Millan <rmh.grub@aybabtu.com>
31790
31791 Fix i386-ieee1275 build.
31792
31793 * loader/i386/ieee1275/linux.c (grub_linux_boot): Use grub_term_width()
31794 and grub_term_height() for video_{width,height} initialization.
31795
317962010-01-10 Robert Millan <rmh.grub@aybabtu.com>
cdec4d31
RM
31797
31798 Fix grub-emu build.
31799
31800 * conf/any-emu.rmk (grub_emu_SOURCES): Remove `kern/reader.c'.
31801
cdb3f378
RM
318022010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
318032010-01-09 Robert Millan <rmh.grub@aybabtu.com>
31804
31805 Support for multiple terminals.
31806
31807 * Makefile.in (pkglib_DATA): terminal.lst.
31808 (terminal.lst): New target.
31809 * commands/handler.c (grub_cmd_handler): Don't handle terminals.
31810 (GRUB_MOD_INIT(handler)): Likewise.
31811 (GRUB_MOD_FINI(handler)): Likewise.
31812 * commands/help.c (grub_cmd_help): Handle multiple terminals.
31813 * commands/keystatus.c (grub_cmd_keystatus): Likewise.
31814 * commands/sleep.c (do_print): Use grub_term_restore_pos.
31815 (grub_cmd_sleep): Use grub_term_save_pos.
31816 * commands/terminal.c: New file.
31817 * conf/any-emu.rmk (grub_emu_SOURCES): Add normal/term.c
31818 commands/terminal.c and lib/charset.c.
31819 * conf/common.rmk (normal_mod_SOURCES): Add normal/term.c.
31820 (pkglib_MODULES): Add terminal.mod.
31821 (terminal_mod_SOURCES): New variable.
31822 (terminal_mod_CFLAGS): Likewise.
31823 (terminal_mod_LDFLAGS): Likewise.
31824 * genhandlerlist.sh: Don't handle terminals.
31825 * genmk.rb: Generate terminal-*.lst.
31826 * genterminallist.sh: New file.
31827 * include/grub/charset.h (grub_ucs4_to_utf8_alloc): New proto.
31828 (grub_is_valid_utf8): Likewise.
31829 (grub_utf8_to_ucs4_alloc): Likewise.
31830 * include/grub/menu_viewer.h (grub_menu_viewer): Rewritten.
31831 (grub_menu_register_viewer): Changed argument.
31832 (grub_menu_try_text): New proto.
31833 (grub_gfxmenu_try_hook): New declaration.
31834 * include/grub/normal.h (grub_normal_exit_level): New declaration.
31835 (grub_menu_init_page): Additional argument term.
31836 (grub_normal_init_page): Likewise.
31837 (grub_cmdline_get): Arguments simplified.
31838 (grub_utf8_to_ucs4_alloc): Removed.
31839 (grub_print_ucs4): Additional argument term.
31840 (grub_getstringwidth): Likewise.
31841 (grub_print_message_indented): Likewise.
31842 (grub_menu_text_register_instances): New proto.
31843 (grub_show_menu): Likewise.
31844 (read_terminal_list): Likewise.
31845 (grub_set_more): Likewise.
31846 * include/grub/parser.h: Include handler.h.
31847 * include/grub/reader.h: Rewritten.
31848 * include/grub/term.h (GRUB_TERM_NEED_INIT): Removed.
31849 (GRUB_TERM_WIDTH): Changed to function.
31850 (GRUB_TERM_HEIGHT): Likewise.
31851 (GRUB_TERM_BORDER_WIDTH): Likewise.
31852 (GRUB_TERM_BORDER_HEIGHT): Likewise.
31853 (GRUB_TERM_NUM_ENTRIES): Likewise.
31854 (GRUB_TERM_ENTRY_WIDTH): Likewise.
31855 (GRUB_TERM_CURSOR_X): Likewise.
31856 (grub_term_input_class): Likewise.
31857 (grub_term_output_class): Likewise.
31858 (grub_term_outputs_disabled): New declaration.
31859 (grub_term_inputs_disabled): Likewise.
31860 (grub_term_outputs): Likewise.
31861 (grub_term_inputs): Likewise.
31862 (grub_term_register_input): Rewritten.
31863 (grub_term_register_output): Likewise.
31864 (grub_term_unregister_input): Likewise.
31865 (grub_term_unregister_output): Likewise.
31866 (FOR_ACTIVE_TERM_INPUTS): New macro.
31867 (FOR_DISABLED_TERM_INPUTS): Likewise.
31868 (FOR_ACTIVE_TERM_OUTPUTS): Likewise.
31869 (FOR_DISABLED_TERM_OUTPUTS): Likewise.
31870 * include/grub/terminfo.h: Add oterm argument to all protypes.
31871 * kern/main.c (grub_main): Don't call grub_register_rescue_reader.
31872 Use grub_rescue_run.
31873 * kern/misc.c (grub_utf8_to_ucs4): Put '?' for invalid characters.
31874 All users updated.
31875 * kern/reader.c: Removed. All users updated.
31876 * kern/rescue_reader.c (grub_rescue_init): Removed.
31877 (grub_rescue_reader): Likewise.
31878 (grub_register_rescue_reader): Likewise.
31879 (grub_rescue_run): New function based on kern/reader.c.
31880 * kern/term.c: Adapted for multiterm.
31881 * lib/charset.c (grub_ucs4_to_utf8_alloc): New function.
31882 (grub_is_valid_utf8): Likewise.
31883 (grub_utf8_to_ucs4_alloc): Moved from normal/menu_text.c.
31884 * loader/i386/efi/linux.c (grub_cmd_linux): Retrieve parameters of
31885 right terminal.
31886 * loader/i386/linux.c (grub_linux_boot): Likewise.
31887 * normal/auth.c (grub_username_get): New function.
31888 (grub_auth_check_authentication): Use grub_username_get.
31889 * normal/cmdline.c: Changed to UCS4. Adapted for multiterm.
31890 * normal/color.c: Adapt for multiterm.
31891 * normal/main.c (read_config_file): Don't use grub_reader_loop.
31892 (grub_normal_init_page): Additional argument term.
31893 (read_lists): Call read_terminal_lists.
31894 (grub_enter_normal_mode): Call grub_cmdline_run.
31895 Handle grub_normal_exit_level.
31896 (grub_cmd_normal): Make reentrant.
31897 (grub_cmd_normal_exit): New function.
31898 (grub_normal_reader_init): Additional argument nested. Handle multiterm.
31899 * normal/menu.c: Adapt for multiterm.
31900 * normal/menu_entry.c: Likewise.
31901 * normal/menu_text.c: Likewise.
31902 * normal/menu_viewer.c: Removed. All users updated.
31903 * normal/term.c: New file.
31904 * util/console.c: Change order of includes to workaround a bug in
31905 ncurses headers.
31906 * term/terminfo.c: New argument oterm on all exported functions.
31907 All users updated.
31908 * util/grub-editenv.c (grub_term_input_class): Removed.
31909 (grub_term_output_class): Likewise.
31910
1a064917
RM
319112010-01-09 Robert Millan <rmh.grub@aybabtu.com>
31912
31913 Make loader output a bit more user-friendly.
31914
31915 * util/grub.d/10_hurd.in: Print message indicating that GNU Mach
31916 is being loaded. Likewise for the Hurd.
31917
31918 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Print message indicating
31919 that kernel of FreeBSD ${version} is being loaded.
31920
31921 * loader/i386/linux.c (grub_cmd_linux): Move debug info to
31922 grub_dprintf().
31923 (grub_cmd_initrd): Likewise.
31924 * util/grub.d/10_linux.in (linux_entry): Print message indicating
31925 that Linux ${version} is being loaded. Likewise for initrd.
31926
5ce0a83a 319272010-01-09 Carles Pina i Estany <carles@pina.cat>
31928
31929 * gettext/gettext.c (GRUB_MOD_INIT): Gettextizze.
31930
809bbfeb 319312010-01-08 Carles Pina i Estany <carles@pina.cat>
31932
31933 * loader/efi/appleloader.c: Include `<grub/i18n.h>'.
31934 (GRUB_MOD_INIT): Gettextizze.
31935 * loader/efi/chainloader.c: Include `<grub/i18n.h>'.
31936 (GRUB_MOD_INIT): Gettextizze.
31937 * loader/i386/efi/linux.c: Include `<grub/i18n.h>'.
31938 (grub_cmd_linux): Capitalise Linux.
31939 (GRUB_MOD_INIT): Gettextizze.
31940 * loader/i386/ieee1275/linux.c: Include `<grub/i18n.h>'.
31941 (grub_cmd_linux): Capitalise Linux.
31942 (GRUB_MOD_INIT): Gettextizze.
31943 * loader/i386/linux.c: Include `<grub/i18n.h>'.
31944 (grub_cmd_linux): Capitalise Linux.
31945 (GRUB_MOD_INIT): Gettextizze.
31946 * loader/i386/pc/chainloader.c: Include `<grub/i18n.h>'.
31947 (GRUB_MOD_INIT): Gettextizze.
31948 * loader/i386/pc/linux.c: Include `<grub/i18n.h>'.
31949 (grub_cmd_linux): Capitalise Linux.
31950 (GRUB_MOD_INIT): Gettextizze.
31951 * loader/i386/xnu.c: Include `<grub/i18n.h>'.
31952 (grub_cpu_xnu_init): Gettextizze.
31953 * loader/multiboot_loader.c: Include `<grub/i18n.h>'.
31954 (GRUB_MOD_INIT): Gettextizze.
31955 * loader/powerpc/ieee1275/linux.c: Include `<grub/i18n.h>'.
31956 (GRUB_MOD_INIT): Gettextizze.
31957 * loader/sparc64/ieee1275/linux.c: Include `<grub/i18n.h>'.
31958 (grub_linux_load64): Capitalise Linux.
31959 (GRUB_MOD_INIT): Gettextizze.
31960 * loader/xnu.c: Include `<grub/i18n.h>'.
31961 (GRUB_MOD_INIT): Gettextizze.
31962 * po/POTFILES: Add `loader/efi/appleloader.c',
31963 `loader/efi/chainloader.c', `loader/i386/efi/linux.c',
31964 `loader/i386/ieee1275/linux.c', `loader/i386/linux.c',
31965 `loader/i386/pc/chainloader.c', `loader/i386/pc/linux.c',
31966 `loader/i386/xnu.c', `loader/multiboot_loader.c',
31967 `loader/powerpc/ieee1275/linux.c', `loader/sparc64/ieee1275/linux.c'
31968 and `loader/xnu.c'.
31969
b394b2ca
RM
319702010-01-08 Robert Millan <rmh.grub@aybabtu.com>
31971
31972 * src/mkisofs.c: Remove `ifdef linux' portability kludge.
31973
319742010-01-08 Robert Millan <rmh.grub@aybabtu.com>
cd943b75
RM
31975
31976 * util/mkisofs/defaults.h (APPID_DEFAULT): Redefine using PACKAGE_NAME.
31977 (SYSTEM_ID_DEFAULT): Set to "GNU" unconditionally.
31978 * util/mkisofs/mkisofs.c (main): Readjust --version output.
31979
bc8b32b3
RM
319802010-01-07 Robert Millan <rmh.grub@aybabtu.com>
31981
31982 Reset Multiboot 2 support. New loader implements the draft in
31983 /branches/multiboot2 and shares as much code as possible with the
31984 production Multiboot 1 implementation.
31985
31986 * loader/ieee1275/multiboot2.c: Remove file. Update all users.
31987 * loader/multiboot2.c: Likewise.
31988 * loader/i386/multiboot_helper.S: Likewise.
31989 * include/multiboot2.h: Replace with latest version from the draft
31990 in /branches/multiboot2.
31991
31992 * conf/i386-coreboot.rmk (multiboot_mod_SOURCES): Remove
31993 `loader/i386/multiboot_helper.S', `loader/i386/pc/multiboot2.c'
31994 and `loader/multiboot2.c'.
31995 (pkglib_MODULES): Add `multiboot2.mod'.
31996 (multiboot2_mod_SOURCES): New variable.
31997 (multiboot2_mod_LDFLAGS): Likewise.
31998 (multiboot2_mod_CFLAGS): Likewise. Define `GRUB_USE_MULTIBOOT2'.
31999
32000 * conf/i386-pc.rmk: Likewise.
32001
32002 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Remove `multiboot.mod'.
32003 (multiboot_mod_SOURCES): Remove variable.
32004 (multiboot_mod_LDFLAGS): Likewise.
32005 (multiboot_mod_CFLAGS): Likewise.
32006
32007 * include/grub/multiboot.h [GRUB_USE_MULTIBOOT2]: Include
32008 `<multiboot2.h>' instead of `<multiboot.h>'.
32009 [GRUB_USE_MULTIBOOT2] (MULTIBOOT_BOOTLOADER_MAGIC)
32010 (MULTIBOOT_HEADER_MAGIC): New macros.
32011
32012 * loader/multiboot_loader.c (module_version_status): Remove variable.
32013 (find_multi_boot2_header): Remove function.
32014 (grub_cmd_multiboot_loader): Remove Multiboot 2 / Multiboot 1 selection
32015 logic. Always check for the Multiboot version we're compiling for.
32016 (grub_cmd_module_loader): Likewise.
32017 [GRUB_USE_MULTIBOOT2] (GRUB_MOD_INIT(multiboot)): Register `multiboot2'
32018 command instead of `multiboot'.
32019
5d2c52b8
RM
320202010-01-07 Robert Millan <rmh.grub@aybabtu.com>
32021
32022 * include/multiboot.h (MULTIBOOT_UNSUPPORTED): Moved from here ...
32023 * loader/i386/multiboot.c (UNSUPPORTED_FLAGS): ... to here. Update
32024 all users.
32025
53108d92
RM
320262010-01-07 Robert Millan <rmh.grub@aybabtu.com>
320272010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
32028
32029 Fix breakage introduced with previous commit.
32030
32031 * normal/dyncmd.c (read_command_list): Avoid unregistering kernel
32032 commands.
32033 * normal/handler.c (read_handler_list): Revert part of previous commit
32034 affecting this file.
32035 * normal/main.c (read_lists): Move read_handler_list() call back to ...
32036 (grub_normal_execute): ... here.
32037
e2e936b2
RM
320382010-01-07 Robert Millan <rmh.grub@aybabtu.com>
32039
32040 Merge prefix-redefinition-fix branch.
32041
32042 * normal/autofs.c (read_fs_list): Make function capable of being
32043 run multiple times, gracefuly replacing the previous data
32044 structures.
32045 * normal/dyncmd.c (read_command_list): Likewise.
32046 * normal/handler.c (read_handler_list): Likewise.
32047 * normal/main.c (read_lists): New function. Calls all the
32048 list reading functions.
32049 (grub_normal_execute): Use read_lists() instead of calling all
32050 list reading functions explicitly. Register read_lists() as a
32051 variable hook attached to ${prefix}.
32052
607a3701
VS
320532010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
32054
32055 Merge crypto branch.
32056
32057 * Makefile.in (pkglib_DATA): Add crypto.lst.
32058 (crypto.lst): New target.
32059 * commands/hashsum.c: New file.
32060 * commands/password.c (check_password): Use grub_crypto_memcmp.
32061 * commands/password_pbkdf2.c: New file.
32062 * commands/xnu_uuid.c: Remove MD5. Use GRUB_MD_MD5.
32063 * conf/any-emu.rmk (grub_emu_SOURCES): Add lib/crypto.c,
32064 normal/crypto.c and lib/libgcrypt-grub/cipher/md5.c.
32065 (grub_emu_CFLAGS): Add -Wno-missing-field-initializers -Wno-error
32066 -I$(srcdir)/lib/libgcrypt_wrap.
32067 * conf/common.rmk (normal_mod_SOURCES): Add normal/crypto.c.
32068 (pkglib_MODULES): Add crypto.mod, hashsum.mod, pbkdf2.mod and
32069 password_pbkdf2.mod.
32070 (crypto_mod_SOURCES): New variable.
32071 (crypto_mod_CFLAGS): Likewise.
32072 (crypto_mod_LDFLAGS): Likewise.
32073 (hashsum_mod_SOURCES): New variable.
32074 (hashsum_mod_CFLAGS): Likewise.
32075 (hashsum_mod_LDFLAGS): Likewise.
32076 (pbkdf2_mod_SOURCES): New variable.
32077 (pbkdf2_mod_CFLAGS): Likewise.
32078 (pbkdf2_mod_LDFLAGS): Likewise.
32079 (password_pbkdf2_mod_SOURCES): New variable.
32080 (password_pbkdf2_mod_CFLAGS): Likewise.
32081 (password_pbkdf2_mod_LDFLAGS): Likewise.
32082 (bin_UTILITIES): Add grub-mkpasswd-pbkdf2.
32083 (grub_mkpasswd_pbkdf2_SOURCES): New variable.
32084 (grub_mkpasswd_pbkdf2_CFLAGS): Likewise.
32085 Include conf/gcry.rmk.
32086 * include/grub/auth.h: Rewritten.
32087 * include/grub/crypto.h: New file.
32088 * include/grub/disk.h (grub_disk_dev_id): Add GRUB_DISK_DEVICE_LUKS_ID.
32089 * include/grub/normal.h (read_crypto_list): New prototype.
32090 * lib/crypto.c: New file.
32091 * lib/libgcrypt_wrap/cipher_wrap.h: Likewise.
32092 * lib/pbkdf2.c: Likewise.
32093 * normal/auth.c (grub_auth_strcmp): Removed.
32094 (grub_iswordseparator): Likewise.
32095 (grub_auth_strword): Likewise.
32096 (is_authenticated): Use grub_strword.
32097 (grub_auth_check_authentication): Use grub_strcmp, grub_password_get
32098 and grub_strword. Pass entered password to authentication callback.
32099 * normal/crypto.c: New file.
32100 * normal/main.c: Call read_crypto_list.
32101 * util/grub-mkpasswd-pbkdf2.c: New file.
32102 * util/import_gcry.py: Generate crypto.lst. Add hash blocklen.
32103
42841caa
VS
321042010-01-06 Vladimir Serbinenko <phcoder@gmail.com>
32105
32106 Fix descent and ascent calculation.
32107
32108 * util/grub-mkfont.c (grub_font_info): New fields 'asce' and 'max_y'.
32109 (options): New option "asce".
32110 (usage): Likewise.
32111 (add_char): Ignore invalid glyphs for descent calculation.
32112 Calculate ascent from actual content.
32113 (print_glyphs): Use 'asce'.
32114 (write_font): Likewise. Allow ascent override.
32115 (main): Handle "asce" option.
32116
e7730de7 321172010-01-06 Carles Pina i Estany <carles@pina.cat>
32118
32119 * kern/err.c: Include `<grub/i18n.h>'.
32120 (grub_print_error): Add full stop. Gettextizze.
32121 * loader/i386/bsd.c (grub_netbsd_boot): Change grub_error description.
32122 (grub_bsd_load_elf): Capitalise ELF.
32123 (grub_cmd_freebsd_loadenv): Add `s' in error string.
32124 (grub_cmd_freebsd_module): Likewise.
32125 (grub_cmd_freebsd_module_elf): Likewise.
32126 * loader/i386/bsdXX.c (SUFFIX): Capitalise ELF.
32127
40e3a41f 321282010-01-06 Carles Pina i Estany <carles@pina.cat>
32129
32130 * commands/search.c (GRUB_MOD_INIT): Use HELP_MESSAGE.
32131 * commands/search_file.c (HELP_MESSAGE): New macro.
32132 * commands/search_label.c (HELP_MESSAGE): Likewise.
32133 * commands/search_uuid.c (HELP_MESSAGE): Likewise.
32134 * po/POTFILES: Add `commands/search_file.c',
32135 `commands/search_label.c', `commands_uuid.c'. Remove duplicate
32136 `commands/search.c'.
32137
83507e68
RM
321382010-01-05 Robert Millan <rmh.grub@aybabtu.com>
32139
32140 * config.rpath: Update from Gnulib.
32141
465c787b
YB
321422010-01-05 Yves Blusseau <blusseau@zetam.org>
32143
32144 * commands/acpi.c (grub_acpi_create_ebda): fix incorrect message.
32145
6581dd3a
YB
321462010-01-05 Yves Blusseau <yves.blusseau@zetam.org>
32147
32148 * util/sparc64/ieee1275/grub-mkimage.c (main): Typo fix.
32149
3bff18c5
CW
321502010-01-05 Colin Watson <cjwatson@ubuntu.com>
32151
32152 * util/mkisofs/write.c (padblock_write): Switch size and nmemb
32153 arguments to fread so that we get a return value in bytes, rather
32154 than something that will normally be rounded down to 0.
32155 Adjust error handling to avoid producing garbage when size_t is not
32156 the same size as long long.
32157
a1368118
CW
321582010-01-05 Colin Watson <cjwatson@ubuntu.com>
32159
32160 * util/mkisofs/write.c (padblock_write): Check return value of
32161 fread.
32162
7c302978
RM
321632010-01-05 Robert Millan <rmh.grub@aybabtu.com>
32164
32165 Remove grub-mkfloppy. Images produced by grub-mkrescue are valid
32166 floppy images now.
32167
32168 * util/i386/pc/grub-mkfloppy.in: Remove. Update all users.
32169
e33ace06
RM
321702010-01-04 Robert Millan <rmh.grub@aybabtu.com>
32171
32172 * disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Use ALIGN_UP macro
32173 instead of manual alignment.
32174 * kern/disk.c (grub_disk_read): Remove grub_dprintf call (excessively
32175 verbose). Avoid attempts to read past end of the device
32176 (grub_disk_adjust_range() guarantees that we can read `size' bytes,
32177 but GRUB_DISK_CACHE_SIZE may exceed that).
32178
4b856776
RM
321792010-01-04 Robert Millan <rmh.grub@aybabtu.com>
32180
32181 * commands/crc.c (grub_cmd_crc): Abort on read errors.
32182 * fs/iso9660.c (grub_iso9660_read): Check for read error and pass
32183 it to upper layer.
32184
52c2d97f
VS
321852010-01-04 Vladimir Serbinenko <phcoder@gmail.com>
32186
32187 * include/grub/efi/api.h (GRUB_EFI_PIWG_DEVICE_PATH_SUBTYPE):
32188 New constant.
32189 (grub_efi_piwg_device_path): New structure
32190 (grub_efi_piwg_device_path_t): New type.
32191 * loader/efi/appleloader.c (piwg_full_device_path): New structure.
32192 (devpath_1): Transform to a structure. All users updated.
32193 (devpath_2): Likewise.
32194 (devpath_3): Likewise.
32195 (devpath_4): Likewise.
32196 (devpath_5): Likewise.
32197
98ff6a54
VS
321982010-01-04 Vladimir Serbinenko <phcoder@gmail.com>
32199
32200 * loader/efi/appleloader.c: Restored. Update all users.
32201
3a73dcb6
RM
322022010-01-03 Robert Millan <rmh.grub@aybabtu.com>
32203
32204 * boot/i386/pc/diskboot.S: Fix inaccurate comment.
32205
32206 * util/i386/pc/grub-setup.c: Include `<assert.h>'.
32207 (struct boot_blocklist): Move from here ...
32208 * include/grub/i386/pc/boot.h [ASM_FILE]
32209 (struct grub_boot_blocklist): ... to here. Update all users.
32210 (setup): Only initialize `start' member of `first_block'
32211 structure. Add assert() calls to verify the other members.
32212
32213 * util/i386/pc/grub-mkimage.c: Include `<assert.h>'.
32214 (generate_image): Fix broken blocklist length initialization.
32215 Add assert() call to verify blocklist `segment' field.
32216
ab0eeb0c
RM
322172010-01-03 Robert Millan <rmh.grub@aybabtu.com>
32218
32219 * loader/efi/appleloader.c: Remove. Update all users.
32220
58bc8bd5
RM
322212010-01-03 Robert Millan <rmh.grub@aybabtu.com>
32222
32223 * boot/i386/pc/boot.S: Update copyright year.
32224 * boot/i386/pc/cdboot.S: Likewise.
32225 * boot/i386/pc/diskboot.S: Likewise.
32226 * boot/i386/pc/lnxboot.S: Likewise.
32227 * boot/i386/pc/pxeboot.S: Likewise.
32228 * bus/pci.c: Likewise.
32229 * commands/cmp.c: Likewise.
32230 * commands/help.c: Likewise.
32231 * commands/hexdump.c: Likewise.
32232 * commands/i386/pc/halt.c: Likewise.
32233 * commands/i386/pc/play.c: Likewise.
32234 * commands/i386/pc/vbeinfo.c: Likewise.
32235 * commands/ls.c: Likewise.
32236 * commands/test.c: Likewise.
32237 * disk/dmraid_nvidia.c: Likewise.
32238 * disk/i386/pc/biosdisk.c: Likewise.
32239 * disk/ieee1275/nand.c: Likewise.
32240 * disk/ieee1275/ofdisk.c: Likewise.
32241 * disk/lvm.c: Likewise.
32242 * disk/raid.c: Likewise.
32243 * disk/raid6_recover.c: Likewise.
32244 * disk/scsi.c: Likewise.
32245 * fs/affs.c: Likewise.
32246 * fs/cpio.c: Likewise.
32247 * fs/ext2.c: Likewise.
32248 * fs/hfs.c: Likewise.
32249 * fs/iso9660.c: Likewise.
32250 * fs/ntfs.c: Likewise.
32251 * fs/sfs.c: Likewise.
32252 * fs/udf.c: Likewise.
32253 * fs/ufs.c: Likewise.
32254 * fs/xfs.c: Likewise.
32255 * gencmdlist.sh: Likewise.
32256 * genmk.rb: Likewise.
32257 * include/grub/disk.h: Likewise.
32258 * include/grub/efi/api.h: Likewise.
32259 * include/grub/efi/efi.h: Likewise.
32260 * include/grub/efi/pe32.h: Likewise.
32261 * include/grub/elf.h: Likewise.
32262 * include/grub/fs.h: Likewise.
32263 * include/grub/i386/at_keyboard.h: Likewise.
32264 * include/grub/i386/pc/memory.h: Likewise.
32265 * include/grub/i386/pc/vbe.h: Likewise.
32266 * include/grub/i386/pci.h: Likewise.
32267 * include/grub/i386/tsc.h: Likewise.
32268 * include/grub/ieee1275/ieee1275.h: Likewise.
32269 * include/grub/ntfs.h: Likewise.
32270 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
32271 * include/grub/sparc64/libgcc.h: Likewise.
32272 * include/grub/symbol.h: Likewise.
32273 * include/grub/types.h: Likewise.
32274 * include/multiboot2.h: Likewise.
32275 * io/gzio.c: Likewise.
32276 * kern/device.c: Likewise.
32277 * kern/disk.c: Likewise.
32278 * kern/efi/efi.c: Likewise.
32279 * kern/efi/mm.c: Likewise.
32280 * kern/elf.c: Likewise.
32281 * kern/file.c: Likewise.
32282 * kern/i386/dl.c: Likewise.
32283 * kern/i386/pc/init.c: Likewise.
32284 * kern/i386/pc/startup.S: Likewise.
32285 * kern/ieee1275/ieee1275.c: Likewise.
32286 * kern/ieee1275/init.c: Likewise.
32287 * kern/main.c: Likewise.
32288 * kern/mm.c: Likewise.
32289 * kern/powerpc/dl.c: Likewise.
32290 * kern/sparc64/dl.c: Likewise.
32291 * kern/x86_64/dl.c: Likewise.
32292 * lib/hexdump.c: Likewise.
32293 * loader/efi/appleloader.c: Likewise.
32294 * loader/i386/ieee1275/linux.c: Likewise.
32295 * loader/i386/pc/chainloader.c: Likewise.
32296 * loader/i386/pc/linux.c: Likewise.
32297 * loader/i386/pc/multiboot2.c: Likewise.
32298 * loader/ieee1275/multiboot2.c: Likewise.
32299 * loader/multiboot2.c: Likewise.
32300 * loader/multiboot_loader.c: Likewise.
32301 * loader/powerpc/ieee1275/linux.c: Likewise.
32302 * normal/completion.c: Likewise.
32303 * normal/menu_entry.c: Likewise.
32304 * partmap/apple.c: Likewise.
32305 * util/grub.d/10_hurd.in: Likewise.
32306 * util/hostfs.c: Likewise.
32307 * video/readers/png.c: Likewise.
32308
e2d70b5c
CW
323092010-01-03 Colin Watson <cjwatson@ubuntu.com>
32310
32311 * include/grub/misc.h (GNUC_PREREQ): New macro.
32312 (ATTRIBUTE_ERROR): New macro.
32313 * include/grub/list.h (grub_bad_type_cast_real): Use
32314 ATTRIBUTE_ERROR.
32315
a173283f 323162010-01-03 Carles Pina i Estany <carles@pina.cat>
32317
32318 * normal/menu_text.c (print_message): Change messages.
32319
7fa7ff74 323202010-01-03 Carles Pina i Estany <carles@pina.cat>
32321
32322 * normal/menu_entry.c (store_completion): Gettextizze.
32323
136d24f6 323242010-01-03 Carles Pina i Estany <carles@pina.cat>
32325
32326 * kern/env.c (grub_env_unset): Set the variable to "" if has hooks.
32327
f936862e 323282010-01-03 Carles Pina i Estany <carles@pina.cat>
32329
32330 * po/POTFILES: Sort correctly.
32331
29c44ad1 323322010-01-03 Carles Pina i Estany <carles@pina.cat>
32333
32334 * commands/acpi.c (GRUB_MOD_INIT): Capitalise some words from help.
32335 * commands/efi/loadbios.c (GRUB_MOD_INIT): Capitalise BIOS.
32336 * commands/i386/pc/drivemap.c (GRUB_MOD_INIT): Remove space. Add
32337 full stop.
32338 * commands/loadenv.c (GRUB_MOD_INIT): Remove command name from
32339 summary. Gettextizze the strings.
32340 * commands/probe.c (grub_cmd_probe): Capitalise UUID and FS.
32341 * commands/xnu_uuid.c (GRUB_MOD_INIT): Capitalise XNU.
32342 * disk/loopback.c (grub_arg_options): Capitalise first letter. Add
32343 full stop.
32344 (GRUB_MOD_INIT): Remove command name from summary.
32345 * hello/hello.c (GRUD_MOT_INIT): Add missing full stop. Improve the
32346 summary.
32347 * loader/i386/bsd.c (grub_arg_option): Capitalise CDROM.
32348 * term/i386/pc/serial.c (options): Add full stops.
32349 (GRUB_MOD_INIT): Remove command name from the summary.
32350
77a79592 323512010-01-03 Carles Pina i Estany <carles@pina.cat>
32352
32353 * commands/acpi.c: Gettextizze help strings and/or options. Include
32354 `grub/i18n.h' if needed.
32355 * commands/blocklist.c: Likewise.
32356 * commands/boot.c: Likewise.
32357 * commands/cat.c: Likewise.
32358 * commands/cmp.c: Likewise.
32359 * commands/configfile.c: Likewise.
32360 * commands/crc.c: Likewise.
32361 * commands/date.c: Likewise.
32362 * commands/echo.c: Likewise.
32363 * commands/efi/fixvideo.c: Likewise.
32364 * commands/efi/loadbios.c: Likewise.
32365 * commands/gptsync.c: Likewise.
32366 * commands/halt.c: Likewise.
32367 * commands/handler.c: Likewise.
32368 * commands/hdparm.c: Likewise.
32369 * commands/hexdump.c: Likewise.
32370 * commands/i386/cpuid.c: Likewise.
32371 * commands/i386/pc/drivemap.c: Likewise.
32372 * commands/i386/pc/halt.c: Likewise.
32373 * commands/i386/pc/pxecmd.c: Likewise.
32374 * commands/i386/pc/vbeinfo.c: Likewise.
32375 * commands/i386/pc/vbetest.c: Likewise.
32376 * commands/ieee1275/suspend.c: Likewise.
32377 * commands/keystatus.c: Likewise.
32378 * commands/loadenv.c: Likewise.
32379 * commands/ls.c: Likewise.
32380 * commands/lsmmap.c: Likewise.
32381 * commands/lspci.c: Likewise.
32382 * commands/memrw.c: Likewise.
32383 * commands/minicmd.c: Likewise.
32384 * commands/parttool.c: Likewise.
32385 * commands/password.c: Likewise.
32386 * commands/probe.c: Likewise.
32387 * commands/read.c: Likewise.
32388 * commands/reboot.c: Likewise.
32389 * commands/search.c: Likewise.
32390 * commands/sleep.c: Likewise.
32391 * commands/test.c: Likewise.
32392 * commands/true.c: Likewise.
32393 * commands/usbtest.c: Likewise.
32394 * commands/videotest.c: Likewise.
32395 * commands/xnu_uuid.c: Likewise.
32396 * disk/loopback.c: Likewise.
32397 * hello/hello.c: Likewise.
32398 * loader/i386/bsd.c: Likewise.
32399 * term/i386/pc/serial.c: Likewise.
32400 * po/POTFILES: Add new files.
32401
da8d5c53
CW
324022010-01-02 Colin Watson <cjwatson@ubuntu.com>
32403
32404 * term/i386/pc/at_keyboard.c
32405 (keyboard_controller_wait_untill_ready): Rename to ...
32406 (keyboard_controller_wait_until_ready): ... this. Update all users.
32407
33937904 324082010-01-01 Carles Pina i Estany <carles@pina.cat>
32409
32410 * commands/help.c: Include `grub/mm.h' and `grub/normal.h'.
32411 (grub_cmd_help): Print the cmd->name before the cmd->summary. Cut the
32412 string using string width.
32413 * normal/menu_text.c (grub_print_message_indented): Use
32414 grub_print_spaces and not print_spaces.
32415 (print_timeout): Likewise.
32416 (print_spaces): Move to...
32417 * include/grub/term.h: ... here. Change the name to grub_print_spaces.
32418
3fd3b8d8
RM
324192010-01-01 Robert Millan <rmh.grub@aybabtu.com>
32420
32421 Import from Gnulib.
32422
32423 * gnulib/getdelim.c: New file.
32424 * gnulib/getline.c: Likewise.
32425
33433555
VS
324262009-12-31 BVK Chaitanya <bvk.groups@gmail.com>
32427
32428 * include/grub/list.h (grub_assert_fail): Removed.
32429 (grub_bad_type_cast_real): New function.
32430 (grub_bad_type_cast): New macro.
32431 (GRUB_AS_LIST): Use grub_bad_type_cast.
32432 (GRUB_AS_LIST_P): Likewise.
e44721e8 32433 (GRUB_AS_NAMED_LIST): Likewise.
33433555 32434 (GRUB_AS_NAMED_LIST_P): Likewise.
e44721e8 32435 (GRUB_AS_PRIO_LIST): Likewise.
33433555 32436 (GRUB_AS_PRIO_LIST_P): Likewise.
e44721e8 32437 * include/grub/handler.h (GRUB_AS_HANDLER): Likewise.
33433555 32438
f5a51306
VS
324392009-12-29 Vladimir Serbinenko <phcoder@gmail.com>
32440
32441 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT (linux)):
32442 Fix syntax error.
32443
90d1e879
RM
324442009-12-29 Robert Millan <rmh.grub@aybabtu.com>
32445
32446 * configure.ac: Check for TARGET_CFLAGS initialization before we
32447 initialize it ourselves (sigh).
32448 Move a few modifications to TARGET_CFLAGS to be unconditional
32449 (extra warning flags, loop alignment, i386 CPU extensions, GCC 4.4
32450 eh_frame)
32451
32452 * gettext/gettext.c (grub_gettext_delete_list): Add `void' argument.
32453 * term/i386/pc/at_keyboard.c
32454 (keyboard_controller_wait_untill_ready): Likewise.
32455 (keyboard_controller_led): Rename `led_status' paramter to avoid
32456 name conflict.
32457
465b5a81 324582009-12-28 Carles Pina i Estany <carles@pina.cat>
32459
32460 * normal/misc.c (grub_normal_print_device_info): Add spaces and double
32461 quotes.
32462
c181849b
VS
324632009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
32464
32465 * kern/parser.c (grub_parser_split_cmdline): Don't dereference NULL.
32466
9c8739a4
VS
324672009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
32468
32469 * normal/menu_text.c (grub_print_message_indented): Prevent
32470 past-the-end-of-array dereference.
32471
3e74249c
VS
324722009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
32473
32474 * video/readers/jpeg.c (GRUB_MOD_FINI (grub_cmd_jpegtest)): Rename to ..
32475 (GRUB_MOD_FINI (video_reader_jpeg)): ...this
32476
64fd18ed 324772009-12-27 Carles Pina i Estany <carles@pina.cat>
32478
32479 * normal/cmdline.c (grub_cmdline_get): Print a space after prompt.
32480 * normal/main.c (grub_normal_read_line): Remove a space from the
32481 default prompt.
32482
714af9b9 324832009-12-27 Carles Pina i Estany <carles@pina.cat>
32484
32485 * loader/i386/efi/linux.c (GRUB_MOD_INIT): Improve command summary.
32486 * loader/i386/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
32487 * loader/i386/linux.c (GRUB_MOD_INIT): Likewise.
32488 * loader/i386/pc/linux.c (GRUB_MOD_INIT): Likewise.
32489 * loader/powerpc/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
32490 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
32491 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
32492
82f3e412 324932009-12-26 Carles Pina i Estany <carles@pina.cat>
c541b01a 32494
32495 * video/readers/jpeg.c (cmd): Declare.
32496 (grub_cmd_jpegtest): Use `grub_command_t' type.
32497 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
32498 Assign to `cmd'.
32499 (GRUB_MOD_FINI): Use `cmd' to unregister.
32500 * video/readers/png.c (cmd): Declare.
32501 (grub_cmd_pngtest): Use `grub_command_t' type.
32502 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
32503 Assign to `cmd'.
32504 (GRUB_MOD_FINI): Use `cmd' to unregister.
32505 * video/readers/tga.c (cmd): Declare.
32506 (grub_cmd_tgatest): Use `grub_command_t' type.
32507 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
32508 Assign to `cmd'.
32509 (GRUB_MOD_FINI): Use `cmd' to unregister.
32510
82f3e412 325112009-12-26 Carles Pina i Estany <carles@pina.cat>
864ba2bb 32512
32513 * efiemu/main.c (GRUB_MOD_INIT): Fix capitalizations and/or full
32514 stops.
32515 * kern/corecmd.c (grub_register_core_commands): Likewise.
32516 * loader/efi/chainloader.c (GRUB_MOD_INIT): Likewise.
32517 * loader/i386/bsd.c (GRUB_MOD_INIT): Likewise.
32518 * loader/i386/efi/linux.c (GRUB_MOD_INIT): Likewise.
32519 * loader/i386/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
32520 * loader/i386/linux.c (GRUB_MOD_INIT): Likewise.
32521 * loader/i386/pc/chainloader.c (GRUB_MOD_INIT): Likewise.
32522 * loader/i386/pc/linux.c (GRUB_MOD_INIT): Likewise.
32523 * loader/multiboot_loader.c (GRUB_MOD_INIT): Likewise.
32524 * loader/powerpc/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
32525 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
32526 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
32527 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
32528 * normal/handler.c (insert_handler): Likewise.
32529 * normal/main.c (GRUB_MOD_INIT): Likewise.
32530 * term/gfxterm.c (GRUB_MOD_INIT): Likewise.
32531
fdcdbb66 325322009-12-26 Carles Pina i Estany <carles@pina.cat>
32533
32534 * commands/help.c (grub_cmd_help): Print the command name before the
32535 summary.
32536 (GRUB_MOD_INIT): Remove command name from the summary.
32537 * kern/command.c (GRUB_MOD_INIT): If summary is null assign an empty
82f3e412 32538 string as summary.
fdcdbb66 32539 * lib/arg.c (find_long): Print the command name before the summary.
32540 * commands/acpi.c (GRUB_MOD_INIT): Remove command name from the
32541 summary.
32542 * commands/blocklist.c (GRUB_MOD_INIT): Likewise.
32543 * commands/cat.c (GRUB_MOD_INIT): Likewise.
32544 * commands/cmp.c (GRUB_MOD_INIT): Likewise.
32545 * commands/configfile.c (GRUB_MOD_INIT): Likewise.
32546 * commands/crc.c (GRUB_MOD_INIT): Likewise.
32547 * commands/date.c (GRUB_MOD_INIT): Likewise.
32548 * commands/echo.c (GRUB_MOD_INIT): Likewise.
32549 * commands/efi/loadbios.c (GRUB_MOD_INIT): Likewise.
32550 * commands/gptsync.c (GRUB_MOD_INIT): Likewise.
32551 * commands/handler.c (GRUB_MOD_INIT): Likewise.
32552 * commands/hdparm.c (GRUB_MOD_INIT): Likewise.
32553 * commands/hexdump.c (GRUB_MOD_INIT): Likewise.
32554 * commands/i386/cpuid.c (GRUB_MOD_INIT): Likewise.
32555 * commands/i386/pc/halt.c (GRUB_MOD_INIT): Likewise.
32556 * commands/i386/pc/play.c (GRUB_MOD_INIT): Likewise.
32557 * commands/i386/pc/pxecmd.c (GRUB_MOD_INIT): Likewise.
32558 * commands/keystatus.c (GRUB_MOD_INIT): Likewise.
32559 * commands/loadenv.c (GRUB_MOD_INIT): Likewise.
32560 * commands/ls.c (GRUB_MOD_INIT): Likewise.
32561 * commands/lspci.c (GRUB_MOD_INIT): Likewise.
32562 * commands/memrw.c (GRUB_MOD_INIT): Likewise.
32563 * commands/minicmd.c (GRUB_MOD_INIT): Likewise.
32564 * commands/parttool.c (GRUB_MOD_INIT): Likewise.
32565 * commands/password.c (GRUB_MOD_INIT): Likewise.
32566 * commands/probe.c (GRUB_MOD_INIT): Likewise.
32567 * commands/read.c (GRUB_MOD_INIT): Likewise.
32568 * commands/search.c (GRUB_MOD_INIT): Likewise.
32569 * commands/sleep.c (GRUB_MOD_INIT): Likewise.
32570 * commands/test.c (GRUB_MOD_INIT): Likewise.
32571 * commands/xnu_uuid.c (GRUB_MOD_INIT): Likewise.
32572 * efiemu/main.c (GRUB_MOD_INIT): Likewise.
32573 * font/font_cmd.c (GRUB_MOD_INIT): Likewise.
32574 * gettext/gettext.c (GRUB_MOD_INIT): Likewise.
32575 * kern/corecmd.c (GRUB_MOD_INIT): Likewise.
32576 * lib/arg.c (GRUB_MOD_INIT): Likewise.
32577 * loader/efi/appleloader.c (GRUB_MOD_INIT): Likewise.
32578 * loader/i386/bsd.c (GRUB_MOD_INIT): Likewise.
32579 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
32580 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
32581 * term/terminfo.c (GRUB_MOD_INIT): Likewise.
32582 * video/readers/jpeg.c (GRUB_MOD_INIT): Likewise.
32583 * video/readers/png.c (GRUB_MOD_INIT): Likewise.
32584 * video/readers/tga.c (GRUB_MOD_INIT): Likewise.
32585
9c288be2
VS
325862009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
32587
32588 Use search command for preliminar UUID search.
32589
32590 * commands/search.c: Split into ...
32591 * commands/search_wrap.c: ...this
32592 * commands/search.c: ...and this.
32593 * commands/search_file.c: New file.
32594 * commands/search_label.c: New file.
32595 * commands/search_uuid.c: New file.
32596 * conf/any-emu.rmk (grub_emu_SOURCES): Remove commands/search.c.
32597 Add commands/search_wrap.c, commands/search_file.c,
32598 commands/search_label.c and commands/search_uuid.c.
32599 * conf/common.rmk (pkglib_MODULES): Remove fs_uuid.mod and fs_file.mod.
32600 (search_mod_SOURCES): Set to commands/search_wrap.c.
32601 (pkglib_MODULES): Add search_fs_file.mod, search_fs_uuid.mod and
32602 search_label.mod.
32603 (search_fs_file_mod_SOURCES): New variable.
32604 (search_fs_file_mod_CFLAGS): Likewise.
32605 (search_fs_file_mod_LDFLAGS): Likewise.
32606 (search_label_mod_SOURCES): Likewise.
32607 (search_label_mod_CFLAGS): Likewise.
32608 (search_label_mod_LDFLAGS): Likewise.
32609 (search_fs_uuid_mod_SOURCES): New variable.
32610 (search_fs_uuid_mod_CFLAGS): Likewise.
32611 (search_fs_uuid_mod_LDFLAGS): Likewise.
32612 (fs_file_mod_SOURCES): Removed.
32613 (fs_file_mod_CFLAGS): Likewise.
32614 (fs_file_mod_LDFLAGS): Likewise.
32615 (fs_uuid_mod_SOURCES): Removed.
32616 (fs_uuid_mod_CFLAGS): Likewise.
32617 (fs_uuid_mod_LDFLAGS): Likewise.
32618 * conf/sparc64-ieee1275.rmk (grub_install_SOURCES):
32619 Set to util/grub-install.in.
32620 * disk/fs_file.c: Removed.
32621 * disk/fs_uuid.c: Likewise.
32622 * include/grub/search.h: New file.
32623 * util/grub-install.in: Handle sparc64.
32624 Create and use load.cfg.
32625 * util/sparc64/ieee1275/grub-install.in: Removed.
32626
db943399
VS
326272009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
32628
32629 * kern/i386/pc/startup.S (grub_biosdisk_get_diskinfo_int13_extensions):
32630 Ignore return status if CF is cleared.
32631 (grub_biosdisk_get_diskinfo_standard): Likewise.
32632
3fdae612
RM
326332009-12-25 Robert Millan <rmh.grub@aybabtu.com>
32634
32635 * term/i386/pc/at_keyboard.c
32636 (keyboard_controller_wait_untill_ready): New function.
32637 (grub_keyboard_controller_write, grub_keyboard_controller_read)
32638 (keyboard_controller_led): Use keyboard_controller_wait_untill_ready()
32639 for keyboard polling, rather than duplicate the same loop. This
32640 saves a few bytes in code size.
32641
7ebaa2b4
VS
326422009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
32643
32644 Support for (pxe[:server[:gateway]]) syntax and
32645 use environment variable for PXE.
32646
32647 * commands/i386/pc/pxecmd.c (options): Removed.
32648 (print_ip): Removed.
32649 (grub_cmd_pxe): Removed
32650 (grub_cmd_pxe_unload): New function.
32651 * fs/i386/pc/pxe.c (grub_pxe_disk_data): New structure.
32652 (grub_pxe_your_ip): Made static.
32653 (grub_pxe_default_server_ip): Likewise.
32654 (grub_pxe_default_gateway_ip): Likewise.
32655 (grub_pxe_blksize): Likewise.
32656 (parse_ip): New function.
32657 (grub_pxe_open): Support server and gateway specification.
32658 (grub_pxe_close): Free disk->data.
32659 (grub_pxefs_open): Use disk->data.
32660 (grub_pxefs_read): Likewise.
32661 (grub_env_write_readonly): New function.
32662 (set_mac_env): Likewise.
32663 (set_env_limn_ro): Likewise.
32664 (parse_dhcp_vendor): Likewise.
32665 (grub_pxe_detect): Set the environment variables.
32666 (set_ip_env): New function.
32667 (write_ip_env): Likewise.
32668 (grub_env_write_pxe_default_server): Likewise.
32669 (grub_env_write_pxe_default_gateway): Likewise.
32670 (grub_env_write_pxe_blocksize): Likewise.
32671 (GRUB_MOD_INIT(pxe)): Set environment variables.
32672 * include/grub/i386/pc/pxe.h (grub_pxe_mac_addr): Rename to ...
32673 (grub_pxe_mac_addr_t): ... this. All users updated.
32674 (grub_pxe_your_ip): Removed.
32675 (grub_pxe_server_ip): Likewise.
32676 (grub_pxe_gateway_ip): Likewise.
32677 (grub_pxe_blksize): Likewise.
32678
ec5f98ab 326792009-12-25 Carles Pina i Estany <carles@pina.cat>
32680
32681 * commands/help.c: Include `<grub/i18n.h>'.
32682 (grub_cmd_help): Gettextizze.
32683 (GRUB_MOD_INIT): Likewise.
32684 * commands/i386/pc/play.c: Include `<grub/i18n.h>'.
32685 (GRUB_MOD_INIT): Gettextizze.
32686 * commands/search.c: Include `<grub/i18n.h>'.
32687 (options): Gettextizze.
32688 (GRUB_MOD_INIT): Gettextizze.
32689 * lib/arg.c: Include `<grub/i18n.h>'.
32690 (help_options): Gettextizze.
32691 (find_long): Likewise.
32692 (grub_arg_show_help): Likewise.
32693 * normal/dyncmd.c: Include `<grub/i18n.h>'.
32694 (read_command_list): Gettextizze.
32695 * po/POTFILES: Add `commands/i386/pc/play.c', `commands/search.c',
7ebaa2b4 32696 `commands/help.c', `lib/arg.c' and `normal/dyncmd.c'.
ec5f98ab 32697
22815526
RM
326982009-12-25 Robert Millan <rmh.grub@aybabtu.com>
32699
32700 * include/grub/i386/at_keyboard.h (NUM_LOCK, SCROLL_LOCK): New macros.
32701 * term/i386/pc/at_keyboard.c (KEYBOARD_STATUS_NUM_LOCK)
32702 (KEYBOARD_LED_SCROLL, KEYBOARD_LED_NUM, KEYBOARD_LED_CAPS): New macros.
32703 (led_status): New variable.
32704 (keyboard_controller_led): New function.
32705 (grub_at_keyboard_getkey_noblock): Handle num lock and scroll lock,
32706 update led status for caps lock, num lock and scroll lock.
32707
0ad46fd7
FZ
327082009-12-25 Felix Zielcke <fzielcke@z-51.de>
32709
32710 * util/hostdisk.c (open_device): Fix a comment.
32711
d0e158c2
RM
327122009-12-24 Robert Millan <rmh.grub@aybabtu.com>
32713
32714 * util/grub-install.in (host_os): New variable.
32715 * util/i386/efi/grub-install.in (host_os): Likewise.
32716
401c0ad6
RM
327172009-12-24 Robert Millan <rmh.grub@aybabtu.com>
32718
32719 * util/mkisofs/write.c (padblock_write): Abort when given an
32720 excedingly large embed image, instead of silently truncating it.
32721
d14d3370
RM
327222009-12-24 Robert Millan <rmh.grub@aybabtu.com>
32723
32724 * include/multiboot.h: Indentation fixes.
32725
eeed10b4
RM
327262009-12-24 Robert Millan <rmh.grub@aybabtu.com>
32727
32728 * include/multiboot.h (struct multiboot_aout_symbol_table)
32729 (struct multiboot_elf_section_header_table): New structure
32730 declarations (stolen from GRUB Legacy).
32731 (struct multiboot_info): Replace opaque `syms' with a.out and ELF
32732 table information.
32733
32734 (multiboot_aout_symbol_table_t, multiboot_elf_section_header_table_t)
32735 (multiboot_info_t, multiboot_memory_map_t, multiboot_module_t): New
32736 type aliases.
32737
681c70ab
RM
327382009-12-24 Robert Millan <rmh.grub@aybabtu.com>
32739
32740 * include/multiboot.h: Make comments src2texi-friendly.
32741
e4d47d8d
RM
327422009-12-24 Robert Millan <rmh.grub@aybabtu.com>
32743
32744 For consistency with [multiboot]/docs/boot.S.
32745
32746 * include/multiboot.h (MULTIBOOT_MAGIC): Rename from this ...
32747 (MULTIBOOT_HEADER_MAGIC): ... to this. Update all users.
32748 (MULTIBOOT_MAGIC2): Rename from this ...
32749 (MULTIBOOT_BOOTLOADER_MAGIC): ... to this. Update all users.
32750
a0b70bda
RM
327512009-12-24 Robert Millan <rmh.grub@aybabtu.com>
32752
32753 * include/multiboot.h: Remove `<grub/types.h>'.
32754 (multiboot_uint16_t, multiboot_uint32_t, multiboot_uint64_t): New
32755 types. Update all users.
32756
61ba42be 327572009-12-25 Carles Pina i Estany <carles@pina.cat>
32758
32759 * commands/efi/loadbios.c: Capitalize acronyms, replace `could not' by
32760 `couldn't' and `can not' by `cannot'.
32761 * commands/i386/pc/drivemap.c: Likewise.
32762 * disk/ata.c: Likewise.
32763 * disk/ieee1275/nand.c: Likewise.
32764 * fs/affs.c: Likewise.
32765 * fs/fat.c: Likewise.
32766 * fs/hfs.c: Likewise.
32767 * fs/hfsplus.c: Likewise.
32768 * fs/iso9660.c: Likewise.
32769 * fs/jfs.c: Likewise.
32770 * fs/minix.c: Likewise.
32771 * fs/reiserfs.c: Likewise.
32772 * fs/sfs.c: Likewise.
32773 * fs/udf.c: Likewise.
32774 * fs/ufs.c: Likewise.
32775 * fs/xfs.c: Likewise.
32776 * loader/powerpc/ieee1275/linux.c: Likewise.
32777 * loader/sparc64/ieee1275/linux.c: Likewise.
32778 * util/grub-probe.c: Likewise.
32779 * util/misc.c: Likewise.
32780
7fd0baee 327812009-12-24 Carles Pina i Estany <carles@pina.cat>
32782
32783 * bus/usb/usbhub.c: Fix capitalization, fullstop and newlines in
32784 grub_errno calls.
32785 * commands/acpi.c: Likewise.
32786 * commands/blocklist.c: Likewise.
32787 * commands/efi/loadbios.c: Likewise.
32788 * commands/i386/pc/drivemap.c: Likewise.
32789 * commands/loadenv.c: Likewise.
32790 * commands/memrw.c: Likewise.
32791 * commands/password.c: Likewise.
32792 * commands/videotest.c: Likewise.
32793 * disk/ata.c: Likewise.
32794 * disk/ata_pthru.c: Likewise.
32795 * disk/dmraid_nvidia.c: Likewise.
32796 * disk/ieee1275/nand.c: Likewise.
32797 * disk/ieee1275/ofdisk.c: Likewise.
32798 * disk/loopback.c: Likewise.
32799 * disk/lvm.c: Likewise.
32800 * disk/mdraid_linux.c: Likewise.
32801 * disk/raid.c: Likewise.
32802 * disk/raid6_recover.c: Likewise.
32803 * disk/scsi.c: Likewise.
32804 * efiemu/main.c: Likewise.
32805 * efiemu/mm.c: Likewise.
32806 * efiemu/pnvram.c: Likewise.
32807 * efiemu/symbols.c: Likewise.
32808 * font/font.c: Likewise.
32809 * fs/cpio.c: Likewise.
32810 * fs/hfsplus.c: Likewise.
32811 * fs/iso9660.c: Likewise.
32812 * fs/jfs.c: Likewise.
32813 * fs/minix.c: Likewise.
32814 * fs/ntfs.c: Likewise.
32815 * fs/ntfscomp.c: Likewise.
32816 * fs/reiserfs.c: Likewise.
32817 * fs/ufs.c: Likewise.
32818 * fs/xfs.c: Likewise.
32819 * gettext/gettext.c: Likewise.
32820 * include/grub/auth.h: Likewise.
32821 * kern/elf.c: Likewise.
32822 * kern/file.c: Likewise.
32823 * kern/ieee1275/init.c: Likewise.
32824 * kern/ieee1275/mmap.c: Likewise.
32825 * kern/ieee1275/openfw.c: Likewise.
32826 * kern/powerpc/dl.c: Likewise.
32827 * kern/sparc64/dl.c: Likewise.
32828 * lib/arg.c: Likewise.
32829 * loader/i386/bsd.c: Likewise.
32830 * loader/i386/bsdXX.c: Likewise.
32831 * loader/i386/efi/linux.c: Likewise.
32832 * loader/i386/efi/xnu.c: Likewise.
32833 * loader/i386/ieee1275/linux.c: Likewise.
32834 * loader/i386/linux.c: Likewise.
32835 * loader/i386/multiboot.c: Likewise.
32836 * loader/i386/pc/linux.c: Likewise.
32837 * loader/i386/pc/multiboot2.c: Likewise.
32838 * loader/i386/xnu.c: Likewise.
32839 * loader/ieee1275/multiboot2.c: Likewise.
32840 * loader/macho.c: Likewise.
32841 * loader/machoXX.c: Likewise.
32842 * loader/multiboot2.c: Likewise.
32843 * loader/multiboot_loader.c: Likewise.
32844 * loader/powerpc/ieee1275/linux.c: Likewise.
32845 * loader/sparc64/ieee1275/linux.c: Likewise.
32846 * loader/xnu.c: Likewise.
32847 * loader/xnu_resume.c: Likewise.
32848 * mmap/i386/pc/mmap.c: Likewise.
32849 * normal/menu_viewer.c: Likewise.
32850 * partmap/acorn.c: Likewise.
32851 * partmap/amiga.c: Likewise.
32852 * partmap/apple.c: Likewise.
32853 * script/lexer.c: Likewise.
32854 * term/gfxterm.c: Likewise.
32855 * term/i386/pc/serial.c: Likewise.
32856 * term/i386/pc/vga.c: Likewise.
32857 * term/ieee1275/ofconsole.c: Likewise.
32858 * term/terminfo.c: Likewise.
32859 * video/bitmap.c: Likewise.
32860 * video/efi_gop.c: Likewise.
32861 * video/efi_uga.c: Likewise.
32862 * video/fb/video_fb.c: Likewise.
32863 * video/i386/pc/vbe.c: Likewise.
32864 * video/readers/tga.c: Likewise.
32865 * video/video.c: Likewise.
32866
0ad46fd7 328672009-12-23 Felix Zielcke <fzielcke@z-51.de>
a2c1332b
FZ
32868
32869 * commands/i386/pc/drivemap.c: Remove all trailing whitespace.
32870 * commands/lspci.c: Likewise.
32871 * commands/probe.c: Likewise.
32872 * commands/xnu_uuid.c: Likewise.
32873 * conf/i386-coreboot.rmk: Likewise.
32874 * conf/i386-efi.rmk: Likewise.
32875 * conf/i386-ieee1275.rmk: Likewise.
32876 * conf/i386-pc.rmk: Likewise.
32877 * conf/powerpc-ieee1275.rmk: Likewise.
32878 * conf/sparc64-ieee1275.rmk: Likewise.
32879 * conf/x86_64-efi.rmk: Likewise.
32880 * fs/i386/pc/pxe.c: Likewise.
32881 * gettext/gettext.c: Likewise.
32882 * include/grub/efi/graphics_output.h: Likewise.
32883 * include/grub/i386/pc/memory.h: Likewise.
32884 * kern/env.c: Likewise.
32885 * kern/i386/qemu/startup.S: Likewise.
32886 * lib/i386/pc/biosnum.c: Likewise.
32887 * lib/i386/relocator.c: Likewise.
32888 * lib/i386/relocator_asm.S: Likewise.
32889 * lib/relocator.c: Likewise.
32890 * loader/i386/bsd.c: Likewise.
32891 * loader/i386/multiboot.c: Likewise.
32892 * loader/i386/pc/chainloader.c: Likewise.
32893 * loader/i386/xnu.c: Likewise.
32894 * loader/xnu.c: Likewise.
32895 * normal/main.c: Likewise.
32896 * normal/menu_text.c: Likewise.
32897 * util/getroot.c: Likewise.
32898 * util/grub-mkconfig_lib.in: Likewise.
32899 * util/grub.d/00_header.in: Likewise.
32900 * util/i386/pc/grub-mkimage.c: Likewise.
32901 * util/mkisofs/eltorito.c: Likewise.
32902 * util/mkisofs/exclude.h: Likewise.
32903 * util/mkisofs/hash.c: Likewise.
32904 * util/mkisofs/iso9660.h: Likewise.
32905 * util/mkisofs/joliet.c: Likewise.
32906 * util/mkisofs/mkisofs.c: Likewise.
32907 * util/mkisofs/mkisofs.h: Likewise.
32908 * util/mkisofs/multi.c: Likewise.
32909 * util/mkisofs/name.c: Likewise.
32910 * util/mkisofs/rock.c: Likewise.
32911 * util/mkisofs/tree.c: Likewise.
32912 * util/mkisofs/write.c: Likewise.
32913 * video/efi_gop.c: Likewise.
32914
009ec743
VS
329152009-12-23 Vladimir Serbinenko <phcoder@gmail.com>
32916
32917 * video/efi_gop.c (grub_video_gop_get_bitmask): Fix off-by-one in mask
32918 size counting.
32919
0ad46fd7 329202009-12-22 Felix Zielcke <fzielcke@z-51.de>
990f3548
FZ
32921
32922 * util/grub-mkrescue.in (pkglib_DATA): Set to @pkglib_DATA@.
32923 * genmk.rb (class SCRIPT): Modify the target file instead of source.
32924
d3d30ea0
VS
329252009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
32926
32927 * commands/memrw.c (grub_cmd_write): Support for mask parameter.
32928 (GRUB_MOD_INIT(memrw)): Update help line.
32929
a34f5c70
VS
329302009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
32931
32932 * commands/memrw.c (cmd_read_byte, cmd_read_word, cmd_read_dword):
32933 Use grub_extcmd_t. All users updated.
32934 (options): New variable.
32935 (grub_cmd_read): Restructure for readability. Support "-v" option.
32936 (grub_cmd_write): Restructure for readability.
32937
0ad46fd7 329382009-12-22 Felix Zielcke <fzielcke@z-51.de>
67618ea6
FZ
32939
32940 * genmk.rb (class SCRIPT): Prepend #{src} path with $(srcdir).
32941
0ad46fd7 329422009-12-22 Felix Zielcke <fzielcke@z-51.de>
10a88797
FZ
32943
32944 * genmk.rb (class SCRIPT): Use sed to substitute @pkglib_DATA@
32945 with the actual contents of the correspondending make variable.
32946 * util/grub-mkrescue.in (pkglib_DATA): New variable.
32947 (process_input_dir): Copy all $pkglib_DATA files instead of explicitly
32948 specifying `*.lst' and `efiemu??.o'
32949
0ad46fd7 329502009-12-22 Felix Zielcke <fzielcke@z-51.de>
7e70dfff
FZ
32951
32952 * util/grub.d/30_os-prober.in (osx_entry): Add round brackets
32953 after function name.
32954 Noticed by Rene Engelhard <rene@debian.org>.
32955
dc77a799
VS
329562009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
32957
32958 * commands/lspci.c (grub_pci_classes): Add "USB Controller".
32959 (options): New variable.
32960 (iospace): Likewise.
32961 (grub_lspci_iter): List IO spaces if "-i" was given.
32962 (grub_cmd_lspci): Parse options.
32963 (GRUB_MOD_INIT(lspci)): Use extcmd.
32964 (GRUB_MOD_FINI(lspci)): Likewise.
32965
0ad46fd7 329662009-12-22 Felix Zielcke <fzielcke@z-51.de>
82000aa2
FZ
32967
32968 * util/grub.d/30_os-prober.in (osx_entry): Remove non POSIX compliant
32969 `function' keyword.
32970 Patch by Tony Mancill <tmancill@debian.org>.
32971
b5d5993b
VS
329722009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
32973
32974 * bus/usb/uhci.c (grub_uhci_transfer): Set a limit transaction time.
32975 (grub_uhci_portstatus): Likewise.
32976 (grub_uhci_portstatus): Add necessary delay.
11d18281 32977 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Fix loop-break condition.
b5d5993b 32978
941903f2 329792009-12-21 Carles Pina i Estany <carles@pina.cat>
b5d5993b 32980
941903f2 32981 * commands/acpi.c (options): Fix capitalizations and/or full stops.
32982 (GRUB_MOD_INIT): Likewise.
32983 * commands/boot.c (GRUB_MOD_INIT): Likewise.
cb04503e 32984 * commands/cmp.c (grub_cmd_cmp): Improve the help message.
32985 * commands/echo.c (options): Fix capitalizations and/or full stops.
941903f2 32986 * commands/efi/loadbios.c (enable_rom_area): Likewise.
32987 (enable_rom_area): Likewise.
32988 (GRUB_MOD_INIT): Likewise.
32989 * commands/gptsync.c (GRUB_MOD_INIT): Likewise.
32990 * commands/halt.c (GRUB_MOD_INIT): Improve the help message.
32991 * commands/handler.c (GRUB_MOD_INIT): Likewise.
32992 * commands/hdparm.c (options): Fix capitalizations and/or full stops.
32993 * commands/hexdump.c (options): Likewise.
32994 * commands/i386/cpuid.c (options): Likewise.
32995 (GRUB_MOD_INIT): Likewise.
32996 * commands/i386/pc/drivemap.c (options): Likewise.
32997 (GRUB_MOD_INIT): Likewise.
32998 * commands/i386/pc/halt (options): Likewise.
32999 (GRUB_MOD_INIT): Likewise.
33000 * commands/i386/pc/play.c (GRUB_MOD_INIT): Likewise.
33001 * commands/i386/pc/pxecmd.c (options): Likewise.
33002 * commands/i386/pc/vbetest.c (GRUB_MOD_INIT): Likewise.
33003 * commands/ieee1275/suspend.c (GRUB_MOD_INIT): Likewise.
33004 * commands/keystatus.c (options): Likewise.
33005 (GRUB_MOD_INIT): Likewise.
33006 * commands/loadenv.c (options): Likewise.
33007 * commands/ls.c (options): Likewise.
33008 * commands/lspci.c (GRUB_MOD_INIT): Likewise.
33009 * commands/memrw.c (GRUB_MOD_INIT): Likewise.
33010 * commands/minicmd.c (GRUB_MOD_INIT): Likewise.
33011 * commands/parttool.c (helpmsg): Likewise.
33012 * commands/probe.c (options): Likewise.
33013 * commands/read.c (GRUB_MOD_INIT): Likewise.
33014 * commands/reboot.c (GRUB_MOD_INIT): Likewise.
33015 * commands/search.c (options): Likewise.
33016 * commands/sleep.c (options): Likewise.
33017 * commands/test.c (GRUB_MOD_INIT): Likewise.
33018 * commands/true.c (GRUB_MOD_INIT): Likewise.
33019 * commands/usbtest.c (GRUB_MOD_INIT): Likewise.
33020 * commands/videotest.c (GRUB_MOD_INIT): Likewise.
33021 * lib/arg.c (help_options): Likewise.
e9bbb4e7 33022 * Makefile.in ($(srcdir)/po/$(PACKAGE).pot): Pass -ctranslate to
33023 `$(XGETTEXT)'.
98a50553 33024 * po/POTFILES: Add `commands/loadenv.c'.
941903f2 33025
0ad46fd7 330262009-12-21 Felix Zielcke <fzielcke@z-51.de>
4dd13225 33027
ef3c2c3a 33028 * util/grub-mkrescue.in (process_input_dir): Copy `*.lst' files
4dd13225
FZ
33029 instead of specifying them explicit.
33030
7922f68b
RM
330312009-12-21 Robert Millan <rmh.grub@aybabtu.com>
33032
33033 * NEWS: Add grub-probe support for GNU/Hurd.
33034
537ce47f
RM
330352009-12-21 Robert Millan <rmh.grub@aybabtu.com>
33036
33037 * NEWS: gettext was added after 1.97.
33038
9b214e3a
RM
330392009-12-21 Robert Millan <rmh.grub@aybabtu.com>
33040
33041 * util/mkisofs/msdos_partition.h: New file (based on
33042 include/grub/msdos_partition.h).
33043 * util/mkisofs/mkisofs.c (use_protective_msdos_label): New variable.
33044 (OPTION_PROTECTIVE_MSDOS_LABEL): New macro.
33045 (ld_options, main): Recognize --protective-msdos-label.
33046 * util/mkisofs/mkisofs.h (use_protective_msdos_label): New declaration.
33047 * util/mkisofs/write.c: Include `"msdos_partition.h"'.
33048 (padblock_write): If `use_protective_msdos_label' is set, patch a
33049 protective DOS-style label in the output image.
33050
33051 * util/grub-mkrescue.in: Use --protective-msdos-label.
33052
e9309813
RM
330532009-12-21 Robert Millan <rmh.grub@aybabtu.com>
33054
33055 * util/grub-mkrescue.in: Do not zero-pad image for BIOS-based disk
33056 boot.
33057
0ae56929
RM
330582009-12-21 Robert Millan <rmh.grub@aybabtu.com>
33059
33060 * util/mkisofs/mkisofs.c (use_embedded_boot, boot_image_embed): New
33061 variables.
33062 (ld_options, main): Recognize `--embedded-boot'.
33063 * util/mkisofs/mkisofs.h (use_embedded_boot, boot_image_embed): New
33064 declarations.
33065 * util/mkisofs/write.c (PADBLOCK_SIZE): New variable.
33066 (padblock_size): Use `PADBLOCK_SIZE' instead of hardcoding 16.
33067 (padblock_write): Likewise. Rewrite to support embedded boot image.
33068
33069 * util/grub-mkrescue.in: When building i386-pc images, embed core.img
33070 for BIOS-based disk boot instead of only ElTorito.
33071
b15937b1
RM
330722009-12-21 Robert Millan <rmh.grub@aybabtu.com>
33073
33074 * util/grub-mkrescue.in: Remove `configfile' and `sh' from i386-pc
33075 build (not needed for bootstrap).
33076
52cc3ce0
RM
330772009-12-21 Robert Millan <rmh.grub@aybabtu.com>
33078
33079 * util/grub-mkrescue.in: Remove `memdisk', `tar' and `search' modules
33080 from i386-pc build (not needed for bootstrap).
33081 Rewrite a pair of strings.
33082
36f5ff04
RM
330832009-12-21 Robert Millan <rmh.grub@aybabtu.com>
33084
33085 * normal/main.c (grub_normal_reader_init): Set left margin back to 3.
33086
973c6c85 330872009-12-21 Vladimir Serbinenko <phcoder@gmail.com>
b07e53f0
VS
33088
33089 * video/i386/pc/vbe.c (grub_video_vbe_fini): Set 'last_set_mode'.
33090
05d21547
AB
330912009-12-21 Andreas Born <futur.andy@googlemail.com>
33092
33093 * kern/env.c (grub_env_context_open): Mark exported variable for
33094 reexport.
33095
0175d51f
AB
330962009-12-21 Andreas Born <futur.andy@googlemail.com>
33097
33098 * kern/env.c (grub_env_export): Create nonexistent variables before
33099 exporting.
33100
7f39d92f 331012009-12-20 Carles Pina i Estany <carles@pina.cat>
0175d51f 33102
7f39d92f 33103 * include/grub/auth.h: Include `<grub/i18n.h>'.
33104 (GRUB_GET_PASSWORD): Gettextizze string.
33105 * include/grub/normal.h (STANDARD_MARGIN): New macro, moved from
33106 menu_text.c.
33107 (grub_utf8_to_ucs4_alloc): Fix indentation.
33108 (grub_print_ucs4): Likewise.
33109 (grub_getstringwidth): Likewise.
33110 (print_message_indented): New declaration.
33111 * normal/auth.c: Include `<grub/i18n.h>'.
33112 (grub_auth_check_authentication): Gettexttize string.
33113 * normal/cmdline.c: Include `<grub/i18n.h>'.
33114 (grub_cmdline_get): Gettextizze.
33115 * normal/color.c: Include `<grub/i18n.h>'.
33116 (grub_parse_color_name_pair): Gettexttize strings.
33117 * normal/main.c (grub_normal_reader_init): Cleanup gettexttized
33118 string (use `print_message_indented').
33119 * normal/menu_text.c (STANDARD_MARGIN): Moved from here to
33120 `include/grub/normal.h'.
33121 (print_message_indented): Renamed to ...
33122 (grub_print_message_indented): ... this. Remove `static' qualifer (now
33123 used in normal/main.c).
33124 (print_message): Use `grub_print_message_indented' instead of
33125 `print_message_indented'.
33126 (print_timeout): Likewise.
33127 * normal/misc.c: Include `<grub/term.h>' and `<grub/i18n.h>'.
33128 (grub_normal_print_device_info): Gettexttize strings.
33129 * po/POTFILES: Add `auth.c', `color.c' and `misc.c'.
33130
3041d898
VS
331312009-12-20 Vladimir Serbinenko <phcoder@gmail.com>
33132
33133 * kern/parser.c (grub_parser_split_cmdline): Fix incorrect counting
33134 of arguments. Return number of tokens and not arguments. All users
33135 updated.
33136
de15bf8e
VS
331372009-12-20 Vladimir Serbinenko <phcoder@gmail.com>
33138
33139 * util/i386/pc/grub-setup.c (setup): Don't install on non-GPT,
33140 non-MSDOS paritions.
33141
e0a6ca52
VS
331422009-12-19 Vladimir Serbinenko <phcoder@gmail.com>
33143
33144 * include/grub/types.h (UNUSED): Removed since it conflicts with
33145 NetBSD headers. All users changed to direct __attribute__ ((unused)).
33146 Reported by Grégoire Sutre.
33147
b99518d1 331482009-12-19 Carles Pina i Estany <carles@pina.cat>
33149
33150 * include/grub/normal.h (grub_utf8_to_ucs4): New declaration.
33151 (grub_print_ucs4_alloc): Likewise.
33152 (grub_getstringwidth): Likewise.
33153 * normal/main.c (grub_normal_init_page): Gettextize version string.
33154 * normal/menu_text.c (grub_utf8_to_ucs4_alloc): New definition.
33155 (getstringwidth): Renamed to ...
33156 (grub_getstringwidth): ... this. Remove `static' qualifier (now used
33157 in normal/main.c). Use `grub_utf8_to_ucs4_alloc'.
33158 (grub_print_ucs4): Remove `static' qualifer (now used in
33159 normal/main.c).
33160 * po/POTFILES: Add normal/main.c.
33161
bfd5e52b 331622009-12-19 Carles Pina i Estany <carles@pina.cat>
33163
33164 * normal/menu_text.c (STANDARD_MARGIN): New macro.
33165 (print_message_indented): Add `margin_left' and `margin_right'
33166 parameters.
33167 (print_message): Update `print_message_indented' calls. Adds '\n' to the
33168 strings.
33169 (print_timeout): Use `print_message_indented' to print the message.
33170 Deletes `second_stage' parameter.
33171 (run_menu): Update `print_timeout' calls.
33172
5a1ad2b9
VS
331732009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
33174
33175 Fix console palette on OpenFirmware.
33176
33177 * term/ieee1275/ofconsole.c (MAX): Removed.
33178 (colors): Redone based on VGA palette.
33179 (grub_ofconsole_setcolor): Discard brightness bit since only 8
33180 colors are supported.
33181 (grub_ofconsole_init_output): Use ARRAY_SIZE instead of hardcoded size.
33182
b045f00a
VS
331832009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
33184
33185 Fix potential EfiEmu double prepare.
33186
33187 * efiemu/main.c (prepared): New variable
33188 (grub_efiemu_unload): Set prepare to '0'.
33189 (grub_efiemu_prepare): Return if already prepared. Set prepared.
33190
33191 set_virtual_address_map support.
33192
33193 * include/grub/efi/efi.h (grub_efi_set_virtual_address_map): New
33194 prototype.
33195 * include/grub/efiemu/efiemu.h (grub_efiemu_write_sym_markers): New
33196 prototype.
33197 (grub_efiemu_crc32): Likewise.
33198 (grub_efiemu_crc64): Likewise.
33199 (grub_efiemu_set_virtual_address_map): Likewise.
33200 * include/grub/autoefi.h (grub_autoefi_exit_boot_services):
33201 New definition.
33202 (grub_autoefi_set_virtual_address_map): Likewise.
33203 * kern/efi/efi.c (grub_efi_set_virtual_address_map): New function.
33204 * loader/i386/xnu.c (grub_xnu_boot): Call set_virtual_address_map.
33205 Restructure flow to accomodate it.
33206 * efiemu/prepare.c (grub_efiemu_prepare): Support set_virtual_address_map.
33207 (grub_efiemu_crc): Recompute CRC32.
33208 * efiemu/runtime/efiemu.c (ptv_relocated): Renamed to ...
33209 (efiemu_ptv_relocated): ... this. Made global. All users updated.
33210 * efiemu/symbols.c (relocated_handle): New variable.
33211 (grub_efiemu_free_syms): Free relocated_handle.
33212 (grub_efiemu_alloc_syms): Allocate relocated_handle.
33213 (grub_efiemu_write_sym_markers): New function.
33214 (grub_efiemu_set_virtual_address_map): Likewise.
33215
33216 Newer XNU parameters.
33217
33218 * include/grub/i386/xnu.h (GRUB_XNU_BOOTARGS_VERMINOR): Change to 5.
33219 * include/grub/xnu.h (grub_xnu_extheader): Add nameaddr and namesize.
33220 (grub_xnu_fill_devicetree): New prototype.
33221 (grub_xnu_heap_real_start): New variable.
33222 * loader/xnu.c (get_name_ptr): New function.
33223 (grub_xnu_load_driver): Fill namelen and name.
33224
33225 64-bit xnu support.
33226
33227 * conf/i386-efi.rmk (xnu_mod_SOURCES): Add 'loader/macho32.c'
33228 and 'loader/macho64.c'.
33229 * conf/i386-pc.rmk: Likewise.
33230 * conf/x86_64-efi.rmk: Likewise.
33231 * include/grub/i386/macho.h (grub_macho_thread64): New structure.
33232 * include/grub/xnu.h (grub_xnu_is_64bit): New variable.
33233 * include/grub/macho.h (grub_macho_segment64): New structure.
33234 * include/grub/machoload.h (grub_macho32_size): Renamed from ...
33235 (grub_macho_size32): ... to this.
33236 (grub_macho32_get_entry_point): Renamed from ...
33237 (grub_macho_get_entry_point32): ... to this.
33238 (grub_macho_contains_macho64): New prototype.
33239 (grub_macho_size64): Likewise.
33240 (grub_macho_get_entry_point64): Likewise.
33241 (grub_macho32_load): Renamed from ...
33242 (grub_macho_load32): ... to this.
33243 (grub_macho32_filesize): Renamed from ...
33244 (grub_macho_filesize32): ... to this.
33245 (grub_macho32_readfile): Renamed from ...
33246 (grub_macho_readfile32): ... to this.
33247 (grub_macho_filesize64): New prototype.
33248 (grub_macho_readfile64): Likewise.
33249 (grub_macho_parse32): Likewise.
33250 (grub_macho_parse64): Likewise.
33251 * loader/macho.c: Split into ...
33252 * loader/machoXX.c: ... and this. Replace 32 with XX.
33253 * loader/macho32.c: New file.
33254 * loader/macho64.c: Likewise.
33255 * loader/xnu.c (grub_xnu_is_64bit): New variable.
33256 (grub_cmd_xnu_kernel): Make 32-bit only.
33257 (grub_cmd_xnu_kernel64): New function.
33258 (grub_xnu_load_driver): Support Mach-O 64.
33259 (grub_cmd_xnu_mkext): Likewise.
33260 * util/grub.d/30_os-prober.in (osx_entry): New function.
33261 Generate entries for 64-bit boot too.
33262
33263 Eliminate ad-hoc tree format in XNU and EfiEmu.
33264
33265 * efiemu/main.c (grub_efiemu_prepare): Update comment.
33266 * efiemu/pnvram.c: Rewritten to use environment variables.
33267 All users updated.
33268
33269 Inline utf16_to_utf8.
33270
33271 * kern/misc.c (grub_utf16_to_utf8): Move from here ...
33272 * include/grub/charset.h (grub_utf16_to_utf8): ... to here. Inlined.
33273 All users updated.
33274 * include/grub/misc.h (grub_utf16_to_utf8): Removed.
33275
33276 * bus/usb/usb.c (grub_usb_get_string): Move from here ...
33277 * commands/usbtest.c (grub_usb_get_string): ... move here.
33278 (usb_print_str): Fix error handling.
33279 * include/grub/usb.h (grub_usb_get_string): Remove.
33280
33281 UTF-8 to UTF-16 transformation.
33282
33283 * conf/common.rmk (pkglib_MODULES): Add charset.mod
33284 (charset_mod_SOURCES): New variable.
33285 (charset_mod_CFLAGS): Likewise.
33286 (charset_mod_LDFLAGS): Likewise.
33287 * include/grub/utf.h: New file.
33288 * lib/utf.c: New file. (Based on grub_utf8_to_ucs4 from kern/misc.c)
33289
33290 Support for device properties.
33291
33292 * include/grub/i386/xnu.h (grub_xnu_devprop_header): New structure.
33293 (grub_xnu_devprop_device_header): Likewise.
33294 (grub_xnu_devprop_device_descriptor): Likewise.
33295 (grub_xnu_devprop_add_device): New prototype.
33296 (grub_xnu_devprop_remove_device): Likewise.
33297 (grub_xnu_devprop_remove_property): Likewise.
33298 (grub_xnu_devprop_add_property_utf8): Likewise.
33299 (grub_xnu_devprop_add_property_utf16): Likewise.
33300 (grub_cpu_xnu_init): Likewise.
33301 (grub_cpu_xnu_fini): Likewise.
33302 (grub_cpu_xnu_unload): Likewise.
33303 * loader/i386/xnu.c (grub_xnu_devprop_device_descriptor): New structure.
33304 (property_descriptor): Likewise.
33305 (devices): New variable.
33306 (grub_xnu_devprop_remove_property): New function.
33307 (grub_xnu_devprop_add_device): Likewise.
33308 (grub_xnu_devprop_remove_device): Likewise.
33309 (grub_xnu_devprop_add_property): Likewise.
33310 (grub_xnu_devprop_add_property_utf8): Likewise.
33311 (grub_xnu_devprop_add_property_utf16): Likewise.
33312 (hextoval): Likewise.
33313 (grub_cpu_xnu_fill_devprop): Likewise.
33314 (grub_cmd_devprop_load): Likewise.
33315 (grub_xnu_boot): Call grub_cpu_xnu_fill_devprop,
33316 grub_xnu_fill_devicetree, grub_xnu_fill_devicetree
33317 (cmd_devprop_load): New variable.
33318 (grub_cpu_xnu_init): New function.
33319 (grub_cpu_xnu_fini): Likewise.
33320 * loader/i386/xnu.c (grub_xnu_unload): Call grub_cpu_xnu_unload.
33321 * loader/xnu.c (grub_xnu_parse_devtree): Remove.
33322 (grub_cmd_xnu_devtree): Likewise.
33323 (hextoval): New function.
33324 (unescape): Likewise.
33325 (grub_xnu_fill_devicetree): Likewise.
33326
33327 * util/grub.d/30_os-prober.in: Load devprop.bin. Don't load devtree.txt.
33328 * util/i386/efi/grub-dumpdevtree: Generate devprop.bin.
33329
0945f181
VS
333302009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
33331
33332 Workaround for broken ATI VBE.
33333
33334 * video/i386/pc/vbe.c (last_set_mode): New variable.
33335 (grub_vbe_set_video_mode): Set 'last_set_mode'.
33336 (grub_vbe_get_video_mode): Use 'last_set_mode' if get_mode fails.
33337 (grub_video_vbe_setup): Don't check for reserved flag.
33338
0ad46fd7 333392009-12-17 Felix Zielcke <fzielcke@z-51.de>
0297aafb
FZ
33340
33341 * gendistlist.sh: Use POSIX compliant `!' instead of `-not' in
33342 the `find' command.
33343
c179ebe4
VS
333442009-12-16 Vladimir Serbinenko <phcoder@gmail.com>
33345
33346 UUID support for HFS.
33347
33348 * fs/hfs.c (grub_hfs_uuid): New function.
33349 (grub_hfs_fs): New value .uuid.
33350 * include/grub/hfs.h (grub_hfs_sblock): New field 'num_serial'.
33351
0ad46fd7 333522009-12-14 Felix Zielcke <fzielcke@z-51.de>
574cce0c
FZ
33353
33354 Fix a segfault with parsing unknown long options.
33355
33356 * util/grub-mkrelpath.c (options): Zero terminate it.
33357
c4a3e41a
CPE
333582009-12-13 Carles Pina i Estany <carles@pina.cat>
33359
33360 * include/grub/misc.h (grub_puts): New declaration.
33361 (grub_puts_): Likewise.
a22008a6 33362 * kern/misc.c (grub_puts): New definition.
c4a3e41a
CPE
33363 (grub_puts_): Likewise.
33364
2e8a7602
RM
333652009-12-13 Robert Millan <rmh.grub@aybabtu.com>
33366
33367 * util/grub-probe.c (probe): Improve error message.
33368
b50b77b9
RM
333692009-12-13 Robert Millan <rmh.grub@aybabtu.com>
33370
33371 * loader/i386/multiboot_elfxx.c
33372 (CONCAT(grub_multiboot_load_elf, XX)): Fix `grub_multiboot_payload_eip'
33373 initialization.
33374
333752009-12-13 Vladimir Serbinenko <phcoder@gmail.com>
33376
33377 Relocator framework
33378
33379 * loader/i386/xnu_helper.S: Removed. All users updated.
33380 * conf/i386.rmk (pkglib_MODULES): Add relocator.mod.
33381 (relocator_mod_SOURCES): New variable.
33382 (relocator_mod_CFLAGS): Likewise.
33383 (relocator_mod_LDFLAGS): Likewise.
33384 (relocator_mod_ASFLAGS): Likewise.
33385 * conf/x86_64.rmk: Likewise.
33386 * include/grub/i386/multiboot.h (grub_multiboot_payload_orig): Removed.
33387 (grub_multiboot_payload_entry_offset): Likewise.
33388 (grub_multiboot_forward_relocator): Likewise.
33389 (grub_multiboot_forward_relocator_end): Likewise.
33390 (grub_multiboot_backward_relocator): Likewise.
33391 (grub_multiboot_backward_relocator_end): Likewise.
33392 (grub_multiboot_payload_eip): New variable.
33393 (grub_multiboot_payload_orig): Likewise.
33394 * include/grub/i386/pc/memory.h: Include grub/i386/memory.h.
33395 (GRUB_MEMORY_MACHINE_CR0_PE_ON): Move from here ...
33396 * include/grub/i386/memory.h
33397 (GRUB_MEMORY_CPU_CR0_PE_ON): ... to here
33398 (GRUB_MEMORY_CPU_CR4_PAE_ON): New definition.
33399 (GRUB_MEMORY_CPU_CR0_PAGING_ON): Likewise.
33400 (GRUB_MEMORY_CPU_AMD64_MSR): Likewise.
33401 (GRUB_MEMORY_CPU_AMD64_MSR_ON): Likewise.
33402 * include/grub/i386/relocator.h: New file.
33403 * include/grub/x86_64/relocator.h: Likewise.
33404 * include/grub/i386/xnu.h: Include grub/cpu/relocator.h.
33405 (XNU_RELOCATOR): New macro.
33406 (grub_xnu_launcher_start): Remove.
33407 (grub_xnu_launcher_end): Likewise.
33408 * include/grub/xnu.h (grub_xnu_boot_resume): New prototype.
33409 (grub_xnu_heap_real_start): Remove.
33410 (grub_xnu_heap_start): Change to void *. All users updated.
33411 * kern/i386/realmode.S (real_to_prot): Use GRUB_MEMORY_CPU_CR0_PE_ON.
33412 * lib/i386/relocator.c: New file.
33413 * lib/i386/relocator_asm.S: Likewise.
33414 * lib/i386/relocator_backward.S: Likewise.
33415 * lib/mips/relocator.c: Likewise.
33416 * lib/mips/relocator_asm.S: Likewise.
33417 * lib/relocator.c: Likewise.
33418 * loader/i386/multiboot.c: Include grub/i386/relocator.h.
33419 (entry): Removed.
33420 (playground): Likewise.
33421 (grub_multiboot_payload_orig): New variable.
33422 (grub_multiboot_payload_dest): Likewise.
33423 (grub_multiboot_payload_size): Likewise.
33424 (grub_multiboot_payload_eip): Likewise.
33425 (grub_multiboot_payload_esp): Likewise.
33426 (grub_multiboot_boot): Use grub_relocator32_boot.
33427 (grub_multiboot_unload): Free relocators.
33428 (grub_multiboot): Setup stack. Use relocators.
33429 * loader/i386/multiboot_elfxx.c: Include grub/i386/relocator.h.
33430 (grub_multiboot_load_elfXX): Use relocators.
33431 * loader/i386/multiboot_helper.S (grub_multiboot_payload_orig): Removed.
33432 (grub_multiboot_payload_size): Likewise.
33433 (grub_multiboot_payload_dest): Likewise.
33434 (grub_multiboot_payload_entry_offset): Likewise.
33435 (grub_multiboot_forward_relocator): Likewise.
33436 (grub_multiboot_backward_relocator): Likewise.
33437 (grub_multiboot_real_boot): Likewise.
33438 * loader/i386/xnu.c (grub_xnu_heap_will_be_at): New variable.
33439 (grub_xnu_entry_point): Likewise.
33440 (grub_xnu_arg1): Likewise.
33441 (grub_xnu_stack): Likewise.
33442 (grub_xnu_launch): Removed.
33443 (grub_xnu_boot_resume): New function.
33444 (grub_xnu_boot): Use relocators.
33445 * loader/i386/xnu_helper.S: Removed.
33446 * loader/xnu.c (grub_xnu_heap_start): New variable.
33447 (grub_xnu_heap_size): Likewise.
33448 (grub_xnu_heap_malloc): Use relocators.
33449 * loader/xnu_resume.c (grub_xnu_resume): Use relocators.
33450
29eb90c6
VS
334512009-12-13 Vladimir Serbinenko <phcoder@gmail.com>
33452
33453 * kern/i386/pc/startup.S (multiboot_entry): Setup stack before calling
33454 anything.
33455
31027430
CPE
334562009-12-13 Carles Pina i Estany <carles@pina.cat>
33457
33458 * script/execute.c (grub_script_execute_cmdline): Set grub_errno to
33459 GRUB_ERR_NONE before calling grub_env_set.
33460
dc0c71d9
RM
334612009-12-12 Robert Millan <rmh@aybabtu.com>
33462
33463 * gendistlist.sh (EXTRA_DISTFILES): Add `genvideolist.sh'.
33464 * genmk.rb (video): New variable.
33465 (CLEANFILES, VIDEOFILES): Add #{video}.
33466 (#{video}): New target rule.
33467 * genvideolist.sh: New file.
33468 * Makefile.in (pkglib_DATA): Add video.lst.
33469 (video.lst): New target rule.
33470 * util/grub-mkconfig.in: Initialize ${GRUB_VIDEO_BACKEND} using
33471 `video.lst'.
33472 * util/grub.d/30_os-prober.in: Replace `vbe' with
33473 ${GRUB_VIDEO_BACKEND}.
33474
2a4bfcf0
RM
334752009-12-11 Robert Millan <rmh.grub@aybabtu.com>
33476
33477 * THANKS: Add David Miller.
33478
2a3aa4d5
RM
334792009-12-11 Vladimir Serbinenko <phcoder@gmail.com>
33480
33481 libpciaccess support.
33482
33483 * Makefile.in (LIBPCIACCESS): New variable.
33484 (enable_grub_emu_pci): Likewise.
33485 * conf/any-emu.rmk (grub_emu_SOURCES) [enable_grub_emu_pci]: Add
33486 util/pci.c and commands/lspci.c.
33487 (grub_emu_LDFLAGS) [enable_grub_emu_pci]: Add $(LIBPCIACCESS).
33488 * configure.ac (grub-emu-pci): New option.
33489 * include/grub/i386/pci.h (grub_pci_device_map_range): New function.
33490 (grub_pci_device_unmap_range): Likewise.
33491 * include/grub/pci.h [GRUB_UTIL]: Include grub/pciutils.h.
33492 (grub_pci_device) [!GRUB_UTIL]: New structure. All users updated.
33493 (grub_pci_address_t) [!GRUB_UTIL]: New type.
33494 (grub_pci_device_t) [!GRUB_UTIL]: Likewise.
33495 (grub_pci_get_bus) [!GRUB_UTIL]: New function.
33496 (grub_pci_get_device) [!GRUB_UTIL]: Likewise.
33497 (grub_pci_get_function) [!GRUB_UTIL]: Likewise.
33498 * include/grub/pciutils.h: New file.
33499 * util/pci.c: Likewise.
33500
0ad46fd7 335012009-12-11 Felix Zielcke <fzielcke@z-51.de>
8d0502d9
FZ
33502
33503 * util/misc.c: Don't include <errno.h> twice.
33504
0ad46fd7 335052009-12-10 Felix Zielcke <fzielcke@z-51.de>
0d56ed64
FZ
33506
33507 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Show the disk
33508 name in an error message.
33509 (grub_biosdisk_rw): Likewise.
33510
2e59983c
VS
335112009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
33512
33513 Eliminate NTFS 4Gib barrier.
33514
33515 * fs/ntfs.c (read_attr): Use grub_disk_addr_t and grub_size_t.
33516 (read_run_data): Likewise.
33517 (grub_ntfs_read_run_list): Likewise.
33518 (grub_ntfs_read_block): Likewise.
33519 (grub_ntfs_iterate_dir): Likewise.
33520 (read_mft): Likewise.
33521 (read_data): Likewise.
33522 Use COM_LOG_LEN.
33523 * fs/ntfscomp.c (read_block): Cast ctx->target_vcn & 0xF to unsigned
33524 to avoid 64-bit division
33525 * include/grub/ntfs.h (COM_LOG_LEN): New definition.
33526 (grub_ntfs_rlst): Use grub_disk_addr_t.
33527
71ee178a
VS
335282009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
33529
33530 Eliminate grub-fstest 4Gib barrier.
33531
33532 * util/grub-fstest.c (skip, leng): Use grub_disk_addr_t.
33533 (read_file): Fix error reporting.
33534
2520d4b8
VS
335352009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
33536
33537 Eliminate hexdump 4Gib barrier.
33538
33539 * commands/hexdump.c (grub_cmd_hexdump): Use grub_disk_addr_t.
33540 * lib/arg.c (grub_arg_parse): Use grub_strtoull.
33541
e1f27065
VS
335422009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
33543
33544 * kern/device.c (grub_device_iterate): Ignore errors during first scan.
33545 Fixes amarsh bug.
33546
1a0f7f45
RM
335472009-12-09 Bruce Dubbs <bruce.dubbs@gmail.com>
33548
33549 Remove miscellaneous files in distclean target.
33550
33551 * Makefile.in: Remove docs/{grub.info,version.texi,stamp-vti}
33552
c631d9fb
CW
335532009-12-09 Colin Watson <cjwatson@ubuntu.com>
33554
33555 * util/grub-mkconfig_lib.in: Don't set grub_probe or grub_mkrelpath
33556 if they're already set. This resolves the conflict between my
33557 grub-install change on 2009-10-06 and Felix' change on 2009-11-11,
33558 fixing the --grub-probe option again.
33559 * util/sparc64/ieee1275/grub-install.in: Revert the last piece of my
33560 change on 2009-10-06, so that we now once again source
33561 `${libdir}/grub/grub-mkconfig_lib' after options have been parsed.
33562
7c7b6106
RM
335632009-12-08 Robert Millan <rmh.grub@aybabtu.com>
33564
33565 * conf/common.rmk [sparc64-ieee1275] (grub_mkdevicemap_SOURCES): Use
33566 `util/ieee1275/ofpath.c' and `util/ieee1275/devicemap.c' instead of
33567 `util/devicemap.c'.
33568
e3069ec1
CPE
335692009-12-08 Carles Pina i Estany <carles@pina.cat>
33570
33571 * include/grub/misc.h (grub_printf_): New declaration.
33572 * kern/misc.c (grub_printf_): New definition.
33573 * normal/main.c (grub_normal_reader_init): Use `grub_printf_' and `N_'
33574 instead of `grub_printf' and `_'.
33575 * normal/menu_entry.c (store_completion): Likewise.
33576 (run): Likewise.
33577 (grub_menu_entry_run): Likewise.
33578 * normal/menu_text.c (grub_wait_after_message): Likewise.
33579 (notify_booting): Likewise.
33580 (notify_fallback): Likewise.
33581 (notify_execution_failure): Likewise.
33582
d6ceebf1
CW
335832009-12-07 Colin Watson <cjwatson@ubuntu.com>
33584
33585 * configure.ac: Check for vasprintf.
33586 * util/misc.c (asprintf): Move allocation from here ...
33587 (vasprintf): ... to here. New function.
33588 (xasprintf): New function.
33589 * include/grub/util/misc.h (vasprintf, xasprintf): Add
33590 prototypes.
33591 * util/getroot.c (grub_util_get_grub_dev): Use xasprintf.
33592 * util/grub-mkfont.c (write_font): Likewise.
33593 * util/grub-probe.c (probe): Likewise.
33594 * util/hostdisk.c (make_device_name): Likewise.
33595
de6daa8b
DM
335962009-12-06 David S. Miller <davem@sunset.davemloft.net>
33597
33598 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Recognize
33599 anything even prefixed with 'cdrom' as a cdrom.
33600
0ad46fd7 336012009-12-06 Felix Zielcke <fzielcke@z-51.de>
df91e679
FZ
33602
33603 * util/misc.c (make_system_path_relative_to_its_root): Correctly cope with
33604 mount points.
33605
98d3dc02
CPE
336062009-12-05 Carles Pina i Estany <carles@pina.cat>
33607
33608 * gettext/gettext.c: Include `<grub/list.h>'. Define grub_gettext_msg,
33609 grub_gettext_msg_list.
33610 (grub_gettext_gettranslation_from_position): Return const char *
33611 and not char *.
a2c1332b 33612 (grub_gettext_translate): Add the translated strings into a list,
98d3dc02
CPE
33613 returns from the list if existing there.
33614 (grub_gettext_init_ext): Add \n at the end of grub_dprintf string.
33615 (grub_gettext_delete_list): Delete the list.
33616 (grub_gettext_env_write_lang): Call grub_gettext_delete_list when
33617 lang environment variable is changed.
33618 (GRUB_MOD_FINI): Call grub_gettext_delete_list.
33619
b283f108
VS
336202009-12-05 Vladimir Serbinenko <phcoder@gmail.com>
33621
33622 Rename kernel.mod to kernel.img.
33623
33624 * conf/i386-efi.rmk (pkglib_MODULES): Change kernel.mod to kernel.img.
33625 (kernel_mod_EXPORTS): Rename to ...
33626 (kernel_img_EXPORTS): ... this.
33627 (kernel_mod_SOURCES): Rename to ...
33628 (kernel_img_SOURCES): ... this.
33629 (kernel_mod_HEADERS): Rename to ...
33630 (kernel_img_HEADERS): ... this. All users updated.
33631 (kernel_mod_CFLAGS): Rename to ...
33632 (kernel_img_CFLAGS): ... this.
33633 (kernel_mod_ASFLAGS): Rename to ...
33634 (kernel_img_ASFLAGS): ... this.
33635 (kernel_mod_LDFLAGS): Rename to ...
33636 (kernel_img_LDFLAGS): ... this.
33637 * conf/x86_64-efi.rmk: Likewise.
33638 * util/i386/efi/grub-mkimage.c (read_kernel_module): Rename to ...
33639 (read_kernel_image): ... this. All users updated.
33640 (read_kernel_image): Read "kernel.img" instead of "kernel.mod".
33641
69055f8a
CPE
336422009-12-05 Carles Pina i Estany <carles@pina.cat>
33643
33644 * normal/menu_text.c (grub_color_menu_high): Gettexttize string.
33645 (print_spaces): New function.
33646 (grub_print_ucs4): New function.
33647 (getstringwidth): New function.
33648 (print_message_indented): New function.
33649 (print_message): Gettexttize strings using print_message_indented.
33650 (run_menu): Replaces grub_printf by print_spaces and dynamic terminal
33651 width.
33652 (get_entry_number): Gettextize and uses dynamic terminal width.
a2c1332b 33653 (notify_booting, notify_fallback, notify_execution_failure):
69055f8a
CPE
33654 Gettextize.
33655 * normal/menu_entry.c (store_completion): Cleanup the gettextized
33656 string.
33657 (run): Likewise.
33658 (grub_menu_entry_run): Likewise.
33659 * PO/POTFILES: Add normal/menu_entry.c.
33660
f616f51c
VS
336612009-12-05 Vladimir Serbinenko <phcoder@gmail.com>
33662
33663 * configure.ac (TARGET_ASFLAGS): Add "-D<MACHINE>".
33664
57bbe3be
CPE
336652009-12-05 Carles Pina i Estany <carles@pina.cat>
33666
33667 * util/grub-install.in: Install gettext .mo files.
33668 * util/grub-mkrescue.in (process_input_dir): Copy gettext .mo files.
33669
013d67a1
CPE
336702009-12-05 Carles Pina i Estany <carles@pina.cat>
33671
33672 * gettext/gettext.c (grub_gettext_init_ext): Replace grub_printf with
33673 grub_dprintf.
33674
fb954db0
RM
336752009-12-05 Robert Millan <rmh.grub@aybabtu.com>
33676
33677 * kern/ieee1275/openfw.c (grub_reboot): Disable for i386. The
33678 non-firmware-dependant one in realmode.S takes precedence.
33679
6b8474f8
RM
336802009-12-04 Robert Millan <rmh.grub@aybabtu.com>
33681
33682 * commands/halt.c: Replace misc arch-specific headers with
33683 `<grub/misc.h>'.
33684 * commands/reboot.c: Likewise.
33685 * commands/i386/pc/halt.c: Replace `<grub/machine/init.h>' with
33686 `<grub/misc.h>'.
33687 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Remove `cpu/reboot.h'.
33688 (halt_mod_SOURCES): Move `kern/i386/halt.c' from here ...
33689 (kernel_img_SOURCES): ... to here.
33690
33691 * include/grub/efi/efi.h (grub_reboot, grub_halt): Remove prototypes.
33692 * include/grub/i386/pc/init.h: Likewise.
33693 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
33694 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
33695
33696 * include/grub/misc.h (grub_reboot, grub_halt): New prototypes.
33697
33698 * include/grub/i386/halt.h: Remove.
33699 * include/grub/i386/reboot.h: Likewise.
33700
33701 * kern/i386/halt.c: Remove `<grub/cpu/halt.h>'.
33702
4b2e6ca2
DM
337032009-12-03 David S. Miller <davem@sunset.davemloft.net>
33704
33705 * conf/sparc64-ieee1275.rmk (grub_mkimage_SOURCES,
33706 grub_setup_SOURCES, grub_ofpathname_SOURCES): Add gnulib/progname.c
33707 * util/sparc64/ieee1275/grub-mkimage.c: Include <grub/i18n.h> and
33708 "progname.h"
33709 * util/sparc64/ieee1275/grub-ofpathname.c: Likewise.
33710 * util/sparc64/ieee1275/grub-setup.c: Likewise.
33711 (usage): Add missing comma in printf.
33712
5239348f
RM
337132009-12-02 Robert Millan <rmh.grub@aybabtu.com>
33714
33715 Use the same reboot approach on i386 coreboot and qemu as we do on
33716 BIOS.
33717
33718 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add `cpu/reboot.h'.
33719 (reboot_mod_SOURCES): Remove `kern/i386/reboot.c'.
33720 * kern/i386/reboot.c: Remove.
33721 * include/grub/i386/reboot.h (grub_reboot): Export function.
33722 * kern/i386/pc/startup.S (grub_reboot): Move from here ...
33723 * kern/i386/realmode.S (grub_reboot): ... to here. Jump to
33724 0xf000:0xfff0 instead of 0xffff:0x0000.
33725 [!GRUB_MACHINE_PCBIOS] (prot_to_real): Do not restore interrupts.
33726 * kern/i386/qemu/startup.S: Include `"../realmode.S"'.
33727
ef34cbd4
RM
337282009-11-30 Robert Millan <rmh.grub@aybabtu.com>
33729
33730 Fix $srcdir != $objdir build.
33731
33732 * Makefile.in (po/%.po): Rewrite as ...
33733 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po)): ... this.
33734
dc9837ea
ST
337352009-11-29 Samuel Thibault <samuel.thibault@ens-lyon.org>
33736
33737 Fix GNU/Hurd grub-install crash.
33738 * util/grub-probe.c (probe): Try to access `path' only when it is not
33739 NULL.
33740
2f857f98
VS
337412009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
33742
33743 Correct module naming.
33744
33745 * video/efi_uga.c (GRUB_MOD_INIT(efi_fb)): Renamed from this ...
33746 (GRUB_MOD_INIT(efi_uga)): ... to this
33747 (GRUB_MOD_FINI(efi_fb)): Renamed from this ...
33748 (GRUB_MOD_FINI(efi_uga)): ... to this
33749 * video/efi_gop.c (GRUB_MOD_INIT(efi_fb)): Renamed from this ...
33750 (GRUB_MOD_INIT(efi_gop)): ... to this
33751 (GRUB_MOD_FINI(efi_fb)): Renamed from this ...
33752 (GRUB_MOD_FINI(efi_gop)): ... to this
33753
c5448046
RM
337542009-11-28 Robert Millan <rmh.grub@aybabtu.com>
33755
33756 * util/mkisofs/mkisofs.c (ld_options): Mark all `arg' strings as
33757 translatable.
33758 (usage): Translate `arg' strings using gettext().
33759 Thanks to Jordi Mallach for the suggestion.
33760
c85184ad
VS
337612009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
33762
33763 GOP support. Based on patch from Bean
33764 (http://lists.gnu.org/archive/html/grub-devel/2009-08/msg00384.html)
33765
33766 * video/efi_gop.c: New file.
33767 * include/grub/efi/graphics_output.h: Likewise.
33768 * conf/i386-efi.rmk (pkglib_MODULES): Add `efi_gop.mod'.
33769 (efi_fb_mod_SOURCES, efi_fb_mod_CFLAGS, efi_fb_mod_LDFLAGS): New
33770 variables.
33771 * conf/x86_64-efi.rmk: Likewise.
33772
8a4c48d8
VS
337732009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
33774
33775 Rename efi_fb to efi_uga.
33776
33777 * conf/i386-efi.rmk (pkglib_MODULES): Rename 'efi_fb.mod' to
33778 'efi_uga.mod'.
33779 (efi_fb_mod_SOURCES): Rename this ...
33780 (efi_uga_mod_SOURCES): ... to this.
33781 (efi_fb_mod_CFLAGS): Rename this ...
33782 (efi_uga_mod_CFLAGS): ... to this.
33783 (efi_fb_mod_LDFLAGS): Rename this ...
33784 (efi_uga_mod_LDFLAGS): ... to this.
33785 * conf/x86_64-efi.rmk (pkglib_MODULES): Rename 'efi_fb.mod' to
33786 'efi_uga.mod'.
33787 (efi_fb_mod_SOURCES): Rename this ...
33788 (efi_uga_mod_SOURCES): ... to this.
33789 (efi_fb_mod_CFLAGS): Rename this ...
33790 (efi_uga_mod_CFLAGS): ... to this.
33791 (efi_fb_mod_LDFLAGS): Rename this ...
33792 (efi_uga_mod_LDFLAGS): ... to this.
33793 * video/efi_fb.c: Move this ...
33794 * video/efi_uga.c: ... to this. Change prefix to 'grub_video_uga_'.
33795
fb6c1a7b
RM
337962009-11-27 Robert Millan <rmh.grub@aybabtu.com>
33797
33798 * po/README: New file. Explain our PO file workflow.
33799
3bc7896c
RM
338002009-11-27 Robert Millan <rmh.grub@aybabtu.com>
33801
33802 * po/ChangeLog: Remove. Move relevant entries back to ...
33803 * ChangeLog: ... here.
33804 * po/ca.po: Remove (now handled by TLP).
33805 * po/id.po: Likewise.
33806 * po/zh_CN.po: Likewise.
33807 * Makefile.in (LINGUAS): Initialize in a way that supports
33808 empty set.
33809
9ed4841d
RM
338102009-11-27 Robert Millan <rmh.grub@aybabtu.com>
33811
33812 * Makefile.in (LINGUAS): Rewrite by scanning po/ directory instead of
33813 reliing on po/LINGUAS.
33814 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po)): Rewrite as ...
33815 (po/%.po): ... this.
33816
0ad46fd7 338172009-11-26 Felix Zielcke <fzielcke@z-51.de>
242668a2
FZ
33818
33819 * util/i386/efi/grub-mkimage.c: Include "progname.h".
33820 (main): Use `program_name' instead of nonexistent `progname'.
33821
e30dd392
FZ
338222009-11-26 Felix Zielcke <fzielcke@z-51.de>
33823
33824 * conf/i386-efi.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
33825 * conf/x86_64-efi.rmk (grub_mkimage_SOURCES): Likewise.
33826
7656de4f
RM
338272009-11-26 Robert Millan <rmh.grub@aybabtu.com>
33828
33829 * conf/i386-coreboot.rmk: Cleanup stale filenames from my previous
33830 commit.
33831 * conf/i386-efi.rmk: Likewise.
33832 * conf/i386-ieee1275.rmk: Likewise.
33833 * conf/powerpc-ieee1275.rmk: Likewise.
33834 * conf/sparc64-ieee1275.rmk: Likewise.
33835 * conf/x86_64-efi.rmk: Likewise.
33836
db77c4d4
FZ
338372009-11-26 Felix Zielcke <fzielcke@z-51.de>
33838
33839 * conf/any-emu.rmk (grub_emu_SOURCES): Add `gnulib/progname.c'.
33840
a755bb04
FZ
338412009-11-26 Felix Zielcke <fzielcke@z-51.de>
33842
33843 * conf/any-emu.rmk (grub_mkfont_SOURCES): Add `gnulib/progname.c'.
33844
8a4c07fd
RM
338452009-11-26 Robert Millan <rmh.grub@aybabtu.com>
33846
33847 * conf/common.rmk (sbin_UTILITIES): Add `grub-mkdevicemap'.
33848 (grub_mkdevicemap_SOURCES): New variable.
33849 (grub_probe_SOURCES, grub_fstest_SOURCES, grub_mkfont_SOURCES)
33850 (grub_mkrelpath_SOURCES, grub_editenv_SOURCES)
33851 (grub_pe2elf_SOURCES): Add `gnulib/progname.c'.
33852 * conf/i386-coreboot.rmk (sbin_UTILITIES): Remove `grub-mkdevicemap'.
33853 (grub_mkdevicemap_SOURCES): Remove.
33854 * conf/i386-efi.rmk: Likewise.
33855 * conf/i386-ieee1275.rmk: Likewise.
33856 * conf/i386-pc.rmk: Likewise.
33857 * conf/powerpc-ieee1275.rmk: Likewise.
33858 * conf/sparc64-ieee1275.rmk: Likewise.
33859 * conf/x86_64-efi.rmk: Likewise.
33860 * util/elf/grub-mkimage.c: Include `<grub/i18n.h>' and `"progname.h"'.
33861 (usage): Fix strings to use `program_name'.
33862 (main): Initialize gettext.
33863 * util/grub-editenv.c: Likewise.
33864 * util/grub-emu.c: Likewise.
33865 * util/grub-fstest.c: Likewise.
33866 * util/grub-mkdevicemap.c: Likewise.
33867 * util/grub-mkfont.c: Likewise.
33868 * util/grub-mkrelpath.c: Likewise.
33869 * util/grub-pe2elf.c: Likewise.
33870 * util/grub-probe.c: Likewise.
33871 * util/sparc64/ieee1275/grub-mkimage.c: Likewise.
33872 * util/sparc64/ieee1275/grub-ofpathname.c: Likewise.
33873 * util/sparc64/ieee1275/grub-setup.c: Likewise.
33874
33875 * util/misc.c: Include `"progname.h"'.
33876 (progname): Remove variable.
33877 (grub_util_warn, grub_util_info, grub_util_error): Use `program_name'.
33878
6f61ed55
FZ
338792009-11-25 Felix Zielcke <fzielcke@z-51.de>
33880
33881 * util/grub.d/10_linux.in (linux_entry): Quote the arguments to
33882 printf and print a newline after the menuentry header line.
33883 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
33884
f022876b
FZ
338852009-11-25 Felix Zielcke <fzielcke@z-51.de>
33886
33887 autoconf >= 2.60 support $(localedir).
33888
33889 * INSTALL: Note that autoconf 2.60 is required.
33890 * configure.ac (AC_PREREQ): Bump to 2.60.
33891 * util/grub.d/10_kfreebsd.in (TEXTDOMAINDIR): Set to lowercased @localedir@.
33892 * util/grub.d/10_linux.in (TEXTDOMAINDIR): Likewise.
33893
6717926e
YB
338942009-11-25 Yves Blusseau <yves.blusseau@zetam.org>
33895
33896 * configure.ac: move the call to AM_GNU_GETTEXT to avoid warnings when
33897 aclocal is run.
33898
08806a54
RM
338992009-11-25 Robert Millan <rmh.grub@aybabtu.com>
33900
33901 * normal/main.c (grub_normal_read_line): Fix off-by-one
33902 buffer overflow.
33903
13b33fba
RM
339042009-11-25 Robert Millan <rmh.grub@aybabtu.com>
33905
33906 * normal/main.c (grub_normal_execute): Replace "parser.sh" with
33907 "parser.grub" in grub_command_execute() call.
33908
4a8572e9
CPE
339092009-11-24 Carles Pina i Estany <carles@pina.cat>
33910
33911 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add i18n.h.
33912 * conf/i386-efi.rmk: Likewise.
33913 * conf/i386-ieee1275.rmk: Likewise.
33914 * conf/i386-pc.rmk: Likewise.
33915 * conf/powerpc-ieee1275.rmk: Likewise.
33916 * conf/sparc64-ieee1275.rmk: Likewise.
33917 * conf/x86_64-efi.rmk: Likewise.
33918 * gettext/gettex.c: Include <grub/i18n.h>.
33919 * include/grub/misc.h (grub_gettext_dummy, grub_gettext): Move from
33920 here ...
33921 * include/grub/i18n.h: ... to here
33922 * include/grub/i18n.h: ... to here.
33923 * kern/misc.c: Include <grub/i18n.h>
a2c1332b 33924 (grub_gettext_dummy): Move above user.
4a8572e9 33925
bee48093
FZ
339262009-11-24 Felix Zielcke <fzielcke@z-51.de>
33927
33928 * util/Makefile.in (install-local): Convert a `for' into a normal
33929 shell expansion.
33930
a031e91c
RM
339312009-11-24 Robert Millan <rmh.grub@aybabtu.com>
33932
33933 * autogen.sh: Add automake call.
33934 * config.guess: Remove.
33935 * config.sub: Likewise.
33936 * install-sh: Likewise.
33937
26bec39d
FZ
339382009-11-24 Felix Zielcke <fzielcke@z-51.de>
33939
33940 * util/Makefile.in (install-local): Fix the use of $lang shell variable.
33941
8e2532fd
FZ
339422009-11-24 Felix Zielcke <fzielcke@z-51.de>
33943
33944 * util/Makefile.in (install-local): Convert a make `$(foreach)'
33945 function to a normal shell `for'.
33946
fefa1b7d
FZ
339472009-11-24 Felix Zielcke <fzielcke@z-51.de>
33948
33949 * conf/i386-coreboot.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
33950
4501250b
FZ
339512009-11-24 Felix Zielcke <fzielcke@z-51.de>
33952
33953 * util/grub-mkrelpath.c: New file.
33954 * conf/common.rmk (bin_UTILITIES): Add grub-mkrelpath.
33955 (grub_mkrelpath_SOURCES): New variable.
33956 * include/grub/util/misc.h: New function prototype.
33957 * util/misc.c (make_system_path_relative_to_its_root): New function.
33958
33959 * util/grub-mkconfig_lib.in (bindir): New variable.
33960 (grub_mkrelpath): Likewise.
33961 (make_system_path_relative_to_its_root): Use grub-mkrelpath.
33962
33963 * util/probe.c (probe): Make the file path relative to its root.
33964 Change a info message to use the GRUB path. Enable again the
33965 check if we can read the file with GRUB facilities.
33966
33967 * util/i386/pc/grub-setup.c (setup): Make core.img path relative
33968 to its root.
33969
11d9778b
FZ
339702009-11-24 Felix Zielcke <fzielcke@z-51.de>
33971
33972 * Makefile.in: Don't include GRUB_CONTRIB makefiles with emu
33973 platform.
33974
4465287d
FZ
339752009-11-24 Felix Zielcke <fzielcke@z-51.de>
33976
33977 * util/getroot.c (grub_util_get_dev_abstraction): Properly use
33978 strncmp().
33979
62b47f22
FZ
339802009-11-24 Felix Zielcke <fzielcke@z-51.de>
33981
33982 * util/getroot.c (grub_util_is_dmraid): New function.
33983 (grub_util_get_dev_abstraction): Treat dmraid and multipath
33984 devices as normal ones, not as LVM.
33985
1eafb9b9 339862009-11-23 Carles Pina i Estany <carles@pina.cat>
c3ea6bd4
CPE
33987
33988 * conf/common.rmk: Add grub-gettext_lib target and updates
33989 lib_DATA and CLEANFILES. Adds gettext.mod SOURCES, CFLAGS,
33990 LDFLAGS.
33991 * gettext/gettext.c: New file. (Reads mo files).
33992 * include/grub/file.h (grub_file_pread): New prototype.
33993 * include/grub/i18n.h (_): New prototype.
33994 * include/grub/misc.h (grub_gettext_dummy, grub_gettext): New
33995 prototypes.
33996 * kern/misc.c (grub_gettext_dummy): New function.
33997 * normal/menu_text.c: Include <grub/i18n.h>.
33998 * normal/menu_text.c (print_timeout): Gettexttize string.
33999 * normal/menu_text.c (print_message): Gettexttize string.
3bc7896c
RM
34000 * po/POTFILES: Add `normal/menu_text.c'.
34001 * po/ca.po: Add new translations.
c3ea6bd4
CPE
34002 * util/grub.d/00_header.in: Define locale_dir and lang. insmod
34003 gettext module and defines locale_dir and lang in grub.cfg.
34004 * NEWS: Add gettext support.
34005
0fdb2568
RM
340062009-11-23 Robert Millan <rmh.grub@aybabtu.com>
34007
34008 * util/hostdisk.c: Include `<grub/i18n.h>'.
34009 (find_grub_drive): Use ARRAY_SIZE for map size calculation.
34010 (make_device_name): Rewrite using asprintf.
34011 (convert_system_partition_to_system_disk): Replace 0 with NULL.
34012 (find_system_device): If a device is not found, generate one just
34013 by reusing the OS path name.
34014 (read_device_map): Make it permissible for device.map not to exist.
34015
f515aa62
RM
340162009-11-23 Robert Millan <rmh.grub@aybabtu.com>
34017
34018 * script/sh/execute.c: Move from here ...
34019 * script/execute.c: ... to here. Update all users.
34020 * script/sh/function.c: Move from here ...
34021 * script/function.c: ... to here. Update all users.
34022 * script/sh/lexer.c: Move from here ...
34023 * script/lexer.c: ... to here. Update all users.
34024 * script/sh/main.c: Move from here ...
34025 * script/main.c: ... to here. Update all users.
34026 * script/sh/parser.y: Move from here ...
34027 * script/parser.y: ... to here. Update all users.
34028 * script/sh/script.c: Move from here ...
34029 * script/script.c: ... to here. Update all users.
34030
f84b481b
RM
340312009-11-23 Robert Millan <rmh.grub@aybabtu.com>
34032
34033 * configure.ac: Detect all `emu' platforms. Define
34034 GRUB_MACHINE_* macros in TARGET_CFLAGS. Remove
34035 --enable-grub-emu logic. Disable include/grub/machine
34036 symlink on `emu' platforms.
34037
34038 * genkernsyms.sh.in: Use @TARGET_CFLAGS@ during symbol generation.
34039 * gensymlist.sh.in: Likewise.
34040
34041 * include/grub/i386/coreboot/machine.h: Remove file.
34042 * include/grub/i386/efi/machine.h: Likewise.
34043 * include/grub/i386/ieee1275/machine.h: Likewise.
34044 * include/grub/i386/pc/machine.h: Likewise.
34045 * include/grub/i386/qemu/machine.h: Likewise.
34046 * include/grub/powerpc/ieee1275/machine.h: Likewise.
34047 * include/grub/sparc64/ieee1275/machine.h: Likewise.
34048 * include/grub/x86_64/efi/machine.h: Likewise.
34049
34050 * commands/acpi.c: Remove `<grub/machine/machine.h>'.
34051 * commands/halt.c: Likewise.
34052 * commands/reboot.c: Likewise.
34053 * include/grub/autoefi.h: Likewise.
34054 * include/grub/i386/at_keyboard.h: Likewise.
34055 * include/grub/i386/kernel.h: Likewise.
34056 * include/grub/i386/loader.h: Likewise.
34057 * include/grub/i386/pc/memory.h: Likewise.
34058 * kern/dl.c: Likewise.
34059 * kern/i386/coreboot/init.c: Likewise.
34060 * loader/i386/bsd.c: Likewise.
34061 * loader/i386/linux.c: Likewise.
34062 * loader/multiboot_loader.c: Likewise.
34063 * term/i386/pc/serial.c: Likewise.
34064 * term/usb_keyboard.c: Likewise.
34065
34066 * include/grub/time.h [!GRUB_MACHINE_EMU]: Remove
34067 `<grub/machine/machine.h>'
34068 [!GRUB_MACHINE_EMU] (GRUB_TICKS_PER_SECOND): New macro.
34069 * util/misc.c: Remove `<grub/machine/machine.h>' and
34070 `<grub/machine/time.h>'.
34071
34072 * Makefile.in (enable_grub_emu): Remove variable.
34073 Include $(srcdir)/conf/any-emu.mk for the `emu' platform.
34074
34075 * conf/any-emu.rmk: New file.
34076 * conf/common.rmk (grub_emu_init.lst, grub_emu_init.h)
34077 (grub_emu_init.c): Move from here ...
34078 * conf/any-emu.rmk: ... to here.
34079
34080 * conf/i386-coreboot.rmk (sbin_UTILITIES): Remove `grub-emu'.
34081 (grub_emu_SOURCES, grub_emu_LDFLAGS): Move from here ...
34082 * conf/any-emu.rmk: ... to here.
34083
4efeab03
RM
340842009-11-23 Robert Millan <rmh.grub@aybabtu.com>
34085
34086 * include/grub/parser.h (grub_parser_register): Document need
34087 of `name' parameter.
34088 * normal/main.c (grub_normal_read_line): Simplify prompt string.
34089 * script/sh/main.c (grub_sh_parser, GRUB_MOD_INIT(sh)): Rename
34090 "sh" to "grub".
34091
ea1dd8bf
RM
340922009-11-23 Robert Millan <rmh.grub@aybabtu.com>
34093
34094 * Makefile.in ($(srcdir)/po/$(PACKAGE).pot): Pass --keyword=N_ to
34095 `$(XGETTEXT)'.
34096 * include/grub/i18n.h (N_): New macro.
34097 * util/mkisofs/mkisofs.h: Likewise.
34098 * util/mkisofs/mkisofs.c (ld_options): Wrap all translatable strings
34099 around N_().
34100 (usage): Use gettext() to translate help strings when printing them.
34101
0c140626
RM
341022009-11-23 Robert Millan <rmh.grub@aybabtu.com>
34103
34104 Based on patch from Bean
34105 (http://lists.gnu.org/archive/html/grub-devel/2009-08/msg00384.html)
34106
34107 * video/efi_fb.c: New file.
34108 * conf/i386-efi.rmk (pkglib_MODULES): Add `efi_fb.mod'.
34109 (efi_fb_mod_SOURCES, efi_fb_mod_CFLAGS, efi_fb_mod_LDFLAGS): New
34110 variables.
34111 * conf/x86_64-efi.rmk: Likewise.
34112
87d58298
RM
341132009-11-22 Robert Millan <rmh.grub@aybabtu.com>
34114
34115 * util/i386/pc/grub-mkimage.c: Ungettextize grub_util_info() strings.
34116 * util/i386/pc/grub-setup.c: Likewise.
34117
994cc3a3
ST
341182009-11-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
34119
34120 * util/getroot.c [__GNU__]: Include <hurd.h>, <hurd/lookup.h>, and
34121 <hurd/fs.h>
34122 [__GNU__] (grub_guess_root_device): Call file_name_lookup and
34123 file_get_storage_info to implement grub_guess_root_device.
34124
26a61d6a
FZ
341252009-11-21 Felix Zielcke <fzielcke@z-51.de>
34126
34127 * Makefile.in (target): Use make's builtin $(shell) function
34128 instead of calling directly $(SHELL) to create the locale directories,
34129 inside the $(foreach) function.
34130
74ff1dd5
FZ
341312009-11-21 Felix Zielcke <fzielcke@z-51.de>
34132
34133 * util/grub-mkrescue.in: Print an error and usage if output option
34134 has not been given.
34135
0b787d0e
FZ
341362009-11-21 Felix Zielcke <fzielcke@z-51.de>
34137
34138 Patch from Loïc Minier <loic.minier@ubuntu.com>.
34139 * util/grub.d/30_os-prober.in: Cope with Linux entries where
34140 root and /boot are on different devices.
34141
1164b270
RM
341422009-11-21 Robert Millan <rmh.grub@aybabtu.com>
34143
34144 Fix build for srcdir != objdir.
34145
34146 * Makefile.in (po/$(PACKAGE).pot): Rename to ...
34147 ($(srcdir)/po/$(PACKAGE).pot): ... this. Run $(XGETTEXT) from
34148 $(srcdir).
34149 ($(foreach lang, $(LINGUAS), po/$(lang).po)): Rename to ...
34150 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po): ... this. Use $^
34151 reference for input.
34152
13774a2f
RM
341532009-11-21 Robert Millan <rmh.grub@aybabtu.com>
34154
34155 * util/grub-mkrescue.in: Use source directory direcly (without copiing
34156 or hardlinking it). Remove -J option, Joliet is not compatible with
34157 multiple source directories.
34158
efda854e
RM
341592009-11-21 Carles Pina i Estany <carles@pina.cat>
341602009-11-21 Robert Millan <rmh.grub@aybabtu.com>
34161
34162 * util/grub-mkrescue.in: Recognize `--override-directory' option.
34163 (process_input_dir): New function. Process an arbitrary input
34164 directory.
34165 Misc adjustments to support both "override mode" and system-wide mode.
34166
6c09890c
FZ
341672009-11-20 Felix Zielcke <fzielcke@z-51.de>
34168
34169 * configure.ac (UNIFONT_BDF): Rename to ...
34170 (FONT_SOURCE): ... this. Update all users.
34171
a797824f
FZ
341722009-11-20 Felix Zielcke <fzielcke@z-51.de>
34173
34174 * configure.ac: Add `/usr/share/fonts/X11/misc/unifont.pcf.gz'
34175 to the list of unifont files to look for.
34176
cd4f42b0
RM
341772009-11-19 Robert Millan <rmh.grub@aybabtu.com>
34178
34179 Patch from Joe Auricchio <jauricchio@gmail.com>
34180 * commands/minicmd.c (grub_mini_cmd_clear): New function.
34181 (GRUB_MOD_INIT(minicmd)): Register grub_mini_cmd_clear().
34182 (GRUB_MOD_FINI(minicmd)): Unregister grub_mini_cmd_clear().
34183
393c783d
FZ
341842009-11-19 Felix Zielcke <fzielcke@z-51.de>
34185
34186 * Makefile.in (install-local): Add a missing backslash.
34187
b2f1e327
FZ
341882009-11-19 Felix Zielcke <fzielcke@z-51.de>
34189
34190 * include/grub/x86_64/io.h: New file.
34191
f577f7a0
RM
341922009-11-19 Robert Millan <rmh.grub@aybabtu.com>
34193
34194 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `gnulib/progname.c'.
34195 * util/i386/pc/grub-setup.c: Include `<grub/i18n.h>'.
34196 Include `"progname.h"'.
34197 (main): Initialize gettext.
34198 * util/i386/pc/grub-setup.c: Gettexttize.
34199 * util/i386/pc/grub-mkimage.c: Likewise.
34200
34201 * Makefile.in (po/*.po): Redefine as ...
34202 ($(foreach lang, $(LINGUAS), po/$(lang).po)): ... this.
34203
3bc7896c
RM
34204 * po/POTFILES: Add `util/i386/pc/grub-setup.c'.
34205
c37943b6
RM
342062009-11-19 Robert Millan <rmh.grub@aybabtu.com>
34207
34208 * conf/common.rmk (grub_mkisofs_SOURCES): Add `gnulib/progname.c'.
34209 * util/mkisofs/mkisofs.c: Include `"progname.h"'.
34210 (program_name): Remove.
34211 (main): Initialize gettext support.
6323f705
RM
34212 * util/mkisofs/mkisofs.h: Include `<locale.h>'.
34213 Include `<libintl.h>'.
34214 (_): New macro.
c37943b6
RM
34215
34216 * util/mkisofs/eltorito.c: Gettexttize.
34217 * util/mkisofs/joliet.c: Likewise.
34218 * util/mkisofs/mkisofs.c: Likewise.
c37943b6
RM
34219 * util/mkisofs/multi.c: Likewise.
34220 * util/mkisofs/rock.c: Likewise.
34221 * util/mkisofs/tree.c: Likewise.
34222 * util/mkisofs/write.c: Likewise.
34223
3bc7896c
RM
34224 * po/POTFILES: Update with new files.
34225
5ce77c6e
RM
342262009-11-18 Robert Millan <rmh.grub@aybabtu.com>
34227
34228 * util/mkisofs/eltorito.c: Fix minor mistake in license text.
34229 * util/mkisofs/iso9660.h: Likewise.
34230 * util/mkisofs/joliet.c: Likewise.
34231 * util/mkisofs/mkisofs.c: Likewise.
34232 * util/mkisofs/mkisofs.h: Likewise.
34233 * util/mkisofs/rock.c: Likewise.
34234 * util/mkisofs/tree.c: Likewise.
34235 * util/mkisofs/write.c: Likewise.
34236
34237 * util/mkisofs/eltorito.c (rcsid): Remove.
34238 * util/mkisofs/hash.c: Likewise.
34239 * util/mkisofs/joliet.c: Likewise.
34240 * util/mkisofs/name.c: Likewise.
34241 * util/mkisofs/rock.c: Likewise.
34242 * util/mkisofs/tree.c: Likewise.
34243 * util/mkisofs/write.c: Likewise.
34244
1dabbc77
RM
342452009-11-18 Robert Millan <rmh.grub@aybabtu.com>
34246
34247 * util/mkisofs/match.c: Rewrite from scratch, using a linked list
34248 instead of static allocation.
34249 * util/mkisofs/match.h: Likewise.
34250
633877cb
RM
342512009-11-18 Robert Millan <rmh.grub@aybabtu.com>
34252
3bc7896c
RM
34253 * po/POTFILES-shell: New file. List `util/grub.d/10_kfreebsd.in'
34254 and `util/grub.d/10_linux.in'.
633877cb
RM
34255 * Makefile.in (po/$(PACKAGE).pot): Process `po/POTFILES-shell' for
34256 translatable Shell files.
34257
af1c0c85
RM
342582009-11-18 Robert Millan <rmh.grub@aybabtu.com>
34259
34260 * Makefile.in ($(srcdir)/aclocal.m4): New target.
34261
769ae37b
RM
342622009-11-17 Robert Millan <rmh.grub@aybabtu.com>
34263
34264 * INSTALL: Document Automake is needed for bootstrap.
3bc7896c 34265 * po/ca.po: Fix PO-Revision-Date and Language-Team fields.
769ae37b
RM
34266 * util/grub.d/10_kfreebsd.in (bindir): New variable.
34267 Add gettext initialization.
34268 (kfreebsd_entry): Make menuentry output translatable.
34269
342702009-11-17 Robert Millan <rmh.grub@aybabtu.com>
34271
34272 * Makefile.in (XGETTEXT, MSGMERGE, MSGFMT): New variables.
34273 (po/$(PACKAGE).pot): Replace `xgettext' with `$(XGETTEXT)'.
34274 (po/*.po): Replace `msgmerge' with `$(MSGMERGE)'.
34275 (po/%.mo): Replace `msgfmt' with `$(MSGFMT)'.
34276 (LINGUAS): Auto-generate using `po/LINGUAS'.
3bc7896c 34277 * po/LINGUAS: New file.
769ae37b
RM
34278
342792009-11-17 Robert Millan <rmh.grub@aybabtu.com>
34280
34281 * configure.ac: Call AM_GNU_GETTEXT() (defines localedir, among
34282 other things).
34283 * Makefile.in (CPPFLAGS): Add `-DLOCALEDIR=\"$(localedir)\"'.
34284 * util/i386/pc/grub-mkimage.c (main): Issue setlocale() and
34285 bindtextdomain() calls for gettext initialization.
34286
342872009-11-17 Robert Millan <rmh.grub@aybabtu.com>
34288
34289 * gnulib/progname.c: New file (imported from Gnulib).
34290 * gnulib/progname.h: Likewise.
34291 * conf/i386-pc.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
34292 * util/i386/pc/grub-mkimage.c: Include `"progname.h"'.
34293 (usage): Replace `progname' with `program_name'.
34294 (main): Use set_program_name() for program name initialization.
34295
342962009-11-17 Robert Millan <rmh.grub@aybabtu.com>
34297
34298 * conf/common.rmk (grub_mkisofs_CFLAGS): Move `-I$(srcdir)/gnulib'
34299 from here ...
34300 * Makefile.in (CPPFLAGS): ... to here.
34301
343022009-11-16 Robert Millan <rmh.grub@aybabtu.com>
34303
34304 * aclocal.m4: Move from here ...
34305 * acinclude.m4: ... to here.
34306 * autogen.sh: Add call to `aclocal'.
34307 * configure.ac: Add AM_INIT_AUTOMAKE() after AC_INIT() call.
34308
343092009-11-16 Robert Millan <rmh.grub@aybabtu.com>
34310
34311 * Makefile.in (CLEANFILES): Add `po/*.mo'.
34312 (LINGUAS): New variable.
34313 (all-local): Add `$(foreach lang, $(LINGUAS), po/$(lang).mo)'.
34314 (install-local): Install MO files.
34315 (po/$(PACKAGE).pot, po/*.po, po/%.mo): New rules.
34316 * include/grub/i18n.h: New file.
3bc7896c
RM
34317 * po/POTFILES: New file.
34318 * po/ca.po: New file.
769ae37b
RM
34319 * util/grub.d/10_linux.in (bindir): New variable.
34320 Add gettext initialization.
34321 (linux_entry): Make menuentry output translatable.
34322 * util/i386/pc/grub-mkimage.c: Include `<grub/i18n.h>'.
34323 (usage): Make --help output translatable.
34324 (main): Initialize gettext.
34325
02c0a6ad
RM
343262009-11-17 Robert Millan <rmh.grub@aybabtu.com>
34327
34328 * import_gcry.py: New file (written by Vladimir with minor
34329 adjustments).
34330 * autogen.sh: Use import_gcry.py to auto-generate GRUB-ified
34331 ciphers.
34332 * INSTALL: Document that Python is required for bootstrap.
34333
343342009-11-17 Robert Millan <rmh.grub@aybabtu.com>
34335
34336 Import ciphers from libgcrypt 1.4.4.
34337
34338 * lib/libgcrypt/cipher/ChangeLog
34339 * lib/libgcrypt/cipher/ac.c
34340 * lib/libgcrypt/cipher/arcfour.c
34341 * lib/libgcrypt/cipher/bithelp.h
34342 * lib/libgcrypt/cipher/blowfish.c
34343 * lib/libgcrypt/cipher/camellia-glue.c
34344 * lib/libgcrypt/cipher/camellia.c
34345 * lib/libgcrypt/cipher/camellia.h
34346 * lib/libgcrypt/cipher/cast5.c
34347 * lib/libgcrypt/cipher/cipher.c
34348 * lib/libgcrypt/cipher/crc.c
34349 * lib/libgcrypt/cipher/des.c
34350 * lib/libgcrypt/cipher/dsa.c
34351 * lib/libgcrypt/cipher/ecc.c
34352 * lib/libgcrypt/cipher/elgamal.c
34353 * lib/libgcrypt/cipher/hash-common.c
34354 * lib/libgcrypt/cipher/hash-common.h
34355 * lib/libgcrypt/cipher/hmac-tests.c
34356 * lib/libgcrypt/cipher/md.c
34357 * lib/libgcrypt/cipher/md4.c
34358 * lib/libgcrypt/cipher/md5.c
34359 * lib/libgcrypt/cipher/primegen.c
34360 * lib/libgcrypt/cipher/pubkey.c
34361 * lib/libgcrypt/cipher/rfc2268.c
34362 * lib/libgcrypt/cipher/rijndael-tables.h
34363 * lib/libgcrypt/cipher/rijndael.c
34364 * lib/libgcrypt/cipher/rmd.h
34365 * lib/libgcrypt/cipher/rmd160.c
34366 * lib/libgcrypt/cipher/rsa.c
34367 * lib/libgcrypt/cipher/seed.c
34368 * lib/libgcrypt/cipher/serpent.c
34369 * lib/libgcrypt/cipher/sha1.c
34370 * lib/libgcrypt/cipher/sha256.c
34371 * lib/libgcrypt/cipher/sha512.c
34372 * lib/libgcrypt/cipher/tiger.c
34373 * lib/libgcrypt/cipher/twofish.c
34374 * lib/libgcrypt/cipher/whirlpool.c
34375
af2f93ac
RM
343762009-11-16 Robert Millan <rmh.grub@aybabtu.com>
34377
34378 Fix build for systems without error().
34379
34380 * gnulib/error.c: New file (imported from Gnulib).
34381 * gnulib/error.h: Likewise.
34382 * conf/common.rmk (grub_mkisofs_SOURCES): Add `gnulib/error.c'.
34383 * util/mkisofs/mkisofs.c (program_name): Remove `static' qualifier
34384 (this variable is now used by error()).
34385
73fb3dd5
FZ
343862009-11-16 Felix Zielcke <fzielcke@z-51.de>
34387
814f5e96
FZ
34388 * util/mkisofs/name.c (iso9660_file_length): Use isascii macro
34389 instead of relying that char is signed.
73fb3dd5 34390
a691ca33
VS
343912009-11-16 Vladimir Serbinenko <phcoder@gmail.com>
34392
34393 * fs/i386/pc/pxe.c (grub_pxefs_open): Correctly handle PXE choosing
34394 blocksize different from specified.
34395 (grub_pxefs_read): Likewise.
34396
2af8f0f4
FZ
343972009-11-16 Felix Zielcke <fzielcke@z-51.de>
34398
34399 Enable ata.mod on x86_64-efi, i386-efi and i386-ieee1275.
34400
34401 * disk/ata.c (grub_ata_dumpinfo): Add a cast.
34402 (grub_ata_readwrite): Likewise. Update 2 format strings.
34403 (grub_atapi_read): Likewise.
34404
34405 * conf/i386-coreboot.rmk (pkglib_MODULES): Move `ata.mod' from here ...
34406 * conf/i386.rmk (pkglib_MODULES): ... to here ...
34407 * conf/x86_64-efi.rmk (pkglib_MODULES): ... and here.
34408 * conf/i386-coreboot.rmk (ata_mod_SOURCES, ata_mod_CFLAGS)
34409 (ata_mod_LDFLAGS): Move from here ...
34410 * conf/i386.rmk: ... to here ...
34411 * conf/x86_64-efi.rmk: ... and here.
34412 * conf/i386-pc.rmk (pkglib_MODULES): Remove `ata.mod'
34413 (ata_mod_SOURCES, ata_mod_CFLAGS, ata_mod_LDFLAGS): Remove.
34414
83bdecaf
RM
344152009-11-16 Robert Millan <rmh.grub@aybabtu.com>
34416
34417 Relicense multiboot.h, with RMS' blessing.
34418
34419 * include/multiboot.h: Change to X11 license.
34420
fd6fd3d7
RM
344212009-11-15 Robert Millan <rmh.grub@aybabtu.com>
34422
34423 Support --version in grub-mkisofs.
34424
34425 * util/mkisofs/mkisofs.c (rcsid): Remove variable.
34426 (OPTION_VERSION): New macro.
34427 (ld_options): Recognize --version.
34428 (usage): Move `program_name' from here ...
34429 (program_name): ... to here. Add `static' qualifier.
34430 (main): Recognize `OPTION_VERSION'.
34431
16a88c49
FZ
344322009-11-15 Felix Zielcke <fzielcke@z-51.de>
34433
34434 * Makefile.in (TARGET_CPPFLAGS): Replace `-isystem=$(srcdir)/include'
34435 with `-nostdinc -isystem $(shell $(TARGET_CC) -print-file-name=include)'.
34436
a4158476
RM
344372009-11-14 Robert Millan <rmh.grub@aybabtu.com>
34438
34439 Fix help2man generation for mkisofs.
34440
34441 * util/mkisofs/mkisofs.c (ld_options): Recognize --help.
34442 (usage): Send output to stdout (rather than stderr).
34443
fc2208b0
RM
344442009-11-14 Robert Millan <rmh.grub@aybabtu.com>
34445
34446 * conf/i386-coreboot.rmk (grub_mkrescue_SOURCES): Replace
34447 `util/i386/coreboot/grub-mkrescue.in' with `util/grub-mkrescue.in'.
34448 * conf/i386-pc.rmk (grub_mkrescue_SOURCES): Replace
34449 `util/i386/pc/grub-mkrescue.in' with `util/grub-mkrescue.in'.
34450 (bin_SCRIPTS): Add `grub-mkfloppy'.
34451 (grub_mkfloppy_SOURCES): New variable.
34452
34453 * util/grub-mkrescue.in: New file.
34454 * util/i386/pc/grub-mkfloppy.in: New file.
34455
34456 * util/i386/coreboot/grub-mkrescue.in: Remove.
34457 * util/i386/pc/grub-mkrescue.in: Remove.
34458
8d0edf4a
RM
344592009-11-13 Robert Millan <rmh.grub@aybabtu.com>
34460
34461 * include/grub/multiboot.h (struct grub_multiboot_header): Move
34462 from here ...
34463 * include/multiboot.h (struct multiboot_header): ... to here. Update
34464 all users.
34465 * include/grub/multiboot.h (struct grub_multiboot_info): Move
34466 from here ...
34467 * include/multiboot.h (struct multiboot_info): ... to here. Update
34468 all users.
34469 * include/grub/multiboot.h (struct grub_multiboot_mmap_entry): Move
34470 from here ...
34471 * include/multiboot.h (struct multiboot_mmap_entry): ... to here.
34472 Update all users.
34473 * include/grub/multiboot.h (struct grub_mod_list): Move
34474 from here ...
34475 * include/multiboot.h (struct multiboot_mod_list): ... to here.
34476 Update all users.
34477
a73f5969
RM
344782009-11-13 Robert Millan <rmh.grub@aybabtu.com>
34479
34480 * include/multiboot2.h (multiboot_word): Rename from this ...
34481 (multiboot2_word): ... to this. Update all users.
34482 (multiboot_header): Rename from this ...
34483 (multiboot2_header): ... to this. Update all users.
34484 (multiboot_tag_header): Rename from this ...
34485 (multiboot2_tag_header): ... to this. Update all users.
34486 (multiboot_tag_start): Rename from this ...
34487 (multiboot2_tag_start): ... to this. Update all users.
34488 (multiboot_tag_name): Rename from this ...
34489 (multiboot2_tag_name): ... to this. Update all users.
34490 (multiboot_tag_module): Rename from this ...
34491 (multiboot2_tag_module): ... to this. Update all users.
34492 (multiboot_tag_memory): Rename from this ...
34493 (multiboot2_tag_memory): ... to this. Update all users.
34494 (multiboot_tag_unused): Rename from this ...
34495 (multiboot2_tag_unused): ... to this. Update all users.
34496 (multiboot_tag_end): Rename from this ...
34497 (multiboot2_tag_end): ... to this. Update all users.
34498
1c8927f0
RM
344992009-11-13 Robert Millan <rmh.grub@aybabtu.com>
34500
34501 Disable Multiboot2 in i386-ieee1275. It didn't actually work, and on
34502 this platform we should support Multiboot1 first.
34503
34504 * conf/i386-ieee1275.rmk (pkglib_MODULES): Remove `multiboot.mod'.
34505 (multiboot_mod_SOURCES, multiboot_mod_CFLAGS)
34506 (multiboot_mod_LDFLAGS, multiboot_mod_ASFLAGS): Remove.
34507
6e1e0d89
RM
345082009-11-12 Robert Millan <rmh.grub@aybabtu.com>
34509
34510 * util/mkisofs/eltorito.c (init_boot_catalog): Handle return code
34511 of write calls (converting them to fwrite() if they aren't already).
34512 (get_torito_desc): Likewise.
34513 * util/mkisofs/rock.c (generate_rock_ridge_attributes): Likewise.
34514
7f2b34d8
RM
345152009-11-12 Robert Millan <rmh.grub@aybabtu.com>
34516
34517 * util/i386/pc/grub-install.in: Move from here ...
34518 * util/grub-install.in: ... to here. Update all users.
34519
c0ef3311
CW
345202009-11-11 Colin Watson <cjwatson@ubuntu.com>
34521
34522 * util/powerpc/ieee1275/grub-mkrescue.in: Fix --version output.
34523
e1f240ff
RM
345242009-11-11 Robert Millan <rmh.grub@aybabtu.com>
34525
34526 Support for El Torito without floppy emulation.
34527
34528 * util/mkisofs/eltorito.c: Include `<errno.h>'.
34529 (init_boot_catalog): Improve error handling.
34530 (get_torito_desc): Don't use floppy emulation unless requested by
34531 user. Patch boot information table when requested via
34532 `-boot-info-table'.
34533 * util/mkisofs/iso9660.h (struct eltorito_boot_info): New struct.
34534 * util/mkisofs/mkisofs.c (use_eltorito_emul_floppy)
34535 (use_boot_info_table): New variables.
34536 (OPTION_BOOT_INFO_TABLE, OPTION_NO_EMUL_BOOT)
34537 (OPTION_ELTORITO_EMUL_FLOPPY): New macros.
34538 (ld_options): Handle `-boot-info-table', `-no-emul-boot' and
34539 `--eltorito-emul-floppy'.
34540 (main): Handle `OPTION_BOOT_INFO_TABLE', `OPTION_NO_EMUL_BOOT'
34541 and `OPTION_ELTORITO_EMUL_FLOPPY'.
34542 * util/mkisofs/mkisofs.h (use_eltorito_emul_floppy)
34543 (use_boot_info_table, get_731): New prototypes.
34544 * util/mkisofs/write.c (get_731): New function.
34545
af7d4de5
FZ
345462009-11-11 Felix Zielcke <fzielcke@z-51.de>
34547
34548 Fix the generation of the man page.
34549
34550 * util/pc/i386/grub-install.in: Source
34551 `${libdir}/grub/grub-mkconfig_lib' after options have been parsed.
34552
2c55dbc0
RM
345532009-11-11 Robert Millan <rmh.grub@aybabtu.com>
34554
34555 Large file support for grub-mkisofs.
34556
34557 * conf/common.rmk (grub_mkisofs_CFLAGS): Add `-D_FILE_OFFSET_BITS=64'.
34558 * util/mkisofs/mkisofs.c (next_extent, last_extent)
34559 (session_start): Upgrade type to `uint64_t'. Update all users.
34560 * util/mkisofs/mkisofs.h: Include `<stdint.h>'.
34561 (struct directory_entry): Upgrade type of `starting_block' and
34562 `size' to `uint64_t'. Update all users.
34563 (struct deferred): Remove unused structure.
34564 (xfwrite): Upgrade type of `count' and `size' to `uint64_t'.
34565 Update all users.
34566 * util/mkisofs/tree.c (stat_filter, lstat_filter): Return -1 when
34567 file is larger than `UINT32_MAX'.
34568 * util/mkisofs/write.c (xfwrite): Upgrade type of `count' and
34569 `size' to `uint64_t'. Update all users. Fix handling of fwrite()
34570 return value.
34571 (struct deferred_write): Upgrade type of `extent' and `size' to
34572 `uint64_t'. Update all users.
34573 (last_extent_written): Upgrade type to `uint64_t'. Update all
34574 users.
34575 (write_one_file): Upgrade type of `count' and `size' to `uint64_t'.
34576 Update all users. Upgrade type of `remain' to `int64_t' and
34577 `use' to `size_t'. Use error() to handle fread() errors.
34578 (write_files): Rely on write_one_file() rather than calling
34579 xfwrite() directly.
34580
6a9cead5
FZ
345812009-11-09 Felix Zielcke <fzielcke@z-51.de>
34582
34583 * util/mkisofs/mkisofs.c (ld_options): Fix a spelling mistake.
34584
4825d790
RM
345852009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34586
34587 * util/mkisofs/fnmatch.c: Remove.
34588 * util/mkisofs/getopt1.c: Likewise.
34589 * util/mkisofs/getopt.c: Likewise.
34590 * conf/common.rmk (grub_mkisofs_SOURCES): Replace
34591 `util/mkisofs/fnmatch.c', `util/mkisofs/getopt1.c' and
34592 `util/mkisofs/getopt.c' with `gnulib/fnmatch.c',
34593 `gnulib/getopt1.c' and `gnulib/getopt.c'.
34594 (grub_mkisofs_CFLAGS): Add `-I$(srcdir)/gnulib'.
34595
34596 * configure.ac: Detect `mingw32msvc' host_os.
34597 Check for lstat(), getuid() and getgid().
34598
34599 * util/mkisofs/joliet.c: Include `<stdint.h>'. Replace all
34600 instances of `u_char' with `uint8_t'.
34601
34602 * util/mkisofs/mkisofs.h: Include `<sys/stat.h>'.
34603 [!HAVE_GETUID] (getuid): New function (stub).
34604 [!HAVE_GETGID] (getgid): Likewise.
34605 [!HAVE_LSTAT] (lstat): Likewise.
34606 [!S_IROTH] (S_IROTH): New macro (dummy).
34607 [!S_IRGRP] (S_IRGRP): Likewise.
34608
84b860d8
RM
346092009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34610
34611 * gnulib/fnmatch_loop.c (EXT): Fix warning (signed and unsigned type in
34612 conditional expression).
34613
66e9b712
RM
346142009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34615
34616 Import from Gnulib.
34617
34618 * gnulib/fnmatch.c: New file.
34619 * gnulib/fnmatch.h: Likewise.
34620 * gnulib/fnmatch_loop.c: Likewise.
34621 * gnulib/getopt.c: Likewise.
34622 * gnulib/getopt.h: Likewise.
34623 * gnulib/getopt1.c: Likewise.
34624 * gnulib/getopt_int.h: Likewise.
34625 * gnulib/gettext.h: Likewise.
34626
34f4a5b0
RM
346272009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34628
34629 * normal/dyncmd.c (read_command_list): Replace `0' with `NULL'.
34630 * normal/handler.c (read_handler_list): Likewise.
34631
ac451143
RM
346322009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34633
34634 Misc cleanup.
34635
34636 * kern/command.c (grub_register_command_prio): Use
34637 grub_zalloc() instead of explicitly zeroing data.
34638 * kern/list.c: Include `<grub/mm.h>'.
34639 (grub_named_list_find): Replace `0' with `NULL'.
34640 * normal/autofs.c (struct grub_fs_module_list): Remove ad-hoc type.
34641 (fs_module_list): Change type to `grub_named_list_t'. Update all
34642 users.
34643 * normal/dyncmd.c (read_command_list): Add space between function
34644 call and parenthesis.
34645 * normal/handler.c (read_handler_list): Likewise.
34646
4089b167
RM
346472009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34648
34649 * normal/auth.c (punishment_delay): Moved from here ...
34650 (grub_auth_strcmp): ... to here (inside function).
34651
325f5037
RM
346522009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34653
34654 * include/grub/list.h (struct grub_named_list): Remove `const'
34655 qualifier from `name'.
34656 (struct grub_prio_list): Likewise.
34657
7aea29a3
RM
346582009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34659
34660 * normal/auth.c: Include `<grub/time.h>'.
34661 (grub_auth_strcmp): Replace `strcmp' with `grub_strcmp'.
34662
3fd6f044
RM
346632009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34664
34665 * normal/auth.c (punishment_delay): New variable.
34666 (grub_auth_strcmp): Rewrite using grub_get_time_ms ().
34667 (grub_auth_check_authentication): Punish failed login attempts with
34668 an incremental (2^N) delay.
34669
a4cd68e4
RM
346702009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34671
34672 * conf/common.rmk (grub_mkisofs_CFLAGS): Prefix include
34673 path with $(srcdir).
34674
7ad12f43
VS
346752009-11-09 Vladimir Serbinenko <phcoder@gmail.com>
34676
34677 * normal/auth.c (grub_auth_strcmp): Fixed incorrect variable usage.
34678
c1129f03
RM
346792009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34680
34681 * util/i386/coreboot/grub-mkrescue.in: New file.
34682 * conf/i386-coreboot.rmk (bin_SCRIPTS, grub_mkrescue_SOURCES): New
34683 variables.
34684
34685 * conf/common.rmk (bin_UTILITIES): Add `grub-mkisofs'.
34686 (grub_mkisofs_SOURCES, grub_mkisofs_CFLAGS): New variables.
34687 * configure.ac: Add header and function checks to satisfy grub-mkisofs
34688 requirements.
34689 * util/mkisofs/defaults.h: New file.
34690 * util/mkisofs/eltorito.c: Likewise.
34691 * util/mkisofs/exclude.h: Likewise.
34692 * util/mkisofs/fnmatch.c: Likewise.
34693 * util/mkisofs/getopt.c: Likewise.
34694 * util/mkisofs/getopt1.c: Likewise.
34695 * util/mkisofs/hash.c: Likewise.
34696 * util/mkisofs/include/fctldefs.h: Likewise.
34697 * util/mkisofs/include/mconfig.h: Likewise.
34698 * util/mkisofs/include/prototyp.h: Likewise.
34699 * util/mkisofs/include/statdefs.h: Likewise.
34700 * util/mkisofs/iso9660.h: Likewise.
34701 * util/mkisofs/joliet.c: Likewise.
34702 * util/mkisofs/match.c: Likewise.
34703 * util/mkisofs/match.h: Likewise.
34704 * util/mkisofs/mkisofs.c: Likewise.
34705 * util/mkisofs/mkisofs.h: Likewise.
34706 * util/mkisofs/multi.c: Likewise.
34707 * util/mkisofs/name.c: Likewise.
34708 * util/mkisofs/rock.c: Likewise.
34709 * util/mkisofs/tree.c: Likewise.
34710 * util/mkisofs/write.c: Likewise.
34711
ec8bb77d
VS
347122009-11-09 Vladimir Serbinenko <phcoder@gmail.com>
34713
34714 * normal/auth.c (grub_auth_strcmp): Fix bug which resulted in function
34715 being insecure.
34716
3716b12c
RM
347172009-11-08 Robert Millan <rmh.grub@aybabtu.com>
34718
34719 * util/i386/pc/grub-mkrescue.in: Fix miss-identification as
34720 `grub-mkimage' (and use $0 when possible).
34721
b97b7b91
RM
347222009-11-08 Robert Millan <rmh.grub@aybabtu.com>
34723
34724 * kern/i386/multiboot_mmap.c (grub_machine_mmap_init): Improve
34725 error message for excessively large memory map.
34726
04114812
RM
347272009-11-08 Robert Millan <rmh.grub@aybabtu.com>
34728
34729 * autogen.sh: Use `sh gendistlist.sh' to avoid reliing on
34730 executable bit.
34731
e4eb2373
RM
347322009-11-08 Robert Millan <rmh.grub@aybabtu.com>
34733
34734 * kern/i386/multiboot_mmap.c (grub_machine_mmap_init): Improve error
34735 message for coreboot users.
34736
c926e1d5 347372009-11-07 Robert Millan <rmh.grub@aybabtu.com>
34738
34739 Fix build with GNU gold.
34740
34741 * conf/i386-pc.rmk (boot_img_LDFLAGS, pxeboot_img_LDFLAGS)
34742 (diskboot_img_LDFLAGS, lnxboot_img_LDFLAGS)
34743 (cdboot_img_LDFLAGS): Prepend `0x' qualifier to hexadecimal
34744 link addresses.
34745 * aclocal.m4: Likewise.
34746
86e5b1db 347472009-11-04 Felix Zielcke <fzielcke@z-51.de>
34748
34749 * configure.ac (AC_PREREQ): Bump to 2.59d.
34750 * INSTALL: Make it more clear when Autoconf and Ruby are
34751 needed and when to run `./autogen.sh'.
34752
246cd78f 347532009-11-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
34754
34755 * util/grub.d/30_os-prober.in: Restore default behavior for unsupported
34756 OSes.
34757
4f9dfb37 347582009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
34759
34760 * util/grub.d/30_os-prober.in: Add GNU/Hurd support
34761
b82bd5e1 347622009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
34763
34764 * util/grub.d/10_hurd.in: Drop /dev/ prefix from root device path before
34765 giving it to GNU Mach.
34766
ff1a9bca 347672009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
34768
34769 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Subtract 1 from
34770 GNU partition number to get internal GRUB partition number.
34771
61697d9c 347722009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
34773
34774 * util/grub.d/10_hurd.in: Call prepare_grub_to_access_device
34775 ${GRUB_DEVICE_BOOT} before loading /boot kernel.
34776
a50569e1 347772009-11-01 Robert Millan <rmh.grub@aybabtu.com>
34778
34779 Based on patch from BVK Chaitanya <bvk.groups@gmail.com>
34780 * kern/misc.c (grub_strchr, grub_strrchr): Fix to handle c == '\0'
34781 case.
34782
5b153867 347832009-11-01 Felix Zielcke <fzielcke@z-51.de>
34784
34785 * Makefile.in (TARGET_CPPFLAGS): Add `-I$(srcdir)/include'.
34786
d9e2cd70 347872009-10-30 Robert Millan <rmh.grub@aybabtu.com>
34788
34789 Fix build problem.
34790
34791 * Makefile.in (TARGET_CPPFLAGS): Replace `-nostdinc' with
34792 `-isystem=$(srcdir)/include'.
34793
805111a4 347942009-10-30 Robert Millan <rmh.grub@aybabtu.com>
34795
34796 * util/i386/pc/grub-install.in: Remove hint that device.map should be
34797 checked (grub-install doesn't currently rely on it).
34798
fa6e945f 347992009-10-29 Robert Millan <rmh.grub@aybabtu.com>
34800
34801 Revert SVN r2660.
34802
34803 * conf/common.rmk (script/sh/lexer.c_DEPENDENCIES): Moved from here ...
34804 * conf/i386-coreboot.rmk (script/sh/lexer.c_DEPENDENCIES): ... to here.
34805 * conf/i386-efi.rmk (script/sh/lexer.c_DEPENDENCIES): ... and here.
34806 * conf/i386-ieee1275.rmk: Likewise.
34807 * conf/i386-pc.rmk: Likewise.
34808 * conf/powerpc-ieee1275.rmk: Likewise.
34809 * conf/sparc64-ieee1275.rmk: Likewise.
34810 * conf/x86_64-efi.rmk: Likewise.
34811
cee15086 348122009-10-28 Robert Millan <rmh.grub@aybabtu.com>
34813
34814 * Makefile.in (TARGET_CPPFLAGS): Add `-nostdinc'.
34815
95b9239e 348162009-10-28 Robert Millan <rmh.grub@aybabtu.com>
34817
34818 * include/grub/misc.h: Stop checking for APPLE_CC.
34819
2ed19dfd 348202009-10-28 Robert Millan <rmh.grub@aybabtu.com>
34821
34822 * kern/i386/coreboot/init.c (grub_exit): Reimplement in a way that
34823 doesn't cause an infinite call loop.
34824
fdcdde19 348252009-10-28 Felix Zielcke <fzielcke@z-51.de>
34826
34827 * commands/acpi.c (grub_cmd_acpi): Fix the out of memory error
34828 strings.
34829
cefabfe1 348302009-10-26 Robert Millan <rmh.grub@aybabtu.com>
34831
34832 * autogen.sh: Support addition of external modules via `GRUB_CONTRIB'
34833 variable.
34834 * Makefile.in: Likewise.
34835
ed96ab6d 348362009-10-26 Robert Millan <rmh.grub@aybabtu.com>
34837
34838 * gendistlist.sh: Simplify .svn check. Skip .bzr as well.
34839
0579b753 348402009-10-26 Robert Millan <rmh.grub@aybabtu.com>
34841
34842 * Makefile.in (RMKFILES): Rewrite using $(wildcard).
34843
478df409 348442009-10-26 Robert Millan <rmh.grub@aybabtu.com>
34845
34846 * disk/scsi.c: Remove `<grub/machine/kernel.h>' (not needed).
34847
083d1679 348482009-10-26 Robert Millan <rmh.grub@aybabtu.com>
34849
34850 * gensymlist.sh.in (COMPILE_TIME_ASSERT): Copy macro declaration
34851 from here ...
34852 * include/grub/misc.h (COMPILE_TIME_ASSERT): ... to here.
34853
5947ae32 348542009-10-26 Robert Millan <rmh.grub@aybabtu.com>
34855
34856 * Makefile.in (docs/grub.info): Use make syntax to ignore errors
34857 in $(MAKEINFO) invocation. This makes it clear in output that
34858 errors are being ignored.
34859
94180ff6 348602009-10-26 Robert Millan <rmh.grub@aybabtu.com>
34861
34862 * conf/i386-coreboot.rmk (script/sh/lexer.c_DEPENDENCIES): Moved
34863 from here ...
34864 * conf/common.rmk (script/sh/lexer.c_DEPENDENCIES): ... to here.
34865 * conf/i386-efi.rmk (script/sh/lexer.c_DEPENDENCIES): Remove.
34866 * conf/i386-ieee1275.rmk: Likewise.
34867 * conf/i386-pc.rmk: Likewise.
34868 * conf/powerpc-ieee1275.rmk: Likewise.
34869 * conf/sparc64-ieee1275.rmk: Likewise.
34870 * conf/x86_64-efi.rmk: Likewise.
34871
9031b03a 348722009-10-26 Colin Watson <cjwatson@ubuntu.com>
34873
34874 * util/grub-editenv.c (main): If only a command is given, use
34875 DEFAULT_DIRECTORY "/" GRUB_ENVBLK_DEFCFG as a default file name.
34876 (usage): FILENAME is now optional and has a default.
34877
e4f6809b 348782009-10-26 Colin Watson <cjwatson@ubuntu.com>
34879
34880 Improve grub-mkconfig performance when there are several menu
34881 entries on a single filesystem.
34882
34883 * util/grub.d/10_linux.in (linux_entry): Cache the output of
34884 prepare_grub_to_access_device.
34885 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
34886 * util/grub.d/30_os-prober.in: Likewise.
34887
67937d4d 348882009-10-26 Robert Millan <rmh.grub@aybabtu.com>
34889
34890 * util/grub.d/10_freebsd.in: Remove.
34891 * util/grub.d/10_kfreebsd.in: New file (based on 10_linux.in).
34892 * configure.ac: Set host_kernel=kfreebsd for FreeBSD and GNU/kFreeBSD.
34893
ee3756cc 348942009-10-26 Robert Millan <rmh.grub@aybabtu.com>
34895
5c35048e 34896 * docs/grub.cfg: Fix example usage of *BSD loaders.
ee3756cc 34897
4dea1c6f 348982009-10-25 Robert Millan <rmh.grub@aybabtu.com>
34899
34900 * util/i386/pc/grub-setup.c (setup): Add missing parameter to
34901 grub_util_error() call.
34902
042484d7 349032009-10-25 Robert Millan <rmh.grub@aybabtu.com>
34904
34905 * include/grub/fs.h [GRUB_UTIL] (struct grub_fs): Add
34906 `reserved_first_sector' member.
34907 * fs/ext2.c [GRUB_UTIL] (grub_ext2_fs): Initialize
34908 `reserved_first_sector' to 1.
34909 * fs/fat.c [GRUB_UTIL] (grub_fat_fs): Likewise.
34910 * fs/ntfs.c [GRUB_UTIL] (grub_ntfs_fs): Likewise.
34911 * fs/hfsplus.c [GRUB_UTIL] (grub_hfsplus_fs): Likewise.
34912 * util/i386/pc/grub-setup.c (setup): Add safety check that probes for
34913 filesystems which begin at first sector.
34914 (options): New option --skip-fs-probe.
34915 (main): Handle --skip-fs-probe and pass it to setup().
34916
d64448a7 349172009-10-25 Robert Millan <rmh.grub@aybabtu.com>
34918
34919 * include/grub/misc.h: Fix wrong evaluation of APPLE_CC.
34920 (memset): Fix function prototype.
34921
508d42ec 349222009-10-25 Robert Millan <rmh.grub@aybabtu.com>
349232009-10-25 Vasily Averin <vvs@parallels.com>
34924
34925 * fs/ext2.c (grub_ext2_iterate_dir): Avoid infinite loop when
34926 `dirent.direntlen == 0'.
34927
b240e30c 349282009-10-25 Robert Millan <rmh.grub@aybabtu.com>
34929
34930 * fs/cpio.c [MODE_USTAR]: Initialize `tar' module instead of
34931 `cpio'.
34932 [! MODE_USTAR]: Initialize `cpio' module instead of `tar'.
34933
346e7fbe 349342009-10-25 Robert Millan <rmh.grub@aybabtu.com>
34935
34936 * configure.ac: Check for `__ashldi3', `__ashrdi3', `__lshrdi3',
34937 `__trampoline_setup' and `__ucmpdi2'.
34938 * include/grub/powerpc/libgcc.h: Only export symbols for functions
34939 that libgcc provides.
34940
cdb308b0 349412009-10-25 Robert Millan <rmh.grub@aybabtu.com>
34942
34943 * include/grub/powerpc/libgcc.h (memset): Remove function prototype.
34944 * include/grub/sparc64/libgcc.h (memset): Likewise.
34945 * include/grub/misc.h (memset, memcmp): New function prototypes.
34946
fb26abc2 349472009-10-25 Robert Millan <rmh.grub@aybabtu.com>
34948
34949 * fs/cpio.c [MODE_USTAR]: Finish `tar' module instead of
34950 `cpio'.
34951 [! MODE_USTAR]: Finish `cpio' module instead of `tar'.
34952
f6693890 349532009-10-25 Robert Millan <rmh.grub@aybabtu.com>
34954
34955 Patch from Samuel Thibault <samuel.thibault@ens-lyon.org>
34956 * docs/grub.cfg: Compensate for recent change in multiboot
34957 loader (since 2009-08-14 it won't pass filename to payload).
34958 * util/grub.d/10_hurd.in: Likewise.
34959
0933cdc0 349602009-10-21 Felix Zielcke <fzielcke@z-51.de>
34961
34962 * config.guess: Update to latest version from config git
34963 repository.
34964 * config.sub: Likewise.
34965
3b2fe8c2 349662009-10-20 Robert Millan <rmh.grub@aybabtu.com>
34967
34968 Fix build on sparc64.
34969
34970 * configure.ac: Perform checks for libgcc symbols before
34971 adding `-nostdlib' to LDFLAGS.
34972
46695a62 349732009-10-16 Vladimir Serbinenko <phcoder@gmail.com>
34974
34975 Let user specify OpenBSD root device.
34976
34977 * loader/i386/bsd.c (openbsd_root): New variable.
34978 (openbsd_opts): New option 'root'.
34979 (OPENBSD_ROOT_ARG): New macro.
34980 (grub_openbsd_boot): Use 'openbsd_root'.
34981 (grub_cmd_openbsd): Fill 'openbsd_root'.
34982
d2b6b7fc 349832009-10-16 Robert Millan <rmh.grub@aybabtu.com>
34984
34985 * NEWS: Misc adjustments.
34986
421bd7ac 349872009-10-16 Vladimir Serbinenko <phcoder@gmail.com>
34988
34989 * NEWS: Mentioned XNU, ACPI, gptsync, password and parttool.
34990
f1d29d87 349912009-10-16 Robert Millan <rmh.grub@aybabtu.com>
34992
34993 * configure.ac: Bump version to 1.97.
34994
6f3cd880 349952009-10-16 Colin Watson <cjwatson@ubuntu.com>
34996
34997 * configure.ac (TARGET_CFLAGS): Add -mno-mmx -mno-sse -mno-sse2
34998 -mno-3dnow on x86 architectures. Some toolchains enable these
34999 features by default, but they rely on registers that aren't enabled
35000 in GRUB. Thanks to Vladimir Serbinenko for the suggestion.
35001
035f7122 350022009-10-15 Robert Millan <rmh.grub@aybabtu.com>
35003
35004 Make entry text a bit more readable.
35005
35006 * util/grub.d/10_linux.in: Add `with' before `Linux'.
35007
44998e58 350082009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
35009
35010 * loader/i386/pc/xnu.c (grub_xnu_set_video): Fix loading splash image.
35011
cd2851b3 350122009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
35013
35014 * commands/xnu_uuid.c (grub_cmd_xnu_uuid): Remove duplicated bitwise
35015 operations.
35016
c6f3b249 350172009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
35018
35019 * configure.ac: Add missing dollar.
35020
6b5886ba 350212009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
35022
35023 Revert 2009-06-10 Pavel Roskin <proski@gnu.org>
35024
35025 * configure.ac: Put checks for __bswapsi2 and __bswapdi2.
35026 * include/grub/powerpc/libgcc.h: Don't use weak attribute for all
35027 exports.
35028 * include/grub/sparc64/libgcc.h: Likewise. Use
35029 preprocessor conditionals.
35030
e9d66f6d 350312009-10-14 Robert Millan <rmh.grub@aybabtu.com>
35032
35033 * conf/common.rmk (grub-dumpbios): Remove rule.
35034 (sbin_SCRIPTS, CLEANFILES): Remove `grub-dumpbios'.
35035 * util/grub-dumpbios.in: Remove file.
35036
9155bc17 350372009-10-14 Robert Millan <rmh.grub@aybabtu.com>
35038
35039 Refer to kernel of FreeBSD "kFreeBSD" to avoid confusion between
35040 the Operating System (FreeBSD) and its kernel (kernel of FreeBSD).
35041
35042 * loader/i386/bsd.c (grub_freebsd_boot): Read kernel environment
35043 from "kFreeBSD" namespace (rather than "FreeBSD"). Update all
35044 users.
35045
35046 (GRUB_MOD_INIT (bsd)): Rename "freebsd" command to "kfreebsd",
35047 "openbsd" to "kopenbsd", "netbsd" to "knetbsd", "freebsd_loadenv"
35048 to "kfreebsd_loadenv", "freebsd_module" to "kfreebsd_module",
35049 and "freebsd_module_elf" to "kfreebsd_module_elf". Update all
35050 users.
35051
bf7f7a18 350522009-10-12 Robert Millan <rmh.grub@aybabtu.com>
35053
35054 * term/tparm.c: Switch to GPLv3.
35055
86564c26 350562009-10-09 Robert Millan <rmh.grub@aybabtu.com>
35057
35058 * include/grub/i386/cpuid.h: Add header protection.
35059
5c936493 350602009-10-09 Robert Millan <rmh.grub@aybabtu.com>
35061
35062 Fail gracefuly when attempting to load 64-bit kFreeBSD on IA32 CPU.
35063
35064 * include/grub/i386/cpuid.h: New file.
35065 * commands/i386/cpuid.c: Include `<grub/i386/cpuid.h>'.
35066 (has_longmode): Rename to ...
35067 (grub_cpuid_has_longmode): ... this. Update all users. Remove
35068 `static' attribute.
35069 * loader/i386/bsd.c: Include `<grub/i386/cpuid.h>'.
35070 (grub_bsd_load_elf): Fail if load of 64-bit kernel was requested
35071 on a CPU that doesn't implement AMD64 instruction set.
35072
186e7cf2 350732009-10-06 Colin Watson <cjwatson@ubuntu.com>
35074
35075 * Makefile.in (docs/stamp-vti): Depend on configure.ac as well, so
35076 that version.texi is rebuilt on version number changes.
35077
83b65c4a 350782009-10-06 Colin Watson <cjwatson@ubuntu.com>
35079
35080 * Makefile.in: Don't set info_INFOS unless makeinfo was found.
35081 Fixes bug #27602.
35082
d244281c 350832009-10-06 Colin Watson <cjwatson@ubuntu.com>
35084
35085 * util/i386/pc/grub-install.in: Source
35086 ${libdir}/grub/grub-mkconfig_lib before option processing, in order
35087 that the --grub-probe option will work.
35088 * util/sparc64/ieee1275/grub-install.in: Likewise.
35089
da25306d 350902009-10-05 Robert Millan <rmh.grub@aybabtu.com>
35091
35092 * configure.ac: Bump version to 1.97~beta4.
35093
e8ee83c0 350942009-10-03 Robert Millan <rmh.grub@aybabtu.com>
35095
35096 Resync grub-mkdevicemap in x86_64-efi.
35097
35098 * conf/x86_64-efi.rmk (sbin_UTILITIES): Enable `grub-mkdevicemap'.
35099 (grub_mkdevicemap_SOURCES): Add missing `util/deviceiter.c' and
35100 `util/devicemap.c'.
35101
50dcabcf 351022009-10-01 Colin Watson <cjwatson@ubuntu.com>
35103
35104 * util/grub-editenv.c (create_envblk_file): Write new block with a
35105 .new suffix and then rename it into place, to ensure atomic
35106 creation.
35107
0e51c3a7 351082009-09-28 Robert Millan <rmh.grub@aybabtu.com>
35109
35110 Do not automatically install headers.
35111
35112 * Makefile.in (include_DATA): Remove. Update all users.
35113
31299a95 351142009-09-26 Robert Millan <rmh.grub@aybabtu.com>
35115
35116 * conf/common.rmk (pkglib_MODULES): Remove `lua.mod'.
35117 (lua_mod_SOURCES, lua_mod_CFLAGS, lua_mod_LDFLAGS): Remove.
35118
35119 * util/osdetect.lua: Remove.
35120 * script/lua/lauxlib.c: Likewise.
35121 * script/lua/ldebug.c: Likewise.
35122 * script/lua/grub_main.c: Likewise.
35123 * script/lua/lauxlib.h: Likewise.
35124 * script/lua/ldebug.h: Likewise.
35125 * script/lua/ltablib.c: Likewise.
35126 * script/lua/liolib.c: Likewise.
35127 * script/lua/lstrlib.c: Likewise.
35128 * script/lua/lualib.h: Likewise.
35129 * script/lua/ldo.c: Likewise.
35130 * script/lua/ldump.c: Likewise.
35131 * script/lua/ldo.h: Likewise.
35132 * script/lua/loslib.c: Likewise.
35133 * script/lua/lundump.c: Likewise.
35134 * script/lua/grub_lib.c: Likewise.
35135 * script/lua/ldblib.c: Likewise.
35136 * script/lua/lundump.h: Likewise.
35137 * script/lua/lmem.c: Likewise.
35138 * script/lua/grub_lib.h: Likewise.
35139 * script/lua/lmathlib.c: Likewise.
35140 * script/lua/lstate.c: Likewise.
35141 * script/lua/ltm.c: Likewise.
35142 * script/lua/lvm.c: Likewise.
35143 * script/lua/lmem.h: Likewise.
35144 * script/lua/lstate.h: Likewise.
35145 * script/lua/ltm.h: Likewise.
35146 * script/lua/ltable.c: Likewise.
35147 * script/lua/lvm.h: Likewise.
35148 * script/lua/llex.c: Likewise.
35149 * script/lua/lgc.c: Likewise.
35150 * script/lua/grub_lua.h: Likewise.
35151 * script/lua/loadlib.c: Likewise.
35152 * script/lua/lfunc.c: Likewise.
35153 * script/lua/lopcodes.c: Likewise.
35154 * script/lua/lparser.c: Likewise.
35155 * script/lua/ltable.h: Likewise.
35156 * script/lua/llex.h: Likewise.
35157 * script/lua/lgc.h: Likewise.
35158 * script/lua/lfunc.h: Likewise.
35159 * script/lua/lbaselib.c: Likewise.
35160 * script/lua/lopcodes.h: Likewise.
35161 * script/lua/lparser.h: Likewise.
35162 * script/lua/lzio.c: Likewise.
35163 * script/lua/linit.c: Likewise.
35164 * script/lua/lobject.c: Likewise.
35165 * script/lua/llimits.h: Likewise.
35166 * script/lua/lstring.c: Likewise.
35167 * script/lua/lzio.h: Likewise.
35168 * script/lua/lapi.c: Likewise.
35169 * script/lua/lcode.c: Likewise.
35170 * script/lua/lua.h: Likewise.
35171 * script/lua/lobject.h: Likewise.
35172 * script/lua/lstring.h: Likewise.
35173 * script/lua/lapi.h: Likewise.
35174 * script/lua/lcode.h: Likewise.
35175 * script/lua/luaconf.h: Likewise.
35176
cb8a2c38 351772009-09-26 Colin Watson <cjwatson@ubuntu.com>
35178
35179 * docs/grub.texi (Command-line and menu entry commands): Document
35180 date and echo commands.
35181
6b9b6276 351822009-09-24 Pavel Roskin <proski@gnu.org>
35183
35184 * include/grub/kernel.h (struct grub_module_header): Remove
35185 `grub_module_header_types'. Make `type' unsigned. Make `size'
35186 32-bit on all platforms.
35187 * util/elf/grub-mkimage.c (load_modules): Treat `type' as an
35188 8-bit field. Use grub_host_to_target32() for `size'.
35189 * util/i386/efi/grub-mkimage.c (make_mods_section): Likewise.
35190 * util/i386/pc/grub-mkimage.c (generate_image): Likewise.
35191 * util/sparc64/ieee1275/grub-mkimage.c (generate_image): Likewise.
35192
4e5a02a7 351932009-09-24 Robert Millan <rmh.grub@aybabtu.com>
35194
35195 Fix "lost keypress" bug in at_keyboard.
35196
35197 * term/i386/pc/at_keyboard.c (grub_at_keyboard_checkkey): New function.
35198 Checks for readyness of input buffer (without flushing it).
35199 (grub_at_keyboard_term): Use grub_at_keyboard_checkkey() rather
35200 than grub_at_keyboard_getkey_noblock() for `checkkey' struct member.
35201
c6dcedf6 352022009-09-24 Robert Millan <rmh.grub@aybabtu.com>
35203
35204 * util/i386/pc/grub-mkimage.c (generate_image): Enclose BIOS-specific
35205 size check within GRUB_MACHINE_PCBIOS section.
35206
74c958b1 352072009-09-24 Robert Millan <rmh.grub@aybabtu.com>
35208
35209 * include/grub/i386/at_keyboard.h (KEYBOARD_ISREADY): Negate
35210 return value.
35211 * term/i386/pc/at_keyboard.c (grub_keyboard_getkey): Negate
35212 KEYBOARD_ISREADY check.
35213 (grub_at_keyboard_checkkey): Rename to ...
35214 (grub_at_keyboard_getkey_noblock): ... this. Update all users.
35215 Remove gratuitous cast.
35216
ff420223 352172009-09-23 Colin Watson <cjwatson@ubuntu.com>
35218
35219 * configure.ac: Call AC_PROG_MKDIR_P.
35220 * Makefile.in (docs/stamp-vti): Create docs directory. Create
35221 version.texi in $(builddir) rather than $(srcdir).
35222 (docs/grub.info): Create docs directory. Prepend $(builddir)/docs
35223 to makeinfo's @include search path.
35224
d96875df 352252009-09-23 Felix Zielcke <fzielcke@z-51.de>
35226
35227 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Cope with `*.dpkg-*'
35228
9b3f8365 352292009-09-23 Felix Zielcke <fzielcke@z-51.de>
35230
35231 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Add support
35232 for `*.dpkg-new'.
35233
c44c90db 352342009-09-21 Colin Watson <cjwatson@ubuntu.com>
35235
35236 Build info documentation. Some code borrowed from Automake.
35237
35238 * configure.ac: Check for makeinfo.
35239 * Makefile.in (MAKEINFO, INFOS, info_INFOS): New variables.
35240 (MAINTAINER_CLEANFILES): Add $(INFOS), docs/stamp-vti, and
35241 docs/version.texi.
35242 (MOSTLYCLEANFILES): Add vti.tmp.
35243 (docs/version.texi, docs/stamp-vti): Update automatically.
35244 (docs/grub.info): Build info documentation. Use --force and ignore
35245 errors for now.
35246 (all-local): Add $(INFOS).
35247 (install-local): Install info files.
35248 (uninstall): Uninstall info files.
35249 * docs/version.texi: Remove from revision control. This file is
35250 automatically generated on build now.
35251 * gendistlist.sh: Add `*.info'.
35252
e0b37bb5 352532009-09-21 Felix Zielcke <fzielcke@z-51.de>
35254
35255 * kern/term.c: Fix indentation.
35256
5a78865b 352572009-09-21 Felix Zielcke <fzielcke@z-51.de>
35258
35259 * util/hostdisk.c: Fix a comment.
35260
dace7e8a 352612009-09-20 Robert Millan <rmh.grub@aybabtu.com>
35262
35263 Fix regression introduced in r2539.
35264
35265 * term/usb_keyboard.c (USB_HID_DEVICE_TO_HOST): Change from 0x61
35266 to 0xA1.
35267
a83d079b 352682009-09-19 Colin Watson <cjwatson@ubuntu.com>
35269
35270 * util/grub.d/30_os-prober.in: Don't throw away stderr from
4cbbccec 35271 os-prober. Under normal operation, it does not print anything to
35272 stderr; if it does, we need to debug it, and throwing away stderr
35273 makes that excessively difficult.
a83d079b 35274
be94a509 352752009-09-16 Vladimir Serbinenko <phcoder@gmail.com>
35276
35277 * mmap/mmap.c (grub_cmd_badram): Fix off-by-one error.
35278
63f745e8 352792009-09-16 Robert Millan <rmh.grub@aybabtu.com>
35280
35281 * aclocal.m4 (AC_LANG_PROGRAM): New macro. Overrides stock
35282 AC_LANG_PROGRAM from autoconf.
35283 (grub_ASM_USCORE, grub_PROG_OBJCOPY_ABSOLUTE): Add missing
35284 prototypes (fixes warning).
35285
35286 * configure.ac: Add `-Werror' to TARGET_CFLAGS unless
35287 `--disable-werror' was used.
35288
bbb2a70f 352892009-09-16 Robert Millan <rmh.grub@aybabtu.com>
35290
35291 * partmap/msdos.c (pc_partition_map_iterate): Fix possible use of
35292 uninitialized `lastaddr'.
35293
77c24f1d 352942009-09-15 Vladimir Serbinenko <phcoder@gmail.com>
35295
0f0b8c87 35296 * partmap/msdos.c (pc_partition_map_iterate): Detect and break loops.
77c24f1d 35297
07197f23 352982009-09-14 Colin Watson <cjwatson@ubuntu.com>
35299
35300 * commands/test.c (get_fileinfo): Return immediately if
35301 grub_fs_probe fails.
35302
dabf1798 353032009-09-14 José Martínez <xosemp@gmail.com>
35304
35305 * commands/acpi.c (grub_cmd_acpi): Fix loading ACPI tables from file.
35306
d52109a7 353072009-09-14 Colin Watson <cjwatson@ubuntu.com>
35308
35309 * util/grub.d/30_os-prober.in: Cope with Windows 7 in os-prober
35310 output.
35311
56532179 353122009-09-13 Robert Millan <rmh.grub@aybabtu.com>
35313
35314 * configure.ac: Remove --enable-grub-pe2elf. Only build
35315 grub-pe2elf when needed by the build system itself.
35316 * conf/common.rmk: Remove $(enable_grub_pe2elf) check.
35317
8ef070f5 353182009-09-12 Robert Millan <rmh.grub@aybabtu.com>
35319
35320 * configure.ac: Bump version to 1.97~beta3.
35321 * docs/version.texi: Likewise.
35322
61229557 353232009-09-12 Robert Millan <rmh.grub@aybabtu.com>
35324
35325 * video/i386/pc/vbe.c (grub_vbe_get_video_mode_info): Move packed
35326 mode special handling (grub_vbe_bios_set_dac_palette_width() call)
35327 from here ...
35328 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS]
35329 (grub_linux_setup_video): ... to here (with some adjustments).
35330
5c9f8d84 353312009-09-12 Robert Millan <rmh.grub@aybabtu.com>
35332
35333 Fix memory corruption issue (spotted by Colin Watson).
35334
35335 * kern/i386/pc/startup.S (grub_vbe_bios_getset_dac_palette): Fix bug
35336 causing returned size to be stored in an incorrect memory location.
35337 Fix use of uninitialized value when storing the returned size.
35338
e8f5d6e9 353392009-09-12 Yves Blusseau <blusseau@zetam.org>
35340
35341 Change clean rules to properly remove files
35342
35343 * genmk.rb: add new clean rules
35344 * Makefile.in (clean): add the new targets
35345 (mostlyclean): likewise
35346
cda2a409 353472009-09-11 Colin Watson <cjwatson@ubuntu.com>
35348
35349 * include/grub/ntfs.h (struct grub_fshelp_node): Change `size'
35350 to grub_uint64_t.
35351 * fs/ntfs.c (init_file): Understand 64-bit sizes for
35352 non-resident files.
35353
86695375 353542009-09-11 Colin Watson <cjwatson@ubuntu.com>
35355
35356 * configure.ac: Don't look for help2man when cross-compiling. Fixes
35357 part of bug #27349.
35358
8aa1541a 353592009-09-10 Felix Zielcke <fzielcke@z-51.de>
35360
35361 * util/grub-mkconfig.in: Make the created config mode 400 and
35362 print a warning if it fails.
35363
48d9bb0a 353642009-09-10 Robert Millan <rmh.grub@aybabtu.com>
35365
35366 * util/grub.d/40_custom.in: Ask user to type custom entries below
35367 comment, rather than below 'exec tail' line.
35368
3b0521be 353692009-09-10 Colin Watson <cjwatson@ubuntu.com>
35370
35371 * util/grub.d/40_custom.in: Make sure that the explanatory text is
35372 visible in grub.cfg.
35373
50051d55 353742009-09-10 Colin Watson <cjwatson@ubuntu.com>
35375
35376 * util/grub.d/40_custom.in: Make it a little clearer how to use this
35377 file.
35378
c0d34387 353792009-09-10 Felix Zielcke <fzielcke@z-51.de>
35380
35381 * docs/grub.cfg: Add an example menu entry for memtest86+.
35382
80a608f3 353832009-09-09 Felix Zielcke <fzielcke@z-51.de>
35384
a2094832 35385 * config.guess: Update to latest version from config git.
80a608f3 35386 * config.sub: Likewise.
35387
99423078 353882009-09-08 Colin Watson <cjwatson@ubuntu.com>
35389
35390 * script/sh/execute.c (grub_script_execute_cmdline): Set "?" in
35391 unknown-command case. Fixes bug #27320.
35392
44454e4c 353932009-09-08 Felix Zielcke <fzielcke@z-51.de>
35394
35395 * kern/rescue_parser.c (grub_rescue_parse_line): Only suggest to try
35396 `help' if the command exists.
35397
e30d87ad 353982009-09-06 Robert Millan <rmh.grub@aybabtu.com>
35399
35400 * INSTALL: Require GCC 4.1.3 or later.
35401
9a86f1ec 354022009-09-06 Yves Blusseau <blusseau@zetam.org>
35403
35404 * Makefile.in (RMKFILES): add i386-qemu.rmk
35405 (MAINTAINER_CLEANFILES): add $(srcdir)/DISTLIST $(srcdir)/config.h.in
35406 $(srcdir)/stamp-h.in
35407
7f26d466 354082009-09-05 Robert Millan <rmh.grub@aybabtu.com>
35409
35410 * util/grub-probe.c (probe): Comment out buggy codepath, which
35411 was unexpectedly enabled by Colin Watson's 2009-09-02 fix. This
35412 should be re-enabled after 1.97.
35413
3a613259 354142009-09-05 Felix Zielcke <fzielcke@z-51.de>
35415
35416 * gendistlist.sh: Add `grub-dumpdevtree' and `*.lua' to the list
35417 find searches for.
35418
197f76c7 354192009-09-04 Vladimir Serbinenko <phcoder@gmail.com>
35420
35421 * loader/i386/xnu.c (grub_cpu_xnu_fill_devicetree): Remove
35422 unnecessary calls to grub_error.
35423
70ba68ce 354242009-09-04 Colin Watson <cjwatson@ubuntu.com>
35425
35426 * NEWS: Mention `keystatus' and Unicode fonts.
35427
4ff0d7a4 354282009-09-04 Robert Millan <rmh.grub@aybabtu.com>
35429
35430 * configure.ac: Bump version to 1.97~beta2.
35431 * docs/version.texi: Likewise.
35432
77c55a87 354332009-09-03 Colin Watson <cjwatson@ubuntu.com>
35434
35435 * configure.ac: By default, GCC 4.4 generates .eh_frame sections
35436 containing unwind information in some cases where it previously did
35437 not. Use -fno-dwarf2-cfi-asm if available to restore the old
35438 behaviour. See http://patchwork.kernel.org/patch/8555/ for related
35439 discussion.
35440
f79572cd 354412009-09-02 Yves BLUSSEAU <blusseau@zetam.org>
35442
35443 Embedding loadenv module into grub-emu
35444
35445 * conf/i386-pc.rmk (grub_emu_SOURCES): add lib/envblk.c and
35446 commands/loadenv.c
35447 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise
35448 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise
35449 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise
35450 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise
35451 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise
35452 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise
35453
93a81088 354542009-09-03 Magnus Granberg <zorry@ume.nu>
35455
35456 * aclocal.m4: Add grub_CHECK_PIE. It check if the compiler
35457 include -fPIE in the default specs.
35458 * configure.ac: Check if pie_possible is yes and add -fno-PIE
35459 to TARGET_CFLAGS.
35460
160034b2 354612009-09-03 Felix Zielcke <fzielcke@z-51.de>
35462
35463 * INSTALL: Note that GNU Bison 2.3 or later is required.
35464
087c07c4 354652009-09-03 Colin Watson <cjwatson@ubuntu.com>
35466
35467 * kern/i386/pc/startup.S: Fix typo.
35468
cbf978c0 354692009-09-02 Vladimir Serbinenko <phcoder@gmail.com>
35470
35471 * efiemu/loadcore.c (SUFFIX (grub_efiemu_loadcore_load)): Fix style
35472 according to GCS.
35473
354742009-09-02 Colin Watson <cjwatson@ubuntu.com>
f0910644 35475
35476 * docs/grub.texi (Naming convention): Describe one-based partition
35477 numbering.
35478 (Device syntax): Likewise.
35479 (File name syntax): Likewise.
35480 (Block list syntax): Likewise.
35481 (Making a GRUB bootable CD-ROM): Talk about grub.cfg rather than
35482 menu.lst.
35483 (File name syntax): Likewise.
35484 (Command-line and menu entry commands): Document acpi, blocklist,
35485 crc, export, insmod, keystatus, ls, set, and unset commands.
35486
f3e8cdfd 354872009-09-02 Colin Watson <cjwatson@ubuntu.com>
35488
35489 * commands/keystatus.c (GRUB_MOD_INIT (keystatus)): Adjust summary
35490 to avoid implying that only one of --shift, --ctrl, or --alt may be
35491 used.
35492
c0bc232b 354932009-09-02 Colin Watson <cjwatson@ubuntu.com>
35494
35495 * util/grub-probe.c (probe): Test st.st_mode using S_ISREG macro
35496 rather than comparing against S_IFREG, which will almost never work.
35497
aa0f752d 354982009-09-01 Vladimir Serbinenko <phcoder@gmail.com>
35499
35500 * commands/loadenv.c (check_blocklists): Fix off-by-one error.
35501 (write_blocklists): Likewise.
35502
ecb3166a 355032009-09-01 Colin Watson <cjwatson@ubuntu.com>
35504
35505 * script/lua/grub_lua.h (fputs): Supply a format string as the first
35506 argument to grub_printf.
35507
c403a125 355082009-09-01 Felix Zielcke <fzielcke@z-51.de>
31aba781 35509
35510 * genmk.rb: Add quotes around $(TARGET_OBJ2ELF) to cope with
c403a125 35511 non GNU test.
31aba781 35512
b5e7312c 355132009-08-30 Vladimir Serbinenko <phcoder@gmail.com>
35514
35515 * kern/file.c (grub_file_read): Spelling fix
35516
fe00f472 355172009-08-30 Vladimir Serbinenko <phcoder@gmail.com>
35518
35519 * loader/i386/bsdXX.c (SUFFIX (grub_freebsd_load_elfmodule)): Fix
35520 loading of headers in some cases.
35521
cc55302e 355222009-08-30 Robert Millan <rmh.grub@aybabtu.com>
35523
35524 * configure.ac: Bump version to 1.97~beta1.
35525 * docs/version.texi: Likewise.
35526
5c90cdd2 355272009-08-29 Vladimir Serbinenko <phcoder@gmail.com>
64bf71d0 35528
35529 * include/grub/i386/xnu.h: Add license header.
35530 include grub/err.h explicitly.
35531
c90edae4 355322009-08-29 Robert Millan <rmh.grub@aybabtu.com>
35533
35534 * util/grub.d/10_freebsd.in: Detect `ufs1' and `ufs2' and map them
35535 to `ufs' in the vfs.root.mountfrom kernel parameter.
35536
d8888b5c 355372009-08-29 Robert Millan <rmh.grub@aybabtu.com>
35538
35539 * term/i386/pc/serial.c: Include `<grub/machine/memory.h>'.
35540
35541 [GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Macroify initialization
35542 value (0x0400 -> GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR).
35543
35544 [! GRUB_MACHINE_PCBIOS] (GRUB_SERIAL_PORT_NUM): Calculate using
35545 `ARRAY_SIZE' macro.
35546
6f07b921 355472009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
35548
35549 * kern/file.c (grub_file_read): Check offset.
35550 * fs/hfs.c (grub_hfs_read_file): Remove unnecessary offset check.
35551 * fs/jfs.c (grub_jfs_read_file): Likewise.
35552 * fs/ntfs.c (grub_ntfs_read): Likewise.
35553 * fs/reiserfs.c (grub_reiserfs_read): Likewise.
35554 * fs/minix.c (grub_minix_read_file): Correct offset check.
35555 * fs/ufs.c (grub_ufs_read_file): Likewise.
35556
b4f34077 355572009-08-28 Colin Watson <cjwatson@ubuntu.com>
35558
35559 * term/i386/pc/console.c (bios_data_area): Cast
35560 GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR explicitly.
35561
e7c69859 355622009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
35563
35564 1-bit optimised blitters.
35565
35566 * include/grub/fbblit.h (grub_video_fbblit_replace_32bit_1bit): New
35567 prototype.
35568 (grub_video_fbblit_replace_24bit_1bit): Likewise.
35569 (grub_video_fbblit_replace_16bit_1bit): Likewise.
35570 (grub_video_fbblit_replace_8bit_1bit): Likewise.
35571 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
35572 (grub_video_fbblit_blend_XXX888_1bit): Likewise.
35573 (grub_video_fbblit_blend_XXX565_1bit): Likewise.
35574 * video/fb/fbblit.c (grub_video_fbblit_replace_32bit_1bit): New
35575 function.
35576 (grub_video_fbblit_replace_24bit_1bit): Likewise.
35577 (grub_video_fbblit_replace_16bit_1bit): Likewise.
35578 (grub_video_fbblit_replace_8bit_1bit): Likewise.
35579 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
35580 (grub_video_fbblit_blend_XXX888_1bit): Likewise.
35581 (grub_video_fbblit_blend_XXX565_1bit): Likewise.
35582 * video/fb/video_fb.c (common_blitter): Use 1-bit optimised blitters
35583 when possible.
35584 * video/video.c (grub_video_get_blit_format): Return
35585 GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED if bpp = 1.
35586
a57da43f 355872009-08-28 Colin Watson <cjwatson@ubuntu.com>
35588
35589 * normal/cmdline.c (grub_cmdline_get): Supply a format string as
35590 the first argument to grub_printf.
35591
4cbe67e5 355922009-08-28 Colin Watson <cjwatson@ubuntu.com>
355932009-08-28 Robert Millan <rmh.grub@aybabtu.com>
35594
35595 Add `getkeystatus' terminal method. Add a new `keystatus' command
35596 to query it.
35597
35598 * include/grub/term.h (GRUB_TERM_STATUS_SHIFT,
35599 GRUB_TERM_STATUS_CTRL, GRUB_TERM_STATUS_ALT): Definitions for
35600 modifier key bitmasks.
35601 (struct grub_term_input): Add `getkeystatus' member.
35602 (grub_getkeystatus): Add prototype.
35603 * kern/term.c (grub_getkeystatus): New function.
35604
35605 * include/grub/i386/pc/memory.h
35606 (GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR): New macro.
35607 (struct grub_machine_bios_data_area): Define necessary parts of BIOS
35608 Data Area layout.
35609 * term/i386/pc/console.c (grub_console_getkeystatus): New function.
35610 (grub_console_term_input): Set `getkeystatus' member.
35611 * term/usb_keyboard.c (grub_usb_hid): Macroify HID protocol
35612 constants.
35613 (grub_usb_keyboard_getreport): Likewise.
35614 (grub_usb_keyboard_checkkey): Likewise.
35615 (grub_usb_keyboard_getkeystatus): New function.
35616 (grub_usb_keyboard_term): Set `getkeystatus' member.
35617
35618 * commands/keystatus.c: New file.
35619 * conf/common.rmk (pkglib_MODULES): Add keystatus.mod.
35620 (keystatus_mod_SOURCES): New variable.
35621 (keystatus_mod_CFLAGS): Likewise.
35622 (keystatus_mod_LDFLAGS): Likewise.
35623 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add
35624 commands/keystatus.c.
35625 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
35626 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35627 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
35628 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35629 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35630 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
4cbe67e5 35631
6e2a9085 356322009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
35633
35634 Split befs.mod and afs.mod into *_be.mod and *.mod
35635
35636 * conf/common.rmk (grub_probe_SOURCES): Add afs_be.c and befs_be.c.
35637 (grub_fstest_SOURCES): Likewise.
35638 (pkglib_MODULES): Add afs_be.mod and befs_be.mod.
35639 (afs_be_mod_SOURCES): New variable.
35640 (afs_be_mod_CFLAGS): Likewise.
35641 (afs_be_mod_LDFLAGS): Likewise.
35642 (befs_be_mod_SOURCES): Likewise.
35643 (befs_be_mod_CFLAGS): Likewise.
35644 (befs_be_mod_LDFLAGS): Likewise.
35645 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add afs_be.c and befs_be.c.
35646 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
35647 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35648 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
35649 (grub_emu_SOURCES): Likewise.
35650 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35651 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35652 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
35653 * fs/afs_be.c: New file.
35654 * fs/befs_be.c: New file.
35655 * fs/afs.c (GRUB_AFS_FSNAME_SUFFIX): New definition.
35656 (GRUB_AFS_FSNAME): Use GRUB_AFS_FSNAME_SUFFIX.
35657 (U16): Replaced with ...
35658 (grub_afs_to_cpu16): ...this. All users updated.
35659 (U32): Replaced with ...
35660 (grub_afs_to_cpu32): ...this. All users updated.
35661 (U64): Replaced with ...
35662 (grub_afs_to_cpu64): ...this. All users updated.
35663 (GRUB_AFS_BO_LITTLE_ENDIAN): Remove.
35664 (GRUB_AFS_BO_BIG_ENDIAN): Likewise.
ad8ea1f4 35665 (grub_afs_validate_sblock): Check only one endianness.
6e2a9085 35666 (GRUB_MOD_INIT (befs)) [MODE_BIGENDIAN && MODE_BFS]: Rename to ..
35667 (GRUB_MOD_INIT (befs_be)) [MODE_BIGENDIAN && MODE_BFS]: ... this.
35668 (GRUB_MOD_INIT (afs)) [MODE_BIGENDIAN && !MODE_BFS]: Rename to ..
35669 (GRUB_MOD_INIT (afs_be)) [MODE_BIGENDIAN && !MODE_BFS]: ... this.
35670 (GRUB_MOD_FINI (befs)) [MODE_BIGENDIAN && MODE_BFS]: Rename to ..
35671 (GRUB_MOD_FINI (befs_be)) [MODE_BIGENDIAN && MODE_BFS]: ... this.
35672 (GRUB_MOD_FINI (afs)) [MODE_BIGENDIAN && !MODE_BFS]: Rename to ..
35673 (GRUB_MOD_FINI (afs_be)) [MODE_BIGENDIAN && !MODE_BFS]: ... this.
35674
32a71655 356752009-08-26 Bean <bean123ch@gmail.com>
35676
35677 * fs/xfs.c (GRUB_XFS_INO_INOINAG): Replace 1L with 1LL to support
35678 64-bit number.
35679 (GRUB_XFS_FSB_TO_BLOCK): Likewise.
35680 (grub_xfs_inode_block): Change return type to grub_uint64_t.
35681 (grub_xfs_read_inode): Change type of block to grub_uint64_t.
35682
552bf6c5 356832009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
35684
35685 NetBSD memory map support.
35686
35687 * include/grub/i386/bsd.h (NETBSD_BTINFO_MEMMAP): New definition.
35688 (grub_netbsd_btinfo_mmap_header): New structure.
35689 (grub_netbsd_btinfo_mmap_entry): Likewise.
35690 * loader/i386/bsd.c (grub_netbsd_boot): Pass memory map.
35691
1ae2078c 356922009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
35693
35694 Enable bsd.mod on coreboot.
35695
35696 * conf/i386-coreboot.rmk (pkglib_MODULES): Add bsd.mod.
35697 (bsd_mod_SOURCES): New variable.
35698 (bsd_mod_CFLAGS): Likewise.
35699 (bsd_mod_LDFLAGS): Likewise.
35700 (bsd_mod_ASFLAGS): Likewise.
35701 * loader/i386/bsd.c [!GRUB_MACHINE_PCBIOS]: Fix includes.
35702 (grub_bsd_get_device) [!GRUB_MACHINE_PCBIOS]: Set *biosdev to 0xff.
35703
beefc598 357042009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
35705
35706 Cleanup NetBSD root support.
35707
35708 * loader/i386/bsd.c (grub_netbsd_boot): Remove call to
35709 grub_bsd_get_device.
35710 Fix typo.
35711
3b76e68b 357122009-08-25 Felix Zielcke <fzielcke@z-51.de>
35713
35714 * util/grub.d/00_header.in: Move check for the video backend of
35715 gfxterm from here ...
35716 * util/grub-mkconfig.in: ... to here. Enable gfxterm if there's
35717 a suitable video backend.
35718
aea664ea 357192009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
35720
35721 Fix breakage in grub-setup.
35722
35723 * util/i386/pc/grub-setup.c (setup): Use "part_msdos" instead of
35724 "msdos_partition_map".
35725
ff747d50 357262009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
35727
35728 Fix breakage in normal/auth.c.
35729
35730 * normal/auth.c (grub_iswordseparator): New function.
35731
e7e1f93f 357322009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
35733
35734 Authentication support.
35735
35736 * commands/password.c: New file.
35737 * conf/common.rmk (pkglib_MODULES): Add password.mod.
35738 (password_mod_SOURCES): New variable.
35739 (password_mod_CFLAGS): Likewise.
35740 (password_mod_LDFLAGS): Likewise.
35741 (normal_mod_SOURCES): Add normal/auth.c.
35742 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add commands/password.c and
35743 normal/auth.c.
35744 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
35745 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35746 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
35747 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35748 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35749 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
35750 * include/grub/auth.h: New file.
35751 * include/grub/err.h (grub_err_t): New enum value
35752 GRUB_ERR_ACCESS_DENIED.
35753 * include/grub/menu.h (grub_menu_entry): New fields 'restricted' and
35754 'users'.
35755 * include/grub/normal.h (grub_cmdline_get): New argument 'history'.
35756 * normal/cmdline.c (grub_cmdline_get): New argument 'history'. All
35757 users updated.
35758 * normal/auth.c: New file.
35759 * normal/main.c (grub_normal_add_menu_entry): Handle --users option.
35760 (grub_cmdline_run): Don't allow to go to command line without
35761 authentication.
35762 * normal/menu.c (grub_menu_execute_entry): Handle restricted entries.
35763 * normal/menu_entry.c (grub_menu_entry_run): Don't allow editing
35764 menuentry without superuser rights.
35765 * normal/menu_viewer.c (grub_menu_viewer_show_menu): Don't exit if
35766 user isn't a superuser.
35767
70f1161d 357682009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
35769
35770 Save space by inlining misc.c functions.
35771
35772 * kern/misc.c (grub_iswordseparator): Made static.
35773 * kern/misc.c (grub_strcat): Moved from here ...
35774 * include/grub/misc.h (grub_strcat): ... here. Inlined.
35775 * kern/misc.c (grub_strncat): Moved from here ...
35776 * include/grub/misc.h (grub_strncat): ... here. Inlined.
35777 * kern/misc.c (grub_strcasecmp): Moved from here ...
35778 * include/grub/misc.h (grub_strcasecmp): ... here. Inlined.
35779 * kern/misc.c (grub_strncasecmp): Moved from here ...
35780 * include/grub/misc.h (grub_strncasecmp): ... here. Inlined.
35781 * kern/misc.c (grub_isalpha): Moved from here ...
35782 * include/grub/misc.h (grub_isalpha): ... here. Inlined.
35783 * kern/misc.c (grub_isdigit): Moved from here ...
35784 * include/grub/misc.h (grub_isdigit): ... here. Inlined.
35785 * kern/misc.c (grub_isgraph): Moved from here ...
35786 * include/grub/misc.h (grub_isgraph): ... here. Inlined.
35787 * kern/misc.c (grub_tolower): Moved from here ...
35788 * include/grub/misc.h (grub_tolower): ... here. Inlined.
35789
48e40bff 357902009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
35791
35792 * script/sh/function.c (grub_script_function_find): Cut error message
35793 not to flood terminal.
35794 * script/sh/lexer.c (grub_script_yylex): Remove command line length
35795 limit.
35796 * script/sh/script.c (grub_script_arg_add): Duplicate string.
35797
c385bfc3 357982009-08-24 Colin Watson <cjwatson@ubuntu.com>
35799
35800 * term/usb_keyboard.c (grub_usb_keyboard_getreport): Make
35801 `report' grub_uint8_t *.
35802 (grub_usb_keyboard_checkkey): Make `data' elements grub_uint8_t.
35803 Use a 50-millisecond timeout rather than just repeating
35804 grub_usb_keyboard_getreport 50 times.
35805 (grub_usb_keyboard_getkey): Make `data' elements grub_uint8_t.
35806
2d21e3e8 358072009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
35808
35809 Rename *_partition_map to part_*
35810
35811 * partmap/acorn.c (grub_acorn_partition_map): Set name to 'part_acorn'.
35812 * partmap/amiga.c (grub_amiga_partition_map): Set name to 'part_amiga'.
35813 * partmap/apple.c (grub_apple_partition_map): Set name to 'part_apple'.
35814 * partmap/gpt.c (grub_gpt_partition_map): Set name to 'part_gpt'.
35815 All users updated.
35816 * partmap/msdos.c (grub_msdos_partition_map): Set name to 'part_msdos'.
35817 All users updated.
35818 * partmap/sun.c (grub_sun_partition_map): Set name to 'part_sun'.
35819 * util/grub-probe.c (probe_partmap): Don't transform partition name
35820 to get module name.
35821
dd103c4e 358222009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
35823
35824 Fix OpenBSD and NetBSD support.
35825
35826 * include/grub/i386/bsd.h (GRUB_BSD_TEMP_BUFFER): Change to resolve
35827 memory address conflict.
35828 (OPENBSD_MMAP_ACPI): New definition.
35829 (OPENBSD_MMAP_NVS): Likewise.
35830 * loader/i386/bsd.c (grub_openbsd_boot): Support OPENBSD_MMAP_ACPI
35831 and OPENBSD_MMAP_NVS.
35832 Add memory map terminator
35833 Explicit cast when calling grub_unix_real_boot.
ad8ea1f4 35834 (grub_netbsd_boot): Explicit cast when calling grub_unix_real_boot.
dd103c4e 35835
16c84d74 358362009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
35837
35838 Let user specify NetBSD root device.
35839
35840 * loader/i386/bsd.c (netbsd_root): New variable.
35841 (netbsd_opts): New option 'root'.
35842 (NETBSD_ROOT_ARG): New macro.
35843 (grub_netbsd_boot): Use 'netbsd_root'.
35844 (grub_bsd_unload): Free 'netbsd_root'.
35845 (grub_cmd_netbsd): Fill 'netbsd_root'.
35846
adb29902 358472009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
35848
35849 Support for 64-bit NetBSD.
35850
35851 * loader/i386/bsd.c (grub_bsd_load_elf): Apply correct mask to entry
35852 point when booting non-FreeBSD.
35853
f5ae9f74 358542009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
35855
35856 Support --no-smp and --no-acpi for NetBSD.
35857
35858 * include/grub/i386/bsd.h (NETBSD_AB_NOSMP): New definition.
35859 (NETBSD_AB_NOACPI): Likewise.
35860 * loader/i386/bsd.c (netbsd_opts): New entries no-smp and no-acpi.
35861 (netbsd_flags): Add NETBSD_AB_NOSMP, NETBSD_AB_NOACPI.
35862
de74f136 358632009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
35864
35865 * fs/hfsplus.c (grub_hfsplus_mount): Don't ignore grub_hfsplus_read_file
35866 errors.
35867 (grub_hfsplus_btree_iterate_node): Don't ignore grub_hfsplus_read_file
35868 errors. Call grub_error when needed.
35869
e9a925da 358702009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
35871
35872 * commands/search.c (search_fs): Try searching without autoload first.
35873 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Load
35874 filesystem module explicitly for faster booting.
35875
5174302b 358762009-08-23 Colin Watson <cjwatson@ubuntu.com>
35877
35878 * util/grub-mkconfig.in: Export GRUB_DISABLE_OS_PROBER.
35879
c8c80635 358802009-08-23 Colin Watson <cjwatson@ubuntu.com>
35881
35882 * util/grub.d/30_os-prober.in: Disable os-prober if
35883 `GRUB_DISABLE_OS_PROBER' was set to true.
35884
71acf5e5 358852009-08-23 Robert Millan <rmh.grub@aybabtu.com>
35886
35887 * partmap/pc.c: Rename to ...
35888 * partmap/msdos.c: ... this. Update all users.
35889 (grub_pc_partition_map): Rename to ...
35890 (grub_msdos_partition_map): ... this. Update all users.
35891
35892 * parttool/pcpart.c: Rename to ...
35893 * parttool/msdospart.c: ... this. Update all users.
35894
35895 * include/grub/pc_partition.h: Rename to ...
35896 * include/grub/msdos_partition.h: ... this. Update all users.
35897 (grub_pc_partition_bsd_entry): Rename to ...
35898 (grub_msdos_partition_bsd_entry): ... this. Update all users.
35899 (grub_pc_partition_disk_label): Rename to ...
35900 (grub_msdos_partition_disk_label): ... this. Update all users.
35901 (grub_pc_partition_entry): Rename to ...
35902 (grub_msdos_partition_entry): ... this. Update all users.
35903 (grub_pc_partition_mbr): Rename to ...
35904 (grub_msdos_partition_mbr): ... this. Update all users.
35905 (grub_pc_partition): Rename to ...
35906 (grub_msdos_partition): ... this. Update all users.
35907 (grub_pc_partition_is_empty): Rename to ...
35908 (grub_msdos_partition_is_empty): ... this. Update all users.
35909 (grub_pc_partition_is_extended): Rename to ...
35910 (grub_msdos_partition_is_extended): ... this. Update all users.
35911 (grub_pc_partition_is_bsd): Rename to ...
35912 (grub_msdos_partition_is_bsd): ... this. Update all users.
35913
35914 * conf/common.rmk (amiga_mod_SOURCES, amiga_mod_CFLAGS)
35915 (amiga_mod_LDFLAGS, apple_mod_SOURCES, apple_mod_CFLAGS)
35916 (apple_mod_LDFLAGS, msdos_mod_SOURCES, msdos_mod_CFLAGS)
35917 (msdos_mod_LDFLAGS, sun_mod_SOURCES, sun_mod_CFLAGS)
35918 (sun_mod_LDFLAGS, acorn_mod_SOURCES, acorn_mod_CFLAGS)
35919 (acorn_mod_LDFLAGS, gpt_mod_SOURCES, gpt_mod_CFLAGS)
35920 (gpt_mod_LDFLAGS): Rename to ...
35921 (part_amiga_mod_SOURCES, part_amiga_mod_CFLAGS, part_amiga_mod_LDFLAGS)
35922 (part_apple_mod_SOURCES, part_apple_mod_CFLAGS, part_apple_mod_LDFLAGS)
35923 (part_msdos_mod_SOURCES, part_msdos_mod_CFLAGS, part_msdos_mod_LDFLAGS)
35924 (part_sun_mod_SOURCES, part_sun_mod_CFLAGS, part_sun_mod_LDFLAGS)
35925 (part_acorn_mod_SOURCES, part_acorn_mod_CFLAGS, part_acorn_mod_LDFLAGS)
35926 (part_gpt_mod_SOURCES, part_gpt_mod_CFLAGS)
35927 (part_gpt_mod_LDFLAGS): ... this.
35928 (pkglib_MODULES): Prefix partition modules with `part_'. Rename
35929 `pcpart.mod' to `msdospart.mod'.
35930 (pcpart_mod_SOURCES, pcpart_mod_CFLAGS, pcpart_mod_LDFLAGS): Rename
35931 to ...
35932 (msdospart_mod_SOURCES, msdospart_mod_CFLAGS)
35933 (msdospart_mod_LDFLAGS): ... this.
35934
c11fded5 359352009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
35936
35937 * loader/i386/bsd.c (freebsd_opts): Rewritten to use extcmd.
35938 (openbsd_opts): Likewise.
35939 (netbsd_opts): Likewise.
35940 (freebsd_flags): Added 0 terminator.
35941 (openbsd_flags): Likewise.
35942 (netbsd_flags): Likewise.
35943 (grub_bsd_parse_flags): Rewritten to use extcmd. All users updated.
35944 (grub_cmd_freebsd): Transformed into extended command.
35945 (grub_cmd_openbsd): Likewise.
35946 (grub_cmd_netbsd): Likewise.
35947 (cmd_freebsd): Changed type to grub_extcmd_t.
35948 (cmd_openbsd): Likewise.
35949 (cmd_netbsd): Likewise.
35950 (GRUB_MOD_INIT (bsd)): Register grub_cmd_freebsd, grub_cmd_netbsd and
35951 grub_cmd_openbsd as extended commands.
35952 (GRUB_MOD_FINI (bsd)): Use grub_unregister_extcmd for cmd_freebsd,
35953 cmd_netbsd and cmd_openbsd
35954
11d1c769 359552009-08-22 Vladimir Serbinenko <phcoder@gmail.com>
35956
35957 * commands/xnu_uuid.c (transform): Use grub_memcpy instead of memcpy.
35958
7a9094e5 359592009-08-21 Pavel Roskin <proski@gnu.org>
35960
5496c37e 35961 * Makefile.in (install-local): When checking if a file is in the
35962 build directory, use "test -e" to detect symlinks.
35963
7a9094e5 35964 * Makefile.in (install-local): Remove all files in
35965 $(DESTDIR)$(pkglibdir) before installing new files there.
35966
e53cea11 359672009-08-18 Felix Zielcke <fzielcke@z-51.de>
35968
35969 * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Use
35970 grub-mkelfimage.
35971
9aced544 359722009-08-18 Felix Zielcke <fzielcke@z-51.de>
35973
35974 * util/grub-mkconfig.in: Don't use gfxterm by default if not
35975 explicitly specified by the user.
35976
b7da6bab 359772009-08-18 Pavel Roskin <proski@gnu.org>
35978
35979 * include/grub/fbfill.h (struct grub_video_fbrender_target): Use
35980 grub_uint8_t pointer for data.
35981 * include/grub/fbutil.h (struct grub_video_fbblit_info):
35982 Likewise.
35983 * video/fb/fbutil.c: Remove unnecessary casts.
35984
19f1b335 359852009-08-17 Michal Suchanek <hramrach@centrum.cz>
35986
35987 VBE cleanup.
35988
35989 * video/i386/pc/vbe.c (vbe_mode_in_use): Removed (duplicate).
35990 (grub_vbe_set_video_mode): Save active mode info
35991 only after setting the mode.
35992 (grub_video_vbe_setup): Call 'grub_vbe_set_video_mode' with NULL as
35993 second argument.
35994
2f467aa9 359952009-08-17 Michal Suchanek <hramrach@centrum.cz>
35996
35997 Rename variables for clarity.
35998
35999 * video/i386/pc/vbe.c (active_mode_info): Renamed to ...
36000 (active_vbe_mode_info): ... this. All users updated.
36001 (framebuffer): Rename 'active_mode' to 'active_vbe_mode'.
36002 All users updated.
36003 (initial_mode): Rename to ...
36004 (initial_vbe_mode): ... this. All users updated.
36005 (mode_in_use): Rename to ..
36006 (vbe_mode_in_use): ... this. All users updated.
36007 (mode_list): Rename to ..
36008 (vbe_mode_list): ... this. All users updated.
36009 (grub_vbe_set_video_mode): Rename 'mode' to 'vbe_mode', 'mode_info' to
36010 'vbe_mode_info' and 'old_mode' to 'old_vbe_mode'.
36011 (grub_video_vbe_init): Rename 'rm_mode_list' to 'rm_vbe_mode_list' and
36012 'mode_list_size' to 'vbe_mode_list_size'.
36013 (grub_video_vbe_setup): Rename 'mode_info' to 'vbe_mode_info',
36014 'best_mode_info' to 'best_vbe_mode_info' and
36015 'best_mode' to 'best_vbe_mode'
36016
6025fcd7 360172009-08-17 Michal Suchanek <hramrach@centrum.cz>
36018
36019 Remove duplicate grub_video_fb_get_video_ptr.
36020
36021 * include/grub/fbutil.h (get_data_ptr): Rename to ...
36022 (grub_video_fb_get_video_ptr): ... this.
36023 * include/grub/video_fb.h (grub_video_fb_get_video_ptr): Removed.
36024 * video/fb/fbutil.c: Add comment about addressing.
36025 (get_data_ptr): Rename to ...
36026 (grub_video_fb_get_video_ptr): ... this. All users updated.
36027 * video/fb/video_fb.c (grub_video_fb_get_video_ptr): Remove.
36028
cc8c6faf 360292009-08-17 Robert Millan <rmh.grub@aybabtu.com>
36030
36031 * fs/fat.c (grub_fat_read_data): Remove `#if 0' braces around the
36032 grub_dprintf() that was just added.
36033
08aa61f0 360342009-08-17 Robert Millan <rmh.grub@aybabtu.com>
36035
36036 * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT)
36037 (DEFAULT_VIDEO_MODE): Remove macros.
36038 (grub_linux_boot): Remove assumption that Linux has FB support,
36039 and use "text" as default video mode.
36040
7cef4f75 360412009-08-15 Vladimir Serbinenko <phcoder@gmail.com>
36042
36043 * fs/affs.c (grub_affs_read_symlink): Change leftover grub_printf into
36044 grub_dprintf.
36045 * fs/fat.c (grub_fat_read_data): Likewise.
36046
e1f39873 360472009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
36048
36049 * loader/i386/multiboot.c (grub_multiboot): Don't pass filename to
36050 payload.
36051 (grub_module): Likewise.
36052
c166d79e 360532009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
36054
36055 * loader/i386/multiboot.c (grub_multiboot_unload): Don't free mbi and
36056 mbi->cmdline but free playground.
36057
c60cee8e 360582009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
36059
36060 Handle group offset on UFS1.
36061
36062 * fs/ufs.c (grub_ufs_sblock): New field 'cylg_mask'.
36063 (grub_ufs_read_inode) [!MODE_UFS2]: handle cylg_offset and cylg_mask.
36064
c0d8b5d4 360652009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
36066
36067 Split ufs.mod into ufs1.mod and ufs2.mod.
36068
36069 * conf/common.rmk (grub_probe_SOURCES): Add fs/ufs2.c.
36070 (grub_fstest_SOURCES): Likewise.
36071 (pkglib_MODULES): Remove ufs.mod. Add ufs1.mod and ufs2.mod.
36072 (ufs_mod_SOURCES): Remove.
36073 (ufs_mod_CFLAGS): Likewise.
36074 (ufs_mod_LDFLAGS): Likewise.
36075 (ufs1_mod_SOURCES): New variable.
36076 (ufs1_mod_CFLAGS): Likewise.
36077 (ufs1_mod_LDFLAGS): Likewise.
25fbd77a 36078 (ufs2_mod_SOURCES): New variable.
36079 (ufs2_mod_CFLAGS): Likewise.
36080 (ufs2_mod_LDFLAGS): Likewise.
c0d8b5d4 36081 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add fs/ufs2.c.
36082 * conf/i386-efi.rmk (util/i386/efi/grub-mkimage.c_DEPENDENCIES):
36083 Likewise.
36084 (grub_emu_SOURCES): Likewise.
36085 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
36086 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
36087 (grub_setup_SOURCES): Likewise.
36088 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
36089 * conf/sparc64.rmk (grub_emu_SOURCES): Likewise.
36090 (grub_setup_SOURCES): Likewise.
36091 * conf/x86_64-efi.rmk (util/i386/efi/grub-mkimage.c_DEPENDENCIES):
36092 Likewise.
36093 * fs/ufs2.c: New file.
36094 * fs/ufs.c: Separate UFS1 from UFS2 by using preprocessor.
36095
d3539132 360962009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
36097
36098 Framebuffer split.
36099
36100 * commands/i386/pc/vbetest.c (grub_cmd_vbetest): Restore video
36101 subsystem at the end.
36102 * conf/common.rmk (pkglib_MODULES): Add video_fb.mod.
36103 (video_fb_mod_SOURCES): New variable.
36104 (video_fb_mod_CFLAGS): Likewise.
36105 (video_fb_mod_LDFLAGS): Likewise.
36106 * conf/i386-pc.rmk (vbe_mod_SOURCES): Remove video/i386/pc/vbeblit.c,
36107 video/i386/pc/vbefill.c and video/i386/pc/vbeutil.c.
36108 * video/i386/pc/vbeblit.c: Moved from here ...
36109 * video/fb/fbblit.c: ..here. Replaced 'vbe' with 'fb'.
36110 * video/i386/pc/vbefill.c: Moved from here ...
36111 * video/fb/fbfill.c: ..here. Replaced 'vbe' with 'fb'.
36112 * video/i386/pc/vbeutil.c: Moved from here ...
36113 * video/fb/fbutil.c: ..here. Replaced 'vbe' with 'fb'.
36114 * include/grub/i386/pc/vbeblit.h: Moved from here ...
36115 * include/grub/fbblit.h: ... here. Replaced 'vbe' with 'fb'.
36116 * include/grub/i386/pc/vbefill.h: Moved from here ...
36117 * include/grub/fbfill.h: ... here. Replaced 'vbe' with 'fb'.
36118 * include/grub/i386/pc/vbeutil.h: Moved from here ...
36119 * include/grub/fbutil.h: ... here. Replaced 'vbe' with 'fb'.
36120 * include/grub/i386/pc/vbe.h: Moved framebuffer part ...
36121 * include/grub/video_fb.h: ... here. Replaced 'vbe' with 'fb'.
36122 * include/grub/video.h (GRUB_VIDEO_RENDER_TARGET_FRONT_BUFFER): Removed.
36123 (GRUB_VIDEO_RENDER_TARGET_BACK_BUFFER): Likewise.
36124 (grub_video_adapter): Added 'get_info_and_fini'.
36125 (grub_video_get_info_and_fini): New prototype.
36126 (grub_video_set_mode): make modestring const char *.
36127 * loader/i386/linux.c (grub_linux_setup_video): Use
36128 grub_video_get_info_and_fini.
36129 (grub_linux_boot): Move modesetting just before booting.
36130 * loader/i386/pc/xnu.c (grub_xnu_set_video): Use
36131 grub_video_get_info_and_fini.
36132 * video/i386/pc/vbe.c: Moved framebuffer part ...
36133 * video/fb/video_fb.c: ... here. Replaced 'vbe' with 'fb'.
36134 * video/i386/pc/vbe.c (grub_vbe_set_video_mode): Use
36135 grub_video_fbstd_colors and grub_video_fb_set_palette.
36136 (grub_video_vbe_init): Clear 'framebuffer' variable and use
36137 grub_video_fb_init.
36138 (grub_video_vbe_fini): Use grub_video_fb_fini.
36139 (grub_video_vbe_setup): Use framebuffer.render_target instead of
36140 render_target and use grub_video_fb_set_active_render_target and
36141 grub_video_fb_set_palette.
36142 (grub_video_vbe_set_palette): Use grub_video_fb_set_palette.
36143 (grub_video_vbe_set_viewport): Use grub_video_fb_set_viewport.
36144 (grub_video_vbe_adapter): Use framebuffer.
36145 * video/video.c (grub_video_get_info_and_fini): New function.
36146 (grub_video_set_mode): Make modestring const char *.
36147 (GRUB_MOD_INIT(video_video)): Don't set variables to 0 since these
36148 values are already initialised.
36149
d404ee56 361502009-08-14 Pavel Roskin <proski@gnu.org>
36151
36152 * boot/i386/pc/cdboot.S: Use LOCAL for local labels. Eliminate
36153 ABS and APPLE_CC.
36154 * boot/i386/pc/diskboot.S: Likewise.
36155 * boot/i386/pc/lnxboot.S: Likewise. Hardcode the number of code
36156 sectors allow compilation on MacOSX.
36157 * conf/i386-pc.rmk: Enable unconditional compilation of
36158 lnxboot.img.
36159
9a10df16 361602009-08-13 Colin Watson <cjwatson@ubuntu.com>
36161
36162 * util/grub-mkconfig.in: Export GRUB_HIDDEN_TIMEOUT.
36163 * util/grub.d/00_header.in: Enter interruptible sleep if
36164 GRUB_HIDDEN_TIMEOUT is set.
36165
be3c9ca7 361662009-08-13 Yves Blusseau <blusseau@zetam.org>
36167
36168 * include/grub/symbol.h: Add the LOCAL macro.
36169 * boot/i386/pc/boot.S: Use the LOCAL macro for all labels
36170 starting with "L_".
36171
1f9e557e 361722009-08-13 Pavel Roskin <proski@gnu.org>
36173
9ca62843 36174 * boot/i386/pc/boot.S: Remove ABS macro, it's not required by
36175 any modern compilers we support.
36176
1f9e557e 36177 * boot/i386/pc/boot.S: Remove all code dependent on APPLE_CC.
36178 Use local labels starting with "L_" so that Apple assembler
36179 knows they are local.
36180
81623db6 361812009-08-10 Robert Millan <rmh.grub@aybabtu.com>
36182
36183 * include/grub/i386/bsd.h (KERNEL_TYPE_NONE, KERNEL_TYPE_FREEBSD)
36184 (KERNEL_TYPE_OPENBSD, KERNEL_TYPE_NETBSD): Convert to ...
36185 (bsd_kernel_types): ... this enum.
36186
36187 * loader/i386/bsd.c (grub_cmd_freebsd_loadenv, grub_cmd_freebsd_module)
36188 (grub_cmd_freebsd_module_elf): Abort with "You need to load the
36189 kernel first." when `kernel_type' is set to KERNEL_TYPE_NONE.
36190
36191 (grub_bsd_load_aout, grub_bsd_load, grub_cmd_freebsd_loadenv)
36192 (grub_cmd_freebsd_module, grub_cmd_freebsd_module_elf)
36193 (GRUB_MOD_INIT (bsd)): Fix capitalization in a few error
36194 messages.
36195
f5d35e7a 361962009-08-08 Robert Millan <rmh.grub@aybabtu.com>
36197
36198 * util/grub-dumpdevtree: Moved from here ...
36199 * util/i386/efi/grub-dumpdevtree: ... to here.
36200 (hexify): New function. Converts a string to its hex version.
36201 Generate hex versions of "efi" and "device-properties" by calling
36202 hexify() on the ASCII strings rather than by hardcoding numbers.
36203
d1e1d527 362042009-08-08 Robert Millan <rmh.grub@aybabtu.com>
36205
36206 * fs/jfs.c: Update copyright year.
36207
1ebbe064 362082009-08-08 Felix Zielcke <fzielcke@z-51.de>
36209
36210 * util/grub.d/00_header.in: Fix a comment.
36211 * util/grub.d/10_linux.in: Likewise.
36212 * util/grub.d/10_windows.in: Likewise.
36213 * util/grub.d/10_hurd.in: Likewise.
36214
a78c8d24 362152009-08-08 Felix Zielcke <fzielcke@z-51.de>
36216
36217 * util/grub-mkconfig.in: Allow the user to specify the used font
36218 with GRUB_FONT.
36219
29a6b9e8 362202009-08-08 Pavel Roskin <proski@gnu.org>
36221
b5f16cc4 36222 * include/grub/powerpc/libgcc.h: Export __ashrdi3() if
36223 available, xfs.mod needs it now.
36224
2f5cb827 36225 * util/grub-mkconfig_lib.in (version_test_numeric): Don't use
36226 the "g" modifier in sed when the intention is to strip something
36227 once. This fixes comparison of kernels with multiple dashes.
36228
29a6b9e8 36229 * util/grub-mkconfig.in: Define datarootdir, datadir may depend
36230 on it. Add missing space before closing bracket. Fix
36231 misleading formatting.
36232
892a3d98 362332009-08-07 Robert Millan <rmh.grub@aybabtu.com>
36234
36235 * docs/grub.texi: Major overhaul. Remove all sections that are
36236 specific to GRUB Legacy, or mostly composed of Legacy-specific
36237 information.
36238
ed94253f 362392009-08-07 Robert Millan <rmh.grub@aybabtu.com>
36240
36241 * docs/version.texi: New file. Provides version information for
36242 grub.texi.
36243
126d6628 362442009-08-07 Robert Millan <rmh.grub@aybabtu.com>
36245
36246 * docs/grub.texi: Update CVS information to SVN.
36247 Replace outdated "GRUB 2 will include" phrase with "GRUB 2 includes".
36248
998b5aa9 362492009-08-07 Felix Zielcke <fzielcke@z-51.de>
36250
36251 * util/grub-mkconfig.in: Remove a wrong `fi'.
36252
818e094a 362532009-08-07 Felix Zielcke <fzielcke@z-51.de>
36254
36255 * fs/uuid.c (grub_jfs_superblock): New fields unused2 and uuid.
36256 (grub_jfs_uuid): New function.
36257 (grub_jfs_fs): Set uuid field to grub_jfs_uuid.
36258
b969c52f 362592009-08-07 Felix Zielcke <fzielcke@z-51.de>
36260
36261 * util/grub-mkconfig_lib.in (font_path): Move the functionality
36262 of it to ...
36263 * util/grub-mkconfig.in: ... here. Prefer unicode.pf2 and
36264 unifont.pf2 over ascii.pf2. Export LANG=C in case ascii.pf2 gets used.
36265
7a4894cc 362662009-08-07 Robert Millan <rmh.grub@aybabtu.com>
36267
36268 * util/grub.d/10_linux.in (test_numeric): Moved from here ...
36269 * util/grub-mkconfig_lib.in (version_test_numeric): ... to here.
36270 Update all users.
36271
36272 * util/grub.d/10_linux.in (test_gt): Strip any basename prefix,
36273 not just "vmlinu[zx]".
36274 Moved from here ...
36275 * util/grub-mkconfig_lib.in (version_test_gt): ... to here. Update
36276 all users.
36277
36278 * util/grub.d/10_linux.in (find_latest): Moved from here ...
36279 * util/grub-mkconfig_lib.in (version_find_latest): ... to here. Update
36280 all users.
36281
4e2171f8 362822009-08-07 Robert Millan <rmh.grub@aybabtu.com>
36283
36284 * util/grub.d/10_freebsd.in: Use an absolute device path for
36285 `vfs.root.mountfrom'. Set `vfs.root.mountfrom.options=rw'.
36286
6dcfcb32 362872009-08-06 Felix Zielcke <fzielcke@z-51.de>
36288
36289 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Fix
36290 handling of multiple abstraction modules.
36291
f56a8756 362922009-08-04 Robert Millan <rmh.grub@aybabtu.com>
36293
36294 Fix a bug resulting in black screen when loading Linux using a
36295 packed video mode.
36296
36297 * kern/i386/pc/startup.S (grub_vbe_bios_getset_dac_palette_width): New
36298 function.
36299
36300 * include/grub/i386/pc/vbe.h (GRUB_VBE_CAPABILITY_DACWIDTH): New macro.
36301 (grub_vbe_bios_getset_dac_palette_width): New function.
36302 (grub_vbe_bios_get_dac_palette_width)
36303 (grub_vbe_bios_set_dac_palette_width): New macros (act as wrappers for
36304 grub_vbe_bios_getset_dac_palette_width()).
36305
36306 * video/i386/pc/vbe.c (grub_vbe_probe): Use `GRUB_VBE_STATUS_OK' to
36307 check for return status.
36308 (grub_vbe_get_video_mode_info): When getting information for a packed
36309 mode (<= 8 bpp), obtain DAC palette width using
36310 grub_vbe_bios_getset_dac_palette_width(), and use that for initializing
36311 {red,green,blue}_mark_size.
36312
222671b2 363132009-08-04 Felix Zielcke <fzielcke@z-51.de>
36314
ecb1a6d9 36315 * commands/search.c (options): Fix help output to match actual code.
222671b2 36316
f84114f5 363172009-08-02 Vladimir Serbinenko <phcoder@gmail.com>
36318
36319 * commands/hexdump.c (grub_cmd_hexdump): Use grub_disk_read instead
36320 of homegrown code.
36321
bd288a20 363222009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
e768b770 36323
36324 * util/hostfs.c (grub_hostfs_dir): Don't use DT_DIR: It doesn't work
36325 on XFS or ReiserFS.
36326
8aab5e25 363272009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
36328
36329 Support Apple partition map with sector size different from 512 bytes.
36330
36331 * partmap/apple.c (grub_apple_header): New field 'blocksize'.
36332 (apple_partition_map_iterate): Respect 'aheader.blocksize'
36333 and 'apart.partmap_size'.
36334
6ad6258a 363352009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
363362009-08-01 Robert Millan <rmh.grub@aybabtu.com>
36337
36338 Fix cpuid command.
36339
36340 * commands/i386/cpuid.c (options): New variable.
36341 (grub_cmd_cpuid): Return real error.
36342 (GRUB_MOD_INIT(cpuid)): Declare options.
36343
67459bc6 363442009-07-31 Vladimir Serbinenko <phcoder@gmail.com>
36345
36346 * partmap/pc.c (pc_partition_map_iterate): Check that boot flags are
36347 valid.
36348
fbc6ab54 363492009-07-31 Bean <bean123ch@gmail.com>
36350
36351 * fs/xfs.c (grub_xfs_sblock): Change unused5 field to log2_sect and
36352 log2_inode.
36353 (grub_fshelp_node): Move inode field to the end.
36354 (grub_xfs_data): Remove inode field.
36355 (grub_xfs_inode_block): Calculate inode size using sblock.
36356 (grub_xfs_inode_offset): Likewise.
36357 (grub_xfs_read_inode): Calculate inode size using sblock.
36358 (grub_xfs_read_block): Replace XFS_INODE_EXTENTS with nrec.
36359 (grub_xfs_iterate_dir): Calculate inode size using sblock.
36360 (grub_xfs_mount): Use grub_zalloc instead of grub_malloc. Realloc data
36361 to match inode size.
36362 (grub_xfs_dir): goto mount_fail when mount fails, as data->diropen is
36363 not accessible when data is null.
36364 (grub_xfs_open): Likewise.
36365
f45d6cfc 363662009-07-31 Bean <bean123ch@gmail.com>
36367
36368 * disk/lvm.c (grub_lvm_scan_device): Ignore extra copy of metadata.
36369 Don't change pv->disk if it's already set.
36370
36371 * disk/raid.c (grub_raid_scan_device): Merge this function into ...
36372 (grub_raid_register): ... here.
36373 (grub_raid_rescan): Removed.
36374
36375 * include/grub/raid.h (grub_raid_rescan): Removed.
36376
36377 * util/grub-fstest.c: Remove include file <grub/raid.h>.
36378 (fstest): Replace grub_raid_rescan with module fini function followed
36379 by init function.
36380
36381 * util/grub-probe.c: Add include file <grub/raid.h>.
36382 (probe_raid_level): New function.
36383 (probe): Detect abstraction by walking the disk device, support two
36384 level of abstraction (LVM on RAID) when detecting partition map.
36385
24443b5a 363862009-07-31 Pavel Roskin <proski@gnu.org>
36387
36388 * disk/raid5_recover.c (grub_raid5_recover): Revert conversion
36389 to grub_zalloc(), it was erroneous.
36390 Reported by Bean <bean123ch@gmail.com>
36391
a275d9e7 363922009-07-30 Vladimir Serbinenko <phcoder@gmail.com>
36393
36394 * util/i386/pc/grub-setup.c (setup): Check that no partition is in
ad8ea1f4 36395 embedding zone, not only the first one.
a275d9e7 36396
56c5a47f 363972009-07-29 Joe Auricchio <jauricchio@gmail.com>
36398
36399 * term/gfxterm.c (clear_char): New function.
36400 (grub_virtual_screen_setup): Use clear_char.
36401 (scroll_up): Likewise.
36402 (grub_virtual_screen_cls): Likewise.
36403
67bb323a 364042009-07-29 Felix Zielcke <fzielcke@z-51.de>
36405
36406 * util/deviceiter.c (get_acceleraid_disk_name): New static
36407 function.
36408 (grub_util_iterate_devices): Handle Accelraid devices.
36409 * util/hostdisk.c (convert_system_partition_to_system_disk): Likewise.
36410
388a7c75 364112009-07-28 Robert Millan <rmh.grub@aybabtu.com>
36412
36413 * loader/i386/linux.c (grub_cmd_linux): Use ',' rather than ';' as
36414 separator for the suggested gfxpayload string (';' collides with the
36415 parser and needs escaping).
36416
3bb7abcf 364172009-07-28 Vladimir Serbinenko <phcoder@gmail.com>
36418
36419 * loader/i386/multiboot_helper.S (grub_multiboot_backward_relocator):
36420 Clear direction flag before jumping to OS.
36421 (grub_multiboot2_real_boot): Likewise.
36422
2ddd36d7 364232009-07-28 Felix Zielcke <fzielcke@z-51.de>
36424
36425 * util/i386/pc/grub-install: Fix parsing of --disk-module
36426 option.
36427
c521b62b 364282009-07-28 Felix Zielcke <fzielcke@z-51.de>
36429
36430 * util/i386/pc/grub-setup.c (setup): Fix 2 incorrect checks
36431 when embedding.
36432
880e0a0c 364332009-07-26 Felix Zielcke <fzielcke@z-51.de>
36434
36435 * util/grub-mkconfig.in (package_version): New variable.
36436 Use it do display the version.
36437
2366e356 364382009-07-25 Felix Zielcke <fzielcke@z-51.de>
36439
36440 * kern/file.c (grub_file_open): Revert to previous check with
36441 grub_errno.
36442
7ad8c80e 364432009-07-25 Vladimir Serbinenko <phcoder@gmail.com>
36444
36445 * commands/probe.c (GRUB_MOD_INIT (probe)): Remove "[--target=target]"
36446 from help line. It's out of sync with code.
36447
72b9658b 364482009-07-25 Vladimir Serbinenko <phcoder@gmail.com>
36449
36450 * kern/parser.c (grub_parser_execute): Fix a bug causing truncated
36451 entries on failed boot.
36452
77435277 364532009-07-25 Felix Zielcke <fzielcke@z-51.de>
36454
36455 * kern/file.c (grub_file_open): Fix an error check.
36456
fcaa8b21 364572009-07-24 Vladimir Serbinenko <phcoder@gmail.com>
36458
35d16c74 36459 * util/i386/pc/grub-setup.c (setup): Fix segmentation fault when
36460 partition map couldn't be identified.
fcaa8b21 36461
48904cd1 364622009-07-23 Pavel Roskin <proski@gnu.org>
36463
ef3c317f 36464 * commands/xnu_uuid.c (transform): Use GRUB_CPU_WORDS_BIGENDIAN
36465 instead of WORDS_BIGENDIAN. Use grub_le_to_cpu32(), so that the
36466 case of little endian words becomes just an optimization.
36467 Respect const modifier.
ad8ea1f4 36468 (md5_final): Use code that doesn't depend on endianness.
ef3c317f 36469
48904cd1 36470 * include/grub/misc.h (ALIGN_UP): Cast align to the type of addr
36471 to avoid loss of upper bits if align is unsigned and shorter
36472 than addr.
36473
260c9a89 364742009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
36475
36476 UUID support for UFS
36477
36478 * fs/ufs.c (grub_ufs_sblock): Add uuidhi and uuidlow.
36479 (grub_ufs_uuid): New function.
36480 (grub_ufs_fs): add .uuid
36481
f76ce889 364822009-07-21 Pavel Roskin <proski@gnu.org>
36483
36484 * kern/dl.c (grub_dl_check_header): Make static.
36485
6a6cbcaf 364862009-07-21 Felix Zielcke <fzielcke@z-51.de>
36487
36488 * util/grub.d/30_os-prober.in: Remove unused CHAINROOT. Don't
36489 add drivemap for Vista. It breaks Windows 7.
36490
cffcddb2 364912009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
36492
36493 * fs/ufs.c (grub_ufs_sblock): Fix offset of mtime2 which was off by
36494 128 bytes
36495
1ef44b80 364962009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
36497
36498 Add BFS support
36499
36500 * conf/common.rmk (grub_probe_SOURCES): Add fs/befs.c.
36501 (grub_fstest_SOURCES): Likewise.
36502 (pkglib_MODULES): Add befs.mod.
36503 (befs_mod_SOURCES): New variable.
36504 (befs_mod_CFLAGS): Likewise.
36505 (befs_mod_LDFLAGS): Likewise.
36506 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
36507 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
36508 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
36509 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
36510 (grub_setup_SOURCES): Likewise.
36511 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
36512 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
36513 (grub_setup_SOURCES): Likewise.
36514 * fs/befs.c: New file.
36515 * fs/afs.c (GRUB_AFS_FSNAME): New declaration.
36516 (GRUB_AFS_SBLOCK_SECTOR): Likewise.
36517 (GRUB_AFS_SBLOCK_MAGIC1) [MODE_BFS]: New conditional declaration.
36518 (GRUB_AFS_BTREE_MAGIC) [MODE_BFS]: Likewise
36519 (B_KEY_INDEX_ALIGN): New declaration.
36520 (B_KEY_INDEX_OFFSET): Use B_KEY_INDEX_ALIGN.
36521 (grub_afs_bnode) [MODE_BFS]: Make key_count and key_size 16-bit
36522 (grub_afs_btree) [MODE_BFS]: New conditional declaration.
36523 (grub_afs_sblock) [MODE_BFS]: Remove link_count.
36524 (grub_afs_validate_sblock) [MODE_BFS]: Support BFS
36525 (grub_afs_mount) [MODE_BFS]: Likewise.
36526 (grub_afs_dir) [MODE_BFS]: Divide mtime by 65536 and not 1000000.
36527 (grub_afs_fs): Use GRUB_AFS_FSNAME
36528 (GRUB_MOD_INIT (afs)) [MODE_BFS]: Rename to ...
36529 (GRUB_MOD_INIT (befs)) [MODE_BFS]: ... this
36530 (GRUB_MOD_FINI (afs)) [MODE_BFS]: Rename to ...
36531 (GRUB_MOD_FINI (befs)) [MODE_BFS]: ... this
36532
4f253044 365332009-07-19 Yves BLUSSEAU <yves.grub-devel@zetam.org>
36534
36535 * util/getroot.c (find_root_device): Add support for MacOSX.
36536 * util/hostdisk.c: Likewise.
36537
57a55913 365382009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
36539
36540 * font/font.c (find_glyph): Check whether a font is present to avoid
36541 segmentation fault.
75421ca9 36542
365432009-07-20 Joe Auricchio <jauricchio@gmail.com>
04c7c429 36544
36545 * term/gfxterm.c (grub_virtual_screen_setup): Clear virtual_screen.
36546
e98cd0c2 365472009-07-20 Pavel Roskin <proski@gnu.org>
36548
36549 * configure.ac: Trim excessively wordy excuses.
36550
1d2d169a 365512009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
36552
36553 Add symlink, mtime and label support to AtheFS.
36554
36555 * fs/afs.c (grub_afs_sblock): Declare `name' as char.
36556 (grub_afs_iterate_dir): Handle symlinks.
36557 (grub_afs_open): Use grub_afs_read_symlink.
36558 (grub_afs_dir): Likewise.
36559 Pass mtime.
36560 (grub_afs_label): New function.
36561 (grub_afs_fs): Add grub_afs_label.
36562 (grub_afs_read_symlink): New function.
36563
186f3189 365642009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
36565
36566 Fix AtheFS support.
36567
36568 * fs/afs.c: Fix comments style.
36569 (grub_afs_blockrun): Declare as packed.
36570 (grub_afs_datastream): Likewise.
36571 (grub_afs_bnode): Likewise.
36572 (grub_afs_btree): Likewise.
36573 (grub_afs_sblock): Likewise.
36574 Declare `name' as char.
36575 (grub_afs_inode): Declare as packed.
36576 Change void *vnode to grub_uint32_t unused.
36577 (grub_afs_iterate_dir): Check that key_size is positive.
36578 (grub_afs_mount): Don't read superblock twice.
75421ca9 36579 (grub_afs_dir): Don't free node in case of error,
186f3189 36580 grub_fshelp_find_file already handles this.
36581 (grub_afs_open): Likewise.
36582
5680109e 365832009-07-19 Pavel Roskin <proski@gnu.org>
36584
36585 * Makefile.in: Remove LIBLZO and enable_lzo.
36586 * conf/i386-pc.rmk: Remove lzo support.
36587 * configure.ac: Remove checks for lzo, don't define ENABLE_LZMA.
36588 * include/grub/i386/pc/kernel.h: Define ENABLE_LZMA. Remove lzo
36589 support.
36590 * kern/i386/pc/lzo1x.S: Remove.
36591 * kern/i386/pc/startup.S: Remove lzo support.
36592 * util/i386/pc/grub-mkimage.c: Likewise.
36593
ac70fa32 365942009-07-19 Vladimir Serbinenko <phcoder@gmail.com>
36595
36596 * disk/usbms.c (grub_usbms_transfer): Fix double semicolon.
36597 * fs/xfs.c (grub_xfs_dir): Likewise.
36598 * fs/afs.c (grub_afs_dir): Likewise.
36599 * fs/iso9660.c (grub_iso9660_iterate_dir): Likewise.
36600 (grub_iso9660_open): Likewise.
36601 * fs/jfs.c (grub_jfs_open): Likewise.
36602 * fs/ext2.c (grub_ext2_dir): Likewise.
36603 * include/grub/macho.h (grub_macho_fat_arch): Likewise.
36604 * script/sh/lexer.c (grub_script_yylex): Likewise.
75421ca9 36605
eab58da2 366062009-07-16 Pavel Roskin <proski@gnu.org>
36607
d2838156 36608 * configure.ac: Never add "-c" to CFLAGS.
36609
55c70904 36610 * configure.ac: Fix incorrect comparison for grub_cv_cc_efiemu.
36611
43e6200c 36612 * configure.ac: Fix wrong use of grub_cv_cc_no_red_zone where
36613 grub_cv_cc_efiemu should be used.
36614
ce7a733d 36615 * configure.ac: Typo fixes.
36616
eab58da2 36617 * kern/mm.c (grub_zalloc): New function.
36618 (grub_debug_zalloc): Likewise.
36619 * include/grub/mm.h: Declare grub_zalloc() and
36620 grub_debug_zalloc().
36621 * util/misc.c (grub_zalloc): New function.
36622 * bus/usb/uhci.c (grub_uhci_pci_iter): Use grub_zalloc()
36623 instead of grub_malloc(), remove unneeded initializations.
36624 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Likewise.
36625 * commands/extcmd.c (grub_extcmd_dispatcher): Likewise.
36626 * commands/parttool.c (grub_cmd_parttool): Likewise.
36627 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Likewise.
36628 * disk/raid5_recover.c (grub_raid5_recover): Likewise.
36629 * disk/raid6_recover.c (grub_raid6_recover): Likewise.
36630 * disk/usbms.c (grub_usbms_finddevs): Likewise.
36631 * efiemu/mm.c (grub_efiemu_request_memalign): Likewise.
36632 * efiemu/pnvram.c (grub_efiemu_pnvram): Likewise.
36633 (grub_cmd_efiemu_pnvram): Likewise.
36634 * fs/i386/pc/pxe.c (grub_pxefs_open): Likewise.
36635 * fs/iso9660.c (grub_iso9660_mount): Likewise.
36636 (grub_iso9660_iterate_dir): Likewise.
36637 * fs/jfs.c (grub_jfs_opendir): Likewise.
36638 * fs/ntfs.c (list_file): Likewise.
36639 (grub_ntfs_mount): Likewise.
36640 * kern/disk.c (grub_disk_open): Likewise.
36641 * kern/dl.c (grub_dl_load_core): Likewise.
36642 * kern/elf.c (grub_elf_file): Likewise.
36643 * kern/env.c (grub_env_context_open): Likewise.
36644 (grub_env_set): Likewise.
36645 (grub_env_set_data_slot): Likewise.
36646 * kern/file.c (grub_file_open): Likewise.
36647 * kern/fs.c (grub_fs_blocklist_open): Likewise.
36648 * loader/i386/multiboot.c (grub_module): Likewise.
36649 * loader/xnu.c (grub_xnu_create_key): Likewise.
36650 (grub_xnu_create_value): Likewise.
36651 * normal/main.c (grub_normal_add_menu_entry): Likewise.
36652 (read_config_file): Likewise.
36653 * normal/menu_entry.c (make_screen): Likewise.
36654 * partmap/sun.c (sun_partition_map_iterate): Likewise.
36655 * script/sh/lexer.c (grub_script_lexer_init): Likewise.
36656 * script/sh/script.c (grub_script_parse): Likewise.
36657 * video/bitmap.c (grub_video_bitmap_create): Likewise.
36658 * video/readers/jpeg.c (grub_video_reader_jpeg): Likewise.
36659 * video/readers/png.c (grub_png_output_byte): Likewise.
36660 (grub_video_reader_png): Likewise.
36661
830afef7 366622009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
5ce5507f 36663
36664 Enable all targets that can be built by default
36665
830afef7 36666 * configure.ac: enable efiemu runtime, grub-emu, grub-emu-usb,
5ce5507f 36667 grub-mkfont and grub-fstest if they can be built
36668
ee293aee 366692009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
36670
36671 Fix hang and segmentation fault in grub-emu-usb
36672
36673 * disk/scsi.c (grub_scsi_open): return err and not grub_errno
36674 * util/usb.c (grub_libusb_devices): likewise
36675 (grub_libusb_init): rename to ...
36676 (GRUB_MOD_INIT (libusb)):...this
36677 (grub_libusb_fini): rename to ..
36678 (GRUB_MOD_FINI (libusb)):...this
36679 * disk/usbms.c (grub_usbms_transfer): fix retry logic
36680 * include/grub/disk.h (grub_raid_init): removed, it's useless
36681 (grub_raid_fini): likewise
36682 (grub_lvm_init): likewise
36683 (grub_lvm_fini): likewise
36684 * util/grub-emu.c (main): don't call grub_libusb_init, it's done
36685 by grub_init_all
36686
94414221 366872009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
36688
36689 Fix libusb
36690
36691 * Makefile.in (LIBUSB): new macro
36692 * genmk.rb (Utility/print_tail): new method
36693 (Utility/rule): use intermediary variable #{prefix}_OBJECTS
36694 (top level): call util.print_tail at the end.
36695
59ade63d 366962009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
36697
36698 Make FreeBSD accept zpool.cache
36699
36700 * loader/i386/bsd.c (grub_freebsd_add_meta_module): spoof filename if
36701 type is /boot/zfs/zpool.cache
36702
a58da8c7 367032009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
36704
36705 Fix 64-bit efiemu
36706
36707 * include/grub/efiemu/efiemu.h (grub_efiemu_configuration_table64_t):
36708 correct wrong typedef
36709 * efiemu/prepare.c (SUFFIX (grub_efiemu_prepare)): minor style fixes
36710
20591577 367112009-07-15 Pavel Roskin <proski@gnu.org>
36712
560ca572 36713 * include/grub/disk.h (struct grub_disk_dev): Use enum for id.
36714 * kern/disk.c (struct grub_disk_cache): Likewise.
36715
e8e8e4fd 36716 * commands/probe.c (options): Typo fix.
36717
fde24e10 36718 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_BPB_END):
36719 Increase to 0x5a to accommodate FAT32. Adjust other offsets
36720 accordingly.
36721 Original patch by Yves Blusseau <yves.grub-devel@zetam.org>
36722
379c54c1 36723 * boot/i386/pc/boot.S (general_error_string): Add DOS newline at
36724 the end of "Error" to make the message more readable.
36725
7bd8f5bf 36726 * boot/i386/pc/boot.S (kernel_segment): Remove.
36727 (copy_buffer): Use GRUB_BOOT_MACHINE_KERNEL_ADDR in segment 0
36728 for destination.
36729
40b132c5 36730 * boot/i386/pc/boot.S (boot_version): Remove.
36731 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_VER_MAJ):
36732 Remove.
36733
20591577 36734 * include/grub/i386/pc/boot.h: Sort all offsets.
36735 (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Remove, it's unused.
36736 (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Likewise.
36737 * boot/i386/pc/boot.S: Assert location of every offset listed in
36738 include/grub/i386/pc/boot.h.
36739
2df32b2c 367402009-07-13 Pavel Roskin <proski@gnu.org>
36741
44b5d879 36742 * include/grub/i386/coreboot/machine.h: Rename
36743 GRUB_MACHINE_LINUXBIOS to GRUB_MACHINE_COREBOOT.
36744 * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Allow
36745 multiboot 1 for GRUB_MACHINE_COREBOOT and GRUB_MACHINE_QEMU.
36746
17dc3751 36747 * kern/dl.c: Force native word size to suppress warnings when
36748 compiling grub-emu.
36749
2df32b2c 36750 * kern/device.c (grub_device_iterate): Change struct part_ent to
36751 hold the name, not a pointer to it. Use one grub_malloc() per
36752 partition, not two. Free partition_name if grub_malloc() fails.
36753 Set ents to NULL only before grub_partition_iterate() is called.
36754
75c59f59 367552009-07-11 Bean <bean123ch@gmail.com>
36756
36757 * kern/ieee1275/openfw.c (grub_children_iterate): Fix size of
36758 childname.
36759
0ae1bf88 367602009-07-10 Bean <bean123ch@gmail.com>
367612009-07-10 Robert Millan <rmh.grub@aybabtu.com>
36762
36763 * kern/ieee1275/openfw.c (grub_children_iterate)
36764 (grub_devalias_iterate): Fix size evaluation for property or path
36765 strings, which was broken since r2132.
36766
8279cade 367672009-07-07 Pavel Roskin <proski@gnu.org>
36768
7d8a52d3 36769 * commands/search.c (search_file): Merge into ...
36770 (search_fs): ... this. Accept search type as argument.
36771 (grub_cmd_search): Pass search type to search_fs().
36772
25f9a05a 36773 * include/grub/util/console.h: New file.
36774 * util/console.c: Use it instead of grub/machine/console.h.
36775 * util/grub-emu.c: Likewise.
36776
8279cade 36777 * lib/arg.c (find_long_option): Remove.
36778 (find_long): Add `len' argument, make `s' const char *.
36779 (grub_arg_parse): Parse long options in place, not in a
36780 temporary buffer.
36781
4a11b60f 367822009-07-06 Pavel Roskin <proski@gnu.org>
36783
99f68041 36784 * commands/search.c (search_fs): Fix potential NULL pointer
36785 dereference.
36786
4a11b60f 36787 * commands/search.c (search_fs): Replace QUID macro with quid_fn
36788 function pointer.
36789
e110f4de 367902009-07-06 Daniel Mierswa <impulze@impulze.org>
36791
36792 * commands/search.c (search_fs): Use grub_strcasecmp() for UUID
36793 comparison.
36794
46eeb6a2 367952009-07-05 Pavel Roskin <proski@gnu.org>
36796
bab74958 36797 * include/grub/i386/linux.h (struct linux_kernel_params):
36798 Restore padding3, it's still needed.
36799
46eeb6a2 36800 * util/grub.d/10_freebsd.in: Fix spelling of `device.hints' on
36801 FreeBSD.
36802 * util/osdetect.lua: Likewise.
36803
b4a1dc79 368042009-07-05 Bean <bean123ch@gmail.com>
36805
36806 * conf/common.rmk (lua_mode_SOURCES): Add script/lua/lstrlib.c.
36807
36808 * script/lua/grub_lib.c (grub_lua_run): Check input parameter.
36809 (grub_lua_getenv): Likewise.
36810 (grub_lua_setenv): Likewise.
36811 (save_errno): New function.
36812 (push_result): Likewise.
36813 (grub_lua_enum_device): Likewise.
36814 (grub_lua_enum_file): Likewise.
36815 (grub_lua_file_open): Likewise.
36816 (grub_lua_file_close): Likewise.
36817 (grub_lua_file_seek): Likewise.
36818 (grub_lua_file_read): Likewise.
36819 (grub_lua_file_getline): Likewise.
36820 (grub_lua_file_getsize): Likewise.
36821 (grub_lua_file_getpos): Likewise.
36822 (grub_lua_file_eof): Likewise.
36823 (grub_lua_file_exist): Likewise.
36824 (grub_lua_add_menu): Likewise.
36825
36826 * script/lua/grub_lua.h (isupper): New inline function.
36827 (islower): Likewise.
36828 (ispunct): Likewise.
36829 (isxdigit): Likewise.
36830 (strcspn): Change to normal function.
36831 (strpbkr): New function declaration.
36832 (memchr): Likewise.
36833
36834 * script/lua/grub_main.c (scan_str): New function.
36835 (strcspn): Likewise.
36836 (strpbrk): Likewise.
36837 (memchr): Likewise.
36838
36839 * script/lua/linit.c (lualibs): Enable the string library.
36840
36841 * util/osdetect.lua: New file.
36842
2da92295 368432009-07-04 Robert Millan <rmh.grub@aybabtu.com>
36844
36845 * include/grub/i386/linux.h (struct linux_kernel_params): Add
36846 `capabilities' member.
36847
b2582ec9 368482009-07-02 Pavel Roskin <proski@gnu.org>
36849
36850 * genparttoollist.sh: Add missing newline at the end.
36851
32622956 368522009-07-01 Pavel Roskin <proski@gnu.org>
36853
87a7339e 36854 * kern/x86_64/efi/callwrap.S: Add missing newline at the end.
36855
d23af54e 36856 * util/hostdisk.c (open_device): Remove `const' from
36857 `sysctl_size', as sysctlbyname() can change it (in this case it
36858 doesn't actually happen).
36859
c94b18a9 36860 * include/grub/types.h: Define GRUB_LONG_MAX and GRUB_LONG_MIN
36861 using signed long int constants.
36862
c6cd3ef0 36863 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Make `p'
36864 constant to avoid a warning on FreeBSD.
36865
0df63420 36866 * util/hostdisk.c (device_is_wholedisk): Compile only on systems
36867 where it's needed.
36868
999577f1 36869 * Makefile.in: Install include/grub/machine symlink.
36870
6f41557f 36871 * Makefile.in: When installing symlinks, use "cp -fR", which
36872 works on FreeBSD and MacOSX.
36873 From Yves Blusseau <cl7m42e02@sneakemail.com>
36874
c8d22988 36875 * kern/dl.c (grub_dl_resolve_symbol): Make static.
36876 * include/grub/dl.h: Remove grub_dl_resolve_symbol().
36877
1b96e952 36878 * util/misc.c: Move grub_reboot() and grub_halt() ...
36879 * util/grub-emu.c: ... here. Make main_env static.
36880 * include/grub/util/misc.h: Remove main_env.
36881
2ef0084d 36882 * kern/mm.c: Use correct format to print size_t.
36883
32622956 36884 * include/grub/elf.h: Define Elf_Sword and Elf_Xword.
36885 * kern/i386/dl.c: Use ELF symbols without "32" or "64".
36886 * kern/powerpc/dl.c: Likewise.
36887 * kern/sparc64/dl.c: Likewise.
36888 * kern/x86_64/dl.c: Likewise.
36889
3f7f0cd0 368902009-07-01 Robert Millan <rmh.grub@aybabtu.com>
36891
36892 Fix grub-emu build on sparc64-ieee1275.
36893
75421ca9 36894 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Synchronize with ...
3f7f0cd0 36895 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): ... this.
36896
211d06b5 368972009-07-01 Robert Millan <rmh.grub@aybabtu.com>
36898
36899 * util/misc.c: Include `<setjmp.h>' and `<grub/machine/machine.h>'.
36900 (grub_reboot, grub_halt): New functions.
36901
36902 * util/i386/pc/misc.c: Delete. Update all users.
36903 * util/sparc64/ieee1275/misc.c: Likewise.
36904 * util/powerpc/ieee1275/misc.c: Likewise.
36905
aaf53e3c 369062009-07-01 Robert Millan <rmh.grub@aybabtu.com>
36907
36908 * conf/i386.rmk (setjmp_mod_SOURCES)
36909 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Move to ...
36910 * conf/common.rmk (setjmp_mod_SOURCES)
36911 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): ... here, and modify
36912 to use $(target_cpu).
36913 * conf/x86_64-efi.rmk (setjmp_mod_SOURCES)
36914 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Remove.
36915 * conf/powerpc-ieee1275.rmk: Likewise.
36916 * conf/sparc64-ieee1275.rmk: Likewise.
36917
36918 * conf/i386-pc.rmk (kernel_img_SOURCES): Use
36919 $(target_cpu) for kern/$(target_cpu)/dl.c.
36920 * conf/i386-efi.rmk: Likewise.
36921 * conf/i386-ieee1275.rmk: Likewise.
36922 * conf/x86_64-efi.rmk: Likewise.
36923 * conf/i386-coreboot.rmk: Likewise.
36924 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Use
36925 $(target_cpu) for kern/$(target_cpu)/dl.c and for
36926 kern/$(target_cpu)/cache.S.
36927 * conf/sparc64-ieee1275.rmk: Likewise.
36928
a337130b 369292009-07-01 Robert Millan <rmh.grub@aybabtu.com>
36930
36931 * include/grub/i386/linux.h (linux_kernel_params): Change `mmap_size'
36932 type to `grub_uint8_t', and adjust `padding9' accordingly.
36933
c6fe4d53 369342009-06-29 Robert Millan <rmh.grub@aybabtu.com>
36935
b09db61d 36936 * include/grub/i386/linux.h (GRUB_VIDEO_TYPE_TEXT): New macro.
36937
c6fe4d53 36938 * loader/i386/linux.c [__i386__] (grub_linux_boot): Simplify inline
36939 assembly in final jump, using register constraints.
36940
b09db61d 36941 (grub_linux_boot): For text mode, initialize `have_vga' using
36942 GRUB_VIDEO_TYPE_TEXT rather than 0 (this changes its value to 1).
36943
36944 Initialize `video_cursor_x' and `video_cursor_y' as late as possible,
36945 right before the final jump.
36946
36947 Set `video_mode' to 0x3.
36948
36949 Document initialization of `video_page', `video_mode' and
36950 `video_ega_bx'.
36951
28333ad0 369522009-06-29 Robert Millan <rmh.grub@aybabtu.com>
36953
36954 * include/grub/i386/linux.h (GRUB_LINUX_FLAG_QUIET): New macro.
36955 * loader/i386/linux.c (grub_cmd_linux): Recognize "quiet" option,
75421ca9 36956 and set GRUB_LINUX_FLAG_QUIET appropriately.
28333ad0 36957
02164e1b 369582009-06-29 Robert Millan <rmh.grub@aybabtu.com>
36959
36960 Fix build on Debian / sparc.
36961
36962 * configure.ac: Recognize `sparc' target_cpu (as sparc64).
36963
18b6c557 369642009-06-28 Pavel Roskin <proski@gnu.org>
36965
85f2aab6 36966 * kern/i386/qemu/mmap.c (grub_machine_mmap_iterate): Use cast to
36967 fix a warning.
36968
18b6c557 36969 * util/grub.d/10_linux.in: Match SUSE style initrd names.
36970
ad760f81 369712009-06-27 Robert Millan <rmh.grub@aybabtu.com>
36972
36973 * loader/i386/linux.c (grub_linux_boot): Fix uninitialized use of
36974 `err'.
36975
87a4623b 369762009-06-27 Robert Millan <rmh.grub@aybabtu.com>
36977
36978 Revert r2338.
36979
36980 * loader/i386/linux.c (grub_cmd_linux): Don't call grub_error when
36981 file can't be opened. grub_file_open() is already supposed to set
75421ca9 36982 grub_errno / grub_errmsg appropriately.
87a4623b 36983 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
36984
8231fb77 369852009-06-27 Pavel Roskin <proski@gnu.org>
369862009-06-27 Robert Millan <rmh.grub@aybabtu.com>
36987
36988 * include/grub/dl.h: Include grub/elf.h.
36989 (struct grub_dl): Add symtab field.
36990 * kern/dl.c [GRUB_MACHINE_QEMU]: Define
36991 GRUB_MODULES_MACHINE_READONLY.
36992 (grub_dl_resolve_symbols): Populate mod->symtab, making a copy
36993 of the header for read-only modules.
36994 (grub_dl_unload): Free mod->symtab for read-only modules.
36995 * kern/i386/dl.c: Use mod->symtab.
36996 * kern/powerpc/dl.c: Likewise.
36997 * kern/sparc64/dl.c: Likewise.
36998 * kern/x86_64/dl.c: Likewise.
36999
37000 * conf/i386-qemu.rmk: New file.
37001 * kern/i386/qemu/startup.S: Likewise.
37002 * kern/i386/qemu/mmap.c: Likewise.
37003 * boot/i386/qemu/boot.S: Likewise.
37004 * include/grub/i386/qemu/time.h: Likewise.
37005 * include/grub/i386/qemu/serial.h: Likewise.
37006 * include/grub/i386/qemu/kernel.h: Likewise.
37007 * include/grub/i386/qemu/console.h: Likewise.
37008 * include/grub/i386/qemu/boot.h: Likewise.
37009 * include/grub/i386/qemu/init.h: Likewise.
37010 * include/grub/i386/qemu/machine.h: Likewise.
37011 * include/grub/i386/qemu/loader.h: Likewise.
37012 * include/grub/i386/qemu/memory.h: Likewise.
37013
37014 * conf/i386-coreboot.rmk (GRUB_BOOT_MACHINE_LINK_ADDR)
37015 (GRUB_KERNEL_MACHINE_LINK_ADDR): New variables.
37016 [qemu] (pkglib_IMAGES): Add `boot.img'.
37017 [qemu] (boot_img_SOURCES, boot_img_ASFLAGS, boot_img_LDFLAGS)
37018 [qemu] (boot_img_FORMAT): New variables.
37019 [qemu] (bin_UTILITIES): Add `grub-mkimage'.
37020 [qemu] (grub_mkimage_SOURCES, grub_mkimage_CFLAGS): New variables.
37021 [qemu] (kernel_img_SOURCES, kernel_img_HEADERS, kernel_img_CFLAGS)
37022 [qemu] (kernel_img_ASFLAGS, kernel_img_LDFLAGS)
37023 [qemu] (kernel_img_FORMAT): New variables.
37024
37025 * configure.ac: Recognise `i386-qemu'.
37026
37027 * util/i386/pc/grub-mkimage.c (compress_kernel): Add dummy variant
37028 (for no compression).
37029 [GRUB_MACHINE_QEMU] (generate_image): Misc adjustments to produce
37030 a valid i386 ROM image. Make `GRUB_KERNEL_MACHINE_COMPRESSED_SIZE',
37031 `GRUB_KERNEL_MACHINE_INSTALL_DOS_PART' and
37032 `GRUB_KERNEL_MACHINE_INSTALL_BSD_PART' optional features (with
37033 ifdefs).
37034
97fe384e 370352009-06-27 Pavel Roskin <proski@gnu.org>
37036
37037 * efiemu/prepare.c: Eliminate TYPE macro, it makes code hard to
37038 read.
37039 * efiemu/prepare32.c: Likewise.
37040 * efiemu/prepare64.c: Likewise.
37041
c402ab17 370422009-06-26 Pavel Roskin <proski@gnu.org>
37043
37044 * include/grub/types.h: Define GRUB_TARGET_WORDSIZE.
37045 * include/grub/elf.h: Define symbols without "32" or "64" based
37046 on GRUB_TARGET_WORDSIZE.
37047 * include/grub/multiboot2.h: Use GRUB_TARGET_WORDSIZE.
37048 * efiemu/loadcore32.c: Redefine GRUB_TARGET_WORDSIZE, remove own
37049 ELF definitions.
37050 * efiemu/loadcore64.c: Likewise.
37051 * loader/i386/bsd32.c: Likewise.
37052 * loader/i386/bsd64.c: Likewise.
37053 * kern/dl.c: Remove own ELF definitions.
37054 * util/i386/efi/grub-mkimage.c: Likewise.
37055
9bbdfd4d 370562009-06-23 Robert Millan <rmh.grub@aybabtu.com>
37057
37058 * kern/i386/pc/startup.S (real_to_prot): Access `gdtdesc' using
37059 segment 0x0 unconditionally, because the reference generated by
37060 GAS is an absolute address.
37061
a42ce6e9 370622009-06-22 Robert Millan <rmh.grub@aybabtu.com>
37063
37064 * include/grub/i386/kernel.h: Include `<grub/machine/machine.h>'.
37065 [! GRUB_MACHINE_IEEE1275]: Set `GRUB_MOD_ALIGN' to 0x1.
37066
c952cf92 370672009-06-22 Robert Millan <rmh.grub@aybabtu.com>
37068
37069 * commands/search.c (grub_cmd_search): Macroify hardcoded args[]
37070 indexes. Check for -f explicitly.
cc3752ad 37071 (search_file): Improve error message.
37072 (GRUB_MOD_INIT(search)): Add missing `-n' to help output.
c952cf92 37073
132a0a59 370742009-06-22 Robert Millan <rmh.grub@aybabtu.com>
37075
37076 * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): Rename to ...
37077 (GRUB_KERNEL_MACHINE_LINK_ADDR): ... this. Update all users.
37078
387a140c 370792009-06-22 Robert Millan <rmh.grub@aybabtu.com>
37080
37081 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/misc.S'.
37082 * conf/i386-ieee1275.rmk: Likewise.
37083 * conf/i386-coreboot.rmk: Likewise.
37084
37085 * kern/i386/pc/startup.S (grub_stop): Remove function.
37086 * kern/i386/ieee1275/startup.S: Likewise.
37087 * kern/i386/coreboot/startup.S: Likewise.
37088 * kern/i386/misc.S (grub_stop): New function.
37089
41da9665 370902009-06-22 Robert Millan <rmh.grub@aybabtu.com>
37091
37092 * kern/i386/pc/startup.S (real_to_prot): Move from here ...
37093 * kern/i386/realmode.S (real_to_prot): ... to here.
37094
bf337234 370952009-06-22 Robert Millan <rmh.grub@aybabtu.com>
37096
37097 * conf/i386-ieee1275.rmk (pkglib_PROGRAMS): Replace `kernel.elf'
37098 with `kernel.img'.
37099 (kernel_elf_SOURCES): Rename to ...
37100 (kernel_img_SOURCES): ... this.
37101 (kernel_elf_HEADERS): Rename to ...
37102 (kernel_img_HEADERS): ... this. Update all users.
37103 (kernel_elf_ASFLAGS): Rename to ...
37104 (kernel_img_ASFLAGS): ... this.
37105 (kernel_elf_CFLAGS): Rename to ...
37106 (kernel_img_CFLAGS): ... this.
37107 (kernel_elf_LDFLAGS): Rename to ...
37108 (kernel_img_LDFLAGS): ... this.
37109 * conf/i386-coreboot.rmk: Likewise.
37110 * conf/powerpc-ieee1275.rmk: Likewise.
37111
37112 * util/elf/grub-mkimage.c (add_segments): Replace "kernel.elf"
37113 with "kernel.img".
37114
f52196ff 371152009-06-21 Pavel Roskin <proski@gnu.org>
37116
c3cee413 37117 * loader/powerpc/ieee1275/linux.c (offset_phdr): Fix prototypes
37118 to match nested functions.
37119 * loader/sparc64/ieee1275/linux.c: Likewise.
37120
f52196ff 37121 * conf/i386-ieee1275.rmk: Define kernel_elf_ASFLAGS.
37122
58750afc 371232009-06-21 Robert Millan <rmh.grub@aybabtu.com>
37124
37125 * configure.ac: Enable `END_SYMBOL' / `BSS_START_SYMBOL' test on
37126 all i386 platforms.
37127
15355c7d 371282009-06-21 Robert Millan <rmh.grub@aybabtu.com>
37129
37130 Fix asm file handling on ELF, and remove workarounds.
37131
37132 * genmk.rb (class Programs): Detect assembly files, and set ASFLAGS
75421ca9 37133 and -DASM_FILE=1 appropriately (copied from `class Images' stanza).
15355c7d 37134 * kern/i386/ieee1275/startup.S (ASM_FILE): Remove macro.
37135 * kern/i386/coreboot/startup.S (ASM_FILE): Likewise.
37136
3f3ec72b 371372009-06-21 Vladimir Serbinenko <phcoder@gmail.com>
37138
37139 Load BSD ELF modules
37140
37141 * conf/i386-pc.rmk (bsd_mod_SOURCES): Add loader/i386/bsd32.c
37142 and loader/i386/bsd64.c
37143 * include/grub/i386/bsd.h (FREEBSD_MODTYPE_MODULE): Remove
37144 (FREEBSD_MODTYPE_ELF_MODULE): New definition
37145 (FREEBSD_MODTYPE_ELF_MODULE_OBJ): Likewise
37146 (grub_freebsd_load_elfmodule32): New declaration
37147 (grub_freebsd_load_elfmoduleobj64): Likewise
37148 (grub_freebsd_load_elf_meta32): Likewise
37149 (grub_freebsd_load_elf_meta64): Likewise
37150 (grub_freebsd_add_meta): Likewise
37151 (grub_freebsd_add_meta_module): Likewise
37152 * loader/i386/bsd.c (grub_freebsd_add_meta): Make global
37153 (grub_freebsd_add_meta_module): Likewise and move module-specific
37154 parts to grub_cmd_freebsd and grub_cmd_freebsd_module
37155 (grub_cmd_freebsd): Add elf-kernel specific parts
37156 based on grub_freebsd_add_meta_module
37157 (grub_cmd_freebsd_module): Add type parsing moved from
37158 grub_freebsd_add_meta_module
37159 (grub_cmd_freebsd_module_elf): New function
37160 (cmd_freebsd_module_elf): New variable
37161 (GRUB_MOD_INIT): Register freebsd_module_elf
37162 * loader/i386/bsd32.c: New file
37163 * loader/i386/bsd64.c: Likewise
37164 * loader/i386/bsdXX.c: Likewise
37165 * kern/elf.c (grub_elf32_load): Let hook decide which pheaders to load
37166 (grub_elf64_load): Likewise
37167 * include/grub/elfload.h (grub_elf32_load_hook_t): New parameter do_load
37168 All users updated
37169 (grub_elf64_load_hook_t): Likewise
37170
0db15301 371712009-06-21 Colin Watson <cjwatson@ubuntu.com>
37172
37173 * util/grub-mkconfig.in (GRUB_DISABLE_LINUX_RECOVERY): Export
37174 variable.
37175 * util/grub.d/10_linux.in: If GRUB_DISABLE_LINUX_RECOVERY is true,
37176 don't write a menu entry for recovery mode.
37177
546796c1 371782009-06-20 Robert Millan <rmh.grub@aybabtu.com>
37179
37180 * util/i386/pc/grub-mkimage.c (main): Oops, free `output' only
37181 after it's no longer needed.
37182
cd7310d5 371832009-06-20 Robert Millan <rmh.grub@aybabtu.com>
37184
37185 * include/grub/i386/loader.h (grub_linux_prot_size)
37186 (grub_linux_tmp_addr, grub_linux_real_addr)
37187 (grub_linux_is_bzimage, grub_linux16_boot): Declare only on
37188 GRUB_MACHINE_PCBIOS.
37189 * util/i386/pc/grub-mkimage.c (compress_kernel): Move
37190 common grub_util_info() call to ...
37191 (generate_image): ... here.
37192 Fix use of uninitialized memory, comparison of signed with
37193 unsigned integers and memory leak.
37194 Remove bogus module address message.
37195
ab32d3b5 371962009-06-20 Vladimir Serbinenko <phcoder@gmail.com>
37197
37198 * disk/mdraid_linux.c (GRUB_MOD_FINI): use grub_raid_unregister and not
37199 grub_raid_register
37200 * disk/dmraid_nvidia.c (GRUB_MOD_FINI): likewise
37201
024ef597 372022009-06-19 Pavel Roskin <proski@gnu.org>
37203
37204 * configure.ac: Remove stray AC_MSG_CHECKING.
37205
3ac72b51 372062009-06-19 Vladimir Serbinenko <phcoder@gmail.com>
37207
37208 * disk/scsi.c (grub_scsi_open): use continue instead of big if
dd74360c 37209
e14cd814 372102009-06-18 Pavel Roskin <proski@gnu.org>
37211
37212 * conf/common.rmk: Add fs_file.mod.
37213 * disk/fs_file.c: New file.
37214 * include/grub/disk.h (enum grub_disk_dev_id): Add
37215 GRUB_DISK_DEVICE_FILE_ID.
37216
26586d98 372172009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
37218
37219 Fix build with Apple's toolchain. Part 2
37220
37221 * aclocal.m4 (grub_PROG_TARGET_CC): add missing prototype for main and
37222 a fake start
37223
26de2bcd 372242009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
37225
37226 Fix build with Apple's toolchain. Part 1
37227
37228 * commands/i386/pc/drivemap_int13h.S: use assembly-time constants
37229 for long calls
37230 * configure.ac: remove a leftover AC_MSG_RESULT
dd74360c 37231 (CFLAGS): don't add -Wl,--defsym,___main=0x8100 when building with
26de2bcd 37232 Apple's toolchain
37233
09b3490b 372342009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
37235
37236 Fix warnings
37237
37238 * fs/ntfscomp.c (decomp_get16): initialize c1 and c2
37239 (decomp_block): initialize ch
37240 use grub_memcpy instead of memcpy
37241
c22a006a 372422009-06-17 Pavel Roskin <proski@gnu.org>
37243
d3638678 37244 * include/grub/i386/coreboot/console.h: Don't use the i386-pc
37245 version, use declarations needed to use vga_text as the startup
37246 console.
37247
c22a006a 37248 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Remove
37249 term/i386/pc/at_keyboard.c, it doesn't need to be compiled into
37250 the kernel.
37251 * kern/i386/coreboot/init.c: Don't call grub_at_keyboard_init()
37252 and grub_at_keyboard_fini(), it's done on module load and
37253 unload.
37254
05b129e0 372552009-06-17 Felix Zielcke <fzielcke@z-51.de>
37256
37257 * loader/i386/linux.c (grub_cmd_linux): Set grub_error if the
37258 file can't be found.
37259 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
37260
cf24ed9e 372612009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
37262
37263 Fix newline handling
37264
37265 * include/grub/script_sh.h (grub_lexer_param): new field was_newline
dd74360c 37266 * script/sh/lexer.c (grub_script_lexer_init): initialize was_newline
cf24ed9e 37267 (grub_script_yylex): don't segfault on unterminated script
37268 newline terminates command and variable
37269
74aa8e4b 372702009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
37271
37272 avoid double grub_adjust_range call. Bug reported by David Simner
37273
37274 * kern/disk.c (grub_disk_write): change to raw disk access before
37275 calling disk_read
37276
1bd265f3 372772009-06-17 Colin Watson <cjwatson@ubuntu.com>
37278
37279 * util/elf/grub-mkimage.c (usage): Prefix each option line with two
37280 spaces, for the benefit of help2man.
37281 * util/i386/efi/grub-mkimage.c (usage): Likewise.
37282
a2d08c06 372832009-06-16 Pavel Roskin <proski@gnu.org>
37284
37285 * kern/i386/halt.c: Include grub/machine/init.h.
37286 * kern/i386/reboot.c: Include grub/cpu/reboot.h.
37287
b97bcb19 372882009-06-16 Felix Zielcke <fzielcke@z-51.de>
37289
37290 * util/grub.d/30_os-prober.in: Use ${root} in the generated
37291 drivemap menuentry.
37292
0644f96c 372932009-06-16 James Jarvis <James.Jarvis@ed.ac.uk>
37294
37295 * commands/help.c GRUB_MOD_INIT(echo): Fix the help output of
37296 `echo' command.
37297
3ef17a2e 372982009-06-16 Pavel Roskin <proski@gnu.org>
37299
37300 * boot/i386/pc/boot.S: Remove root_drive. Assert offset of
37301 boot_drive_check by using GRUB_BOOT_MACHINE_DRIVE_CHECK. Don't
37302 save %dx, we only need %dl and we never change it.
37303 * boot/i386/pc/cdboot.S: Don't set the root drive.
37304 * boot/i386/pc/pxeboot.S: Likewise.
37305 * include/grub/i386/pc/boot.h: Remove
37306 GRUB_BOOT_MACHINE_ROOT_DRIVE, adjust
37307 GRUB_BOOT_MACHINE_DRIVE_CHECK.
37308 * include/grub/i386/pc/kernel.h: Remove grub_root_drive.
37309 * kern/i386/pc/init.c (make_install_device): Remove references
37310 to grub_root_drive.
37311 * kern/i386/pc/startup.S: Likewise.
37312 * util/i386/pc/grub-setup.c (setup): Don't set root_drive.
37313
693fe637 373142009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
37315
37316 xnu_uuid command
37317
37318 * commands/xnu_uuid.c: new file
37319 * conf/common.rmk (pkglib_MODULES): add xnu_uuid.mod
37320 (xnu_uuid_mod_SOURCES): new variable
37321 (xnu_uuid_mod_CFLAGS): likewise
37322 (xnu_uuid_mod_LDFLAGS): likewise
37323 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
37324 * conf/i386-ieee1275.rmk: likewise
37325 * conf/i386-pc.rmk: likewise
37326 * conf/powerpc-ieee1275.rmk: likewise
37327 * conf/sparc64-ieee1275.rmk: likewise
37328 * util/grub.d/30_os-prober.in: use UUID for Mac OS X/Darwin
37329
c9da87d0 373302009-06-16 Pavel Roskin <proski@gnu.org>
37331
37332 * configure.ac: Avoid '==' in test command, it's not portable.
37333
9c6f4596 373342009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
37335
37336 Probe command
37337
37338 * commands/probe.c: new file
37339 * conf/common.rmk (pkglib_MODULES): add probe.mod
37340 (probe_mod_SOURCES): new variable
37341 (probe_mod_CFLAGS): likewise
37342 (probe_mod_LDFLAGS): likewise
37343 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
37344 * conf/i386-ieee1275.rmk: likewise
37345 * conf/i386-pc.rmk: likewise
37346 * conf/powerpc-ieee1275.rmk: likewise
37347 * conf/sparc64-ieee1275.rmk: likewise
37348
70b7f9fd 373492009-06-15 Vladimir Serbinenko <phcoder@gmail.com>
37350
37351 Fix handling of string like \"hello\" and "a
37352 b"
37353
37354 * script/sh/lexer.c (check_textstate): accept GRUB_PARSER_STATE_ESC
37355 (grub_script_yylex): fix parsing of quoting, escaping and newline
37356
71c79a6b 373572009-06-13 Vladimir Serbinenko <phcoder@gmail.com>
37358
dd74360c 37359 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): fix partition
71c79a6b 37360 handling
dd74360c 37361
0644f96c 373622009-06-13 Jun Inoue <jun.lambda@gmail.com>
880fc3c4 37363
37364 * util/grub-mkconfig.in: Fix parsing of --output option.
37365
e40893c3 373662009-06-12 Pavel Roskin <proski@gnu.org>
37367
37368 * Makefile.in (pkgdata_SRCDIR): Remove. genmodsrc.sh and
37369 genmk.rb don't need to be generated or installed.
37370
3a1acfe2 373712009-06-12 Vladimir Serbinenko <phcoder@gmail.com>
37372
37373 * commands/i386/pc/drivemap_int13h.S: add more comments
37374
3a4575d4 373752009-06-11 Pavel Roskin <proski@gnu.org>
37376
0658e928 37377 * Makefile.in (uninstall): Uninstall manuals.
37378
ca0388f0 37379 * Makefile.in: Rename lib_DATA to lib_SCRIPTS, move it from
37380 PKGLIB to SCRIPTS. This fixes installation of grub-mkconfig_lib
37381 and update-grub_lib in two places.
37382 * conf/common.rmk: Rename lib_DATA to lib_SCRIPTS.
37383
e3b27c39 37384 * disk/usbms.c (grub_usbms_transfer): Initialize `err' to fix
37385 a compiler warning.
37386
3a4575d4 37387 * loader/i386/bsd.c (grub_freebsd_boot): Rename `entry' to
37388 `entry_lo' to fix variable shadowing.
37389
af1f4f55 373902009-06-11 Christian Franke <franke@computer.org>
37391
37392 * kern/misc.c (__enable_execute_stack): Add missing return type
37393 to prevent gcc warning.
37394
5225e649 373952009-06-11 Felix Zielcke <fzielcke@z-51.de>
37396
37397 * conf/i386-ieee1275.rmk (COMMON_LDFLAGS): Remove `-static -lgcc'.
37398
7d83bd47 373992009-06-11 Pavel Roskin <proski@gnu.org>
37400
c1cb63ba 37401 * Makefile.in: Don't rely on any scripts being executable.
37402 Always use $(SHELL) to run shell scripts.
37403
7d83bd47 37404 * configure.ac: Always define ___main if using -nostdlib. This
37405 fixes tests on Cygwin.
37406
948f48e7 374072009-06-11 Giuseppe Caizzone <acaizzo@gmail.com>
37408
37409 UDF fix
37410
7d83bd47 37411 * fs/udf.c (grub_udf_read_block): handle the fact that ad->length
948f48e7 37412 is in bytes and not in blocks
7d83bd47 37413
8ada9bc1 374142009-06-11 Pavel Roskin <proski@gnu.org>
37415
37416 * kern/i386/halt.c (grub_halt): Make `i' unsigned to fix a
37417 warning.
37418
25ad2323 374192009-06-11 Felix Zielcke <fzielcke@z-51.de>
37420
37421 * util/grub.d/30_os-prober.in: Fix a comment. Source
37422 ${libdir}/grub/grub-mkconfig_lib. Use prepare_grub_to_access_device
37423 to set the root device. Place drivemap command in the generated
37424 chain entry.
37425
e65acb0c 374262009-06-11 Pavel Roskin <proski@gnu.org>
37427
37428 * configure.ac: Remove host_m32. Issues with 64-bit utilities
37429 have long been resolved.
37430
f285fe2d 374312009-06-11 Colin Watson <cjwatson@ubuntu.com>
37432
bd47b0b5 37433 * util/grub.d/10_linux.in: Capitalise "Linux".
37434
f285fe2d 37435 * util/grub-pe2elf.c (usage): Fix references to grub-editenv.
37436
a0c62e4e 374372009-06-11 Pavel Roskin <proski@gnu.org>
37438
b6783cb2 37439 * kern/efi/efi.c (grub_exit): Add infinite loop at the end to
37440 fix a gcc warning and ensure that the function won't ever exit.
37441
dde032e8 37442 * kern/i386/ieee1275/init.c: Add missing prototype for
37443 grub_stop_floppy().
37444
22cd079d 37445 * loader/ieee1275/multiboot2.c [__i386__]: Include
37446 grub/cpu/multiboot.h.
37447
a0c62e4e 37448 * term/i386/pc/serial.c (serial_translate_key_sequence): Avoid
37449 casts to short - they are not portable and cause warnings. Fix
37450 use of uninitialized values in input_buf. Use ARRAY_SIZE.
37451
63963d17 374522009-06-11 Vladimir Serbinenko <phcoder@gmail.com>
37453
37454 Drivemap fixes
37455
37456 * commands/i386/pc/drivemap.c (grub_get_root_biosnumber_drivemap):
37457 new function
37458 (grub_get_root_biosnumber_saved): new variable
37459 (GRUB_MOD_INIT): register grub_get_root_biosnumber_drivemap
37460 (GRUB_MOD_FINI): unregister grub_get_root_biosnumber_drivemap
775dbc4d 37461 * commands/i386/pc/drivemap_int13h.S (grub_drivemap_handler): restore
63963d17 37462 %dx after the call if necessary
37463 * conf/common.rmk (pkglib_MODULES): remove boot.mod
37464 (boot_mod_SOURCES): remove
37465 (boot_mod_CFLAGS): remove
37466 (boot_mod_LDFLAGS): remove
37467 * conf/i386-coreboot.rmk (pkglib_MODULES): add boot.mod
37468 (boot_mod_SOURCES): new variable
37469 (boot_mod_CFLAGS): likewise
37470 (boot_mod_LDFLAGS): likewise
37471 * conf/i386-efi.rmk: likewise
37472 * conf/i386-ieee1275.rmk: likewise
37473 * conf/i386-pc.rmk: likewise
37474 * conf/powerpc-ieee1275.rmk: likewise
37475 * conf/sparc64-ieee1275.rmk: likewise
37476 * conf/x86_64-efi.rmk: likewise
37477 * include/grub/i386/pc/biosnum.h: new file
37478 * lib/i386/pc/biosnum.c: likewise
37479 * loader/i386/bsd.c (grub_bsd_get_device): use grub_get_root_biosnumber
37480 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): likewise
37481 * loader/i386/pc/chainloader.c (grub_chainloader_cmd): likewise
775dbc4d 37482
33abf7ae 374832009-06-10 Pavel Roskin <proski@gnu.org>
37484
5ac35b35 37485 * io/gzio.c (test_header): Don't reuse one buffer for all data.
37486 Use separate variables. Read only the file size at the end, but
37487 not the checksum that we don't use.
37488
5c5215d5 37489 * kern/file.c (grub_file_read): Use void pointer for the buffer.
37490 Adjust all callers.
37491
27d5fef7 37492 * kern/ieee1275/openfw.c: Remove libc includes.
37493 * kern/ieee1275/cmain.c: Likewise.
37494 * include/grub/ieee1275/ieee1275.h: Likewise.
37495
33abf7ae 37496 * kern/i386/coreboot/init.c: Include grub/cpu/tsc.h to fix
37497 compiler warnings.
37498
19d50c2b 374992009-06-10 Felix Zielcke <fzielcke@z-51.de>
37500
37501 * Makefile.in: Remove all trailing whitespace.
37502 * conf/i386-pc.rmk: Likewise.
37503 * conf/powerpc-ieee1275.rmk: Likewise.
37504 * conf/sparc64-ieee1275.rmk: Likewise.
37505 * docs/grub.texi: Likewise.
37506 * docs/texinfo.tex: Likewise.
37507 * disk/fs_uuid.c: Likewise.
37508 * disk/lvm.c: Likewise.
37509 * disk/scsi.c: Likewise.
37510 * disk/ata.c: Likewise.
37511 * disk/ieee1275/ofdisk.c: Likewise.
37512 * disk/i386/pc/biosdisk.c: Likewise.
37513 * disk/host.c: Likewise.
37514 * disk/raid.c: Likewise.
37515 * disk/efi/efidisk.c: Likewise.
37516 * disk/usbms.c: Likewise.
37517 * disk/memdisk.c: Likewise.
37518 * disk/loopback.c: Likewise.
37519 * kern/powerpc/dl.c: Likewise.
37520 * kern/device.c: Likewise.
37521 * kern/dl.c: Likewise.
37522 * kern/sparc64/dl.c: Likewise.
37523 * kern/ieee1275/ieee1275.c: Likewise.
37524 * kern/term.c: Likewise.
37525 * kern/fs.c: Likewise.
37526 * kern/i386/dl.c: Likewise.
37527 * kern/i386/pc/startup.S: Likewise.
37528 * kern/i386/pc/init.c: Likewise.
37529 * kern/i386/pc/mmap.c: Likewise.
37530 * kern/i386/pc/lzo1x.S: Likewise.
37531 * kern/i386/ieee1275/init.c: Likewise.
37532 * kern/i386/realmode.S: Likewise.
37533 * kern/i386/tsc.c: Likewise.
37534 * kern/partition.c: Likewise.
37535 * kern/corecmd.c: Likewise.
37536 * kern/file.c: Likewise.
37537 * kern/efi/efi.c: Likewise.
37538 * kern/efi/init.c: Likewise.
37539 * kern/efi/mm.c: Likewise.
37540 * kern/main.c: Likewise.
37541 * kern/err.c: Likewise.
37542 * kern/env.c: Likewise.
37543 * kern/disk.c: Likewise.
37544 * kern/generic/millisleep.c: Likewise.
37545 * kern/generic/rtc_get_time_ms.c: Likewise.
37546 * kern/misc.c: Likewise.
37547 * kern/parser.c: Likewise.
37548 * genmk.rb: Likewise.
37549 * configure.ac: Likewise.
37550 * boot/i386/pc/diskboot.S: Likewise.
37551 * boot/i386/pc/pxeboot.S: Likewise.
37552 * boot/i386/pc/boot.S: Likewise.
37553 * boot/i386/pc/lnxboot.S: Likewise.
37554 * boot/i386/pc/cdboot.S: Likewise.
37555 * parttool/pcpart.c: Likewise.
37556 * video/readers/tga.c: Likewise.
37557 * video/video.c: Likewise.
37558 * video/bitmap.c: Likewise.
37559 * lib/envblk.c: Likewise.
37560 * lib/i386/setjmp.S: Likewise.
37561 * fs/xfs.c: Likewise.
37562 * fs/afs.c: Likewise.
37563 * fs/fat.c: Likewise.
37564 * fs/ntfs.c: Likewise.
37565 * fs/udf.c: Likewise.
37566 * fs/affs.c: Likewise.
37567 * fs/iso9660.c: Likewise.
37568 * fs/hfs.c: Likewise.
37569 * fs/fshelp.c: Likewise.
37570 * fs/ext2.c: Likewise.
37571 * fs/jfs.c: Likewise.
37572 * fs/reiserfs.c: Likewise.
37573 * fs/hfsplus.c: Likewise.
37574 * fs/minix.c: Likewise.
37575 * fs/cpio.c: Likewise.
37576 * fs/sfs.c: Likewise.
37577 * fs/ufs.c: Likewise.
37578 * efiemu/prepare.c: Likewise.
37579 * efiemu/loadcore_common.c: Likewise.
37580 * efiemu/runtime/efiemu.sh: Likewise.
37581 * efiemu/runtime/efiemu.S: Likewise.
37582 * efiemu/runtime/efiemu.c: Likewise.
37583 * efiemu/pnvram.c: Likewise.
37584 * efiemu/main.c: Likewise.
37585 * efiemu/i386/pc/cfgtables.c: Likewise.
37586 * efiemu/i386/loadcore64.c: Likewise.
37587 * efiemu/i386/loadcore32.c: Likewise.
37588 * efiemu/loadcore.c: Likewise.
37589 * efiemu/symbols.c: Likewise.
37590 * efiemu/mm.c: Likewise.
37591 * include/grub/autoefi.h: Likewise.
37592 * include/grub/datetime.h: Likewise.
37593 * include/grub/term.h: Likewise.
37594 * include/grub/hfs.h: Likewise.
37595 * include/grub/lvm.h: Likewise.
37596 * include/grub/i386/tsc.h: Likewise.
37597 * include/grub/i386/linux.h: Likewise.
37598 * include/grub/i386/xnu.h: Likewise.
37599 * include/grub/i386/efiemu.h: Likewise.
37600 * include/grub/i386/pc/biosdisk.h: Likewise.
37601 * include/grub/i386/pc/memory.h: Likewise.
37602 * include/grub/i386/pc/vbe.h: Likewise.
37603 * include/grub/parttool.h: Likewise.
37604 * include/grub/video.h: Likewise.
37605 * include/grub/memory.h: Likewise.
37606 * include/grub/fs.h: Likewise.
37607 * include/grub/partition.h: Likewise.
37608 * include/grub/xnu.h: Likewise.
37609 * include/grub/efi/api.h: Likewise.
37610 * include/grub/efi/pe32.h: Likewise.
37611 * include/grub/efi/memory.h: Likewise.
37612 * include/grub/multiboot.h: Likewise.
37613 * include/grub/usbdesc.h: Likewise.
37614 * include/grub/multiboot2.h: Likewise.
37615 * include/grub/acpi.h: Likewise.
37616 * include/grub/efiemu/efiemu.h: Likewise.
37617 * include/grub/disk.h: Likewise.
37618 * include/grub/ieee1275/ieee1275.h: Likewise.
37619 * include/grub/net.h: Likewise.
37620 * include/grub/machoload.h: Likewise.
37621 * include/grub/macho.h: Likewise.
37622 * include/multiboot.h: Likewise.
37623 * genmoddep.awk: Likewise.
37624 * normal/main.c: Likewise.
37625 * normal/menu_entry.c: Likewise.
37626 * normal/menu_viewer.c: Likewise.
37627 * normal/completion.c: Likewise.
37628 * normal/cmdline.c: Likewise.
37629 * normal/misc.c: Likewise.
37630 * normal/datetime.c: Likewise.
37631 * bus/usb/usbtrans.c: Likewise.
37632 * bus/usb/ohci.c: Likewise.
37633 * bus/usb/uhci.c: Likewise.
37634 * bus/usb/usb.c: Likewise.
37635 * mmap/efi/mmap.c: Likewise.
37636 * mmap/i386/pc/mmap_helper.S: Likewise.
37637 * mmap/i386/pc/mmap.c: Likewise.
37638 * mmap/i386/mmap.c: Likewise.
37639 * mmap/i386/uppermem.c: Likewise.
37640 * mmap/mmap.c: Likewise.
37641 * commands/acpi.c: Likewise.
37642 * commands/echo.c: Likewise.
37643 * commands/blocklist.c: Likewise.
37644 * commands/loadenv.c: Likewise.
37645 * commands/usbtest.c: Likewise.
37646 * commands/boot.c: Likewise.
37647 * commands/parttool.c: Likewise.
37648 * commands/search.c: Likewise.
37649 * commands/cat.c: Likewise.
37650 * commands/i386/pc/play.c: Likewise.
37651 * commands/i386/pc/drivemap.c: Likewise.
37652 * commands/i386/pc/vbeinfo.c: Likewise.
37653 * commands/i386/pc/acpi.c: Likewise.
37654 * commands/i386/pc/vbetest.c: Likewise.
37655 * commands/ls.c: Likewise.
37656 * commands/cmp.c: Likewise.
37657 * commands/test.c: Likewise.
37658 * commands/efi/acpi.c: Likewise.
37659 * commands/gptsync.c: Likewise.
37660 * commands/help.c: Likewise.
37661 * partmap/amiga.c: Likewise.
37662 * partmap/apple.c: Likewise.
37663 * partmap/acorn.c: Likewise.
37664 * partmap/pc.c: Likewise.
37665 * partmap/sun.c: Likewise.
37666 * partmap/gpt.c: Likewise.
37667 * script/sh/lexer.c: Likewise.
37668 * script/sh/function.c: Likewise.
37669 * font/font.c: Likewise.
37670 * font/font_cmd.c: Likewise.
37671 * loader/powerpc/ieee1275/linux.c: Likewise.
37672 * loader/efi/chainloader.c: Likewise.
37673 * loader/multiboot_loader.c: Likewise.
37674 * loader/macho.c: Likewise.
37675 * loader/i386/multiboot.c: Likewise.
37676 * loader/i386/linux.c: Likewise.
37677 * loader/i386/pc/linux.c: Likewise.
37678 * loader/i386/pc/multiboot2.c: Likewise.
37679 * loader/i386/pc/chainloader.c: Likewise.
37680 * loader/i386/pc/xnu.c: Likewise.
37681 * loader/i386/bsd_trampoline.S: Likewise.
37682 * loader/i386/efi/linux.c: Likewise.
37683 * loader/i386/multiboot_elfxx.c: Likewise.
37684 * loader/i386/bsd_helper.S: Likewise.
37685 * loader/i386/bsd.c: Likewise.
37686 * loader/i386/linux_trampoline.S: Likewise.
37687 * loader/i386/xnu_helper.S: Likewise.
37688 * loader/i386/xnu.c: Likewise.
37689 * loader/i386/bsd_pagetable.c: Likewise.
37690 * loader/i386/multiboot_helper.S: Likewise.
37691 * loader/xnu.c: Likewise.
37692 * loader/xnu_resume.c: Likewise.
37693 * io/gzio.c: Likewise.
37694 * term/efi/console.c: Likewise.
37695 * term/terminfo.c: Likewise.
37696 * term/ieee1275/ofconsole.c: Likewise.
37697 * term/i386/pc/serial.c: Likewise.
37698 * term/i386/pc/vesafb.c: Likewise.
37699 * term/i386/pc/vga.c: Likewise.
37700 * term/usb_keyboard.c: Likewise.
37701 * term/gfxterm.c: Likewise.
37702 * aclocal.m4: Likewise.
37703 * util/lvm.c: Likewise.
37704 * util/grub.d/30_os-prober.in: Likewise.
37705 * util/grub.d/10_hurd.in: Likewise.
37706 * util/console.c: Likewise.
37707 * util/grub-macho2img.c: Likewise.
37708 * util/grub-probe.c: Likewise.
37709 * util/hostfs.c: Likewise.
37710 * util/i386/pc/grub-mkimage.c: Likewise.
37711 * util/i386/pc/grub-setup.c: Likewise.
37712 * util/i386/efi/grub-mkimage.c: Likewise.
37713 * util/grub-mkconfig.in: Likewise.
37714 * util/raid.c: Likewise.
37715 * util/resolve.c: Likewise.
37716 * util/grub-mkdevicemap.c: Likewise.
37717 * util/grub-emu.c: Likewise.
37718 * util/getroot.c: Likewise.
37719 * util/hostdisk.c: Likewise.
37720 * util/usb.c: Likewise.
37721 * util/grub-editenv.c: Likewise.
37722 * util/misc.c: Likewise.
37723
d2d49665 377242009-06-10 Felix Zielcke <fzielcke@z-51.de>
37725
37726 * gendistlist.sh (EXTRA_DISTFILES): Add `genhandlerlist.sh' and
37727 `genparttoollist.sh'.
37728 (DISTDIRS): Add `efiemu', `mmap', `parttool' and `script'.
37729 Add `*.sh' to the list find searches for and change `mdate.sh'
37730 to `mdate-sh'.
37731
fe052e37 377322009-06-10 Pavel Roskin <proski@gnu.org>
37733
2763ac18 37734 * include/grub/multiboot2.h: Provide compatibility defines for
37735 multiboot2.h.
37736 * include/multiboot2.h: Include stdint.h only if needed, using
37737 angle brackets.
37738 * loader/i386/pc/multiboot2.c: Include multiboot2.h after
37739 grub/multiboot2.h.
37740 * loader/ieee1275/multiboot2.c: Likewise.
37741 * loader/multiboot2.c: Likewise.
37742 * loader/multiboot_loader.c: Likewise.
37743
437e6adc 37744 * configure.ac: Use -nostdlib when probing for the target. It
37745 should not be required to have libc for the target.
37746
06a6836c 37747 * configure.ac: Remove checks for __bswapsi2 and __bswapdi2,
37748 they fail without libc headers for the target.
37749 * include/grub/powerpc/libgcc.h: Use weak attribute for all
37750 exports.
37751 * include/grub/sparc64/libgcc.h: Likewise. Don't use
37752 preprocessor conditionals.
37753
fe052e37 37754 * conf/common.rmk: Compile tar.mod from tar.c, not cpio.c. The
37755 build system doesn't need to be aware of the tar.c internals.
37756
afd22553 377572009-06-09 Michel Hermier <michel.hermier@gmail.com>
87b8f28c 37758
afd22553 37759 * fs/i386/pc/pxe.c (grub_pxefs_read): Fix returned values.
8ec4a6d0 37760
6b787c4f 377612009-06-09 Robert Millan <rmh.grub@aybabtu.com>
37762
37763 * util/deviceiter.c (grub_util_iterate_devices): Increase number of
37764 disk limit to 26 for IDE, Virtio, Xen and SCSI.
37765
377662009-06-09 Felix Zielcke <fzielcke@z-51.de>
37767
37768 * util/i386/pc/grub-install.in: Change the error message if UUIDs
473d1e45 37769 aren't available if ata.mod gets used.
6b787c4f 37770
473d1e45 377712009-06-09 Oliver Henshaw <oliver.henshaw@gmail.com>
e23721e8 37772
473d1e45 37773 * bus/usb/ohci.c (grub_ohci_pci_iter): Link struct only after
e23721e8 37774 initialising controller.
473d1e45 37775 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
e23721e8 37776
255a27d4 377772009-06-08 Felix Zielcke <fzielcke@z-51.de>
37778
37779 * util/i386/pc/grub-install.in: Add a parameter --disk-module
37780 to choose between ata and biosdisk module on i386-pc.
37781
473d1e45 377822009-06-08 Oliver Henshaw <oliver.henshaw@gmail.com>
69da8877 37783
d55842d8 37784 * bus/usb/ohci.c (grub_ohci_pci_iter): Define the Class,
37785 Subclass and Programming Interface fields in terms of the 3 byte
37786 Class Code register.
37787 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
37788
fa5db0b1 37789 * bus/usb/ohci.c (grub_ohci_pci_iter): Check that programming
37790 interface is OHCI. Add grub_dprintf for symmetry with
37791 bus/usb/uhci.c.
37792 * bus/usb/uhci.c (grub_uhci_pci_iter): Check that programming
37793 interface is UHCI. Add interf variable for programming
37794 interface. Print interface with class/subclass.
37795
c0947beb 37796 * bus/usb/ohci.c: Set interf with correct field.
37797
69da8877 37798 * bus/usb/uhci.c: Remove unneeded doubled lines.
37799 * bus/usb/ohci.c: Likewise. Change interf to grub_uint32_t.
37800 Remove whitespace inside comment.
37801
9e172e30 378022009-06-08 Robert Millan <rmh.grub@aybabtu.com>
37803
37804 * loader/i386/linux.c (grub_cmd_linux): When processing `vga=', use
37805 as fallback an equivalent option without depth.
37806
de65ee2b 378072009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
37808
37809 Not fail if unable to retrieve C/H/S on LBA disks
37810
473d1e45 37811 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): behave gracefully
de65ee2b 37812 if unable to retrieve C/H/S on LBA disks
37813
b57ea2c9 378142009-06-08 Pavel Roskin <proski@gnu.org>
37815
37816 * fs/hfs.c (grub_hfs_find_dir): Use union to avoid a warning
37817 about aliasing.
37818
af361263 378192009-06-08 Felix Zielcke <fzielcke@z-51.de>
37820
37821 * Makefile.in (uninstall): Remove all $lib_DATA files.
37822
4c9ec6b3 378232009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
37824
37825 Bugfix: install on partitionless device
37826
37827 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): check if os_dev
37828 is a whole disk
37829
e76fc924 378302009-06-08 Felix Zielcke <fzielcke@z-51.de>
37831
37832 * Makefile.in (uninstall): Remove all $include_DATA files.
37833
ba5a0d05 378342009-06-08 Felix Zielcke <fzielcke@z-51.de>
37835
37836 * commands/true.c: New file. Implement the true and false commands.
37837 * conf/common.rmk.c (pkglib_MODULES): Add `true.mod'.
37838 (true_mod_SOURCES): New variable.
37839 (true_mod_CFLAGS): Likewise.
37840 (true_mod_LDFLAGS): Likewise.
37841
c8048e32 378422009-06-05 Colin D Bennett <colin@gibibit.com>
37843
37844 Optimized font character lookup using binary search instead of linear
37845 search. Fonts now are required to have the character index ordered by
37846 code point.
37847
37848 * font/font.c (load_font_index): Verify that fonts have ordered
37849 character indices.
37850 (find_glyph): Use binary search instead of linear search to find a
37851 character in a font.
37852
408305be 378532009-06-05 Michael Scherer <misc@mandriva.org>
37854
37855 * fs/hfsplus.c (grub_hfsplus_mount): Determine if the filesystem
37856 uses case sensitive btree.
37857 (grub_hfsplus_iterate_dir): Use GRUB_FSHELP_CASE_INSENSITIVE
37858 only for case insensitive filesystems.
37859
8ee1e0d9 378602009-06-05 Vladimir Serbinenko <phcoder@gmail.com>
37861
37862 * conf/i386-pc.rmk (efiemu_mod_CFLAGS): remove -Werror -Wall
37863 * conf/common.rmk (search_mod_CFLAGS): likewise
37864
a9966eb1 378652009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
37866
473d1e45 37867 * kern/i386/pc/startup.S [APPLE_CC]: block of nops to
a9966eb1 37868 compensate a compiler bug
37869
9e7100fb 378702009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
37871
473d1e45 37872 * include/grub/term.h (GRUB_TERM_BACKSPACE): explicitly define as 8
9e7100fb 37873 instead of '\b'
473d1e45 37874
ede21d71 378752009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
37876
37877 Definitions for creating asm symbols with Apple's CC
37878
37879 * include/grub/symbol.h [APPLE_CC] (FUNCTION): new macro
37880 [APPLE_CC] (VARIABLE): likewise
37881
9dbf7653 378822009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
37883
37884 Disable lnxboot.img when compiled
37885 with Apple's CC
37886
37887 * conf/i386-pc.rmk (pkglib_IMAGES): remove lnxboot.img
37888 pkglib_IMAGES [! TARGET_APPLE_CC] (pkglib_IMAGES): add lnxboot.img
37889 * boot/i386/pc/lnxboot.S [APPLE_CC]: define an #error
37890 [! APPLE_CC] (CODE_LENG): skip
37891 [! APPLE_CC] (setup_sects): likewise
37892 [! APPLE_CC]: skip filling
473d1e45 37893
e93cdc3d 378942009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
37895
37896 Address in trampolines based on 32-bit registers when compiled
37897 with Apple's CC
37898
473d1e45 37899 * loader/i386/xnu_helper.S [APPLE_CC]: use 32-bit registers
e93cdc3d 37900 for addresses
37901 * loader/i386/linux_trampoline.S [APPLE_CC]: likewise
37902
6c688477 379032009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
37904
37905 Avoid aliases when compiling with Apple's CC for PCBIOS machine
37906
37907 * kern/misc.c [APPLE_CC] (memcpy): new function
37908 [APPLE_CC] (memmove): likewise
37909 [APPLE_CC && !GRUB_UTIL] (grub_err_printf): likewise
473d1e45 37910 (memcpy): define alias conditionally on !APPLE_CC
6c688477 37911 (memset): likewise
37912 (abort): likewise
37913 * include/grub/misc.h (memove): don't define when both GRUB_UTIL and
37914 APPLE_CC are defined
37915 * include/grub/list.h [APPLE_CC] (grub_assert_fail): new function
37916 (grub_assert_fail): make prototype conditional
37917
e37ffc5c 379182009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
37919
37920 Use grub-macho2img when compiling with Apple's CC for PCBIOS machine
37921
473d1e45 37922 * conf/common.rmk (bin_UTILITIES): add (on false on condition)
37923 grub-macho2img
e37ffc5c 37924 (CLEANFILES): add grub-macho2img
37925 (grub_macho2img_SOURCES): new variable
37926 * kern/i386/pc/startup.S (bss_start): new variable
37927 (bss_end): likewise
37928 * genmk.rb: use grub-macho2img for *.img when compiled with Apple's CC
37929 * util/grub-macho2img.c: new file
37930
cf00df31 379312009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
37932
37933 Use objconv when compiling with Apple's CC
37934
37935 * conf/i386-pc.rmk (efiemu32.o): use OBJCONV if defined
37936 (efiemu64.o): likewise
37937 (efiemu64_c.o): omit -mcmodel=large and add -DAPPLE_CC=1
37938 when compiling with Apple's CC
37939 (efiemu64_s.o): likewise
37940 * configure.ac: check for objconv when compiling with Apple's CC
37941 * genmk.rb: use objconv for modules when compiled with Apple's CC
473d1e45 37942
d119a20c 379432009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
37944
37945 Define segment as well as section when compiling with
37946 Apple's CC
37947
37948 * efiemu/runtime/efiemu.c (PHYSICAL_ATTRIBUTE): new definition
37949 (efiemu_set_virtual_address_map): declare with PHYSICAL_ATTRIBUTE
37950 (efiemu_convert_pointer): likewise
37951 (efiemu_set_virtual_address_map): likewise
37952 (efiemu_convert_pointer): likewise
37953 (efiemu_getcrc32): likewise
37954 (init_crc32_table): likewise
37955 (reflect): likewise
37956 * include/grub/dl.h (GRUB_MOD_NAME): define segment with Apple's CC
37957 (GRUB_MOD_DEP): likewise
473d1e45 37958
c8600122 379592009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
37960
37961 Allow a compilation without -mcmodel=large
37962
37963 * kern/efi/mm.c (grub_efi_allocate_pages): don't allocate >4GiB
37964 when compiled without -mcmodel=large
473d1e45 37965 (filter_memory_map): remove memory post 4 GiB when compiled
c8600122 37966 without -mcmodel=large
473d1e45 37967 * configure.ac: fail gracefully and add -DMCMODEL_SMALL=1 to
c8600122 37968 TARGET_CFLAGS when -mcmodel=large isn't supported
473d1e45 37969
e8df1d4e 379702009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
37971
37972 Remove nested functions in efiemu core
37973
37974 * efiemu/runtime/efiemu.c (reflect): make static instead of nested
473d1e45 37975
cc6c3ac1 379762009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
37977
37978 Avoid clobbering %ebx/%rbx in inline assembly with Apple's CC
37979
37980 * efiemu/runtime/efiemu.c (write_cmos): use %cl instead of %bl as
37981 temporary storage
473d1e45 37982 * include/grub/i386/tsc.h (grub_get_tsc): restore %rbx/%ebx when
37983 using Apple's CC
cc6c3ac1 37984 (grub_cpu_is_tsc_supported): likewise
37985 * loader/i386/xnu.c (guessfsb): restore %rbx/%ebx in inline assembly
473d1e45 37986
3e325901 379872009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
37988
37989 Absolute addressing through constant with Apple's cc
37990
37991 * kern/i386/pc/startup.S: Define necessary constants
37992 and address through it when using ABS with Apple's CC
37993 * boot/i386/pc/diskboot.S: likewise
37994 * boot/i386/pc/boot.S: likewise
37995 * boot/i386/pc/lnxboot.S: likewise
37996 * boot/i386/pc/cdboot.S: likewise
37997 * mmap/i386/pc/mmap_helper.S: likewise
37998 * commands/i386/pc/drivemap_int13h.S: likewise
37999
2b167a72 380002009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38001
38002 Check if compiler is apple cc
38003
38004 * Makefile.in (ASFLAGS): new variable
38005 (TARGET_ASFLAGS): likewise
38006 (TARGET_MODULE_FORMAT): likewise
38007 (TARGET_APPLE_CC): likewise
38008 (OBJCONV): likewise
38009 (TARGET_IMG_CFLAGS): likewise
38010 (TARGET_CPPFLAGS): add includedir
38011 * configure.ac: call grub_apple_cc and grub_apple_target_cc
38012 (TARGET_IMG_LDFLAGS): Add -Wl,-Ttext,. All users updated
38013 Check for linker script only if compiler isn't Apple's CC
38014 (TARGET_MODULE_FORMAT): set
38015 (TARGET_APPLE_CC): likewise
38016 (TARGET_ASFLAGS): likewise
38017 (ASFLAGS): likewise
38018 Check for objcopy only if compiler isn't Apple's CC
38019 Check for BSS symbol only if compiler isn't Apple's CC
38020 * genmk.rb: adapt nm options if we use Apple's utils
38021 * aclocal.m4 (grub_apple_cc): new test
38022 (grub_apple_target_cc): likewise
473d1e45 38023
fb14123e 380242009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38025
38026 Simplify sed expressions and improve awk
38027
38028 * Makefile.in (install-local): simplify sed expression
38029 * gencmdlist.sh: likewise
38030 * genmoddep.awk: avoid adding module as a dependency of itself
38031
5b889789 380322009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38033
38034 Add missing start symbols
38035
38036 * boot/i386/pc/boot.S: add start
fb14123e 38037 * boot/i386/pc/pxeboot.S: likewise
473d1e45 38038
fd2bf2e3 380392009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38040
38041 Fix wrong assumptions with grub-mkimage on EFI
473d1e45 38042
38043 * i386/efi/grub-mkimage.c (read_kernel_module): don't write prefix here
fd2bf2e3 38044 (relocate_addresses): consider both r_addend and value at offset
38045 (make_mods_section): zerofill modinfo and header
38046 (convert_elf): write prefix here
473d1e45 38047
5389763d 380482009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38049
38050 Use .asciz instead of .string
38051
38052 * i386/pc/diskboot.S: use .asciz instead of .string
38053 * i386/pc/boot.S: likewise
38054 * include/grub/dl.h (GRUB_MOD_DEP): likewise
38055 (GRUB_MOD_NAME): likewise
473d1e45 38056
3eb5ed4e 380572009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38058
38059 gfxpayload support
38060
38061 * commands/videotest.c (grub_cmd_videotest): use grub_video_set_mode
38062 * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_PURE_TEXT): new definition
38063 (grub_video_setup): remove
38064 (grub_video_set_mode): new prototype
38065 * loader/i386/linux.c (DEFAULT_VIDEO_MODE): new definition
38066 (vid_mode): remove
38067 (linux_vesafb_res): compile only on PCBIOS
38068 (grub_linux_boot): support gfxpayload
38069 * loader/i386/pc/xnu.c (video_hook): new function
38070 (grub_xnu_set_video): support gfxpayload
38071 * term/gfxterm.c (DEFAULT_VIDEO_WIDTH): removed
38072 (DEFAULT_VIDEO_HEIGHT): likewise
38073 (DEFAULT_VIDEO_FLAGS): likewise
38074 (DEFAULT_VIDEO_MODE): new definition
38075 (video_hook): new function
38076 (grub_gfxterm_init): use grub_video_set_mode
473d1e45 38077 * util/grub.d/30_os-prober.in: remove explicit modesetting before
3eb5ed4e 38078 loading xnu
38079 * video/video.c (grub_video_setup): removed
473d1e45 38080 (grub_video_set_mode): new function based on grub_gfxterm_init and
3eb5ed4e 38081 grub_video_setup
38082
4b0e1143 380832009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38084
38085 Avoid calling biosdisk in drivemap
38086
38087 * commands/i386/pc/drivemap.c (parse_biosdisk): remove
38088 (revparse_biosdisk): likewise
38089 (list_mappings): derive name from id directly
38090 (grub_cmd_drivemap): use tryparse_diskstring
473d1e45 38091
fda6cb98 380922009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38093
38094 Script fixes
38095
38096 * include/grub/script_sh.h (grub_script_cmdline): remove cmdline
38097 (grub_lexer_param): add tokenonhold
38098 (grub_script_create_cmdline): remove cmdline. All callers updated
38099 (grub_script_function_create): make functionname
38100 grub_script_arg. All callers updated
38101 (grub_script_execute_argument_to_string): new prototype
38102 * kern/parser.c (state_transitions): reorder
38103 (grub_parser_cmdline_state): fix a bug and make more compact
473d1e45 38104 * script/sh/execute.c (grub_script_execute_argument_to_string):
fda6cb98 38105 make global
38106 (grub_script_execute_cmdline): use new format
38107 * script/sh/function.c (grub_script_function_create): make functionname
38108 grub_script_arg. All callers updated
473d1e45 38109 * script/sh/lexer.c (grub_script_lexer_init): initialize tokenonhold
fda6cb98 38110 (grub_script_yylex): remove
38111 (grub_script_yylex2): renamed to ...
38112 (grub_script_yylex): ...renamed
38113 parse the expressions like a${b}c
38114 * script/sh/parser.y (GRUB_PARSER_TOKEN_ARG): new typed terminal
38115 (GRUB_PARSER_TOKEN_VAR): remove
38116 (GRUB_PARSER_TOKEN_NAME): likewise
38117 ("if"): declare as typeless
38118 ("while"): likewise
38119 ("function"): likewise
38120 ("else"): likewise
38121 ("then"): likewise
38122 ("fi"): likewise
38123 (text): remove
38124 (argument): likewise
38125 (script): accept empty scripts and make exit on error
38126 (arguments): use GRUB_PARSER_TOKEN_ARG
38127 (function): likewise
38128 (command): move error handling to script
38129 (menuentry): move grub_script_lexer_ref before
473d1e45 38130 * script/sh/script.c (grub_script_create_cmdline): remove cmdline
fda6cb98 38131 argument. All callers updated
38132
f4448a07 381332009-06-04 Robert Millan <rmh.grub@aybabtu.com>
38134
38135 Prevent GRUB from probing floppies during boot.
38136
38137 * conf/common.rmk (search_mod_CFLAGS): Use `-Werror -Wall'.
38138 * commands/search.c (options): Add --no-floppy.
38139 (search_fs, search_file, grub_cmd_search): Support --no-floppy.
38140 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Use
38141 --no-floppy when searching for UUIDs.
38142
2bf5885a 381432009-06-04 Robert Millan <rmh.grub@aybabtu.com>
38144
38145 Simplify the code duplication in commands/search.c.
38146
38147 * commands/search.c (search_label, search_fs_uuid): Merge into ...
38148 (search_fs): ... this. Update all users.
38149
f6fd460a 381502009-06-03 Felix Zielcke <fzielcke@z-51.de>
38151
38152 * util/grub-mkconfig.in (update_grub_dir): Rename to grub_mkconfig_dir.
38153
cbb3c83e 381542009-05-28 Pavel Roskin <proski@gnu.org>
38155
57788cfd 38156 * Makefile.in: Don't use "cp -d", it doesn't work on FreeBSD.
38157 Remove the original symlink explicitly.
38158
cbb3c83e 38159 * fs/hfs.c (grub_hfs_find_dir): Skip sequences of slashes, not
38160 just one slash. That's how grub_fshelp_find_file() does it.
38161
cd0d5e30 381622009-05-26 Pavel Roskin <proski@gnu.org>
38163
f0f8bbe2 38164 * genmk.rb: Avoid shadowing variable `s', rename the outer `s'
38165 to `str'.
38166
cd0d5e30 38167 * util/getroot.c (grub_util_get_dev_abstraction): Mark os_dev as
38168 possibly unused.
38169
8c2cab51 381702009-05-25 Christian Franke <franke@computer.org>
38171
38172 * disk/ata.c (grub_ata_wait_not_busy): Add debug output of status
38173 register.
38174 (grub_atapi_identify): Add wait after drive select.
38175 (grub_ata_identify): Do more strict status register check before
38176 calling grub_atapi_identify (). Suppress error message if status
38177 register is 0x00 after command failure. Add status register
38178 check after PIO read to avoid bogus identify due to stuck DRQ.
38179 Thanks to Pavel Roskin for testing.
38180 (grub_device_initialize): Remove unsafe status register check.
38181 Thanks to 'phcoder' for problem report and patch.
38182 Prevent sign extension in debug message.
38183
230c0ad6 381842009-05-23 Colin D Bennett <colin@gibibit.com>
38185
38186 Cleaned up `include/grub/normal.h'. Grouped prototypes by
38187 definition file, and functions defined in `normal/menu.c' have had
38188 their prototypes moved to `include/grub/menu.h' for consistency.
38189
38190 * include/grub/menu.h (grub_menu_execute_callback): Added; moved
38191 from normal.h.
38192 (grub_menu_get_entry): Likewise.
38193 (grub_menu_get_timeout): Likewise.
38194 (grub_menu_set_timeout): Likewise.
38195 (grub_menu_execute_entry): Likewise.
38196 (grub_menu_execute_with_fallback): Likewise.
38197 (grub_menu_entry_run): Likewise.
38198
38199 * include/grub/normal.h: Re-ordered and grouped function
38200 prototypes by file that the function is defined in.
38201 (grub_menu_execute_callback): Removed; moved to menu.h.
38202 (grub_menu_get_entry): Likewise.
38203 (grub_menu_get_timeout): Likewise.
38204 (grub_menu_set_timeout): Likewise.
38205 (grub_menu_execute_entry): Likewise.
38206 (grub_menu_execute_with_fallback): Likewise.
38207 (grub_menu_entry_run): Likewise.
38208 (grub_menu_addentry): Renamed from this ...
38209 (grub_normal_add_menu_entry): ... to this.
38210
38211 * normal/main.c (grub_menu_addentry): Renamed from this ...
38212 (grub_normal_add_menu_entry): ... to this.
38213
38214 * script/sh/execute.c (grub_script_execute_menuentry): Update
38215 reference to renamed grub_menu_addentry function.
38216
861f03a5 382172009-05-23 Felix Zielcke <fzielcke@z-51.de>
38218
38219 * commands/i386/pc/drivemap.c (MODNAME): Remove. Update all users.
38220
96b1619a 382212009-05-22 Pavel Roskin <proski@gnu.org>
38222
bf6a5fb2 38223 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Remove.
38224 * configure.ac: Don't call grub_I386_CHECK_REGPARM_BUG. Define
38225 NESTED_FUNC_ATTR using AH_BOTTOM. Use regparm(1) only when
38226 compiling for the i386 targets, but not for the utilities.
38227
96b1619a 38228 * include/grub/i386/pc/kernel.h (grub_boot_drive): Change type
38229 to grub_uint8_t.
38230 (grub_root_drive): Likewise.
38231 * kern/i386/pc/startup.S (grub_boot_drive): Change size to byte,
38232 remove alignment.
38233 (grub_root_drive): Change size to byte.
38234 (grub_start_addr): Remove.
38235 (grub_end_addr): Likewise.
38236 (grub_apm_bios_info): Likewise.
38237
b729776b 382382009-05-21 Felix Zielcke <fzielcke@z-51.de>
38239
38240 * normal/i386: Remove.
38241 * normal/powerpc: Likewise.
38242 * normal/sparc64: Likewise.
38243 * normal/x86_64: Likewise.
38244
0a15ce80 382452009-05-19 Vladimir Serbinenko <phcoder@gmail.com>
38246
38247 * conf/x86_64-efi.rmk (linux_mod_ASFLAGS): Add missing variable
473d1e45 38248 * loader/i386/linux_trampoline.S: Fix indentation
0a15ce80 38249 * loader/i386/xnu_helper.S: Likewise
d6da58e6 38250
33db9015 382512009-05-18 Colin D Bennett <colin@gibibit.com>
38252
d6da58e6 38253 Display error messages when parsing a Lua statement fails.
38254 Previously, executing a syntactically invalid statement like
38255 ")foo" or "bar;" would silently fail.
33db9015 38256
38257 * script/lua/grub_main.c (handle_lua_error): New function.
d6da58e6 38258 (grub_lua_parse_line): Improved reporting of Lua parser and
38259 execution errors.
33db9015 38260
46422c89 382612009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
38262
38263 Remove -Werror which causes build to fail on some systems
38264
38265 * conf/i386-pc.rmk (xnu_mod_CFLAGS): Remove -Werror -Wall
38266 * conf/i386-efi.rmk (xnu_mod_CFLAGS): Likewise
38267 * conf/x86_64-efi.rmk (xnu_mod_CFLAGS): Likewise
18f547ad 38268
22f53a96 382692009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
38270
38271 trampoline for linux on 64-bit platform
38272
18f547ad 38273 * conf/x86_64-efi.rmk (linux_mod_SOURCES): added
38274 loader/i386/efi/linux_trampoline.S
38275 * include/grub/x86_64/efi/loader.h (grub_linux_real_boot): removed
473d1e45 38276 declaration
d6da58e6 38277 * kern/x86_64/efi/startup.S (grub_linux_real_boot): moved from
38278 here
22f53a96 38279 * loader/i386/linux_trampoline.S: moved here
d6da58e6 38280 * loader/i386/efi/linux.c (allocate_pages): reserve space for
38281 trampoline
22f53a96 38282 (jumpvector): removed
38283 (grub_linux_trampoline_start): new declaration
38284 (grub_linux_trampoline_end): likewise
38285 (grub_linux_boot): use trampoline when on 64-bit platform
38286 * loader/i386/linux.c: likewise
38287
cb5a0f40 382882009-05-16 Pavel Roskin <proski@gnu.org>
38289
38290 * script/lua/grub_lib.c (grub_lua_getenv): Make name and value
38291 const to avoid a warning.
38292 (grub_lua_setenv): Likewise.
38293 * script/lua/grub_main.c (grub_lua_parse_line): Use size_t for
38294 lmsg to fix a warning.
38295
334f2c28 382962009-05-16 Felix Zielcke <fzielcke@z-51.de>
38297
38298 * conf/i386.rmk (setjmp_mod_CFLAGS): Rename to ...
7dd10fce 38299 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
38300 * conf/x86_64-efi.rmk (setjmp_mod_CFLAGS): Rename to ...
38301 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
38302 * conf/powerpc-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
38303 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
38304 * conf/sparc64-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
38305 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
334f2c28 38306
59e5d3ec 383072009-05-16 Felix Zielcke <fzielcke@z-51.de>
38308
38309 * util/grub-mkconfig.in: Export GRUB_TERMINAL_INPUT.
38310
9d87a1ba 383112009-05-16 Bean <bean123ch@gmail.com>
38312
38313 * conf/common.rmk (pkglib_MODULES): Add lua.mod.
38314 (lua_mod_SOURCES): New variable.
38315 (lua_mod_CFLAGS): Likewise.
38316 (lua_mod_LDFLAGS): Likewise.
38317
38318 * conf/i386.rmk (pkglib_MODULES): Add setjmp.mod.
38319 (setjmp_mod_SOURCES): New variable.
38320 (setjmp_mod_CFLAGS): Likewise.
38321 (setjmp_LDFLAGS): Likewise.
38322
38323 * conf/x86_64-efi.rmk (pkglib_MODULES): Add setjmp.mod.
38324 (setjmp_mod_SOURCES): New variable.
38325 (setjmp_mod_CFLAGS): Likewise.
38326 (setjmp_LDFLAGS): Likewise.
38327
38328 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
38329 (setjmp_mod_SOURCES): New variable.
38330 (setjmp_mod_CFLAGS): Likewise.
38331 (setjmp_LDFLAGS): Likewise.
38332
38333 * conf/sparc64-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
38334 (setjmp_mod_SOURCES): New variable.
38335 (setjmp_mod_CFLAGS): Likewise.
38336 (setjmp_LDFLAGS): Likewise.
38337
38338 * normal/i386/setjmp.S: Moved from here ...
38339 * lib/i386/setjmp.S: ... Moved here
38340 * normal/x86_64/setjmp.S: Moved from here ...
38341 * lib/x86_64/setjmp.S: ... Moved here
38342 * normal/powerpc/setjmp.S: Moved from here ...
38343 * lib/powerpc/setjmp.S: ... Moved here
38344 * normal/sparc64/setjmp.S: Moved from here ...
38345 * lib/sparc64/setjmp.S: ... Moved here
38346
38347 * include/grub/i386/setjmp.h (grub_setjmp): Don't use attribute
38348 returns_twice in mingw.
38349
38350 * script/lua/grub_lib.c: New file.
38351 * script/lua/grub_lib.h: Likewise.
38352 * script/lua/grub_lua.h: Likewise.
38353 * script/lua/grub_main.c: Likewise.
38354 * script/lua/lapi.c: Likewise.
38355 * script/lua/lapi.h: Likewise.
38356 * script/lua/lauxlib.c: Likewise.
38357 * script/lua/lauxlib.h: Likewise.
38358 * script/lua/lbaselib.c: Likewise.
38359 * script/lua/lcode.c: Likewise.
38360 * script/lua/lcode.h: Likewise.
38361 * script/lua/ldblib.c: Likewise.
38362 * script/lua/ldebug.c: Likewise.
38363 * script/lua/ldebug.h: Likewise.
38364 * script/lua/ldo.c: Likewise.
38365 * script/lua/ldo.h: Likewise.
38366 * script/lua/ldump.c: Likewise.
38367 * script/lua/lfunc.c: Likewise.
38368 * script/lua/lfunc.h: Likewise.
38369 * script/lua/lgc.c: Likewise.
38370 * script/lua/lgc.h: Likewise.
38371 * script/lua/linit.c: Likewise.
38372 * script/lua/liolib.c: Likewise.
38373 * script/lua/llex.c: Likewise.
38374 * script/lua/llex.h: Likewise.
38375 * script/lua/llimits.h: Likewise.
38376 * script/lua/lmathlib.c: Likewise.
38377 * script/lua/lmem.c: Likewise.
38378 * script/lua/lmem.h: Likewise.
38379 * script/lua/loadlib.c: Likewise.
38380 * script/lua/lobject.c: Likewise.
38381 * script/lua/lobject.h: Likewise.
38382 * script/lua/lopcodes.c: Likewise.
38383 * script/lua/lopcodes.h: Likewise.
38384 * script/lua/loslib.c: Likewise.
38385 * script/lua/lparser.c: Likewise.
38386 * script/lua/lparser.h: Likewise.
38387 * script/lua/lstate.c: Likewise.
38388 * script/lua/lstate.h: Likewise.
38389 * script/lua/lstring.c: Likewise.
38390 * script/lua/lstring.h: Likewise.
38391 * script/lua/lstrlib.c: Likewise.
38392 * script/lua/ltable.c: Likewise.
38393 * script/lua/ltable.h: Likewise.
38394 * script/lua/ltablib.c: Likewise.
38395 * script/lua/ltm.c: Likewise.
38396 * script/lua/ltm.h: Likewise.
38397 * script/lua/lua.h: Likewise.
38398 * script/lua/luaconf.h: Likewise.
38399 * script/lua/lualib.h: Likewise.
38400 * script/lua/lundump.c: Likewise.
38401 * script/lua/lundump.h: Likewise.
38402 * script/lua/lvm.c: Likewise.
38403 * script/lua/lvm.h: Likewise.
38404 * script/lua/lzio.c: Likewise.
38405 * script/lua/lzio.h: Likewise.
38406
5e898c9d 384072009-05-16 Bean <bean123ch@gmail.com>
38408
38409 * include/grub/kernel.h (grub_module_header_types): Add type
38410 OBJ_TYPE_CONFIG.
38411
38412 * kern/main.c (grub_load_config): New function.
38413 (grub_main): Call grub_load_config to read boot config.
38414
38415 * grub-mkimage (generate_image): New parameter config_path.
38416 (options): New option --config.
38417 (main): Parse --config option, and pass it to generate_image.
38418
cf353a47 384192009-05-14 Christian Franke <franke@computer.org>
38420
38421 * commands/i386/pc/drivemap_int13h.S: Add missing EXT_C for symbols.
38422 This fixes build on Cygwin.
38423
3834887f 384242009-05-14 Pavel Roskin <proski@gnu.org>
38425
38426 * commands/i386/pc/drivemap_int13h.S: Eliminate unconditional
38427 jump. This saves two bytes, so the typical case of 2 swapped
38428 drives would fit 32 bytes.
38429
8090fc01 384302009-05-13 Pavel Roskin <proski@gnu.org>
38431
ac963883 38432 * loader/i386/multiboot.c (grub_multiboot): Cast mmap_addr to
38433 grub_uint32_t to avoid a warning.
38434
8090fc01 38435 * loader/i386/linux.c (allocate_pages): When assigning
38436 real_mode_mem, cast through grub_size_t to fix a warning. The
38437 code already makes sure that the value would fit a pointer.
38438 (grub_linux_setup_video): Cast render_target->data to
38439 grub_size_t to fix a warning.
38440
18f547ad 384412009-05-13 Javier Martín <lordhabbit@gmail.com>
4246b8a9 38442
38443 * commands/i386/pc/drivemap.c: New file - implement drivemap
38444 command.
38445 * commands/i386/pc/drivemap_int13h.S: New file - int13 handler.
38446 * conf/i386-pc.rmk: Add drivemap.c and drivemap_int13h.S.
38447
6f6a8b28 384482009-05-13 Pavel Roskin <proski@gnu.org>
38449
38450 * util/i386/pc/grub-setup.c (setup): Remove unused variable
38451 embedding_area_exists.
38452
15fbf4c4 384532009-05-13 Robert Millan <rmh.grub@aybabtu.com>
38454
38455 * util/i386/pc/grub-setup.c (setup): Restructure code flow to make
38456 it easier to understand / work with.
59978c8a 38457 Improve warning messages for cases where there's no embedding area,
38458 or when it is too small (or core.img too large).
15fbf4c4 38459
238e871f 384602009-05-13 Pavel Roskin <proski@gnu.org>
38461
0ab3a9a4 38462 * loader/i386/pc/multiboot2.c: Add necessary includes for
38463 grub_multiboot2_real_boot().
38464
a2c8c5f8 38465 * fs/iso9660.c (grub_iso9660_iterate_dir): The file mode in the
38466 PX record is always little-endian. We only need the lower 2
38467 bytes of the mode.
38468
faec96af 38469 * fs/cpio.c: Use the same name "struct head" for tar and cpio to
38470 facilitate code reuse.
38471 (grub_cpio_mount): Use "struct head", not a char buffer. This
38472 fixes a warning reported by gcc 4.4.
38473
238e871f 38474 * kernel/disk.c (grub_disk_read): Use void pointer for the
38475 buffer.
38476 (grub_disk_write): Use const void pointer for the buffer.
38477 Adjust all callers. Remove unnecessary casts.
38478
901d2f0c 384792009-05-10 Robert Millan <rmh.grub@aybabtu.com>
38480
38481 * util/i386/pc/grub-install.in: Update copyright year.
38482
18f547ad 384832009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
2eac4c16 38484
38485 gptsync
38486
38487 * commands/gptsync.c: new file
38488 * conf/common.rmk (pkglib_MODULES): add gptsync.mod
38489 (gptsync_mod_SOURCES): new variable
38490 (gptsync_mod_CFLAGS): likewise
38491 (gptsync_mod_LDFLAGS): likewise
18f547ad 38492 * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_NTFS):
2eac4c16 38493 new definition
38494 (GRUB_PC_PARTITION_TYPE_HFS): likewise
38495 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/gptsync.c
38496 * conf/i386-ieee1275.rmk: likewise
38497 * conf/i386-pc.rmk: likewise
38498 * conf/powerpc-ieee1275.rmk: likewise
38499
b4ba690a 385002009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
38501
38502 Fixed grub-emu
38503
38504 * kern/dl.c (grub_dl_ref): omit when compiling grub-emu
38505 (grub_dl_ref): likewise
38506
317e1a44 385072009-05-08 Robert Millan <rmh.grub@aybabtu.com>
38508
38509 * util/i386/pc/grub-setup.c (setup): Factorize find_usable_region(),
38510 split in two functions (one for msdos and one for gpt).
38511
041b8094 385122009-05-08 Pavel Roskin <proski@gnu.org>
38513
752473c2 38514 * disk/raid.c (grub_raid_block_xor): Make buf2 constant, it's
38515 not modified.
38516
041b8094 38517 * disk/raid6_recover.c (grub_raid6_recover): Fix warnings about
38518 uninitialized err[0] and err[1]. Rename them to bad1 and bad2.
38519 Initialize them with -1. Add sanity check for bad1. Eliminate
38520 nerr variable.
38521
172800ce 385222009-05-08 David S. Miller <davem@davemloft.net>
38523
38524 * util/sparc64/ieee1275/grub-ofpathname.c (main): Set progname.
38525
29aa5e81 385262009-05-06 Robert Millan <rmh.grub@aybabtu.com>
38527
38528 * util/i386/pc/grub-setup.c (setup): Fix check for embed region
473d1e45 38529 existence.
29aa5e81 38530
96613b62 385312009-05-05 Felix Zielcke <fzielcke@z-51.de>
38532
38533 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
1905c57b 38534 `kern/rescue_reader.c', `kern/rescue_parser.c' and `normal/autofs.c'.
96613b62 38535
eef73c8a 385362009-05-05 David S. Miller <davem@davemloft.net>
38537
38538 * util/sparc64/ieee1275/grub-install.in: Fix sed arg quoting.
38539
119494b5 385402009-05-05 Pavel Roskin <proski@gnu.org>
38541
38542 * include/grub/dl.h [GRUB_UTIL]: Provide inline implementations
38543 of grub_dl_ref() and grub_dl_unref().
38544 * commands/parttool.c: Remove preprocessor conditionals around
38545 grub_dl_ref() and grub_dl_unref().
38546 * fs/affs.c: Likewise.
38547 * fs/afs.c: Likewise.
38548 * fs/cpio.c: Likewise.
38549 * fs/ext2.c: Likewise.
38550 * fs/fat.c: Likewise.
38551 * fs/hfs.c: Likewise.
38552 * fs/hfsplus.c: Likewise.
38553 * fs/iso9660.c: Likewise.
38554 * fs/jfs.c: Likewise.
38555 * fs/minix.c: Likewise.
38556 * fs/ntfs.c: Likewise.
38557 * fs/reiserfs.c: Likewise.
38558 * fs/sfs.c: Likewise.
38559 * fs/udf.c: Likewise.
38560 * fs/ufs.c: Likewise.
38561 * fs/xfs.c: Likewise.
38562 * include/grub/dl.h: Likewise.
38563 * loader/xnu.c: Likewise.
38564
de5fd76e 385652009-05-04 Pavel Roskin <proski@gnu.org>
38566
38567 * commands/acpi.c: Remove unused variable my_mod.
38568 * partmap/amiga.c: Likewise.
38569 * partmap/apple.c: Likewise.
38570 * partmap/gpt.c: Likewise.
38571 * partmap/pc.c: Likewise.
38572 * partmap/sun.c: Likewise.
38573 * term/gfxterm.c: Likewise.
38574 * term/i386/pc/vesafb.c: Likewise.
38575 * term/i386/pc/vga.c: Likewise.
38576
983598ad 385772009-05-04 David S. Miller <davem@davemloft.net>
38578
38579 * kern/ieee1275/openfw.c (grub_children_iterate): Fix string
38580 pointer args to grub_ieee1275_get_property().
38581
8aadec43 38582 * conf/sparc64-ieee1275.rmk: Fix build due to missing '\'.
38583
9554b15e 38584 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Bypass cdrom
38585 devices, and do not traverse down under controller nodes.
38586
67e23c90 38587 * disk/ieee1275/ofdisk.c (compute_dev_path): New.
38588 (grub_ofdisk_open): Use it to un-escape "," characters.
38589 * kern/disk.c (find_part_sep): New.
38590 (grub_disk_open): Use it to find the first non-escaped ','
38591 character in the disk name.
38592 * util/ieee1275/devicemap.c (escape_of_path): New.
38593 (grub_util_emit_devicemap_entry): Use it.
38594 * util/sparc64/ieee1275/grub-install.in: Update script to
38595 strip partition specifiers properly by not triggering on
38596 '\' escaped ',' characters.
38597
74bfdd2f 385982009-05-04 Robert Millan <rmh.grub@aybabtu.com>
38599
38600 * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START): Set
38601 to 0x300.
38602 * loader/i386/linux.c (vga_modes, linux_vesafb_res): Add a few
38603 resolutions.
38604 (linux_vesafb_modes): Add a lot of additional modes to the list (based
38605 on documentation from Wikipedia).
38606
4241d2b1 386072009-05-04 Pavel Roskin <proski@gnu.org>
38608
38609 * disk/ata.c: Spelling fixes.
38610 * disk/raid.c: Likewise.
38611 * disk/usbms.c: Likewise.
38612 * disk/dmraid_nvidia.c: Likewise.
38613 * kern/ieee1275/openfw.c: Likewise.
38614 * kern/ieee1275/init.c: Likewise.
38615 * kern/ieee1275/cmain.c: Likewise.
38616 * boot/i386/pc/cdboot.S: Likewise.
38617 * video/readers/png.c: Likewise.
38618 * video/i386/pc/vbe.c: Likewise.
38619 * fs/udf.c: Likewise.
38620 * fs/hfs.c: Likewise.
38621 * fs/reiserfs.c: Likewise.
38622 * efiemu/runtime/efiemu.c: Likewise.
38623 * efiemu/main.c: Likewise.
38624 * efiemu/mm.c: Likewise.
38625 * include/grub/elf.h: Likewise.
38626 * include/grub/xnu.h: Likewise.
38627 * include/grub/usbdesc.h: Likewise.
38628 * include/grub/usb.h: Likewise.
38629 * include/grub/script_sh.h: Likewise.
38630 * include/grub/lib/LzmaEnc.h: Likewise.
38631 * include/grub/efiemu/efiemu.h: Likewise.
38632 * include/grub/command.h: Likewise.
38633 * normal/menu.c: Likewise.
38634 * normal/main.c: Likewise.
38635 * normal/datetime.c: Likewise.
38636 * bus/usb/uhci.c: Likewise.
38637 * mmap/i386/uppermem.c: Likewise.
38638 * mmap/mmap.c: Likewise.
38639 * commands/acpi.c: Likewise.
38640 * commands/test.c: Likewise.
38641 * partmap/apple.c: Likewise.
38642 * font/font.c: Likewise.
38643 * loader/sparc64/ieee1275/linux.c: Likewise.
38644 * loader/macho.c: Likewise.
38645 * loader/i386/bsd_trampoline.S: Likewise.
38646 * loader/i386/bsd.c: Likewise.
38647 * loader/xnu.c: Likewise.
38648 * term/i386/pc/vesafb.c: Likewise.
38649 * term/usb_keyboard.c: Likewise.
38650 * util/resolve.c: Likewise.
38651 * util/getroot.c: Likewise.
38652
0cfc0083 386532009-05-04 Felix Zielcke <fzielcke@z-51.de>
38654
38655 * conf/i386-pc.rmk (libpkg_DATA): Rename to pkglib_DATA.
38656
7c1d00cd 386572009-05-04 Robert Millan <rmh.grub@aybabtu.com>
38658
38659 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (grub_cmd_linux): Fix
38660 build error.
38661
b01f0548 386622009-05-04 Robert Millan <rmh.grub@aybabtu.com>
38663
38664 * loader/i386/linux.c (grub_cmd_linux): Make "vga=" compatibility
38665 parameter only available on BIOS.
38666
ecc3eb22 386672009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
38668
38669 Removed wrong semicolon in declaration
38670
38671 * grub/misc.h (grub_dprintf): remove semicolon
38672
112972a9 386732009-05-04 Robert Millan <rmh.grub@aybabtu.com>
38674
38675 * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT): New macro.
38676 (grub_linux_boot): Don't check for `linux_vesafb_modes' bounds (this
38677 is done by grub_cmd_linux() now).
38678 [! GRUB_ASSUME_LINUX_HAS_FB_SUPPORT]: If "vga=" parameter wasn't set,
38679 restore video to text mode.
38680 (grub_cmd_linux): Default `vid_mode' initialization to 0, which
38681 indicates lack of "vga=" parameter. "vga=0" is mapped to
38682 `GRUB_LINUX_VID_MODE_NORMAL'.
38683
afd5c115 386842009-05-04 Felix Zielcke <fzielcke@z-51.de>
38685
38686 * conf/i386-efi.rmk (grub_emu_SOURCES): Remove `normal/execute.c',
38687 `normal/lexer.c', `kern/rescue.c', `normal/function.c', `normal/misc.c'
38688 and `normal/script.c'. Add `kern/rescue_reader.c',
18f547ad 38689 `kern/rescue_parser.c', `script/sh/main.c', `script/sh/execute.c',
afd5c115 38690 `script/sh/function.c', `script/sh/lexer.c', `script/sh/script.c' and
38691 `grub_script.tab.c'.
38692
38693 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
38694 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
38695 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
38696 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
38697 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
38698
faa517ce 38699 * Makefile.in: Remove duplicated 2008 in Copyright line.
38700
ae0c0bdc 387012009-05-04 Robert Millan <rmh.grub@aybabtu.com>
38702
473d1e45 38703 * util/misc.c (grub_util_warn): New function. Emits a warning
ae0c0bdc 38704 unconditionally.
38705 * include/grub/util/misc.h (grub_util_warn): New declaration.
38706
38707 * util/i386/pc/grub-install.in: Understand --force and pass it down
38708 to grub-setup.
38709
38710 * util/i386/pc/grub-setup.c (main): Understand --force and pass it
38711 down to setup().
38712 (setup): Improve error messages and add warnings when requested to
38713 install in odd layouts. Refuse to install using blocklists unless
38714 --force was set.
38715
18f547ad 387162009-05-04 martin f. krafft <madduck@madduck.net>
c149b500 38717
38718 * disk/raid.c (grub_raid_scan_device): Improve debug message.
38719
6d260daa 387202009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
38721
38722 Updated copyright year
38723
38724 * fs/hfsplus.c: updated copyright year
18f547ad 38725
69f853f8 387262009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
38727
38728 HFS+ UUID
38729
18f547ad 38730 * fs/hfsplus.c (grub_hfsplus_volheader): added num_serial field
69f853f8 38731 in the space previously used by unused3
38732 (grub_hfsplus_uuid): new function
38733 (grub_hfsplus_fs): added uuid field
38734
4c402e73 387352009-05-03 Pavel Roskin <proski@gnu.org>
38736
38737 * disk/ata.c: Don't cast mod to void in GRUB_MOD_INIT to
38738 suppress warnings. It's no longer needed.
38739 * disk/host.c: Likewise.
38740 * disk/ata_pthru.c: Likewise.
38741 * disk/loopback.c: Likewise.
38742 * hook/datehook.c: Likewise.
38743 * parttool/pcpart.c: Likewise.
38744 * fs/i386/pc/pxe.c: Likewise.
38745 * fs/ntfscomp.c: Likewise.
38746 * efiemu/main.c: Likewise.
38747 * mmap/mmap.c: Likewise.
38748 * commands/crc.c: Likewise.
38749 * commands/hexdump.c: Likewise.
38750 * commands/hdparm.c: Likewise.
38751 * commands/acpi.c: Likewise.
38752 * commands/echo.c: Likewise.
38753 * commands/minicmd.c: Likewise.
38754 * commands/blocklist.c: Likewise.
38755 * commands/memrw.c: Likewise.
38756 * commands/loadenv.c: Likewise.
38757 * commands/usbtest.c: Likewise.
38758 * commands/lsmmap.c: Likewise.
38759 * commands/boot.c: Likewise.
38760 * commands/parttool.c: Likewise.
38761 * commands/configfile.c: Likewise.
38762 * commands/search.c: Likewise.
38763 * commands/ieee1275/suspend.c: Likewise.
38764 * commands/cat.c: Likewise.
38765 * commands/i386/pc/pxecmd.c: Likewise.
38766 * commands/i386/pc/play.c: Likewise.
38767 * commands/i386/pc/halt.c: Likewise.
38768 * commands/i386/pc/vbeinfo.c: Likewise.
38769 * commands/i386/pc/vbetest.c: Likewise.
38770 * commands/lspci.c: Likewise.
38771 * commands/date.c: Likewise.
38772 * commands/handler.c: Likewise.
38773 * commands/ls.c: Likewise.
38774 * commands/test.c: Likewise.
38775 * commands/cmp.c: Likewise.
38776 * commands/efi/loadbios.c: Likewise.
38777 * commands/efi/fixvideo.c: Likewise.
38778 * commands/halt.c: Likewise.
38779 * commands/help.c: Likewise.
38780 * commands/reboot.c: Likewise.
38781 * hello/hello.c: Likewise.
38782 * script/sh/main.c: Likewise.
38783 * loader/xnu.c: Likewise.
38784 * term/terminfo.c: Likewise.
38785 * term/i386/pc/serial.c: Likewise.
38786 * term/usb_keyboard.c: Likewise.
38787
515b5079 387882009-05-03 David S. Miller <davem@davemloft.net>
38789
38790 * normal/menu.c: Include grub/parser.h
38791
dfc31a22 387922009-05-03 Pavel Roskin <proski@gnu.org>
38793
2fee74f1 38794 * mmap/efi/mmap.c (grub_mmap_malign_and_register): Return void*,
38795 not char*.
38796 * mmap/i386/mmap.c (grub_mmap_malign_and_register): Likewise.
38797 Suggested by Javier Martín <lordhabbit@gmail.com>
38798
dfc31a22 38799 * util/i386/pc/grub-mkrescue.in: Allow for the case when
38800 efiemu??.o doesn't exist.
38801 * util/i386/pc/grub-install.in: Likewise. Use "cp -f" for
38802 copying.
38803
18f547ad 388042009-05-03 Bean <bean123ch@gmail.com> Vladimir Serbinenko <phcoder@gmail.com>
cef17233 38805
38806 FreeBSD 64-bit support
38807
18f547ad 38808 * conf/i386-pc.rmk (bsd_mod_SOURCES): add loader/i386/bsd_helper.S
cef17233 38809 and loader/i386/bsd_trampoline.S
38810 (bsd_mod_ASFLAGS): new variable
38811 * include/grub/i386/bsd.h (FREEBSD_MODINFOMD_SMAP): new definition
38812 (FREEBSD_MODTYPE_KERNEL64): likewise
38813 (grub_bsd64_trampoline_start): likewise
38814 (grub_bsd64_trampoline_end): likewise
38815 (grub_bsd64_trampoline_selfjump): likewise
38816 (grub_bsd64_trampoline_gdt): likewise
38817 * include/grub/i386/loader.h (grub_unix_real_boot): moved from here ...
38818 * include/grub/i386/bsd.h (grub_unix_real_boot): ... moved here
38819 * kern/i386/loader.S (grub_unix_real_boot): moved from here ...
38820 * loader/i386/bsd_helper.S (grub_unix_real_boot): moved here
18f547ad 38821 * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
cef17233 38822 of "attrib" member
38823 * loader/i386/bsd_pagetable.c: new file
38824 * loader/i386/bsd_trampoline.S: likewise
38825 * loader/i386/bsd.c (ALIGN_QWORD): new macro
38826 (ALIGN_VAR): likewise
38827 (entry_hi): new variable
38828 (kern_end_mdofs): likewise
38829 (is_64bit): likewise
38830 (grub_freebsd_add_meta): use ALIGN_VAR
38831 (grub_e820_mmap): new declaration
38832 (grub_freebsd_add_mmap): new function
38833 (grub_freebsd_add_meta_module): support 64 bit kernels
38834 (grub_freebsd_list_modules): use ALIGN_VAR
38835 (gdt_descriptor): new declaration
38836 (grub_freebsd_boot): support 64 bit kernels
38837 (grub_bsd_elf64_hook): new function
38838 (grub_bsd_load_elf): support elf64
38839
038c5720 388402009-05-03 Bean <bean123ch@gmail.com>
38841
38842 * script/sh/execute.c (grub_script_execute_cmdif): Reset grub_errno
38843 after we get the result of if statement.
38844
fc45fb58 388452009-05-03 Bean <bean123ch@gmail.com>
38846
38847 * Makefile.in (enable_efiemu): New variable.
38848
38849 * conf/i386-pc.rmk: Only compile efiemu runtimes when enable_efiemu is
38850 set.
38851 (efiemu32.o): Use macro $< for source file, add $(srcdir) to include
38852 path.
38853 (efi64_c.o): Use macro $< for source file, add $(srcdir) to include
38854 path, add -mno-red-zone option.
38855 (efiemu64_s.o): Likewise.
38856 (efiemu64.o): Use macro $^ for source file.
38857
38858 * configure.ac (--enable-efiemu): New option.
38859
bbee0f2b 388602009-05-03 Vladimir Serbinenko <phcoder@gmail.com>
38861
38862 xnu support
38863
38864 * conf/i386-efi.rmk (kernel_mod_HEADERS): added i386/pit.h
38865 (pkglib_MODULES): add xnu.mod
38866 (xnu_mod_SOURCES): new variable
38867 (xnu_mod_CFLAGS): likewise
38868 (xnu_mod_LDFLAGS): likewise
38869 (xnu_mod_ASFLAGS): likewise
38870 * conf/i386-pc.rmk: likewise
38871 * conf/x86_64-efi.rmk: likewise
7dd4a573 38872 * include/grub/efi/efi.h (grub_efi_finish_boot_services):
bbee0f2b 38873 new declaration
38874 * include/grub/i386/macho.h: new file
38875 * include/grub/i386/xnu.h: likewise
38876 * include/grub/macho.h: likewise
38877 * include/grub/machoload.h: likewise
38878 * include/grub/x86_64/macho.h: likewise
38879 * include/grub/x86_64/xnu.h: likewise
38880 * include/grub/xnu.h: likewise
38881 * kern/efi/efi.c (grub_efi_finish_boot_services): new function
38882 * kern/efi/mm.c (MAX_HEAP_SIZE): increase
38883 * loader/i386/efi/xnu.c: new file
38884 * loader/i386/pc/xnu.c: likewise
38885 * loader/i386/xnu.c: likewise
38886 * loader/i386/xnu_helper.S: likewise
38887 * loader/macho.c: likewise
38888 * loader/xnu.c: likewise
38889 * loader/xnu_resume.c: likewise
38890 * util/grub-dumpdevtree: likewise
38891 * include/grub/i386/pit.h: include grub/err.h
38892 (grub_pit_wait): export
38893 * util/grub.d/30_os-prober.in: support Darwin/Mac OS X
7dd4a573 38894
5caf964d 388952009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
38896
38897 Efiemu
7dd4a573 38898
5caf964d 38899 * conf/i386-pc.rmk: new modules efiemu, efiemu_acpi, efiemu_pnvram,
7dd4a573 38900 _linux_efi, linux_efi.
38901 new files in grub-emu
5caf964d 38902 new targets efiemu32.o and efiemu64.o
38903 * loader/linux_normal_efiemu.c: likewise
38904 * loader/i386/efi/linux.c: added preliminary efiemu support
7dd4a573 38905 * util/i386/pc/grub-install.in: add efiemu??.o to the list of
5caf964d 38906 files to copy
38907 * include/grub/autoefi.h: new file
7dd4a573 38908 * include/grub/i386/efiemu.h: likewise
5caf964d 38909 * include/grub/i386/pc/efiemu.h: likewise
38910 * include/grub/efi/api.h: add LL suffix when necessary
38911 new definitions relating to tables
38912 * include/grub/efiemu/efiemu.h: new file
38913 * include/grub/efiemu/runtime.h: likewise
38914 * efiemu/prepare.c: likewise
38915 * efiemu/loadcore_common.c: likewise
38916 * efiemu/loadcore64.c: likewise
38917 * efiemu/runtime/efiemu.sh: likewise
38918 * efiemu/runtime/efiemu.S: likewise
38919 * efiemu/runtime/efiemu.c: likewise
38920 * efiemu/runtime/config.h: likewise
38921 * efiemu/prepare32.c: likewise
38922 * efiemu/main.c: likewise
38923 * efiemu/modules/pnvram.c: likewise
38924 * efiemu/modules/i386: likewise
38925 * efiemu/modules/i386/pc: likewise
38926 * efiemu/modules/acpi.c: likewise
38927 * efiemu/i386/pc/cfgtables.c: likewise
38928 * efiemu/i386/loadcore64.c: likewise
38929 * efiemu/i386/loadcore32.c: likewise
38930 * efiemu/prepare64.c: likewise
38931 * efiemu/loadcore.c: likewise
38932 * efiemu/symbols.c: likewise
38933 * efiemu/mm.c: likewise
38934 * efiemu/loadcore32.c: likewise
7dd4a573 38935
389362009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
f8efe3ad 38937
38938 ACPI spoofing
38939
38940 * commands/acpi.c: new file
38941 * commands/i386/pc/acpi.c: likewise
38942 * commands/efi/acpi.c: likewise
38943 * include/grub/acpi.h: likewise
38944 * conf/i386-pc.rmk (pkglib_MODULES): added acpi.mod
38945 (acpi_mod_SOURCES): new variable
38946 (acpi_mod_CFLAGS): likewise
38947 (acpi_mod_LDFLAGS): likewise
38948 * conf/i386-efi.rmk: likewise
38949 * conf/x86_64-efi.rmk: likewise
38950
7dd4a573 389512009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
28a85665 38952
38953 Missing part from mmap patch
38954
38955 * mmap/efi/mmap.c (grub_machine_mmap_unregister): renamed to
38956 (grub_mmap_unregister)
38957 (grub_mmap_free_and_unregister): use grub_mmap_register
38958
7dd4a573 389592009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
09d842b9 38960
38961 Mmap services
38962
38963 * loader/i386/efi/linux.c (grub_linux_boot): use grub_mmap_iterate
38964 * loader/i386/linux.c (find_mmap_size): likewise
38965 (allocate_pages): likewise
38966 * loader/i386/multiboot.c (grub_get_multiboot_mmap_len): likewise
38967 (grub_fill_multiboot_mmap): likewise
38968 (grub_multiboot): use grub_mmap_get_lower and grub_mmap_get_upper
38969 * loader/i386/pc/linux.c (grub_cmd_linux): use grub_mmap_get_lower
38970 * include/grub/i386/bsd.h (OPENBSD_MMAP_AVAILABLE): new definition
38971 (OPENBSD_MMAP_RESERVED): likewise
38972 * include/grub/i386/pc/memory.h: include grub/memory.h
38973 (grub_lower_mem): removed
38974 (grub_upper_mem): likewise
38975 (GRUB_MACHINE_MEMORY_ACPI): new definition
38976 (GRUB_MACHINE_MEMORY_NVS): likewise
38977 (GRUB_MACHINE_MEMORY_MAX_TYPE): likewise
38978 (GRUB_MACHINE_MEMORY_HOLE): likewise
38979 (grub_machine_mmap_register): likewise
38980 (grub_machine_mmap_unregister): likewise
38981 (grub_machine_get_upper): likewise
38982 (grub_machine_get_lower): likewise
38983 (grub_machine_get_post64): likewise
38984 * include/grub/i386/efi/memory.h: new file
38985 * include/grub/x86_64/efi/memory.h: likewise
38986 * include/grub/efi/memory.h: likewise
38987 * conf/i386-pc.rmk (pkglib_MODULES): added mmap.mod
38988 (mmap_mod_SOURCES): new variable
38989 (mmap_mod_LDFLAGS): likewise
38990 (mmap_mod_ASFLAGS): likewise
38991 * conf/i386-coreboot.rmk: likewise
38992 * conf/i386-ieee1275.rmk: likewise
38993 * conf/i386-efi.rmk: likewise
38994 * conf/x86_64-efi.rmk: likewise
38995 * include/grub/types.h (UINT_TO_PTR): new macro
38996 (PTR_TO_UINT32): likewise
38997 (PTR_TO_UINT64): likewise
38998 * include/grub/memory.h: new file
38999 * mmap/i386/pc/mmap.c: likewise
39000 * mmap/i386/pc/mmap_helper.S: likewise
39001 * mmap/i386/uppermem.c: likewise
39002 * mmap/mmap.c: likewise
39003 * mmap/efi/mmap.c: likewise
7dd4a573 39004 * kern/i386/coreboot/init.c (grub_machine_init): don't use
09d842b9 39005 grub_upper_mem
39006 * kern/i386/pc/init.c (grub_lower_mem): removed variable
39007 (grub_upper_mem): likewise
39008 (grub_machine_init): don't use grub_upper_mem,
39009 make grub_lower_mem local
39010 * loader/i386/bsd.c (grub_openbsd_boot): use grub_mmap_get_lower,
39011 grub_mmap_iterate and grub_mmap_get_upper
39012 (grub_netbsd_boot): use grub_mmap_get_lower and grub_mmap_get_upper
39013
d558e6b5 390142009-05-02 Bean <bean123ch@gmail.com>
39015
39016 * conf/common.rmk (grub_script.tab.c): Change normal/parser.y to
39017 script/sh/parser.y.
39018 (pkglib_MODULES): Add normal.mod and sh.mod.
39019 (normal_SOURCES): New variable.
39020 (normal_mod_CFLAGS): Likewise.
39021 (normal_mod_LDFLAGS): Likewise.
39022 (sh_mod_SOURCES): Likewise.
39023 (sh_mod_CFLAGS): Likewise.
39024 (sh_mod_LDFLAGS): Likewise.
39025
39026 * conf/i386-pc.rmk (normal/lexer.c_DEPENDENCIES): Changed to
39027 script/sh/lexer.c_DEPENDENCIES.
39028 (kernel_img_SOURCES): Remove kern/rescue.c, and kern/reader.c,
39029 kern/rescue_reader.c and kern/rescue_parser.c.
39030 (kernel_img_HEADERS): Remove rescue.h, add reader.h.
39031 (grub_emu_SOURCES): Change source files.
39032 (pkglib_MODULES): Remove normal.mod.
39033 (normal_SOURCES): Removed.
39034 (normal_mod_CFLAGS): Likewise.
39035 (normal_mod_LDFLAGS): Likewise.
39036 * conf/i386-coreboot.rmk: Likewise.
39037 * conf/i386-efi.rmk: Likewise.
39038 * conf/i386-ieee1276.rmk: Likewise.
39039 * conf/powerpc-ieee1275.rmk: Likewise.
39040 * conf/sparc64-ieee1275.rmk: Likewise.
39041 * conf/x86_64-efi.rmk: Likewise.
39042
39043 * include/grub/command.h (grub_command_execute): New inline function.
39044
39045 * include/grub/menu.h (grub_menu_entry): Removed commands field.
39046
39047 * include/grub/normal.h: Remove <grub/setjmp.h>.
39048 (grub_fs_module_list): Moved to normal/autofs.c.
39049 (grub_exit_env): Removed.
39050 (grub_command_execute): Likewise.
39051 (grub_normal_menu_addentry): Renamed to grub_menu_addentry, removed
39052 parameter script.
39053 (read_command_list): New function declaration.
39054 (read_fs_list): Likewise.
39055
39056 * include/parser.h: Include <grub/reader.h>.
39057 (grub_parser_split_cmdline): Change type of getline parameter.
39058 (grub_parser): New structure.
39059 (grub_parser_class): New variable.
39060 (grub_parser_execute): New function declaration.
39061 (grub_register_rescue_parser): Likewise.
39062 (grub_parser_register): New inline function.
39063 (grub_parser_unregister): Likewise.
39064 (grub_parser_get_current): Likewise.
39065 (grub_parser_set_current): Likewise.
39066
39067 * include/grub/reader.h: New file.
39068 * kern/reader.c: Likewise.
39069 * kern/rescue_parser.c: Likewise.
39070 * kern/rescue_reader.c: Likewise.
39071 * normal/autofs.c: Likewise.
39072 * normal/dyncmd.c: Likewise.
39073
39074 * include/grub/rescue.h: Removed.
39075 * normal/command.h: Likewise.
39076
39077 * include/grub/script.h: Moved to ...
39078 * include/grub/script_sh.h: ... Moved here.
39079 * normal/execute.c: Moved to ...
39080 * script/sh/execute.c: ... Moved here.
39081 * normal/function.c: Moved to ...
39082 * script/sh/function.c: ... Moved here.
39083 * normal/lexer.c: Moved to ...
39084 * script/sh/lexer.c: ... Moved here.
39085 * normal/parser.y: Moved to ...
39086 * script/sh/parser.y: ... Moved here.
39087 * normal/script.c: Moved to ...
39088 * script/sh/script.c: ... Moved here.
39089
39090 * normal/main.c: Remove <grub/rescue.h> and <grub/script.h>, include
39091 <grub/reader.h>.
39092 (grub_exit_env): Removed.
39093 (fs_module_list): Moved to normal/autofs.c.
39094 (grub_file_getline): Don't handle comment here.
39095 (free_menu): Skip removed field entry->commands.
39096 (grub_normal_menu_addentry): Removed as grub_menu_entry, removed
39097 script parameter.
39098 (read_config_file): Removed nested parameter, change getline function.
39099 (grub_enter_normal_mode): Removed.
39100 (grub_dyncmd_dispatcher): Moved to normal/dyncmd.c.
39101 (read_command_list): Likewise.
39102 (autoload_fs_module): Moved to normal/autofs.c.
39103 (read_fs_list): Likewise.
39104 (reader_nested): New variable.
39105 (grub_normal_execute): Run parser.sh to switch to sh parser.
39106 (grub_cmd_rescue): Removed.
39107 (cmd_normal): Removed.
39108 (grub_cmd_normal): Unregister itself at the beginning. Don't register
39109 rescue command.
39110 (grub_cmdline_run): New function.
39111 (grub_normal_reader_init): Likewise.
39112 (grub_normal_read_line): Likewise.
39113 (grub_env_write_pager): Likewise.
39114 (cmdline): New variable.
39115 (grub_normal_reader): Likewise.
39116 (GRUB_MOD_INIT): Register normal reader and set as current, register
39117 pager hook, register normal command with grub_register_command_prio,
39118 so that it won't show up in command.lst.
39119 (GRUB_MOD_FINI): Unregister normal reader, unhook pager, clear
39120 grub_fs_autoload_hook.
39121
39122 * normal/menu.c: Remove <grub/script.h>, add <grub/command.h>.
39123 (grub_menu_execute_entry): Replace grub_script_execute with
39124 grub_parser_execute, change parameter to grub_command_execute.
39125
39126 * normal/menu_text.c: Remove <grub/script.h>.
39127
39128 * normal/menu_entry.c: Remove <grub/script.h>, add <grub/command.h>
39129 and <grub/parser.h>.
39130 (run): Change editor_getline to use new parser interface. Change
39131 parameter to grub_command_execute.
39132
39133 * kern/main.c: Remove <grub/rescue.h>, include <grub/command.h>,
39134 <grub/reader.h> and <grub/parser.h>.
39135 (grub_load_normal_mode): Execute normal command.
39136 (grub_main): Call grub_register_core_commands,
39137 grub_register_rescue_parser and grub_register_rescue_reader, use
39138 grub_reader_loop to enter input loop.
39139
7dd4a573 39140 * kern/parser.c (grub_parser_split_cmdline): Change type of
39141 getline parameter.
d558e6b5 39142 (grub_parser_class): New variable.
39143 (grub_parser_execute): New function.
39144
39145 * loader/i386/multiboot.c: Remove <grub/rescue.h>.
39146 * loader/multiboot2.c: Likewise.
39147 * loader/sparc64/ieee1275/linux.c: Likewise.
39148
39149 * util/grub-emu.c (read_command_list): New dummy function.
39150
18db813d 391512009-05-02 Robert Millan <rmh.grub@aybabtu.com>
39152
39153 * util/deviceiter.c (grub_util_iterate_devices): Increase max drive
39154 count to 16 for CCISS and IDA.
39155
6c67de15 391562009-05-02 Robert Millan <rmh.grub@aybabtu.com>
39157
39158 * normal/menu_text.c (grub_wait_after_message): Print a newline
39159 after waiting for user input.
39160
39161 * loader/i386/linux.c: Include `<grub/normal.h>'.
39162 (grub_cmd_linux): Improve the error message about `ask' mode, by
39163 waiting for user input so it's not missed (we can do this, since
39164 user requested interaction).
39165
d9dc87b0 391662009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
39167
39168 Added missing lst to grub-mkrescue
39169
39170 * util/i386/pc/grub-mkrescue.in: added ${input_dir}/handler.lst
39171 and ${input_dir}/parttool.lst
39172
ac8a2baa 391732009-04-30 David S. Miller <davem@davemloft.net>
39174
ad22a610 39175 * util/hostdisk.c (device_is_wholedisk): New function.
39176 (grub_util_biosdisk_get_grub_dev): Shortcut when hdg.start is
39177 zero only if device_is_wholedisk() returns true.
39178
6966215d 39179 * util/hostdisk.c (convert_system_partition_to_system_disk):
39180 Handle virtual disk devices named /dev/vdiskX as found on sparc
39181 and powerpc.
39182
ac8a2baa 39183 * kern/sparc64/ieee1275/init.c (grub_machine_set_prefix): If
39184 lettered partition specifier is found, convert to numbered.
39185
979b4fb4 391862009-04-29 David S. Miller <davem@davemloft.net>
39187
e2bf39b2 39188 * include/grub/powerpc/ieee1275/memory.h: Include ieee1275.h.
39189 * include/grub/sparc64/ieee1275/memory.h: Likewise.
39190
3c64e104 39191 * normal/command.c: Add missing newline at end of file.
39192
979b4fb4 39193 * commands/lsmmap.c (grub_cmd_lsmmap): Add casts to avoid printf
39194 warnings.
39195 * kern/ieee1275/openfw.c (grub_claimmap): Likewise.
39196 * disk/ieee1275/ofdisk.c (grub_ofdisk_open, grub_ofdisk_close,
39197 grub_ofdisk_read): Likewise, and deal similarly with the fact that
39198 ihandles have a 32-bit type but need to be stored in a "void *".
39199
136d9f82 392002009-04-28 Pavel Roskin <proski@gnu.org>
39201
9459c306 39202 * disk/fs_uuid.c (grub_fs_uuid_open): Use parent->data for dev,
39203 not disk. Adjust all dependencies.
2e08a26a 39204 (grub_fs_uuid_close): Use grub_device_close(), not
9459c306 39205 grub_disk_close().
39206
136d9f82 39207 * disk/fs_uuid.c (grub_fs_uuid_open): Allocate memory to copy
39208 parent's partition, don't copy it by reference, as it gets freed
39209 on close.
39210
7dd4a573 392112009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
75a807cf 39212
39213 Preboot hooks support
39214
39215 * commands/boot.c (struct grub_preboot_t): new declaration
39216 (preboots_head): new variable
39217 (preboots_tail): likewise
39218 (grub_loader_register_preboot_hook): new function
39219 (grub_loader_unregister_preboot_hook): likewise
39220 (grub_loader_set): launch preboot hooks
39221 * include/grub/loader.h (grub_loader_preboot_hook_prio_t): new type
39222 (grub_loader_register_preboot_hook): new declaration
39223 (grub_loader_unregister_preboot_hook): likewise
39224
5af922b5 392252009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
39226
39227 Warning fix
39228
7dd4a573 39229 * disk/scsi.c (grub_scsi_open): added missing cast when
5af922b5 39230 calling grub_dprintf
39231
a5562c30 392322009-04-26 Vladimir Serbinenko <phcoder@gmail.com>
39233
39234 Bug and warning fixes
39235
7dd4a573 39236 * include/grub/i386/pc/init.h (grub_stop_floppy): added missing
a5562c30 39237 declaration
39238 * commands/test.c (test_parse): fixed bug with file tests and corrected
39239 declaration of find_file
39240
4006f85c 392412009-04-26 Pavel Roskin <proski@gnu.org>
39242
39243 * Makefile.in: Don't install empty manual pages if help2man is
39244 missing. Use help2man option for output, not shell redirection.
39245
5c77c3de 392462009-04-26 David S. Miller <davem@davemloft.net>
39247
39248 * util/grub-mkdevicemap.c (make_device_map): Add missing
39249 NESTED_FUNC_ATTR to process_device().
39250
033b10a8 392512009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
39252
39253 Test command
39254
39255 * commands/test.c: rewritten to use bash-like test
39256
e4343593 392572009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
39258
39259 Parttool autoloading and improvements
39260
7dd4a573 39261 * Makefile.in (pkglib_DATA): add parttool.lst
e4343593 39262 (parttool.lst): new target
39263 * genmk.rb: generate parttool-*
39264 (CLEANFILES): add #{parttool}
39265 (PARTTOOLFILES): new variable
39266 * genparttoollist.sh: new file
7dd4a573 39267 * parttool/pcpart.c (grub_pcpart_boot): more feedback
e4343593 39268 (grub_pcpart_type): likewise
39269 * commands/parttool.c (helpmsg): new variable
39270 (grub_cmd_parttool): output help if not enough arguments are supplied
39271 autoload modules
39272 (GRUB_MOD_INIT(parttool)): use helpmsg
39273
0d312500 392742009-04-24 David S. Miller <davem@davemloft.net>
39275
7dd4a573 39276 Avoiding opening same device multiple times in device iterator.
0d312500 39277
39278 * kern/device.c: (grub_device_iterate): Define struct part_ent,
7dd4a573 39279 and use it to build a list of partitions in iterate_disk() and
0d312500 39280 iterate_partition().
39281
ac20caff 39282 * disk/fs_uuid.c (grub_fs_uuid_close): Call grub_disk_close()
39283 on disk->data.
39284
0dcf7495 39285 * disk/ieee1275/nand.c (grub_nand_iterate): Return
39286 grub_devalias_iterate() result instead of unconditional 0.
39287 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Likewise.
39288 Also, capture hook return value, either directly or via
39289 grub_children_iterate(), and propagate to caller.
39290 * include/grub/ieee1275/ieee1275.h (grub_devalias_iterate,
39291 grub_children_iterate): Return value is now 'int' instead of
39292 'grub_err_t'.
39293 * kern/ieee1275/openfw.c (grub_children_iterate): Fix to behave
39294 like a proper iterator, stopping when hooks return non-zero.
39295 (grub_devalias_iterate): Likewise.
39296
c8c08833 392972009-04-23 David S. Miller <davem@davemloft.net>
39298
39299 * kern/sparc64/ieee1275/openfw.c: Unused, delete.
39300
f01005a8 393012009-04-22 David S. Miller <davem@davemloft.net>
39302
39303 * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): If size_cells
39304 is larger than address_cells, use that value for address_cells too.
39305
4e8269da 39306 * include/grub/ieee1275/ieee1275.h (IEEE1275_MAX_PROP_LEN,
39307 IEEE1275_MAX_PATH_LEN): Define.
39308 * kern/ieee1275/openfw.c (grub_children_iterate): Dynamically
39309 allocate 'childtype', 'childpath', 'childname', and 'fullname'.
39310 (grub_devalias_iterate): Dynamically allocate 'aliasname' and
39311 'devtype'. Explicitly NULL terminate devalias expansion.
39312
a1447506 39313 * util/sparc64/ieee1275/misc.c: New file.
39314 * util/sparc64/ieee1275/grub-setup.c: New file.
39315 * util/sparc64/ieee1275/grub-ofpathname.c: New file.
39316 * util/sparc64/ieee1275/grub-mkimage.c: New file.
39317 * util/sparc64/ieee1275/grub-install.in: New file.
39318 * util/ieee1275/ofpath.c: New file.
39319 * util/ieee1275/devicemap.c: New file.
39320 * util/devicemap.c: New file.
39321 * util/deviceiter.c: New file.
39322 * kern/sparc64/ieee1275/init.c: New file.
39323 * include/grub/util/ofpath.h: New file.
39324 * include/grub/util/deviceiter.h: New file.
39325 * util/grub-mkdevicemap.c: Include deviceiter.h.
39326 Implement using grub_util_emit_devicemap_entry and
39327 grub_util_iterate_devices.
39328 * conf/i386-corebook.rmk: Build util/deviceiter.c and
39329 util/devicemap.c into grub-mkdevicemap
39330 * conf/i386-efi.rmk: Likewise.
39331 * conf/i386-ieee1275.rmk: Likewise.
39332 * conf/i386-pc.rmk: Likewise.
39333 * conf/powerpc-ieee1275.rmk: Likewise.
39334 * conf/sparc64-ieee1275.rmk: Add rules to build boot block
39335 images and installation utilities. Build kernel as image
39336 instead of as elf binary. Use common rules as much as possible.
39337
7dd4a573 393382009-04-19 Vladimir Serbinenko <phcoder@gmail.com>
0aefc632 39339
39340 Correct GPT definition
39341
7dd4a573 39342 * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
0aefc632 39343 of "attrib" member
39344
c6c5219f 393452009-04-19 Felix Zielcke <fzielcke@z-51.de>
39346
39347 * INSTALL: Replace `autogen.sh' with `./autogen.sh'.
39348
0552ff9f 393492009-04-19 David S. Miller <davem@davemloft.net>
39350
39351 * loader/sparc64/ieee1275/linux.c: Include grub/command.h
39352 (grub_rescue_cmd_linux): Rename to...
39353 (grub_cmd_linux): and fix prototype.
39354 (grub_rescue_cmd_initrd): Rename to...
39355 (grub_cmd_initrd): and fix prototype.
39356 (cmd_linux, cmd_initrd): New.
39357 (GRUB_MOD_INIT(linux)): Use grub_register_command().
39358 (GRUB_MOD_FINI(linux): Use grub_unregister_command().
39359
d1a282fc 393602009-04-17 Pavel Roskin <proski@gnu.org>
39361
07c5039f 39362 * bus/usb/ohci.c (grub_ohci_transaction): Fix incorrect printf
39363 format.
39364 (grub_ohci_transfer): Likewise.
39365
b012002d 39366 * bus/usb/usbtrans.c (grub_usb_control_msg): Warning fix.
39367
1bc09c35 39368 * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Fix
39369 return without a value. Fix inconsistent indentation.
39370
e0ff9126 39371 * fs/i386/pc/pxe.c (grub_pxefs_dir): Fix function prototype to
39372 match struct grub_fs.
39373
d1a282fc 39374 * disk/ata.c (grub_ata_pciinit): Use NESTED_FUNC_ATTR.
39375 * bus/usb/ohci.c (grub_ohci_pci_iter): Likewise.
39376 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
39377 * commands/lspci.c (grub_lspci_iter): Likewise.
39378
a96df3f2 393792009-04-16 Bean <bean123ch@gmail.com>
39380
39381 * commands/efi/loadbios.c (grub_cmd_fakebios): Add missing return
39382 value.
39383
41bb0fe9 393842009-04-15 Pavel Roskin <proski@gnu.org>
39385
39386 * include/grub/types.h: Rename ULONG_MAX to GRUB_ULONG_MAX and
39387 LONG_MAX to GRUB_LONG_MAX. Introduce GRUB_LONG_MIN. Update all
39388 users of ULONG_MAX, LONG_MAX and LONG_MIN to use the new
39389 definitions.
39390
596c6970 393912009-04-15 Felix Zielcke <fzielcke@z-51.de>
39392
39393 * disk/lvm.c (grub_lvm_scan_device): Add `LVM' to the error messages,
7dd4a573 39394 that no multiple data or metadata areas are supported and `Unknown
596c6970 39395 metadata header'.
39396
7dd4a573 393972009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
0d5d5653 39398
39399 Move loader out of the kernel
39400
39401 * kern/loader.c: moved to ...
39402 * commands/boot.c: ... moved here
39403 * commands/minicmd.c (grub_mini_cmd_boot): moved to ...
39404 * commands/boot.c (grub_cmd_boot): moved here. All users updated
39405 * include/grub/kernel.h (grub_machine_fini): export
39406 * include/grub/loader.h (grub_loader_is_loaded): update declaration
39407 (grub_loader_set): likewise
39408 (grub_loader_unset): likewise
39409 (grub_loader_boot): likewise
39410 * conf/common.rmk: new module boot.mod
39411 (pkglib_MODULES): add boot.mod
39412 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): remove kern/loader.c
39413 (grub_emu_SOURCES): likewise
39414 * conf/i386-efi.rmk (kernel_elf_SOURCES): likewise
39415 (grub_emu_SOURCES): likewise
39416 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): likewise
39417 (grub_emu_SOURCES): likewise
39418 * conf/i386-pc.rmk (kernel_elf_SOURCES): likewise
39419 (grub_emu_SOURCES): likewise
39420 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): likewise
39421 (grub_emu_SOURCES): likewise
7dd4a573 39422 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): likewise
39423 (grub_emu_SOURCES): likewise
0d5d5653 39424 * conf/x86_64-efi.rmk (kernel_elf_SOURCES): likewise
7dd4a573 39425 (grub_emu_SOURCES): likewise
0d5d5653 39426
7dd4a573 394272009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
5999d619 39428
39429 use grub_lltoa instead of grub_itoa and grub_ltoa for all purposes
7dd4a573 39430
5999d619 39431 * kern/misc.c (grub_itoa): Removed function
39432 (grub_ltoa): likewise
39433 (grub_vsprintf): use grub_lltoa
39434
7dd4a573 394352009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
13c00781 39436
39437 Restore grub-emu
39438
39439 * conf/i386-pc.rmk (grub_emu_SOURCES): add normal/handler.c
39440 * conf/i386-coreboot.rmk: likewise
39441 * conf/i386-ieee1275.rmk: likewise
39442 * conf/powerpc-ieee1275.rmk: likewise
7dd4a573 39443
20318222 394442009-04-15 Felix Zielcke <fzielcke@z-51.de>
39445
39446 * INSTALL: Add that `./autogen.sh' needs to be run before
39447 `./configure.'.
39448
d05f0df3 394492009-04-14 Bean <bean123ch@gmail.com>
39450
39451 * Makefile.in (pkglib_DATA): Add handler.lst.
39452 (handler.lst): New rule.
39453
39454 * conf/i386-pc.rmk (normal_mod_SOURCES): Add normal/handler.c.
39455 * conf/i386-coreboot.rmk: Likewise.
39456 * conf/i386-ieee1275.rmk: Likewise.
39457 * conf/i386-efi.rmk: Likewise.
39458 * conf/x86_64-efi.rmk: Likewise.
39459 * conf/powerpc-ieee1275.rmk: Likewise.
39460 * conf/sparc64-ieee1275.rmk: Likewise.
39461
39462 * genhandlerlist.sh: New file.
39463
39464 * genmk.rb: Add rules to generate handler.lst.
39465
39466 * include/grub/normal.h (grub_file_getline): New function definition.
39467 (read_handler_list): Likewise.
39468 (free_handler_list): Likewise.
39469
39470 * include/grub/term.h (grub_term_register_input): Add name parameter
39471 for auto generation of handler.lst.
39472 (grub_term_register_output): Likewise.
39473
39474 * normal/handler.c: New file.
39475
39476 * normal/main.c (get_line): Renamed to grub_file_getline.
39477 (read_config_file): Use the newly renamed grub_file_getline.
39478 (read_command_list): Likewise.
39479 (read_fs_list): Likewise.
39480 (grub_normal_execute): Call read_handler_list to parse handler.lst.
39481 (GRUB_MOD_FINI): Call free_handler_list to free handler list.
39482
39483 * term/efi/console.c (grub_console_init): Add name parameter for auto
39484 generation of handler.lst.
39485 * term/gfxterm.c: Likewise.
39486 * term/i386/pc/at_keyboard.c: Likewise.
39487 * term/i386/pc/console.c: Likewise.
39488 * term/i386/pc/serial.c: Likewise.
39489 * term/i386/pc/vesafb.c: Likewise.
39490 * term/i386/pc/vga.c: Likewise.
39491 * term/i386/pc/vga_text.c: Likewise.
39492 * term/ieee1275/ofconsole.c: Likewise.
39493 * term/usb_keyboard.c: Likewise.
39494
33c846be 394952009-04-14 Bean <bean123ch@gmail.com>
39496
39497 * util/grub-pe2elf.c (write_symbol_table): Terminate short name symbol
39498 properly with null character.
39499
4484e01e 395002009-04-14 Felix Zielcke <fzielcke@z-51.de>
39501
39502 * configure: Remove.
39503 * config.h.in: Likewise.
f93d668e 39504 * stamp-h.in: Likewise.
4484e01e 39505 * DISTLIST: Likewise.
39506 * conf/common.mk: Likewise.
39507 * conf/i386-coreboot.mk: Likewise.
39508 * conf/i386-efi.mk: Likewise.
39509 * conf/i386-ieee1275.mk: Likewise.
39510 * conf/i386.mk: Likewise.
39511 * conf/i386-pc.mk: Likewise.
39512 * conf/powerpc-ieee1275.mk: Likewise.
39513 * conf/sparc64-ieee1275.mk: Likewise.
39514 * conf/x86_64-efi.mk: Likewise.
39515
39516 * INSTALL: Remove the sentence that Ruby and autoconf are only required if you
39517 develop on GRUB.
39518
7dd4a573 395192009-04-14 John Stanley <jpsinthemix@verizon.net>
5c5bf96a 39520 David S. Miller <davem@davemloft.net>
39521
39522 * util/hostdisk.c (make_device_name): Fix buffer length
39523 calculations.
39524
e25b5a8c 395252009-04-14 Felix Zielcke <fzielcke@z-51.de>
39526
39527 * util/hostdisk.c [__FreeBSD__ || __FreeBSD_kernel__]: Include
39528 <sys/param.h> and <sys/sysctl.h>.
39529 (open_device) [__FreeBSD__ || __FreeBSD_kernel_]: Use sysctlgetbyname()
39530 to add 0x10 to `kern.geom.debugflags' if it's not already set, before
39531 opening the device and reset them afterwards.
39532
1f1f580c 395332009-04-13 Pavel Roskin <proski@gnu.org>
39534
39535 * conf/common.rmk (grub_fstest_SOURCES): Add normal/datetime.c.
39536 Reported by John Stanley <jpsinthemix@verizon.net>
39537
7ebc2d6b 395382009-04-13 Robert Millan <rmh@aybabtu.com>
39539
39540 * util/grub.d/10_freebsd.in: Detect Debian GNU/kFreeBSD and use
7dd4a573 39541 that name for menuentries when appropriate.
7ebc2d6b 39542
d8ba3667 395432009-04-13 Felix Zielcke <fzielcke@z-51.de>
39544
39545 * util/grub.d/10_freebsd.in: Add a missing `fi'.
39546
cba416eb 395472009-04-13 Robert Millan <rmh@aybabtu.com>
39548
39549 * loader/i386/linux.c (grub_cmd_linux): Don't pass `vga=ask' parameter
39550 to Linux, simply abort telling the user it's no longer supported.
39551
a547a745 395522009-04-13 Felix Zielcke <fzielcke@z-51.de>
39553
39554 * util/grub.d/10_freebsd.in: Don't exit if /boot/devices.hints
7dd4a573 39555 doesn't exist. Check also for /boot/kernel/kernel.gz. Print
a547a745 39556 `freebsd_loadenv' only when devices.hints exist.
39557
232a769c 395582009-04-13 Pavel Roskin <proski@gnu.org>
39559
39560 * term/usb_keyboard.c (grub_usb_keyboard_getkey): Warning fixes.
39561
c3012039 395622009-04-13 Felix Zielcke <fzielcke@z-51.de>
39563
39564 * util/i386/pc/grub-install.in (install_drive): Remove the BSD
39565 partition number.
39566 (grub_drive): Likewise.
39567
234022fe 395682009-04-13 David S. Miller <davem@davemloft.net>
39569
39570 * kern/sparc64/ieee1275/ieee1275.c: New file.
39571 * include/grub/sparc64/ieee1275/ieee1275.h (IEEE1275_MAP_WRITE,
39572 IEEE1275_MAP_READ, IEEE1275_MAP_EXEC, IEEE1275_MAP_LOCKED,
39573 IEEE1275_MAP_CACHED, IEEE1275_MAP_SE, IEEE1275_MAP_GLOBAL,
39574 IEEE1275_MAP_IE, IEEE1275_MAP_DEFAULT): Define.
39575 (grub_ieee1275_map_physical, grub_ieee1275_claim_vaddr,
39576 grub_ieee1275_alloc_physmem): Declare new exported functions.
39577
d8e1836c 39578 * include/grub/sparc64/ieee1275/loader.h: New file.
39579 * include/grub/sparc64/ieee1275/memory.h: Likewise.
39580 * include/grub/sparc64/kernel.h: Likewise.
39581 * loader/sparc64/ieee1275/linux.c: Likewise.
39582
96bd81ec 39583 * conf/common.rmk (grub_probe_SOURCES): Add Sun partition module.
39584 (grub_fstest_SOURCES): Likewise.
39585
6a4737e5 39586 * util/hostdisk.c (make_device_name): Do not make any assumptions
39587 about the length of drive names.
39588
1d7a72fd 39589 * kern/dl.c (grub_dl_load_file): Close file immediately when
39590 we are done using it.
39591
56bc2471 395922009-04-12 David S. Miller <davem@davemloft.net>
39593
39594 * kern/misc.c (grub_ltoa): Fix cast when handling negative
39595 values. Noticed by Pavel Roskin.
39596
df38d0bb 39597 * configure.ac: Check for __bswapsi2 and__bswapdi2 using
39598 target compiler.
7dd4a573 39599
e382e93a 39600 * genmk.rb: Add more flexible image type specification, also
39601 pass --strip-unneeded to objcopy.
39602 * conf/i386-pc.rmk: Use *_FORMAT.
39603 * conf/i386-pc.mk: Rebuilt.
39604
f5dbbca9 39605 * disk/ieee1275/ofdisk.c (struct ofdisk_hash_ent): New struct.
39606 (OFDISK_HASH_SZ): Define.
39607 (ofdisk_hash): New hash table.
39608 (ofdisk_hash_fn, ofdisk_hash_find, ofdisk_hash_add): New functions.
39609 (grub_ofdisk_open): Use ofdisk_hash_ent address as disk->id
39610 instead of device phandle which is not unique.
39611
91c88b12 39612 * kern/sparc64/ieee1275/init.c: Delete, replace with...
39613 * kern/sparc64/ieee1275/crt0.S: assembler implementation.
39614 * include/grub/sparc64/ieee1275/kernel.h: Declare grub_prefix[].
39615 (GRUB_MOD_ALIGN, GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_TOTAL_MODULE_SIZE,
39616 GRUB_KERNEL_MACHINE_KERNEL_IMAGE_SIZE,
39617 GRUB_KERNEL_MACHINE_COMPRESSED_SIZE, GRUB_KERNEL_MACHINE_PREFIX,
39618 GRUB_KERNEL_MACHINE_DATA_END): Define.
39619 (grub_kernel_image_size, grub_total_module_size): Declare.
39620
5b5d4aa5 396212009-04-12 Pavel Roskin <proski@gnu.org>
39622
7dd4a573 39623 * configure.ac: Change the logic when we check for target tools.
39624 Do it when the target is specified and it's different from the
39625 specified value of the host.
5b5d4aa5 39626
c91e1793 396272009-04-11 Felix Zielcke <fzielcke@z-51.de>
39628
39629 * util/hostdisk.c [__FreeBSD_kernel__]: Include sys/disk.h.
39630 (grub_util_biosdisk_open) [__FreeBSD_kernel__]: Add support for
39631 GNU/kFreeBSD. Check if a device is a character device. Use
39632 DIOCGMEDIASIZE to get the size.
39633 (convert_system_partition_to_system_disk) [__FreeBSD_kernel__]: Add
39634 support for GNU/kFreeBSD.
39635 (grub_util_biosdisk_get_grub_dev) [__FreeBSD_kernel__]: Check if OS_DEV
39636 is a character device instead of a block device. Add support for
39637 FreeBSD device names.
39638
39639 * util/getroot.c (find_root_device) [__FreeBSD_kernel__]: Check if ENT
39640 is a character device instead of a block device.
39641
39642 * util/grub-probe.c (probe) [__FreeBSD_kernel__]: Check if DEVICE_NAME
39643 is a character device instead of a block device.
39644
b1ac8644 396452009-04-11 Andrey Shuvikov <mr_hyro@yahoo.com>
39646
39647 * util/hostdisk.c [__FreeBSD__]: Include sys/disk.h.
39648 (grub_util_biosdisk_open) [__FreeBSD__]: Add support for
39649 FreeBSD. Check if a device is a character device. Use
39650 DIOCGMEDIASIZE to get the size.
39651 (convert_system_partition_to_system_disk) [__FreeBSD__]: Add
39652 support for FreeBSD.
39653 (grub_util_biosdisk_get_grub_dev) [__FreeBSD__]: Check if OS_DEV
39654 is a character device instead of a block device. Add support for
39655 FreeBSD device names.
39656
39657 * util/getroot.c (find_root_device) [__FreeBSD__]: Check if ENT is
39658 a character device instead of a block device.
39659 (grub_util_check_char_device): New function.
39660
39661 * util/grub-probe.c (probe) [__FreeBSD__]: Check if DEVICE_NAME is
39662 a character device instead of a block device.
39663
39664 * include/grub/util/getroot.h (grub_util_check_char_device): New
39665 prototype.
39666
a3f7515a 396672009-04-11 David S. Miller <davem@davemloft.net>
39668
39669 * conf/sparc64-ieee1275.rmk (kernel_img_LDFLAGS): Link with
39670 static libgcc.
39671 * configure.ac: Check for __bswapsi2 and __bswapdi2 presence.
39672 * include/grub/sparc64/libgcc.h (__bswapsi2): Export libgcc
39673 function, if present.
39674 (__bswapdi2): Likewise.
39675
0d44993d 39676 * include/grub/sparc64/ieee1275/boot.h: New file.
39677 * boot/sparc64/ieee1275/boot.S: Likewise.
39678 * boot/sparc64/ieee1275/diskboot.S: Likewise.
39679
ed3d2bc2 39680 * kern/misc.c (grub_ltoa): New function.
39681 (grub_vsprintf): Use it to format 'long' integers.
39682
d3bfb59c 396832009-04-10 David S. Miller <davem@davemloft.net>
39684
39685 * disk/ieee1275/nand.c (grub_nand_open): All ieee1275 call arg
39686 slots are of type grub_ieee1275_cell_t.
39687 (grub_nand_read): Likewise.
39688 * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_INVALID,
39689 IEEE1275_IHANDLE_INVALID): Use grub_ieee1275_cell_t since these
39690 macros are used to compare values in arg/ret block of the call.
39691 (grub_ieee1275_finddevice, grub_ieee1275_get_property,
39692 grub_ieee1275_next_property, grub_ieee1275_get_property_length,
39693 grub_ieee1275_instance_to_package, grub_ieee1275_package_to_path,
39694 grub_ieee1275_instance_to_path, grub_ieee1275_write,
39695 grub_ieee1275_read, grub_ieee1275_seek, grub_ieee1275_peer,
39696 grub_ieee1275_child, grub_ieee1275_parent, grub_ieee1275_open,
39697 grub_ieee1275_close, grub_ieee1275_set_property,
39698 grub_ieee1275_set_color): All ieee1275 call arg slots are of type
39699 grub_ieee1275_cell_t.
39700 * kern/ieee1275/openfw.c (grub_map): Likewise.
39701 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_ihandle_t,
39702 grub_ieee1275_phandle_t): Define as grub_unit32_t type.
39703
450e2238 39704 * kern/ieee1275/init.c (grub_machine_init): Make 'actual' grub_ssize_t.
39705 * kern/ieee1275/openfw.c (grub_children_iterate): Likewise.
39706 (grub_devalias_iterate): Likewise.
39707
7dd4a573 397082009-04-10 Vladimir Serbinenko <phcoder@gmail.com>
6df8cc76 39709
39710 UFS improvements
39711
39712 * fs/ufs.c (INODE_NBLOCKS): new definition
39713 (struct grub_ufs_dirent): added fields for non-BSD dirents
39714 (grub_ufs_get_file_block): fixed double indirect handling
39715 (grub_ufs_lookup_symlink): use more robust way to determine whether
39716 symlink is inline
39717 (grub_ufs_find_file): support for non-BSD dirents
39718 (grub_ufs_dir): support for non-BSD dirents
39719
e7e6862a 397202009-04-10 Bean <bean123ch@gnail.com>
39721
39722 * include/grub/efi/api.h (grub_efi_configuration_table): Add packed
39723 attribute, otherwise the size would be wrong for i386 platform.
39724
39725 * include/grub/pci.h (grub_pci_read_word): New inline function.
39726 (grub_pci_read_byte): Likewise.
39727 (grub_pci_write): Likewise.
39728 (grub_pci_write_word): Likewise.
39729 (grub_pci_write_byte): Likewise.
39730
39731 * include/grub/pci.h (grub_pci_iteratefunc_t): Add NESTED_FUNC_ATTR.
39732
39733 * loader/i386/efi/linux.c (fake_bios_data): Moved to loadbios module.
39734 (find_framebuf): Scan pci to locate the frame buffer address.
39735
39736 * commands/efi/fixvideo.c: New file.
39737
39738 * commands/efi/loadbios.c: Likewise.
39739
39740 * commands/memrw.c: Likewise.
39741
39742 * util/grub-dumpbios.in: Likewise.
39743
39744 * conf/common.rmk (grub-dumpbios): New utility.
39745 (pkglib_MODULES): New module memrw.mod.
39746 (memrw_mod_SOURCE): New macro.
39747 (memrw_mod_CFLAGS): Likewise.
39748 (memrw_mod_LDFLAGS): Likewise.
39749
7dd4a573 39750 * conf/i386-efi.rmk (pkglib_MODULES): New module loadbios.mod and
e7e6862a 39751 fixvideo.mod.
39752 (loadbios_mod_SOURCE): New macro.
39753 (loadbios_mod_CFLAGS): Likewise.
39754 (loadbios_mod_LDFLAGS): Likewise.
39755 (fixvideo_mod_SOURCE): Likewise.
39756 (fixvideo_mod_CFLAGS): Likewise.
39757 (fixvideo_mod_LDFLAGS): Likewise.
39758
7dd4a573 39759 * conf/x86_64.rmk (pkglib_MODULES): New module loadbios.mod and
e7e6862a 39760 fixvideo.mod.
39761 (loadbios_mod_SOURCE): New macro.
39762 (loadbios_mod_CFLAGS): Likewise.
39763 (loadbios_mod_LDFLAGS): Likewise.
39764 (fixvideo_mod_SOURCE): Likewise.
39765 (fixvideo_mod_CFLAGS): Likewise.
39766 (fixvideo_mod_LDFLAGS): Likewise.
39767
af63ada2 397682009-04-08 Felix Zielcke <fzielcke@z-51.de>
39769
39770 * disk/lvm.c (grub_lvm_scan_device): Add a missing NULL check.
39771
c2cdde70 397722009-04-07 David S. Miller <davem@davemloft.net>
39773
39774 * kern/sparc64/dl.c (grub_arch_dl_relocate_symbols): Add
39775 support for R_SPARC_OLO10 relocations. Fix compile warning for
39776 R_SPARC_WDISP30 case.
ea3f72cf 39777 * kern/sparc64/cache.S: Fix grub_arch_sync_caches implementation.
c2cdde70 39778
761319cf 397792009-04-06 Pavel Roskin <proski@gnu.org>
39780
1007d1f5 39781 * include/grub/misc.h (ARRAY_SIZE): New macro.
39782 * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START):
39783 New macro.
39784 * loader/i386/linux.c (allocate_pages): Use free_pages().
39785 (grub_linux_unload): Don't use free_pages().
39786 (grub_linux_boot): Prevent accessing linux_vesafb_modes with a
39787 wrong index. Treat all other modes as text modes.
39788 (grub_cmd_linux): Initialize vid_mode unconditionally to
39789 GRUB_LINUX_VID_MODE_NORMAL. Recognize and support "vga=ask".
39790
761319cf 39791 * commands/help.c (print_command_help): Use cmd->prio, not
39792 cmd->flags to check for GRUB_PRIO_LIST_FLAG_ACTIVE.
39793
ea761d40 397942009-04-06 Vladimir Serbinenko <phcoder@gmail.com>
7dd4a573 39795
ea761d40 39796 Parttool
39797
39798 * parttool/pcpart.c: new file
39799 * commands/parttool.c: likewise
39800 * conf/common.rmk (pkglib_MODULES): Added parttool.mod and pcpart.mod
39801 (parttool_mod_SOURCES): new variable
39802 (parttool_mod_CFLAGS): likewise
39803 (parttool_mod_LDFLAGS): likewise
39804 (pcpart_mod_SOURCES): likewise
39805 (pcpart_mod_CFLAGS): likewise
39806 (pcpart_mod_LDFLAGS): likewise
7dd4a573 39807 * conf/i386-coreboot.rmk (grub_emu_SOURCES): added commands/parttool.c
ea761d40 39808 and parttool/pcpart.c
39809 * conf/i386-efi.rmk: likewise
39810 * conf/i386-ieee1275.rmk: likewise
39811 * conf/i386-pc.rmk: likewise
39812 * conf/powerpc-ieee1275.rmk: likewise
39813 * conf/sparc64-ieee1275.rmk: likewise
39814 * conf/x86_64-ieee1275.rmk: likewise
39815
05aaebfb 398162009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
39817
39818 Support for mtime and further expandability of dir command
39819
39820 * include/grub/lib/datetime.h: moved to ...
7dd4a573 39821 * include/grub/datetime.h: ... moved here and added
05aaebfb 39822 declaration of grub_unixtime2datetime. All users updated
7dd4a573 39823 * include/grub/fs.h: new syntax for dir and mtime functions in
39824 struct grub_fs
05aaebfb 39825 * include/grub/fshelp.h: new declarations of GRUB_FSHELP_TYPE_MASK
39826 and GRUB_FSHELP_FLAGS_MASK
39827 * commands/ls.c (grub_ls_list_files): Write mtime in long format
39828 * fs/ext2.c (grub_ext2_dir): use new dir syntax and supply mtime
39829 (grub_ext2_mtime): new function
39830 * fs/hfsplus.c (grub_hfsplus_dir): use new dir syntax and supply mtime
39831 (grub_hfsplus_mtime): new function
39832 * fs/ufs.c (GRUB_UFS_ATTR_TYPE): new definition
39833 (GRUB_UFS_ATTR_FILE): likewise
39834 (GRUB_UFS_ATTR_LNK): likewise
39835 (struct grub_ufs_sblock): new fields mtime
39836 (grub_ufs_read_inode): new parameter to read inode to a separate buffer
39837 all users updated
39838 (grub_ufs_dir): mtime support
39839 (grub_ufs_mtime): new function
39840 * fs/affs.c (grub_affs_dir): use new dir syntax
39841 * fs/afs.c (grub_afs_dir): likewise
39842 * fs/cpio.c (grub_cpio_dir): likewise
39843 * fs/fat.c (grub_fat_find_dir): likewise
39844 * fs/hfs.c (grub_hfs_dir): likewise
39845 * fs/iso9660.c (grub_iso9660_dir): likewise
39846 * fs/jfs.c (grub_jfs_dir): likewise
39847 * fs/minix.c (grub_minix_dir): likewise
39848 * fs/ntfs.c (grub_ntfs_dir): likewise
39849 * fs/reiserfs.c (grub_reiserfs_dir): likewise
39850 * fs/sfs.c (grub_sfs_dir): likewise
39851 * fs/xfs.c (grub_xfs_dir): likewise
39852 * util/hostfs.c (grub_hostfs_dir): likewise
39853 * lib/datetime.c: moved to ...
39854 * normal/datetime.c: ... moved here
39855 (grub_unixtime2datetime): new function
39856 * kern/rescue.c (grub_rescue_print_files): use new dir syntax
7dd4a573 39857 * normal/completion.c (iterate_dir): use new dir syntax
39858 * normal/misc.c (grub_normal_print_device_info): tell the
05aaebfb 39859 last modification time of a volume
7dd4a573 39860 * kern/fs.c (grub_fs_probe): updated dummy function to use new syntax
05aaebfb 39861 * conf/common.rmk: added lib/datetime.c to ls.mod
7dd4a573 39862 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add normal/datetime.c
05aaebfb 39863 (normal_mod_SOURCES): likewise
39864 (datetime_mod_SOURCES): Removed lib/datetime.c
39865 * conf/i386-efi.rmk: likewise
7dd4a573 39866 * conf/i386-ieee1275.rmk: likewise
05aaebfb 39867 * conf/i386-pc.rmk: likewise
39868 * conf/powerpc-ieee1275.rmk: likewise
7dd4a573 39869 * conf/sparc64-ieee1275.rmk: likewise
39870 * conf/x86_64-efi.rmk: likewise
05aaebfb 39871
8a7e1a14 398722009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
39873
39874 Trim trailing spaces in FAT label and support mtools-like labels
7dd4a573 39875
39876 * fs/fat.c (grub_fat_iterate_dir): New function based
8a7e1a14 39877 on grub_fat_find_dir
39878 (grub_fat_find_dir): use grub_fat_iterate_dir
39879 (grub_fat_label): likewise
39880
04186a9c 398812009-04-04 Vladimir Serbinenko <phcoder@gmail.com>
39882
7dd4a573 39883 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): add list.h
04186a9c 39884 and command.h
39885 remove extraneous kernel_elf_HEADERS
39886
da4c0bb6 398872009-04-04 Bean <bean123ch@gnail.com>
39888
39889 * include/grub/util/misc.h: Add dummy function fsync for mingw.
39890
39891 * util/misc.c: Likewise.
39892
54ad9555 398932009-04-04 Yoshinori K. Okuji <okuji@enbug.org>
39894
39895 * loader/i386/efi/linux.c (fake_bios_data): Use grub_dprintf
39896 instead of grub_printf.
39897
7a6bf9f2 398982009-04-03 Robert Millan <rmh@aybabtu.com>
39899
39900 * loader/i386/linux.c (grub_linux_setup_video): Fill
39901 `params->{red,green,blue,reserved}_{mask_size,field_pos}' with
39902 values from `mode info' structure instead of hardcoded
39903 values.
39904
3fcc2083 399052009-04-01 Pavel Roskin <proski@gnu.org>
39906
39907 * Makefile.in: Remove all references to MODULE_LDFLAGS, it's
39908 unused now.
39909 * genmk.rb: Likewise.
39910 * configure.ac: Likewise.
39911
5ec9740b 399122009-04-01 Manoel Abranches <mrabran@linux.vnet.ibm.com>
39913
39914 * aclocal.m4: Move --build-id=none from MODULE_LDFLAGS to
39915 TARGET_LDFLAGS. This corrects a problem with grub-mkelfimage.
39916
5270cec8 399172009-04-01 David S. Miller <davem@davemloft.net>
39918
39919 * normal/sparc64/setjmp.S: Fix setjmp implementation.
7dd4a573 39920 * include/grub/sparc64/setjmp.h (grub_jmp_buf): Update.
5270cec8 39921 (grub_setjmp): Mark with 'returns_twice' attribute.
39922 * include/grub/i386/setjmp.h (grub_setjmp): Likewise
39923 * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise.
39924 * include/grub/x86_64/setjmp.h (grub_setjmp): Likewise.
39925
9c3dd854 399262009-04-01 Robert Millan <rmh@aybabtu.com>
39927
39928 Reapply fix from 2008-07-28 which was accidentally reverted; also
39929 perform the same fix to a similar check in same function.
39930
39931 * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
39932 with the same number are found, just use issue a warning with
39933 grub_dprintf(), as this error has been reported to be non-fatal.
39934
0d818b7e 399352009-03-31 Pavel Roskin <proski@gnu.org>
39936
39937 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Provide safe default
39938 for cross-compilation.
39939
95646d92 399402009-03-30 Robert Millan <rmh@aybabtu.com>
39941
39942 Fix i386-ieee1275 build.
39943
39944 * include/grub/i386/ieee1275/loader.h (grub_multiboot2_real_boot):
39945 Remove declaration.
39946
6a003ed1 399472009-03-30 Pavel Roskin <proski@gnu.org>
39948
39949 * fs/hfs.c (grub_hfs_strncasecmp): Integrate into ...
39950 (grub_hfs_cmp_catkeys): ... this. Don't assume strings to be
39951 zero-terminated, rely only on the strlen value. Fix comparison
39952 of strings differing in length.
39953
92f33540 399542009-03-30 Robert Millan <rmh@aybabtu.com>
39955
39956 * loader/i386/linux.c (grub_cmd_linux): Check for zImage before
39957 checking for abi version. Improve error messages on BIOS to notify
39958 user about `linux16' command.
39959
a8c48fd5 399602009-03-29 Vladimir Serbinenko <phcoder@gmail.com>
39961
f968172e 39962 Leak fixes
a8c48fd5 39963
f968172e 39964 * kern/disk.c (grub_disk_cache_store): Invalidate previous cache
39965 in case of collision
39966 * disk/scsi.c (grub_scsi_open): free scsi in case of error
a8c48fd5 39967
9c323f09 399682009-03-29 Robert Millan <rmh@aybabtu.com>
39969
39970 * loader/i386/linux.c (grub_cmd_linux): Parse "vga=" parameter and
39971 set `vid_mode' accordingly.
39972 (grub_linux_boot): Process `vid_mode' and set video mode.
39973
ae68f423 399742009-03-29 Robert Millan <rmh@aybabtu.com>
39975
39976 * util/grub.d/10_linux.in (linux_entry): New function.
39977 Factorize generation of Linux boot entries.
39978
5709cfc4 399792009-03-29 Yoshinori K. Okuji <okuji@enbug.org>
39980
39981 Make the format of Environment Block plain text. The boot loader
39982 part is not tested well yet.
7dd4a573 39983
5709cfc4 39984 * util/grub-editenv.c (DEFAULT_ENVBLK_SIZE): New macro.
39985 (buffer): Removed.
39986 (envblk): Likewise.
39987 (usage): Remove "info" and "clear". Add "unset". Update the
39988 description of "set", as this does not delete variables any
39989 longer.
39990 (create_envblk_file): Complete rewrite.
39991 (open_envblk_file): Likewise.
39992 (cmd_info): Removed.
39993 (cmd_list): Likewise.
39994 (cmd_set): Likewise.
39995 (cmd_clear): Likewise.
39996 (list_variables): New function.
39997 (write_envblk): Likewise.
39998 (set_variables): Likewise.
39999 (unset_variables): Likewise.
40000 (main): Complete rewrite.
40001
40002 * commands/loadenv.c (buffer): Removed.
40003 (envblk): Likewise.
40004 (open_envblk_file): New function.
40005 (read_envblk_file): Complete rewrite.
40006 (grub_cmd_load_env): Likewise.
40007 (grub_cmd_list_env): Likewise.
40008 (struct blocklist): New struct.
40009 (free_blocklists): New function.
40010 (check_blocklists): Likewise.
40011 (write_blocklists): Likewise.
40012 (grub_cmd_save_env): Complete rewrite.
40013
40014 * include/grub/lib/envblk.h (GRUB_ENVBLK_SIGNATURE): Replaced with
40015 a plain text signature.
40016 (GRUB_ENVBLK_MAXLEN): Removed.
40017 (struct grub_envblk): Complete rewrite.
40018 (grub_envblk_find): Removed.
40019 (grub_envblk_insert): Likewise.
40020 (grub_envblk_open): New prototype.
40021 (grub_envblk_set): Likewise.
40022 (grub_envblk_delete): Put const to VALUE.
40023 (grub_envblk_iterate): Put const to NAME and VALUE.
40024 (grub_envblk_close): New prototype.
40025 (grub_envblk_buffer): New inline function.
40026 (grub_envblk_size): Likewise.
40027
40028 * lib/envblk.c: Include grub/mm.h.
40029 (grub_env_find): Removed.
40030 (grub_envblk_open): New function.
40031 (grub_envblk_close): Likewise.
40032 (escaped_value_len): Likewise.
40033 (find_next_line): Likewise.
40034 (grub_envblk_insert): Removed.
40035 (grub_envblk_set): New function.
40036 (grub_envblk_delete): Complete rewrite.
40037 (grub_envblk_iterate): Likewise.
40038
a9368fd3 400392009-03-28 Robert Millan <rmh@aybabtu.com>
40040
40041 * conf/i386-pc.rmk (pkglib_MODULES): Add `linux16.mod'.
40042 (linux16_mod_SOURCES, linux16_mod_CFLAGS, linux16_mod_LDFLAGS): New
40043 variables. Use 16-bit loader.
40044 (linux_mod_SOURCES, linux_mod_CFLAGS, linux_mod_LDFLAGS): Use 32-bit
40045 loader.
40046 * kern/i386/loader.S (grub_linux_boot): Rename to ...
40047 (grub_linux16_boot): ... this. Update all users.
40048 * loader/i386/linux.c (grub_linux32_boot): Rename to ...
40049 (grub_linux_boot): ... this. Update all users.
40050
40051 * loader/i386/pc/linux.c (GRUB_MOD_INIT(linux)): Rename to ...
40052 (GRUB_MOD_INIT(linux16)): ... this. Rename `linux' and `initrd'
40053 commands to `linux16' and `initrd16'.
40054 (GRUB_MOD_FINI(linux)): Rename to ...
40055 (GRUB_MOD_FINI(linux16)): ... this.
40056
e4dd5a7e 400572009-03-24 Pavel Roskin <proski@gnu.org>
40058
40059 * genmk.rb: Define ASM_FILE for *.S files for *.lst generation,
40060 not just for compilation.
40061
c04d6e05 400622009-03-22 Vladimir Serbinenko <phcoder@gmail.com>
40063
40064 Move multiboot helper out of kernel
40065
40066 * conf/i386-pc.rmk (multiboot_mod_SOURCES): Add
40067 `loader/i386/multiboot_helper.S'.
40068 * conf/i386-coreboot.rmk: Likewise
40069 * conf/i386-ieee1275.rmk: Likewise
40070
40071 * kern/i386/loader.S: Move multiboot helpers from here...
40072 * loader/i386/multiboot_helper.S: ...moved here
40073 * include/grub/i386/loader.h: Move declarations of multiboot
40074 helpers from here...
40075 * include/grub/i386/multiboot.h: ...moved here
40076 * loader/i386/multiboot.c: Added include of grub/cpu/multiboot.h
40077
42a5b3fc 400782009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
40079
40080 * kern/env.c (grub_env_context_open): Added an argument to specify
40081 whether a new context inherits exported variables from current
40082 one. This is useful when making a sandbox to interpret a config
40083 file.
40084 All callers updated.
40085
40086 * include/grub/env.h (grub_env_context_open): Updated the prototype.
40087
b28bbc4e 400882009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
40089
40090 * kern/env.c (grub_env_context_close): Fix memory leaks.
40091
f04f02e4 400922009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
40093
40094 * normal/main.c (grub_normal_execute): Added an argument
40095 BATCH to specify if an interactive interface should be provided
40096 after reading a config file.
40097 All callers updated.
40098 (read_command_list): Prevent being executed twice.
40099 (read_fs_list): Likewise.
40100
42a5b3fc 40101 * include/grub/normal.h (grub_normal_execute): Updated the
40102 prototype.
f04f02e4 40103
41473ac2 401042009-03-22 Pavel Roskin <proski@gno.org>
40105
fbc00b0c 40106 * kern/powerpc/ieee1275/startup.S: Replace EXT_C(start) with
40107 _start.
40108 * kern/i386/pc/startup.S: Likewise.
40109 * kern/i386/efi/startup.S: Likewise.
40110 * kern/i386/ieee1275/startup.S: Likewise.
40111 * kern/i386/coreboot/startup.S: Likewise.
40112 * kern/x86_64/efi/startup.S: Likewise.
40113
41473ac2 40114 * aclocal.m4 (grub_CHECK_START_SYMBOL): Remove.
40115 * configure.ac: Don't call grub_CHECK_START_SYMBOL.
40116 * kern/i386/pc/startup.S: Use _start instead of START_SYMBOL.
40117
2274cc8f 401182009-03-21 Vladimir Serbinenko <phcoder@gmail.com>
40119
40120 Bugfixes in multiboot for bugs uncovered by solaris kernel.
40121
40122 * loader/i386/multiboot_elfxx.c (grub_multiboot_load_elf): Corrected
40123 limit detection.
40124 Use vaddr of correct segment for entry_point.
40125
b1b797cb 401262009-03-21 Bean <bean123ch@gmail.com>
40127
40128 * commands/blocklist.c: Add include file <grub/command.h>, remove
40129 <grub/normal.h> and <grub/arg.h>.
40130 (grub_cmd_blocklist): Use the new command interface.
40131 (GRUB_MOD_INIT): Likewise.
40132 (GRUB_MOD_FINI): Likewise.
40133 * commands/boot.c: Likewise.
40134 * commands/cat.c: Likewise.
40135 * commands/cmp.c: Likewise.
40136 * commands/configfile.c: Likewise.
40137 * commands/crc.c: Likewise.
40138 * commands/echo.c: Likewise.
40139 * commands/halt.c: Likewise.
40140 * commands/handler.c: Likewise.
40141 * commands/hdparm.c: Likewise.
40142 * commands/help.c: Likewise.
40143 * commands/hexdump.c: Likewise.
40144 * commands/loadenv.c: Likewise.
40145 * commands/ls.c: Likewise.
40146 * commands/lsmmap.c: Likewise.
40147 * commands/lspci.c: Likewise.
40148 * commands/loadenv.c: Likewise.
40149 * commands/read.c: Likewise.
40150 * commands/reboot.c: Likewise.
40151 * commands/search.c: Likewise.
40152 * commands/sleep.c: Likewise.
40153 * commands/test.c: Likewise.
40154 * commands/usbtest.c: Likewise.
40155 * commands/videotest.c: Likewise.
40156 * commands/i386/cpuid.c: Likewise.
40157 * commands/i386/pc/halt.c: Likewise.
40158 * commands/i386/pc/play.c: Likewise.
40159 * commands/i386/pc/pxecmd.c: Likewise.
40160 * commands/i386/pc/vbeinfo.c: Likewise.
40161 * commands/i386/pc/vbetest.c: Likewise.
40162 * commands/ieee1275/suspend.c: Likewise.
40163 * disk/loopback.c: Likewise.
40164 * font/font_cmd.c: Likewise.
40165 * hello/hello.c: Likewise.
40166 * loader/efi/appleloader.c: Likewise.
40167 * loader/efi/chainloader.c: Likewise.
40168 * loader/i386/bsd.c: Likewise.
40169 * loader/i386/efi/linux.c: Likewise.
40170 * loader/i386/ieee1275/linux.c: Likewise.
40171 * loader/i386/linux.c: Likewise.
40172 * loader/i386/pc/chainloader.c: Likewise.
40173 * loader/i386/pc/linux.c: Likewise.
40174 * loader/powerpc/ieee1275/linux.c: Likewise.
40175 * loader/multiboot_loader.c: Likewise.
40176 * term/gfxterm.c: Likewise.
40177 * term/i386/pc/serial.c: Likewise.
40178 * term/terminfo.c: Likewise.
40179
40180 * term/i386/pc/vesafb.c: Removed <grub/arg.h>.
40181 * term/i386/pc/vga.c: Likewise.
40182 * video/readers/jpeg.c: Likewise.
40183 * video/readers/png.c: Likewise.
40184 * video/readers/tga.c: Likewise.
40185
40186 * util/grub-fstest (cmd_loopback): Removed.
40187 (cmd_blocklist): Likewise.
40188 (cmd_ls): Likewise.
40189 (grub_register_command): Likewise.
40190 (grub_unregister_command): Likewise.
40191 (execute_command): Use grub_command_find to locate command and execute
40192 it.
40193
40194 * include/grub/efi/chainloader.h: Removed.
40195 * loader/efi/chainloader_normal.c: Likewise.
40196 * loader/i386/bsd_normal.c: Likewise.
40197 * loader/i386/pc/chainloader_normal.c: Likewise.
40198 * loader/i386/pc/multiboot_normal.c: Likewise.
40199 * loader/linux_normal.c: Likewise.
40200 * loader/multiboot_loader_normal.c: Likewise.
40201 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
40202
40203 * gencmdlist.sh: Scan new registration command grub_register_extcmd
40204 and grub_register_command_p1.
40205
40206 * conf/common.rmk (grub_fstest_SOURCES): Add kern/list.c,
40207 kern/command.c, lib/arg.c and commands/extcmd.c.
40208 (pkglib_MODULES): Remove boot.mod, and minicmd.mod and extcmd.mod.
40209 (minicmd_mod_SOURCES): New variable.
40210 (minicmd_mod_CFLAGS): Likewise.
40211 (minicmd_mod_LDFLAGS): Likewise.
40212 (extcmd_mod_SOURCES): Likewise.
40213 (extcmd_mod_CFLAGS): Likewise.
40214 (extcmd_mod_LDFLAGS): Likewise.
40215 (boot_mod_SOURCES): Removed.
40216 (boot_mod_CFLAGS): Likewise.
40217 (boot_mod_LDFLAGS): Likewise.
40218
40219 * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/command.c and
40220 kern/corecmd.c.
40221 (kernel_img_HEADERS): Add command.h.
40222 (grub_emu_SOURCES): Remove commands/boot.c and normal/arg.c, add
40223 commands/minicmd.c, kern/command.c, kern/corecmd.c, commands/extcmd.c
40224 and lib/arg.c.
40225 (pkglib_MODULES): Change _linux.mod, _chain.mod, _bsd.mod and
40226 _multiboot.mod as linux.mod, chain.mod, bsd.mod and multiboot.mod,
40227 remove the corresponding normal mode command.
40228 (normal_mod_SOURCES): Remove normal/arg.c.
40229 * conf/i386-coreboot.rmk: Likewise.
40230 * conf/i386-efi.rmk: Likewise.
40231 * conf/i386-ieee1275.rmk: Likewise.
40232 * conf/powerpc-ieee1275.rmk: Likewise.
40233 * conf/x86_64-efi.rmk: Likewise.
40234
40235 * include/grub/arg.h: Move from here ...
40236 * include/grub/lib/arg.h: ... to here.
40237
40238 * normal/arg.c: Move from here ...
40239 * lib/arg.c: ... to here.
40240
40241 * commands/extcmd.c: New file.
40242 * commands/minicmd.c: Likewise.
40243 * include/grub/command.h: Likewise.
40244 * include/grub/extcmd.h: Likewise.
40245 * kern/command.c: Likewise.
40246 * kern/corecmd.c: Likewise.
40247
40248 * kern/list.c (grub_list_iterate): Return int instead of void.
40249 (grub_list_insert): New function.
40250 (grub_prio_list_insert): Likewise.
40251
40252 * kern/rescue.c (grub_rescue_command): Removed.
40253 (grub_rescue_command_list): Likewise.
40254 (grub_rescue_register_command): Likewise.
40255 (grub_rescue_unregister_command): Likewise.
40256 (grub_rescue_cmd_boot): Move to minicmd.c
40257 (grub_rescue_cmd_help): Likewise.
40258 (grub_rescue_cmd_info): Likewise.
40259 (grub_rescue_cmd_boot): Likewise.
40260 (grub_rescue_cmd_testload): Likewise.
40261 (grub_rescue_cmd_dump): Likewise.
40262 (grub_rescue_cmd_rmmod): Likewise.
40263 (grub_rescue_cmd_lsmod): Likewise.
40264 (grub_rescue_cmd_exit): Likewise.
40265 (grub_rescue_print_devices): Moved to corecmd.c.
40266 (grub_rescue_print_files): Likewise.
40267 (grub_rescue_cmd_ls): Likewise.
40268 (grub_rescue_cmd_insmod): Likewise.
40269 (grub_rescue_cmd_set): Likewise.
40270 (grub_rescue_cmd_unset): Likewise.
7d074e3c 40271 (attempt_normal_mode): Use grub_command_find to get normal module.
b1b797cb 40272 (grub_enter_rescue_mode): Use grub_register_core_commands to register
7d074e3c 40273 commands, remove grub_rescue_register_command calls.
b1b797cb 40274
7d074e3c 40275 * normal/command.c (grub_register_command): Removed.
b1b797cb 40276 (grub_unregister_command): Likewise.
40277 (grub_command_find): Likewise.
40278 (grub_iterate_commands): Likewise.
40279 (rescue_command): Likewise.
40280 (export_command): Moved to corecmd.c.
40281 (set_command): Removed.
40282 (unset_command): Likewise.
40283 (insmod_command): Likewise.
40284 (rmmod_command): Likewise.
40285 (lsmod_command): Likewise.
40286 (grub_command_init): Likewise.
40287
40288 * normal/completion.c (iterate_command): Use cmd->prio to check for
40289 active command.
40290 (complete_arguments): Use grub_extcmd_t structure to find options.
40291 (grub_normal_do_completion): Change function grub_iterate_commands to
40292 grub_command_iterate.
40293
40294 * normal/execute.c (grub_script_execute_cmd): No need to parse
40295 argument here.
40296
40297 * normal/main.c (grub_dyncmd_dispatcher): New function.
40298 (read_command_list): Register unload commands as dyncmd.
40299 (grub_cmd_normal): Use new command interface, register rescue,
40300 unregister normal at entry, register normal, unregister rescue at exit.
40301
40302 * include/grub/list.h (grub_list_test_t): New type.
40303 (grub_list_iterate): Return int instead of void.
40304 (grub_list_insert): New function.
40305 (GRUB_AS_NAMED_LIST_P): New macro.
40306 (GRUB_AS_PRIO_LIST): Likewise.
40307 (GRUB_AS_PRIO_LIST_P): Likewise.
40308 (GRUB_PRIO_LIST_PRIO_MASK): New constant.
40309 (GRUB_PRIO_LIST_FLAG_ACTIVE): Likewise.
40310 (grub_prio_list): New structure.
40311 (grub_prio_list_insert): New function.
40312 (grub_prio_list_remove): New inline function.
40313
40314 * include/grub/normal.h: Remove <grub/arg.h>, add <grub/command.h>.
40315 (GRUB_COMMAND_FLAG_CMDLINE): Moved to command.h.
40316 (GRUB_COMMAND_FLAG_MENU): Likewise.
40317 (GRUB_COMMAND_FLAG_BOTH): Likewise.
40318 (GRUB_COMMAND_FLAG_TITLE): Likewise.
40319 (GRUB_COMMAND_FLAG_NO_ECHO): Likewise.
40320 (GRUB_COMMAND_FLAG_NO_ARG_PARSE): Removed.
40321 (GRUB_COMMAND_FLAG_NOT_LOADED): Likewise.
40322 (grub_command): Likewise.
40323 (grub_register_command): Likewise.
40324 (grub_command_find): Likewise.
40325 (grub_iterate_commands): Likewise.
40326 (grub_command_init): Likewise.
40327 (grub_arg_parse): Likewise.
40328 (grub_arg_show_help): Likewise.
40329
40330 * include/grub/rescue.h (grub_rescue_register_command): Removed.
40331 (grub_rescue_unregister_command): Likewise.
40332
40333 * include/grub/i386/bsd.h: Remove grub_rescue_cmd_freebsd,
40334 grub_rescue_cmd_openbsd, grub_rescue_cmd_netbsd,
40335 grub_rescue_cmd_freebsd_loadenv and grub_rescue_cmd_freebsd_module.
40336
40337 * include/grub/i386/efi/loader.h: Remove grub_rescue_cmd_linux and
40338 grub_rescue_cmd_initrd.
40339 * include/grub/i386/loader.h: Likewise.
40340 * include/grub/x86_64/loader.h: Likewise.
40341
40342 * include/grub/i386/pc/chainloader.h: Remove grub_chainloader_cmd.
40343
1f4147aa 403442009-03-21 Bean <bean123ch@gmail.com>
40345
40346 * util/hostdisk.c (read_device_map): Use grub_util_get_disk_size
40347 instead of stat in mingw environment.
40348
40349 * util/misc.c (grub_millisleep): Use Sleep in mingw environment.
40350
40351 * aclocal.m4 (grub_CHECK_LINK_DIR): New function.
40352
40353 * configure.ac: Use grub_CHECK_LINK_DIR to determine whether to use
40354 AC_CONFIG_LINKS.
40355
2156d5ba 403562009-03-21 Bean <bean123ch@gmail.com>
40357
40358 * fs/ext2.c (grub_ext2_mount): Change errno to GRUB_ERR_BAD_FS for
40359 out of range error.
40360
177b82ca 403612009-03-18 Michel Dänzer <michel@daenzer.net>
40362
40363 * fs/ext2.c (grub_ext2_read_block): Take endianness into account when
40364 checking inode flags for EXT4_EXTENTS_FLAG.
40365
14aad807 403662009-03-18 Robert Millan <rmh@aybabtu.com>
40367
40368 * loader/i386/linux.c: Include `<grub/video.h>' and
40369 `<grub/i386/pc/vbe.h>'..
40370 (grub_linux_setup_video): New function. Loosely based on the EFI one.
40371 (grub_linux32_boot): Attempt to configure video settings with
40372 grub_linux_setup_video().
40373 (grub_rescue_cmd_linux): Set noreturn=0 in grub_loader_set, in order
40374 to avoid grub_console_fini() which would step out of graphical mode
40375 unconditionally.
40376
8cf83a27 403772009-03-14 Robert Millan <rmh@aybabtu.com>
40378
40379 Fix build on powerpc.
40380 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Add `handler.h'.
40381
40164e75 403822009-03-12 Vladimir Serbinenko <phcoder@gmail.com>
40383
40384 * term/gfxterm.c (GRUB_MOD_FINI(term_gfxterm)): Correct name of
40385 background image command.
40386
c58bc32a 403872009-03-12 Colin D Bennett <colin@gibibit.com>
40388
40389 * term/gfxterm.c (draw_cursor): Ensure character is redrawn.
40390 (grub_gfxterm_putchar): Extract pairs of identical calls to
40391 draw_cursor out of conditional blocks.
40392
5415144a 403932009-03-11 Pavel Roskin <proski@gnu.org>
40394
40395 * fs/hfs.c (grub_hfs_strncasecmp): New function.
40396 (grub_hfs_cmp_catkeys): Use HFS specific string comparison.
40397
6394042e 403982009-03-11 Robert Millan <rmh@aybabtu.com>
40399
40400 * loader/i386/multiboot_elfxx.c
40401 (CONCAT(grub_multiboot_load_elf, XX)): Do not reject ET_DYN files.
40402
b7b50e5f 404032009-03-11 Felix Zielcke <fzielcke@z-51.de>
40404
40405 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add `kern/list.c' and
40406 `kern/handler.c'.
40407
1ca7fc96 404082009-03-11 Robert Millan <rmh@aybabtu.com>
40409
40410 * loader/i386/multiboot.c (code_size): New variable.
40411 (grub_multiboot): Define offsets by adding to `code_size' rather
7d074e3c 40412 than subtracting from `grub_multiboot_payload_size'. Provide
1ca7fc96 40413 4-byte alignment to MBI and others by increasing
7d074e3c 40414 `boot_loader_name_length' appropriately.
1ca7fc96 40415
40416 * loader/i386/multiboot_elfxx.c
40417 (CONCAT(grub_multiboot_load_elf, XX)): Initialize `code_size'.
40418
a83ea1d2 404192009-03-09 Felix Zielcke <fzielcke@z-51.de>
40420
40421 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove duplicated
40422 `fs/ext2.c'.
40423
aa9f3bff 404242009-03-08 Robert Millan <rmh@aybabtu.com>
40425
40426 Make loader/i386/linux.c usable on i386-pc again.
40427
40428 * kern/i386/pc/init.c (grub_machine_init): Disable addition of low
40429 memory to heap.
40430 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (allocate_pages): Remove
40431 `#error' stanza.
40432
d8b3b60e 404332009-03-07 Bean <bean123ch@gmail.com>
40434
40435 * loader/i386/efi/linux.c (grub_rescue_cmd_initrd): Fix a bug in initrd
40436 allocation.
40437
b362c9e9 404382009-03-06 Robert Millan <rmh@aybabtu.com>
40439
40440 Fix display issue on terminals with screen size other than 80x25
40441 (e.g. gfxterm with resolution higher than 640x480).
40442
40443 * normal/main.c (grub_normal_init_page): Display title text in a
7d074e3c 40444 position relative to the center of the terminal instead of relying
b362c9e9 40445 on a hardcoded offset.
40446
9304eef1 404472009-03-04 Robert Millan <rmh@aybabtu.com>
40448
40449 Filter /etc/grub.d/10_* so that only add-ons for native kernels are
40450 installed.
40451
40452 * Makefile.in (host_kernel): New variable.
40453 * conf/common.rmk (grub-mkconfig_SCRIPTS): Conditionalize all 10_*.in
40454 scripts instead of just the windows one.
40455 * configure.ac: Initialize and AC_SUBST `host_kernel'.
40456
eabc95fb 404572009-03-04 Felix Zielcke <fzielcke@z-51.de>
2ba60b62 40458
40459 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `kern/list.c' and
40460 `kern/handler.c'.
40461 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
40462 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
40463 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
40464 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40465 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40466 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40467
ceb1223c 404682009-03-04 Felix Zielcke <fzielcke@z-51.de>
40469
40470 * partmap/pc.c (pc_partition_map_iterate): Skip over invalid BSD partitions
40471 or if there's no space for the disk label and print the partition number on a
40472 invalid magic.
40473
4910684a 404742009-03-04 Felix Zielcke <fzielcke@z-51.de>
40475
40476 * util/misc.c: Include <time.h>.
40477 (grub_millisleep): New function.
40478
7e9ca17a 404792009-03-04 Bean <bean123ch@gmail.com>
40480
40481 * configure.ac: Only test -mcmodel=large option in x86_64-efi, also add
40482 another option -mno-red-zone.
40483
40484 * commands/handler.c: Change module description.
40485
40486 * kern/handler.c: Add missing space at the end of description line.
40487
40488 * kern/list.c: Likewise.
40489
f501677c 404902009-03-03 Robert Millan <rmh@aybabtu.com>
40491
40492 Move more components to the relocation area, and fix mbi pointer
40493 handling to use the destination rather than the origin (thanks to
40494 Vladimir Serbinenko for spotting).
40495
40496 * loader/i386/multiboot.c (mbi_dest): New variable.
40497 (grub_multiboot_boot): Use `mbi_dest' instead of `mbi'.
40498 (grub_multiboot): Put cmdline, boot_loader_name and mbi in the
40499 relocation area.
40500
9902d047 405012009-03-01 Bean <bean123ch@gmail.com>
40502
50fb7002 40503 * include/grub/efi/api.h (GRUB_EFI_MPS_TABLE_GUID): New constant.
9902d047 40504 (GRUB_EFI_ACPI_TABLE_GUID): Likewise.
40505 (GRUB_EFI_ACPI_20_TABLE_GUID): Likewise.
40506 (GRUB_EFI_SMBIOS_TABLE_GUID): Likewise.
40507
40508 * loader/i386/efi/linux.c (acpi_guid): New variable.
40509 (acpi_guid): Likewise.
40510 (EBDA_SEG_ADDR): New constant.
40511 (LOW_MEM_ADDR): Likewise.
40512 (FAKE_EBDA_SEG): Likewise.
40513 (fake_bios_data): New function.
40514 (grub_linux_boot): Call fake_bios_data.
40515
71b9f361 405162009-03-01 Bean <bean123ch@gmail.com>
40517
40518 * commands/terminal.c: Removed.
40519
40520 * commands/handler.c: New file.
40521
40522 * include/grub/list.h: Likewise.
40523
40524 * include/grub/handler.h: Likewise.
40525
40526 * kern/list.c: Likewise.
40527
40528 * kern/handler.c: Likewise.
40529
40530 * kern/term.h: Include header file <grub/handler.h>.
40531 (grub_term_input): Move next field to the beginning.
40532 (grub_term_output): Likewise.
40533 (grub_term_input_class): New variable.
40534 (grub_term_output_class): Likewise.
40535 (grub_term_register_input): Changed to inline function.
40536 (grub_term_register_output): Likewise.
40537 (grub_term_unregister_input): Likewise.
40538 (grub_term_unregister_output): Likewise.
40539 (grub_term_set_current_input): Likewise.
40540 (grub_term_set_current_output): Likewise.
40541 (grub_term_get_current_input): Likewise.
40542 (grub_term_get_current_output): Likewise.
40543 (grub_term_iterate_input): Removed.
40544 (grub_term_iterate_output): Likewise.
40545
40546 * kern/term.c (grub_term_list_input): Removed.
40547 (grub_term_list_output): Likewise.
40548 (grub_term_input_class): New variable.
40549 (grub_term_output_class): Likewise.
50fb7002 40550 (grub_cur_term_input): Change variable as macro.
71b9f361 40551 (grub_cur_term_output): Likewise.
40552 (grub_term_register_input): Removed.
40553 (grub_term_register_output): Likewise.
40554 (grub_term_unregister_input): Likewise.
40555 (grub_term_unregister_output): Likewise.
40556 (grub_term_set_current_input): Likewise.
40557 (grub_term_set_current_output): Likewise.
40558 (grub_term_iterate_input): Likewise.
40559 (grub_term_iterate_output): Likewise.
40560 (grub_term_get_current_input): Likewise.
40561 (grub_term_get_current_output): Likewise.
40562
40563 * util/grub-editenv.c: Include header file <grub/handler.h>.
40564 (grub_term_get_current_input): Removed.
40565 (grub_term_get_current_output): Likewise.
40566 (grub_term_input_class): New variable.
50fb7002 40567 (grub_term_output_class): Likewise.
71b9f361 40568
40569 * util/grub-fstest.c (grub_term_get_current_input): Removed.
40570 (grub_term_get_current_output): Likewise.
40571 (grub_term_input_class): New variable.
50fb7002 40572 (grub_term_output_class): Likewise.
71b9f361 40573
40574 * util/grub-probe.c (grub_term_get_current_input): Removed.
40575 (grub_term_get_current_output): Likewise.
40576 (grub_term_input_class): New variable.
50fb7002 40577 (grub_term_output_class): Likewise.
71b9f361 40578
40579 * util/i386/pc/grub-setup.c (grub_term_get_current_input): Removed.
40580 (grub_term_get_current_output): Likewise.
40581 (grub_term_input_class): New variable.
50fb7002 40582 (grub_term_output_class): Likewise.
71b9f361 40583
40584 * conf/common.rmk (pkglib_MODULES): Replace terminal with handler.
40585 (terminal_mod_SOURCES): Likewise.
40586 (terminal_mod_CFLAGS): Likewise.
40587 (terminal_mod_LDFLAGS): Likewise.
40588
40589 * conf/i386-pc.rmk (grub_emu_SOURCES): Replace terminal.c with
40590 handler.c.
40591 (kernel_img_SOURCES): Add list.c and handler.c.
40592 (kernel_img_HEADERS): Add list.h and handler.h.
40593
40594 * conf/i386-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
40595 handler.c.
40596 (kernel_mod_SOURCES): Add list.c and handler.c.
40597 (kernel_mod_HEADERS): Add list.h and handler.h.
40598
40599 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Replace terminal.c with
40600 handler.c.
40601 (kernel_elf_SOURCES): Add list.c and handler.c.
40602 (kernel_elf_HEADERS): Add list.h and handler.h.
40603
40604 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
40605 handler.c.
40606 (kernel_elf_SOURCES): Add list.c and handler.c.
40607 (kernel_elf_HEADERS): Add list.h and handler.h.
40608
40609 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
40610 handler.c.
40611 (kernel_mod_SOURCES): Add list.c and handler.c.
40612 (kernel_mod_HEADERS): Add list.h and handler.h.
40613
40614 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
40615 handler.c.
40616 (kernel_elf_SOURCES): Add list.c and handler.c.
40617 (kernel_elf_HEADERS): Add list.h and handler.h.
40618
8a31787f 406192009-02-27 Robert Millan <rmh@aybabtu.com>
40620
40621 Factorize elf32 / elf64 code in Multiboot loader. This will
40622 prevent it from getting out of sync again.
40623
40624 * loader/i386/multiboot.c (grub_multiboot_is_elf32,
40625 grub_multiboot_load_elf32, grub_multiboot_is_elf64,
40626 grub_multiboot_load_elf64): Move from here ...
40627 * loader/i386/multiboot_elfxx.c (grub_multiboot_is_elf,
40628 grub_multiboot_load_elf): ... to here (new file).
40629
51cd3dfc 406302009-02-27 Robert Millan <rmh@aybabtu.com>
40631
40632 * util/grub.d/10_linux.in: Rename "single-user mode" to
40633 "recovery mode".
40634
6e8c9c3a 406352009-02-27 Vladimir Serbinenko <phcoder@gmail.com>
40636
40637 Don't leak in SCSI code.
40638 * disk/scsi.c (grub_scsi_close): free `scsi'.
40639
4b6bf4f9 406402009-02-27 Robert Millan <rmh@aybabtu.com>
40641
40642 * loader/i386/pc/multiboot.c: Move from here ...
40643 * loader/i386/multiboot.c: ... to here. Update all users.
40644
b9413424 406452009-02-27 Robert Millan <rmh@aybabtu.com>
40646
40647 Patch from Alexandre Bique <bique.alexandre@gmail.com>
40648 * util/i386/pc/grub-setup.c (setup): Fix directory path.
40649
50fb7002 406502009-02-27 Krzysztof Smiechowicz <deadwood@wp.pl>
34519c3f 40651
40652 * fs/sfs.c (grub_sfs_read_extent): Correction to traversing extent
40653 b-tree.
40654
8cc50345 406552009-02-27 Robert Millan <rmh@aybabtu.com>
40656
40657 * kern/misc.c (grub_strtoull): Fix bug (it mistakenly parsed the
40658 `0x' qualifier as 0 when base is specified as parameter).
40659
6e09b8b7 406602009-02-24 Bean <bean123ch@gmail.com>
40661
40662 * configure.ac: Check for -mcmodel=large in x86_64 target.
40663
40664 * include/grub/efi/api.h (efi_call_10): New macro.
40665 (efi_wrap_10): New function.
40666
40667 * include/grub/efi/pe32.h (GRUB_PE32_REL_BASE_HIGH): New macro.
40668 (GRUB_PE32_REL_BASED_HIGH): Likewise.
40669 (GRUB_PE32_REL_BASED_LOW): Likewise.
40670 (GRUB_PE32_REL_BASED_HIGHLOW): Likewise.
40671 (GRUB_PE32_REL_BASED_HIGHADJ): Likewise.
40672 (GRUB_PE32_REL_BASED_MIPS_JMPADDR): Likewise.
40673 (GRUB_PE32_REL_BASED_SECTION): Likewise.
40674 (GRUB_PE32_REL_BASED_REL): Likewise.
40675 (GRUB_PE32_REL_BASED_IA64_IMM64): Likewise.
40676 (GRUB_PE32_REL_BASED_DIR64): Likewise.
40677 (GRUB_PE32_REL_BASED_HIGH3ADJ): Likewise.
40678
40679 * kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Fixed relocation
40680 issue.
40681
40682 * kern/x86_64/efi/callwrap.S (efi_wrap_6): Bug fix.
40683 (efi_wrap_10): New function.
40684
40685 * kern/x86_64/efi/startup.S (codestart): Use relative addressing.
40686
40687 * loader/efi/appleloader.c (devpath_5): Add support for late 2008
40688 MB/MBP model (NV chipset).
40689 (devdata_devs): Add devpath_5 to the list.
40690
40691 * load/i386/efi/linux.c (video_base): Remove variable.
40692 (RGB_MASK): New macro.
40693 (RGB_MAGIC): Likewise.
40694 (LINE_MIN): Likewise.
40695 (LINE_MAX): Likewise.
40696 (FBTEST_STEP): Likewise.
40697 (FBTEST_COUNT): Likewise.
40698 (fb_list): New variable.
40699 (grub_find_video_card): Remove function.
40700 (find_framebuf): New function.
40701 (grub_linux_setup_video): Use find_framebuf to get frame buffer and
40702 line length.
40703
40704 * util/i386/efi/grub-mkimage.c (grub_reloc_section): Fix relocation
40705 problem for x86_64.
40706
74b21bee 407072009-02-22 Vesa Jääskeläinen <chaac@nic.fi>
40708
40709 Patch #25624 by Kevin Lacquement <kevin@lacqui>.
40710
40711 * util/grub-mkconfig.in: Use ${grub_mkdevicemap} instead of hard
40712 coding tool name.
40713
a455f472 407142009-02-22 Robert Millan <rmh@aybabtu.com>
40715
40716 * include/multiboot.h (MULTIBOOT_INFO_ALIGN): New macro.
40717 * loader/i386/pc/multiboot.c (grub_multiboot): Include the MBI
40718 in our relocation, instead of using it directly from heap. Also
40719 use `MULTIBOOT_INFO_ALIGN' to ensure it is aligned.
40720
6374daf3 407212009-02-21 Robert Millan <rmh@aybabtu.com>
40722
40723 Implement USB keyboard support (based on patch by Marco Gerards)
40724
40725 * conf/i386-pc.rmk (pkglib_MODULES): Add `usb_keyboard.mod'.
40726 (usb_keyboard_mod_SOURCES, usb_keyboard_mod_CFLAGS)
40727 (usb_keyboard_mod_LDFLAGS): New variables.
40728
40729 * term/usb_keyboard.c: New file.
40730
8fa4ea70 407312009-02-14 Vladimir Serbinenko <phcoder@gmail.com>
40732
40733 Corrected wrong declaration
40734
40735 * kern/disk.c: corrected declaration of grub_disk_ata_pass_through.
40736
353976ac 407372009-02-14 Christian Franke <franke@computer.org>
40738
40739 * commands/lspci.c (grub_pci_classes): Add `SATA Controller'.
40740 (grub_lspci_iter): Print class code and programming interface byte.
40741
6aa1169b 407422009-02-14 Christian Franke <franke@computer.org>
40743
40744 * gendistlist.sh: Ignore `.svn' directories.
40745
265372ca 407462009-02-14 Felix Zielcke <fzielcke@z-51.de>
40747
40748 * fs/fat.c: Add 2009 to Copyright line.
40749
9ff516f3 407502009-02-14 Christian Franke <franke@computer.org>
40751
40752 * commands/hdparm.c: New file. Provides `hdparm' command
40753 which sends ATA commands via grub_disk_ata_pass_through ().
40754
40755 * conf/i386-pc.rmk: Add ata_pthru.mod and hdparm.mod.
40756
40757 * disk/ata.c: Include <grub/ata.h>. Move <grub/misc.h>
40758 and <grub/cpu/io.h> to include/grub/ata.h.
40759 (enum grub_ata_addressing_t): Move to include/grub/ata.h.
40760 (GRUB_CDROM_SECTOR_SIZE): Remove.
40761 (GRUB_ATA_*): Move to include/grub/ata.h.
40762 (GRUB_ATAPI_*): Likewise.
40763 (enum grub_ata_commands): Likewise.
40764 (enum grub_ata_timeout_milliseconds): Likewise.
40765 (struct grub_ata_device): Likewise.
40766 (grub_ata_regset): Likewise.
40767 (grub_ata_regget): Likewise.
40768 (grub_ata_regset2): Likewise.
40769 (grub_ata_regget2): Likewise.
40770 (grub_ata_check_ready): Likewise.
40771 (grub_ata_wait_not_busy): Remove static, exported in
40772 include/grub/ata.h.
40773 (grub_ata_wait_drq): Likewise.
40774 (grub_ata_pio_read): Likewise.
40775
40776 * disk/ata_pthru.c: New file. Provides grub_ata_pass_through ()
40777 function for hdparm.mod.
40778
40779 * include/grub/ata.h: New file, contains declarations from
40780 disk/ata.c.
40781 (enum grub_ata_commands): Add new commands for commands/hdparm.c.
40782
40783 * include/grub/disk.h (grub_disk_ata_pass_through_parms): New struct.
40784 (grub_disk_ata_pass_through): New exported variable.
40785
40786 * kern/disk.c (grub_disk_ata_pass_through): New variable.
40787
772e23da 407882009-02-13 Colin D Bennett <colin@gibibit.com>
40789
40790 Support multiple fallback entries, and provide an API to support
40791 executing default+fallback menu entries. Renamed the `terminal' menu
40792 viewer to `text'.
40793
40794 * include/grub/normal.h (grub_normal_text_menu_viewer): New global
40795 variable declaration.
40796 (grub_menu_execute_callback): New structure declaration.
40797 (grub_menu_execute_callback_t): New typedef.
40798 (grub_menu_execute_with_fallback): New function declaration.
40799 (grub_menu_get_entry): Likewise.
40800 (grub_menu_get_timeout): Likewise.
40801 (grub_menu_set_timeout): Likewise.
40802
40803 * normal/main.c (GRUB_MOD_INIT(normal)): Refer to new variable name.
40804
40805 * normal/menu.c (grub_wait_after_message): Moved to
40806 `normal/menu_text.c'.
40807 (draw_border): Likewise.
40808 (print_message): Likewise.
40809 (print_entry): Likewise.
40810 (print_entries): Likewise.
40811 (grub_menu_init_page): Likewise.
40812 (get_entry_number): Likewise.
40813 (print_timeout): Likewise.
40814 (run_menu): Likewise.
40815 (grub_menu_execute_entry): Likewise.
40816 (show_text_menu): Likewise.
40817 (get_and_remove_first_entry_number): New function.
40818 (grub_menu_execute_with_fallback): Likewise.
40819 (get_entry): Renamed to ...
40820 (grub_menu_get_entry): .. this and made it global.
40821 (get_timeout): Renamed to ...
40822 (grub_menu_get_timeout): ... this and made it global.
40823 (set_timeout): Renamed to ...
40824 (grub_menu_set_timeout): ... this and made it global.
40825 (grub_normal_terminal_menu_viewer): Renamed to ...
40826 (grub_normal_text_menu_viewer): ... this.
40827
40828 * normal/menu_text.c: New file. Extracted text-menu-specific code
40829 from normal/menu.c.
40830
40831 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add `normal/menu_text.c'.
40832 (normal_mod_SOURCES): Likewise.
40833
40834 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
40835 (normal_mod_SOURCES): Likewise.
40836
40837 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40838 (normal_mod_SOURCES): Likewise.
40839
40840 * conf/i386-pc.rmk, (grub_emu_SOURCES): Likewise.
40841 (normal_mod_SOURCES): Likewise.
40842
40843 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40844 (normal_mod_SOURCES): Likewise.
40845
40846 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40847 (normal_mod_SOURCES): Likewise.
40848
40849 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
40850 (normal_mod_SOURCES): Likewise.
40851
16ac430e 408522009-02-11 Robert Millan <rmh@aybabtu.com>
40853
40854 * util/grub.d/00_header.in: Update old reference to `font' command.
40855
06ff20fc 408562009-02-10 Felix Zielcke <fzielcke@z-51.de>
40857
40858 * fs/fat.c (grub_fat_mount): Fix wrong comparison.
40859
40860 Based on patch from Javier Martín.
40861
96da9407 408622009-02-09 Felix Zielcke <fzielcke@z-51.de>
40863
40864 * conf/common.rmk (grub_probe_SOURCES): Move fs/ext2.c before fs/fat.c
50fb7002 40865 to avoid false positives with FAT.
96da9407 40866 (grub_fstest_SOURCES): Likewise.
40867 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
40868 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
40869 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40870 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
40871 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40872 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40873
6dca6fe4 408742009-02-09 Felix Zielcke <fzielcke@z-51.de>
40875
06ff20fc 40876 * fs/fat.c (grub_fat_mount): Try to avoid false positives by checking
6dca6fe4 40877 bpb.version_specific.fat12_or_fat16.fstype and
40878 bpb.version_specific.fat32.fstype.
40879
2550c62f 408802009-02-08 Robert Millan <rmh@aybabtu.com>
40881
be110b30 40882 * fs/tar.c: Replace "fs/cpio.c" with "cpio.c".
2550c62f 40883
56978920 408842009-02-08 Robert Millan <rmh@aybabtu.com>
40885
40886 * Makefile.in (host_os, host_cpu): New variables.
40887 (target_os): Remove. Update all users.
40888
d64399b5 408892009-02-08 Marco Gerards <marco@gnu.org>
40890
40891 * Makefile.in (enable_grub_emu_usb): New variable.
40892 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/scsi.c'.
40893 (grub_emu_SOURCES) [grub_emu_SOURCES]: Add `disk/usbms.c',
40894 `util/usb.c', `bus/usb/usb.c' and `commands/usbtest.c'.
40895 (grub_emu_LDFLAGS): Add `$(LIBUSB)'.
40896 (pkglib_MODULES): Add `usb.mod', `uhci.mod', `ohci.mod',
40897 `usbtest.mod' and `usbms.mod'.
40898 (usb_mod_SOURCES, usb_mod_CFLAGS, usb_mod_LDFLAGS)
40899 (usbtest_mod_SOURCES, usbtest_mod_CFLAGS, usbtest_mod_LDFLAGS)
40900 (uhci_mod_SOURCES, uhci_mod_CFLAGS, uhci_mod_LDFLAGS,
40901 (ohci_mod_SOURCES, ohci_mod_CFLAGS, ohci_mod_LDFLAGS)
40902 (usbms_mod_SOURCES, usbms_mod_CFLAGS, usbms_mod_LDFLAGS): New
40903 variables.
40904
40905 * disk/usbms.c: New file.
40906
40907 * include/grub/usb.h: Likewise.
40908
40909 * include/grub/usbtrans.h: Likewise.
40910
40911 * include/grub/usbdesc.h: Likewise.
40912
40913 * bus/usb/usbtrans.c: Likewise.
40914
40915 * bus/usb/ohci.c: Likewise.
40916
40917 * bus/usb/uhci.c: Likewise.
40918
40919 * bus/usb/usbhub.c: Likewise.
40920
40921 * bus/usb/usb.c: Likewise.
40922
40923 * commands/usbtest.c: Likewise.
40924
40925 * util/usb.c: Likewise.
50fb7002 40926
d64399b5 40927 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_IO'.
40928
40929 * configure.ac: Test for libusb presence.
50fb7002 40930
d64399b5 40931 * util/grub-emu.c (main) [HAVE_LIBUSB_H]: Call `grub_libusb_init'.
40932
2b40d6bb 409332009-02-08 Vesa Jääskeläinen <chaac@nic.fi>
40934
40935 * kern/mm.c: Add more comments.
40936
73a4ce81 409372009-02-08 Robert Millan <rmh@aybabtu.com>
40938
40939 Patch from Javier Martín.
40940 * fs/ext2.c (EXT2_DRIVER_SUPPORTED_INCOMPAT): Add
40941 `EXT4_FEATURE_INCOMPAT_FLEX_BG'.
40942
f821ce59 409432009-02-08 Robert Millan <rmh@aybabtu.com>
40944
40945 * fs/cpio.c: Split tar functionality to ...
40946 * fs/tar.c: ... here (new file). Update all users.
40947
aebfc4b0 409482009-02-07 Robert Millan <rmh@aybabtu.com>
40949
40950 * fs/ext2.c (grub_ext2_mount): Avoid mounting filesystems with
40951 backward-incompatible features.
40952
40953 Based on patch from Javier Martín, with some adjustments.
40954
50fb7002 409552009-02-07 Michael Scherer <misc@mandriva.org>
cea15bca 40956
40957 * fs/hfs.c (grub_hfsplus_iterate_dir): Treat hfs+ as case insensitive.
40958
0bb5115e 409592009-02-07 Robert Millan <rmh@aybabtu.com>
40960
40961 * conf/common.rmk (grub_probe_SOURCES, grub_fstest_SOURCES): Move
40962 position of `disk/lvm.c' to ensure grub_init_all() always picks it
40963 after the RAID stuff.
40964
38a0f8e7 409652009-02-05 Vesa Jääskeläinen <chaac@nic.fi>
40966
50fb7002 40967 Fixes problem when running vbetest command as reported by
38a0f8e7 40968 Vladimir Serbinenko <phcoder@gmail.com>.
40969
40970 * (grub_vbe_set_video_mode): Fixed problem with text modes.
40971
3143cc1c 409722009-02-04 Felix Zielcke <fzielcke@z-51.de>
40973
40974 util/getroot.c (grub_util_get_grub_dev): Add support for /dev/mdNpN and
40975 /dev/md/NpN style mdraid devices.
40976
9cba6fce 409772009-02-03 Felix Zielcke <fzielcke@z-51.de>
40978
40979 * util/unifont2pff.rb: Remove.
40980
e507a2c1 409812009-02-03 Felix Zielcke <fzielcke@z-51.de>
40982
40983 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add a missing trailing
40984 `#'.
40985
d2c2b4cd 409862009-02-03 Felix Zielcke <fzielcke@z-51.de>
40987
40988 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/menu_viewer.c'.
40989 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
40990 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
40991 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
40992 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40993 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40994 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40995
b4315fb0 409962009-02-02 Christian Franke <franke@computer.org>
40997
40998 * lib/hexdump.c (hexdump): Print at most 3 lines if data is identical.
40999
de3aa260 410002009-02-01 Felix Zielcke <fzielcke@z-51.de>
41001
7c3ff286 41002 * INSTALL: Note that we now require at least autoconf 2.59 and
41003 that LZO is optional.
de3aa260 41004
825a182b 410052009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
41006
41007 Base on patch on bug #24154 created by Tomas Tintera
41008 <trosos@seznam.cz>.
41009
41010 * video/i386/pc/vbe.c (grub_video_vbe_scroll): Fix downward scrolling.
41011
a69ef770 410122009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
41013
7c3ff286 41014 Based on patch on bug #25318 created by Bernhard Rosenkraenzer
a69ef770 41015 <bero@arklinux.org>.
41016
41017 * normal/parser.y (script_init): Add missing semicolon.
41018
6fa42fa6 410192009-01-31 Colin D Bennett <colin@gibibit.com>
41020
7c3ff286 41021 * normal/main.c: Add include to grub/menu_viewer.h.
6fa42fa6 41022 (free_menu_entry_classes): Added.
41023 (grub_normal_menu_addentry): Added class property handling.
41024 (grub_normal_execute): Changed to use new menu viewer for menu viewing.
41025 (GRUB_MOD_INIT(normal)): Added register for text based menu viewer.
41026
41027 * normal/menu_viewer.c: New file.
41028
41029 * normal/menu.c (run_menu_entry): Renamed to ...
41030 (grub_menu_execute_entry): ... this and made it as global.
41031 (grub_menu_run): Renamed to ...
41032 (show_text_menu): ... this and made it local.
41033 (show_text_menu): Adapt to new function names.
41034 (grub_normal_terminal_menu_viewer): New global variable.
41035
41036 * include/grub/menu.h: New file.
41037
41038 * include/grub/menu_viewer.h: New file.
41039
41040 * include/grub/normal.h: Added include to grub/menu.h.
41041 (grub_menu_entry): Moved to include/grub/menu.h.
41042 (grub_menu_entry_t): Likewise.
41043 (grub_menu): Likewise.
41044 (grub_menu_t): Likewise.
41045 (grub_normal_terminal_menu_viewer): Added.
41046 (grub_menu_execute_entry): Likewise.
41047 (grub_menu_run): Removed.
41048
41049 * DISTLIST: Added include/grub/menu.h.
41050 Added include/grub/menu_viewer.h.
41051 Added normal/menu_viewer.c.
41052
410532009-01-31 Vesa Jääskeläinen <chaac@nic.fi>
41054
41055 * normal/execute.c (grub_script_execute_menuentry): Changed to use
41056 arglist for menutitle arguments.
41057
41058 * normal/main.c (grub_normal_menu_addentry): Likewise.
41059
41060 * normal/parser.y (menuentry): Likewise.
41061
41062 * normal/script.c (grub_script_create_cmdmenu): Likewise.
41063
41064 * include/grub/script.h (grub_script_cmd_menuentry): Likewise.
41065 (grub_script_create_cmdmenu): Likewise.
41066
41067 * include/grub/normal.h (grub_normal_menu_addentry): Likewise.
41068
41069 * conf/i386-pc.rmk (normal_mod_SOURCES): Adapt Colin D Bennett's
41070 changes.
41071
41072 * conf/x86_64-efi.rmk (normal_mod_SOURCES): Likewise.
41073
41074 * conf/i386-coreboot.rmk (normal_mod_SOURCES): Likewise.
41075
41076 * conf/i386-efi.rmk (normal_mod_SOURCES): Likewise.
41077
41078 * conf/i386-ieee1275.rmk (normal_mod_SOURCES): Likewise.
41079
41080 * conf/powerpc-ieee1275.rmk (normal_mod_SOURCES): Likewise.
41081
41082 * conf/sparc64-ieee1275.rmk (normal_mod_SOURCES): Likewise.
41083
56192c23 410842009-01-30 Christian Franke <franke@computer.org>
41085
41086 * normal/arg.c (grub_arg_show_help): Add indentation if '\n' appears
41087 in option help text.
41088
d72521b3 410892009-01-27 Pavel Roskin <proski@gnu.org>
41090
41091 * disk/fs_uuid.c (search_fs_uuid): Ignore case of the UUID.
41092
994b5e84 410932009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
41094
41095 * commands/lsmmap.c: Add include to grub/machine/memory.h.
41096
41097 * fs/i386/pc/pxe.c (grub_pxefs_open): Fix sign problem.
41098
41099 * term/i386/pc/at_keyboard.c (GRUB_MOD_FINI(at_keyboard)): Use proper
41100 unregister function.
41101
6a7eab2c 411022009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
41103
41104 * disk/scsi.c (grub_scsi_read): Fix sign problem.
41105
41106 * term/i386/pc/vga_text.c (grub_vga_text_init_fini). Fix declaration.
41107
41108 * util/grub-mkfont.c (usage): Fix typo.
41109
41110 * util/elf/grub-mkimage.c (load_modules): Fix warning.
41111
1806b56e 411122009-01-26 Daniel Mierswa <impulze@impulze.org>
41113
3fb18f09 41114 * fs/fat.c (grub_fat_uuid): Fix shift of the first two bytes.
41115
336e1fb9 41116 * commands/search.c (search_fs_uuid): Ignore case of the UUID.
41117
1806b56e 41118 * kern/misc.c (grub_strcasecmp): New function.
41119 (grub_strcasecmp): Use grub_size_t instead of int for length.
41120 Fix return value.
41121 * include/grub/misc.h: Update function prototypes.
41122
580b2a0f 411232009-01-26 Robert Millan <rmh@aybabtu.com>
41124
41125 * configure.ac: Fix cross-compilation check.
ef257b36 41126
d31c24f1 411272009-01-22 Christian Franke <franke@computer.org>
41128
41129 * kern/misc.c (grub_vsprintf): Fix size and termination of `format2'
41130 (precision) digit string. Allow `.format2' without `format1' (width).
41131 Limit input chars for `%s' output to `format2' if specified. This is
41132 compatible with standard printf ().
41133
3138b44c 411342009-01-22 Christian Franke <franke@computer.org>
41135
41136 * disk/ata.c (grub_ata_wait_status): Replace by ...
41137 (grub_ata_wait_not_busy): ... this function. Checks only BSY bit,
41138 other status bits may be invalid while BSY is asserted.
41139 (grub_ata_check_ready): New function.
41140 (grub_ata_cmd): Removed.
41141 (grub_ata_wait_drq): New function.
41142 (grub_ata_strncpy): Remove inline.
41143 (grub_ata_pio_read): Reduce to actual block transfer. BSY wait
41144 and error check now done by grub_ata_wait_drq ().
41145 (grub_ata_pio_write): Likewise.
41146 (grub_atapi_identify): Set DEV before check for !BSY. Use
41147 grub_ata_wait_drq () to wait for data.
41148 (grub_ata_device_initialize): Add status register check to
41149 detect missing SATA slave devices. Add debug messages.
41150 (grub_atapi_wait_drq): Use grub_ata_wait_not_busy ().
41151 (grub_atapi_packet): Set DEV before check for !BSY. Replace
41152 transfer loop by grub_ata_pio_write ().
41153 (grub_ata_identify): Set DEV before check for !BSY. Use
41154 grub_ata_wait_drq () to wait for data.
ef257b36 41155 (grub_ata_setaddress): Set DEV before check for !BSY.
3138b44c 41156 (grub_ata_readwrite): Remove duplicate code, handle batch/rest and
41157 read/write in one loop. Fix invalid command on write. Fix incomplete
41158 command on (size % batch) == 0. Add missing error check after write of
41159 last block. Add debug messages.
41160 (grub_atapi_read): Replace transfer loop by grub_ata_pio_read ().
41161
59a64ef6 411622009-01-19 Christian Franke <franke@computer.org>
41163
41164 * disk/ata.c (GRUB_ATAPI_REG_*): New defines.
41165 (GRUB_ATAPI_IREASON_*): Likewise.
41166 (grub_ata_pio_write): Fix timeout error return.
41167 (grub_atapi_identify): Add grub_ata_wait () after cmd.
41168 (grub_atapi_wait_drq): New function.
41169 (grub_atapi_packet): New parameter `size'.
41170 Use grub_atapi_wait_drq () and direct write instead of
41171 grub_ata_pio_write ().
41172 (grub_atapi_read): Replace grub_ata_pio_read () by a loop which
41173 reads the number of bytes requested by the device for each DRQ
41174 assertion.
41175 (grub_atapi_write): Remove old implementation, return not
41176 implemented instead.
41177
1cfe20b3 411782009-01-19 Christian Franke <franke@computer.org>
41179
41180 * disk/scsi.c (grub_scsi_read10): Use scsi->blocksize instead
41181 of 512 to calculate data size.
41182 (grub_scsi_read12): Likewise.
41183 (grub_scsi_write10): Likewise.
41184 (grub_scsi_write12): Likewise.
41185 (grub_scsi_read): Adjust size according to blocksize.
41186 Add checks for invalid blocksize and unaligned transfer.
41187
bee5fe5d 411882009-01-19 Vesa Jääskeläinen <chaac@nic.fi>
41189
41190 * font/font.c (grub_font_loader_init): Re-position unknown glyph.
41191
ef257b36 41192 * term/gfxterm.c (write_char): Fix background rendering for wide
bee5fe5d 41193 width glyphs.
41194
3e643f8c 411952009-01-19 Robert Millan <rmh@aybabtu.com>
41196
41197 * config.guess: Update to latest version from config git.
41198 * config.sub: Likewise.
41199
4fa80998 412002009-01-17 Felix Zielcke <fzielcke@z-51.de>
41201
41202 * Makefile.in: Change font compilation to use new grub-mkfont instead
41203 of java version.
41204
41205 * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: Remove.
41206 * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
41207 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
41208 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
41209 * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
41210 * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
41211 * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
41212 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
41213 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
41214
7086085b 412152009-01-16 Christian Franke <franke@computer.org>
41216
41217 * disk/ata.c (enum grub_ata_commands): Remove EXEC_DEV_DIAGNOSTICS.
41218 (enum grub_ata_timeout_milliseconds): New enum.
41219 (grub_ata_wait_status): Add parameter milliseconds.
41220 (grub_ata_cmd): Remove variable `err'. Remove wait for !DRQ to allow
41221 recovery from timed-out commands.
41222 (grub_ata_pio_read): Add parameter milliseconds. Fix error return,
41223 return grub_errno instead of REG_ERROR.
41224 (grub_ata_pio_write): Add parameter milliseconds.
41225 (grub_atapi_identify): Fix size of ATAPI IDENTIFY sector.
41226 Pass milliseconds to grub_ata_wait_status () and
41227 grub_ata_pio_read ().
41228 (grub_atapi_packet): Pass milliseconds to grub_ata_pio_write ().
41229 (grub_ata_identify): Remove variable `ataerr'. Pass milliseconds to
41230 grub_ata_wait_status (). Fix IDENTIFY timeout check.
41231 (grub_ata_device_initialize): Remove EXECUTE DEVICE DIAGNOSTICS.
41232 It is not suitable for device detection, because DEV bit is ignored,
41233 the command may run too long, and not all devices set the signature
41234 properly.
41235 (grub_ata_pciinit): Clear grub_errno before grub_ata_device_initialize ().
41236 (grub_ata_setaddress): Pass milliseconds to grub_ata_wait_status ().
41237 Fix device selection, DEV bit must be set first to address the registers
41238 of the correct device.
41239 (grub_ata_readwrite): Pass milliseconds to grub_ata_wait_status () and
41240 grub_ata_pio_read/write ().
41241 (grub_atapi_read): Pass milliseconds to grub_ata_pio_read ().
41242 (grub_atapi_write): Pass milliseconds to grub_ata_pio_write ().
41243
4a412913 412442009-01-13 Carles Pina i Estany <carles@pina.cat>
41245
41246 * util/grub-editenv.c (main): Use fseeko(), not fseek().
41247
7795c55e 412482009-01-13 Bean <bean123ch@gmail.com>
d913988c 41249
41250 * util/grub-mkfont.c (write_font): forget to remove some debug code.
41251
7795c55e 412522009-01-13 Bean <bean123ch@gmail.com>
e52db1f7 41253
41254 * Makefile.in: (enable_grub_mkfont): New variable.
41255 (freetype_cflags): Likewise.
41256 (freetype_libs): Likewise.
41257
41258 * common.rmk (bin_UTILITIES): Add `grub-mkfont' if requested.
41259 (grub_mkfont_SOURCES): New variable.
41260 (grub_mkfont_CFLAGS): Likewise.
41261 (grub_mkfont_LDFLAGS): Likewise.
41262
41263 * configure.ac (--enable-grub-mkfont): New option. Check for freetype2
41264 library if `--enable-grub-mkfont' is requested.
41265 (enable_grub_mkfont): New variable.
41266 (freetype_cflags): Likewise.
41267 (freetype_libs): Likewise.
41268
41269 * util/grub-mkfont.c: New file.
41270
093af1fe 412712009-01-12 Christian Franke <franke@computer.org>
41272
41273 * disk/ata.c (grub_ata_pciinit): Fix bit numbers of compatibility
41274 mode check. Fix setting of compat_use[].
41275
f36cc108 412762009-01-10 Robert Millan <rmh@aybabtu.com>
41277
41278 Update a few copyright years which we forgot to do in 2008 (only for
41279 files whose changes made in 2008 were copyright-significant)
41280
41281 * Makefile.in: Add 2008 to Copyright line.
41282 * disk/ieee1275/ofdisk.c: Likewise.
41283 * disk/efi/efidisk.c: Likewise.
41284 * kern/dl.c: Likewise.
41285 * kern/sparc64/ieee1275/init.c: Likewise.
41286 * kern/mm.c: Likewise.
41287 * kern/efi/mm.c: Likewise.
41288 * boot/i386/pc/boot.S: Likewise.
41289 * genfslist.sh: Likewise.
41290 * fs/iso9660.c: Likewise.
41291 * fs/hfs.c: Likewise.
41292 * fs/jfs.c: Likewise.
41293 * fs/minix.c: Likewise.
41294 * fs/ufs.c: Likewise.
41295 * gensymlist.sh.in: Likewise.
41296 * genkernsyms.sh.in: Likewise.
41297 * include/grub/misc.h: Likewise.
41298 * include/grub/types.h: Likewise.
41299 * include/grub/symbol.h: Likewise.
41300 * include/grub/elf.h: Likewise.
41301 * include/grub/kernel.h: Likewise.
41302 * include/grub/disk.h: Likewise.
41303 * include/grub/dl.h: Likewise.
41304 * include/grub/i386/linux.h: Likewise.
41305 * include/grub/i386/pc/biosdisk.h: Likewise.
41306 * include/grub/efi/api.h: Likewise.
41307 * include/grub/efi/pe32.h: Likewise.
41308 * include/grub/util/misc.h: Likewise.
41309 * normal/execute.c: Likewise.
41310 * normal/arg.c: Likewise.
41311 * normal/completion.c: Likewise.
41312 * normal/lexer.c: Likewise.
41313 * normal/parser.y: Likewise.
41314 * normal/misc.c: Likewise.
41315 * commands/i386/pc/vbeinfo.c: Likewise.
41316 * commands/hexdump.c: Likewise.
41317 * commands/terminal.c: Likewise.
41318 * commands/ls.c: Likewise.
41319 * commands/help.c: Likewise.
41320 * partmap/pc.c: Likewise.
41321 * loader/efi/chainloader.c: Likewise.
41322 * loader/multiboot_loader.c: Likewise.
41323 * loader/i386/pc/multiboot2.c: Likewise.
41324 * term/efi/console.c: Likewise.
41325 * term/i386/pc/serial.c: Likewise.
41326 * util/lvm.c: Likewise.
41327 * util/console.c: Likewise.
41328 * util/i386/efi/grub-mkimage.c: Likewise.
41329 * util/raid.c: Likewise.
41330
7f02114b 413312009-01-06 Vesa Jääskeläinen <chaac@nic.fi>
41332
41333 * commands/videotest.c: Removed include to grub/machine/memory.h.
41334
41335 * conf/i386-pc.rmk (pkglib_MODULES): Removed video.mod, gfxterm.mod,
41336 videotest.mod, bitmap.mod, tga.mod, jpeg.mod, png.mod.
41337 (video_mod_SOURCES): Removed.
41338 (video_mod_CFLAGS): Likewise.
41339 (video_mod_LDFLAGS): Likewise.
41340 (gfxterm_mod_SOURCES): Likewise.
41341 (gfxterm_mod_CFLAGS): Likewise.
41342 (gfxterm_mod_LDFLAGS): Likewise.
41343 (videotest_mod_SOURCES): Likewise.
41344 (videotest_mod_CFLAGS): Likewise.
41345 (videotest_mod_LDFLAGS): Likewise.
41346 (bitmap_mod_SOURCES): Likewise.
41347 (bitmap_mod_CFLAGS): Likewise.
41348 (bitmap_mod_LDFLAGS): Likewise.
41349 (tga_mod_SOURCES): Likewise.
41350 (tga_mod_CFLAGS): Likewise.
41351 (tga_mod_LDFLAGS): Likewise.
41352 (jpeg_mod_SOURCES): Likewise.
41353 (jpeg_mod_CFLAGS): Likewise.
41354 (jpeg_mod_LDFLAGS): Likewise.
41355 (png_mod_SOURCES): Likewise.
41356 (png_mod_CFLAGS): Likewise.
41357 (png_mod_LDFLAGS): Likewise.
41358
41359 * conf/common.rmk (pkglib_MODULES): Added video.mod, videotest.mod,
41360 bitmap.mod, tga.mod, jpeg.mod, png.mod, font.mod, gfxterm.mod
41361 (video_mod_SOURCES): Added.
41362 (video_mod_CFLAGS): Likewise.
41363 (video_mod_LDFLAGS): Likewise.
41364 (videotest_mod_SOURCES): Likewise.
41365 (videotest_mod_CFLAGS): Likewise.
41366 (videotest_mod_LDFLAGS): Likewise.
41367 (bitmap_mod_SOURCES): Likewise.
41368 (bitmap_mod_CFLAGS): Likewise.
41369 (bitmap_mod_LDFLAGS): Likewise.
41370 (tga_mod_SOURCES): Likewise.
41371 (tga_mod_CFLAGS): Likewise.
41372 (tga_mod_LDFLAGS): Likewise.
41373 (jpeg_mod_SOURCES): Likewise.
41374 (jpeg_mod_CFLAGS): Likewise.
41375 (jpeg_mod_LDFLAGS): Likewise.
41376 (png_mod_SOURCES): Likewise.
41377 (png_mod_CFLAGS): Likewise.
41378 (png_mod_LDFLAGS): Likewise.
41379 (gfxterm_mod_SOURCES): Likewise.
41380 (gfxterm_mod_CFLAGS): Likewise.
7795c55e 41381 (gfxterm_mod_LDFLAGS): Likewise.
7f02114b 41382
41383 * term/gfxterm.c: Removed include to grub/machine/memory.h,
41384 grub/machine/console.h.
41385
644fff97 413862009-01-04 Jerone Young <jerone@gmail.com>
41387
41388 Make on screen instructions clearer
41389
41390 Based on patch created by Jidanni <jidanni@jidanni.org>
41391
41392 * normal/menu.c: print clearer instructions on the screen
41393
1e901a75 413942009-01-02 Colin D Bennett <colin@gibibit.com>
41395
41396 New font engine.
34c44600 41397
1e901a75 41398 Additional changes by Vesa Jääskeläinen <chaac@nic.fi> to adapt to
41399 build system and fixed gfxterm.c to work with different sized fonts.
41400
41401 * configure.ac: Changed UNIFONT_HEX to UNIFONT_BDF.
34c44600 41402
1e901a75 41403 * configure: Re-generated.
34c44600 41404
1e901a75 41405 * DISTLIST: Removed font/manager.c.
41406 Added font/font.c.
41407 Added font/font_cmd.c.
34c44600 41408
1e901a75 41409 * Makefile.in: Changed UNIFONT_HEX to UNIFONT_BDF. Added Font tool
41410 compilation.
34c44600 41411
1e901a75 41412 * include/grub/misc.h (grub_utf8_to_ucs4): Changed prototype. Changed users.
34c44600 41413
41414 * kern/misc.c (grub_utf8_to_ucs4): Changed prototype.
1e901a75 41415
41416 * kern/term.c: Changed users of grub_utf8_to_ucs4.
34c44600 41417
1e901a75 41418 * normal/menu.c: Likewise.
34c44600 41419
1e901a75 41420 * conf/common.rmk (font_mod_SOURCES): Removed font/manager.c.
41421 (font_mod_SOURCES): Added font/font_cmd.c, font/font.c.
34c44600 41422
1e901a75 41423 * include/grub/font.h: Replaced with new file.
34c44600 41424
1e901a75 41425 * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_ALPHA): Changed value.
41426 (GRUB_VIDEO_MODE_TYPE_DOUBLE_BUFFERED): Likewise.
41427 (GRUB_VIDEO_MODE_TYPE_COLOR_MASK): Likewise.
41428 (GRUB_VIDEO_MODE_TYPE_1BIT_BITMAP): Added.
41429 (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED.
34c44600 41430 (grub_video_mode_info): Added bg_red, bg_green, bg_blue, bg_alpha,
1e901a75 41431 fg_red, fg_green, fg_blue, fg_alpha.
41432 (grub_video_adapter): Removed blit_glyph.
34c44600 41433 (grub_video_blit_glyph): Removed.
41434
1e901a75 41435 * font/manager.c: Removed file.
34c44600 41436
41437 * font/font.c: New file.
41438
1e901a75 41439 * font/font_cmd.c: Likewise.
34c44600 41440
1e901a75 41441 * video/video.c (grub_video_blit_glyph): Removed.
34c44600 41442
1e901a75 41443 * video/i386/pc/vbe.c (grub_video_vbe_map_rgb): Added 1-bit support.
41444 (grub_video_vbe_map_rgba): Likewise.
41445 (grub_video_vbe_unmap_color_int): Likewise.
41446 (grub_video_vbe_blit_glyph): Removed.
41447 (grub_video_vbe_adapter): Removed blit_glyph.
34c44600 41448
1e901a75 41449 * video/i386/pc/vbeutil.c (get_data_ptr): Added 1-bit support.
41450 (get_pixel): Likewise.
34c44600 41451 (set_pixel): Likewise.
41452
1e901a75 41453 * commands/videotest.c (grub_cmd_videotest): Added more tests for fonts.
34c44600 41454
1e901a75 41455 * term/gfxterm.c: Adapted to new font engine.
34c44600 41456
1e901a75 41457 * term/i386/pc/vesafb.c: Marked as deprecated. Made it compile.
34c44600 41458
1e901a75 41459 * term/i386/pc/vga.c: Likewise.
34c44600 41460
1e901a75 41461 * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: New file.
34c44600 41462
1e901a75 41463 * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
34c44600 41464
1e901a75 41465 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
34c44600 41466
1e901a75 41467 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
34c44600 41468
1e901a75 41469 * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
34c44600 41470
1e901a75 41471 * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
34c44600 41472
1e901a75 41473 * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
34c44600 41474
1e901a75 41475 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
34c44600 41476
1e901a75 41477 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
41478
41479 * util/grub.d/00_header.in: Changed to use new loadfont command.
34c44600 41480
1e901a75 41481 * util/grub-mkconfig_lib.in: Changed font extension.
41482
278922e8 414832008-12-28 Felix Zielcke <fzielcke@z-51.de>
41484
41485 * util/getroot.c (grub_util_get_grub_dev): Add support for
41486 /dev/md/dNNpNN style partitionable mdraid devices.
41487
3ced05cf 414882008-12-12 Alex Smith <alex@alex-smith.me.uk>
41489
41490 * fs/i386/pc/pxe.c (grub_pxefs_open): Handle the one open connection
41491 at a time limit of the PXE TFTP API correctly.
41492 (grub_pxefs_close): Likewise.
41493
7fd0ee30 414942008-11-29 Robert Millan <rmh@aybabtu.com>
41495
34c44600 41496 * disk/ata.c (grub_ata_pciinit): Handle errors raised by
7fd0ee30 41497 grub_ata_device_initialize() calls.
41498
34c44600 414992008-11-28 Krzysztof Smiechowicz <deadwood@wp.pl>
0c5e79ab 41500
41501 * fs/affs.c (grub_affs_iterate_dir): Return failure when directory
41502 iteration failed.
41503 * fs/sfs.c (grub_sfs_iterate_dir): Likewise.
41504
89313780 415052008-11-28 Robert Millan <rmh@aybabtu.com>
41506
41507 Fix build on powerpc-ieee1275. Based on patch created by
41508 Manoel Abranches <mrabran@linux.vnet.ibm.com>.
41509 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
41510 `kern/ieee1275/mmap.c'.
41511 * include/grub/powerpc/ieee1275/memory.h: New file.
41512
15257703 41513 Provide grub-install on coreboot.
41514 * conf/i386-coreboot.rmk (sbin_SCRIPTS): Add `grub-install'.
41515 (grub_install_SOURCES): New variable.
41516 * util/i386/pc/grub-install.in: Add a few condition checks to make it
41517 usable on coreboot.
41518
9fc5388a 415192008-11-25 Felix Zielcke <fzielcke@z-51.de>
41520
41521 * util/grub-fstest.c (grub_term_get_current_input): Change return type
41522 to `grub_term_input_t'.
41523 (grub_term_get_current_output): Change return type to
41524 `grub_term_output_t'.
41525
bc3a2f31 415262008-11-22 Robert Millan <rmh@aybabtu.com>
41527
34c44600 41528 Fix breakage on coreboot due to declaration mismatch.
bc3a2f31 41529 * term/i386/pc/vga_text.c (grub_vga_text_init_fini): New function.
41530 (grub_vga_text_term): Use grub_vga_text_init_fini() instead of
41531 grub_vga_text_cls().
41532
80fc88f2 41533 * kern/i386/loader.S (grub_multiboot_backward_relocator): Improve
34c44600 41534 comments. Avoid copying one more byte than necessary (just in case).
80fc88f2 41535
cbf36fd3 41536 * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Change link address
41537 to 0x200000 (avoids trouble with some OFW implementations, and matches
41538 with the one in Yaboot).
41539 Reported by Manoel Abranches
41540
73e8e268 415412008-11-20 Robert Millan <rmh@aybabtu.com>
3cf6ac19 41542
41543 * kern/i386/coreboot/init.c (grub_time_tics): Remove variable.
41544 (grub_get_rtc, grub_exit): Abort with grub_fatal() if called.
41545
73e8e268 41546 * util/grub-mkconfig_lib.in (grub_warn): New function.
41547 (convert_system_path_to_grub_path): Use grub_warn() when issuing
41548 warnings, to obtain consistent formatting.
41549 * util/grub.d/00_header.in: Likewise.
41550 * util/update-grub_lib.in: Likewise.
41551
e94045a1 41552 * loader/i386/linux.c (allocate_pages): Fix a warning.
40f9faa4 41553 Move comment text to `#error' stanza.
e94045a1 41554
79d29fd7 41555 Harmonize ieee1275's grub_available_iterate() with the generic
41556 grub_machine_mmap_iterate() interface (fixes a recently-introduced
41557 build problem on i386-ieee1275):
41558 * kern/ieee1275/openfw.c (grub_available_iterate): Moved from here ...
41559 * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): ... here. Add third
41560 parameter `type'. Update all users of this function.
41561 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
41562 `kern/ieee1275/mmap.c'.
41563 * kern/ieee1275/init.c
41564 * include/grub/ieee1275/ieee1275.h (grub_available_iterate): Replace
41565 with ...
41566 (grub_machine_mmap_iterate): ... this.
41567 * include/grub/i386/pc/memory.h (grub_machine_mmap_iterate): Change
41568 return type to `grub_err_t'. Update all implementations of this
41569 function prototype.
41570 * include/grub/i386/coreboot/memory.h (grub_machine_mmap_iterate):
41571 Likewise.
41572
60d6b16e 41573 Add `lsmmap' command (lists firmware-provided memory map):
41574 * commands/lsmmap.c: New file.
41575 * conf/i386-pc.rmk (pkglib_MODULES): Add `lsmmap.mod'.
41576 (lsmmap_mod_SOURCES, lsmmap_mod_CFLAGS, lsmmap_mod_LDFLAGS): New
41577 variables.
41578 * conf/powerpc-ieee1275.rmk: Likewise.
41579 * conf/i386-coreboot.rmk: Likewise.
41580 * conf/i386-ieee1275.rmk: Likewise.
41581
ebaaf49b 415822008-11-19 Robert Millan <rmh@aybabtu.com>
41583
41584 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Fix a typo.
92907110 41585 * loader/i386/linux.c (grub_rescue_cmd_initrd): Implement a few needed
41586 constraints to initrd allocation (based on code from
41587 loader/i386/pc/linux.c). Without them, initrd was allocated too high
41588 for Linux to find it.
ebaaf49b 41589
dfab719f 415902008-11-14 Robert Millan <rmh@aybabtu.com>
41591
41592 * fs/cpio.c (grub_cpio_open): Compare `name' and `fn' by hand in
41593 order to cope with duplicate slashes.
41594
10fc3eb9 415952008-11-14 Robert Millan <rmh@aybabtu.com>
41596
41597 * include/grub/i386/coreboot/memory.h (GRUB_MEMORY_MACHINE_LOWER_SIZE):
41598 Redefine to match with GRUB_MEMORY_MACHINE_UPPER_START (0x100000). We
41599 don't want to mess with lower memory, because it is used in the Linux
41600 loader.
41601
41602 * loader/i386/linux.c (allocate_pages): Allocate `real_mode_mem' in
34c44600 41603 an appropriate place in lower memory, between 0x10000 and 0x90000,
10fc3eb9 41604 like loader/i386/efi/linux.c does. Linux often panics if real_mode_mem
41605 is in our heap (probably as a result of it being corrupted during
2f2a3442 41606 decompression). Add #error instance with comment to explain why this
41607 loader isn't currently usable on PC/BIOS.
10fc3eb9 41608
e2e07847 416092008-11-14 Robert Millan <rmh@aybabtu.com>
41610
41611 * term/i386/pc/serial.c [! GRUB_MACHINE_PCBIOS]
34c44600 41612 (GRUB_SERIAL_PORT_NUM): Fix miscalculation.
e2e07847 41613
fe8e8d69 416142008-11-12 Robert Millan <rmh@aybabtu.com>
41615
41616 Make loader/i386/linux.c buildable on i386-pc (although disabled).
41617
41618 * include/grub/i386/pc/init.h: Include `<grub/machine/memory.h>'.
41619 (struct grub_machine_mmap_entry, grub_machine_mmap_iterate): Move
41620 from here ...
41621 * include/grub/i386/pc/memory.h: ... to here.
41622
976b07d0 416232008-11-12 Robert Millan <rmh@aybabtu.com>
41624
41625 Fix build problems on i386-ieee1275 and *-efi (introduced by vga_text
41626 split).
41627
41628 * include/grub/i386/pc/console.h: Include `<grub/i386/vga_common.h>'.
41629 (grub_console_cur_color, grub_console_real_putchar)
41630 (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
41631 (grub_console_setcolorstate, grub_console_setcolor)
41632 (grub_console_getcolor): Move from here ...
41633 * include/grub/i386/vga_common.h: ... to here (new file).
41634
41635 * term/i386/pc/vga_text.c: Replace `<grub/machine/console.h>' with
41636 `<grub/i386/vga_common.h>' and `<grub/cpu/io.h>' with
41637 `<grub/i386/io.h>'.
41638 * term/i386/vga_common.c: Replace `<grub/machine/console.h>' with
41639 `<grub/i386/vga_common.h>'.
41640
76679cd3 416412008-11-12 Robert Millan <rmh@aybabtu.com>
41642
41643 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `term/i386/vga_common.c'.
41644 * conf/i386.rmk (pkglib_MODULES): Add `vga_text.mod'.
41645 (vga_text_mod_SOURCES, vga_text_mod_CFLAGS, vga_text_mod_LDFLAGS): New
41646 variables.
41647 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
41648 `term/i386/pc/console.c' with `term/i386/vga_common.c'.
41649
41650 * kern/i386/coreboot/init.c (grub_machine_init): Replace call to
41651 grub_console_init() with call to grub_vga_text_init().
41652 (grub_machine_fini): Replace call to
41653 grub_console_fini() with call to grub_vga_text_fini() and
41654 grub_at_keyboard_fini().
41655
41656 * include/grub/i386/pc/console.h: Include `<grub/term.h>'.
41657 (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
41658 (grub_console_setcolorstate, grub_console_setcolor)
41659 (grub_console_getcolor): New function prototypes.
41660
41661 * term/i386/pc/vga_text.c: Include `<grub/dl.h>'.
41662 (grub_vga_text_getxy, grub_vga_text_gotoxy, grub_vga_text_cls)
41663 (grub_vga_text_setcursor): Static-ize.
41664 (grub_vga_text_term): New structure.
41665 (GRUB_MOD_INIT(vga_text), GRUB_MOD_FINI(vga_text)): New functions.
41666
41667 * term/i386/pc/console.c: Remove `<grub/machine/machine.h>'.
41668 (grub_console_cur_color, grub_console_standard_color)
41669 (grub_console_normal_color, grub_console_highlight_color)
41670 (map_char, grub_console_putchar, grub_console_getcharwidth)
41671 (grub_console_getwh, grub_console_setcolorstate, grub_console_setcolor)
41672 (grub_console_getcolor): Move from here ...
41673 * term/i386/vga_common.c: ... to here (same function names).
41674
95b841d3 416752008-11-12 Robert Millan <rmh@aybabtu.com>
41676
41677 Use newly-added Multiboot support in coreboot.
41678
41679 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
41680 `kern/i386/coreboot/mmap.c' with `kern/i386/multiboot_mmap.c'.
41681
41682 * kern/i386/coreboot/startup.S: Enable Multiboot header, fix its
41683 alignment, set `MULTIBOOT_MEMORY_INFO' flag.
41684 (codestart): Store the MBI in `startup_multiboot_info' when we're
41685 being loaded using Multiboot.
41686
41687 * kern/i386/coreboot/init.c (grub_machine_init): Move
41688 grub_at_keyboard_init() call to beginning of function (useful for
41689 debugging). Call grub_machine_mmap_init() before attempting to use
41690 grub_machine_mmap_iterate().
41691 (grub_lower_mem, grub_upper_mem): Move from here ...
41692 * kern/i386/multiboot_mmap.c (grub_lower_mem, grub_upper_mem): ... to
41693 here (new file).
41694
41695 * include/grub/i386/coreboot/memory.h (grub_machine_mmap_init): New
41696 function prototype.
41697
761ca975 416982008-11-12 Robert Millan <rmh@aybabtu.com>
41699
41700 Fix a regression introduced by the at_keyboard.mod split. Because
41701 some terminals are default on some platforms and non-default on
41702 others, the first terminal being registered determines which is
41703 going to be default.
41704
41705 * kern/term.c (grub_term_register_input): If this is the first
41706 terminal being registered, set it as the current one.
41707 (grub_term_register_output): Likewise.
41708
41709 * term/efi/console.c (grub_console_init): Do not call
41710 grub_term_set_current_output() or grub_term_set_current_input().
41711 * term/ieee1275/ofconsole.c (grub_console_init): Likewise.
41712 * term/i386/pc/console.c (grub_console_init): Likewise.
41713 (grub_console_fini): Do not call grub_term_set_current_input()
41714 (but leave grub_term_set_current_output() to restore text mode).
41715
6c529df7 417162008-11-10 Robert Millan <rmh@aybabtu.com>
41717
41718 * util/grub.d/00_header.in: Add backward compatibility check for
41719 versions of terminal.mod that don't understand `terminal_input' or
41720 `terminal_output'.
41721
132e4113 417222008-11-09 Robert Millan <rmh@aybabtu.com>
41723
41724 * commands/terminal.c (GRUB_MOD_FINI(terminal)): Unregister
41725 `terminal_input' / `terminal_output', not `terminal'.
41726
ac293d50 417272008-11-08 Robert Millan <rmh@aybabtu.com>
41728
41729 * Makefile.in (include_DATA): Fix srcdir=. assumption.
2a9c5940 41730 (DISTCLEANFILES): Add `build_env.mk'.
ac293d50 41731
0025933a 417322008-11-08 Robert Millan <rmh@aybabtu.com>
41733
41734 * term/i386/pc/vesafb.c (grub_vesafb_term): Change type to
dba3f844 41735 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
0025933a 41736 members. Update all users.
41737 * util/console.c (grub_ncurses_term): Split in ...
41738 (grub_ncurses_term_input): ... this, and ...
41739 (grub_ncurses_term_output): ... this. Update all users.
dcb6fa0a 41740 * term/ieee1275/ofconsole.c: Remove stale `#endif'.
0025933a 41741
37c86336 417422008-11-08 Robert Millan <rmh@aybabtu.com>
41743
41744 * Makefile.in (PKGLIB): Add $(pkglib_BUILDDIR).
41745 (PKGDATA): Add $(pkgdata_SRCDIR).
41746 (pkglib_BUILDDIR): New variable.
41747 (pkgdata_SRCDIR): New variable.
41748 (build_env.mk): New target.
41749 (include_DATA): New variable.
41750 (install-local): Install $(include_DATA) files in $(includedir).
41751
b6c15a2d 417522008-11-07 Pavel Roskin <proski@gnu.org>
41753
d99d46f1 41754 * gendistlist.sh: Use C locale for sorting to ensure consistent
41755 output on all systems.
41756
b6c15a2d 41757 * util/grub.d/00_header.in: Remove incorrect space before
41758 "serial".
41759
c32ee8c9 417602008-11-07 Robert Millan <rmh@aybabtu.com>
41761
41762 * include/multiboot2.h (struct multiboot_header): Add `flags' member as
41763 per specification.
41764 * loader/multiboot2.c (grub_multiboot2): Fix Multiboot2 header check.
41765 * loader/multiboot_loader.c (find_multi_boot2_header): New function
41766 (based on find_multi_boot1_header).
41767 (grub_rescue_cmd_multiboot_loader): Check for Multiboot2 header,
41768 using find_multi_boot2_header(), and abort if neither Multiboot or
41769 Multiboot headers were found.
41770
651c29b7 417712008-11-07 Robert Millan <rmh@aybabtu.com>
41772
41773 Modularize at_keyboard.mod:
41774
41775 * conf/i386.rmk (pkglib_MODULES): Add `at_keyboard.mod'.
41776 (at_keyboard_mod_SOURCES, at_keyboard_mod_CFLAGS)
41777 (at_keyboard_mod_LDFLAGS): New variables.
41778
41779 Actual terminal split:
41780
41781 * include/grub/term.h (struct grub_term): Split in ...
41782 (struct grub_term_input): ... this, and ...
41783 (struct grub_term_output): ... this. Update all users.
41784 (grub_term_set_current): Split in ...
41785 (grub_term_set_current_input): ... this, and ...
41786 (grub_term_set_current_output): ... this.
41787 (grub_term_get_current): Split in ...
41788 (grub_term_get_current_input): ... this, and ...
41789 (grub_term_get_current_output): ... this.
41790 (grub_term_register): Split in ...
41791 (grub_term_register_input): ... this, and ...
41792 (grub_term_register_output): ... this.
41793 (grub_term_unregister): Split in ...
41794 (grub_term_unregister_input): ... this, and ...
41795 (grub_term_unregister_output): ... this.
41796 (grub_term_iterate): Split in ...
41797 (grub_term_iterate_input): ... this, and ...
41798 (grub_term_iterate_output): ... this.
41799
41800 * kern/term.c (grub_term_list): Split in ...
41801 (grub_term_list_input): ... this, and ...
41802 (grub_term_list_output): ... this. Update all users.
41803 (grub_cur_term): Split in ...
41804 (grub_cur_term_input): ... this, and ...
41805 (grub_cur_term_output): ... this. Update all users.
41806 (grub_term_set_current): Split in ...
41807 (grub_term_set_current_input): ... this, and ...
41808 (grub_term_set_current_output): ... this.
41809 (grub_term_get_current): Split in ...
41810 (grub_term_get_current_input): ... this, and ...
41811 (grub_term_get_current_output): ... this.
41812 (grub_term_register): Split in ...
41813 (grub_term_register_input): ... this, and ...
41814 (grub_term_register_output): ... this.
41815 (grub_term_unregister): Split in ...
41816 (grub_term_unregister_input): ... this, and ...
41817 (grub_term_unregister_output): ... this.
41818 (grub_term_iterate): Split in ...
41819 (grub_term_iterate_input): ... this, and ...
41820 (grub_term_iterate_output): ... this.
41821
41822 * kern/misc.c (grub_abort): Split use of grub_term_get_current() into
41823 a check for input and one for output (and only attempt to get keys
41824 from user when input works).
41825
41826 * util/grub-probe.c (grub_term_get_current): Split in ...
41827 (grub_term_get_current_input): ... this, and ...
41828 (grub_term_get_current_output): ... this.
41829 * util/grub-fstest.c: Likewise.
41830 * util/i386/pc/grub-setup.c: Likewise.
41831 * util/grub-editenv.c: Likewise.
41832
41833 Portability adjustments:
41834
41835 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Remove
41836 `term/i386/pc/at_keyboard.c'.
41837 * kern/ieee1275/init.c [__i386__] (grub_machine_init): Remove call to
41838 grub_keyboard_controller_init() (now handled by terminal .init).
41839 * kern/i386/coreboot/init.c (grub_machine_init): Add call to
41840 grub_at_keyboard_init().
41841 * include/grub/i386/ieee1275/console.h (grub_keyboard_controller_init)
41842 (grub_console_checkkey, grub_console_getkey): Remove (now provided by
41843 at_keyboard.mod via input terminal interface).
41844 * include/grub/i386/coreboot/console.h: Convert into a stub for
41845 `<grub/i386/pc/console.h>'.
41846
41847 Migrate full terminals to new API:
41848
41849 * term/efi/console.c (grub_console_term): Split into ...
41850 (grub_console_term_input): ... this, and ...
41851 (grub_console_term_output): ... this. Update all users.
41852 * term/ieee1275/ofconsole.c: Remove __i386__ hack.
41853 (grub_ofconsole_init): Split into ...
41854 (grub_ofconsole_init_input): ... this, and ...
41855 (grub_ofconsole_init_output): ... this.
41856 (grub_ofconsole_term): Split into ...
41857 (grub_ofconsole_term_input): ... this, and ...
41858 (grub_ofconsole_term_output): ... this. Update all users.
41859 * term/i386/pc/serial.c (grub_serial_term): Split into ...
41860 (grub_serial_term_input): ... this, and ...
41861 (grub_serial_term_output): ... this. Update all users.
41862 * term/i386/pc/console.c (grub_console_term): Split into ...
41863 (grub_console_term_input): ... this, and ...
41864 (grub_console_term_output): ... this. Update all users.
41865 (grub_console_term_input): Only enable it on PC/BIOS platform.
41866 (grub_console_init): Remove grub_keyboard_controller_init() call.
41867
41868 Migrate input terminals to new API:
41869
41870 * term/i386/pc/at_keyboard.c: Replace `cpu' and `machine' with
41871 `i386' and `i386/pc' to enable build on x86_64 (this driver is
41872 i386-specific anyway).
41873 (grub_console_checkkey): Rename to ...
41874 (grub_at_keyboard_checkkey): ... this. Static-ize. Update all
41875 users.
41876 (grub_keyboard_controller_orig): New variable.
41877 (grub_console_getkey): Rename to ...
41878 (grub_at_keyboard_getkey): ... this. Static-ize. Update all
41879 users.
41880 (grub_keyboard_controller_init): Static-ize. Save original
41881 controller value so that it can be restored ...
41882 (grub_keyboard_controller_fini): ... here (new function).
41883 (grub_at_keyboard_term): New structure.
41884 (GRUB_MOD_INIT(at_keyboard), GRUB_MOD_FINI(at_keyboard)): New
41885 functions.
41886
41887 Migrate output terminals to new API:
41888
41889 * term/i386/pc/vga.c (grub_vga_term): Change type to
41890 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
41891 members. Update all users.
41892 * term/gfxterm.c (grub_video_term): Change type to
41893 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
41894 members. Update all users.
41895 * include/grub/i386/pc/console.h (grub_console_checkkey)
41896 (grub_console_getkey): Do not export (no longer needed by gfxterm,
41897 etc).
41898
41899 Migrate `terminal' command and userland tools to new API:
41900
41901 * commands/terminal.c (grub_cmd_terminal): Split into ...
41902 (grub_cmd_terminal_input): ... this, and ...
41903 (grub_cmd_terminal_output): ... this.
41904 (GRUB_MOD_INIT(terminal)): Split `terminal' command in two commands:
41905 `terminal_input' and `terminal_output'.
41906 * util/grub.d/00_header.in: Adjust `terminal' calls to new
41907 `terminal_input' / `terminal_output' API.
41908 * util/grub-mkconfig.in: Export ${GRUB_TERMINAL_INPUT} and
41909 ${GRUB_TERMINAL_OUTPUT} instead of ${GRUB_TERMINAL} (and if user
41910 provided ${GRUB_TERMINAL}, convert it).
41911
96e5d876 419122008-11-04 Robert Millan <rmh@aybabtu.com>
41913
41914 * util/grub.d/10_freebsd.in: New file. Generate grub configuration
41915 for FreeBSD.
41916 * conf/common.rmk (grub-mkconfig_SCRIPTS): Add 10_freebsd.
41917
556f3775 419182008-11-03 Bean <bean123ch@gmail.com>
41919
41920 * kern/elf.c (grub_elf32_load): Revert to previous code.
41921 (grub_elf64_load): Likewise.
41922
41923 * loader/i386/bsd.c (grub_bsd_elf32_hook): Change return address.
41924
926b9823 419252008-11-01 Robert Millan <rmh@aybabtu.com>
41926
41927 * Makefile.in (CPPFLAGS): Fix builddir=. assumption.
41928 (TARGET_CPPFLAGS): Likewise.
41929 * genmk.rb (mod_src): Fix builddir=. and srcdir=. assumptions.
41930
1432e958 419312008-11-01 Carles Pina i Estany <carles@pina.cat>
41932
41933 * normal/menu.c (run_menu): Add Previous and Next Page keys in menu.
41934
dba3f844 419352008-10-29 Guillem Jover <guillem.jover@nokia.com>
de4fa71c 41936
41937 * disk/lvm.c (grub_lvm_scan_device): Fix error recovery by delaying the
41938 addition of objects until the code is not going to be able to fail.
41939
dba3f844 419402008-10-29 Guillem Jover <guillem.jover@nokia.com>
b7279447 41941
41942 * disk/lvm.c (grub_lvm_scan_device): Fix possible NULL value handling
41943 (add a missing NULL check, and correct them by moving the pointer
41944 operations after the actual check).
41945
7ab28c21 419462008-10-29 Robert Millan <rmh@aybabtu.com>
41947
41948 * util/i386/pc/grub-install.in: Handle empty string as output from
41949 make_system_path_relative_to_its_root().
41950
1b7748eb 419512008-10-05 Hans Lambermont <hans@lambermont.dyndns.org>
41952
41953 * disk/lvm.c (grub_lvm_scan_device): Allocate buffer space for the
41954 circular metadata worst case scenario. If the metadata is circular
41955 then copy the wrap in place.
41956 * include/grub/lvm.h: Add GRUB_LVM_MDA_HEADER_SIZE, from the LVM2
41957 project lib/format_text/layout.h
41958 Circular metadata bug found and patch debugged by Jan Derk Gerlings.
41959
c9618ab2 419602008-10-03 Felix Zielcke <fzielcke@z-51.de>
41961
7a36edca 41962 * util/i386/pc/grub-install.in: Source grub-mkconfig_lib instead of update-grub_lib.
c9618ab2 41963
bf981c62 419642008-10-03 Felix Zielcke <fzielcke@z-51.de>
41965
41966 * util/update-grub_lib.in: Mention filename in warning message.
41967
6d994591 419682008-09-29 Felix Zielcke <fzielcke@z-51.de>
41969
41970 * NEWS: Update for rename of update-grub to grub-mkconfig.
41971
18ade780 419722008-09-29 Felix Zielcke <fzielcke@z-51.de>
41973
41974 * util/update-grub_lib.in: Copy to ...
41975 * util/grub-mkconfig_lib.in: ... this. Update all users.
7c3ff286 41976 * util/update-grub_lib.in: Make it a stub to `grub-mkconfig_lib.in'.
18ade780 41977 * util/update-grub.in: Rename to ...
41978 * util/grub-mkconfig.in: ... this. Update all users. Remove `-y'
41979 option. Add `--output' option to allow users to specify the generated
41980 configuration file. Default to stdout.
41981 (update_grub_dir): Rename to ...
41982 (grub_mkconfig_dir): ... this.
41983 (grub_cfg): Default to an empty string.
41984 * conf/common.rmk (update-grub): Rename to ...
41985 (grub-mkconfig): ... this.
41986 (update-grub_lib): Copy to ...
41987 (grub-mkconfig_lib): ... this.
41988 (update-grub_SCRIPTS): Copy to ...
41989 (grub-mkconfig_SCRIPTS): ... this. Update all users.
41990 (update-grub_DATA): Rename to ...
41991 (grub-mkconfig_DATA): ... this.
41992
556ce6ac 419932008-09-28 Robert Millan <rmh@aybabtu.com>
41994
41995 * fs/iso9660.c (struct grub_iso9660_primary_voldesc): Rename `created'
41996 to `modified'. Add the real `created' field.
41997 (grub_iso9660_uuid): Use `modified' rather than `created' for
41998 constructing the UUID.
41999
420002008-09-28 Felix Zielcke <fzielcke@z-51.de>
eb079ba9 42001
42002 fs/jfs.c (grub_jfs_find_file): Treat multiple slashes like one.
42003 Based on code from Tomas Ebenlendr <ebik@ucw.cz>.
42004
92274e85 420052008-09-28 Bean <bean123ch@gmail.com>
42006
42007 * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a bug in the previous patch.
42008 Thanks to Christian Franke for finding this bug.
42009
add6f17a 420102008-09-25 Robert Millan <rmh@aybabtu.com>
42011
42012 * util/grub-mkdevicemap.c (make_device_map): Actually replace all
42013 instances of grub_util_get_disk_name() (see previous commit).
42014
d2a367b8 420152008-09-25 Robert Millan <rmh@aybabtu.com>
42016
42017 * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Remove
42018 `util/i386/get_disk_name.c'.
42019 * conf/i386-efi.rmk: Likewise.
42020 * conf/x86_64-efi.rmk: Likewise.
42021 * conf/i386-coreboot.rmk: Likewise.
42022 * conf/i386-ieee1275.rmk: Likewise.
42023 * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Remove
42024 `util/ieee1275/get_disk_name.c'.
42025 * include/grub/util/misc.h (grub_util_get_disk_name): Remove.
42026 * util/ieee1275/get_disk_name.c: Remove file.
42027 * util/i386/get_disk_name.c: Remove file.
42028 * util/grub-mkdevicemap.c (make_device_map): Back to hardcoding
42029 "hd%d" for device.map entries, rather than using
42030 grub_util_get_disk_name().
42031
81a06771 420322008-09-24 Carles Pina i Estany <carles@pina.cat>
b0c301f7 42033
42034 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Fix `unused parameter'
42035 warning.
42036 * commands/i386/pc/pxecmd.c (dmraid_nvidia): Likewise.
42037
5a004279 420382008-09-24 Carles Pina i Estany <carles@pina.cat>
42039
42040 * include/grub/i386/pc/console.h (GRUB_TERM_NPAGE):
42041 Changed to 0x5100.
42042 (GRUB_TERM_PPAGE): Changed to 0x4900.
42043
397093d3 420442008-09-24 Robert Millan <rmh@aybabtu.com>
42045
42046 * include/grub/powerpc/ieee1275/console.h (GRUB_CONSOLE_KEY_*): Remove
42047 macros (they were i386-pc specific).
42048 * include/grub/sparc64/ieee1275/console.h: Likewise.
42049 * include/grub/efi/console.h: Likewise.
42050
a91b6c7c 420512008-09-22 Bean <bean123ch@gmail.com>
42052
42053 * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a rare case where $BITMAP is
42054 resident and in attribute list.
42055
42056 * include/grub/ntfs.h (BMP_LEN): Removed.
42057
c40fd116 420582008-09-22 Bean <bean123ch@gmail.com>
42059
81a06771 42060 * disk/ata.c (grub_atapi_open): Initialize devfnd, no need to set
c40fd116 42061 scsi->name and scsi->luns, as they will be set in grub_scsi_open.
42062
42063 * disk/scsi.c (grub_scsi_open): Don't call p->close (scsi) here when
42064 error occurs, as grub_disk_open will call grub_disk_close, which will
42065 call p->close (scsi).
42066
81a06771 420672008-09-21 Felix Zielcke <fzielcke@z-51.de>
eb73121d 42068
42069 * configure.ac (AC_INIT): Quote `GRUB' string and version number.
42070 (AC_PREREQ): Bumped to 2.59.
42071 (AC_TRY_COMPILE): Replace obsolete macro with ...
42072 (AC_COMPILE_IFELSE): ... this.
42073 * aclocal.m4 (AC_TRY_LINK): Replace obsolete macro with ...
42074 (AC_LINK_IFELSE): ... this.
42075
5dc43410 420762008-09-21 Felix Zielcke <fzielcke@z-51.de>
42077
42078 * autogen.sh: Add a call to `gendistlist.sh'.
42079
9035dce4 420802008-09-19 Christian Franke <franke@computer.org>
42081
42082 * aclocal.m4 (grub_CHECK_ENABLE_EXECUTE_STACK): New function.
42083 * configure.ac: Call grub_CHECK_ENABLE_EXECUTE_STACK.
42084 * include/grub/misc.h [NEED_ENABLE_EXECUTE_STACK]:
42085 Export __enable_execute_stack() to modules.
42086 * kern/misc.c [NEED_ENABLE_EXECUTE_STACK] (__enable_execute_stack):
42087 New function.
42088
7fd75377 420892008-09-09 Felix Zielcke <fzielcke@z-51.de>
42090
040030b3 42091 * Makefile.in (RMKFILES): Add `i386.rmk' and `x86_64-efi.rmk'.
42092 Sort the list.
42093
420942008-09-09 Felix Zielcke <fzielcke@z-51.de>
42095
42096 * util/hostdisk.c: Replace #include <grub/util/biosdisk.h> with
7fd75377 42097 #include <grub/util/hostdisk.h>.
42098
89d5ffcf 420992008-09-08 Robert Millan <rmh@aybabtu.com>
42100
42101 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Skip
42102 segments when their filesz is zero (grub_file_read() interprets
81a06771 42103 zero-size as "read until EOF", which results in memory corruption).
89d5ffcf 42104 Use `lowest_segment' rather than 0 for calculating the current
42105 segment load address.
42106
40da438f 421072008-09-08 Robert Millan <rmh@aybabtu.com>
42108
42109 * util/hostdisk.c (open_device): Replace a grub_util_info() call
42110 with grub_dprintf("hostdisk", ...), as it was so verbose that it
42111 clobbered useful information.
42112
ddbf5556 421132008-09-08 Robert Millan <rmh@aybabtu.com>
42114
42115 * include/grub/util/biosdisk.h: Move to ...
42116 * include/grub/util/hostdisk.h: ... here. Update all users.
42117 * util/biosdisk.c: Move to ...
42118 * util/hostdisk.c: ... here. Update all users.
42119
783d0f48 421202008-09-07 Robert Millan <rmh@aybabtu.com>
42121
42122 * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): Remove
42123 variables.
42124 (grub_multiboot): Move `mbi' allocation upwards, so that mmap address
42125 and length can be stored directly in the `mbi->mmap_addr' and
42126 `mbi->mmap_length' struct fields.
42127
548e2ea5 421282008-09-07 Robert Millan <rmh@aybabtu.com>
42129
42130 * conf/i386.rmk: New file. Provides declaration for building
42131 `cpuid.mod'.
42132 * conf/i386-pc.rmk (pkglib_MODULES): Remove `cpuid.mod'.
42133 (cpuid_mod_SOURCES, cpuid_mod_CFLAGS, cpuid_mod_LDFLAGS): Remove
42134 variables.
42135 Include `conf/i386.mk'.
42136 * conf/i386-efi.rmk: Likewise.
42137 * conf/x86_64-efi.rmk: Likewise.
42138 * conf/i386-coreboot.rmk: Likewise.
42139 * conf/i386-ieee1275.rmk: Likewise.
42140
0ea85a37 421412008-09-07 Vesa Jääskeläinen <chaac@nic.fi>
42142
42143 Based on patch created by Colin D Bennett <colin@gibibit.com>.
42144 Adds optimization support for BGR based modes.
42145
42146 * include/grub/i386/pc/vbeblit.h (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8) Removed.
42147 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
42148 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
42149 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
42150 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
42151 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
42152 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
42153 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
42154 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
42155 (grub_video_i386_vbeblit_index_index): Likewise.
42156 (grub_video_i386_vbeblit_replace_directN): Added.
42157 (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
42158 (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
42159 (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
42160 (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
42161 (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
42162 (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
81a06771 42163 (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
0ea85a37 42164 (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
42165 (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
42166 (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
42167 (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
42168 (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
42169 (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
42170
42171 * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8) Removed.
42172 (grub_video_i386_vbefill_R8G8B8): Likewise.
42173 (grub_video_i386_vbefill_index): Likewise.
42174 (grub_video_i386_vbefill_direct32): Added.
42175 (grub_video_i386_vbefill_direct24): Likewise.
42176 (grub_video_i386_vbefill_direct16): Likewise.
42177 (grub_video_i386_vbefill_direct8): Likewise.
42178
81a06771 42179 * include/grub/video.h (grub_video_blit_format): Removed
0ea85a37 42180 GRUB_VIDEO_BLIT_FORMAT_R8G8B8A8, GRUB_VIDEO_BLIT_FORMAT_R8G8B8.
42181 (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_RGBA_8888,
42182 GRUB_VIDEO_BLIT_FORMAT_BGRA_8888, GRUB_VIDEO_BLIT_FORMAT_RGB_888,
42183 GRUB_VIDEO_BLIT_FORMAT_BGR_888, GRUB_VIDEO_BLIT_FORMAT_RGB_565,
42184 GRUB_VIDEO_BLIT_FORMAT_BGR_565.
81a06771 42185
0ea85a37 42186 * video/video.c (grub_video_get_blit_format): Updated to use new
42187 blit formats. Added handling for 16 bit color modes.
81a06771 42188
42189 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Updated to use new
0ea85a37 42190 fillers.
42191 (common_blitter): Updated to use new blitters.
42192
42193 * video/i386/pc/vbeblit.c (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8):
42194 Removed.
42195 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
42196 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
42197 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
42198 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
42199 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
42200 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
42201 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
42202 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
42203 (grub_video_i386_vbeblit_index_index): Likewise.
42204 (grub_video_i386_vbeblit_replace_directN): Added.
42205 (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
42206 (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
42207 (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
42208 (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
42209 (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
42210 (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
42211 (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
42212 (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
42213 (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
42214 (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
42215 (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
42216 (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
42217 (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
81a06771 42218
0ea85a37 42219 * video/i386/pc/vbefill.c (grub_video_i386_vbefill_R8G8B8A8): Removed.
42220 (grub_video_i386_vbefill_R8G8B8): Likewise.
42221 (grub_video_i386_vbefill_index): Likewise.
42222 (grub_video_i386_vbefill_direct32): Added.
42223 (grub_video_i386_vbefill_direct24): Likewise.
42224 (grub_video_i386_vbefill_direct16): Likewise.
42225 (grub_video_i386_vbefill_direct8): Likewise.
81a06771 42226
0ea85a37 42227 * video/readers/jpeg.c (grub_jpeg_decode_sos): Adapt to new blitter
42228 types.
81a06771 42229
0ea85a37 42230 * video/readers/tga.c (grub_video_reader_tga): Adapt to new blitter
42231 types.
81a06771 42232
0ea85a37 42233 * video/readers/png.c (grub_png_decode_image_header): Adapt to new
42234 blitter types.
81a06771 42235
0ea85a37 42236 * video/bitmap.c (grub_video_bitmap_create): Adapt to new blitter
42237 types.
42238
e8a83df6 422392008-09-06 Felix Zielcke <fzielcke@z-51.de>
42240
42241 * disk/raid.c (insert_array): Set `array->chunk_size' to 64 for
42242 RAID level 1.
42243
6bcd8ee5 422442008-09-06 Felix Zielcke <fzielcke@z-51.de>
c375ae58 42245
6bcd8ee5 42246 * fs/iso9660.c (grub_iso9660_date): New structure.
42247 (grub_iso9660_primary_voldesc): Add `grub_iso9660_date' member.
42248 (grub_iso9660_uuid): New function.
c375ae58 42249
59261157 422502008-09-05 Bean <bean123ch@gmail.com>
42251
42252 * fs/fshelp.c (grub_fshelp_find_file): Handle case insensitive names.
42253
42254 * fs/ntfs.c (list_file): Ignore names in DOS namespace, set the case
42255 insensitive bit for names in Win32 and Win32 & DOS namespace.
42256
42257 * include/grub/fshelp.h (GRUB_FSHELP_CASE_INSENSITIVE): New macro.
42258
42259 * include/grub/types.h (LONG_MAX): Likewise.
42260
58b6645a 422612008-09-04 Felix Zielcke <fzielcke@z-51.de>
42262
4ee55921 42263 * util/getroot.c: Include <config.h>.
42264 (grub_util_get_grub_dev): Rewrite to use asprintf for mdraid devices,
42265 add support for /dev/md/N devices and handle LVM double dash escaping.
42266
422672008-09-04 Felix Zielcke <fzielcke@z-51.de>
42268
42269 * config.guess: Update to latest version from config git.
42270 * config.sub: Likewise.
58b6645a 42271
9124f65d 422722008-09-03 Robert Millan <rmh@aybabtu.com>
42273
42274 * disk/scsi.c (grub_scsi_open): Remove size limit when printing
42275 `disk->total_sectors'.
42276
81a06771 422772008-09-01 Colin D Bennett <colin@gibibit.com>
a0224a4e 42278
42279 * include/grub/normal.h: Fixed incorrect comment for
42280 GRUB_COMMAND_FLAG_NO_ARG_PARSE.
42281
81a06771 422822008-09-01 Colin D Bennett <colin@gibibit.com>
f0619958 42283
42284 * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Replaced constant
42285 values with defines.
42286
42287 * include/grub/i386/pc/vbe.h (GRUB_VBE_MODEATTR_SUPPORTED): Added.
42288 (GRUB_VBE_MODEATTR_RESERVED_1): Likewise.
42289 (GRUB_VBE_MODEATTR_BIOS_TTY_OUTPUT_SUPPORT): Likewise.
42290 (GRUB_VBE_MODEATTR_COLOR): Likewise.
42291 (GRUB_VBE_MODEATTR_GRAPHICS): Likewise.
42292 (GRUB_VBE_MODEATTR_VGA_COMPATIBLE): Likewise.
42293 (GRUB_VBE_MODEATTR_VGA_WINDOWED_AVAIL): Likewise.
42294 (GRUB_VBE_MODEATTR_LFB_AVAIL): Likewise.
42295 (GRUB_VBE_MODEATTR_DOUBLE_SCAN_AVAIL): Likewise.
42296 (GRUB_VBE_MODEATTR_INTERLACED_AVAIL): Likewise.
42297 (GRUB_VBE_MODEATTR_TRIPLE_BUF_AVAIL): Likewise.
42298 (GRUB_VBE_MODEATTR_STEREO_AVAIL): Likewise.
42299 (GRUB_VBE_MODEATTR_DUAL_DISPLAY_START): Likewise.
42300 (GRUB_VBE_MEMORY_MODEL_TEXT): Likewise.
42301 (GRUB_VBE_MEMORY_MODEL_CGA): Likewise.
42302 (GRUB_VBE_MEMORY_MODEL_HERCULES): Likewise.
42303 (GRUB_VBE_MEMORY_MODEL_PLANAR): Likewise.
42304 (GRUB_VBE_MEMORY_MODEL_NONCHAIN4_256): Likewise.
42305 (GRUB_VBE_MEMORY_MODEL_YUV): Likewise.
42306
93d5cbf8 423072008-08-31 Robert Millan <rmh@aybabtu.com>
42308
42309 * loader/i386/pc/multiboot.c (grub_get_multiboot_mmap_len): Fix
42310 declaration.
42311 (grub_multiboot): Fix a few warnings.
42312
21751d50 423132008-08-31 Robert Millan <rmh@aybabtu.com>
42314
42315 * loader/i386/pc/multiboot.c: Update comment not to say that
42316 boot_device support is unimplemented.
42317
e27a75c5 423182008-08-31 Robert Millan <rmh@aybabtu.com>
42319
42320 * loader/i386/pc/multiboot.c: Update comment not to say that a.out
42321 or memory map support are unimplemented.
42322
81a06771 423232008-08-31 Colin D Bennett <colin@gibibit.com>
64d2d53c 42324
42325 * util/i386/pc/grub-mkrescue.in: Support multiple overlay directories.
42326
81a06771 423272008-08-31 Colin D Bennett <colin@gibibit.com>
c08a6c18 42328
42329 * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Show VBE version and
42330 total video memory in 'vbeinfo' output; show color format details for
42331 each video mode.
42332
7c5d8d95 423332008-08-30 Pavel Roskin <proski@gnu.org>
42334
42335 * util/genmoddep.c: Remove for real this time.
42336 * DISTLIST: Remove util/genmoddep.c.
42337
4cebd25a 423382008-08-30 Robert Millan <rmh@aybabtu.com>
42339
42340 * kern/i386/pc/startup.S (multiboot_header): Force 4-byte alignment
42341 as required by Multiboot spec (it was already 4-byte aligned, but
42342 only by chance).
42343
b497a269 423442008-08-29 Pavel Roskin <proski@gnu.org>
42345
e3925185 42346 * kern/powerpc/ieee1275/crt0.S: Rename to ...
42347 * kern/powerpc/ieee1275/startup.S: ... this.
42348 * conf/powerpc-ieee1275.rmk: Adjust for the above.
42349 * DISTLIST: Likewise.
42350
b497a269 42351 * kern/powerpc/ieee1275/crt0.S: Include grub/symbol.h and
42352 grub/cpu/kernel.h. Add start label for consistency with other
42353 platforms. Add grub_prefix immediately after start. Add jump
42354 to the code after grub_prefix.
42355 * include/grub/powerpc/kernel.h: Provide valid values for
42356 GRUB_KERNEL_CPU_PREFIX and GRUB_KERNEL_CPU_DATA_END.
42357
6e5a42fe 423582008-08-29 Bean <bean123ch@gmail.com>
42359
42360 * configure.ac: Change host_os to cygwin for mingw.
42361 (asprintf): New check for function.
42362
42363 * include/grub/symbol.h: Replace #ifndef __CYGWIN__ with
42364 #if ! defined (__CYGWIN__) && ! defined (__MINGW32__).
42365
42366 * include/grub/util/misc.h: #include <config.h> and <grub/types.h>,
81a06771 42367 declare asprintf if HAVE_ASPRINTF is not set, declare fseeko, ftello,
6e5a42fe 42368 sync, sleep and grub_util_get_disk_size for mingw.
42369
42370 * util/biosdisk.c (grub_util_biosdisk_open): Use grub_util_get_disk_size
42371 to get size in mingw.
42372 (open_device): Use flag O_BINARY if it's defined.
42373 (find_root_device): Add dummy code for mingw.
42374
42375 * util/grub-mkdevicemap.c (get_floppy_disk_name): Return 0 for mingw.
42376 (get_ide_disk_name): Return //./PHYSICALDRIVE%d for mingw.
42377 (get_scsi_disk_name): Return 0 for mingw.
42378
42379 * util/hostfs.c: #include <grub/util/misc.h>.
42380 (grub_hostfs_open): Use "rb" flag to open file, use
42381 grub_util_get_disk_size to get disk size for mingw.
42382
42383 * util/misc.c: #include <windows.h> and <winioctl.h> in mingw.
42384 (asprintf): New function if HAVE_ASPRINTF is not set.
42385 (sync): New function for mingw.
42386 (sleep): Likewise.
42387 (grub_util_get_disk_size): Likewise.
42388
ab3f2673 423892008-08-28 Pavel Roskin <proski@gnu.org>
42390
42391 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
42392 kern/time.c.
42393
1c282483 423942008-08-28 Robert Millan <rmh@aybabtu.com>
42395
42396 * util/biosdisk.c (find_grub_drive): Declare missing `i' variable.
42397
678e849c 423982008-08-28 Robert Millan <rmh@aybabtu.com>
42399
42400 Change find_grub_drive() syntax so it doesn't prevent it from
42401 detecting NULL names as errors.
42402
42403 * util/biosdisk.c (find_grub_drive): Move free slot search code
42404 from here ...
42405 (find_free_slot): ... to here.
42406 (read_device_map): Use find_free_slot() to search for free slots.
42407
965c75ca 424082008-08-27 Marco Gerards <marco@gnu.org>
42409
42410 * conf/common.rmk (pkglib_MODULES): Add scsi.mod.
42411 (scsi_mod_SOURCES): New variable.
42412 (scsi_mod_CFLAGS): Likewise
42413 (scsi_mod_LDFLAGS): Likewise.
42414
42415 * disk/scsi.c: New file.
42416
42417 * include/grub/scsi.h: Likewise.
42418
42419 * include/grub/scsicmd.h: Likewise.
42420
42421 * disk/ata.c: Include <grub/scsi.h>.
42422 (grub_atapi_packet): Do not use grub_ata_cmd, use registers
42423 instead.
42424 (grub_ata_iterate): Skip ATAPI devices.
42425 (grub_ata_open): Only handle ATAPI devices.
42426 (struct grub_atapi_read): Removed.
42427 (grub_atapi_readsector): Likewise.
42428 (grub_ata_read): No longer handle ATAPI devices.
42429 (grub_ata_write): Likewise.
42430 (grub_atapi_iterate): New function.
42431 (grub_atapi_read): Likewise.
42432 (grub_atapi_write): Likewise.
42433 (grub_atapi_open): Likewise.
42434 (grub_atapi_close): Likewise.
42435 (grub_atapi_dev): New variable.
42436 (GRUB_MOD_INIT(ata)): Register ATAPI as SCSI device.
42437 (GRUB_MOD_FINI(ata)): Unregister ATAPI.
42438
42439 * include/grub/disk.h (enum grub_disk_dev_id): Add
42440 `GRUB_DISK_DEVICE_SCSI_ID'.
42441
c07ae501 424422008-08-26 Robert Millan <rmh@aybabtu.com>
42443
42444 * util/biosdisk.c (grub_util_biosdisk_open, open_device)
42445 (grub_util_biosdisk_get_grub_dev): Make error messages a bit more
42446 descriptive.
42447
5ed20adc 424482008-08-23 Bean <bean123ch@gmail.com>
42449
42450 * conf/common.rmk (grub_probe_SOURCES): Add disk/mdraid_linux.c.
42451 (grub_fstest_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
42452 disk/mdraid_linux.c and disk/dmraid_nvidia.c and lib/crc.c.
42453 (pkglib_MODULES): Add raid5rec.mod, raid6rec.mod, mdraid.mod and
42454 dm_nv.mod.
42455 (raid5rec_mod_SOURCES): New macro.
42456 (raid5rec_mod_CFLAGS): Likewise.
42457 (raid5rec_mod_LDFLAGS): Likewise.
42458 (raid6rec_mod_SOURCES): Likewise.
42459 (raid6rec_mod_CFLAGS): Likewise.
42460 (raid6rec_mod_LDFLAGS): Likewise.
42461 (mdraid_mod_SOURCES): Likewise.
42462 (mdraid_mod_CFLAGS): Likewise.
42463 (mdraid_mod_LDFLAGS): Likewise.
42464 (dm_nv_mod_SOURCES): Likewise.
42465 (dm_nv_mod_CFLAGS): Likewise.
42466 (dm_nv_mod_LDFLAGS): Likewise.
42467
42468 * conf/i386-pc.rmk (grub_setup_SOURCES): Add disk/mdraid_linux.c.
42469 (grub_emu_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
42470 disk/mdraid_linux.c and disk/dmraid_nvidia.c.
42471
42472 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add disk/raid5_recover.c,
42473 disk/raid6_recover.c, disk/mdraid_linux.c and disk/dmraid_nvidia.c.
42474
42475 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
42476
42477 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
42478
42479 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
42480
42481 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
42482
42483 * disk/raid5_recover.c: New file.
42484
42485 * disk/raid6_recover.c: Likewise.
42486
42487 * disk/mdraid_linux.c: Likewise.
42488
42489 * disk/dmraid_nvidia.c: Likewise.
42490
42491 * disk/i386/pc/biosdisk.c: Set total_sectors of cdrom device to
42492 ULONG_MAX.
42493
42494 * disk/raid.c (grub_raid_open): Use the size of the smallest disk to
42495 calculate the size of raid device.
42496 (grub_raid_read): Simplify raid0 code. Support raid4, raid6 and four
42497 different layout of raid5.
42498 (grub_raid_scan_device): Remove code specific to mdraid.
42499 (grub_raid_list): New variable.
42500 (free_array): New function.
42501 (grub_raid_register): Likewise.
42502 (grub_raid_unregister): Likewise.
42503 (grub_raid_rescan): Likewise.
42504 (GRUB_MOD_INIT): Don't iterate device here.
42505 (GRUB_MOD_FINI): Use free_array to release resource.
42506
42507 * include/grub/raid.h: Remove macro and structure specific to mdraid.
42508 (grub_raid5_recover_func_t): New function variable type.
42509 (grub_raid6_recover_func_t): Likewise.
42510 (grub_raid5_recover_func): New variable.
42511 (grub_raid6_recover_func): Likewise.
42512 (grub_raid_register): New function.
42513 (grub_raid_unregister): Likewise.
42514 (grub_raid_rescan): Likewise.
42515 (grub_raid_block_xor): Likewise.
42516
42517 * util/grub-fstest.c: Add #include <grub/raid.h> and <grub/lib/crc.h>.
42518 (CMD_CRC): New macro.
42519 (part): Removed.
42520 (read_file): Handle device as well as file.
42521 (cmd_crc): New function.
42522 (fstest): Handle multiple disks.
42523 (options): Remove part, raw and long, add root and diskcount.
42524 (usage): Add crc, remove -p, -r, -l, add -r and -c.
dba3f844 42525 (main): Find the first non option entry and ignore subsequent options,
5ed20adc 42526 add handling for the new options, support multiple disks.
42527
42528 * util/grub-probe.c (probe): Add mdraid to abstraction_name.
42529
29c18915 425302008-08-23 Bean <bean123ch@gmail.com>
42531
42532 * normal/x86_64/setjmp.S (grub_longjmp): Return 1 when val = 0.
42533
42534 * genfslist.sh: Ignore kernel.mod.
42535
42536 * genpartmaplist.sh: Likewise.
42537
8415f261 425382008-08-23 Robert Millan <rmh@aybabtu.com>
42539
42540 * util/getroot.c (find_root_device): Skip anything that starts with
42541 a dot, not just directories. This avoids things like /dev/.tmp.md0.
42542
d5a7dc5b 425432008-08-22 Felix Zielcke <fzielcke@z-51.de>
81a06771 42544
d5a7dc5b 42545 * util/update-grub.in (GRUB_GFXMODE): Export variable.
42546 * util/grub.d/00_header.in: Allow the administrator to change default
42547 gfxmode via ${GRUB_GFXMODE}.
42548
380cfbb4 425492008-08-21 Felix Zielcke <fzielcke@z-51.de>
42550
42551 * fs/ntfs.c (grub_ntfs_mount): Fix a memory leak.
42552
c9baafe7 425532008-08-21 Robert Millan <rmh@aybabtu.com>
42554
42555 * loader/i386/linux.c: New file. Implements generic 32-bit Linux
42556 loader.
42557 * conf/i386-coreboot.rmk (_linux_mod_SOURCES): Replace
42558 `loader/i386/pc/linux.c' with `loader/i386/linux.c'.
42559
e290bef2 425602008-08-20 Carles Pina i Estany <carles@pina.cat>
42561
42562 * menu/normal.c (run_menu): Replace hardcoded numbers with macros
42563 (16 for GRUB_TERM_UP and 14 for GRUB_TERM_DOWN)
42564
f9dbfc96 425652008-08-19 Robert Millan <rmh@aybabtu.com>
42566
42567 * term/gfxterm.c (DEFAULT_CURSOR_COLOR): Remove.
42568 (struct grub_virtual_screen): Remove `cursor_color'.
42569 (grub_virtual_screen_setup): Remove `virtual_screen.cursor_color'
42570 initialization.
42571 (write_cursor): Use `virtual_screen.fg_color' to draw cursor.
42572
dd6bd6ab 425732008-08-18 Robert Millan <rmh@aybabtu.com>
42574
42575 Unify (identical) linux_normal.c files.
42576 * loader/i386/efi/linux_normal.c: Move from here ...
42577 * loader/linux_normal.c: ... to here. Update all users.
42578 * loader/i386/pc/linux_normal.c: Delete. Update all users.
42579 * loader/i386/ieee1275/linux_normal.c: Likewise.
42580
7f42f83e 425812008-08-18 Robert Millan <rmh@aybabtu.com>
42582
42583 * include/grub/i386/linux.h (LINUX_LOADER_ID_LILO)
42584 (LINUX_LOADER_ID_LOADLIN, LINUX_LOADER_ID_BOOTSECT)
42585 (LINUX_LOADER_ID_SYSLINUX, LINUX_LOADER_ID_ETHERBOOT)
42586 (LINUX_LOADER_ID_ELILO, LINUX_LOADER_ID_GRUB, LINUX_LOADER_ID_UBOOT)
42587 (LINUX_LOADER_ID_XEN, LINUX_LOADER_ID_GUJIN, LINUX_LOADER_ID_QEMU):
42588 New macros.
42589 (GRUB_LINUX_CL_OFFSET, GRUB_LINUX_CL_END_OFFSET): Move from here ...
42590 * loader/i386/pc/linux.c (GRUB_LINUX_CL_OFFSET)
42591 (GRUB_LINUX_CL_END_OFFSET): ... to here.
42592 * loader/i386/efi/linux.c (GRUB_EFI_CL_OFFSET): Rename to ...
42593 (GRUB_LINUX_CL_OFFSET): ... this. Update all users.
42594 (GRUB_EFI_CL_END_OFFSET): Rename to ...
42595 (GRUB_LINUX_CL_END_OFFSET): ... this. Update all users.
42596 (grub_rescue_cmd_linux): Macroify `type_of_loader' initialization.
42597 Initialize `params->video_cursor_x' and `params->video_cursor_y'
42598 portably using grub_getxy().
42599 Replace `-EFI' with `-bzImage' in boot message.
42600
38487ddb 426012008-08-17 Robert Millan <rmh@aybabtu.com>
42602
42603 * include/grub/x86_64/kernel.h: New file (<grub/i386/kernel.h> stub).
42604
deceb3ec 426052008-08-17 Robert Millan <rmh@aybabtu.com>
42606
42607 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pc/mmap.c'.
42608
42609 * include/grub/i386/pc/init.h (GRUB_MACHINE_MEMORY_AVAILABLE)
42610 (GRUB_MACHINE_MEMORY_RESERVED): New macros.
42611 (grub_machine_mmap_iterate): New function declaration.
42612 * include/grub/multiboot.h (struct grub_multiboot_mmap_entry): New
42613 structure.
42614 (GRUB_MMAP_MEMORY_AVAILABLE, GRUB_MMAP_MEMORY_RESERVED): New
42615 macros.
42616
42617 * kern/i386/pc/init.c (grub_machine_init): Replace hardcoded region
42618 type check value with `GRUB_MACHINE_MEMORY_AVAILABLE'.
42619 Move e820 parsing from here ...
42620 * kern/i386/pc/mmap.c: New file.
42621 (grub_machine_mmap_iterate): ... to here.
42622
42623 * include/grub/i386/coreboot/memory.h: Remove `<grub/err.h>'.
42624 (GRUB_LINUXBIOS_MEMORY_AVAILABLE): Rename (for consistency) to ...
42625 (GRUB_MACHINE_MEMORY_AVAILABLE): ... this. Update all users.
42626 (grub_available_iterate): Redeclare to return `void', and redeclare
42627 its hook to use grub_uint64_t as addr and size parameters, and rename
42628 to ...
42629 (grub_machine_mmap_iterate): ... this. Update all users.
42630
42631 * kern/i386/coreboot/mmap.c (grub_mmap_iterate): Simplify parser loop
42632 to make it more readable. Rename to ...
42633 (grub_machine_mmap_iterate): ... this.
42634
42635 * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): New variables.
42636 (grub_get_multiboot_mmap_len, grub_fill_multiboot_mmap): New functions.
42637 (grub_multiboot): Allocate an extra region after the payload, and fill
42638 it with a Multiboot memory map. Adjust a.out loader to calculate size
42639 with the extra space.
42640 (grub_multiboot_load_elf32): Adjust elf32 loader to calculate size
42641 with the extra space.
42642
f8aa0f43 426432008-08-17 Carles Pina i Estany <carles@pina.cat>
42644
9807deb9 42645 * menu/normal.c (run_menu): Add Home and End keys in grub-menu.
f8aa0f43 42646
605f5bb6 426472008-08-17 Felix Zielcke <fzielcke@z-51.de>
42648
42649 * gendistlist.sh: Add *.y, *.tex, *.texi, grub.cfg, README, *.sc,
42650 mdate-sh to the list `find' searches for.
42651 * DISTLIST: Regenerated.
42652
210db6c6 426532008-08-16 Felix Zielcke <fzielcke@z-51.de>
42654
42655 * gendistlist.sh (EXTRA_DISTFILES): Remove gensymlist.sh,
42656 genkernsyms.sh. Add geninit.sh, geninitheader.sh, genkernsyms.sh.in,
48cdbfd4 42657 genmoddep.awk, gensymlist.sh.in.
42658 (DISTDIRS): Add bus, docs, hook, lib.
210db6c6 42659 * DISTLIST: Regenerated.
48cdbfd4 42660 * NEWS: Add cygwin support and change the `os-prober' entry a bit.
210db6c6 42661
1082b929 426622008-08-16 Robert Millan <rmh@aybabtu.com>
42663
42664 * disk/raid.c (grub_raid_init): Handle/report errors set by
42665 grub_device_iterate().
42666 * disk/lvm.c (grub_lvm_init): Likewise.
42667
42ce5170 426682008-08-15 Bean <bean123ch@gmail.com>
42669
42670 * conf/i386-pc.rmk (pkglib_MODULES): Add datetime.mod, date.mod
42671 and datehook.mod.
42672 (datetime_mod_SOURCES): New macro.
42673 (datetime_mod_CFLAGS): Likewise.
42674 (datetime_mod_LDFLAGS): Likewise.
42675 (date_mod_SOURCES): Likewise.
42676 (date_mod_CFLAGS): Likewise.
42677 (date_mod_LDFLAGS): Likewise.
42678 (datehook_mod_SOURCES): Likewise.
42679 (datehook_mod_CFLAGS): Likewise.
42680 (datehook_mod_LDFLAGS): Likewise.
42681
42682 * conf/i386-coreboot.rmk (pkglib_MODULES): Add datetime.mod, date.mod
42683 and datehook.mod.
42684 (datetime_mod_SOURCES): New macro.
42685 (datetime_mod_CFLAGS): Likewise.
42686 (datetime_mod_LDFLAGS): Likewise.
42687 (date_mod_SOURCES): Likewise.
42688 (date_mod_CFLAGS): Likewise.
42689 (date_mod_LDFLAGS): Likewise.
42690 (datehook_mod_SOURCES): Likewise.
42691 (datehook_mod_CFLAGS): Likewise.
42692 (datehook_mod_LDFLAGS): Likewise.
42693
42694 * conf/i386-ieee1275.rmk (pkglib_MODULES): Add datetime.mod, date.mod
42695 and datehook.mod.
42696 (datetime_mod_SOURCES): New macro.
42697 (datetime_mod_CFLAGS): Likewise.
42698 (datetime_mod_LDFLAGS): Likewise.
42699 (date_mod_SOURCES): Likewise.
42700 (date_mod_CFLAGS): Likewise.
42701 (date_mod_LDFLAGS): Likewise.
42702 (datehook_mod_SOURCES): Likewise.
42703 (datehook_mod_CFLAGS): Likewise.
42704 (datehook_mod_LDFLAGS): Likewise.
42705
42706 * conf/i386-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
42707 and datehook.mod.
42708 (datetime_mod_SOURCES): New macro.
42709 (datetime_mod_CFLAGS): Likewise.
42710 (datetime_mod_LDFLAGS): Likewise.
42711 (date_mod_SOURCES): Likewise.
42712 (date_mod_CFLAGS): Likewise.
42713 (date_mod_LDFLAGS): Likewise.
42714 (datehook_mod_SOURCES): Likewise.
42715 (datehook_mod_CFLAGS): Likewise.
42716 (datehook_mod_LDFLAGS): Likewise.
42717
42718 * conf/x86_64-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
42719 and datehook.mod.
42720 (datetime_mod_SOURCES): New macro.
42721 (datetime_mod_CFLAGS): Likewise.
42722 (datetime_mod_LDFLAGS): Likewise.
42723 (date_mod_SOURCES): Likewise.
42724 (date_mod_CFLAGS): Likewise.
42725 (date_mod_LDFLAGS): Likewise.
42726 (datehook_mod_SOURCES): Likewise.
42727 (datehook_mod_CFLAGS): Likewise.
42728 (datehook_mod_LDFLAGS): Likewise.
42729
42730 * kern/env.c (grub_env_insert): Fix a bug in prevp pointer.
42731
42732 * commands/date.c: New file.
42733
42734 * hook/datehook.c: Likewise.
42735
42736 * include/grub/lib/datetime.h: Likewise.
42737
42738 * include/grub/i386/cmos.h: Likewise.
42739
42740 * lib/datetime.c: Likewise.
42741
42742 * lib/i386/datetime.c: Likewise.
42743
42744 * lib/efi/datetime.c: Likewise.
42745
0e9242da 427462008-08-14 Robert Millan <rmh@aybabtu.com>
42747
42748 * conf/common.rmk (bin_UTILITIES): Add `grub-mkelfimage'.
42749 (grub_mkelfimage_SOURCES): New variable.
42750 (util/elf/grub-mkimage.c_DEPENDENCIES): Likewise.
42751
42752 * conf/i386-coreboot.rmk (bin_UTILITIES, grub_mkimage_SOURCES)
42753 (grub_mkimage_LDFLAGS, util/elf/grub-mkimage.c_DEPENDENCIES): Remove.
42754 * conf/powerpc-ieee1275.rmk: Likewise.
42755 * conf/i386-ieee1275.rmk: Likewise.
42756
42757 * kern/ieee1275/init.c: Include `<grub/cpu/kernel.h>'.
42758 * kern/i386/coreboot/init.c: Likewise.
42759
42760 * kern/i386/ieee1275/startup.S: Replace `<grub/machine/kernel.h>'
42761 with `<grub/cpu/kernel.h>'.
42762 (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Renamed
42763 to ...
42764 (GRUB_KERNEL_CPU_PREFIX, GRUB_KERNEL_CPU_DATA_END): ... this.
42765 * kern/i386/coreboot/startup.S: Likewise.
42766
42767 * include/grub/powerpc/ieee1275/kernel.h (GRUB_MOD_ALIGN)
42768 (GRUB_MOD_GAP): Remove.
42769 * include/grub/powerpc/kernel.h: New file.
42770 * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX)
42771 (GRUB_KERNEL_MACHINE_DATA_END): Remove.
42772 * include/grub/i386/kernel.h: New file.
42773 * include/grub/i386/coreboot/kernel.h (GRUB_MOD_ALIGN)
42774 (GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_PREFIX)
42775 (GRUB_KERNEL_MACHINE_DATA_END): Remove.
42776
42777 * util/ieee1275/grub-install.in (grub_mkimage): Initialize to use
42778 `grub-mkelfimage'.
42779 Use --directory when invoking grub_mkimage.
42780
42781 * util/elf/grub-mkimage.c: Include `<grub/cpu/kernel.h>'.
42782 (add_segments): Replace GRUB_KERNEL_MACHINE_DATA_END and
42783 GRUB_KERNEL_MACHINE_PREFIX with GRUB_KERNEL_CPU_DATA_END
42784 and GRUB_KERNEL_CPU_PREFIX.
42785
b86408f8 427862008-08-14 Felix Zielcke <fzielcke@z-51.de>
42787
d5e619ca 42788 * include/grub/err.h (grub_err_printf): New function prototype.
42789 * util/misc.c (grub_err_printf): New function.
42790 * kern/misc.c [! GRUB_UTIL] (grub_err_printf): New alias for
42791 grub_printf.
42792 * kern/err.c (grub_print_error): Use grub_err_printf.
b86408f8 42793
7161f0e0 427942008-08-13 Robert Millan <rmh@aybabtu.com>
42795
42796 * docs/grub.cfg: Remove `/dev/' prefix in GNU/Hurd boot entry.
42797
a1967522 427982008-08-13 Robert Millan <rmh@aybabtu.com>
42799
42800 * docs/grub.cfg: Use the native device name for the example GNU/Hurd
42801 boot entry.
42802
371458b5 428032008-08-12 Robert Millan <rmh@aybabtu.com>
42804
42805 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Move part
42806 of the relocation code from here ...
42807 (grub_multiboot): ... to here.
42808 (forward_relocator, backward_relocator): Move from here ...
42809 * kern/i386/loader.S (grub_multiboot_forward_relocator)
42810 (grub_multiboot_backward_relocator): ... to here.
42811 (grub_multiboot_real_boot): Use %edx for entry offset. Put Multiboot
42812 magic in %eax. Use %ebp for jumping (so %edx is not trashed).
42813 * include/grub/i386/loader.h (grub_multiboot_forward_relocator)
42814 (grub_multiboot_forward_relocator_end)
42815 (grub_multiboot_backward_relocator)
42816 (grub_multiboot_backward_relocator_end): New variables.
42817
05f9452b 428182008-08-12 Bean <bean123ch@gmail.com>
42819
42820 * disk/raid.c (grub_raid_read): Fix a bug in raid0 code.
42821
20024ab0 428222008-08-11 Robert Millan <rmh@aybabtu.com>
42823
42824 * kern/i386/linuxbios/startup.S: Move from here ...
42825 * kern/i386/coreboot/startup.S: ... to here.
42826
42827 * kern/i386/linuxbios/init.c: Move from here ...
42828 * kern/i386/coreboot/init.c: ... to here.
42829
42830 * kern/i386/linuxbios/table.c: Move from here ...
42831 * kern/i386/coreboot/mmap.c: ... to here.
42832
42833 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Update moved files.
42834
e352e9cd 428352008-08-11 Robert Millan <rmh@aybabtu.com>
42836
42837 * kern/device.c (grub_device_open): Do not handle grub_disk_open()
42838 errors. Leave it to the upper layer to handle them.
42839
2d05bc6a 428402008-08-09 Christian Franke <franke@computer.org>
42841
42842 * Makefile.in: Add `target_os' and `enable_grub_pe2elf'.
42843 * conf/common.rmk: Install `grub-pe2elf' only if requested.
42844 Install `grub.d/10_windows' only on Cygwin.
42845 * configure.ac: Add subst of `target_os'.
42846 Check `target_os' also before setting TARGET_OBJ2ELF.
42847 Add `--enable-grub-pe2elf'.
42848
042bd419 428492008-08-08 Robert Millan <rmh@aybabtu.com>
42850
42851 * kern/disk.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
42852 (grub_last_time): Change type to grub_uint64_t.
42853 (grub_disk_open): Migrate code from to using grub_get_time_ms().
42854 (grub_disk_close): Likewise.
42855
42856 * normal/menu.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
42857 (run_menu): Migrate code from to using grub_get_time_ms().
42858
42859 * util/misc.c (grub_get_time_ms): New function.
42860
7f280db5 428612008-08-08 Marco Gerards <marco@gnu.org>
42862
42863 * disk/ata.c (grub_ata_regget): Change return type to
42864 `grub_uint8_t'.
42865 (grub_ata_regget2): Likewise.
42866 (grub_ata_wait_status): New function.
42867 (grub_ata_wait_busy): Removed function, updated all users to use
42868 `grub_ata_wait_status'.
42869 (grub_ata_wait_drq): Likewise.
42870 (grub_ata_cmd): New function.
42871 (grub_ata_pio_read): Change return type to `grub_uint8_t'. Add
42872 error handling.
42873 (grub_ata_pio_write): Add error handling.
42874 (grub_atapi_identify): Likewise.
42875 (grub_atapi_packet): Use `grub_ata_cmd' and improve error
42876 handling.
42877 (grub_ata_identify): Use `grub_ata_cmd' and improve error
42878 handling. Actually use the detected registers. Reorder the
42879 detection logic such that it is easier to read.
42880 (grub_ata_pciinit): Do not assign the same ID to each controller.
42881 (grub_ata_setaddress): Use `grub_ata_cmd' and improve error
42882 handling.
42883 (grub_atapi_readsector): Check the result of `grub_ata_pio_read'.
42884
42885 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TIMEOUT'.
42886
1fbc5e66 428872008-08-08 Marco Gerards <marco@gnu.org>
42888
42889 * NEWS: Update.
42890
819ce6c0 428912008-08-07 Bean <bean123ch@gmail.com>
42892
42893 * include/grub/x86_64/pci.h: New file.
42894
5c41d44d 428952008-08-07 Christian Franke <franke@computer.org>
42896
42897 * kern/i386/pit.c (TIMER2_SPEAKER): New define.
42898 (TIMER2_GATE): Likewise.
42899 (grub_pit_wait): Add enable/disable of the timer2 gate
42900 bit of port 0x61. This fixes a possible infinite loop.
42901
5ebc275d 429022008-08-07 Bean <bean123ch@gmail.com>
42903
42904 * conf/x86_64-efi.rmk (kernel_mod_SOURCES): Add kern/time.c,
42905 kern/i386/tsc.c and kern/i386/pit.c.
42906
42907 * include/grub/i386/tsc.h (grub_cpu_is_cpuid_supported): Handle
42908 x86_64 platform.
42909
42910 * kern/i386/efi/init.c: Replace <grub/cpu/tsc.h> with
42911 <grub/i386/tsc.h>.
42912
42913 * kern/i386/pit.c: Replace <grub/cpu/io.h> with <grub/i386/io.h>.
42914
e383b3d0 429152008-08-07 Bean <bean123ch@gmail.com>
42916
42917 * conf/i386-efi.rmk (kernel_mod_SOURCES): Add kern/time.c.
42918
42919 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add kern/time.c,
42920
42921 * include/grub/i386/pit.h: Use macro KERNEL_CPU_PIT_HEADER to avoid
42922 multiple inclusion. Add #include <grub/types.h>.
42923
1cbb58ac 429242008-08-06 Christian Franke <franke@computer.org>
42925
42926 * conf/common.rmk: Build and install `10_windows'.
42927 * util/grub.d/10_windows.in: New script.
42928
337f5a1e 429292008-08-06 Pavel Roskin <proski@gnu.org>
42930
42931 * kern/i386/pit.c: Include `<grub/i386/pit.h>'.
42932
057bc4ac 429332008-08-06 Robert Millan <rmh@aybabtu.com>
42934
42935 * conf/i386-coreboot.rmk (kernel_elf_ASFLAGS): New variable.
42936 * kern/i386/tsc.c: Include `<grub/i386/pit.h>'.
42937
2b99f123 429382008-08-06 Bean <bean123ch@gmail.com>
42939
42940 * fs/i386/pc/pxe.c (grub_pxe_data): New member block_size.
42941 (grub_pxefs_fs_int): Remove dummy definition.
42942 (grub_pxefs_open): Use data->block_size to store the current block
42943 size setting.
42944 (grub_pxefs_read): Use block size stored in data->block_size. As the
42945 value of grub_pxe_blksize can be changed after the file is opened.
42946
9f0234cb 429472008-08-06 Bean <bean123ch@gmail.com>
42948
42949 * fs/i386/pc/pxe.c (curr_file): new variable.
42950 (grub_pxefs_open): Simply the handling of pxe file system. Don't
42951 require the dummy internal file system anymore.
42952 (grub_pxefs_read): Removed.
42953 (grub_pxefs_close): Likewise.
42954 (grub_pxefs_fs_int): Likewise.
42955 (grub_pxefs_read_int): Renamed to grub_pxefs_read. Reinitialize tftp
42956 connection when we switch file.
42957 (grub_pxefs_close_int): Renamed to grub_pxefs_close.
42958
a55d42e0 429592008-08-06 Robert Millan <rmh@aybabtu.com>
42960
42961 * conf/i386-coreboot.rmk (pkglib_MODULES): Add `reboot.mod' and
42962 `halt.mod'.
42963 (reboot_mod_SOURCES, reboot_mod_CFLAGS, reboot_mod_LDFLAGS)
42964 (halt_mod_SOURCES, halt_mod_CFLAGS, halt_mod_LDFLAGS): New variables.
42965
42966 * kern/i386/halt.c: New file.
42967 * kern/i386/reboot.c: Likewise.
42968 * include/grub/i386/reboot.h: Likewise.
42969 * include/grub/i386/halt.h: Likewise.
42970
42971 * commands/halt.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]:
42972 Include `<grub/cpu/halt.h>'.
42973 * commands/reboot.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]
42974 [! GRUB_MACHINE_PCBIOS]: Include `<grub/cpu/reboot.h>'.
42975
42976 * term/i386/pc/at_keyboard.c: Include `<grub/cpu/at_keyboard.h>'.
42977 (SHIFT_L, SHIFT_R, CTRL, ALT, CAPS_LOCK, KEYBOARD_REG_DATA)
42978 (KEYBOARD_REG_STATUS, KEYBOARD_COMMAND_ISREADY, KEYBOARD_COMMAND_READ)
42979 (KEYBOARD_COMMAND_WRITE, KEYBOARD_COMMAND_REBOOT)
42980 (KEYBOARD_SCANCODE_SET1, KEYBOARD_ISMAKE, KEYBOARD_ISREADY)
42981 (KEYBOARD_SCANCODE, OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): Move
42982 from here ...
42983 * include/grub/i386/at_keyboard.h: ... to here.
42984
24371d26 429852008-08-05 Robert Millan <rmh@aybabtu.com>
42986
42987 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pit.c'.
42988 * conf/i386-efi.rmk (kernel_mod_SOURCES): Likewise.
42989 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Likewise. Also add
42990 `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
42991 `kern/generic/millisleep.c'.
42992
42993 * kern/i386/tsc.c (calibrate_tsc): Rewrite using grub_pit_wait()
42994 instead of grub_get_rtc().
42995 (grub_tsc_init): Initialize `tsc_boot_time'.
42996
42997 * kern/i386/linuxbios/init.c (grub_millisleep): Remove stub.
42998 (grub_machine_init): Use grub_tsc_init() rather than
42999 installing an RTC-based handler via grub_install_get_time_ms().
43000
43001 * kern/i386/pit.c: New file.
43002 * include/grub/i386/pit.h: Likewise.
43003
9e7007b3 430042008-08-05 Bean <bean123ch@gmail.com>
43005
43006 * boot/i386/pc/pxeboot.S (_start): Use drive number 0x7F for pxe.
43007
43008 * conf/i386-pc.rmk (kernel_img_HEADERS): Add machine/pxe.h.
43009 (pkglib_MODULES): Add pxe.mod and pxecmd.mod.
43010 (pxe_mod_SOURCES): New macro.
43011 (pxe_mod_CFLAGS): Likewise.
43012 (pxe_mod_LDFLAGS): Likewise.
43013 (pxecmd_mod_SOURCES): Likewise.
43014 (pxecmd_mod_CFLAGS): Likewise.
43015 (pxecmd_mod_LDFLAGS): Likewise.
43016
43017 * kern/i386/pc/startup.S (grub_pxe_scan): New function.
43018 (grub_pxe_call): Likewise.
43019
43020 * include/grub/disk.h (grub_disk_dev_id): Add GRUB_DISK_DEVICE_PXE_ID.
43021
43022 * commands/i386/pc/pxecmd.c: New file.
43023
9f0234cb 43024 * fs/i386/pc/pxe.c: Likewise.
9e7007b3 43025
43026 * include/grub/i386/pc/pxe.h: Likewise.
43027
6977d49f 430282008-08-05 Bean <bean123ch@gmail.com>
43029
43030 * util/console.c (grub_console_cur_color): New variable.
43031 (grub_console_standard_color): Likewise.
43032 (grub_console_normal_color): Likewise.
43033 (grub_console_highlight_color): Likewise.
43034 (color_map): Likewise.
43035 (use_color): Likewise.
43036 (NUM_COLORS): New macro.
43037 (grub_ncurses_setcolorstate): Handle color properly.
43038 (grub_ncurses_setcolor): Don't change color here, just remember the
43039 settings, color will be set in grub_ncurses_setcolorstate.
43040 (grub_ncurses_getcolor): New function.
43041 (grub_ncurses_init): Initialize color pairs.
43042 (grub_ncurses_term): New member grub_ncurses_getcolor.
43043
9c2ff3ee 430442008-08-05 Colin D Bennett <colin@gibibit.com>
337f5a1e 43045
9c2ff3ee 43046 High resolution timer support. Implemented for x86 CPUs using TSC.
43047 Extracted generic grub_millisleep() so it's linked in only as needed.
43048 This requires a Pentium compatible CPU; if the RDTSC instruction is
43049 not supported, then it falls back on the generic grub_get_time_ms()
43050 implementation that uses the machine's RTC.
43051
43052 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/time.c',
43053 `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
43054 `kern/generic/millisleep.c'.
43055
43056 * conf/i386-efi.rmk (kernel_mod_SOURCES): Add `kern/i386/tsc.c',
43057 `kern/generic/rtc_get_time_ms.c' and `kern/generic/millisleep.c'.
43058
43059 * conf/x86_64-efi.rml (kernel_mod_SOURCES): Add
43060 `kern/generic/millisleep.c' and `kern/generic/rtc_get_time_ms.c'.
43061
43062 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
43063
43064 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
43065 `kern/generic/millisleep.c'.
43066
43067 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
43068
43069 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Add `kern/time.c'.
43070
43071 * kern/generic/rtc_get_time_ms.c: New file.
43072
43073 * kern/generic/millisleep.c: New file.
337f5a1e 43074
9c2ff3ee 43075 * kern/misc.c: Don't include
43076 <kern/time.h> anymore.
43077 (grub_millisleep_generic): Removed.
43078
43079 * commands/sleep.c (grub_interruptible_millisleep): Uses
43080 grub_get_time_ms() instead of grub_get_rtc().
43081
43082 * include/grub/i386/tsc.h (grub_get_tsc): New file. New inline
43083 function.
43084 (grub_cpu_is_cpuid_supported): New inline function.
43085 (grub_cpu_is_tsc_supported): New inline function.
43086 (grub_tsc_init): New function prototype.
43087 (grub_tsc_get_time_ms): New function prototype.
43088
43089 * kern/i386/tsc.c (grub_get_time_ms): New file.
43090
43091 * include/grub/time.h: Include <grub/types.h.
43092 (grub_millisleep_generic): Removed.
43093 (grub_get_time_ms): New prototype.
43094 (grub_install_get_time_ms): New prototype.
43095 (grub_rtc_get_time_ms): New prototype.
43096
43097 * kern/time.c (grub_get_time_ms): New function.
43098 (grub_install_get_time_ms): New function.
43099
43100 * kern/i386/efi/init.c: Include <grub/cpu/tsc.h>. Don't include
43101 <grub/time.h> anymore.
43102 (grub_millisleep): Removed.
43103 (grub_machine_init): Call grub_tsc_init.
43104
43105 * kern/i386/linuxbios/init.c (grub_machine_init): Install the RTC
43106 get_time_ms() implementation.
43107
43108 * kern/sparc64/ieee1275/init.c (grub_millisleep): Removed.
43109 (ieee1275_get_time_ms): New function.
43110 (grub_machine_init): Install get_time_ms() implementation.
43111
43112 * kern/i386/pc/init.c: Include <grub/cpu/tsc.h>.
43113 (grub_machine_init): Call grub_tsc_init().
43114 (grub_millisleep): Removed.
bf06a93f 43115
9c2ff3ee 43116 * kern/ieee1275/init.c (grub_millisleep): Removed.
43117 (grub_machine_init): Install ieee1275_get_time_ms()
43118 implementation.
43119 (ieee1275_get_time_ms): New function.
43120 (grub_get_rtc): Now calls ieee1275_get_time_ms(), which does the
43121 real work.
43122
9ec92aaf 431232008-08-05 Marco Gerards <marco@gnu.org>
43124
43125 * disk/ata.c: Include <grub/pci.h>.
43126 (enum grub_ata_commands): Add `GRUB_ATA_CMD_EXEC_DEV_DIAGNOSTICS'.
43127 (grub_ata_initialize): Rewritten.
43128 (grub_ata_device_initialize): New function.
43129
8d23f507 431302008-08-04 Pavel Roskin <proski@gnu.org>
43131
43132 * kern/main.c: Include grub/mm.h.
43133
5e15ee3d 431342008-08-04 Robert Millan <rmh@aybabtu.com>
43135
43136 * conf/i386-coreboot.rmk (COMMON_ASFLAGS, COMMON_CFLAGS)
43137 (COMMON_LDFLAGS): Harmonize with i386-pc version (fixes a code
43138 corruption problem).
43139
a9053f8f 431402008-08-04 Robert Millan <rmh@aybabtu.com>
43141
43142 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Fix misc
43143 warnings introduced in my last commit.
43144
dd19c7d7 431452008-08-03 Robert Millan <rmh@aybabtu.com>
43146
43147 Make PCI available on all i386 architectures.
43148
43149 * include/grub/i386/pc/pci.h: Move from here ...
43150 * include/grub/i386/pci.h: ... to here.
43151
43152 * include/grub/i386/pc/pci.h: Remove.
43153 * include/grub/i386/efi/pci.h: Remove.
43154 * include/grub/x86_64/efi/pci.h: Remove.
43155
43156 * include/grub/pci.h: Replace `<grub/machine/pci.h>' with
43157 `<grub/cpu/pci.h>'.
43158
43159 * conf/i386-coreboot.rmk (pkglib_MODULES): Add `pci' and `lspci'.
43160 (pci_mod_SOURCES, pci_mod_CFLAGS, pci_mod_LDFLAGS, lspci_mod_SOURCES)
43161 (lspci_mod_CFLAGS, lspci_mod_LDFLAGS): New variables.
43162
43163 * conf/i386-ieee1275.rmk: Likewise.
43164
e14a6184 431652008-08-03 Robert Millan <rmh@aybabtu.com>
43166
43167 * term/i386/pc/vga_text.c (CRTC_CURSOR_DISABLE): New macro.
43168 (grub_console_setcursor): Make it possible to set cursor off.
43169
52768e37 431702008-08-03 Robert Millan <rmh@aybabtu.com>
43171
43172 * util/grub.d/00_header.in: Be platform-agnostic. Probe for existence
43173 of modules instead of assuming which platform provides what.
43174 * util/update-grub.in: Likewise.
43175
2d52f57f 431762008-08-03 Robert Millan <rmh@aybabtu.com>
43177
43178 * kern/i386/pc/init.c (make_install_device): Check for `grub_prefix'
43179 instead of `grub_install_dos_part' to determine whether a drive needs
43180 to be prepended to prefix (`grub_install_dos_part' is not reliable,
825aa57a 43181 because it can be overridden when loading GRUB via Multiboot).
2d52f57f 43182
2a5cd121 431832008-08-02 Robert Millan <rmh@aybabtu.com>
43184
43185 * util/i386/pc/grub-install.in: Remove trailing slash from prefix.
43186
93808428 431872008-08-02 Robert Millan <rmh@aybabtu.com>
43188
43189 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Add a pair
43190 of informational grub_dprintf() calls.
43191
3bd0a12a 431922008-08-02 Robert Millan <rmh@aybabtu.com>
43193
43194 * disk/memdisk.c (memdisk_size): Don't initialize.
43195 (GRUB_MOD_INIT(memdisk)): Find memdisk using grub_module_iterate().
43196
43197 * include/grub/i386/pc/kernel.h
43198 (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): Remove macro.
43199 (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Shift.
43200 (grub_memdisk_image_size, grub_arch_memdisk_addr)
43201 (grub_arch_memdisk_size): Remove.
43202
43203 * include/grub/kernel.h (struct grub_module_header): Remove `offset'
43204 field (was only used to transfer a constant). Add `type' field to
43205 support multiple module types.
43206 (grub_module_iterate): New function.
43207
43208 * kern/device.c (grub_device_open): Do not hide error messages
43209 when grub_disk_open() fails. Use grub_print_error() instead.
43210
43211 * kern/i386/pc/init.c (grub_arch_modules_addr)
43212 (grub_arch_memdisk_size): Remove functions.
43213 (grub_arch_modules_addr): Return the module address in high memory
43214 (now that it isn't copied anymore).
43215
43216 * kern/i386/pc/startup.S (grub_memdisk_image_size): Remove variable.
43217 (codestart): Don't add grub_memdisk_image_size to %ecx in LZMA
43218 decompression routine (grub_total_module_size already includes that
43219 now). Don't copy modules back to low memory.
43220
43221 * kern/main.c: Include `<grub/mm.h>'.
43222 (grub_load_modules): Split out (and use) ...
43223 (grub_module_iterate): ... this function, which iterates through
43224 module objects and runs a hook.
43225 Comment out grub_mm_init_region() call, as it would cause non-ELF
43226 modules to be overwritten.
43227
43228 * util/i386/pc/grub-mkimage.c (generate_image): Instead of appending
43229 the memdisk image in its own region, make it part of the module list.
43230 * util/elf/grub-mkimage.c (options): Add "memdisk"|'m' option.
43231 (main): Parse --memdisk|-m option, and pass user-provided path as
43232 parameter to generate_image().
43233 (add_segments): Pass `memdisk_path' down to load_modules().
43234 (load_modules): Embed memdisk image in module section when requested.
43235 * util/i386/efi/grub-mkimage.c (make_mods_section): Initialize
43236 `header.type' instead of `header.offset'.
43237
43238 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add `memdisk.mod'.
43239 (memdisk_mod_SOURCES, memdisk_mod_CFLAGS)
43240 (memdisk_mod_LDFLAGS): New variables.
43241 * conf/i386-coreboot.rmk: Likewise.
43242 * conf/i386-ieee1275.rmk: Likewise.
43243
a927cc73 432442008-08-02 Robert Millan <rmh@aybabtu.com>
43245
43246 * loader/i386/pc/multiboot.c (playground, forward_relocator)
43247 (backward_relocator): New variables. Used to allocate and relocate
43248 the payload, respectively.
43249 (grub_multiboot_load_elf32): Load into heap instead of requested
825aa57a 43250 address, install the appropriate relocator code in each bound of
a927cc73 43251 the payload, and set the entry point such that
43252 grub_multiboot_real_boot() will jump to one of them.
43253
43254 * kern/i386/loader.S (grub_multiboot_payload_size)
43255 (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
43256 (grub_multiboot_payload_entry_offset): New variables.
43257 (grub_multiboot_real_boot): Set cpu context to what the relocator
43258 expects, and jump to the relocator instead of the payload.
43259
43260 * include/grub/i386/loader.h (grub_multiboot_payload_size)
43261 (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
43262 (grub_multiboot_payload_entry_offset): Export.
43263
b15d8a0c 432642008-08-01 Bean <bean123ch@gmail.com>
43265
43266 * normal/menu_entry.c (editor_getline): Don't return the original
43267 string as result, as it will be released by lexer once it has done
43268 using it.
43269
cdfb3d22 432702008-08-01 Robert Millan <rmh@aybabtu.com>
43271
43272 * util/grub.d/10_linux.in: Use prepare_grub_to_access_device() from
43273 within menuentries, not before them.
43274 util/grub.d/10_hurd.in: Likewise.
43275
9175e93d 432762008-08-01 Bean <bean123ch@gmail.com>
43277
43278 * conf/common.rmk (pkglib_MODULES): Add bufio.mod.
43279 (bufio_mod_SOURCES): New macro.
43280 (bufio_mod_CFLAGS): Likewise.
43281 (bufio_mod_LDFLAGS): Likewise.
43282
43283 * include/grub/bufio.h: New file.
43284
43285 * io/bufio.c: Likewise.
43286
43287 * video/png.c: Replace <grub/file.h> with <grub/bufio.h>.
43288 (grub_video_reader_png): Use grub_buffile_open to open file.
43289
43290 * video/jpeg.c: Replace <grub/file.h> with <grub/bufio.h>.
43291 (grub_video_reader_jpeg): Use grub_buffile_open to open file.
43292
43293 * video/tga.c: Replace <grub/file.h> with <grub/bufio.h>.
43294 (grub_video_reader_tga): Use grub_buffile_open to open file.
43295
43296 * font/manager.c: Include <grub/bufio.h>.
43297 (add_font): Use grub_buffile_open to open file.
43298
3d8383e7 432992008-07-31 Robert Millan <rmh@aybabtu.com>
43300
43301 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): When loading
43302 ELF segments, use a macro for arbitrarily accessing any of them instead
43303 of preparing a pointer that allows access to one at a time.
43304 (grub_multiboot_load_elf64): Likewise.
43305
16e641b6 433062008-07-31 Bean <bean123ch@gmail.com>
43307
43308 * boot/i386/pc/lnxboot.S (real_code_2): Replace 0x50 with
43309 GRUB_KERNEL_MACHINE_DATA_END.
43310
59198b72 433112008-07-30 Robert Millan <rmh@aybabtu.com>
43312
43313 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_DATA_END):
43314 Increase from 0x50 to 0x60.
43315 * util/i386/pc/grub-install.in: Detect cross-disk installs, and
43316 use UUIDs to identify the root drive for them. If that's not
43317 possible, abort.
43318 * util/i386/pc/grub-setup.c (setup): Do not special-case, or even
43319 check, for cross-disk installs.
43320
ae88bca3 433212008-07-30 Robert Millan <rmh@aybabtu.com>
43322
43323 * kern/ieee1275/init.c (grub_machine_set_prefix): If `grub_prefix'
43324 is non-empty, use it to set the `prefix' environment variable instead
43325 of the usual approach.
43326 * kern/i386/linuxbios/init.c (make_install_device): Remove function.
43327 (grub_machine_set_prefix): Use `grub_prefix' to set the `prefix'
43328 environment variable instead of dummy make_install_device().
43329
43330 * kern/i386/ieee1275/startup.S: Include `<grub/machine/kernel.h>'.
43331 (start): Insert a data section, with `grub_prefix' variable.
825aa57a 43332 * kern/i386/linuxbios/startup.S: Likewise.
ae88bca3 43333
43334 * include/grub/powerpc/ieee1275/kernel.h [!ASM_FILE] (grub_prefix):
43335 New variable reference.
43336 * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX):
43337 New macro. Defines offset of `grub_prefix' within startup.S (relative
43338 to `start').
43339 (GRUB_KERNEL_MACHINE_DATA_END): New macro. Defines the end of data
43340 section within startup.S (relative to `start').
43341 * include/grub/i386/coreboot/kernel.h: Likewise.
43342
43343 * util/elf/grub-mkimage.c (add_segments): Receive `prefix' parameter.
43344 Overwrite grub_prefix with its contents, at the beginning of the
43345 first segment.
43346 (main): Understand -p|--prefix.
43347
14f41dd1 433482008-07-30 Robert Millan <rmh@aybabtu.com>
43349
43350 * util/grub.d/10_hurd.in: Source ${libdir}/grub/update-grub_lib.
43351
4ca049a3 433522008-07-30 Robert Millan <rmh@aybabtu.com>
43353
43354 * term/i386/pc/vga_text.c (grub_console_cls): Use
43355 grub_console_gotoxy() to go back to beginning of the screen.
43356 Found by Patrick Georgi <patrick.georgi@coresystems.de>
43357
2921d337 433582008-07-29 Christian Franke <franke@computer.org>
43359
43360 * util/update-grub_lib.in (make_system_path_relative_to_its_root):
43361 Add conversion of emulated mount points on Cygwin.
43362
b609876d 433632008-07-29 Christian Franke <franke@computer.org>
43364
43365 * util/update-grub.in: Add a check for admin
43366 group on Cygwin.
43367 Remove old `grub.cfg.new' before creation.
43368 Add `-f' to `mv' to handle the different filesystem
43369 semantics of Windows.
43370
e93e4679 433712008-07-29 Bean <bean123ch@gmail.com>
43372
43373 * normal/main.c (get_line): Fix buffer overflow bug.
43374
41694fd0 433752008-07-28 Robert Millan <rmh@aybabtu.com>
43376
43377 * partmap/apple.c (GRUB_APPLE_HEADER_MAGIC): New macro.
43378 (struct grub_apple_header): New struct. Describes the layout of
43379 the partmap header.
43380 (apple_partition_map_iterate): Check the header magic as well as the
43381 partition magic (which was already being checked).
43382
cfd0b4e6 433832008-07-28 Pavel Roskin <proski@gnu.org>
43384
43385 * genmk.rb: Add a warning to the beginning of the output that
43386 it's a generated file and should not be edited.
43387
93cce016 433882008-07-28 Robert Millan <rmh@aybabtu.com>
43389
43390 * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
43391 with the same number are found, just use issue a warning with
43392 grub_dprintf(), as this error has been reported to be non-fatal.
c298def0 43393
cd1df915 433942008-07-27 Robert Millan <rmh@aybabtu.com>
43395
43396 * disk/ata.c (grub_ata_dumpinfo): Use grub_dprintf() for debugging
43397 information.
43398
b70a8427 433992008-07-27 Bean <bean123ch@gmail.com>
43400
43401 * fs/fat.c (GRUB_FAT_MAXFILE): New constant.
43402 (grub_fat_find_dir): Ignore case when comparing filename.
43403
8f5e379f 434042008-07-27 Bean <bean123ch@gmail.com>
43405
43406 * fs/xfs.c (grub_xfs_dir_header): Change field i8count back to
43407 smallino, as it's more descriptive, and i8count can be confused with
43408 the other field count.
43409 (grub_xfs_iterate_dir): Adjust grub_xfs_dir_entry pointer for small
43410 inode type.
43411
a85cd5a0 434122008-07-27 Bean <bean123ch@gmail.com>
43413
43414 * commands/crc.c: New file.
43415
43416 * lib/crc.c: Likewise.
43417
43418 * include/grub/lib/crc.h: Likewise.
43419
43420 * util/grub-fstest.c: grub/hexdump.h => grub/lib/hexdump.h.
43421
43422 * commands/hexdump.c: grub/hexdump.h => grub/lib/hexdump.h.
43423 (hexdump): Move this function to ...
43424
43425 * lib/hexdump.c: ... here.
43426
43427 * include/grub/hexdump.h: Renamed to ...
43428
43429 * include/grub/lib/hexdump.h: ... this.
43430
43431 * commands/loadenv.c: grub/envblk.h => grub/lib/envblk.h
43432
43433 * util/grub-editenv.c: Likewise.
43434
43435 * include/envblk.h: Renamed to ...
43436
43437 * include/lib/envblk.h: ... this.
43438
43439 * util/envblk.c: Renamed to ...
43440
43441 * lib/envblk.c: ... this.
43442
43443 * conf/common.rmk (grub_fstest_SOURCES): commands/hexdump.c =>
43444 lib/hexdump.c.
43445 (grub_editenv_SOURCES): util/envblk.c => lib/envblk.c
43446 (pkglib_MODULES): Add crc.mod.
43447 (hexdump_mod_SOURCES): Add lib/hexdump.c.
43448 (loadenv_mod_SOURCES): util/envblk.c => lib/envblk.c.
43449 (crc_mod_SOURCES): New macro.
43450 (crc_mod_CFLAGS): Likewise.
43451 (crc_mod_LDFLAGS): Likewise.
43452
43453 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add lib/hexdump.c.
43454
43455 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
43456
43457 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
43458
43459 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
43460
43461 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
43462
c298def0 434632008-07-27 Felix Zielcke <fzielcke@z-51.de>
8749e9e5 43464
43465 * commands/help.c: Include <grub/term.h>.
43466 (TERM_WIDTH): Removed. Updated all users.
43467
cc349fb3 434682008-07-27 Pavel Roskin <proski@gnu.org>
43469
43470 * util/getroot.c (find_root_device): Rephrase a comment to avoid
43471 spurious warnings about a comment within a comment.
43472
9051607e 434732008-07-25 Robert Millan <rmh@aybabtu.com>
43474
43475 * util/getroot.c (find_root_device): Skip devices that match
43476 /dev/dm-[0-9]. This lets the real device be found for any type of
43477 abstraction (LVM, EVMS, RAID..).
43478 (grub_guess_root_device): Do not traverse /dev/mapper (for LVM)
43479 and /dev/evms (for EVMS) before traversing /dev. If a /dev/dm-[0-9]
43480 device is found first, find_root_device() will now skip it.
43481
01453bfc 434822008-07-24 Pavel Roskin <proski@gnu.org>
43483
43484 * include/grub/types.h: Use __builtin_bswap32() and
43485 __builtin_bswap64() with gcc 4.3 and newer.
43486
6af9849f 434872008-07-24 Christian Franke <franke@computer.org>
43488
3a0fa256 43489 * util/i386/pc/grub-install.in: If `--debug' is specified,
43490 pass `--verbose' to grub-setup.
43491 Abort script if make_system_path_relative_to_its_root() fails.
43492
7810e747 434932008-07-24 Bean <bean123ch@gmail.com>
43494
43495 * configure.ac: Fixed a bug caused by the previous cygwin patch,
43496 variable `target_platform' should be `platform'.
43497
42290e17 434982008-07-24 Bean <bean123ch@gmail.com>
43499
51cc5193 43500 * video/reader/png.c (DEFLATE_HLIT_MAX): Change value.
42290e17 43501 (grub_png_init_fixed_block): New function.
43502 (grub_png_decode_image_data): Handle fixed huffman code compression.
43503
2a8a80e4 435042008-07-24 Bean <bean123ch@gmail.com>
43505
43506 * common.rmk (bin_UTILITIES): Add grub-pe2elf.
43507 (grub_pe2elf_SOURCES): New macro.
43508 (CLEANFILES): Add grub-pe2elf.
43509
43510 * include/grub/efi/pe32.h (GRUB_PE32_SCN_ALIGN_1BYTES): New constant.
43511 (GRUB_PE32_SCN_ALIGN_2BYTES): Likewise.
43512 (GRUB_PE32_SCN_ALIGN_4BYTES): Likewise.
43513 (GRUB_PE32_SCN_ALIGN_8BYTES): Likewise.
43514 (GRUB_PE32_SCN_ALIGN_16BYTES): Likewise.
43515 (GRUB_PE32_SCN_ALIGN_32BYTES): Likewise.
43516 (GRUB_PE32_SCN_ALIGN_64BYTES): Likewise.
43517 (GRUB_PE32_SCN_ALIGN_SHIFT): Likewise.
43518 (GRUB_PE32_SCN_ALIGN_MASK): Likewise.
43519 (GRUB_PE32_SYM_CLASS_EXTERNAL): Likewise.
43520 (GRUB_PE32_SYM_CLASS_STATIC): Likewise.
43521 (GRUB_PE32_SYM_CLASS_FILE): Likewise.
43522 (GRUB_PE32_DT_FUNCTION): Likewise.
43523 (GRUB_PE32_REL_I386_DIR32): Likewise.
43524 (GRUB_PE32_REL_I386_REL32): Likewise.
43525 (grub_pe32_symbol): New structure.
43526 (grub_pe32_reloc): Likewise.
43527
43528 * util/grub-pe2elf.c: New file.
43529
43530 * configure.ac: Set TARGET_OBJ2ELF if host os is cygwin. Don't test for
43531 start symbol in non pc platform.
43532
43533 * genmk.rb: Use TARGET_OBJ2ELF to convert native object format to elf.
43534
43535 The following patches are from Christian Franke.
43536
43537 * include/grub/dl.h: Remove .previous, gas supports this only
43538 for ELF format.
43539
43540 * include/grub/symbol.h [__CYGWIN__] (#define FUNCTION/VARIABLE):
43541 Remove .type, gas supports this only for ELF format.
43542
43543 * kern/dl.c (grub_dl_resolve_dependencies): Add check for trailing
43544 nullbytes in symbol table. This fixes an infinite loop if table is
43545 zero filled.
43546
43547 * Makefile.in: Add autoconf replacements TARGET_IMG_LDSCRIPT,
43548 TARGET_IMG_LDFLAGS and EXEEXT.
43549
43550 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Replace -Wl,-N by
43551 TARGET_IMG_LDFLAGS_AC.
43552 (grub_CHECK_STACK_ARG_PROBE): New function.
43553
43554 * conf/i386-pc.rmk: Replace -Wl,-N by TARGET_IMG_LDFLAGS.
43555
43556 * conf/i386-pc-cygwin-ld-img.sc: New linker script.
43557
43558 * configure.ac: Add check for linker script "conf/${target}-img-ld.c"
43559 to set TARGET_IMG_LD* accordingly.
43560 Add check for Cygwin to set TARGET_MOD_OBJCOPY accordingly.
43561 Add call to grub_CHECK_STACK_ARG_PROBE.
43562 Use TARGET_IMG_LDFLAGS to check start, bss_start, end symbols.
43563
43564 * genkernsyms.sh.in: Handle HAVE_ASM_USCORE case.
43565
43566 * genmk.rb: Add EXEEXT to CLEANFILES.
43567
12ccdb75 435682008-07-23 Robert Millan <rmh@aybabtu.com>
43569
43570 * Makefile.in (UNICODE_ARROWS, UNICODE_LINES): New variables (they
43571 define the codes for arrows and lines used for the menu).
43572 (ascii.pff): Generate fonts for $(UNICODE_ARROWS) and $(UNICODE_LINES)
43573 as well.
43574
43575 * util/update-grub_lib.in (font_path): Prefer ascii.pff over complete
43576 fonts, because the latter are too slow.
43577
18eeaf04 435782008-07-21 Bean <bean123ch@gmail.com>
43579
43580 * kern/i386/pc/startup.S (gate_a20_try_bios): Change test order for
43581 a20. Run keyboard test last, as it will cause macbook to halt.
43582
b095e2ad 435832008-07-18 Pavel Roskin <proski@gnu.org>
43584
43585 * kern/dl.c: Go back to using GRUB_CPU_SIZEOF_VOID_P. We cannot
43586 load foreign architecture modules correctly anyway. Keep
43587 support for loading host architecture modules, whether we
43588 compile them or not.
43589
737feb35 435902008-07-17 Pavel Roskin <proski@gnu.org>
43591
3f4ce737 43592 * configure.ac: Use -m32 or -m64 regardless of whether we had to
43593 change target_cpu. The compiler default can mismatch target_cpu
43594 in any case.
43595
4ad2d049 43596 * disk/efi/efidisk.c: Fix format warnings on x86_64.
43597 * kern/efi/efi.c: Likewise.
43598
f6130a12 43599 * aclocal.m4 (grub_PROG_TARGET_CC): New macro. Check if the
43600 target compiler is functional.
43601 * configure.ac: Call grub_PROG_TARGET_CC once all target flags
43602 are set up.
43603
58393a2d 43604 * configure.ac: Default to efi platform for x86_64-apple. Allow
43605 powerpc64 CPU, default to ieee1275 platform for it. Split CPU
43606 adjustments from the rest, only do them if target is not
43607 explicitly given. Merge other adjustments with the final sanity
43608 check. Remove an extraneous check for supported CPU. Be
43609 specific which CPU and which platform is not supported.
43610
737feb35 43611 * configure.ac: Default to pc platform for x86_64.
43612
546f966a 436132008-07-17 Robert Millan <rmh@aybabtu.com>
43614
43615 Partial LinuxBIOS -> Coreboot rename.
43616
43617 * conf/i386-linuxbios.rmk: Renamed to ...
43618 * conf/i386-coreboot.rmk: ... this.
43619 * Makefile.in (RMKFILES): s/i386-linuxbios.rmk/i386-coreboot.rmk/g.
43620 * configure.ac: Accept "coreboot" as input platform (but maintain
43621 compatibility with "linuxbios").
43622 * include/grub/i386/linuxbios: Renamed to ...
43623 * include/grub/i386/coreboot: ... this.
43624
20011694 436252008-07-17 Bean <bean123ch@gmail.com>
43626
43627 * conf/i386/efi.rmk (pkglib_MODULES): add pci.mod and lspci.mod.
c11f6d16 43628 (appleldr_mod_SOURCE): New variable.
20011694 43629 (appleldr_mod_CFLAGS): Likewise.
43630 (appleldr_mod_LDFLAGS): Likewise.
43631 (pci_mod_SOURCES): Likewise.
43632 (pci_mod_CFLAGS): Likewise.
43633 (pci_mod_LDFLAGS): Likewise.
43634 (lspci_mod_SOURCES): Likewise.
43635 (lspci_mod_CFLAGS): Likewise.
43636 (lspci_mod_LDFLAGS): Likewise.
43637
43638 * conf/x86_64-efi.rmk: New file.
43639
43640 * disk/efi/efidisk.c (grub_efidisk_read): Wrap efi calls with efi_call_N
43641 macro.
43642 (grub_efidisk_write): Likewise.
43643
43644 * include/efi/api.h (efi_call_0): New macro.
43645 (efi_call_1): Likewise.
43646 (efi_call_2): Likewise.
43647 (efi_call_3): Likewise.
43648 (efi_call_4): Likewise.
43649 (efi_call_5): Likewise.
43650 (efi_call_6): Likewise.
43651
43652 * include/grub/efi/chainloader.h (grub_chainloader_cmd): Rename to
43653 grub_rescue_cmd_chainloader.
43654
43655 * include/grub/efi/pe32.h (GRUB_PE32_MACHINE_X86_64): New macro.
43656 (grub_pe32_optional_header): Change some fields based on i386 or
43657 x86_64 platform.
43658 (GRUB_PE32_PE32_MAGIC): Likewise.
43659
43660 * include/grub/efi/uga_draw.h: New file.
43661
43662 * include/grub/elf.h (STN_ABS): New constant.
43663 (R_X86_64_NONE): Relocation constant for x86_64.
43664 (R_X86_64_64): Likewise.
43665 (R_X86_64_PC32): Likewise.
43666 (R_X86_64_GOT32): Likewise.
43667 (R_X86_64_PLT32): Likewise.
43668 (R_X86_64_COPY): Likewise.
43669 (R_X86_64_GLOB_DAT): Likewise.
43670 (R_X86_64_JUMP_SLOT): Likewise.
43671 (R_X86_64_RELATIVE): Likewise.
43672 (R_X86_64_GOTPCREL): Likewise.
43673 (R_X86_64_32): Likewise.
43674 (R_X86_64_32S): Likewise.
43675 (R_X86_64_16): Likewise.
43676 (R_X86_64_PC16): Likewise.
43677 (R_X86_64_8): Likewise.
43678 (R_X86_64_PC8): Likewise.
43679
43680 * include/grub/i386/efi/pci.h: New file.
43681
43682 * include/grub/i386/linux.h (GRUB_LINUX_EFI_SIGNATURE):
43683 Change it value based on platform.
43684 (GRUB_LINUX_EFI_SIGNATURE_0204): New constant.
43685 (GRUB_E820_RAM): Likewise.
43686 (GRUB_E820_RESERVED): Likewise.
43687 (GRUB_E820_ACPI): Likewise.
43688 (GRUB_E820_NVS): Likewise.
43689 (GRUB_E820_EXEC_CODE): Likewise.
43690 (GRUB_E820_MAX_ENTRY): Likewise.
43691 (grub_e820_mmap): New structure.
43692 (linux_kernel_header): Change the efi field according to different
43693 kernel version, also field from linux_kernel_header.
43694
43695 * include/grub/kernel.h (grub_module_info): Add padding for x86_64.
43696
43697 * include/grub/pci.h (GRUB_PCI_ADDR_SPACE_MASK): New constant.
43698 (GRUB_PCI_ADDR_SPACE_MEMORY): Likewise.
43699 (GRUB_PCI_ADDR_SPACE_IO): Likewise.
43700 (GRUB_PCI_ADDR_MEM_TYPE_MASK): Likewise.
43701 (GRUB_PCI_ADDR_MEM_TYPE_32): Likewise.
43702 (GRUB_PCI_ADDR_MEM_TYPE_1M): Likewise.
43703 (GRUB_PCI_ADDR_MEM_TYPE_64): Likewise.
43704 (GRUB_PCI_ADDR_MEM_PREFETCH): Likewise.
43705 (GRUB_PCI_ADDR_MEM_MASK): Likewise.
43706 (GRUB_PCI_ADDR_IO_MASK): Likewise.
43707
43708 * include/grub/x86_64/efi/kernel.h: New file.
43709
43710 * include/grub/x86_64/efi/loader.h: Likewise.
43711
43712 * include/grub/x86_64/efi/machine.h: Likewise.
43713
43714 * include/grub/x86_64/efi/pci.h: Likewise.
43715
43716 * include/grub/x86_64/efi/time.h: Likewise.
43717
43718 * include/grub/x86_64/linux.h: Likewise.
43719
43720 * include/grub/x86_64/setjmp.h: Likewise.
43721
43722 * include/grub/x86_64/time.h: Likewise.
43723
43724 * include/grub/x86_64/types.h: Likewise.
43725
43726 * kern/dl.c (GRUB_CPU_SIZEOF_VOID_P): Changed to
43727 GRUB_TARGET_SIZEOF_VOID_P.
43728
43729 * kern/efi/efi.c (grub_efi_locate_protocol): Wrap efi calls.
43730 (grub_efi_locate_handle): Likewise.
43731 (grub_efi_open_protocol): Likewise.
43732 (grub_efi_set_text_mode): Likewise.
43733 (grub_efi_stall): Likewise.
43734 (grub_exit): Likewise.
43735 (grub_reboot): Likewise.
43736 (grub_halt): Likewise.
43737 (grub_efi_exit_boot_services): Likewise.
43738 (grub_get_rtc): Likewise.
43739
43740 * kern/efi/mm.c (MEMORY_MAP_SIZE): Change to 0x3000 for new models.
43741 (GRUB_CPU_SIZEOF_VOID_P): Changed to GRUB_TARGET_SIZEOF_VOID_P.
43742 (grub_efi_allocate_pages): Wrap efi calls.
43743 (grub_efi_free_pages): Wrap efi calls.
43744 (grub_efi_get_memory_map): Wrap efi calls.
43745
43746 * kern/x86_64/dl.c: New file.
43747
43748 * kern/x86_64/efi/callwrap.S: Likewise.
43749
43750 * kern/x86_64/efi/startup.S: Likewise.
43751
43752 * loader/efi/appleloader.c: Likewise.
43753
43754 * loader/efi/chainloader.c (cmdline): New variable.
43755 (grub_chainloader_unload): Wrap efi calls.
43756 (grub_chainloader_boot): Likewise.
43757 (grub_rescue_cmd_chainloader): Wrap efi calls, handle
43758 command line.
43759
43760 * loader/efi/chainloader_normal.c (chainloader_command):
43761 Change grub_chainloader_cmd to grub_rescue_cmd_chainloader, pass
43762 command line.
43763
43764 * loader/i386/efi/linux.c (allocate_pages): Change allocation
43765 method.
43766 (grub_e820_add_region): New function.
43767 (grub_linux_boot): Construct e820 map from efi map, handle x86_64
43768 booting.
43769 (grub_find_video_card): New function.
43770 (grub_linux_setup_video): New function.
43771 (grub_rescue_cmd_linux): Probe for video information.
43772
43773 * normal/x86_64/setjmp.S: New file.
43774
43775 * term/efi/console.c (map_char): New function.
43776 (grub_console_putchar): Map unicode char.
43777 (grub_console_checkkey): Wrap efi calls.
43778 (grub_console_getkey): Likewise.
43779 (grub_console_getwh): Likewise.
43780 (grub_console_gotoxy): Likewise.
43781 (grub_console_cls): Likewise.
43782 (grub_console_setcolorstate): Likewise.
43783 (grub_console_setcursor): Likewise.
43784
43785 * util/i386/efi/grub-mkimage.c: Add support for x86_64.
43786
59652a20 437872008-07-16 Pavel Roskin <proski@gnu.org>
43788
ef294055 43789 * loader/i386/efi/linux.c (allocate_pages): Fix warnings in
43790 format strings.
43791
59652a20 43792 * util/i386/efi/grub-mkimage.c (get_target_address): Return a
43793 pointer, not an integer. This fixes a warning and prevents
43794 precision loss on 64-bit systems.
43795 (relocate_addresses): Remove unneeded cast.
43796
afc3b5d7 437972008-07-15 Pavel Roskin <proski@gnu.org>
43798
506b2b3e 43799 * kern/i386/ieee1275/init.c: Include grub/cache.h.
43800
62ead89c 43801 * term/ieee1275/ofconsole.c: Disable code unused on i386.
43802
c4cd51d7 43803 * kern/ieee1275/ieee1275.c (grub_ieee1275_get_integer_property):
43804 Fix comparison between signed and unsigned.
43805
0d3d8f28 43806 * include/grub/i386/ieee1275/console.h: Declare
43807 grub_console_init() and grub_console_fini().
43808
8804b286 43809 * loader/i386/ieee1275/linux.c (grub_set_bootpath): Remove.
43810 It's empty and unused.
43811
ee01cf35 43812 * fs/ext2.c (grub_ext2_read_block): Initialize blknr in the
43813 beginning to avoid warnings with some compilers.
43814
afc3b5d7 43815 * loader/ieee1275/multiboot2.c: Include grub/machine/loader.h.
43816 [__i386__] (grub_mb2_arch_boot): Avoid unnecessary cast.
43817
e4e8eaa5 438182008-07-14 Pavel Roskin <proski@gnu.org>
43819
407aceb4 43820 * kern/env.c (grub_register_variable_hook): Don't copy empty
43821 string, it leaks memory. Pass "" to grub_env_set(), it should
43822 handle constant strings.
43823
e4e8eaa5 43824 * commands/blocklist.c (grub_cmd_blocklist): Fix format warning.
43825 * commands/cmp.c (grub_cmd_cmp): Likewise.
43826 * kern/dl.c (grub_dl_flush_cache): Likewise.
43827 (grub_dl_load_core): Likewise.
43828 * kern/elf.c (grub_elf32_load_phdrs): Likewise.
43829 (grub_elf64_load_phdrs): Likewise.
43830
d4e2dad3 438312008-07-13 Pavel Roskin <proski@gnu.org>
43832
43833 * lib/LzmaEnc.c (LzmaEnc_SetProps): Fix warning about comparison
43834 between signed and unsigned.
43835 (LzmaEnc_Finish): Fix warning about an unused parameter.
43836
aa24b516 438372008-07-13 Bean <bean123ch@gmail.com>
43838
43839 * Makefile.in (enable_lzo): New rule.
43840
43841 * conf/i386-pc.rmk (grub_mkimage_SOURCES): New test with enable_lzo.
43842
43843 * configure.ac (ENABLE_LZO): New option --enable-lzo.
43844
43845 * boot/i386/pc/lnxboot.S: #include <config.h>.
43846
43847 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE): Change
fe987087 43848 its value according to the compression algorithm used, lzo or lzma.
aa24b516 43849
43850 * util/i386/pc/grub-mkimage.c (compress_kernel): Use different
43851 compression algorithm according to configure macro.
43852
43853 * kern/i386/pc/startup.S (codestart): Likewise.
43854
43855 * kern/i386/pc/lzma_decode.S: New file.
43856
43857 * include/grub/lib/LzFind.h: Likewise.
43858
43859 * include/grub/lib/LzHash.h: Likewise.
43860
43861 * include/grub/lib/LzmaDec.h: Likewise.
43862
43863 * include/grub/lib/LzmaEnc.h: Likewise.
43864
43865 * include/grub/lib/LzmaTypes.h: Likewise.
43866
43867 * lib/LzFind.c: Likewise.
43868
43869 * lib/LzmaDec.c: Likewise.
43870
43871 * lib/LzmaEnc.c: Likewise.
43872
4ae821ac 438732008-07-13 Bean <bean123ch@gmail.com>
43874
43875 * fs/ext2.c (EXT4_EXTENTS_FLAG): New macro.
43876 (grub_ext4_extent_header): New structure.
43877 (grub_ext4_extent): Likewise.
43878 (grub_ext4_extent_idx): Likewise.
43879 (grub_ext4_find_leaf): New function.
43880 (grub_ext2_read_block): Handle extents.
43881
9a745147 438822008-07-12 Robert Millan <rmh@aybabtu.com>
43883
43884 * util/i386/pc/grub-mkrescue.in: s/grub-install/grub-mkrescue/g.
43885
d49a4cf6 438862008-07-11 Robert Millan <rmh@aybabtu.com>
43887
43888 * util/grub.d/40_custom.in: New file. Example on how to add custom
43889 entries to /etc/grub.d.
43890 * conf/common.rmk (%, update-grub_SCRIPTS, CLEANFILES): Install
43891 40_custom (implicitly, by merging all the grub.d rules).
43892
947414b4 438932008-07-11 Pavel Roskin <proski@gnu.org>
43894
0059cf6f 43895 * commands/read.c (grub_getline): Fix invalid memory access.
43896 Don't add newline to the variable value.
43897
947414b4 43898 * term/i386/pc/serial.c (GRUB_SERIAL_PORT_NUM): New constant.
43899 [!GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Add COM2 and COM3.
43900 (serial_hw_get_port): Check validity of the port number.
43901 (grub_cmd_serial): Check return value of serial_hw_get_port().
43902
62a02d00 439032008-07-07 Pavel Roskin <proski@gnu.org>
43904
43905 * boot/i386/pc/diskboot.S (notification_string): Replace
43906 "Loading kernel" with just "loading". This is shorter, less
43907 confusing and saves a few bytes for possible future changes.
43908
3e5581b0 439092008-07-05 Pavel Roskin <proski@gnu.org>
43910
ea387a48 43911 * disk/ata.c (grub_ata_dumpinfo): Don't output addressing and
43912 size for ATAPI devices, they are undefined. Output sector
43913 number in decimal form.
43914
3e5581b0 43915 * disk/ata.c: Use named constants for status bits.
43916
fdecb8fd 439172008-07-04 Pavel Roskin <proski@gnu.org>
43918
bcd35b90 43919 * kern/i386/linuxbios/init.c (grub_machine_init): Cast addr to
43920 grub_addr_t before casting it to the void pointer to fix a
43921 warning. Non-addressable regions are discarded earlier.
43922 (grub_arch_modules_addr): Cast _end to grub_addr_t.
43923 * kern/i386/linuxbios/table.c: Include grub/misc.h.
43924 (check_signature): Don't shadow table_header.
43925 (grub_linuxbios_table_iterate): Cast numeric constants to
43926 grub_linuxbios_table_header_t.
43927 * include/grub/i386/linuxbios/init.h: Add noreturn attribute to
43928 grub_stop().
43929
af58ab3d 43930 * kern/ieee1275/init.c: Cast _start and _end to grub_addr_t to
43931 prevent warnings.
43932
1759aa57 43933 * include/grub/misc.h (ALIGN_UP): Avoid unnecessary cast to a
43934 pointer, which can cause warnings. Support 64-bit addresses.
43935
fdecb8fd 43936 * util/elf/grub-mkimage.c: Use GRUB_TARGET_SIZEOF_LONG instead
43937 of sizeof(long). This fixes PowerPC image generation on x86_64.
43938
8516d2a8 439392008-07-04 Robert Millan <rmh@aybabtu.com>
43940
43941 This fixes a performance issue when pc & gpt partmap iterators
43942 didn't abort iteration even after our hook found what it was
fe987087 43943 looking for (often causing expensive probes of non-existent drives).
8516d2a8 43944
43945 Some callers relied on previous buggy behaviour, since they would
34c44600 43946 raise an error when their own hooks caused early abortion of its
8516d2a8 43947 iteration.
43948
43949 * kern/device.c (grub_device_open): Improve error message.
43950 * disk/lvm.c (grub_lvm_open): Likewise.
43951 * disk/raid.c (grub_raid_open): Likewise.
43952
43953 * partmap/pc.c (pc_partition_map_iterate): Abort parent iteration
43954 when hook requests it, independently of grub_errno.
43955 (pc_partition_map_probe): Do not fail when find_func() caused
43956 early abortion of pc_partition_map_iterate().
43957
43958 * partmap/gpt.c (gpt_partition_map_iterate): Abort parent iteration
43959 when hook requests it, independently of grub_errno.
43960 (gpt_partition_map_probe): Do not fail when find_func() caused
43961 early abortion of gpt_partition_map_iterate().
43962
43963 * kern/partition.c (grub_partition_iterate): Abort parent iteration
43964 when hook requests it, independently of grub_errno. Do not fail when
43965 part_map_iterate_hook() caused early abortion of p->iterate().
43966
43967 * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Do not fail
43968 when grub_partition_iterate() returned with non-zero.
43969
277d0de9 439702008-07-03 Pavel Roskin <proski@gnu.org>
43971
43972 * disk/ata.c (grub_ata_pio_write): Check status before writing,
43973 like we do in grub_ata_pio_read().
43974 (grub_ata_readwrite): Always write individual sectors. Fix the
43975 sector count for the remainder.
43976 (grub_ata_write): Enable writing to ATA devices. Correctly
43977 report error for ATAPI devices.
43978
d4c9b428 439792008-07-02 Pavel Roskin <proski@gnu.org>
43980
e43fc690 43981 * boot/i386/pc/cdboot.S: Add _start entry to fix a linker
43982 warning.
43983
f707af42 43984 * disk/ata.c (grub_ata_readwrite): Don't increment sector number
43985 for every read sector, we already increment it for the whole
43986 batch. This fixes reading more than 256 sectors at once.
43987
11e16b15 43988 * util/grub-editenv.c (cmd_info): Cast argument to long
43989 explicitly. ptrdiff_t reduces to int on i386.
43990
cbabfdd4 43991 * util/grub-editenv.c (main): Be specific which parameter is
43992 missing.
43993
b8fbce0a 43994 * disk/memdisk.c (memdisk_addr): Make a pointer to fix warnings.
43995 (memdisk): Make memdisk_orig_addr a pointer.
43996
c9c8e606 43997 * fs/reiserfs.c (grub_reiserfs_read): Fix misuse of grub_size_t
43998 for file offsets, use grub_off_t instead. Fix printf format
43999 warnings.
44000
ca62e598 44001 * fs/reiserfs.c: Remove #warning, TODO list items don't belong
44002 there. Real unexpected warnings should not drown in the noise
44003 about known problems.
44004
ce8d1766 44005 * commands/hexdump.c (grub_cmd_hexdump): Fix misuse of
44006 grub_disk_addr_t for memory addresses.
44007
00c7a56a 44008 * loader/aout.c (grub_aout_load): Cast load_addr to pointer
44009 explicitly to fix a warning.
44010
08d3ef09 44011 * util/grub-editenv.c (cmd_info): Fix warning in printf format.
44012
cb71ba20 44013 * Makefile.in (MODULE_LDFLAGS): New variable.
44014 * aclocal.m4 (grub_PROG_LD_BUILD_ID_NONE): New macro. Check if
44015 the linker accepts --build-id=none.
44016 * configure.ac: Call grub_PROG_LD_BUILD_ID_NONE. Substitute
44017 MODULE_LDFLAGS.
44018 * genmk.rb: Use MODULE_LDFLAGS when linking modules.
44019
d4c9b428 44020 * fs/xfs.c (struct grub_xfs_dir_header): Use names similar to
44021 those in Linux XFS code. Provide a way to access 64-bit parent
44022 inode.
44023 (grub_xfs_iterate_dir): Use the new names. Avoid reading past
44024 the end of struct grub_xfs_dir_header.
44025
d4156eee 440262008-07-02 Bean <bean123ch@gmail.com>
44027
44028 * include/grub/ieee1275.h (grub_ieee1275_flag): New constant
44029 GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
44030 and GRUB_IEEE1275_FLAG_NO_ANSI.
44031
44032 * kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set flag
44033 GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
44034 and GRUB_IEEE1275_FLAG_NO_ANSI for Open Hackware.
44035
44036 * kern/ieee1275/ieee1275.c (grub_ieee1275_interpret): Return
44037 immediately if GRUB_IEEE1275_FLAG_CANNOT_INTERPRET is set.
44038
44039 * kern/ieee1275/init.c (grub_claim_heap): Claim memory directly if
44040 GRUB_IEEE1275_FLAG_FORCE_CLAIM is set.
44041
44042 * term/ieee1275/ofconsole.c (grub_ofconsole_writeesc): Don't output
44043 esc sequence on non ANSI terminal.
44044 (grub_ofconsole_gotoxy): Emulate backspace key on non ANSI terminal.
44045
44046 * util/elf/grub-mkimage.c (add_segments): Move ELF header to the
44047 beginning of file.
44048
2270f77b 440492008-07-02 Bean <bean123ch@gmail.com>
44050
44051 * conf/common.rmk (bin_UTILITIES): Add grub-editenv.
44052 (grub_editenv_SOURCES): New variable.
44053 (pkglib_MODULES): Add loadenv.mod.
44054 (loadenv_mod_SOURCES): New variable.
44055 (loadenv_mod_CFLAGS): Likewise.
44056 (loadenv_mod_LDFLAGS): Likewise.
44057
44058 * include/grub/envblk.h: New file.
44059
44060 * util/envblk.c: New file.
44061
44062 * util/grub-editenv.c: New file.
44063
44064 * commands/loadenv.c: New file.
44065
0e9e51ec 440662008-07-01 Pavel Roskin <proski@gnu.org>
44067
d89b7634 44068 * include/multiboot2.h (struct multiboot_tag_module): Use char,
44069 not unsigned char. This fixes warnings and is consistent with
44070 other tags.
44071
bf1835b1 44072 * disk/fs_uuid.c (search_fs_uuid): Correctly increment count.
44073
8222a04b 44074 * normal/parser.y: Define YYENABLE_NLS as 0 to fix warnings.
44075
6a42d99d 44076 * term/tparm.c (analyze): Always set *popcount.
44077
10b159d1 44078 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Remove useless
44079 cast to fix a warning.
44080
b8789f6c 44081 * loader/i386/pc/multiboot2.c (grub_mb2_arch_module_alloc): Use
44082 cast to suppress a warning.
44083
29d7e38a 44084 * fs/afs.c (grub_afs_read_block): Return grub_disk_addr_t, as
44085 grub_fshelp_read_file() expects.
44086
f341f669 44087 * fs/fat.c: Fix UUID calculation on big-endian systems. We
44088 write uuid as a 32-bit value in CPU byte order, so declare and
44089 use it as such.
44090
0e9e51ec 44091 * disk/raid.c: Cast grub_dprintf() arguments to unsigned long
44092 long if the format specifier expects it.
44093 * partmap/gpt.c (gpt_partition_map_iterate): Likewise.
44094 * partmap/pc.c (pc_partition_map_iterate): Likewise.
44095 * fs/ntfs.c (grub_ntfs_uuid): Cast data->uuid to unsigned long
44096 long to fix a warning.
44097 * fs/reiserfs.c (grub_reiserfs_read): Change casts in
44098 grub_dprintf() arguments to fix warnings.
44099
3aefa857 441002008-06-30 Pavel Roskin <proski@gnu.org>
44101
56c7668b 44102 * util/i386/pc/grub-setup.c (setup): Write install_dos_part and
44103 install_bsd_part immediately before core.img is embedded or
44104 modified on disk. This fixes core.img verification if core.img
44105 cannot be embedded.
44106
3aefa857 44107 * util/i386/pc/grub-setup.c (setup): Use core_path_dev, not
44108 core_path to calculate the blocklist.
44109 Patch from Javier Martín <lordhabbit@gmail.com>
44110
5444088d 441112008-06-29 Robert Millan <rmh@aybabtu.com>
44112
44113 * fs/xfs.c (GRUB_XFS_FSB_TO_BLOCK): New macro. Maps filesystem
44114 block to disk block.
44115 (grub_xfs_read_block): Use GRUB_XFS_FSB_TO_BLOCK() on result.
44116 Patch from Niels Böhm <bitbucket@arcor.de>
44117
674835c8 441182008-06-29 Robert Millan <rmh@aybabtu.com>
44119
44120 * util/update-grub_lib.in (font_path): Search for fonts in
44121 /boot/grub first, which is more likely to be readable (we aren't
44122 deciding where fonts live, just looking for them).
44123
f527dbc8 441242008-06-26 Pavel Roskin <proski@gnu.org>
44125
6c2d8df6 44126 * util/biosdisk.c (read_device_map): Don't leave dead map
44127 entries for devices failing stat() check.
44128
f527dbc8 44129 * util/i386/pc/grub-setup.c (setup): Don't reuse core_path, use
44130 core_path_dev for the core.img path on the target device.
44131
aebe3d13 441322008-06-26 Robert Millan <rmh@aybabtu.com>
44133
44134 * disk/fs_uuid.c: New file.
44135 * conf/common.rmk (pkglib_MODULES): Add `fs_uuid.mod'.
44136 (fs_uuid_mod_SOURCES, fs_uuid_mod_CFLAGS)
44137 (fs_uuid_mod_LDFLAGS): New variables.
44138 * include/grub/disk.h (grub_disk_dev_id): Add
44139 `GRUB_DISK_DEVICE_UUID_ID'.
44140 * kern/disk.c (grub_disk_dev_iterate): Allow disk devices not to
44141 implement iterate().
44142
37aaf354 441432008-06-26 Robert Millan <rmh@aybabtu.com>
44144
44145 * util/grub.d/10_linux.in: Avoid passing UUIDs to Linux when either
44146 "/dev/disk/by-uuid/${GRUB_DEVICE_UUID}" does not exist, or when a
44147 Linux image includes no initrd.
44148
25ff262a 441492008-06-21 Javier Martín <lordhabbit@gmail.com>
44150
44151 * util/i386/pc/grub-setup.c (setup): Remove literal "core.img" in a
44152 call to resolve the core image location that effectively appended the
44153 name twice.
44154
76a2bd44 441552008-06-21 Robert Millan <rmh@aybabtu.com>
44156
44157 * util/grub.d/00_header.in: Move last prepare_grub_to_access_device()
44158 call from here ...
44159
44160 * util/grub.d/10_hurd.in: ... to here ...
44161 * util/grub.d/10_linux.in: ... and here.
44162
650e1c79 441632008-06-19 Robert Millan <rmh@aybabtu.com>
44164
fe987087 44165 * kern/main.c (grub_main): Export `prefix' variable immediately
650e1c79 44166 after it has been set by grub_machine_set_prefix().
44167
6ce63911 441682008-06-19 Robert Millan <rmh@aybabtu.com>
44169
44170 * commands/search.c (search_label, search_fs_uuid, search_file): Print
44171 search result when not saving to variable, not the other way around.
44172 When saving to variable, abort iteration as soon as a match is found.
44173
73940cec 441742008-06-19 Robert Millan <rmh@aybabtu.com>
44175
44176 * util/update-grub_lib.in (prepare_grub_to_access_device): Remove
44177 check for partition that provides /boot/grub. Its logic is flawed,
44178 as it prevents prepare_grub_to_access_device() from being called
44179 multiple times.
44180
3c62a39d 441812008-06-19 Robert Millan <rmh@aybabtu.com>
44182
44183 * util/update-grub_lib.in (prepare_grub_to_access_device): Issue
44184 "insmod" command directly when abstraction modules are needed,
fe987087 44185 instead of relying on GRUB_PRELOAD_MODULES (which had no effect
3c62a39d 44186 since it had already been processed).
44187
47395a42 441882008-06-19 Pavel Roskin <proski@gnu.org>
44189
44190 * conf/i386-efi.rmk: Recompile grub-mkimage.c if Makefile has
44191 changed. This is needed in case GRUB_LIBDIR changes.
44192 * conf/i386-ieee1275.rmk: Likewise.
44193 * conf/i386-linuxbios.rmk: Likewise.
44194 * conf/i386-pc.rmk: Likewise.
44195 * conf/powerpc-ieee1275.rmk: Likewise.
44196
a145ac2d 441972008-06-18 Pavel Roskin <proski@gnu.org>
44198
44199 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Rename
44200 kernel_elf_symlist.c to symlist.c for consistency with other
44201 architectures. Update all users.
44202 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
44203
7847c51e 442042008-06-18 Robert Millan <rmh@aybabtu.com>
44205
44206 * util/i386/pc/grub-install.in: If the drive is LVM or RAID, prepend
44207 it in prefix.
44208
44209 * util/i386/pc/grub-setup.c (main): Don't handle prefix at all. Set
44210 `must_embed' to 1 when root_dev is a RAID device. When dest_dev is
44211 a RAID device, run setup() for all members independently on whether
44212 LVM abstraction is being used.
44213 (setup): Don't handle prefix at all; let grub-mkimage take care of it.
44214 If grub-mkimage has set `*install_dos_part == -2', don't override this
44215 value.
44216 Perform *install_dos_part adjustments independently on whether
44217 we're embedding or not.
44218 Clarify error message when image is too big for embedding.
44219 Remove duplicate *install_dos_part stanza.
44220
b23e5644 442212008-06-17 Robert Millan <rmh@aybabtu.com>
44222
44223 * term/ieee1275/ofconsole.c (fgcolor, bgcolor): Remove variables.
44224 (grub_ofconsole_normal_color, grub_ofconsole_highlight_color): New
44225 variables.
44226 (grub_ofconsole_setcolor, grub_ofconsole_getcolor): Load/store
44227 values in grub_ofconsole_normal_color and
44228 grub_ofconsole_highlight_color (they're not directly related to
44229 background and foreground).
44230 (grub_ofconsole_setcolorstate): Extract background and foreground
44231 from grub_ofconsole_normal_color and grub_ofconsole_highlight_color.
44232
0aac2f79 442332008-06-17 Robert Millan <rmh@aybabtu.com>
44234
44235 * util/update-grub_lib.in (prepare_grub_to_access_device): Use
44236 /boot/grub for the check in last commit, not /boot (they could be
44237 different partitions).
44238
3cca7ef3 442392008-06-16 Robert Millan <rmh@aybabtu.com>
44240
44241 * util/update-grub_lib.in (prepare_grub_to_access_device): If we were
44242 asked to setup access for the same partition that provides /boot,
44243 don't bother using UUIDs since our root already has the value we
44244 want.
44245
347396d8 442462008-06-16 Robert Millan <rmh@aybabtu.com>
44247
44248 * util/biosdisk.c (convert_system_partition_to_system_disk): Detect
44249 I2O devices.
44250 Patch from Sven Mueller <sven@debian.org>.
44251
991477f8 442522008-06-16 Robert Millan <rmh@aybabtu.com>
44253
44254 * util/update-grub.in: Check for $EUID instead of $UID.
44255 Reported by Vincent Zweije.
44256
d31a32a1 442572008-06-16 Bean <bean123ch@gmail.com>
44258
fe987087 44259 * fs/ext2.c (grub_ext2_blockgroup): Revert to pre-journal state.
d31a32a1 44260 (grub_ext2_read_block): Likewise.
44261 (grub_ext2_read_inode): Likewise.
44262 (grub_ext2_mount): Likewise.
44263 (grub_ext2_close): Likewise.
44264 (grub_ext3_get_journal): Removed.
44265
fe987087 44266 * fs/reiserfs.c (grub_reiserfs_get_item): Revert to pre-journal state.
d31a32a1 44267 (grub_reiserfs_read_symlink): Likewise.
44268 (grub_reiserfs_mount): Likewise.
44269 (grub_reiserfs_open): Likewise.
44270 (grub_reiserfs_read): Likewise.
44271 (grub_reiserfs_close): Likewise.
44272 (grub_reiserfs_get_journal): Removed.
44273
44274 * fs/fshelp.c (grub_fshelp_read): Removed.
44275 (grub_fshelp_map_block): Likewise.
44276
44277 * include/grub/fshelp.h (grub_fshelp_journal_type): Removed.
44278 (grub_fshelp_journal): Likewise.
44279 (grub_fshelp_read): Likewise.
44280 (grub_fshelp_map_block): Likewise.
44281
3540a760 442822008-06-16 Pavel Roskin <proski@gnu.org>
44283
44284 * conf/powerpc-ieee1275.rmk: Remove -msoft-float, we don't use
44285 floating point anymore.
44286 * include/grub/powerpc/libgcc.h: Leave only necessary exports.
44287
95614c84 442882008-06-15 Pavel Roskin <proski@gnu.org>
44289
44290 * commands/ls.c (grub_ls_list_files): Use integer calculations
44291 for human readable format, avoid floating point use.
44292 * kern/misc.c (grub_ftoa): Remove.
44293 (grub_vsprintf): Remove floating point support.
44294
50465dd6 442952008-06-15 Robert Millan <rmh@aybabtu.com>
44296
fe6b695a 44297 * util/grub.d/10_linux.in: Use the underlying device for loop-AES
50465dd6 44298 devices.
44299 Reported by Max Vozeler.
44300
a9207284 443012008-06-15 Robert Millan <rmh@aybabtu.com>
44302
44303 * util/i386/pc/grub-mkimage.c (generate_image): If we included a drive
44304 in our prefix, set install_{dos,bsd}_part = -2 to indicate this can be
44305 skipped later.
44306 (main): If a memdisk was requested, add "(memdisk)" drive explicitly to
44307 the beginning of the prefix.
44308
44309 * kern/i386/pc/init.c (make_install_device): Remove memdisk check.
44310 It is assumed that if we have a memdisk, grub-mkimage has set
44311 grub_prefix to include the "(memdisk)" drive in it.
44312
a7cbd45a 443132008-06-15 Robert Millan <rmh@aybabtu.com>
44314
44315 * term/i386/pc/console.c [GRUB_MACHINE_LINUXBIOS] (grub_console_init):
44316 Initialize keyboard controller after registering the terminal, so that
44317 grub_printf() can be called from grub_keyboard_controller_init().
44318
21cf716a 443192008-06-15 Robert Millan <rmh@aybabtu.com>
44320
44321 * fs/sfs.c (grub_sfs_read_extent): Fix the count of nodes in
44322 extent-btree which is written as big endian on disk.
44323 Reported by Alain Greppin <al@chilibi.org>.
44324
23a64d8e 443252008-06-14 Robert Millan <rmh@aybabtu.com>
44326
44327 * util/i386/efi/grub-install.in (modules): Remove `_chain'.
44328 * util/i386/pc/grub-install.in (modules): Likewise.
44329
d687651c 443302008-06-13 Pavel Roskin <proski@gnu.org>
44331
44332 * commands/ls.c (grub_ls_list_files): Fix format warnings.
44333
dfe9ddd4 443342008-06-13 Bean <bean123ch@gmail.com>
44335
44336 * commands/hexdump.c (grub_cmd_hexdump): Adjust offset for partition.
44337
44338 * fs/ext2.c (grub_ext3_get_journal): Fix revoke block handling.
44339
44340 * fs/fshelp.c (grub_fshelp_map_block): Don't map block 0 as it's used
44341 to indicate sparse block.
44342
16ae7781 443432008-06-12 Pavel Roskin <proski@gnu.org>
44344
e6d1a308 44345 * fs/ext2.c (grub_ext2_read_inode): Don't normalize block
44346 number, grub_fshelp_read() does it for us.
44347
16ae7781 44348 * fs/fshelp.c (grub_fshelp_read): New function. Implement
44349 linear disk read with journal translation.
44350 * fs/ext2.c: Use grub_fshelp_read() instead of grub_disk_read().
44351 * include/grub/fshelp.h: Declare grub_fshelp_read().
44352
40fd3a2b 443532008-06-09 Pavel Roskin <proski@gnu.org>
44354
44355 * fs/minix.c (grub_minix_mount): Handle error reading
44356 superblock.
44357
f5679726 443582008-06-08 Robert Millan <rmh@aybabtu.com>
44359
44360 * util/i386/pc/grub-setup.c (main): If install drive is an LVM,
44361 don't append the RAID prefix afterwards.
44362 Reported by Clint Adams.
44363
ce525529 443642008-06-08 Robert Millan <rmh@aybabtu.com>
44365
44366 Based on description from Pavel:
44367 * kern/disk.c (grub_disk_check_range): Rename to ...
44368 (grub_disk_adjust_range): ... this. Add a comment explaining the
44369 tasks performed by this function.
44370
ad4936a0 443712008-06-08 Robert Millan <rmh@aybabtu.com>
44372
44373 * include/grub/ntfs.h (struct grub_ntfs_bpb): Rename `serial_number' to
44374 `num_serial' (for consistency with other variables).
44375 (struct grub_ntfs_data): Add `uuid' member.
44376 * fs/ntfs.c (grub_ntfs_mount): Initialize `data->uuid'.
44377 (grub_ntfs_uuid): New function.
44378 (grub_ntfs_fs): Reference grub_ntfs_uuid() in `uuid' struct member.
44379
dc20b0f9 443802008-06-07 Pavel Roskin <proski@gnu.org>
44381
44382 * util/biosdisk.c (open_device): Revert last change to the
44383 function, it broke installation. The sector needs to be
44384 different dependent on which device is opened.
44385
c5e3cfba 443862008-06-06 Robert Millan <rmh@aybabtu.com>
44387
44388 Ensure GRUB_KERNEL_MACHINE_DATA_END is always consistent with the
44389 rest of GRUB, and breakage doesn't happen if its value were modified.
44390
44391 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
44392 Redefine as an offset from `GRUB_KERNEL_MACHINE_DATA_END' instead of
44393 a constant (same value).
44394 * kern/i386/pc/startup.S: Replace hardcoded `0x50' with
44395 `GRUB_KERNEL_MACHINE_DATA_END' (same value).
44396
26a1f8c4 443972008-06-06 Robert Millan <rmh@aybabtu.com>
44398
44399 * util/biosdisk.c (open_device): Do not modify sector offset when
44400 accessing a partition. kern/disk.c already handles this for us.
44401
25d6b327 444022008-06-06 Robert Millan <rmh@aybabtu.com>
44403
44404 * util/grub-emu.c (grub_machine_init): Move code in this function from
44405 here ...
44406 (main): ... to here (before grub_util_biosdisk_init() call, to prevent
44407 segfault in case grub_printf() is called).
44408
44409 * util/i386/pc/grub-install.in: Append `--device-map=${device_map}' to
44410 grub_probe. Update all users not to explicitly add it again.
44411 (grub_device): New variable; contains corresponding device for grubdir.
44412 (fs_module, partmap_module, devabstraction_module): Pass
44413 `--device ${grub_device}' to grub_probe to avoid traversing /dev
44414 every time.
44415
9ece62fb 444162008-06-05 Robert Millan <rmh@aybabtu.com>
44417
44418 * normal/misc.c (grub_normal_print_device_info): When a filesystem UUID
44419 is found, print it (same layout as with labels).
44420
1ad36d37 444212008-06-04 Robert Millan <rmh@aybabtu.com>
44422
44423 * util/biosdisk.c (get_drive): Rename to ...
44424 (find_grub_drive): ... this. Update all users.
44425
44426 (get_os_disk): Rename to ...
44427 (convert_system_partition_to_system_disk): ... this. Update all users.
44428
44429 (find_drive): Rename to ...
44430 (find_system_device): ... this. Update all users.
44431
e6a30859 444322008-06-04 Robert Millan <rmh@aybabtu.com>
44433
44434 * util/biosdisk.c (get_os_disk): Handle IDA devices.
44435 * util/grub-mkdevicemap.c (get_mmc_disk_name)
44436 (make_device_map): Likewise.
44437
00c108a4 444382008-06-01 Robert Millan <rmh@aybabtu.com>
44439
44440 * util/biosdisk.c (get_drive): Verify that `map[i].drive' is non-NULL
44441 before dereferencing it.
44442
44443 * fs/fat.c (struct grub_fat_bpb): Move fat32-specific fields into a
44444 union with fat12/fat16-specific ones. Add some new fields, including
44445 `num_serial' for both versions.
44446 (struct grub_fat_data): Add `uuid' member.
44447 (grub_fat_mount): Refer to fat32-specific fields in `bpb' by their new
44448 names. Initialize `data->uuid' using `num_serial'.
44449 (grub_fat_uuid): New function.
44450 (grub_fat_fs): Reference grub_fat_uuid() in `uuid' struct member.
44451
44452 * fs/reiserfs.c (grub_reiserfs_superblock): Add `uuid' field.
44453 (grub_reiserfs_uuid): New function.
44454 (grub_reiserfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct
44455 member.
44456
44457 * fs/xfs.c (grub_xfs_sblock): Add `uuid' field.
44458 (grub_xfs_uuid): New function.
44459 (grub_xfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct member.
44460
1385c5bb 444612008-06-01 Robert Millan <rmh@aybabtu.com>
44462
44463 * util/update-grub_lib.in (prepare_grub_to_access_device): Generate
44464 code that is backward compatible with pre-uuid search command.
44465
c682dfd7 444662008-05-31 Robert Millan <rmh@aybabtu.com>
44467
44468 * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Iterate through
44469 floppies after everything else, to ensure floppy drive isn't accessed
44470 unnecessarily (patch from Bean).
44471
b7db5d47 444722008-05-31 Robert Millan <rmh@aybabtu.com>
44473
44474 * commands/search.c (search_label, search_fs_uuid, search_file): Do
44475 not print device names when we were asked to set a variable.
44476
6e037aa9 444772008-05-31 Robert Millan <rmh@aybabtu.com>
44478
44479 * term/ieee1275/ofconsole.c (grub_ofconsole_setcursor): Implement
44480 using "cursor-on" and "cursor-off" commands (understood at least by
44481 the Open Firmware flavour on OLPC).
44482
41305bc8 444832008-05-31 Michael Gorven <michael@gorven.za.net>
44484
44485 * term/terminfo.c (grub_terminfo_set_current): Correct vt100 cursor
44486 on and off sequences.
44487
69ba137e 444882008-05-31 Robert Millan <rmh@aybabtu.com>
44489
44490 * util/update-grub_lib.in: Replace `grub-probe' with `${grub_probe}'.
44491 * util/update-grub.in: Likewise.
44492
520ae21b 444932008-05-30 Pavel Roskin <proski@gnu.org>
44494
44495 * util/biosdisk.c (linux_find_partition): Simplify logic and
44496 make the code more universal. Keep special processing for
44497 devfs, but use a simple rule for all other devices. If the
44498 device ends with a number, append 'p' and the partition number.
44499 Otherwise, append only the partition number.
44500
5786569b 445012008-05-30 Robert Millan <rmh@aybabtu.com>
44502
44503 * util/update-grub.in (GRUB_DISABLE_LINUX_UUID): Export variable.
44504 * util/grub.d/10_linux.in: If GRUB_DEVICE_UUID is set, and
44505 GRUB_DISABLE_LINUX_UUID isn't true, use the filesystem UUIDs as
44506 the `root' parameter to Linux.
44507
51500452 445082008-05-30 Robert Millan <rmh@aybabtu.com>
44509
44510 * commands/search.c (options): Rename --fs_uuid to --fs-uuid.
44511 * util/update-grub_lib.in (prepare_grub_to_access_device): Replace
44512 --fs_uuid with --fs-uuid.
44513 * util/update-grub.in: Allow filesystem UUID probes to fail (since not
44514 all filesystems support them).
44515
811d3878 445162008-05-30 Robert Millan <rmh@aybabtu.com>
44517
44518 * fs/ext2.c (grub_ext2_uuid): Use `04x' instead of '02x' as
f19dbdb7 44519 grub_printf() flags, since we're printing in units of 2 bytes.
811d3878 44520
cab63c95 445212008-05-30 Robert Millan <rmh@aybabtu.com>
44522
44523 * util/grub.d/00_header.in: Remove obsolete comment referencing
44524 convert_system_path_to_grub_path().
44525 * util/update-grub.in: Likewise.
44526 * util/update-grub_lib.in (is_path_readable_by_grub): New function.
44527 (convert_system_path_to_grub_path): Add a warning message explaining
44528 that this function is deprecated. Rely on is_path_readable_by_grub()
44529 for the readability checks.
44530 (font_path): Use is_path_readable_by_grub() for the readability
44531 check rather than convert_system_path_to_grub_path().
44532
972e2f7a 445332008-05-30 Robert Millan <rmh@aybabtu.com>
44534
44535 * util/update-grub_lib.in (prepare_grub_to_access_device): New function.
44536 * util/update-grub.in: Set `GRUB_FONT_PATH' to the system path, without
44537 converting it first.
44538 * util/grub.d/00_header.in: Use prepare_grub_to_access_device() to setup
44539 grub.cfg for access to font file, and afterwards call it again to set
44540 the root device.
44541
62191274 445422008-05-30 Robert Millan <rmh@aybabtu.com>
44543
44544 * commands/search.c (options): Add --fs_uuid option.
44545 (search_fs_uuid): New function.
44546 (grub_cmd_search): Fix --set argument passing.
44547 Use search_fs_uuid() when requested via --fs_uuid.
44548 (grub_search_init): Update help message.
44549 * fs/ext2.c (struct grub_ext2_sblock): Rename `unique_id' to `uuid'
44550 and redeclare it as an array of 16-bit words.
44551 (grub_ext2_uuid): New function.
44552 (grub_ext2_fs): Reference grub_ext2_uuid() in `uuid' struct member.
44553 * include/grub/fs.h (struct grub_fs): Add `uuid' struct member.
44554 * util/update-grub.in (GRUB_DEVICE_UUID, GRUB_DEVICE_BOOT)
44555 (GRUB_DEVICE_BOOT_UUID): New variables.
44556 (GRUB_DRIVE. GRUB_DRIVE_BOOT. GRUB_DRIVE_BOOT_GRUB): Remove.
44557 * util/grub.d/00_header.in: Set root using `search --fs_uuid' command
44558 whenever possible.
44559 * util/grub.d/10_hurd.in: Avoid explicit use of root drive. Instead,
44560 just assume `root' variable has the right value.
44561 * util/grub.d/10_linux.in: Likewise.
44562 * util/grub-probe.c (probe): Probe for filesystem UUID when requested
44563 via PRINT_FS_UUID.
44564 (main): Recognise `-t fs_uuid' argument.
44565
01b73ec8 445662008-05-30 Robert Millan <rmh@aybabtu.com>
44567
44568 * util/biosdisk.c (map): Redefine structure to hold information
44569 about GRUB drive name.
fe6b695a 44570 (get_drive): Reimplement without assuming (and verifying) BIOS-like
01b73ec8 44571 drive names.
44572 (call_hook): Remove.
44573 (grub_util_biosdisk_iterate): Access drive names via `.drive' struct
44574 member. Assume drive has partitions.
44575 (grub_util_biosdisk_open): Access device names via `.device' struct
44576 member.
44577 (open_device): Likewise.
44578 (find_drive): Likewise.
44579 (read_device_map): Adjust map[] usage to match the new struct
44580 definition. Don't check for duplicates (still possible, but not cheap
44581 anymore).
44582 (grub_util_biosdisk_fini): Free malloced buffers referenced by map[].
44583 (make_device_name): Remove assumption of BIOS-like drive names.
44584
22f16596 445852008-05-30 Pavel Roskin <proski@gnu.org>
44586
44587 * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Remove, as
44588 compiling execute.c doesn't need grub_script.tab.h anymore.
44589 (normal/command.c_DEPENDENCIES): Likewise.
44590 (normal/function.c_DEPENDENCIES): Likewise.
44591 * conf/i386-ieee1275.rmk: Likewise.
44592 * conf/i386-linuxbios.rmk: Likewise.
44593 * conf/i386-pc.rmk: Likewise.
44594 * conf/powerpc-ieee1275.rmk: Likewise.
44595 * conf/sparc64-ieee1275.rmk: Likewise.
44596
528ad8f2 445972008-05-29 Pavel Roskin <proski@gnu.org>
44598
d1dff95d 44599 * disk/lvm.c (grub_lvm_scan_device): Check for the buffer end
44600 when scanning metadata for volume group name.
44601
528ad8f2 44602 * include/grub/script.h: Don't include grub_script.tab.h. It's
44603 a generated file, which may only be included from the files with
44604 DEPENDENCIES rules in the makefile. Don't use typedef YYSTYPE,
44605 use union YYSTYPE, as the later allows forward declaration.
44606 * normal/lexer.c: Don't use typedef YYSTYPE, use union YYSTYPE.
44607
47248e08 446082008-05-29 Robert Millan <rmh@aybabtu.com>
44609
44610 * term/i386/pc/at_keyboard.c: Include `grub/machine/machine.h'.
44611 (OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): New macros.
44612 [GRUB_MACHINE_IEEE1275] (keyboard_map): Add OLPC scan codes
44613 (grub_console_checkkey): Add grub_dprintf() call to report unknown
44614 scan codes.
44615
ee632529 446162008-05-29 Robert Millan <rmh@aybabtu.com>
44617
44618 * term/i386/pc/at_keyboard.c (grub_console_checkkey): Add support for
44619 control key combinations.
44620
eee96e08 446212008-05-29 Robert Millan <rmh@aybabtu.com>
44622
44623 * util/powerpc/ieee1275/grub-install.in: Move from here ...
44624 * util/ieee1275/grub-install.in: ... to here.
44625 * powerpc-ieee1275.rmk (grub_install_SOURCES): Update location.
44626 * i386-ieee1275.rmk (sbin_SCRIPTS): New variable.
44627 (grub_install_SOURCES): Likewise.
44628
da9a6a94 446292008-05-29 Robert Millan <rmh@aybabtu.com>
44630
44631 * fs/affs.c: Update copyright year.
44632 * fs/ext2.c: Likewise.
44633 * fs/fshelp.c: Likewise.
44634 * fs/hfsplus.c: Likewise.
44635 * fs/ntfs.c: Likewise.
44636 * fs/xfs.c: Likewise.
44637 * include/grub/fshelp.h: Likewise.
44638 * util/grub-mkdevicemap.c: Likewise.
44639
12e65f3a 446402008-05-28 Robert Millan <rmh@aybabtu.com>
44641
44642 * util/update-grub.in: Allow chmod call to fail, since /boot/grub/
44643 might need to be fatfs to support some firmware implementations
44644 (e.g. OFW or EFI).
44645
23023641 446462008-05-28 Robert Millan <rmh@aybabtu.com>
44647
44648 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle MMC
44649 devices.
44650 * util/grub-mkdevicemap.c (get_mmc_disk_name)
44651 (make_device_map): Likewise.
44652
887d2619 446532008-05-20 Bean <bean123ch@gmail.com>
44654
44655 * fs/fshelp.c (grub_fshelp_map_block): New function.
44656 (grub_fshelp_find_file): Use 64-bit type for pos and block address.
44657 Use `>>' and `&' operator to avoid 64-bit divide and modulo.
44658
44659 * include/grub/fshelp.h (grub_fshelp_journal_type): New enum.
44660 (GRUB_FSHELP_JOURNAL_UNUSED_MAPPING): New macro.
44661 (grub_fshelp_journal): New structure.
44662 (grub_fshelp_map_block): New function prototype.
44663 (grub_fshelp_read_file): Use grub_disk_addr_t as block type.
44664 (grub_fshelp_map_block): Likewise.
44665
44666 * fs/ext2.c (EXT3_FEATURE_COMPAT_HAS_JOURNAL): New macro.
44667 (EXT3_JOURNAL_MAGIC_NUMBER): Likewise.
44668 (EXT3_JOURNAL_DESCRIPTOR_BLOCK): Likewise.
44669 (EXT3_JOURNAL_COMMIT_BLOCK): Likewise.
44670 (EXT3_JOURNAL_SUPERBLOCK_V1): Likewise.
44671 (EXT3_JOURNAL_SUPERBLOCK_V2): Likewise.
44672 (EXT3_JOURNAL_REVOKE_BLOCK): Likewise.
44673 (EXT3_JOURNAL_FLAG_ESCAPE): Likewise.
44674 (EXT3_JOURNAL_FLAG_SAME_UUID): Likewise.
44675 (EXT3_JOURNAL_FLAG_DELETED): Likewise.
44676 (EXT3_JOURNAL_FLAG_LAST_TAG): Likewise.
44677 (grub_ext2_sblock): New members for journal support.
44678 (grub_ext3_journal_header): New structure.
44679 (grub_ext3_journal_revoke_header): Likewise.
44680 (grub_ext3_journal_block_tag): Likewise.
44681 (grub_ext3_journal_sblock): Likewise.
44682 (grub_fshelp_node): New members logfile and journal.
44683 (grub_ext2_read_block): Change block type to grub_disk_addr_t. Use
44684 grub_fshelp_map_block to get real block number.
44685 (grub_ext2_blockgroup): Use grub_fshelp_map_block to get real block
44686 number.
44687 (grub_ext2_read_inode): Likewise.
44688 (grub_ext3_get_journal): New function.
44689 (grub_read_inode): Initialize journal using grub_ext3_get_journal.
44690 (grub_ext2_close): Release memory used by journal.
44691
44692 * fs/reiserfs.c (REISERFS_MAGIC_STRING): Changed to "ReIsEr".
44693 (REISERFS_MAGIC_DESC_BLOCK): New macro.
44694 (grub_reiserfs_transaction_header): Renamed to
44695 grub_reiserfs_description_block, replace field data with real_blocks.
44696 (grub_reiserfs_commit_block): New structure.
44697 (grub_reiserfs_data): New member journal.
44698 (grub_reiserfs_get_item): Use grub_fshelp_map_block to get real block
44699 number.
44700 (grub_reiserfs_read_symlink): Likewise.
44701 (grub_reiserfs_iterate_dir): Likewise.
44702 (grub_reiserfs_open): Likewise.
44703 (grub_reiserfs_read): Likewise.
44704 (grub_reiserfs_get_journal): New function.
44705 (grub_reiserfs_mount): Use "ReIsEr" as super block magic, as there are
44706 three varieties ReIsErFs, ReIsEr2Fs and ReIsEr3Fs. Initialize journal
44707 using grub_reiserfs_get_journal.
44708 (grub_reiserfs_close): Release memory used by journal.
44709
44710 * fs/affs.c (grub_affs_read_block): Change block type to
44711 grub_disk_addr_t. Use grub_divmod64 to do 64-bit division.
44712
44713 * fs/afs.c (grub_afs_read_block): Change block type to grub_disk_addr_t.
44714
44715 * fs/hfsplus.c (grub_hfsplus_read_block): Likewise.
44716
44717 * fs/ntfs.c (grub_ntfs_read_block): Likewise.
44718
44719 * fs/udf.c (grub_udf_read_block): Change block type to
44720 grub_disk_addr_t. Use type cast to avoid warning.
44721
44722 * fs/xfs.c (grub_xfs_read_block): Likewise.
44723
b7c6bed5 447242008-05-16 Christian Franke <franke@computer.org>
44725
44726 * commands/cat.c (grub_cmd_cat): Remove non-ESC keys from keyboard queue
44727 to ensure that break with ESC will always work.
44728 * commands/sleep.c (grub_interruptible_millisleep): Likewise.
44729 Remove ESC from keyboard queue.
44730
eedf167f 447312008-05-16 Christian Franke <franke@computer.org>
44732
44733 * util/biosdisk.c: [__CYGWIN__] Add includes.
44734 (grub_util_biosdisk_open): Use Linux code also for Cygwin.
44735 (get_os_disk): Move variable declarations to OS specific
44736 parts to avoid warning.
44737 [__GNU__] (get_os_disk): Fix /dev/sdXsN case.
44738 [__CYGWIN__] (get_os_disk): Add Cygwin /dev/sdXN device names.
44739 (grub_util_biosdisk_get_grub_dev): Use Linux code also for
44740 Cygwin.
44741 * util/getroot.c: [__CYGWIN__] Add includes.
44742 (strip_extra_slashes): Fix "/" case.
44743 [__CYGWIN__] (get_win32_path): New function.
44744 [__CYGWIN__] (grub_get_prefix): Add conversion to win32 path.
44745 [__CYGWIN__] (find_root_device): Disable.
44746 [__CYGWIN__] (get_bootsec_serial): New function.
44747 [__CYGWIN__] (find_cygwin_root_device): Likewise.
44748 [__linux__] (grub_guess_root_device): Add early returns to simplify
44749 structure.
44750 [__CYGWIN__] (grub_guess_root_device): Call find_cygwin_root_device.
44751 [__linux__] (grub_util_get_dev_abstraction): Enable LVM and RAID
44752 check for Linux only.
44753
a079699e 447542008-05-15 Bean <bean123ch@gmail.com>
44755
44756 * kern/i386/pc/startup.S (grub_console_getkey): Workaround for the
44757 keyboard hang problem in apple's intel mac.
44758
1cf4059a 447592008-05-09 Robert Millan <rmh@aybabtu.com>
44760
44761 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle Virtio
44762 devices.
44763 * util/grub-mkdevicemap.c (get_virtio_disk_name)
44764 (make_device_map): Likewise.
44765 Reported by Aurelien Jarno <aurel32@debian.org>
44766
ed759390 447672008-05-07 Ian Campbell <ijc@hellion.org.uk>
44768
44769 * util/biosdisk.c (get_os_disk): Recognise xvd type disks.
44770 * util/grub-mkdevicemap.c (get_xvd_disk_name): New function.
44771 (make_device_map): Output entries for xvd type disks.
44772
b56c4eaa 447732008-05-07 Robert Millan <rmh@aybabtu.com>
44774
44775 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle CCISS
44776 devices.
44777 * util/grub-mkdevicemap.c (get_cciss_disk_name)
44778 (make_device_map): Likewise.
44779 Reported by Roland Dreier <rdreier@cisco.com>
44780
7f8866ed 447812008-05-07 Robert Millan <rmh@aybabtu.com>
44782
44783 * disk/lvm.c (grub_lvm_scan_device): Detect errors in an additional
44784 grub_strstr() call. Correct a few mistakes in failure path handling.
44785
b0346e0f 447862008-05-06 Robert Millan <rmh@aybabtu.com>
44787
44788 * util/update-grub_lib.in (make_system_path_relative_to_its_root):
44789 Do not print a trailing slash (therefore, the root directory is an
44790 empty string).
44791 (convert_system_path_to_grub_path): Do not remove trailing slash
44792 from make_system_path_relative_to_its_root() output.
44793
44794 * util/i386/pc/grub-install.in: Add trailing slash to output from
44795 make_system_path_relative_to_its_root().
44796
6cf12cbd 447972008-05-06 Robert Millan <rmh@aybabtu.com>
44798
44799 * util/grub-fstest.c (grub_refresh): Call `fflush (stdout)'. This
44800 ensures that output lines aren't intermangled with those sent to
44801 stderr (via grub_util_info()).
44802 * util/grub-probe.c (grub_refresh): Likewise.
44803 * util/i386/pc/grub-setup.c (grub_refresh): Likewise.
44804
0fbb3117 448052008-05-05 Christian Franke <franke@computer.org>
44806
44807 * util/grub-mkdevicemap.c (get_floppy_disk_name) [__CYGWIN__]:
44808 Add Cygwin device names.
44809 (get_ide_disk_name) [__CYGWIN__]: Likewise.
44810 (get_scsi_disk_name) [__CYGWIN__]: Likewise.
44811 (check_device): Return error instead of success on empty name.
44812 (make_device_map): Move label inside linux specific code to
44813 prevent compiler warning.
44814
8124cdb7 448152008-04-30 Robert Millan <rmh@aybabtu.com>
44816
44817 Based on patch from Fabian Greffrath <greffrath@leat.rub.de>
44818 * util/grub.d/10_linux.in: Add ${GRUB_CMDLINE_LINUX_DEFAULT} to the
44819 first boot option.
44820 * util/update-grub.in: Export GRUB_CMDLINE_LINUX_DEFAULT.
44821
094c01d0 448222008-04-29 Robert Millan <rmh@aybabtu.com>
44823
44824 * docs/grub.cfg: New file (example GRUB configuration).
44825
f4b1fc02 448262008-04-26 Robert Millan <rmh@aybabtu.com>
44827
329ce2a5 44828 * DISTLIST: Sort (sort -u < DISTLIST | sponge DISTLIST). Add
44829 `loader/i386/ieee1275/linux.c', `loader/i386/ieee1275/linux_normal.c'
44830 and `disk/ieee1275/nand.c'.
f4b1fc02 44831
25f16ec1 448322008-04-25 Bean <bean123ch@gmail.com>
f19dbdb7 44833
25f16ec1 44834 * Makefile.in (RMKFILES): Add missing arch i386-ieee1275 and
44835 i386-linuxbios.
44836
44837 * commands/hexdump.c (grub_cmd_hexdump): Support dumping of device,
44838 change the buffer size to 4096 for cdrom device.
44839
44840 * conf/i386-ieee1275.rmk (pkglib_MODULES): Add _linux.mod, linux.mod
44841 and nand.mod.
44842 (_linux_mod_SOURCES): New variable.
44843 (_linux_mod_CFLAGS): Likewise.
44844 (_linux_mod_LDFLAGS): Likewise.
44845 (linux_mod_SOURCES): Likewise.
44846 (linux_mod_CFLAGS): Likewise.
44847 (linux_mod_LDFLAGS): Likewise.
44848 (nand_mod_SOURCES): Likewise.
44849 (nand_mod_CFLAGS): Likewise.
44850 (nand_mod_LDFLAGS): Likewise.
44851
44852 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Return
44853 GRUB_ERR_UNKNOWN_DEVICE instead of GRUB_ERR_BAD_DEVICE if no device
44854 type property. (nand device in olpc don't have this property)
44855
44856 * include/grub/disk.h (grub_disk_dev_id): New macro
44857 GRUB_DISK_DEVICE_NAND_ID.
44858
44859 * include/grub/i386/ieee1275/loader.h (grub_rescue_cmd_linux): New
44860 function prototype.
44861 (grub_rescue_cmd_initrd): Likewise.
44862
44863 * include/grub/i386/linux.h (GRUB_LINUX_OFW_SIGNATURE): New macro.
44864 (linux_kernel_params): Add new member ofw_signature, ofw_num_items,
44865 ofw_cif_handler and ofw_idt, adjust padding number.
f19dbdb7 44866
25f16ec1 44867 * include/grub/i386/pc/memory.h (grub_upper_mem): Export it if
44868 GRUB_MACHINE_IEEE1275 is defined.
44869
44870 * include/grub/ieee1275/ieee1275.h (grub_available_iterate):
44871 Use NESTED_FUNC_ATTR attribute on the hook parameter.
44872
44873 * kern/powerpc/ieee1275/init.c (grub_claim_heap): Use NESTED_FUNC_ATTR
44874 on nested function heap_init.
44875 (grub_upper_mem): New variable for i386-ieee1275.
44876 (grub_get_extended_memory): New function for i386-ieee1275.
44877 (grub_machine_init): Call grub_get_extended_memory for i386-ieee1275.
44878
44879 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Use
44880 NESTED_FUNC_ATTR on the hook parameter. Don't quit if no device type
44881 property.
f19dbdb7 44882
25f16ec1 44883 * loader/i386/ieee1275/linux.c: New file.
44884
44885 * loader/i386/ieee1275/linux_normal.c: New file.
44886
44887 * disk/ieee1275/nand.c: New file.
44888
e89d61e9 448892008-04-18 Thomas Schwinge <tschwinge@gnu.org>
44890
44891 * util/i386/pc/grub-mkrescue.in (grub_mkimage): Don't overwrite correct
44892 value.
44893 * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Likewise.
44894
602566f6 448952008-04-18 Robert Millan <rmh@aybabtu.com>
44896
44897 Restructures early code path on ieee1275 to unify grub_main() as
44898 the first C function that is executed in every platform.
44899
44900 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_init): New prototype.
44901 * kern/i386/ieee1275/startup.S (_start): Jump to grub_main() instead of
44902 cmain().
44903 * kern/powerpc/ieee1275/crt0.S (_start): Likewise.
44904 * kern/ieee1275/cmain.c (cmain): Rename to ...
44905 * kern/ieee1275/cmain.c (grub_ieee1275_init): ... this.
44906 * kern/ieee1275/init.c (grub_machine_init): Call grub_ieee1275_init()
44907 at the beginning.
44908
57490c2b 449092008-04-18 Robert Millan <rmh@aybabtu.com>
44910
44911 * util/update-grub.in: Fix syntax error when setting
44912 `GRUB_PRELOAD_MODULES'.
44913 Reported by Stephane Chazelas <stephane@artesyncp.com>
44914
1977517d 449152008-04-17 Lubomir Kundrak <lkundrak@redhat.com>
44916
44917 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): take only .text
44918 section into account, newer toolchains generate unique build ids
44919 * configure.ac: remove the test for --build-id=none acceptance,
e0c5dacb 44920 we want build ids to be preserved
1977517d 44921 * genmk.rb: add -R .note.gnu.build-id to objcopy, so build id
44922 far from other sections don't cause the raw binary images grow
44923 size
44924
bfb1f1a2 449252008-04-15 Robert Millan <rmh@aybabtu.com>
44926
44927 * disk/lvm.c: Update copyright year.
44928 * kern/misc.c: Likewise.
44929
01979850 449302008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
44931
44932 * disk/lvm.c (grub_lvm_scan_device): Add forgotten failure path when
f19dbdb7 44933 there is no memory left for physical volume name.
01979850 44934
0a1150e2 449352008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
44936
44937 * disk/lvm.c (grub_lvm_scan_device): Fix logical volume's physical
44938 volume name mapping to support bigger than 9 character names properly.
44939
82ead3fe 449402008-04-13 Robert Millan <rmh@aybabtu.com>
44941
44942 * disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Fix CHS limit check,
44943 as per http://www.allensmith.net/Storage/HDDlimit/Int13h.htm
44944
e54a72f5 449452008-04-13 Christian Franke <franke@computer.org>
44946
44947 * util/i386/pc/grub-mkrescue.in: Add --emulation=floppy
44948 to create a floppy emulation boot CD when non emulation mode
44949 does not work.
44950 Enable Joliet CD filesystem extension.
44951
9fe86034 449522008-04-13 Robert Millan <rmh@aybabtu.com>
44953
44954 * kern/misc.c (grub_strncat): Fix off-by-one error.
44955 Reported by Zhang Huan <zhanghuan@nrchpc.ac.cn>
44956
44957 * kern/env.c (grub_env_context_close): Clear current context, not
44958 previous one.
44959 Patch from Zhang Huan <zhanghuan@nrchpc.ac.cn>
44960
44961 * kern/misc.c (grub_strcat): Minor speed optimization (same code size).
44962
7ceeee39 449632008-04-13 Robert Millan <rmh@aybabtu.com>
44964
44965 Improve robustness when handling LVM.
44966
44967 * disk/lvm.c (grub_lvm_getvalue): Return 0 when `*p' is NULL
f19dbdb7 44968 (and leave `*p' unmodified).
7ceeee39 44969 (grub_lvm_iterate): Don't assume `vg->lvs != NULL' when iterating
44970 through it.
44971 (grub_lvm_memberlist): Don't assume `lv->vg->pvs != NULL' when
44972 iterating through it.
44973 (grub_lvm_open): Don't assume `vg->lvs != NULL' when iterating
44974 through it.
fe6b695a 44975 (grub_lvm_scan_device): Check the return value (and fail gracefully
7ceeee39 44976 when due) on each grub_lvm_getvalue() or grub_strstr() call.
44977 Don't assume `vg->pvs != NULL' when iterating through it.
44978
58cd3d85 449792008-04-13 Robert Millan <rmh@aybabtu.com>
44980
44981 * gendistlist.sh (EXTRA_DISTFILES): Add `genpartmaplist.sh'.
44982 * genmk.rb (partmap): New variable.
44983 (CLEANFILES, PARTMAPFILES): Add #{partmap}.
44984 (#{partmap}): New target rule.
44985 * genpartmaplist.sh: New file.
44986 * Makefile.in (pkglib_DATA): Add partmap.lst.
44987 (partmap.lst): New target rule.
44988 * util/i386/pc/grub-mkrescue.in: Generate grub.cfg that loads needed
44989 modules (including all partition maps), instead of preloading them.
44990
78b51059 449912007-04-13 Fabian Greffrath <fabian.greffrath@web.de>
44992
44993 * util/grub.d/30_os-prober.in: New script. Use `os-prober' and
44994 `linux-boot-prober' (if installed) to detect other operating
44995 systems which are installed on the computer and add them to
44996 the boot menu.
44997 * conf/common.rmk: Build and install 30_os-prober.
44998
a91627b4 449992008-04-12 Robert Millan <rmh@aybabtu.com>
45000
45001 * kern/powerpc/ieee1275/init.c: Move from here ...
45002 * kern/ieee1275/init.c: ... to here. Update all users.
45003
45004 * kern/powerpc/ieee1275/cmain.c: Move from here ...
45005 * kern/ieee1275/cmain.c: ... to here. Update all users.
45006
45007 * kern/powerpc/ieee1275/openfw.c: Move from here ...
45008 * kern/ieee1275/openfw.c: ... to here. Update all users.
45009
45010 * loader/powerpc/ieee1275/multiboot2.c: Move from here ...
45011 * loader/ieee1275/multiboot2.c: ... to here. Update all users.
45012
322562ea 450132008-04-10 Pavel Roskin <proski@gnu.org>
45014
45015 * configure.ac: Always use "_cv_" in cache variables for
45016 compatibility with Autoconf 2.62.
45017
a02a73c5 450182008-04-07 Robert Millan <rmh@aybabtu.com>
45019
45020 Revert grub/machine/init.h addition by Pavel (since it breaks on
45021 i386-ieee1275 and others):
45022 * util/i386/pc/misc.c: Remove grub/machine/init.h.
45023 * util/powerpc/ieee1275/misc.c: Likewise.
45024
25c024b1 450252008-04-07 Robert Millan <rmh@aybabtu.com>
45026
45027 * util/grub-probe.c (probe): Improve error message.
45028
3cbd2f98 450292008-04-07 Robert Millan <rmh@aybabtu.com>
45030
45031 * util/biosdisk.c (read_device_map): Skip devices that don't exist
45032 (this prevents the presence of a bogus entry from ruining the whole
45033 thing).
45034
87a297bf 450352008-04-06 Pavel Roskin <proski@gnu.org>
45036
36747a62 45037 * util/biosdisk.c: Include grub/util/biosdisk.h.
45038 * util/grub-fstest.c (execute_command): Make static.
45039 * util/grub-mkdevicemap.c (check_device): Likewise.
45040 * util/i386/pc/misc.c: Include grub/machine/init.h.
45041 * util/powerpc/ieee1275/misc.c: Likewise.
45042 * util/lvm.c: Include grub/util/lvm.h.
45043 * util/misc.c: Include grub/kernel.h, grub/misc.h and
45044 grub/cache.h.
45045 * util/raid.c: Include grub/util/raid.h.
45046 (grub_util_getdiskname): Make static.
45047
87a297bf 45048 * util/grub-emu.c (main): Remove calls to grub_hostfs_init() and
45049 grub_hostfs_fini(), as they are called from grub_init_all() and
45050 grub_fini_all() respectively. This fixes an infinite loop in
45051 grub-fstest due to double registration of hostfs.
45052 Reported by Christian Franke <Christian.Franke@t-online.de>
45053
f6ce7629 450542008-04-05 Pavel Roskin <proski@gnu.org>
45055
45056 * bus/pci.c (grub_pci_iterate): For multifunction devices, probe
45057 all 8 functions. Otherwise, probe function 0 only.
45058
070e49e4 450592008-04-04 Pavel Roskin <proski@gnu.org>
45060
8b088a4c 45061 * commands/lspci.c (grub_lspci_iter): Print the bus number
45062 correctly.
45063
4f657021 45064 * commands/lspci.c (grub_pci_classes): Fix typos.
45065 (grub_lspci_iter): Don't print func twice. Print vendor ID
45066 before device ID, as it's normally done.
45067
070e49e4 45068 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
45069 Fix signedness warnings.
45070 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate):
45071 Likewise.
45072 * util/ieee1275/get_disk_name.c: Include config.h so that
45073 _GNU_SOURCE is defined and getline() is declared. Mark an
45074 unused argument as such. Fix a signedness warning.
45075
ba7328dc 450762008-04-02 Pavel Roskin <proski@gnu.org>
45077
26887f22 45078 * genkernsyms.sh.in: Use more robust assignments for CC and
45079 srcdir. Quote srcdir.
45080 * gensymlist.sh.in: Likewise. Assert at the compile time that
45081 the symbol table is not empty.
45082
ba7328dc 45083 * disk/raid.c (grub_raid_memberlist): Fix a signedness warning.
45084 * fs/cpio.c (grub_cpio_read): Likewise.
45085
0f582c6b 450862008-04-01 Pavel Roskin <proski@gnu.org>
45087
4b6e1995 45088 * disk/ata.c (grub_ata_open): Don't lose precision in disk->id.
45089 * disk/host.c (grub_host_open): Likewise.
45090 * disk/loopback.c (grub_loopback_open): Likewise.
45091 * disk/memdisk.c (grub_memdisk_open): Use a string pointer for
45092 disk->id as in disk/host.c, not a multi-character constant.
45093
828a2768 45094 * util/grub-fstest.c (cmd_cmp): Use fseeko(), not fseek(). The
45095 later is obsolete, potentially dangerous and sets a bad example.
45096 * util/i386/efi/grub-mkimage.c (make_header): Likewise.
45097 * util/misc.c (grub_util_get_image_size): Likewise.
45098
2bb4fb47 45099 * disk/loopback.c (options): Improve help for "--partitions".
45100
0f582c6b 45101 * normal/arg.c (grub_arg_show_help): Fix spacing of the long
45102 options to align them with the short options, e.g. "echo -e".
45103
a33224e0 451042008-03-31 Bean <bean123ch@gmail.com>
45105
45106 * video/reader/png.c (grub_png_data): New member is_16bit and
45107 image_data.
45108 (grub_png_decode_image_header): Detect 16 bit png image.
45109 (grub_png_convert_image): New function to convert 16 bit image to 8 bit.
45110 (grub_png_decode_png): Call grub_png_convert_image for 16 bit image.
45111 (grub_video_reader_png): Release memory occupied by image_data.
45112
45113 * fs/ntfs.c (find_attr): Handle non-resident attribute list larger than
45114 4096 bytes.
45115 (grub_nfs_mount): Skip the test for sector per cluster.
45116
45117 * include/grub/ntfs.h (MAX_SPC): Removed.
45118
86cb4f54 451192008-03-31 Bean <bean123ch@gmail.com>
45120
45121 * conf/common.rmk (pkgdata_MODULES): Add afs.mod.
45122 (grub_probe_SOURCES): Add fs/afs.c.
45123 (grub_fstest_SOURCES): Likewise.
45124 (afs_mod_SOURCES): New variable.
45125 (afs_mod_CFLAGS): Likewise.
45126 (afs_mod_LDFLAGS): Likewise.
45127
45128 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/afs.c.
45129 (grub_emu_SOURCES): Likewise.
45130
45131 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
45132
45133 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
45134
45135 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
45136
45137 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
45138
45139 * fs/afs.c: New file.
45140
17c74c21 451412008-03-30 Pavel Roskin <proski@gnu.org>
45142
4cb68e89 45143 * disk/host.c: Include grub/misc.h to fix a warning.
45144 * util/hostfs.c: Use GRUB_MOD_INIT and GRUB_MOD_FINI to fix
45145 warnings about implicit declarations.
45146
8790bb04 45147 * fs/udf.c (grub_udf_mount): Fix warning about a shadowing a
45148 variable.
45149 * include/grub/i386/loader.h: Change declaration of
45150 grub_linux_boot() to match what grub_loader_set() expects.
45151 * util/getroot.c (grub_guess_root_device): Return const char* to
45152 fix a warning.
45153 * util/grub-probe.c (probe): Fix a warning about uninitialized
45154 abstraction_name variable.
45155 * util/i386/get_disk_name.c (grub_util_get_disk_name): Mark
45156 second argument as unused to fix a warning.
45157
9a3f3296 45158 * loader/i386/pc/multiboot2.c (grub_mb2_arch_elf64_hook): Add
45159 missing grub_error() call.
45160
0ecef90d 45161 * util/update-grub_lib.in: Define datarootdir, since Autoconf
45162 2.60 and newer uses it to define datadir.
45163
0bf6d401 45164 * commands/sleep.c: Fix warning about implicit declaration.
45165 * disk/memdisk.c: Likewise.
45166 * loader/aout.c: Likewise.
45167 * loader/i386/bsd_normal.c: Likewise.
45168 * util/grub-probe.c: Likewise.
45169
7cdacf97 45170 * commands/i386/cpuid.c (has_longmode): Make static.
45171 * disk/i386/pc/biosdisk.c (cd_drive): Likewise.
45172 * include/grub/i386/bsd.h (bios_memmap_t): Remove, it's unused.
45173
17c74c21 45174 * kern/i386/pc/startup.S (real_to_prot): Use %cs prefix to load
45175 GDT. This is more robust, as %ds can change.
45176 (grub_biosdisk_rw_int13_extensions): Don't clear %ds before
45177 calling real_to_prot().
45178 (grub_biosdisk_get_diskinfo_int13_extensions): Likewise.
45179
80a3e68b 451802008-03-28 Pavel Roskin <proski@gnu.org>
45181
45182 * kern/i386/pc/startup.S: Assert that uncompressed functions
45183 don't spill beyond GRUB_KERNEL_MACHINE_RAW_SIZE.
45184 * kern/i386/pc/lzo1x.S: Remove all .align directives in the
45185 code, as they push parts of the code (error handlers) beyond
45186 GRUB_KERNEL_MACHINE_RAW_SIZE. Speed is not as important in this
45187 code as correctness and size.
45188
77bcd272 451892008-03-28 Pavel Roskin <proski@gnu.org>
45190
45191 * kern/i386/pc/startup.S
45192 (grub_biosdisk_get_diskinfo_int13_extensions): When converting
45193 data block address to the real mode, keep offset minimal. This
45194 works around a bug in AWARD BIOS on old Athlon systems, which
45195 makes CD detection hang.
45196
c5dfd43b 451972008-03-26 Pavel Roskin <proski@gnu.org>
45198
45199 * normal/color.c (grub_parse_color_name_pair): Make `name' a
45200 const.
45201 * include/grub/normal.h: Add grub_parse_color_name_pair()
45202 declaration.
45203
bf962df2 452042008-03-24 Bean <bean123ch@gmail.com>
45205
45206 * disk/i386/pc/biosdisk.c (cd_start): Removed.
45207 (cd_count): Removed.
45208 (cd_drive): New variable.
45209 (grub_biosdisk_get_drive): Don't check for (cdN) device.
45210 (grub_biosdisk_call_hook): Likewise.
45211 (grub_biosdisk_iterate): Change cdrom detection method.
45212 (grub_biosdisk_open): Replace cd_start with cd_drive.
45213 (GRUB_MOD_INIT): Use grub_biosdisk_get_cdinfo_int13_extension to
45214 detect cdrom device.
45215
45216 * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_MACHINE_CDROM_START):
45217 Removed.
45218 (GRUB_BIOSDISK_MACHINE_CDROM_END): Removed.
45219 (GRUB_BIOSDISK_CDTYPE_NO_EMUL): New macro.
45220 (GRUB_BIOSDISK_CDTYPE_1_2_M): Likewise.
45221 (GRUB_BIOSDISK_CDTYPE_1_44_M): Likewise.
45222 (GRUB_BIOSDISK_CDTYPE_2_88_M): Likewise.
45223 (GRUB_BIOSDISK_CDTYPE_HARDDISK): Likewise.
45224 (GRUB_BIOSDISK_CDTYPE_MASK): Likewise.
45225 (grub_biosdisk_cdrp): New structure.
45226 (grub_biosdisk_get_cdinfo_int13_extensions): New function.
45227
45228 * include/grub/i386/pc/kernel.h (grub_boot_drive): Export this variable.
45229
45230 * kern/i386/pc/init.c (make_install_device): Don't use (cdN) as root
45231 device.
45232
45233 * kern/i386/pc/startup.S (grub_biosdisk_get_cdinfo_int13_extensions):
45234 New function.
45235
68e7fc7a 452362008-03-20 Robert Millan <rmh@aybabtu.com>
45237
45238 Remove 2 TiB limit in ata.mod.
45239 * disk/ata.c (grub_ata_device): Promote `size' to grub_uint64_t.
45240 (grub_ata_dumpinfo): Print sector count with 0x%llx.
45241 (grub_ata_identify): Interpret `&info16[100]' as a pointer to
45242 grub_uint64_t instead of grub_uint32_t.
45243
38ad2cf5 452442008-03-05 Bean <bean123ch@gmail.com>
45245
45246 * loader/i386/pc/multiboot.c (grub_multiboot_get_bootdev): New function.
45247 (grub_multiboot): Set boot device.
45248
45249 * boot/i386/pc/lnxboot.S (real_code_2): Set %dh to 0xFF.
45250
2b89344e 452512008-03-02 Bean <bean123ch@gmail.com>
45252
45253 * fs/reiserfs.c (grub_reiserfs_read_symlink): Add 0 at the end of
45254 symlink_buffer.
45255
87a95d1f 452562008-03-01 Yoshinori K. Okuji <okuji@enbug.org>
45257
45258 * DISTLIST: Added docs/fdl.texi, docs/grub.texi, docs/mdate-sh and
45259 texinfo.tex.
45260
45261 * docs/grub.texi: New file. Copied from GRUB Legacy, and slightly
45262 modified.
45263
45264 * docs/fdl.texi: New file.
f19dbdb7 45265
87a95d1f 45266 * docs/mdate-sh: New file. Copied from gnulib.
45267 * docs/texinfo.tex: Likewise.
45268
45269 * config.guess: Updated from gnulib.
45270 * install-sh: Likewise.
45271
7dc15d8e 452722008-02-28 Robert Millan <rmh@aybabtu.com>
45273
45274 * conf/i386-linuxbios.rmk (pkglib_MODULES): Add aout.mod.
45275 (aout_mod_SOURCES): New variable.
45276 (aout_mod_CFLAGS): Likewise.
45277 (aout_mod_LDFLAGS): Likewise.
45278
45279 * conf/i386-ieee1275.rmk: Likewise.
45280
b00ab696 452812008-02-28 Robert Millan <rmh@aybabtu.com>
45282
45283 * util/update-grub.in: Reorganise terminal validity check. Accept
45284 `ieee1275:console' (OLPC) and `*:gfxterm' as valid too.
45285 Based on suggestion by Franklin PIAT.
45286
79ca2d78 452872008-02-28 Fabian Greffrath <greffrath@leat.rub.de>
45288
45289 * include/grub/util/getroot.h (grub_util_check_block_device): Export new
45290 function.
45291 * util/getroot.c (grub_util_check_block_device): New function that
45292 returns the given argument if it is a block device and returns NULL else.
45293 * util/grub-probe.c (argument_is_device): New variable.
45294 (probe): Promote device_name from a variable to an argument. Receive
45295 device_name from grub_util_check_block_device() if path is NULL and from
45296 grub_guess_root_device() else. Do not free() device_name anymore.
f19dbdb7 45297 (options): Introduce new parameter '-d, --device'.
79ca2d78 45298 (main): Add description of the new parameter to the help screen.
45299 Rename path variable to argument. Set argument_is_device if the '-d'
45300 option is given. Pass argument to probe() depending on
45301 argument_is_device.
45302
0d16e571 453032008-02-24 Bean <bean123ch@gmail.com>
45304
45305 * fs/iso9660.c (GRUB_ISO9660_VOLDESC_BOOT): New macro.
45306 (GRUB_ISO9660_VOLDESC_PRIMARY): Likewise.
45307 (GRUB_ISO9660_VOLDESC_SUPP): Likewise.
45308 (GRUB_ISO9660_VOLDESC_PART): Likewise.
45309 (GRUB_ISO9660_VOLDESC_END): Likewise.
45310 (grub_iso9660_primary_voldesc): New member escape.
45311 (grub_iso9660_data): New member joliet.
45312 (grub_iso9660_convert_string): New function.
45313 (grub_iso9660_mount): Detect joliet extension.
45314 (grub_iso9660_iterate_dir): Convert filename when joliet is detected.
45315 (grub_iso9660_iso9660_label): Likewise.
45316
45317 * conf/common.rmk (pkgdata_MODULES): Add udf.mod.
45318 (grub_setup_SOURCES): Add fs/udf.c.
45319 (grub_fstest_SOURCES): Likewise.
45320 (udf_mod_SOURCES): New variable.
45321 (udf_mod_CFLAGS): Likewise.
45322 (udf_mod_LDFLAGS): Likewise.
45323
45324 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/udf.c.
45325 (grub_emu_SOURCES): Likewise.
45326
45327 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
45328
45329 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
45330
45331 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
45332
45333 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
45334
45335 * fs/udf.c: New file.
45336
8a594a17 453372008-02-24 Robert Millan <rmh@aybabtu.com>
45338
45339 * conf/i386-efi.rmk (normal/function.c_DEPENDENCIES)
45340 (normal/lexer.c_DEPENDENCIES): New variables.
45341 * conf/i386-ieee1275.rmk (normal/function.c_DEPENDENCIES)
45342 (normal/lexer.c_DEPENDENCIES): Likewise.
45343 * conf/i386-linuxbios.rmk (normal/function.c_DEPENDENCIES)
45344 (normal/lexer.c_DEPENDENCIES): Likewise.
45345 * conf/i386-pc.rmk (normal/function.c_DEPENDENCIES)
45346 (normal/lexer.c_DEPENDENCIES): Likewise.
45347 * conf/powerpc-ieee1275.rmk (normal/function.c_DEPENDENCIES)
45348 (normal/lexer.c_DEPENDENCIES): Likewise.
45349 * conf/sparc64-ieee1275.rmk (normal/function.c_DEPENDENCIES)
45350 (normal/lexer.c_DEPENDENCIES): Likewise.
45351
2dc33c03 453522008-02-23 Robert Millan <rmh@aybabtu.com>
45353
45354 * partmap/gpt.c (grub_gpt_magic): Add `0x' qualifier to each member,
45355 since they were intended to be in hex. This didn't break previously
45356 because of a bug in gpt_partition_map_iterate() (see below).
45357
45358 (gpt_partition_map_iterate): Replace `grub_memcmp' with `! grub_memcmp'
45359 when checking the validity of GPT header.
45360 Remove `partno', since it always provides the same information as `i'.
45361
f6f4cfb0 453622008-02-21 Yoshinori K. Okuji <okuji@enbug.org>
45363
45364 * include/grub/efi/time.h: Fix a wrong comment.
45365
79ff665f 453662008-02-19 Pavel Roskin <proski@gnu.org>
45367
45368 * kern/rescue.c (grub_enter_rescue_mode): Improve initial
45369 message.
45370
d38e24c2 453712008-02-19 Bean <bean123ch@gmail.com>
45372
45373 * conf/i386-pc.rmk (pkglib_MODULES): Add aout.mod _bsd.mod and bsd.mod.
45374 (aout_mod_SOURCES): New variable.
45375 (aout_mod_CFLAGS): Likewise.
45376 (aout_mod_LDFLAGS): Likewise.
45377 (_bsd_mod_SOURCES): New variable.
45378 (_bsd_mod_CFLAGS): Likewise.
45379 (_bsd_mod_LDFLAGS): Likewise.
45380 (bsd_mod_SOURCES): New variable.
45381 (bsd_mod_CFLAGS): Likewise.
45382 (bsd_mod_LDFLAGS): Likewise.
45383
45384 * include/grub/aout.h: New file.
45385
45386 * include/grub/i386/loader.h (grub_unix_real_boot): New function.
45387
45388 * include/grub/i386/bsd.h: New file.
45389
45390 * include/grub/i386/pc/init.h (grub_get_mmap_entry): Use EXPORT_FUNC
45391 to make it public.
45392
45393 * kern/elf.c (grub_elf32_load): Get the physical address after the hook
45394 function is called, so that it's possible to change it inside the hook.
45395 (grub_elf64_load): Likewise.
45396 (grub_elf_file): Don't close the file if elf header is not found.
45397 (grub_elf_close): Close the file if grub_elf_file fails (The new
45398 grub_elf_file won't close it).
45399 (grub_elf32_size): Use NESTED_FUNC_ATTR for nested function calcsize.
45400 (grub_elf64_size): Likewise.
45401
45402 * kern/i386/loader.S (grub_unix_real_boot): New function.
45403
45404 * loader/aout.c: New file.
45405
45406 * loader/i386/bsd.c: New file.
45407
45408 * loader/i386/bsd_normal.c: New file.
45409
45410 * loader/i386/pc/multiboot.c (grub_multiboot): Handle a.out format.
45411
45412 * loader/multiboot2.c (grub_multiboot2): Reset grub_errno so that it
fe987087 45413 can test other formats.
d38e24c2 45414
b93bdb0f 454152008-02-19 Robert Millan <rmh@aybabtu.com>
45416
45417 * partmap/gpt.c: Include `<grub/gpt_partition.h>'.
45418 (grub_gpt_partition_type_empty): Redefine with macro from
45419 `<grub/gpt_partition.h>'.
45420 (gpt_partition_map_iterate): Adjust partition type comparison.
45421
45422 Export `entry' as partmap-specific `part.data' struct.
45423 (grub_gpt_header, grub_gpt_partentry): Move from here ...
45424
45425 * include/grub/gpt_partition.h (grub_gpt_header)
45426 (grub_gpt_partentry): ... to here (new file).
45427
45428 * util/i386/pc/grub-setup.c: Include `<grub/gpt_partition.h>'.
45429
45430 (grub_gpt_partition_type_bios_boot): New const variable, defined
45431 with macro from `<grub/gpt_partition.h>'.
45432
45433 (setup): Replace `first_start' with `embed_region', which keeps
45434 track of the embed region (and is partmap-agnostic).
45435
45436 Replace find_first_partition_start() with find_usable_region(),
45437 which finds a usable region for embedding using partmap-specific
45438 knowledge (supports PC/MSDOS and GPT).
45439
45440 Fix all assumptions that the embed region start at sector 1, using
45441 `embed_region.start' from now on. Similarly, use `embed_region.end'
45442 rather than `first_start' to calculate available size.
45443
45444 In grub_util_info() message, replace "into after the MBR" with an
45445 indication of the specific sector our embed region starts at.
45446
66cb40f6 454472008-02-19 Robert Millan <rmh@aybabtu.com>
45448
45449 * DISTLIST: Replace `commands/ieee1275/halt.c' and
45450 `commands/ieee1275/reboot.c' with `commands/halt.c' and
45451 `commands/reboot.c'.
45452 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
45453 (halt_mod_SOURCES): Likewise.
45454 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
45455 (halt_mod_SOURCES): Likewise.
45456
b7202015 454572008-02-17 Christian Franke <franke@computer.org>
45458
45459 * commands/cat.c (grub_cmd_cat): Add break on GRUB_TERM_ESC key.
45460
32b0fc49 454612008-02-17 Robert Millan <rmh@aybabtu.com>
45462
45463 * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
45464 set `first_start' to 0 for non-PC/MSDOS partition maps.
45465
aca63502 454662008-02-16 Robert Millan <rmh@aybabtu.com>
45467
45468 * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
45469 do not assume partition map is PC/MSDOS before performing checks that
45470 are specific to that layout.
45471
0de8be86 454722008-02-13 Robert Millan <rmh@aybabtu.com>
45473
45474 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Remove
45475 `commands/i386/pc/halt.c' and `commands/i386/pc/reboot.c'.
45476 * kern/i386/linuxbios/init.c (grub_halt, grub_reboot): Remove stubs.
45477
c3db8364 454782008-02-13 Yoshinori K. Okuji <okuji@enbug.org>
45479
45480 * configure.ac: Only a cosmetic change on the handling of
45481 -fno-stack-protector.
45482
f714229e 454832008-02-12 Alexandre Boeglin <alex@boeglin.org>
45484
c3db8364 45485 * conf/i386-efi.rmk (grub_emu_SOURCES): Replace
45486 commands/i386/pc/halt.c and reboot.c by commands/halt.c and
45487 reboot.c.
f714229e 45488 (grub_install_SOURCES): Add halt.mod and reboot.mod.
45489 (halt_mod_SOURCES): New variable.
45490 (halt_mod_CFLAGS): Likewise.
45491 (halt_mod_LDFLAGS): Likewise.
45492 (reboot_mod_SOURCES): Likewise.
45493 (reboot_mod_CFLAGS): Likewise.
45494 (reboot_mod_LDFLAGS): Likewise.
45495
c3db8364 45496 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace
45497 commands/ieee1275/halt.c and reboot.c by commands/halt.c and
45498 reboot.c.
f714229e 45499 (halt_mod_SOURCES): Likewise.
45500 (reboot_mod_SOURCES): Likewise.
45501
c3db8364 45502 * conf/i386-pc.rmk (grub_emu_SOURCES): Replace
45503 commands/i386/pc/reboot.c by commands/reboot.c.
f714229e 45504 (reboot_mod_SOURCES): Likewise.
45505
45506 * commands/i386/pc/reboot.c: merge this file ...
45507
45508 * commands/ieee1275/reboot.c: ... and this file ...
45509
45510 * commands/reboot.c: ... to this file.
c3db8364 45511 Add some precompiler directive to include the correct header for
45512 each machine.
f714229e 45513
45514 * commands/ieee1275/halt.c: move this file ...
45515
45516 * commands/halt.c: ... to here.
c3db8364 45517 Add some precompiler directive to include the correct header for
45518 each machine.
f714229e 45519
45520 * include/grub/efi/efi.h (grub_reboot): New function declaration.
45521 (grub_halt): Likewise.
45522
45523 * kern/efi/efi.c (grub_reboot): New function.
45524 (grub_halt): Likewise.
45525
c74493e0 455262008-02-12 Robert Millan <rmh@aybabtu.com>
45527
45528 * util/getroot.c (grub_guess_root_device): Inspect /dev/evms before
45529 /dev (like it is done for /dev/mapper). This doesn't provide support
45530 for EVMS, but at least it is now easy to identify the problem when it
45531 arises.
45532
d0db4b04 455332008-02-11 Robert Millan <rmh@aybabtu.com>
45534
45535 * util/biosdisk.c (grub_util_biosdisk_open, linux_find_partition)
45536 (grub_util_biosdisk_get_grub_dev): Check open() exit status by
45537 comparing it with -1, not 0.
45538
bf748642 455392008-02-10 Robert Millan <rmh@aybabtu.com>
45540
45541 * conf/i386-efi.rmk (grub_emu_SOURCES): Add `disk/raid.c' and
45542 `disk/lvm.c'.
45543 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
45544 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
45545
45546 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Move `disk/raid.c' and
45547 `disk/lvm.c' to the end of the list.
45548 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
45549 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
45550
b5db202a 455512008-02-10 Robert Millan <rmh@aybabtu.com>
45552
45553 * kern/main.c (grub_load_normal_mode): Do not reset `grub_errno'. Call
45554 grub_print_error() instead. This will let user know why we're entering
45555 rescue mode.
45556 Based on suggestions from Sam Morris.
45557
83abee31 455582008-02-10 Alexandre Boeglin <alex@boeglin.org>
45559
45560 * normal/arg.c (grub_arg_parse): If one of the args is "--", call add_arg()
45561 on remaining N args, instead of "--" arg N times.
45562
78d5a08b 455632008-02-09 Vesa Jaaskelainen <chaac@nic.fi>
45564
45565 * font/manager.c (unknown_glyph): Added variable for unknown glyph.
45566 (fill_with_default_glyph): Changed to use unknown_glyph for fill
45567 pattern for unknown glyphs.
45568
68807e5f 455692008-02-09 Robert Millan <rmh@aybabtu.com>
45570
45571 * configure.ac: Probe for `help2man'.
45572 * Makefile.in (builddir): New variable.
45573 (HELP2MAN): Likewise. Set to `true' when @HELP2MAN@ doesn't provide it,
45574 or otherwise add a few flags/options to it.
45575 (install-local): For every executable utility or script that is
45576 installed, invoke $(HELP2MAN) to install a manpage based on --help
45577 output.
45578
45579 * util/i386/pc/grub-install.in: Move down `update-grub_lib' sourcing, so
45580 that it doesn't prevent --help from working in build tree.
45581
45582 * util/i386/pc/grub-mkrescue.in (usage): Replace `grub-devel@gnu.org'
45583 with `bug-grub@gnu.org'.
45584 * util/powerpc/ieee1275/grub-mkrescue.in (usage): Likewise.
45585 * util/update-grub.in (usage): New function.
45586 Implement proper argument check, with support for --help and --version
45587 (as well as existing -y).
45588
455892008-02-09 Christian Franke <franke@computer.org>
0d9ff7f0 45590
45591 * commands/cat.c (grub_cmd_cat): Print '\r' as hex to
45592 avoid overwriting previous output.
45593 * kern/rescue.c (grub_rescue_cmd_cat): Likewise.
45594
c1962162 455952008-02-09 Robert Millan <rmh@aybabtu.com>
45596
45597 * normal/menu.c (run_menu): If timeout is set to zero, don't bother
45598 drawing the menu.
45599
3dac2e3f 456002008-02-09 Robert Millan <rmh@aybabtu.com>
45601
45602 * commands/sleep.c: New file.
45603 * conf/common.rmk (pkglib_MODULES): Add `commands/sleep.c'.
45604 (sleep_mod_SOURCES): New variable.
45605 (sleep_mod_CFLAGS): Likewise.
45606 (sleep_mod_LDFLAGS): Likewise.
45607
7a634e08 456082008-02-09 Robert Millan <rmh@aybabtu.com>
45609
45610 * disk/raid.c (grub_raid_scan_device): Add a pair of sanity checks for
45611 situations in which we can deduce the RAID size and the superblock
45612 doesn't match it.
45613
b92f0c18 456142008-02-09 Robert Millan <rmh@aybabtu.com>
45615
45616 * disk/lvm.c [GRUB_UTIL] (grub_lvm_memberlist): New function. Construct
45617 and return a grub_diskmemberlist_t composed of LVM physical volumes.
45618 [GRUB_UTIL] (grub_lvm_dev): Add `memberlist' member.
45619
45620 * disk/raid.c [GRUB_UTIL] (grub_raid_memberlist): New function. Construct
45621 and return a grub_diskmemberlist_t composed of physical array members.
45622 [GRUB_UTIL] (grub_raid_dev): Add `memberlist' member.
45623
45624 * include/grub/disk.h [GRUB_UTIL] (grub_disk_memberlist): New struct
45625 prototype.
45626 [GRUB_UTIL] (struct grub_disk_dev): Add `memberlist' function pointer.
45627 [GRUB_UTIL] (struct grub_disk_memberlist): New struct declaration.
45628 [GRUB_UTIL] (grub_disk_memberlist_t): New typedef.
45629
45630 * util/grub-probe.c (probe): Move partmap probing code from here ...
45631 (probe_partmap): ... to here.
45632 (probe): Use probe_partmap() once for the disk we're probing, and
45633 additionally, when such disk contains a memberlist() struct member,
45634 once for each disk that is contained in the structure returned by
45635 memberlist().
45636
91a4bf68 456372008-02-09 Robert Millan <rmh@aybabtu.com>
45638
45639 * util/grub-probe.c (main): When `verbosity > 1', set `debug'
45640 environment variable to 'all' in order to obtain debug output from
45641 non-util/ code.
45642 * util/i386/pc/grub-setup.c (main): Likewise.
45643
a96f9caa 456442008-02-08 Robert Millan <rmh@aybabtu.com>
45645
45646 * disk/raid.c (grub_raid_scan_device): Check for
45647 `array->device[sb.this_disk.number]' rather than for
45648 `array->device[sb.this_disk.number]->name', since the latter is not
fe6b695a 45649 guaranteed to be accessible.
a96f9caa 45650
b37a9222 456512008-02-08 Robert Millan <rmh@aybabtu.com>
45652
45653 * disk/raid.c: Update copyright.
45654 * fs/cpio.c: Likewise.
45655 * include/grub/raid.h: Likewise.
45656 * loader/i386/pc/multiboot.c: Likewise.
45657 * util/hostfs.c: Likewise.
45658
5626aee1 456592008-02-08 Robert Millan <rmh@aybabtu.com>
45660
45661 * include/grub/raid.h (struct grub_raid_array): Change type of `device'
45662 to a grub_disk_t array.
45663 * disk/raid.c (grub_raid_read): Replace `device[x].disk' accesses with
45664 `device[x]'.
45665 (grub_raid_scan_device): Replace `device[x].name' accesses with
45666 `device[x]->name'. Simplify initialization of `array->device[x]'.
45667
554f0187 456682008-02-08 Robert Millan <rmh@aybabtu.com>
45669
45670 * disk/raid.c (grub_raid_open, grub_raid_scan_device): Add a few
45671 grub_dprintf() calls.
45672 * kern/disk.c (grub_disk_read): Include grub_errmsg in out of range
45673 error message.
45674
1ec8425d 456752008-02-07 Christian Franke <franke@computer.org>
45676
45677 * util/hostfs.c (grub_hostfs_open): Use fseeko and ftello
45678 instead of fseek and ftell to support large files.
45679 (grub_hostfs_read): Likewise.
45680
f2156fda 456812008-02-07 Robert Millan <rmh@aybabtu.com>
45682
45683 Patch from Jeroen Dekkers.
45684 * disk/raid.c (grub_raid_scan_device): Reset `grub_errno' on disk
fe6b695a 45685 failure, since successfully reading all array members might not be
f2156fda 45686 required.
45687
9216e0e7 456882008-02-06 Robert Millan <rmh@aybabtu.com>
45689
45690 * util/grub-probe.c (probe): Simplify partmap probing (with the
45691 assumption that the first word up to the underscore equals to
45692 the module name).
45693
b0dfd29a 456942008-02-06 Christian Franke <franke@computer.org>
45695
45696 * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_NONE
45697 (and set *ofs = 0) instead of GRUB_ERR_FILE_NOT_FOUND on
45698 last block of a cpio or tar stream.
45699 Check for "TRAILER!!!" instead of any empty data
45700 block to detect last block of a cpio stream.
45701 (grub_cpio_dir): Fix constness of variable np.
45702 (grub_cpio_open): Return GRUB_ERR_FILE_NOT_FOUND if
45703 cpio or tar trailer is detected. This fixes a crash
45704 on open of a non existing file.
45705
c32865bf 457062008-02-05 Bean <bean123ch@gmail.com>
45707
45708 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Get physical
45709 address of entry.
45710 (grub_multiboot_load_elf64): Likewise.
45711 (grub_multiboot): Initialize mbi structure.
45712
45713 * util/grub-fstest.c: Don't include unused header file script.h.
45714
fe6b695a 45715 * conf/common.rmk (grub-fstest.c_DEPENDENCIES): Move to the beginning
c32865bf 45716 of file.
45717 (grub_fstest_SOURCES): Likewise.
45718
409480b7 457192008-02-05 Robert Millan <rmh@aybabtu.com>
45720
45721 * include/grub/term.h (GRUB_TERM_LEFT, GRUB_TERM_RIGHT)
45722 (GRUB_TERM_UP, GRUB_TERM_DOWN, GRUB_TERM_HOME, GRUB_TERM_END)
45723 (GRUB_TERM_DC, GRUB_TERM_PPAGE, GRUB_TERM_NPAGE, GRUB_TERM_ESC)
45724 (GRUB_TERM_TAB, GRUB_TERM_BACKSPACE): New macros.
45725
45726 * kern/i386/pc/startup.S: Include `<grub/term.h>'.
45727 (translation_table): Replace hardcoded values with macros
45728 provided by `<grub/term.h>'.
45729
45730 * term/i386/pc/at_keyboard.c: Include `<grub/term.h>'.
45731 (keyboard_map): Correct/add a few values, with macros provided
45732 by `<grub/term.h>'.
45733 (keyboard_map_shift): Zero values that don't differ from their
45734 `keyboard_map' equivalents.
45735 (grub_console_checkkey): Optimize KEYBOARD_STATUS_CAPS_LOCK toggling.
45736 Discard the second scan code that is always sent by Caps lock.
45737 Only use `keyboard_map_shift' when it provides a non-zero value,
45738 otherwise fallback to `keyboard_map'.
45739
99fadbaa 457402008-02-04 Bean <bean123ch@gmail.com>
45741
45742 * Makefile.in (enable_grub_fstest): New variable.
45743
45744 * conf/common.rmk (grub_fstest_init.lst): New rule.
45745 (grub_fstest_init.h): Likewise.
45746 (grub_fstest_init.c): Likewise.
45747 (util/grub-fstest.c_DEPENDENCIES): New variable.
45748 (grub_fstest_SOURCES): Likewise.
45749
45750 * configure.ac (enable_grub_fstest): Check for --enable-grub-fstest.
45751
45752 * util/grub-fstest.c: New file.
45753
bf567c50 457542008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
45755
45756 Make grub-setup handle a separate root device.
f19dbdb7 45757
bf567c50 45758 * util/i386/pc/grub-setup.c (setup): Always open the root device,
45759 so that the root device can be compared with the destination
45760 device.
45761 When embedding the core image, if the root and destination devices
45762 are different, set ROOT_DRIVE to ROOT_DEV->DISK->ID. Otherwise, to
45763 0xFF.
45764 When not embedding, set ROOT_DRIVE to 0xFF.
f19dbdb7 45765
9be6b98b 457662008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
45767
45768 Add support for having a grub directory in a different drive. This
45769 is still only the data handling part.
f19dbdb7 45770
9be6b98b 45771 * kern/i386/pc/startup.S (multiboot_trampoline): Set %dh to 0xFF.
45772 (codestart): Save %dh in GRUB_ROOT_DRIVE.
45773 (grub_root_drive): New variable.
45774
45775 * kern/i386/pc/init.c (make_install_device): Use GRUB_ROOT_DRIVE
45776 instead of GRUB_BOOT_DRIVE to construct a device name. Set
45777 GRUB_ROOT_DRIVE to GRUB_BOOT_DRIVE if it is 0xFF, otherwise use it
45778 as it was.
45779
45780 * include/grub/i386/pc/kernel.h (grub_root_drive): New prototype.
45781
45782 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_ROOT_DRIVE): New
45783 macro.
45784 (GRUB_BOOT_MACHINE_DRIVE_CHECK): Set to 0x4f.
45785
45786 * boot/i386/pc/pxeboot.S (_start): Set %dh to 0xFF. For now, this
45787 is bogus, because PXE booting does not specify any drive
45788 correctly.
45789
45790 * boot/i386/pc/lnxboot.S (reg_edx): Set the second byte to 0xFF. I
45791 am not sure if this is really correct.
45792
45793 * boot/i386/pc/cdboot.S: Set %dh to 0xFF, because the root drive
45794 is always identical to the boot drive when booting from a CD.
45795
45796 * boot/i386/pc/boot.S (MOV_MEM_TO_AL): Removed. Not needed any
45797 longer.
45798 (root_drive): New variable.
45799 (real_start): Unconditionally set %dh to ROOT_DRIVE.
45800 (setup_sectors): Push %dx right after popping it, because %dh will
45801 be modified later.
45802 (copy_buffer): Restore %dx.
45803
e0ca0677 458042008-02-03 Robert Millan <rmh@aybabtu.com>
45805
45806 * util/i386/pc/grub-mkrescue.in: Rewrite most of image generation to
45807 use `cdboot.img' for cdrom images.
45808
3b3f6629 458092008-02-03 Robert Millan <rmh@aybabtu.com>
45810
45811 * util/grub.d/00_header.in: Issue scripting commands for GRUB to
45812 only setup gfxterm when `font' command has succeeded.
45813
d42b3672 458142008-02-03 Robert Millan <rmh@aybabtu.com>
45815
45816 * loader/multiboot_loader.c [GRUB_MACHINE_LINUXBIOS]
45817 (grub_rescue_cmd_multiboot_loader)
45818 (grub_rescue_cmd_module_loader): Enable multiboot1 calls.
45819
fa370ea6 458202008-02-03 Pavel Roskin <proski@gnu.org>
45821
e0c5dacb 45822 * kern/i386/pc/startup.S (grub_chainloader_real_boot): Pop
fa370ea6 45823 %edx and %esi from stack only after grub_gate_a20() is called.
45824 grub_gate_a20() clobbers %edx.
45825
f2a76e1d 458262008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
45827
45828 * configure.ac (AC_INIT): Bumped to 1.96.
45829
45830 * DISTLIST: Added boot/i386/pc/cdboot.S, bus/pci.c,
45831 commands/lspci.c,disk/memdisk.c, include/grub/pci.h,
45832 include/grub/i386/pc/pci.h, video/readers/jpeg.c, and
45833 video/readers/png.c.
45834
90fd32d1 458352008-02-03 Bean <bean123ch@gmail.com>
9be665dd 45836
45837 * conf/i386-pc.rmk (pkglib_IMAGES): Add cdboot.img.
45838 (cdboot_img_SOURCES): New variable.
45839 (cdboot_img_ASFLAGS): New variable.
45840 (cdboot_img_LDFLAGS): New variable.
45841
45842 * boot/i386/pc/cdboot.S: New file.
45843
45844 * disk/i386/pc/biosdisk.c (cd_start): New variable.
45845 (cd_count): Likewise.
45846 (grub_biosdisk_get_drive): Add support for cd device.
45847 (grub_biosdisk_call_hook): Likewise.
45848 (grub_biosdisk_iterate): Likewise.
45849 (grub_biosdisk_open): Likewise.
45850 (GRUB_BIOSDISK_CDROM_RETRY_COUNT): New macro.
45851 (grub_biosdisk_rw): Support reading from cd device.
45852 (GRUB_MOD_INIT): Iterate cd devices.
45853
45854 * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_FLAG_CDROM): New macro.
45855 (GRUB_BIOSDISK_MACHINE_CDROM_START): Likewise.
45856 (GRUB_BIOSDISK_MACHINE_CDROM_END): Likewise.
45857
45858 * kern/i386/pc/init.c (make_install_device): Check for cd device.
45859
4020aa53 458602008-02-02 Robert Millan <rmh@aybabtu.com>
45861
45862 * commands/read.c: New file.
45863 * conf/common.rmk (pkglib_MODULES): Add `commands/read.c'.
45864 (read_mod_SOURCES): New variable.
45865 (read_mod_CFLAGS): Likewise.
45866 (read_mod_LDFLAGS): Likewise.
45867
e03a1132 458682008-02-02 Robert Millan <rmh@aybabtu.com>
45869
45870 * normal/main.c (grub_normal_execute): Check for `menu->size' when
45871 determining whether menu has to be displayed.
45872
58c69220 458732008-02-02 Marco Gerards <marco@gnu.org>
45874
45875 * bus/pci.c: New file.
45876
45877 * include/grub/pci.h: Likewise.
45878
45879 * include/grub/i386/pc/pci.h: Likewise.
45880
45881 * commands/lspci.c: Likewise.
45882
45883 * conf/i386-pc.rmk (pkglib_MODULES): Add `pci.mod' and
45884 `lspci.mod'.
45885 (pci_mod_SOURCES): New variable.
45886 (pci_mod_CFLAGS): Likewise.
45887 (pci_mod_LDFLAGS): Likewise.
45888 (lspci_mod_SOURCES): Likewise.
45889 (lspci_mod_CFLAGS): Likewise.
f19dbdb7 45890 (lspci_mod_LDFLAGS): Likewise.
58c69220 45891
c004e1b4 458922008-02-02 Bean <bean123ch@gmail.com>
45893
45894 * fs/ufs.c (INODE_BLKSZ): Fix incorrect value.
45895 (grub_ufs_get_file_block): Fix indirect block calculation problem.
45896
45897 * fs/xfs.c (grub_xfs_sblock): New member log2_dirblk.
45898 (grub_xfs_btree_node): New structure.
45899 (grub_xfs_btree_root): New structure.
45900 (grub_xfs_inode): New members nblocks, extsize, nextents and btree.
45901 (GRUB_XFS_EXTENT_OFFSET): Use exts instead of inode->data.extents.
45902 (GRUB_XFS_EXTENT_BLOCK): Likewise.
45903 (GRUB_XFS_EXTENT_SIZE): Likewise.
45904 (grub_xfs_read_block): Support btree format type.
45905 (grub_xfs_iterate_dir): Use NESTED_FUNC_ATTR in call_hook.
45906 Use directory block as basic unit.
45907
45908 * fs/fshelp.c (grub_fshelp_read_file): Bug fix for sparse block.
45909
45910 * aclocal.m4 (grub_i386_CHECK_REGPARM_BUG): Define NESTED_FUNC_ATTR as
45911 __attribute__ ((__regparm__ (1))).
45912
f95562bf 459132008-02-01 Robert Millan <rmh@aybabtu.com>
45914
45915 Correct a mistake in previous commit.
45916
45917 * conf/i386-pc.rmk (normal/execute.c_DEPENDENCIES): Move to the
45918 top.
45919 (normal/command.c_DEPENDENCIES): New variable.
45920
7d31f41f 459212008-02-01 Robert Millan <rmh@aybabtu.com>
45922
45923 * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Move to the
45924 top.
45925 (normal/command.c_DEPENDENCIES): New variable.
45926 (grub-emu_DEPENDENCIES, normal_mod_DEPENDENCIES): Remove variables.
45927 * conf/i386-ieee1275.rmk: Likewise.
45928 * conf/i386-linuxbios.rmk: Likewise.
45929 * conf/i386-pc.rmk: Likewise.
45930 * conf/sparc64-ieee1275.rmk: Likewise.
45931 * conf/powerpc-ieee1275.rmk: Likewise.
45932 (grub_emu_SOURCES): Add `fs/fshelp.c'.
45933
45934 * genmk.rb: Add `$(#{src}_DEPENDENCIES)' in targets that require it.
45935
60b6be74 459362008-02-01 Robert Millan <rmh@aybabtu.com>
45937
45938 * kern/disk.c (grub_disk_read, grub_disk_write): Add grub_dprintf()
45939 call at beginning of function.
45940
078522ab 459412008-01-31 Pavel Roskin <proski@gnu.org>
45942
45943 * util/powerpc/ieee1275/grub-mkrescue.in: New file.
d2c11005 45944 * conf/powerpc-ieee1275.rmk (bin_SCRIPTS): New variable.
45945 (grub_mkrescue_SOURCES): Likewise.
078522ab 45946 * DISTLIST: Add util/powerpc/ieee1275/grub-mkrescue.in.
45947
ccaa8a5f 459482008-01-30 Robert Millan <rmh@aybabtu.com>
45949
45950 * conf/i386-pc.rmk (sbin_UTILITIES): Remove `grub-probe'.
45951 (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Moved from here ...
45952 * conf/common.rmk (util/grub-probe.c_DEPENDENCIES)
45953 (grub_probe_SOURCES): ... to here.
45954
45955 * conf/i386-efi.rmk (sbin_UTILITIES): Remove `grub-probe'.
45956 (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Remove.
45957 * conf/i386-ieee1275.rmk: Likewise.
45958 * conf/i386-linuxbios.rmk: Likewise.
45959 * conf/powerpc-ieee1275.rmk: Likewise.
45960
ae5a9cd7 459612008-01-30 Tristan Gingold <gingold@free.fr>
45962
45963 * kern/rescue.c: Silently accept empty lines.
45964
70bc2ef2 459652008-01-29 Bean <bean123ch@gmail.com>
45966
45967 * boot/i386/pc/lnxboot.S (data_start): Code cleanup.
45968 (real_code_2): Code cleanup and change comment style.
45969 (move_memory): Avoid using 32-bit address mode.
45970
6a4d50ea 459712008-01-29 Bean <bean123ch@gmail.com>
45972
45973 * conf/i386-pc.rmk (pkglib_MODULES): Add `png.mod'.
45974 (png_mod_SOURCES): New variable.
45975 (png_mod_CFLAGS): Likewise.
45976 (png_mod_LDFLAGS): Likewise.
45977
45978 * video/readers/png.c: New file.
45979
11cc30ac 459802008-01-28 Robert Millan <rmh@aybabtu.com>
45981
45982 * include/grub/i386/linuxbios/kernel.h (GRUB_MOD_GAP): New macro.
45983 * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Remove
45984 `ifndef GRUB_MOD_GAP' hack.
45985 * util/elf/grub-mkimage.c (add_segments): Likewise.
45986
3abc589f 459872008-01-27 Robert Millan <rmh@aybabtu.com>
45988
45989 * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Skip
45990 `GRUB_MOD_GAP' for platforms in which it's not defined.
962ca133 45991 * util/elf/grub-mkimage.c (add_segments): Likewise.
3abc589f 45992
e1907778 459932008-01-27 Robert Millan <rmh@aybabtu.com>
45994
45995 Get grub-emu to build again (including parallel builds).
45996
45997 * conf/i386-pc.rmk (util/grub-emu.c_DEPENDENCIES): Remove variable.
45998 Split into ...
45999 (util/grub-emu.c_DEPENDENCIES): ... this, ...
46000 (normal/execute.c_DEPENDENCIES): ... this, ...
46001 (grub-emu_DEPENDENCIES): ... and this.
46002
46003 * conf/i386-efi.rmk: Likewise.
46004 * conf/i386-linuxbios.rmk: Likewise.
46005 * conf/i386-ieee1275.rmk: Likewise.
46006 * conf/powerpc-ieee1275.rmk: Likewise.
46007 (grub_emu_SOURCES): Remove duplicated `kern/file.c'.
46008
2216b101 460092008-01-27 Robert Millan <rmh@aybabtu.com>
46010
46011 * NEWS: Add a few items.
46012
f75172d9 460132008-01-27 Robert Millan <rmh@aybabtu.com>
46014
46015 Fix parallel builds with grub-emu. Based on earlier commit for
46016 grub-probe and grub-setup.
46017
46018 * conf/i386-pc.rmk (grub-emu_DEPENDENCIES): Renamed to ...
46019 (util/grub-emu.c_DEPENDENCIES): ... this.
46020 * conf/i386-efi.rmk (grub-emu_DEPENDENCIES): Renamed to ...
46021 (util/grub-emu.c_DEPENDENCIES): ... this.
46022 * conf/i386-linuxbios.rmk (grub-emu_DEPENDENCIES): Renamed to ...
46023 (util/grub-emu.c_DEPENDENCIES): ... this.
46024 * conf/i386-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
46025 (util/grub-emu.c_DEPENDENCIES): ... this.
46026 * conf/powerpc-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
46027 (util/grub-emu.c_DEPENDENCIES): ... this.
46028
3f51de77 460292008-01-27 Pavel Roskin <proski@gnu.org>
46030
46031 * include/grub/powerpc/ieee1275/kernel.h: Introduce GRUB_MOD_GAP
46032 to create a gap between _end and the modules added to the image
46033 with grub-mkrescue. That fixes "CLAIM failed" on PowerMAC.
46034 * kern/powerpc/ieee1275/init.c: Use GRUB_MOD_GAP.
46035 * util/elf/grub-mkimage.c (add_segments): Likewise.
46036
2033f53e 460372008-01-26 Pavel Roskin <proski@gnu.org>
46038
46039 * kern/dl.c (grub_dl_load): Don't abort if prefix is not set,
46040 just return an error.
46041
22da1f6f 460422008-01-26 Bean <bean123ch@gmail.com>
46043
46044 * fs/reiserfs.c (grub_fshelp_node): New member next_offset.
46045 (grub_reiserfs_get_item): Save offset of the next item.
46046 (grub_reiserfs_iterate_dir): Use next_offset to find next item.
46047
2a9525e6 460482008-01-25 Robert Millan <rmh@aybabtu.com>
46049
46050 * conf/i386-pc.rmk (grub_setup_SOURCES, grub_emu_SOURCES): Regroup to
46051 make all filesystem sources appear together (possibly fixing omissions
46052 while at it).
46053 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
46054 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
46055 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
46056 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
46057
46058 * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise. Additionally,
46059 add `kern/file.c'.
46060 * conf/i386-efi.rmk (grub_probe_SOURCES): Likewise.
46061 * conf/i386-ieee1275.rmk (grub_probe_SOURCES): Likewise.
46062 * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Likewise.
46063 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Likewise.
46064
46065 * util/grub-probe.c: Include `<grub/file.h>' and `<sys/stat.h>'.
46066 (probe): Add a sanity check to make sure of our ability to read
46067 requested files when probing for filesystem type.
46068
46069 * genmk.rb: Update copyright year (2007).
46070
46071 * include/grub/fs.h (grub_fat_init, grub_fat_fini, grub_ext2_init)
46072 (grub_ext2_fini, grub_ufs_init, grub_ufs_fini, grub_minix_init)
46073 (grub_minix_fini, grub_hfs_init, grub_hfs_fini, grub_jfs_init)
46074 (grub_jfs_fini, grub_xfs_init, grub_xfs_fini, grub_affs_init)
46075 (grub_affs_fini, grub_sfs_init, grub_sfs_fini, grub_iso9660_init)
46076 : Remove function prototypes.
46077
b95f71b5 460782008-01-25 Robert Millan <rmh@aybabtu.com>
46079
46080 Revert my previous commits (based on wrong assumption of how grub_errno
46081 works).
46082
fe6b695a 46083 * kern/disk.c (grub_disk_open): Stop resetting grub_errno.
b95f71b5 46084 * kern/file.c (grub_file_open): Likewise.
46085
d08bbb49 460862008-01-24 Pavel Roskin <proski@gnu.org>
46087
46088 * include/grub/ieee1275/ieee1275.h: Introduce flag for firmwares
46089 that hang if GRUB tries to setup colors.
46090 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Don't set
46091 colors for firmwares that don't support it.
46092 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag):
46093 Recognize Open Hack'Ware, set flags to work around its
46094 limitations.
46095
605e36ed 460962008-01-24 Robert Millan <rmh@aybabtu.com>
46097
46098 * kern/file.c (grub_file_open): Do not account previous failures of
46099 unrelated functions when grub_errno is checked for.
46100 Reported by Oleg Strikov.
46101
bac332a1 461022008-01-24 Bean <bean123ch@gmail.com>
46103
46104 * fs/ufs.c (GRUB_UFS_VOLNAME_LEN): New macro.
46105 (grub_ufs_sblock): New member volume name.
46106 (grub_ufs_find_file): Fix string copy bug.
46107 (grub_ufs_label): Implement this function properly.
46108
46109 * fs/hfs.c (grub_hfs_cnid_type): New enum.
46110 (grub_hfs_iterate_records): Use the correct file number for extents
46111 and catalog file. Fix problem in next index calculation.
46112 (grub_hfs_find_node): Replace recursive function call with loop.
46113 (grub_hfs_iterate_dir): Replace recursive function call with loop.
46114
15c80c09 461152008-01-23 Robert Millan <rmh@aybabtu.com>
46116
46117 * include/grub/i386/ieee1275/loader.h: Include `<grub/types.h>',
46118 `<grub/symbol.h>' and `<grub/multiboot.h>'.
46119 (grub_multiboot2_real_boot): New function prototype.
46120
46121 * include/grub/i386/pc/memory.h: Include `<grub/machine/machine.h>'.
46122 [!GRUB_MACHINE_IEEE1275] (grub_lower_mem, grub_upper_mem): Disable.
46123
46124 * kern/i386/ieee1275/init.c (grub_os_area_addr)
46125 (grub_os_area_size, grub_lower_mem, grub_upper_mem): Remove variables.
46126
305338fd 461272008-01-23 Robert Millan <rmh@aybabtu.com>
46128
46129 * kern/mm.c (grub_mm_init_region): Replace grub_dprintf() call with
46130 #ifdef'ed out grub_printf().
46131
3ea52685 461322008-01-23 Robert Millan <rmh@aybabtu.com>
46133
46134 * term/i386/pc/at_keyboard.c (grub_keyboard_isr): #ifdef out
46135 grub_dprintf calls, since they make "debug=all" mode unusable.
46136 (grub_console_checkkey): Likewise.
46137
5882ae4b 461382008-01-23 Robert Millan <rmh@aybabtu.com>
46139
46140 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
46141 `term/i386/pc/at_keyboard.c'.
46142 (pkglib_MODULES): Add `serial.mod'.
46143 (serial_mod_SOURCES): New variable.
46144 (serial_mod_CFLAGS): Likewise.
46145 (serial_mod_LDFLAGS): Likewise.
46146
46147 * include/grub/i386/ieee1275/console.h: Add `<grub/symbol.h>'. Remove
46148 `<grub/powerpc/ieee1275/console.h>'.
46149 (grub_keyboard_controller_init): New function prototype.
46150 (grub_console_checkkey): Likewise.
46151 (grub_console_getkey): Likewise.
46152
46153 * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize AT
46154 keyboard on i386.
46155
46156 * term/ieee1275/ofconsole.c (grub_ofconsole_term): On i386, use
46157 grub_ofconsole_checkkey() and grub_ofconsole_getkey() for input.
46158
06ab5303 461592008-01-23 Robert Millan <rmh@aybabtu.com>
46160
46161 * kern/i386/pc/init.c (make_install_device): When memdisk image is
46162 present, "(memdisk)/boot/grub" becomes the default prefix.
46163
46164 * util/i386/pc/grub-mkrescue.in: Switch to a minimal core.img plus
46165 a memdisk tarball with all the modules. Add --overlay=DIR option that
46166 allows users to overlay additional files into the image.
46167
dbb475a4 461682008-01-23 Robert Millan <rmh@aybabtu.com>
46169
46170 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add `machine/loader.h'
46171 and `machine/memory.h'.
46172 (pkglib_MODULES): Add `multiboot.mod' and `_multiboot.mod'.
46173 (_multiboot_mod_SOURCES): New variable.
46174 (_multiboot_mod_CFLAGS): Likewise.
46175 (_multiboot_mod_LDFLAGS): Likewise.
46176 (multiboot_mod_SOURCES): Likewise.
46177 (multiboot_mod_CFLAGS): Likewise.
46178 (multiboot_mod_LDFLAGS): Likewise.
46179
46180 * include/grub/i386/ieee1275/loader.h: New file.
46181
46182 * include/grub/i386/ieee1275/machine.h: Likewise.
46183
46184 * include/grub/i386/ieee1275/memory.h: Likewise.
46185
46186 * include/grub/i386/pc/init.h (grub_os_area_addr): Remove (redundant)
46187 variable declaration.
46188 (grub_os_area_size): Likewise.
46189
46190 * kern/i386/ieee1275/init.c (grub_os_area_addr, grub_os_area_size)
46191 (grub_lower_mem, grub_upper_mem): New variables.
46192 (grub_stop_floppy): New function (just to make
46193 grub_multiboot2_real_boot() happy).
46194
46195 * kern/i386/ieee1275/startup.S: Include `<grub/machine/memory.h>',
46196 `<grub/cpu/linux.h>', `<multiboot.h>' and `<multiboot2.h>'.
46197 (grub_stop): New function.
46198 Include `"../realmode.S"' and `"../loader.S"'.
46199
46200 * loader/multiboot_loader.c: Include `<grub/machine/machine.h>'.
46201 Replace `__i386__' #ifdefs with `GRUB_MACHINE_PCBIOS'.
46202
46203 * loader/powerpc/ieee1275/multiboot2.c (grub_mb2_arch_boot): On i386,
46204 rely on grub_multiboot2_real_boot() for final boot.
46205
25638629 462062008-01-22 Robert Millan <rmh@aybabtu.com>
46207
46208 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): When
46209 `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag is set, skip any
46210 device that doesn't look like an SD card.
46211 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
46212 `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag.
46213 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag): Detect
46214 OLPC laptop, and set `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' when
46215 found.
46216
9dad816d 462172008-01-22 Robert Millan <rmh@aybabtu.com>
46218
46219 * kern/powerpc/ieee1275/init.c (grub_claim_heap): Add sanity check to
46220 avoid claiming over our own code.
46221
34842f2d 462222008-01-22 Bean <bean123ch@gmail.com>
46223
46224 * conf/i386-pc.rmk (pkglib_MODULES): Add `jpeg.mod'.
46225 (jpeg_mod_SOURCES): New variable.
46226 (jpeg_mod_CFLAGS): Likewise.
46227 (jpeg_mod_LDFLAGS): Likewise.
46228
46229 * video/readers/jpeg.c : New file.
46230
44023a28 462312008-01-22 Bean <bean123ch@gmail.com>
46232
46233 * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_FILE_NOT_FOUND when
46234 there are no more items.
46235
bc2d8ac6 462362008-01-21 Robert Millan <rmh@aybabtu.com>
46237
46238 * kern/mm.c (grub_mm_init_region): Improve debug message.
46239
261bd4bc 462402008-01-21 Robert Millan <rmh@aybabtu.com>
46241
46242 * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): New variable.
46243 (kernel_img_LDFLAGS): Use `GRUB_MEMORY_MACHINE_LINK_ADDR' as link
46244 address.
46245 (grub_mkimage_CFLAGS): Propagate `GRUB_MEMORY_MACHINE_LINK_ADDR' as
46246 a C macro.
46247 * include/grub/i386/pc/memory.h (GRUB_MEMORY_MACHINE_UPPER): New macro.
46248 Indicates start of upper memory.
46249 * util/i386/pc/grub-mkimage.c: Include `<grub/machine/memory.h>'.
46250 (generate_image): Abort when image size is big enough to corrupt
46251 upper memory.
46252
46253 * include/grub/i386/pc/vga.h: Include `<grub/machine/memory.h>'.
46254 (GRUB_MEMORY_MACHINE_VGA_ADDR): Alias for `GRUB_MEMORY_MACHINE_UPPER'.
46255 * term/i386/pc/vga.c (VGA_MEM): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
46256 instead of hardcoding 0xA0000.
46257 * video/i386/pc/vbe.c: Include `<grub/machine/vga.h>'.
46258 (grub_vbe_set_video_mode): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
46259 instead of hardcoding 0xA0000.
46260
f970b55e 462612008-01-21 Robert Millan <rmh@aybabtu.com>
46262
46263 * disk/memdisk.c (memdisk_size): New variable.
46264 (grub_memdisk_open): Replace grub_arch_memdisk_size() call with
46265 `memdisk_size'.
46266 (grub_memdisk_init): Initialize `memdisk_size'. Reallocate memdisk
46267 image to dynamic memory.
46268 (grub_memdisk_fini): Replace grub_arch_memdisk_size() call with
46269 `memdisk_size'. Free memdisk block.
46270
1a8b0526 462712008-01-21 Robert Millan <rmh@aybabtu.com>
46272
46273 Fix detection of very small filesystems (like tar).
46274
46275 * fs/reiserfs.c (grub_reiserfs_mount): When disk is too small to
46276 contain a ReiserFS, abort with GRUB_ERR_BAD_FS rather than
46277 GRUB_ERR_OUT_OF_RANGE (which made the upper layer think there's
46278 a problem with this disk).
46279
6e9b4aab 462802008-01-21 Robert Millan <rmh@aybabtu.com>
46281
46282 * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Add debug message
46283 on grub_biosdisk_rw_standard() error.
46284
0d8837b2 462852008-01-21 Robert Millan <rmh@aybabtu.com>
46286
46287 * include/grub/ieee1275/ieee1275.h: Add 2008 to Copyright line for
46288 recent changes.
46289 * kern/elf.c: Likewise.
46290 * kern/ieee1275/ieee1275.c: Likewise.
46291 * kern/powerpc/ieee1275/openfw.c: Likewise.
46292 * term/ieee1275/ofconsole.c: Likewise.
46293
ffd36e34 462942008-01-21 Robert Millan <rmh@aybabtu.com>
46295
46296 * include/grub/i386/pc/kernel.h: Include `<grub/symbol.h>'.
46297
3f0093d0 46298 * include/grub/kernel.h (grub_arch_memdisk_addr)
46299 (grub_arch_memdisk_size): Moved from here ...
ffd36e34 46300
3f0093d0 46301 * include/grub/i386/pc/kernel.h (grub_arch_memdisk_addr)
46302 (grub_arch_memdisk_size): ... to here.
ffd36e34 46303
6c391b21 463042008-01-21 Robert Millan <rmh@aybabtu.com>
46305
46306 Mostly based on bugfix from Bean.
46307
46308 * kern/elf.c (grub_elf32_phdr_iterate): Use `NESTED_FUNC_ATTR'
46309 attribute with hook() parameter.
46310 (grub_elf32_load): Use `NESTED_FUNC_ATTR' with grub_elf32_load_segment()
46311 declaration.
46312 (grub_elf64_phdr_iterate): Use `NESTED_FUNC_ATTR'
46313 attribute with hook() parameter.
46314 (grub_elf64_load): Use `NESTED_FUNC_ATTR' with grub_elf64_load_segment()
46315 declaration.
46316
55a581dc 463172008-01-21 Robert Millan <rmh@aybabtu.com>
46318
46319 * conf/i386-pc.rmk (kernel_img_HEADERS): Add `machine/kernel.h'.
46320 (pkglib_MODULES): Add `memdisk.mod'.
46321 (memdisk_mod_SOURCES): New variable.
46322 (memdisk_mod_CFLAGS): Likewise.
46323 (memdisk_mod_LDFLAGS): Likewise.
46324
46325 * disk/memdisk.c: New file.
46326
46327 * include/grub/disk.h (grub_disk_dev_id): Add
46328 `GRUB_DISK_DEVICE_MEMDISK_ID'.
46329
46330 * include/grub/i386/pc/kernel.h
46331 (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): New macro.
46332 (GRUB_KERNEL_MACHINE_PREFIX): Increment by 4.
46333 (grub_kernel_image_size): New variable declaration.
46334 (grub_total_module_size): Likewise.
46335 (grub_memdisk_image_size): Likewise.
46336
46337 * include/grub/i386/pc/memory.h
46338 (GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR): New macro.
46339
46340 * include/grub/kernel.h: Include `<grub/symbol.h>'.
46341 (grub_arch_memdisk_addr): New variable declaration.
46342 (grub_arch_memdisk_size): Likewise.
46343
46344 * kern/i386/pc/init.c (grub_arch_memdisk_addr): New function.
46345 (grub_arch_memdisk_size): Likewise.
46346
46347 * kern/i386/pc/startup.S (grub_memdisk_image_size): New variable.
46348 (codestart): Replace hardcoded `0x100000' with
46349 `GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR' macro.
46350
46351 * util/i386/pc/grub-mkimage.c: Include `<grub/misc.h>'.
46352 (generate_image): Add `memdisk_path' parameter. When `memdisk_path' is
46353 not NULL, append the contents of the file it refers to, at the end of
46354 the compressed kernel image. Initialize `grub_memdisk_image_size'
46355 variable (at `GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE' offset).
46356 (options): Add "memdisk"|'m' option.
46357 (main): Parse --memdisk|-m option, and pass user-provided path as
46358 parameter to generate_image().
46359
3d7f54c9 463602008-01-20 Robert Millan <rmh@aybabtu.com>
46361
46362 * kern/sparc64/ieee1275/openfw.c (grub_devalias_iterate): Copy debug
46363 grub_dprintf() calls from here ...
46364 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): ... to here.
46365
0bf74728 463662008-01-20 Robert Millan <rmh@aybabtu.com>
46367
46368 Fix detection of "real mode" when /options/real-mode? doesn't exist.
46369
46370 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_mmu): New variable
46371 declaration.
46372 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_mmu): New variable.
46373 (grub_ieee1275_find_options): If `grub_ieee1275_mmu' is 0, set
46374 `GRUB_IEEE1275_FLAG_REAL_MODE'.
fe6b695a 46375 (cmain): Initialize `grub_ieee1275_mmu' (using /chosen/mmu integer
0bf74728 46376 property).
46377 * kern/powerpc/ieee1275/openfw.c (grub_map): Rely on pre-initialized
46378 `grub_ieee1275_mmu' rather than obtaining a handler on every call.
46379
33bf70a7 463802008-01-19 Robert Millan <rmh@aybabtu.com>
46381
fe6b695a 46382 Get rid of confusing function (superseded by
33bf70a7 46383 `grub_ieee1275_get_integer_property')
46384 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_decode_int_4): Remove
46385 prototype.
46386 * kern/ieee1275/ieee1275.c (grub_ieee1275_decode_int_4): Remove
46387 function.
46388 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid use of
46389 grub_ieee1275_decode_int_4(), by obtaining integer properties directly
fe987087 46390 in native endianness from grub_ieee1275_get_integer_property().
33bf70a7 46391
e2da7d26 463922008-01-19 Robert Millan <rmh@aybabtu.com>
46393
46394 * kern/powerpc/ieee1275/openfw.c (grub_halt): Issue "power-off"
46395 command after "shut-down", since implementations differ on which
46396 the command for halt is.
46397
59f1fd8d 463982008-01-19 Robert Millan <rmh@aybabtu.com>
46399
46400 * include/grub/i386/linuxbios/console.h: Add header protection.
46401 (grub_keyboard_controller_init): New function prototype.
46402 * term/i386/pc/at_keyboard.c (KEYBOARD_COMMAND_ISREADY): New macro.
46403 (KEYBOARD_COMMAND_READ): Likewise.
46404 (KEYBOARD_COMMAND_WRITE): Likewise.
46405 (KEYBOARD_SCANCODE_SET1): Likewise.
46406 (grub_keyboard_controller_write): New function.
46407 (grub_keyboard_controller_read): Likewise.
46408 (grub_keyboard_controller_init): Likewise.
46409
46410 * term/i386/pc/console.c: Include `<grub/machine/machine.h>'.
46411 (grub_console_init): On coreboot/LinuxBIOS, call
46412 grub_keyboard_controller_init().
46413
5f5a7c15 464142008-01-19 Robert Millan <rmh@aybabtu.com>
46415
46416 PowerPC changes provided by Pavel Roskin.
46417
46418 * kern/powerpc/ieee1275/cmain.c (cmain): Don't take any arguments.
46419 * kern/powerpc/ieee1275/crt0.S: Store r5 in grub_ieee1275_entry_fn,
46420 don't rely on cmain() doing it.
46421 * kern/i386/ieee1275/startup.S (_start): Store %eax in
46422 grub_ieee1275_entry_fn, don't rely on cmain() doing it.
46423
1210e168 464242008-01-16 Robert Millan <rmh@aybabtu.com>
46425
46426 * include/grub/i386/linuxbios/memory.h
46427 (GRUB_MEMORY_MACHINE_LINUXBIOS_TABLE_ADDR): Remove macro.
46428 * kern/i386/linuxbios/table.c (grub_linuxbios_table_iterate): Do not
46429 receive `table_header' as argument. Instead, probe for it in the
46430 known memory ranges where it can be present.
46431 (grub_available_iterate): Do not pass a fixed `table_header' address
46432 to grub_linuxbios_table_iterate().
46433
3d04eab8 464342008-01-15 Robert Millan <rmh@aybabtu.com>
46435
46436 * configure.ac: Add `i386-ieee1275' to the list of supported targets.
46437 * conf/i386-ieee1275.rmk: New file.
46438 * include/grub/i386/ieee1275/console.h: Likewise.
46439 * include/grub/i386/ieee1275/ieee1275.h: Likewise.
46440 * include/grub/i386/ieee1275/kernel.h: Likewise.
46441 * include/grub/i386/ieee1275/time.h: Likewise.
46442 * kern/i386/ieee1275/init.c: Likewise.
46443 * kern/i386/ieee1275/startup.S: Likewise.
46444
d1bc1b73 464452008-01-15 Robert Millan <rmh@aybabtu.com>
46446
46447 * kern/misc.c (grub_vsprintf): Do not reset `longlongfmt' to zero
46448 when pointers are 32-bit (but still do set it to one when they are
46449 64-bit).
46450
66a65807 464512008-01-15 Robert Millan <rmh@aybabtu.com>
46452
46453 * include/grub/ieee1275/ieee1275.h
46454 (grub_ieee1275_get_integer_property): New function prototype.
46455
46456 * kern/ieee1275/ieee1275.c: Include `<grub/types.h>'.
46457 (grub_ieee1275_get_integer_property): New function. Wraps around
fe987087 46458 grub_ieee1275_get_property() to handle endianness.
66a65807 46459
46460 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Replace
46461 grub_ieee1275_get_property() with grub_ieee1275_get_integer_property()
fe6b695a 46462 where appropriate.
66a65807 46463 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Likewise.
46464 (grub_map): Likewise.
46465 * kern/sparc64/ieee1275/openfw.c (grub_map): Likewise.
46466
a83ccafd 464672008-01-15 Bean <bean123ch@gmail.com>
46468
46469 * normal/execute.c (grub_script_exec_argument_to_string): Check for undefined variable.
46470 (grub_script_execute_cmdline): Reset grub_errno.
46471
46472 * normal/main.c (read_config_file): Reset grub_errno.
46473
46474 * normal/parse.y (script_init): New.
46475 (script): Move function and menuentry here.
46476 (delimiter): New.
46477 (command): Add delimiter at the end of command.
46478 (commands): Adjust to match the new command.
46479 (commandblock): Remove grub_script_lexer_record_start.
f19dbdb7 46480 (menuentry): Add grub_script_lexer_record_start, use the new commands.
a83ccafd 46481 (if): Use the new commands.
46482
46483 * conf/common.rmk (pkgdata_MODULES): Add echo.mod.
46484
df6ecfc6 464852008-01-15 Robert Millan <rmh@aybabtu.com>
46486
46487 * normal/menu.c (run_menu): Move timeout message from here ...
46488 (print_timeout): ... to here.
46489 (run_menu): Use print_timeout() once during initial draw to print
46490 the whole message, and again in every clock tick to update only
46491 the number of seconds.
46492
87ae25eb 464932008-01-15 Robert Millan <rmh@aybabtu.com>
46494
46495 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Obtain
46496 actual size of `available' from grub_ieee1275_get_property(), and
46497 restrict parsing to that bound.
46498
47bf09a4 464992008-01-15 Christian Franke <franke@computer.org>
46500
46501 * util/grub-emu.c: Replace <argp.h> by <getopt.h>.
46502 (argp_program_version): Remove variable.
46503 (argp_program_bug_address): Likewise.
46504 (options): Convert from struct argp_option to struct option.
46505 (struct arguments): Remove.
46506 (parse_opt): Remove.
46507 (usage): New function.
46508 (main): Replace struct args members by simple variables.
46509 Replace argp_parse() by getopt_long().
46510 Add switch to evaluate options.
46511 Add missing "(...)" around root_dev in prefix string.
46512
c86f1469 465132008-01-14 Robert Millan <rmh@aybabtu.com>
46514
46515 * kern/powerpc/ieee1275/init.c (grub_exit): Reimplement as a wrapper
46516 for grub_ieee1275_exit(), in order to improve portability.
46517
e622c559 465182008-01-14 Robert Millan <rmh@aybabtu.com>
46519
46520 * util/grub.d/10_linux.in (prefix): Define.
46521 (exec_prefix): Likewise. Both definitions are later used by `libdir'.
46522
44cb1ec8 465232008-01-13 Pavel Roskin <proski@gnu.org>
46524
46525 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Don't use
46526 grub_errno if no errors have been detected.
46527
1eb8c802 465282008-01-12 Robert Millan <rmh@aybabtu.com>
46529
46530 * include/grub/util/getroot.h (grub_dev_abstraction_types): New enum.
46531 (grub_util_get_dev_abstraction): New function prototype.
46532
46533 * util/getroot.c: Include `<grub/util/getroot.h>'
46534 (grub_util_get_grub_dev): Move detection of abstraction type to ...
46535 (grub_util_get_dev_abstraction): ... here (new function).
46536
46537 * util/grub-probe.c: Convert PRINT_* to an enum. Add
46538 `PRINT_ABSTRACTION'.
46539 (probe): Probe for abstraction type when requested.
46540 (main): Understand `--target=abstraction'.
46541
46542 * util/i386/efi/grub-install.in: Add abstraction module to core
46543 image when it is found to be necessary.
46544 * util/i386/pc/grub-install.in: Likewise.
46545 * util/powerpc/ieee1275/grub-install.in: Likewise.
46546
46547 * util/update-grub_lib.in (font_path): Return system path without
46548 converting to GRUB path.
46549 * util/update-grub.in: Convert system path returned by font_path()
46550 to a GRUB path. Use `grub-probe -t abstraction' to determine what
46551 abstraction module is needed for loading fonts (if any). Export
46552 that as `GRUB_PRELOAD_MODULES'.
46553 * util/grub.d/00_header.in: Process `GRUB_PRELOAD_MODULES' (print
46554 insmod commands).
46555
52bd3de9 465562008-01-12 Yoshinori K. Okuji <okuji@enbug.org>
46557
46558 Remove some unused code from reiserfs.
f19dbdb7 46559
52bd3de9 46560 * fs/reiserfs.c (struct grub_reiserfs_key)
46561 [GRUB_REISERFS_KEYV2_BITFIELD]: Removed offset and type.
46562 (struct grub_reiserfs_node_body): Removed.
46563 (grub_reiserfs_get_key_v2_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
46564 Likewise.
46565 (grub_reiserfs_get_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
46566 Likewise.
46567 (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
46568 Likewise.
46569 (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
46570 Likewise.
46571 (grub_reiserfs_set_key_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
46572 Likewise.
46573 (grub_reiserfs_iterate_dir) [GRUB_REISERFS_KEYV2_BITFIELD]:
46574 Likewise.
46575 (grub_reiserfs_open) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
46576 (grub_reiserfs_read) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
46577 (grub_reiserfs_dir) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
46578
2f80039d 465792008-01-10 Robert Millan <rmh@aybabtu.com>
46580
46581 * util/update-grub_lib.in (grub_file_is_not_garbage): New function.
46582 Determines if a file is garbage left by packaging systems, etc.
46583 * util/update-grub.in: Use grub_file_is_not_garbage() as a condition
46584 for processing /etc/grub.d scripts.
46585 * util/grub.d/10_hurd.in: Fix `GRUB_DISTRIBUTOR' comparison.
46586 * util/grub.d/10_linux.in: Likewise. Use grub_file_is_not_garbage()
46587 as a condition for processing Linux images.
46588
87888032 465892008-01-10 Pavel Roskin <proski@gnu.org>
46590
46591 * include/grub/powerpc/libgcc.h (__ucmpdi2): New export. Needed
46592 to compile reiserfs.c on PowerPC.
46593
7e54fced 465942008-01-10 Robert Millan <rmh@aybabtu.com>
de9993e0 46595
46596 * kern/device.c (grub_device_iterate): Do not abort device iteration
46597 when one of the devices cannot be opened.
46598 * kern/disk.c (grub_disk_open): Do not account previous failures of
46599 unrelated functions when grub_errno is checked for.
46600
5aa541e6 466012008-01-08 Robert Millan <rmh@aybabtu.com>
46602
46603 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): For
46604 `! grub_linux_is_bzimage', change order of address comparison to make
46605 it more intuitive, and improve "too big zImage" error message.
46606
7076340d 466072008-01-08 Robert Millan <rmh@aybabtu.com>
46608
46609 * Makefile.in (uninstall): Handle `$(update-grub_SCRIPTS)' and
46610 `$(update-grub_DATA)'.
46611 (distcheck): Fix race condition when invoking `$(MAKE)' on multiple
46612 targets.
46613
9ca70333 466142008-01-07 Robert Millan <rmh@aybabtu.com>
46615
46616 * boot/i386/pc/boot.S (boot_drive_check): Add a comment indicating
46617 which instruction is modified by grub-setup during installation
46618 (since it wasn't obvious by only looking at this file).
46619
38ccf575 466202008-01-07 Robert Millan <rmh@aybabtu.com>
46621
46622 * TODO: Rewrite. Just refer to the wiki and the BTS instead of
46623 listing actual TODO items.
46624
f5db4291 466252008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
46626
868967cf 46627 * fs/reiserfs.c (grub_reiserfs_get_key_v2_type): Handle endianness
46628 correctly.
46629 (grub_reiserfs_get_key_offset): Likewise.
46630 (grub_reiserfs_set_key_offset): Likewise.
46631 (grub_reiserfs_set_key_type): Likewise.
fe6b695a 46632 (grub_reiserfs_iterate_dir): Return 1 if found, otherwise 0.
868967cf 46633
46634 (GRUB_REISERFS_KEYV2_BITFIELD): Undefined. Probably it would be
46635 better to remove the bitfield version completely.
f19dbdb7 46636
868967cf 466372008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
f19dbdb7 46638
f5db4291 46639 * fs/reiserfs.c (grub_reiserfs_iterate_dir): ENTRY_ITEM must be
46640 allocated from the heap, due to the fshelp implementation.
46641 (grub_reiserfs_dir): Free NODE, due to the same reason.
46642
492e6d9d 466432008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
46644
46645 Mostly from Vincent Pelletier:
f19dbdb7 46646
492e6d9d 46647 * fs/reiserfs.c: New file.
f19dbdb7 46648
492e6d9d 46649 * conf/common.rmk (pkglib_MODULES): Added reiserfs.mod.
46650 (reiserfs_mod_SOURCES): New variable.
46651 (reiserfs_mod_CFLAGS): Likewise.
46652 (reiserfs_mod_LDFLAGS): Likewise.
46653
46654 * DISTLIST: Added boot/i386/pc/lnxboot.S, commands/hexdump.c,
46655 disk/ata.c, fs/cpio.c, fs/ntfscomp.c, fs/reiserfs.c,
46656 include/grub/ntfs.h, include/grub/i386/pc/machine.h, and
46657 normal/color.c.
46658
9ce3e7c1 466592008-01-06 Robert Millan <rmh@aybabtu.com>
46660
46661 * normal/color.c: Remove `<grub/env.h>'.
46662
f3b58148 466632008-01-05 Jeroen Dekkers <jeroen@dekkers.cx>
46664
46665 * include/grub/normal.h: Include <grub/env.h>.
46666
7ac3bcfa 466672008-01-05 Robert Millan <rmh@aybabtu.com>
46668
46669 * util/i386/pc/grub-setup.c (usage): Replace obsolete `(hd0,0)' in
46670 usage example with `(hd0,1)'.
fb358190 46671 Reported by Samuel Thibault.
7ac3bcfa 46672
c8ee99d7 466732008-01-05 Robert Millan <rmh@aybabtu.com>
46674
46675 * kern/i386/loader.S (grub_linux_is_bzimage): New variable.
46676 (grub_linux_boot_zimage): Rename to ...
46677 (grub_linux_boot): ... this.
46678 (grub_linux_boot_bzimage): Merge with `grub_linux_boot_zimage'.
46679 (grub_linux_boot_zimage): Conditionalize zImage copy.
46680
46681 * include/grub/i386/loader.h (grub_linux_is_bzimage): Add prototype.
46682 (grub_linux_boot_bzimage): Remove prototype.
46683 (grub_linux_boot_zimage): Rename to ...
46684 (grub_linux_boot): ... this.
46685
46686 * loader/i386/pc/linux.c (big_linux): Replace with `grub_linux_is_bzimage'.
46687 (grub_linux_boot): Remove function.
46688
0ece25b1 466892008-01-05 Robert Millan <rmh@aybabtu.com>
46690
46691 * include/grub/normal.h (grub_env_write_color_normal): New prototype.
46692 (grub_env_write_color_highlight): Likewise.
46693 (grub_wait_after_message): Likewise.
46694
46695 * normal/color.c: New file.
46696
46697 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/color.c'.
46698 (normal_mod_DEPENDENCIES): Likewise.
46699
46700 * conf/i386-efi.rmk (grub_emu_SOURCES): Add `normal/color.c'.
46701 (normal_mod_DEPENDENCIES): Likewise.
46702
46703 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add `normal/color.c'.
46704 (normal_mod_DEPENDENCIES): Likewise.
46705
46706 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `normal/color.c'.
46707 (normal_mod_DEPENDENCIES): Likewise.
46708
46709 * normal/menu_entry.c (run): Rely on grub_wait_after_message()
46710 for waiting after a message is printed.
46711 * normal/main.c (read_config_file): Likewise.
46712 (grub_normal_init): Register grub_env_write_color_normal() and
46713 grub_env_write_color_highlight() hooks. Mark `color_normal' and
46714 `color_highlight' variables as global.
46715
46716 * normal/menu.c (grub_wait_after_message): New function.
46717 (grub_color_menu_normal): New variable. Replaces ...
46718 (GRUB_COLOR_MENU_NORMAL): ... this macro.
46719 (grub_color_menu_highlight): New variable. Replaces ...
46720 (GRUB_COLOR_MENU_HIGHLIGHT): ... this macro.
46721 (draw_border): Set color state to `GRUB_TERM_COLOR_NORMAL' instead of
46722 `GRUB_TERM_COLOR_STANDARD'.
46723 (print_message): Use `grub_setcolorstate' to reload colors. Rename
46724 `normal_code' and `highlight_code' to `old_color_normal' and
46725 `old_color_highlight', respectively.
46726 (grub_menu_init_page): Update colors when drawing the menu, based on
46727 `menu_color_normal' and `menu_color_highlight' variables.
46728 (grub_menu_run): Rely on grub_wait_after_message() for waiting after
46729 a message is printed.
46730
182dd4e5 467312008-01-05 Robert Millan <rmh@aybabtu.com>
46732
46733 * kern/env.c (grub_env_context_open): Propagate hooks for global
46734 variables to new context.
46735
46736 * kern/main.c (grub_set_root_dev): Export `root' variable.
46737
ddf8f6ad 467382008-01-05 Robert Millan <rmh@aybabtu.com>
46739
46740 * util/biosdisk.c (get_os_disk): Check for devfs-style IDE and SCSI
fe6b695a 46741 discs unconditionally, since udev and others have options to provide
ddf8f6ad 46742 them.
46743
d8b43d9b 467442008-01-05 Robert Millan <rmh@aybabtu.com>
46745
46746 * normal/completion.c (iterate_dir): Skip `.' and `..' directories.
46747
2bff2de3 467482008-01-04 Christian Franke <franke@computer.org>
46749
46750 * kern/i386/pc/init.c (grub_machine_init): Fix evaluation
46751 of eisa_mmap.
46752
97eab917 467532008-01-03 Pavel Roskin <proski@gnu.org>
46754
46755 * kern/i386/linuxbios/init.c: Put "void" to all function
46756 declarations with no arguments.
46757 * kern/powerpc/ieee1275/init.c: Likewise.
46758 * term/i386/pc/at_keyboard.c: Likewise.
46759 * term/i386/pc/vga_text.c: Likewise.
46760 * util/grub-mkdevicemap.c: Likewise.
46761
b9416d00 467622008-01-02 Robert Millan <rmh@aybabtu.com>
46763
46764 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Improve error
46765 message when loaded image is out of bounds.
46766 (grub_multiboot_load_elf64): Likewise.
46767
92695df9 467682008-01-02 Pavel Roskin <proski@gnu.org>
46769
46770 * util/grub.d/10_linux.in: Try version without ".old" when
46771 looking for initrd. It's better to use initrd from the newer
46772 kernel of the same version than no initrd at all.
46773
d98d9cad 467742008-01-01 Robert Millan <rmh@aybabtu.com>
46775
46776 * util/biosdisk.c (get_os_disk): Fix check for IDE or SCSI discs.
46777
dbfdce36 467782008-01-01 Vesa Jaaskelainen <chaac@nic.fi>
46779
f19dbdb7 46780 * include/grub/video.h: Added grub_video_unmap_color and
dbfdce36 46781 grub_video_get_active_render_target.
46782 (grub_video_adapter): Added unmap_color and get_active_render_target.
46783
f19dbdb7 46784 * video/video.c: Added grub_video_unmap_color and
dbfdce36 46785 grub_video_get_active_render_target.
46786 (grub_video_get_info): Changed method to accept NULL pointer as an
46787 argument to allow detection of active video adapter.
46788
46789 * video/i386/pc/vbe.c: Renamed grub_video_vbe_unmap_color as
46790 grub_video_vbe_unmap_color_int.
46791 Added grub_video_vbe_unmap_color and
46792 grub_video_vbe_get_active_render_target.
46793 (grub_video_vbe_adapter): Added unmap_color and
46794 get_active_render_target.
46795
f19dbdb7 46796 * video/i386/pc/vbeblit.c: Replaced grub_video_vbe_unmap_color usage
dbfdce36 46797 with grub_video_vbe_unmap_color_int.
46798
46799 * term/gfxterm.c (DEFAULT_STANDARD_COLOR): Added.
46800 (DEFAULT_NORMAL_COLOR): Likewise.
46801 (DEFAULT_HIGHLIGHT_COLOR) Likewise.
46802 (DEFAULT_FG_COLOR): Removed.
46803 (DEFAULT_BG_COLOR): Likewise.
46804 (DEFAULT_CURSOR_COLOR): Changed value.
46805 (grub_virtual_screen): Added standard_color_setting,
46806 normal_color_setting, highlight_color_setting and term_color.
46807 (grub_virtual_screen): Removed fg_color_setting and bg_color_setting.
46808 (bitmap_width): Added.
46809 (bitmap_height): Likewise.
46810 (bitmap): Likewise.
46811 (set_term_color): Likewise.
46812 (grub_virtual_screen_setup): Changed to use new terminal coloring
46813 settings.
46814 (grub_gfxterm_init): Added init for bitmap.
46815 (grub_gfxterm_fini): Added destroy for bitmap.
46816 (redraw_screen_rect): Updated to use background bitmap and new
46817 terminal coloring.
46818 (scroll_up): Added optimization for case when there is no bitmap.
46819 (grub_gfxterm_cls): Fixed to use correct background color.
46820 (grub_virtual_screen_setcolorstate): Changed to use new terminal
46821 coloring.
46822 (grub_virtual_screen_setcolor): Likewise.
46823 (grub_virtual_screen_getcolor): Added.
46824 (grub_gfxterm_background_image_cmd): Likewise.
46825 (grub_video_term): Added setcolor and getcolor.
46826 (MOD_INIT): Added registration of background_image command.
46827 (MOD_TERM): Added unregistration for background_image command.
46828
c3c20931 468292007-12-30 Pavel Roskin <proski@gnu.org>
46830
46831 * loader/multiboot_loader.c: Fix multiboot command
46832 unregistration. Fix all typos in the word "multiboot".
46833
df266716 468342007-12-29 Pavel Roskin <proski@gnu.org>
94239199 46835
46836 * util/grub.d/10_linux.in: Refactor search for initrd. Add
46837 support for initrd names used in Fedora.
46838
fc6e896c 468392007-12-26 Bean <bean123ch@gmail.com>
46840
46841 * conf/common.rmk (pkgdata_MODULES): Add cpio.mod.
46842 (cpio_mod_SOURCES): New variable.
46843 (cpio_mod_CFLAGS): Likewise.
46844 (cpio_mod_LDFLAGS): Likewise.
46845
46846 * fs/cpio.c: New file.
46847
46848 * conf/i386-pc.rmk (grub_emu_SOURCES): Add cpio.c.
46849
46850 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
46851
46852 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
46853
46854 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
46855
533110ad 468562007-12-25 Robert Millan <rmh@aybabtu.com>
46857
46858 * include/grub/term.h (struct grub_term): Add `getcolor' function.
46859 (grub_getcolor): New function.
46860
46861 * kern/term.c (grub_getcolor): New function.
46862 * normal/menu.c (GRUB_COLOR_MENU_NORMAL): New macro.
46863 (GRUB_COLOR_MENU_HIGHLIGHT): New macro.
46864 (print_entry): Set normal and highlight colors to
46865 `GRUB_COLOR_MENU_NORMAL' and `GRUB_COLOR_MENU_HIGHLIGHT',
46866 respectively, before printing and restore them to old
46867 values afterwards.
46868 (grub_menu_init_page): Likewise. Fill an additional colored space
46869 that would otherwise be left blank.
46870
46871 * term/efi/console.c (grub_console_getcolor): New function.
46872 (struct grub_console_term.getcolor): New variable.
46873 * term/i386/pc/console.c (grub_console_getcolor): New function.
46874 (struct grub_console_term.getcolor): New variable.
46875 * term/ieee1275/ofconsole.c (grub_ofconsole_getcolor): New function.
46876 (struct grub_console_term.getcolor): New variable.
46877
46878 * term/i386/pc/serial.c (grub_serial_setcolor): Remove function.
46879 (struct grub_console_term.setcolor): Remove variable.
46880 * term/i386/pc/vesafb.c (grub_virtual_screen_setcolor): Remove function.
46881 (struct grub_console_term.setcolor): Remove variable.
46882 * term/i386/pc/vga.c (grub_vga_setcolor): Remove function.
46883 (struct grub_console_term.setcolor): Remove variable.
46884 * term/gfxterm.c (grub_virtual_screen_setcolor): Remove function.
46885 (struct grub_console_term.setcolor): Remove variable.
46886
4931827f 468872007-12-25 Robert Millan <rmh@aybabtu.com>
46888
46889 * configure.ac: Search for possible unifont.hex locations, and
46890 define UNIFONT_HEX if found.
46891
46892 * Makefile.in (UNIFONT_HEX): Define variable.
46893 (DATA): Rename to ...
46894 (PKGLIB): ... this. Update all users.
46895 (PKGDATA): New variable.
46896 (pkgdata_IMAGES): Rename to ...
46897 (pkglib_IMAGES): ... this. Update all users.
46898 (pkgdata_MODULES): Rename to ...
46899 (pkglib_MODULES): ... this. Update all users.
46900 (pkgdata_PROGRAMS): Rename to ...
46901 (pkglib_PROGRAMS): ... this. Update all users.
46902 (pkgdata_DATA): Rename to ...
46903 (pkglib_DATA): ... this. Update all users.
46904 (CLEANFILES): Redefine to `$(pkglib_DATA) $(pkgdata_DATA)'.
46905 (unicode.pff, ascii.pff): New rules.
46906 (all-local): Add `$(PKGDATA)' dependency.
46907 (install-local): Process `$(PKGDATA)'.
46908
46909 * util/update-grub_lib.in (font_path): Search for *.pff files in
46910 a few more locations, including `${pkgdata}'.
46911
57e57e31 469122007-12-23 Robert Millan <rmh@aybabtu.com>
46913
46914 Patch from Bean <bean123ch@gmail.com>:
46915 * disk/loopback.c (grub_loopback_read): Add missing bit shift to
46916 `size'.
46917
4bc72aa9 469182007-12-21 Bean <bean123ch@gmail.com>
46919
46920 * conf/common.rmk (pkgdata_MODULES): Add ntfscomp.mod.
46921 (ntfscomp_mod_SOURCES): New variable.
46922 (ntfscomp_mod_CFLAGS): Likewise.
46923 (ntfscomp_mod_LDFLAGS): Likewise.
46924
46925 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfscomp.c.
46926 (grub_probe_SOURCES): Likewise.
46927 (grub_emu_SOURCES): Likewise.
46928
46929 * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
46930 (grub_emu_SOURCES): Likewise.
46931
46932 * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
46933 (grub_emu_SOURCES): Likewise.
46934
46935 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
46936 (grub_emu_SOURCES): Likewise.
46937
46938 * fs/ntfs.c (grub_ntfscomp_func): New variable.
46939 (read_run_list): Renamed to grub_ntfs_read_run_list.
46940 (decomp_nextvcn): Moved to ntfscomp.c.
46941 (decomp_getch): Likewise.
46942 (decomp_get16): Likewise.
46943 (decomp_block): Likewise.
46944 (read_block): Likewise.
46945 (read_data): Partially moved to ntfscomp.c.
46946 (fixup): Change unsigned to grub_uint16_t.
46947 (read_mft): Change unsigned long to grub_uint32_t.
46948 (read_attr): Likewise.
46949 (read_data): Likewise.
46950 (read_run_data): Likewise.
46951 (read_run_list): Likewise.
46952 (read_mft): Likewise.
46953
46954 * fs/ntfscomp.c: New file.
46955
46956 * include/grub/ntfs.h: New file.
46957
af680a87 469582007-12-16 Robert Millan <rmh@aybabtu.com>
46959
46960 * util/grub-mkdevicemap.c (make_device_map): Iterate up to 20 for
46961 IDE disk check, since Linux is known to support 20 IDE disks.
46962 Reported by Colin Watson.
46963
84be7599 469642007-12-15 Bean <bean123ch@gmail.com>
46965
46966 * conf/i386-pc.rmk (pkgdata_IMAGES): Add lnxboot.img.
46967 (lnxboot_img_SOURCES): New variable.
46968 (lnxboot_img_ASFLAGS): Likewise.
46969 (lnxboot_img_LDFLAGS): Likewise.
46970
46971 * boot/i386/pc/lnxboot.S: New file.
46972
6af9db01 469732007-11-24 Pavel Roskin <proski@gnu.org>
46974
46975 * configure.ac: Test if '--build-id=none' is supported by the
46976 linker. If yes, add it to TARGET_LDFLAGS. Build ID causes
46977 objcopy to generate incorrect binary files (binutils
46978 2.17.50.0.18-1 as shipped by Fedora 8).
46979 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Use LDFLAGS when
46980 linking, so that build ID doesn't break the test.
46981
7361cfe6 469822007-11-24 Pavel Roskin <proski@gnu.org>
46983
46984 * include/grub/i386/time.h: use "void" in the argument list
46985 of grub_cpu_idle().
46986 * include/grub/powerpc/time.h: Likewise.
46987 * include/grub/sparc64/time.h: Likewise.
46988
1593e10c 469892007-11-18 Christian Franke <franke@computer.org>
46990
46991 * util/console.c (grub_ncurses_getkey): Change curses KEY_* mapping,
46992 now return control chars instead of GRUB_CONSOLE_KEY_* constants.
46993 This fixes the problem that function keys did not work in grub-emu.
46994
3b8db1a8 469952007-11-18 Christian Franke <franke@computer.org>
46996
46997 * disk/host.c (grub_host_open): Remove attribute unused from
46998 name parameter. Add check for "host". This fixes the problem
46999 that grub-emu does not find partitions.
47000
2e29408d 470012007-11-18 Christian Franke <franke@computer.org>
47002
47003 * util/hostfs.c (is_dir): New function.
47004 (grub_hostfs_dir): Handle missing dirent.d_type case.
47005 (grub_hostfs_read): Add missing fseek().
47006 (grub_hostfs_label): Clear label pointer. This fixes a crash
47007 of grub-emu on "ls (host)".
47008
398cd047 470092007-11-18 Christian Franke <franke@computer.org>
47010
47011 * include/grub/i386/pc/init.h (struct grub_machine_mmap_entry):
47012 Add attribute packed, gcc 3.4.4 on Cygwin aligns this
47013 to 64 bit boundary by default.
47014
c405c391 470152007-11-18 Bean <bean123ch@gmail.com>
47016
47017 * conf/common.rmk (pkgdata_MODULES): Add hexdump.mod.
47018 (hexdump_mod_SOURCES): New variable.
47019 (hexdump_mod_CFLAGS): Likewise.
47020 (hexdump_mod_LDFLAGS): Likewise.
f19dbdb7 47021
c405c391 47022 * conf/i386-pc.rmk (grub_emu_SOURCES): Add command/hexdump.c.
47023
47024 * conf/i386-efi.rmk (grub_emu_SOURCES): Add command/hexdump.c.
47025
47026 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add command/hexdump.c.
47027
47028 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add command/hexdump.c.
47029
47030 * include/grub/hexdump.h: New file.
47031
47032 * commands/hexdump.c: New file.
47033
5cced7fd 470342007-11-10 Robert Millan <rmh@aybabtu.com>
47035
47036 * commands/i386/pc/play.c (beep_off): Switch order of arguments
47037 in grub_outb() calls.
47038 (beep_on): Likewise.
47039
8b714eb0 470402007-11-10 Christian Franke <franke@computer.org>
47041
47042 * normal/menu.c (run_menu): Check for empty menu to avoid crash.
47043 (grub_menu_run): Likewise.
47044
ce0f1839 470452007-11-10 Robert Millan <rmh@aybabtu.com>
47046
47047 * include/grub/i386/efi/machine.h: New file.
47048 * include/grub/i386/linuxbios/machine.h: Likewise.
47049 * include/grub/i386/pc/machine.h: Likewise.
47050 * include/grub/powerpc/ieee1275/machine.h: Likewise.
47051 * include/grub/sparc64/ieee1275/machine.h: Likewise.
47052
47053 * term/i386/pc/serial.c: Include <grub/machine/machine.h>.
47054 (serial_hw_io_addr): New variable.
47055 (serial_hw_get_port): Obtain port address from `serial_hw_io_addr'
47056 instead of `(unsigned short *) 0x400'.
47057
270c237d 470582007-11-10 Bean <bean123ch@gmail.com>
47059
47060 * fs/ntfs.c (read_block): Fix a bug caused by adjacent blocks.
47061
a87783bf 470622007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
47063
47064 * conf/i386-pc.rmk (pkgdata_MODULES): Added vga.mod.
47065 (vga_mod_SOURCES): Added.
47066 (vga_mod_CFLAGS): Likewise.
47067 (vga_mod_LDFLAGS): Likewise.
47068
47069 * term/i386/pc/vga.c (get_map_mask): Switch order of arguments in
47070 grub_outb() calls.
47071 (set_map_mask): Likewise.
47072 (set_read_map): Likewise.
47073 (set_read_address): Likewise.
47074 (vga_font): Removed variable.
47075 (get_vga_glyph): Removed function.
47076 (invalidate_char): Likewise.
47077 (write_char): Changed to use grub_font_get_glyph() for font
47078 information.
47079 (grub_vga_putchar): Likewise.
47080 (grub_vga_getcharwidth): Likewise.
47081
6433b448 470822007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
47083
47084 * conf/i386-pc.rmk (boot_img_LDFLAGS): Use COMMON_LDFLAGS for target
47085 flags.
47086 (pxeboot_img_LDFLAGS): Likewise.
47087 (diskboot_img_LDFLAGS): Likewise.
47088 (kernel_img_LDFLAGS): Likewise.
47089
49178511 470902007-11-06 Robert Millan <rmh@aybabtu.com>
47091
47092 * term/i386/pc/serial.c (serial_hw_put): Switch order of arguments
47093 in grub_outb() calls.
47094 (serial_hw_init): Likewise.
47095
53b052de 470962007-11-05 Robert Millan <rmh@aybabtu.com>
47097
47098 * util/update-grub.in: Allow files in ${update_grub_dir} to contain
47099 spaces. Skip non-regular files.
47100
5ab33bba 471012007-11-05 Robert Millan <rmh@aybabtu.com>
47102
47103 * kern/disk.c (grub_disk_firmware_fini)
47104 (grub_disk_firmware_is_tainted): New variables.
47105
47106 * include/grub/disk.h (grub_disk_firmware_fini)
47107 (grub_disk_firmware_is_tainted): Likewise.
47108
47109 * disk/i386/pc/biosdisk.c (GRUB_MOD_FINI(biosdisk)): Moved from here ...
47110 (grub_disk_biosdisk_fini): ... to here.
47111 (GRUB_MOD_FINI(biosdisk)): Implement using grub_disk_biosdisk_fini().
47112 (GRUB_MOD_INIT(biosdisk)): Abort when `grub_disk_firmware_is_tainted'
47113 is set. Register grub_disk_biosdisk_fini() in
47114 `grub_disk_firmware_fini'.
47115
47116 * disk/ata.c: Remove `<grub/machine/biosdisk.h>'.
47117 (GRUB_MOD_INIT(ata)): Remove grub_biosdisk_fini() call.
47118 Use `grub_disk_firmware_is_tainted' and `grub_disk_firmware_fini'
47119 to finish existing firmware disk interface.
47120
47121 * conf/i386-linuxbios.rmk (pkgdata_MODULES): Add `ata.mod'.
47122 (ata_mod_SOURCES): New variable.
47123 (ata_mod_CFLAGS): Likewise.
47124 (ata_mod_LDFLAGS): Likewise.
47125
0149ab7c 471262007-11-05 Robert Millan <rmh@aybabtu.com>
47127
47128 * disk/ata.c: Remove `<grub/machine/time.h>'. Include `<grub/time.h>'.
47129 (grub_ata_wait): Reimplement using grub_millisleep().
47130
47131 * include/grub/misc.h (grub_div_roundup): Fix parenthesization.
47132 * include/grub/i386/time.h (grub_cpu_idle): Disable `hlt' instruction.
47133
be7ac41e 471342007-11-03 Marco Gerards <marco@gnu.org>
47135
47136 * term/i386/pc/vga_text.c: Include <grub/cpu/io.h>.
47137 (CRTC_ADDR_PORT): New macro.
47138 (CRTC_DATA_PORT): Likewise.
47139 (CRTC_CURSOR): Likewise.
47140 (CRTC_CURSOR_ADDR_HIGH): Likewise.
47141 (CRTC_CURSOR_ADDR_LOW): Likewise.
47142 (update_cursor): New function.
47143 (grub_console_real_putchar): Call `update_cursor'.
47144 (grub_console_gotoxy): Likewise.
47145 (grub_console_cls): Set the default color when clearing the
47146 screen.
47147 (grub_console_setcursor): Implemented.
47148
bb06ab2e 471492007-11-03 Marco Gerards <marco@gnu.org>
47150
47151 * disk/ata.c (grub_ata_pio_read): Don't wait for the command to
47152 become activate.
47153 (grub_ata_pio_write): Likewise.
47154
47155 (grub_atapi_identify): Wait after issuing an ATA command.
47156 (grub_atapi_packet): Likewise.
47157 (grub_ata_identify): Likewise.
47158 (grub_ata_readwrite): Likewise.
47159
cf8f780b 471602007-11-03 Marco Gerards <marco@gnu.org>
47161
47162 * disk/ata.c (grub_ata_pio_read): Detect and return the error code.
47163 (grub_ata_pio_write): Likewise.
47164 (grub_ata_readwrite): Use `grub_error', instead of
47165 returning `grub_errno'.
47166
ed649e54 471672007-11-03 Marco Gerards <marco@gnu.org>
47168
47169 * disk/ata.c (grub_ata_readwrite): Call grub_ata_pio_read and
47170 grub_ata_pio_write once for every single sector, instead of for
47171 multiple sectors.
47172
ca25d8f0 471732007-10-31 Robert Millan <rmh@aybabtu.com>
47174
47175 * configure.ac: Add `i386-linuxbios' to the list of supported targets.
47176
47177 * conf/i386-linuxbios.rmk: New file.
47178
47179 * kern/i386/pc/hardware.c: Likewise.
47180 * term/i386/pc/at_keyboard.c: Likewise.
47181 * term/i386/pc/vga_text.c: Likewise.
47182
47183 * include/grub/i386/linuxbios/boot.h: Likewise.
47184 * include/grub/i386/linuxbios/console.h: Likewise.
47185 * include/grub/i386/linuxbios/init.h: Likewise.
47186 * include/grub/i386/linuxbios/kernel.h: Likewise.
47187 * include/grub/i386/linuxbios/loader.h: Likewise.
47188 * include/grub/i386/linuxbios/memory.h: Likewise.
47189 * include/grub/i386/linuxbios/serial.h: Likewise.
47190 * include/grub/i386/linuxbios/time.h: Likewise.
47191
47192 * kern/i386/linuxbios/init.c: Likewise.
47193 * kern/i386/linuxbios/startup.S: Likewise.
47194 * kern/i386/linuxbios/table.c: Likewise.
47195
e911ecc1 471962007-10-31 Marco Gerards <marco@gnu.org>
47197
47198 * conf/i386-pc.rmk (pkgdata_MODULES): Add `ata.mod'.
47199 (ata_mod_SOURCES): New variable.
47200 (ata_mod_CFLAGS): Likewise.
47201 (ata_mod_LDFLAGS): Likewise.
47202
47203 * disk/ata.c: New file.
47204
47205 * include/grub/disk.h (grub_disk_dev_id): Add
47206 `GRUB_DISK_DEV_ATA_ID'.
f19dbdb7 47207
7f66d0e0 472082007-10-31 Robert Millan <rmh@aybabtu.com>
47209
47210 * include/grub/i386/pc/init.h (grub_lower_mem): Moved from here ...
47211 * include/grub/i386/pc/memory.h (grub_lower_mem): ... to here.
47212
47213 * include/grub/i386/pc/init.h (grub_upper_mem): Moved from here ...
47214 * include/grub/i386/pc/memory.h (grub_upper_mem): ... to here.
47215
47216 * include/grub/i386/pc/memory.h: Include `<grub/symbol.h>' and
47217 `<grub/types.h>'.
47218
47219 * loader/i386/pc/multiboot.c: Include `<grub/machine/memory.h>'.
47220
5cd7dd46 472212007-10-27 Robert Millan <rmh@aybabtu.com>
47222
3236ca65 47223 * include/grub/types.h (ULONG_MAX): Define macro.
5cd7dd46 47224
2ebfc90f 472252007-10-22 Robert Millan <rmh@aybabtu.com>
47226
47227 * kern/i386/pc/startup.S: Remove `"kern/i386/realmode.S"'. Include
47228 `"../realmode.S"'.
47229 Remove `"kern/i386/loader.S"'. Include `"../loader.S"'.
47230
73fcb0f3 472312007-10-22 Robert Millan <rmh@aybabtu.com>
47232
47233 * conf/i386-pc.rmk (kernel_img_SOURCES): Remove `disk/i386/pc/biosdisk.c'.
47234 (pkgdata_MODULES): Add `biosdisk.mod'.
47235 (biosdisk_mod_SOURCES, biosdisk_mod_CFLAGS, biosdisk_mod_LDFLAGS): New
47236 variables.
47237
47238 * disk/i386/pc/biosdisk.c: Include `<grub/dl.h>'.
47239 (grub_biosdisk_init): Replace with ...
47240 (GRUB_MOD_INIT(biosdisk)): ... this.
47241 (grub_biosdisk_fini): Replace with ...
47242 (GRUB_MOD_FINI(biosdisk)): ... this.
47243
47244 * kern/i386/pc/init.c: Remove `<grub/machine/biosdisk.h>'.
47245 (grub_machine_init): Remove call to grub_biosdisk_init().
47246 (grub_machine_fini): Remove call to grub_machine_fini().
47247
47248 * util/i386/pc/grub-install.in (modules): Add `biosdisk'.
47249
3381d274 472502007-10-22 Robert Millan <rmh@aybabtu.com>
47251
47252 * include/grub/time.h: New file.
47253 * include/grub/i386/time.h: Likewise.
47254 * include/grub/powerpc/time.h: Likewise.
47255 * include/grub/sparc64/time.h: Likewise.
47256
47257 * include/grub/i386/pc/time.h (KERNEL_TIME_HEADER): Rename all
47258 instances to ...
47259 (KERNEL_MACHINE_TIME_HEADER): ... this.
47260 * include/grub/powerpc/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
47261 instances to ...
47262 (KERNEL_MACHINE_TIME_HEADER): ... this.
47263 * include/grub/sparc64/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
47264 instances to ...
47265 (KERNEL_MACHINE_TIME_HEADER): ... this.
47266
47267 * kern/i386/efi/init.c: Include `<grub/time.h>'.
47268 (grub_millisleep): New function.
47269 * kern/i386/pc/init.c: Include `<grub/time.h>'.
47270 (grub_millisleep): New function.
47271 * kern/powerpc/ieee1275/init.c: Include `<grub/time.h>'.
47272 Remove `grub/machine/time.h' include.
47273 (grub_millisleep): New function.
47274 * kern/sparc64/ieee1275/init.c: Include `<grub/time.h>'.
47275 Remove `grub/machine/time.h' include.
47276 (grub_millisleep): New function.
47277
47278 * include/grub/misc.h (grub_div_roundup): New function.
47279
47280 * kern/misc.c: Include `<grub/time.h>'.
47281 (grub_millisleep_generic): New function.
47282
47283 * conf/i386-efi.rmk (kernel_mod_HEADERS): Remove `i386/efi/time.h'.
47284 Add `time.h'.
47285 * conf/i386-pc.rmk (kernel_img_HEADERS): Remove `machine/time.h'.
47286 Add `time.h'.
47287 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Remove
47288 `machine/time.h'. Add `time.h'.
47289 * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
47290
a39a0312 472912007-10-21 Robert Millan <rmh@aybabtu.com>
47292
47293 * include/grub/misc.h (grub_max): New function.
47294
2aad70e2 472952007-10-21 Robert Millan <rmh@aybabtu.com>
47296
47297 * util/misc.c (grub_util_info): Call fflush() before returning.
47298
54b71c4b 472992007-10-20 Robert Millan <rmh@aybabtu.com>
47300
47301 * genmk.rb (Image): Copy `extra_flags' from here ...
47302 (PModule): ... to here. Use it in `#{obj}: #{src}' rule.
47303
47304 * commands/i386/cpuid.c (grub_cmd_cpuid): Add __attribute__ ((unused))
47305 to `argc' and `args' arguments.
47306
a979f513 473072007-10-17 Robert Millan <rmh@aybabtu.com>
47308
47309 * kern/i386/loader.S: New file.
47310
47311 * kern/i386/pc/startup.S (grub_linux_prot_size): Moved from here ...
47312 * kern/i386/loader.S (grub_linux_prot_size)... to here.
47313 * kern/i386/pc/startup.S (grub_linux_tmp_addr): Moved from here ...
47314 * kern/i386/loader.S (grub_linux_tmp_addr)... to here.
47315 * kern/i386/pc/startup.S (grub_linux_real_addr): Moved from here ...
47316 * kern/i386/loader.S (grub_linux_real_addr)... to here.
47317 * kern/i386/pc/startup.S (grub_linux_boot_zimage): Moved from here ...
47318 * kern/i386/loader.S (grub_linux_boot_zimage)... to here.
47319 * kern/i386/pc/startup.S (grub_linux_boot_bzimage): Moved from here ...
47320 * kern/i386/loader.S (grub_linux_boot_bzimage)... to here.
47321 * kern/i386/pc/startup.S (grub_multiboot_real_boot): Moved from here ...
47322 * kern/i386/loader.S (grub_multiboot_real_boot)... to here.
47323 * kern/i386/pc/startup.S (grub_multiboot2_real_boot): Moved from here ...
47324 * kern/i386/loader.S (grub_multiboot2_real_boot)... to here.
47325
47326 * kern/i386/realmode.S: New file.
47327
47328 * kern/i386/pc/startup.S (protstack): Moved from here ...
47329 * kern/i386/realmode.S (protstack)... to here.
47330 * kern/i386/pc/startup.S (gdt): Moved from here ...
47331 * kern/i386/realmode.S (gdt)... to here.
47332 * kern/i386/pc/startup.S (prot_to_real): Moved from here ...
47333 * kern/i386/realmode.S (prot_to_real)... to here.
47334
47335 * kern/i386/pc/startup.S: Include `kern/i386/loader.S' and
47336 `kern/i386/realmode.S'.
47337
825fc8fd 473382007-10-17 Robert Millan <rmh@aybabtu.com>
47339
47340 * include/grub/i386/loader.h: New file.
47341
47342 * include/grub/i386/pc/loader.h (grub_linux_prot_size)
47343 (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
47344 (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
47345 (grub_multiboot_real_boot, grub_multiboot2_real_boot)
47346 (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): Moved from here ...
47347 * include/grub/i386/loader.h (grub_linux_prot_size)
47348 (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
47349 (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
47350 (grub_multiboot_real_boot, grub_multiboot2_real_boot)
47351 (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): ... to here.
47352
47353 * include/grub/i386/pc/loader.h: Include `grub/cpu/loader.h'.
47354
e179b2f4 473552007-10-15 Robert Millan <rmh@aybabtu.com>
47356
47357 * normal/misc.c (grub_normal_print_device_info): Do not probe for
47358 filesystem when dev->disk is unset.
47359 Do probe for filesystem even when dev->disk->has_partitions is set.
47360 In case a filesystem is found, always report it.
47361 In case it isn't, if dev->disk->has_partitions is set, report that
47362 a partition table was found instead of reporting that no filesystem
47363 could be identified.
47364
5db82af6 473652007-10-12 Robert Millan <rmh@aybabtu.com>
47366
47367 * conf/powerpc-ieee1275.rmk (grub_mkimage_SOURCES): Replace reference
47368 to util/powerpc/ieee1275/grub-mkimage.c with util/elf/grub-mkimage.c.
47369
68f6ac74 47370 * include/grub/types.h (grub_host_to_target16): New macro.
47371 (grub_host_to_target32): Likewise.
47372 (grub_host_to_target64): Likewise.
47373 (grub_target_to_host16): Likewise.
47374 (grub_target_to_host32): Likewise.
47375 (grub_target_to_host64): Likewise.
5db82af6 47376
47377 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
47378 Renamed from to ...
47379 (GRUB_MOD_ALIGN): ...this. Update all users.
47380
68f6ac74 47381 * util/elf/grub-mkimage.c (load_note): Replace grub_cpu_to_be32 with
47382 grub_host_to_target32.
47383 Replace grub_be_to_cpu32 with grub_target_to_host32.
47384 (load_modules): Likewise.
47385 (add_segments): Replace grub_be_to_cpu16 with grub_target_to_host16.
47386 Replace grub_be_to_cpu32 with grub_target_to_host32.
47387 Replace grub_cpu_to_be16 with grub_host_to_target16.
47388 Replace grub_cpu_to_be32 grub_host_to_target32.
5db82af6 47389
3cf497cc 473902007-10-12 Robert Millan <rmh@aybabtu.com>
47391
47392 * util/powerpc/ieee1275/grub-mkimage.c: Moved to ...
47393 * util/elf/grub-mkimage.c: ... here.
47394
47395 * DISTLIST: Add `util/elf/grub-mkimage.c'. Remove
47396 `util/powerpc/ieee1275/grub-mkimage.c'.
47397
c8cc3692 473982007-10-07 Robert Millan <rmh@aybabtu.com>
adbc4c9d 47399
c8cc3692 47400 * kern/powerpc/ieee1275/init.c: Rename HEAP_LIMIT to HEAP_MAX_ADDR,
47401 and make it easier to figure out.
47402 Add HEAP_MIN_SIZE and HEAP_MAX_ADDR definitions.
47403 (grub_claim_heap): Use HEAP_MAX_ADDR rather than taking a parameter.
47404 Do not avoid claiming a region above HEAP_MAX_ADDR if that would
47405 leave us with less than HEAP_MIN_SIZE total heap.
47406 Avoid our total amount of heap to surpass HEAP_MAX_SIZE.
adbc4c9d 47407
5c58b791 474082007-10-03 Robert Millan <rmh@aybabtu.com>
47409
47410 * include/grub/i386/io.h: New file.
47411 * commands/i386/pc/play.c (inb): Removed.
47412 (outb): Removed.
47413 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
47414 with grub_outb().
afcd2ef8 47415 * term/i386/pc/serial.c (inb): Removed.
47416 (outb): Removed.
47417 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
47418 with grub_outb().
47419 * term/i386/pc/vga.c (inb): Removed.
47420 (outb): Removed.
47421 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
47422 with grub_outb().
5c58b791 47423
1a477ed6 474242007-10-02 Robert Millan <rmh@aybabtu.com>
47425
47426 * conf/i386-efi.rmk (grub_emu_SOURCES): Add util/hostfs.c.
47427 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
47428 Reported by Marcin Kurek.
47429
6b5d80fa 474302007-09-07 Robert Millan <rmh@aybabtu.com>
47431
47432 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_test_flag): Detect
47433 SmartFirmware version updates (as released by Sven Luther), and avoid
47434 setting GRUB_IEEE1275_FLAG_NO_PARTITION_0 or
47435 GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS unless the running version is
47436 known broken.
47437
5618afbf 474382007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
47439
47440 From Hitoshi Ozeki:
47441 * kern/i386/pc/init.c (compact_mem_regions): Decrease NUM_REGIONS
47442 when merging two regions.
47443
6139dcd9 474442007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
47445
508e39ee 47446 * kern/rescue.c (grub_enter_rescue_mode): Free ARGS.
47447 * normal/completion.c (grub_normal_do_completion): Likewise.
47448 Reported by Hitoshi Ozeki.
47449
474502007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
f19dbdb7 47451
6139dcd9 47452 Do not use devices at boot in chainloading.
f19dbdb7 47453
6139dcd9 47454 * loader/i386/pc/chainloader.c (boot_drive): New variable.
47455 (boot_part_addr): Likewise.
47456 (grub_chainloader_boot): Simply call grub_chainloader_real_boot
47457 with BOOT_DRIVE and BOOT_PART_ADDR.
47458 (grub_chainloader_cmd): Set BOOT_DRIVE and BOOT_PART_ADDR.
47459 Reported by Hitoshi Ozeki <h-ozeki@ck2.so-net.ne.jp>.
47460
38da6516 474612007-08-29 Robert Millan <rmh@aybabtu.com>
47462
47463 Patch from Simon Peter <dn.tlp@gmx.net>:
47464 * genmk.rb (Utility): Append $(#{src}_DEPENDENCIES) to #{obj} targets.
47465 * conf/i386-pc.rmk: Replace grub-probe_DEPENDENCIES with
47466 util/grub-probe.c_DEPENDENCIES. Replace grub-setup_DEPENDENCIES with
47467 util/i386/pc/grub-setup.c_DEPENDENCIES.
47468 * conf/i386-efi.rmk: Replace grub-probe_DEPENDENCIES with
47469 util/grub-probe.c_DEPENDENCIES.
47470 * conf/powerpc-ieee1275.rmk: Likewise.
47471
29d0928c 474722007-08-28 Robert Millan <rmh@aybabtu.com>
47473
47474 * util/i386/get_disk_name.c: New. Implement grub_util_get_disk_name()
47475 to tell grub-mkdevicemap how to name devices.
47476 * util/ieee1275/get_disk_name.c: Likewise (using "ofpathname -a"
47477 feature).
47478
47479 * conf/i386-efi.rmk (grub_mkdevicemap_SOURCES): Add
47480 util/i386/get_disk_name.c.
47481 * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Likewise.
47482 * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Add
47483 util/ieee1275/get_disk_name.c.
47484
47485 * include/grub/util/misc.h: grub_util_get_disk_name() declaration.
47486
47487 * DISTLIST: Add util/i386/get_disk_name.c and
47488 util/ieee1275/get_disk_name.c.
47489
47490 * util/grub-mkdevicemap.c: Replace device naming logic with
47491 grub_util_get_disk_name() calls.
47492
5a0d3cca 474932007-08-20 Robert Millan <rmh@aybabtu.com>
47494
47495 * normal/menu.c (run_menu): Refer to seconds as "s" not "seconds"
47496 (so that it works for both plural and singular quantities).
47497
8b72db2f 474982007-08-05 Robert Millan <rmh@aybabtu.com>
47499
47500 * util/grub.d/10_linux.in (test_gt): Strip out vmlinu[xz]- prefix
47501 so that [xz] isn't taken into account when determining order.
47502
352466bf 475032007-08-02 Marco Gerards <marco@gnu.org>
47504
47505 * DISTLIST: Add `disk/host.c', `fs/ntfs.c', `include/multiboot.h',
47506 `include/multiboot2.h', `include/grub/elfload.h',
47507 `include/multiboot.h', `include/grub/multiboot.h',
47508 `include/grub/multiboot_loader.h', `include/grub/multiboot2.h',
47509 `include/grub/i386/pc/biosdisk.h', `include/grub/util/biosdisk.h',
47510 `kern/elf.c', `loader/multiboot_loader.c',
47511 `loader/multiboot_loader_normal.c', `loader/multiboot2.c',
47512 `loader/i386/pc/multiboot2.c',
47513 `loader/powerpc/ieee1275/multiboot2.c', `util/hostfs.c' and
47514 `util/i386/pc/grub-mkrescue.in'. Remove
47515 `include/grub/biosdisk.h', `include/grub/i386/pc/multiboot.h',
47516 `include/grub/i386/pc/util/biosdisk.h' and
47517 `include/grub/powerpc/ieee1275/multiboot.h'.
47518
8f096014 475192007-08-02 Bean <bean123ch@gmail.com>
47520
47521 * conf/common.rmk (pkgdata_MODULES): Add ntfs.mod.
47522 (ntfs_mod_SOURCES): New variable.
47523 (ntfs_mod_CFLAGS): Likewise.
47524 (ntfs_mod_LDFLAGS): Likewise.
47525
47526 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfs.c.
47527 (grub_probe_SOURCES): Likewise.
47528 (grub_emu_SOURCES): Likewise.
47529
47530 * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
47531 (grub_emu_SOURCES): Likewise.
47532
47533 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
47534 (grub_emu_SOURCES): Likewise.
f19dbdb7 47535
8f096014 47536 * conf/misc.c (grub_utf16_to_utf8): Fix unicode conversion bug.
47537
47538 * fs/ntfs.c: New file.
47539
9959f7db 475402007-08-02 Bean <bean123ch@gmail.com>
47541
47542 * disk.h (grub_disk): Use NESTED_FUNC_ATTR.
47543
47544 * file.h (grub_file): Likewise.
47545
47546 * fshelp.h (grub_fshelp_read_file): Likewise.
47547
47548 * util/i386/pc/grub-setup.c (setup): Likewise.
47549 (save_first_sector): Likewise.
47550 (save_blocklists): Likewise.
f19dbdb7 47551
9959f7db 47552 * fs/affs.c (grub_affs_read_file): Likewise.
47553
47554 * fs/ext2.c (grub_ext2_read_file): Likewise.
47555
47556 * fs/fat.c (grub_fat_read_data): Likewise.
47557
47558 * fs/fshelp.c (grub_fshelp_read_file): Likewise.
47559
47560 * fs/hfs.c (grub_hfs_read_file): Likewise.
47561
47562 * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
47563
47564 * fs/jfs.c (grub_jfs_read_file): Likewise.
47565
47566 * fs/minix.c (grub_minix_read_file): Likewise.
47567
47568 * fs/sfs.c (grub_sfs_read_file): Likewise.
47569
47570 * fs/ufs.c (grub_ufs_read_file): Likewise.
f19dbdb7 47571
9959f7db 47572 * fs/xfs.c (grub_xfs_read_file): Likewise.
47573
47574 * command/blocklist.c (read_blocklist): Likewise.
47575 (print_blocklist): Likewise.
47576
0a203f83 475772007-08-02 Marco Gerards <marco@gnu.org>
47578
47579 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/host.c' and
47580 `util/hostfs.c'.
47581
47582 * disk/host.c: New file.
47583
47584 * util/hostfs.c: Likewise.
47585
47586 * fs/hfsplus.c (grub_hfsplus_mount): When reading out of disk,
47587 return `GRUB_ERR_BAD_FS'.
47588 * fs/sfs.c (grub_sfs_mount): Likewise.
47589 * fs/xfs.c (grub_xfs_mount): Likewise.
47590
47591 * include/grub/disk.h (enum grub_disk_dev_id): Add
47592 `GRUB_DISK_DEVICE_HOST_ID'.
47593
47594 * util/grub-emu.c (main): Initialize and de-initialize hostfs.
47595
e5dfe777 475962007-07-24 Jerone Young <jerone@gmail.com>
47597
f19dbdb7 47598 * conf/i386-pc.rmk: Add Multiboot loader and multiboot 2 to multiboot
e5dfe777 47599 modules for compilation.
47600 * conf/powerpc-ieee1275.rmk: Likewise.
47601
47602 * include/multiboot.h: Move multiboot definitions to one file. Rename
47603 many definitions to not get grub specific.
47604 * include/multiboot2.h: Create header with multiboot 2 definitions.
47605 * include/grub/multiboot.h: Header for grub specific function
47606 prototypes and definitions.
47607 * include/grub/multiboot2.h: Likewise.
47608 * include/grub/multiboot_loader.h: Likewise.
47609 * include/grub/i386/pc/multiboot.h: Removed.
47610 * include/grub/powerpc/ieee1275/multiboot.h: Removed.
47611
47612 * loader/multiboot_loader.c: Created to act as a proxy for multiboot 1
47613 and 2 to allow for one multiboot and module commands.
47614 * loader/multiboot2.c: Add multiboot2 functionality.
47615 * loader/i386/pc/multiboot.c: Modify for new multiboot header location
47616 and definition names.
47617 * loader/i386/pc/multiboot2.c: Created to add i386 specific multiboot
47618 2 functions.
47619 * loader/powerpc/ieee1275/multiboot2.c: Created to add powerpc
47620 ieee1275 specific multiboot2 code.
47621
47622 * kern/i386/pc/startup.S: Change headers and definition names for
47623 multiboot. Add function grub_multiboot2_real_boot for multiboot 2.
47624
daf0f0ba 476252007-07-22 Robert Millan <rmh@aybabtu.com>
47626
47627 * geninitheader.sh: Process file specified in first parameter rather
47628 than hardcoding grub_modules_init.lst.
fe6b695a 47629 * geninit.sh: Likewise. Also, construct header name dynamically rather
daf0f0ba 47630 than hardcoding grub_modules_init.h.
47631
47632 * conf/common.rmk: Rename grub_modules_init.[ch] files associated with
47633 grub-emu to grub_emu_init.[ch]. Add rules to build analogous
47634 grub_probe_init.[ch] and grub_setup_init.[ch].
47635
47636 * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Replace
47637 grub_modules_init.h with grub_emu_init.h.
47638 (grub_probe_DEPENDENCIES, grub_probe_SOURCES): Add new
47639 grub_probe_init.[ch] files.
47640 * conf/i386-efi.rmk: Likewise.
47641 * conf/i386-pc.rmk: Likewise.
47642 (grub_setup_DEPENDENCIES, grub_setup_SOURCES): Add new
47643 grub_setup_init.[ch] files.
47644
47645 * util/grub-emu.c: Replace grub_modules_init.h with grub_emu_init.h.
47646 * util/grub-probe.c: Include grub_probe_init.h. Use grub_init_all()
47647 to initialize modules rather than a list of hardcoded functions.
47648 * util/i386/pc/grub-setup.c: Include grub_setup_init.h. Use
47649 grub_init_all() to initialize modules rather than a list of hardcoded
47650 functions.
47651
54cdc1cc 476522007-07-22 Robert Millan <rmh@aybabtu.com>
47653
47654 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set
47655 GRUB_IEEE1275_FLAG_NO_PARTITION_0 flag when running on SmartFirmware.
47656
ad0686cc 476572007-07-22 Robert Millan <rmh@aybabtu.com>
47658
47659 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
47660 GRUB_IEEE1275_FLAG_BROKEN_OUTPUT flag.
47661 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set this
47662 flag when running on SmartFirmware.
47663 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid running
47664 "output-device output" command when GRUB_IEEE1275_FLAG_BROKEN_OUTPUT
47665 was set.
47666
47667 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
47668 Increase partno when GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS flag is set,
47669 rather than decreasing it.
47670
47671 * util/i386/pc/grub-setup.c (setup): When embedding is required, but
47672 there's not enough space to do it, fail in the same way as when it
47673 can't be done because there are no partitions.
47674
47675 * util/powerpc/ieee1275/grub-install.in: Improve error message shown
47676 when nvsetenv failed.
47677
969c02ec 476782007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
47679
47680 * conf/i386-pc.rmk (CLEANFILES): Removed for grub-mkrescue,
47681 because this rule is automatically generated.
47682 (grub-mkrescue): Removed for the same reason as above.
47683
5a79f472 476842007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
47685
47686 Migrate to GNU General Public License Version 3.
f19dbdb7 47687
5a79f472 47688 * COPYING: Replaced with the plain text version of GPLv3.
47689
47690 * config.guess: Updated from gnulib.
47691 * config.sub: Likewise.
47692
47693 * geninit.sh: Output a GPLv3 copyright notice.
47694 * geninitheader.sh: Likewise.
47695 * genmodsrc.sh: Likewise.
47696 * gensymlist.sh.in: Likewise.
47697
47698 * boot/i386/pc/boot.S: Upgraded to GPLv3.
47699 * boot/i386/pc/diskboot.S: Likewise.
47700 * boot/i386/pc/pxeboot.S: Likewise.
47701 * commands/blocklist.c: Likewise.
47702 * commands/boot.c: Likewise.
47703 * commands/cat.c: Likewise.
47704 * commands/cmp.c: Likewise.
47705 * commands/configfile.c: Likewise.
47706 * commands/echo.c: Likewise.
47707 * commands/help.c: Likewise.
47708 * commands/ls.c: Likewise.
47709 * commands/search.c: Likewise.
47710 * commands/terminal.c: Likewise.
47711 * commands/test.c: Likewise.
47712 * commands/videotest.c: Likewise.
47713 * commands/i386/cpuid.c: Likewise.
47714 * commands/i386/pc/halt.c: Likewise.
47715 * commands/i386/pc/play.c: Likewise.
47716 * commands/i386/pc/reboot.c: Likewise.
47717 * commands/i386/pc/vbeinfo.c: Likewise.
47718 * commands/i386/pc/vbetest.c: Likewise.
47719 * commands/ieee1275/halt.c: Likewise.
47720 * commands/ieee1275/reboot.c: Likewise.
47721 * commands/ieee1275/suspend.c: Likewise.
47722 * disk/loopback.c: Likewise.
47723 * disk/lvm.c: Likewise.
47724 * disk/raid.c: Likewise.
47725 * disk/efi/efidisk.c: Likewise.
47726 * disk/i386/pc/biosdisk.c: Likewise.
47727 * disk/ieee1275/ofdisk.c: Likewise.
47728 * font/manager.c: Likewise.
47729 * fs/affs.c: Likewise.
47730 * fs/ext2.c: Likewise.
47731 * fs/fat.c: Likewise.
47732 * fs/fshelp.c: Likewise.
47733 * fs/hfs.c: Likewise.
47734 * fs/hfsplus.c: Likewise.
47735 * fs/iso9660.c: Likewise.
47736 * fs/jfs.c: Likewise.
47737 * fs/minix.c: Likewise.
47738 * fs/sfs.c: Likewise.
47739 * fs/ufs.c: Likewise.
47740 * fs/xfs.c: Likewise.
47741 * hello/hello.c: Likewise.
47742 * include/grub/acorn_filecore.h: Likewise.
47743 * include/grub/arg.h: Likewise.
47744 * include/grub/bitmap.h: Likewise.
47745 * include/grub/boot.h: Likewise.
47746 * include/grub/cache.h: Likewise.
47747 * include/grub/device.h: Likewise.
47748 * include/grub/disk.h: Likewise.
47749 * include/grub/dl.h: Likewise.
47750 * include/grub/elfload.h: Likewise.
47751 * include/grub/env.h: Likewise.
47752 * include/grub/err.h: Likewise.
47753 * include/grub/file.h: Likewise.
47754 * include/grub/font.h: Likewise.
47755 * include/grub/fs.h: Likewise.
47756 * include/grub/fshelp.h: Likewise.
47757 * include/grub/gzio.h: Likewise.
47758 * include/grub/hfs.h: Likewise.
47759 * include/grub/kernel.h: Likewise.
47760 * include/grub/loader.h: Likewise.
47761 * include/grub/lvm.h: Likewise.
47762 * include/grub/misc.h: Likewise.
47763 * include/grub/mm.h: Likewise.
47764 * include/grub/net.h: Likewise.
47765 * include/grub/normal.h: Likewise.
47766 * include/grub/parser.h: Likewise.
47767 * include/grub/partition.h: Likewise.
47768 * include/grub/pc_partition.h: Likewise.
47769 * include/grub/raid.h: Likewise.
47770 * include/grub/rescue.h: Likewise.
47771 * include/grub/script.h: Likewise.
47772 * include/grub/setjmp.h: Likewise.
47773 * include/grub/symbol.h: Likewise.
47774 * include/grub/term.h: Likewise.
47775 * include/grub/terminfo.h: Likewise.
47776 * include/grub/tparm.h: Likewise.
47777 * include/grub/types.h: Likewise.
47778 * include/grub/video.h: Likewise.
47779 * include/grub/efi/api.h: Likewise.
47780 * include/grub/efi/chainloader.h: Likewise.
47781 * include/grub/efi/console.h: Likewise.
47782 * include/grub/efi/console_control.h: Likewise.
47783 * include/grub/efi/disk.h: Likewise.
47784 * include/grub/efi/efi.h: Likewise.
47785 * include/grub/efi/pe32.h: Likewise.
47786 * include/grub/efi/time.h: Likewise.
47787 * include/grub/i386/linux.h: Likewise.
47788 * include/grub/i386/setjmp.h: Likewise.
47789 * include/grub/i386/types.h: Likewise.
47790 * include/grub/i386/efi/kernel.h: Likewise.
47791 * include/grub/i386/efi/loader.h: Likewise.
47792 * include/grub/i386/efi/time.h: Likewise.
47793 * include/grub/i386/pc/biosdisk.h: Likewise.
47794 * include/grub/i386/pc/boot.h: Likewise.
47795 * include/grub/i386/pc/chainloader.h: Likewise.
47796 * include/grub/i386/pc/console.h: Likewise.
47797 * include/grub/i386/pc/init.h: Likewise.
47798 * include/grub/i386/pc/kernel.h: Likewise.
47799 * include/grub/i386/pc/loader.h: Likewise.
47800 * include/grub/i386/pc/memory.h: Likewise.
47801 * include/grub/i386/pc/multiboot.h: Likewise.
47802 * include/grub/i386/pc/serial.h: Likewise.
47803 * include/grub/i386/pc/time.h: Likewise.
47804 * include/grub/i386/pc/vbe.h: Likewise.
47805 * include/grub/i386/pc/vbeblit.h: Likewise.
47806 * include/grub/i386/pc/vbefill.h: Likewise.
47807 * include/grub/i386/pc/vbeutil.h: Likewise.
47808 * include/grub/i386/pc/vga.h: Likewise.
47809 * include/grub/ieee1275/ieee1275.h: Likewise.
47810 * include/grub/ieee1275/ofdisk.h: Likewise.
47811 * include/grub/powerpc/libgcc.h: Likewise.
47812 * include/grub/powerpc/setjmp.h: Likewise.
47813 * include/grub/powerpc/types.h: Likewise.
47814 * include/grub/powerpc/ieee1275/biosdisk.h: Likewise.
47815 * include/grub/powerpc/ieee1275/console.h: Likewise.
47816 * include/grub/powerpc/ieee1275/ieee1275.h: Likewise.
47817 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
47818 * include/grub/powerpc/ieee1275/loader.h: Likewise.
47819 * include/grub/powerpc/ieee1275/multiboot.h: Likewise.
47820 * include/grub/powerpc/ieee1275/time.h: Likewise.
47821 * include/grub/powerpc/ieee1275/util/biosdisk.h: Likewise.
47822 * include/grub/sparc64/libgcc.h: Likewise.
47823 * include/grub/sparc64/setjmp.h: Likewise.
47824 * include/grub/sparc64/types.h: Likewise.
47825 * include/grub/sparc64/ieee1275/console.h: Likewise.
47826 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
47827 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
47828 * include/grub/sparc64/ieee1275/time.h: Likewise.
47829 * include/grub/util/biosdisk.h: Likewise.
47830 * include/grub/util/getroot.h: Likewise.
47831 * include/grub/util/lvm.h: Likewise.
47832 * include/grub/util/misc.h: Likewise.
47833 * include/grub/util/raid.h: Likewise.
47834 * include/grub/util/resolve.h: Likewise.
47835 * io/gzio.c: Likewise.
47836 * kern/device.c: Likewise.
47837 * kern/disk.c: Likewise.
47838 * kern/dl.c: Likewise.
47839 * kern/elf.c: Likewise.
47840 * kern/env.c: Likewise.
47841 * kern/err.c: Likewise.
47842 * kern/file.c: Likewise.
47843 * kern/fs.c: Likewise.
47844 * kern/loader.c: Likewise.
47845 * kern/main.c: Likewise.
47846 * kern/misc.c: Likewise.
47847 * kern/mm.c: Likewise.
47848 * kern/parser.c: Likewise.
47849 * kern/partition.c: Likewise.
47850 * kern/rescue.c: Likewise.
47851 * kern/term.c: Likewise.
47852 * kern/efi/efi.c: Likewise.
47853 * kern/efi/init.c: Likewise.
47854 * kern/efi/mm.c: Likewise.
47855 * kern/i386/dl.c: Likewise.
47856 * kern/i386/efi/init.c: Likewise.
47857 * kern/i386/efi/startup.S: Likewise.
47858 * kern/i386/pc/init.c: Likewise.
47859 * kern/i386/pc/lzo1x.S: Likewise.
47860 * kern/i386/pc/startup.S: Likewise.
47861 * kern/ieee1275/ieee1275.c: Likewise.
47862 * kern/powerpc/cache.S: Likewise.
47863 * kern/powerpc/dl.c: Likewise.
47864 * kern/powerpc/ieee1275/cmain.c: Likewise.
47865 * kern/powerpc/ieee1275/crt0.S: Likewise.
47866 * kern/powerpc/ieee1275/init.c: Likewise.
47867 * kern/powerpc/ieee1275/openfw.c: Likewise.
47868 * kern/sparc64/cache.S: Likewise.
47869 * kern/sparc64/dl.c: Likewise.
47870 * kern/sparc64/ieee1275/init.c: Likewise.
47871 * kern/sparc64/ieee1275/openfw.c: Likewise.
47872 * loader/efi/chainloader.c: Likewise.
47873 * loader/efi/chainloader_normal.c: Likewise.
47874 * loader/i386/efi/linux.c: Likewise.
47875 * loader/i386/efi/linux_normal.c: Likewise.
47876 * loader/i386/pc/chainloader.c: Likewise.
47877 * loader/i386/pc/chainloader_normal.c: Likewise.
47878 * loader/i386/pc/linux.c: Likewise.
47879 * loader/i386/pc/linux_normal.c: Likewise.
47880 * loader/i386/pc/multiboot.c: Likewise.
47881 * loader/i386/pc/multiboot_normal.c: Likewise.
47882 * loader/powerpc/ieee1275/linux.c: Likewise.
47883 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
47884 * normal/arg.c: Likewise.
47885 * normal/cmdline.c: Likewise.
47886 * normal/command.c: Likewise.
47887 * normal/completion.c: Likewise.
47888 * normal/execute.c: Likewise.
47889 * normal/function.c: Likewise.
47890 * normal/lexer.c: Likewise.
47891 * normal/main.c: Likewise.
47892 * normal/menu.c: Likewise.
47893 * normal/menu_entry.c: Likewise.
47894 * normal/misc.c: Likewise.
47895 * normal/parser.y: Likewise.
47896 * normal/script.c: Likewise.
47897 * normal/i386/setjmp.S: Likewise.
47898 * normal/powerpc/setjmp.S: Likewise.
47899 * normal/sparc64/setjmp.S: Likewise.
47900 * partmap/acorn.c: Likewise.
47901 * partmap/amiga.c: Likewise.
47902 * partmap/apple.c: Likewise.
47903 * partmap/gpt.c: Likewise.
47904 * partmap/pc.c: Likewise.
47905 * partmap/sun.c: Likewise.
47906 * term/gfxterm.c: Likewise.
47907 * term/terminfo.c: Likewise.
47908 * term/efi/console.c: Likewise.
47909 * term/i386/pc/console.c: Likewise.
47910 * term/i386/pc/serial.c: Likewise.
47911 * term/i386/pc/vesafb.c: Likewise.
47912 * term/i386/pc/vga.c: Likewise.
47913 * term/ieee1275/ofconsole.c: Likewise.
47914 * util/biosdisk.c: Likewise.
47915 * util/console.c: Likewise.
47916 * util/genmoddep.c: Likewise.
47917 * util/getroot.c: Likewise.
47918 * util/grub-emu.c: Likewise.
47919 * util/grub-mkdevicemap.c: Likewise.
47920 * util/grub-probe.c: Likewise.
47921 * util/lvm.c: Likewise.
47922 * util/misc.c: Likewise.
47923 * util/raid.c: Likewise.
47924 * util/resolve.c: Likewise.
47925 * util/update-grub.in: Likewise.
47926 * util/update-grub_lib.in: Likewise.
47927 * util/grub.d/00_header.in: Likewise.
47928 * util/grub.d/10_hurd.in: Likewise.
47929 * util/grub.d/10_linux.in: Likewise.
47930 * util/i386/efi/grub-install.in: Likewise.
47931 * util/i386/efi/grub-mkimage.c: Likewise.
47932 * util/i386/pc/grub-install.in: Likewise.
47933 * util/i386/pc/grub-mkimage.c: Likewise.
47934 * util/i386/pc/grub-mkrescue.in: Likewise.
47935 * util/i386/pc/grub-setup.c: Likewise.
47936 * util/i386/pc/misc.c: Likewise.
47937 * util/powerpc/ieee1275/grub-install.in: Likewise.
47938 * util/powerpc/ieee1275/grub-mkimage.c: Likewise.
47939 * util/powerpc/ieee1275/misc.c: Likewise.
47940 * video/bitmap.c: Likewise.
47941 * video/video.c: Likewise.
47942 * video/i386/pc/vbe.c: Likewise.
47943 * video/i386/pc/vbeblit.c: Likewise.
47944 * video/i386/pc/vbefill.c: Likewise.
47945 * video/i386/pc/vbeutil.c: Likewise.
47946 * video/readers/tga.c: Likewise.
47947
3572d015 479482007-07-02 Robert Millan <rmh@aybabtu.com>
47949
47950 * conf/i386-efi.rmk: Replace obsolete reference to
47951 util/i386/pc/biosdisk.c with util/biosdisk.c, and util/i386/pc/getroot.c
47952 with util/getroot.c.
47953 * conf/powerpc-ieee1275.rmk: Likewise.
47954 * conf/sparc64-ieee1275.rmk: Likewise.
47955
47956 * util/grub-emu.c (main): Fix unchecked pointer handling.
47957
2c2a681b 479582007-07-02 Robert Millan <rmh@aybabtu.com>
47959
47960 * util/i386/efi/grub-install.in: Allow `grub_probe --target=partmap'
47961 invocation to fail, in order to support partition-less media.
47962
47963 * util/i386/pc/grub-install.in: Likewise.
47964
47965 * util/powerpc/ieee1275/grub-install.in: Use grub-probe to determine
47966 which fs or partmap modules are needed (akin to its sister scripts).
47967
47968 Also use grub-probe to get rid of unportable /proc/mounts check.
47969
47970 Print the same informational message that the other scripts do, before
fe6b695a 47971 exiting.
2c2a681b 47972
6193defe 479732007-06-23 Robert Millan <rmh@aybabtu.com>
47974
fe6b695a 47975 * util/update-grub_lib.in (font_path): New function. Determine whether
6193defe 47976 a font file can be found and, if so, echo the GRUB path to it.
47977
47978 * util/update-grub.in: Handle multiple terminals depending on user
47979 input, platform availability and font file presence. Propagate
47980 variables of our findings to /etc/grub.d/ children.
47981
47982 * util/grub.d/00_header.in: Handle multiple terminals, based on
47983 environment setup by update-grub.
47984
eface1dc 479852007-06-23 Robert Millan <rmh@aybabtu.com>
47986
ba50d28f 47987 * conf/i386-pc.rmk (pkgdata_MODULES): Add serial.mod.
eface1dc 47988
bf697e28 479892007-06-21 Robert Millan <rmh@aybabtu.com>
47990
47991 * include/grub/i386/pc/kernel.h: Define GRUB_KERNEL_MACHINE_DATA_END to
47992 indicate end of data section in kernel image.
47993 * include/grub/i386/efi/kernel.h: Define GRUB_KERNEL_MACHINE_PREFIX and
47994 GRUB_KERNEL_MACHINE_DATA_END.
47995
47996 * kern/i386/pc/startup.S: Do not initialize grub_prefix, only reserve
47997 space for it.
47998 * kern/i386/efi/startup.S: Likewise.
47999
48000 * util/i386/pc/grub-mkimage.c: Initialize grub_prefix to /boot/grub
48001 during image generation. Implement --prefix option to override this
48002 patch.
48003 * util/i386/efi/grub-mkimage.c: Likewise.
48004
48005 * util/update-grub_lib.in (convert_system_path_to_grub_path): Split
48006 code to make path relative to its root into a separate function.
48007
48008 * util/i386/pc/grub-install.in: Use newly provided
48009 make_system_path_relative_to_its_root() to convert ${grubdir}, then
48010 pass the result to grub-install --prefix.
48011
baa574b4 480122007-06-13 Robert Millan <rmh@aybabtu.com>
48013
48014 * include/grub/util/misc.h: Define DEFAULT_DIRECTORY and
48015 DEFAULT_DEVICE_MAP.
48016 * util/grub-emu.c: Use above definitions from misc.h instead of
48017 defining them.
48018 * util/grub-mkdevicemap.c: Likewise.
48019 * util/i386/pc/grub-setup.c: Likewise.
48020 * util/grub-probe.c: Likewise.
48021 (probe): Abort with grub_util_error() when either
48022 grub_guess_root_device or grub_util_get_grub_dev fails.
48023
0215dcbf 480242007-06-12 Robert Millan <rmh@aybabtu.com>
48025
48026 * normal/command.c (grub_command_execute): Use NULL rather than 0 for
48027 "pager" assignment.
48028 * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Likewise for
48029 "pcdata".
48030 * util/grub-probe.c (probe): Likewise for "drive_name".
48031
8af2ab7b 480322007-06-11 Robert Millan <rmh@aybabtu.com>
48033
48034 * util/i386/pc/grub-mkrescue.in: Pad both floppy images with zeroes,
48035 not just the cdrom one.
48036
59d31694 480372007-06-11 Robert Millan <rmh@aybabtu.com>
48038
48039 * util/i386/pc/grub-mkrescue.in: Add "set -e".
48040 Add --pkglibdir=DIR option to override pkglibdir.
48041 Mention --image-type=TYPE in help output.
48042 Fix --grub-mkimage (it was a no-op).
fe6b695a 48043 Abort gracefully when no parameter is given.
59d31694 48044
7ee367e4 480452007-06-11 Robert Millan <rmh@aybabtu.com>
48046
48047 * util/i386/pc/grub-mkrescue.in: New file.
48048 * conf/i386-pc.rmk: Add its build declarations. Put it in bin_SCRIPTS.
48049 * Makefile.in: Handle bin_SCRIPTS.
48050
29b0ed46 480512007-06-10 Vesa Jaaskelainen <chaac@nic.fi>
48052
48053 * term/gfxterm.c (grub_gfxterm_init): Added support for specifying
48054 list of video modes.
48055
c0f90770 480562007-06-06 Robert Millan <rmh@aybabtu.com>
48057
48058 * util/update-grub_lib.in (convert_system_path_to_grub_path): Abort if
48059 file doesn't exist, or if it is in a filesystem grub can't read.
48060
48061 * util/update-grub.in: Set fallback for GRUB_FS check to "unknown". Do
48062 not abort if GRUB_DRIVE could not be defined. Rearrange generated
48063 header comment to fit in 80 columns when the variables are resolved.
48064
48065 * util/grub.d/00_header.in: Only set root variable when GRUB_DRIVE
48066 could be identified by update-grub. Remove redundant check for
fe6b695a 48067 unifont.pff existence (since convert_system_path_to_grub_path now
c0f90770 48068 handles that).
48069
fb36dc26 480702007-06-04 Robert Millan <rmh@aybabtu.com>
48071
48072 * conf/i386-efi.rmk (grub_probe_SOURCES): Add partmap/apple.c.
48073
48074 * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise.
48075
48076 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add partmap/pc.c.
48077
0c68c93e 480782007-06-04 Robert Millan <rmh@aybabtu.com>
48079
48080 * conf/powerpc-ieee1275.rmk: Enable grub-mkdevicemap and grub-probe.
48081
48082 * include/grub/partition.h: Declare grub_apple_partition_map_init and
48083 grub_apple_partition_map_fini.
48084
48085 * util/biosdisk.c
48086 (grub_util_biosdisk_open): Replace BLKGETSIZE with BLKGETSIZE64 (needed
48087 to access >2 TiB disks).
48088
48089 Print disk->total_sectors with %llu instead of %lu, since this
48090 variable is always 64-bit (prevents wrong disk size from being displayed
48091 on either >2 TiB disk or big-endian CPU).
48092
48093 (grub_util_biosdisk_get_grub_dev): Convert gpt_partition_map handling
48094 into a generic case that supports all (sane) partition maps.
48095
48096 Stop using grub_cpu_to_le32() on dos_part / bsd_part since it actually
48097 breaks big-endian.
48098
48099 * util/grub-probe.c: Call grub_apple_partition_map_init() before probe()
48100 and grub_apple_partition_map_fini() after that.
48101
0f23eb74 481022007-06-01 Robert Millan <rmh@aybabtu.com>
48103
48104 * util/update-grub.in: Export GRUB_CMDLINE_LINUX.
48105
48106 * util/grub.d/00_header.in: Only enable gfxterm when
48107 convert_system_path_to_grub_path() succeeds.
48108
42c71976 481092007-05-20 Robert Millan <rmh@aybabtu.com>
48110
48111 * util/update-grub_lib.in: New file.
48112 * DISTLIST: Add update-grub_lib.in.
48113 * conf/common.rmk: Generate update-grub_lib and install it in
48114 $(lib_DATA).
48115 * Makefile.in: Add install routine for $(lib_DATA).
48116
48117 * util/grub.d/00_header.in: Use convert_system_path_to_grub_path()
48118 function provided by update-grub_lib to support arbitrary paths of
48119 unifont.pff.
48120 * util/update-grub.in: Use convert_system_path_to_grub_path() to
48121 initialize GRUB_DRIVE_BOOT and GRUB_DRIVE_BOOT_GRUB variables.
48122
5beb2291 481232007-05-19 Robert Millan <rmh@aybabtu.com>
48124
48125 * commands/i386/cpuid.c: New module.
48126 * DISTLIST: Add it.
48127 * conf/i386-efi.rmk: Enable cpuid.mod.
48128 * conf/i386-pc.rmk: Likewise.
48129
7262eca1 481302007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
48131
48132 * kern/disk.c (grub_disk_read): Check return value of
48133 grub_realloc().
48134
260ba823 481352007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
48136
48137 * util/getroot.c (grub_util_get_grub_dev): Support partitionable
48138 arrays.
48139 * disk/raid.c (grub_raid_open): Likewise.
48140
1ecb6cf2 481412007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
48142
48143 * util/biosdisk.c (linux_find_partition): Allocate real_dev on the
48144 stack instead of on the heap.
48145
48146 * kern/disk.c (grub_disk_read): Make sure tmp_buf is big enough
48147 before doing a read on it.
48148
48149 * configure.ac: Only use -fno-stack-protector for the target
48150 environment.
f19dbdb7 48151
21c8cbb1 481522007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
48153
48154 * video/i386/pc/vbe.c (grub_video_vbe_create_render_target): Add
48155 __attribute_ ((unused)) to mode_type argument.
48156
48157 * util/getroot.c (grub_guess_root_device): Fix #endif.
f19dbdb7 48158
21c8cbb1 48159 * kern/misc.c (memcmp): Fix prototype.
48160
48161 * include/grub/partition.h [GRUB_UTIL]
48162 (grub_gpt_partition_map_init): Add prototype.
48163 (grub_gpt_partition_map_fini): Likewise.
48164
48165 * fs/jfs.c (struct grub_jfs_inode): Put __attribute__ ((packed)
48166 at the right place.
48167
48168 * fs/fat.c (grub_fat_mount): Replace ~0UL with ~0U.
48169 (grub_fat_read_data): Likewise.
48170 (grub_fat_find_dir): Likewise.
48171
48172 * font/manager.c (find_glyph): Make table a const.
48173 (grub_font_get_glyph): Remove bitmap from if statement.
f19dbdb7 48174
849d55d3 481752007-05-16 Jeroen Dekkers <jeroen@dekkers.cx>
48176
48177 * util/getroot.c (grub_guess_root_device): Remove RAID and LVM
48178 code, first search for device in /dev/mapper, then in /dev.
48179 (grub_util_get_grub_dev): New function.
48180 * include/grub/util/getroot.h (grub_util_get_grub_dev): Add
48181 prototype.
48182 * util/grub-probe.c (probe): Remove check for RAID, call
48183 grub_util_get_grub_dev() instead of
48184 grub_util_biosdisk_get_grub_dev().
48185 * util/grub-emu.c (main): Call grub_util_get_grub_dev() instead of
48186 grub_util_biosdisk_get_grub_dev().
48187 * util/i386/pc/grub-setup.c (main): Likewise.
48188
8fff7c2f 481892007-05-16 Robert Millan <rmh@aybabtu.com>
48190
48191 * DISTLIST: Update for the latest changes.
48192 * conf/i386-pc.rmk: Use the new paths for util/getroot.c,
48193 util/grub-mkdevicemap.c, util/grub-probe.c and util/biosdisk.c.
48194 * util/grub-emu.c: Replace grub/i386/pc/util/biosdisk.h with
48195 grub/util/biosdisk.h.
48196 * util/i386/pc/grub-setup.c: Replace grub/machine/util/biosdisk.h with
48197 grub/util/biosdisk.h.
48198
48e12b52 481992007-05-16 Robert Millan <rmh@aybabtu.com>
48200
48201 * util/grub.d/00_header.in: Set default gfxmode to `640x480'.
48202
46b9d128 482032007-05-16 Robert Millan <rmh@aybabtu.com>
48204
48205 * util/i386/efi/grub-install.in: New.
48206 * conf/i386-efi.rmk: Enable grub-mkdevicemap, grub-probe and the
48207 newly added grub-install.
48208 * util/biosdisk.c: Remove unnecessary grub/machine/biosdisk.h
48209 include.
48210 * util/getroot.c: Replace grub/i386/pc/util/biosdisk.h with
48211 grub/util/biosdisk.h.
48212 * util/grub-probe.c: Replace grub/machine/util/biosdisk.h with
48213 grub/util/biosdisk.h.
48214
2d1a40a9 482152007-05-16 Robert Millan <rmh@aybabtu.com>
48216
48217 * include/grub/i386/pc/util/biosdisk.h: Moved to ...
48218 * include/grub/util/biosdisk.h: ... here.
48219 * util/i386/pc/biosdisk.c: Moved to ...
48220 * util/biosdisk.c: ... here.
48221 * util/i386/pc/getroot.c: Moved to ...
48222 * util/getroot.c: ... here.
48223 * util/i386/pc/grub-mkdevicemap.c: Moved to ...
48224 * util/grub-mkdevicemap.c: ... here.
48225 * util/i386/pc/grub-probe.c: Moved to ...
48226 * util/grub-probe.c: ... here.
48227
9e26e3bc 482282007-05-15 Robert Millan <rmh@aybabtu.com>
48229
48230 * util/update-grub.in: Remove duplicated line in grub.cfg header
48231 message.
48232
57f96397 482332007-05-13 Robert Millan <rmh@aybabtu.com>
48234
48235 * util/update-grub.in: Fix a few assumptions about the devices holding
48236 /, /boot and /boot/grub being the same.
48237 * util/grub.d/00_header.in: Likewise.
48238 * util/grub.d/10_hurd.in: Likewise.
48239 * util/grub.d/10_linux.in: Likewise.
48240
48241 * util/grub.d/10_linux.in: Implement Linux image sorting with arbitrary
48242 patterns. Use that to define the `.old' suffix as older than `'.
48243
48244 * util/grub.d/00_header.in: Set default gfxmode to `800x600x16'.
48245
48246 * util/update-grub.in: Add a reference to ${sysconfdir}/default/grub in
48247 the grub.cfg header message.
48248
2e610d62 482492007-05-11 Robert Millan <rmh@aybabtu.com>
48250
48251 * util/update-grub.in: Create device.map if it doesn't already exist,
48252 before attempting to run grub-probe.
48253 Check for grub-probe and grub-mkdevicemap with the same code
48254 grub-install is using.
48255 Remove test mode.
48256
3f6a10ef 482572007-05-09 Jeroen Dekkers <jeroen@dekkers.cx>
48258
48259 * Makefile.in: Add the datarootdir autoconf variable.
48260
02e7b75e 482612007-05-09 Robert Millan <rmh@aybabtu.com>
48262
48263 * util/i386/pc/grub-probe.c (probe): When detecting partition map,
f19dbdb7 48264 fail gracefully if dev->disk->partition == NULL.
02e7b75e 48265
75f396cc 482662007-05-07 Robert Millan <rmh@aybabtu.com>
48267
48268 * util/i386/pc/grub-probe.c: Add `grub-probe -t partmap' parameter to
48269 determine partition map module.
48270 * util/i386/pc/grub-install.in: Use this feature to decide which
48271 partition module to load, instead of hardcoding pc and gpt.
48272
da65cb36 482732007-05-07 Robert Millan <rmh@aybabtu.com>
48274
48275 * Makefile.in: Fix assumption that $(srcdir) has a trailing slash when
48276 source directory differs from build directory.
48277
b57d6a91 482782007-05-05 Robert Millan <rmh@aybabtu.com>
48279
48280 * util/powerpc/ieee1275/grub-install.in: Fix syntax error in pkglibdir
48281 initialisation.
48282
509d00f1 482832007-05-05 Robert Millan <rmh@aybabtu.com>
48284
48285 * util/update-grub.in: Create ${grub_prefix} if it doesn't exist.
48286
c48f23ef 482872007-05-05 Robert Millan <rmh@aybabtu.com>
48288
48289 * util/grub.d/10_linux.in: Allow the administrator to insert Linux
48290 command-line arguments via ${GRUB_CMDLINE_LINUX}.
48291
20b97658 482922007-05-05 Robert Millan <rmh@aybabtu.com>
48293
48294 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/gpt.c.
48295 (grub_probe_SOURCES): Likewise.
48296 * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): Detect
48297 GPT and initialize dos_part and bsd_part accordingly.
48298 * util/i386/pc/grub-setup.c (setup): Ditto for install_dos_part and
48299 install_bsd_part.
48300 (main): Activate gpt module for use during partition identification,
48301 and deactivate it afterwards.
48302 * util/i386/pc/grub-install.in: Add gpt module to core.img.
48303 * util/i386/pc/grub-probe.c (main): Activate gpt module for use during
48304 partition identification, and deactivate it afterwards.
48305
99123174 483062007-05-05 Robert Millan <rmh@aybabtu.com>
48307
48308 * term/i386/pc/console.c (grub_console_fini): Call
48309 grub_term_set_current() before grub_term_unregister().
48310
ebd97f6e 483112007-05-04 Robert Millan <rmh@aybabtu.com>
48312
48313 * DISTLIST: Add util/update-grub.in, util/grub.d/00_header.in,
48314 util/grub.d/10_hurd.in, util/grub.d/10_linux.in and util/grub.d/README.
48315 * Makefile.in: Build update-grub_SCRIPTS. Install update-grub_SCRIPTS
48316 and update-grub_DATA.
48317 * conf/common.rmk: Build and install update-grub components.
48318 * conf/common.mk: Regenerate.
48319 * util/update-grub.in: New. Core of update-grub.
48320 * util/grub.d/00_header.in: New. Generates grub.cfg header.
48321 * util/grub.d/10_hurd.in: New. Generates boot entries for the Hurd.
48322 * util/grub.d/10_linux.in: New. Generates boot entries for Linux.
48323 * util/grub.d/README: New. Document grub.d directory layout.
48324
b06a264d 483252007-05-01 Robert Millan <rmh@aybabtu.com>
48326
48327 * util/grub-emu.c: Move initialization functions
48328 grub_util_biosdisk_init() and grub_init_all() before
48329 grub_util_biosdisk_get_grub_dev(), which relies on them.
48330
41f0050e 483312007-04-19 Robert Millan <rmh@aybabtu.com>
48332
48333 * util/powerpc/ieee1275/grub-install.in: Initialize ${bindir}, since
48334 it is used later.
48335
04582bb3 483362007-04-18 Jerone Young <jerone@gmail.com>
48337
f19dbdb7 48338 * kernel/elf.c: Add missing parenthesis for conditional statement
04582bb3 48339 stanza.
48340
08db4632 483412007-04-10 Jerone Young <jerone@gmail.com>
49892fdf 48342
08db4632 48343 * util/i386/pc/getroot.c: Update so that if root device is /dev/root ,
48344 continue on and look for device node with real device name.
48345
801b76be 483462007-04-10 Jerone Young <jerone@gmail.com>
f19dbdb7 48347
fe6b695a 48348 * configure.ac: Add argument for autoconf to use transformation
1d543c3e 48349 ability.
48350 * Makefile.in: Add autoconf package transformation code.
48351 * util/i386/pc/grub-install.in: Likewise.
48352 * util/powerpc/ieee1275/grub-install.in: Likewise.
48353
6795c4e1 483542007-03-19 Yoshinori K. Okuji <okuji@enbug.org>
48355
48356 * fs/ext2.c (EXT2_GOOD_OLD_REVISION): New macro.
48357 (EXT2_GOOD_OLD_INODE_SIZE): Likewise.
48358 (EXT2_REVISION): Likewise.
48359 (EXT2_INODE_SIZE): Likewise.
48360 (struct grub_ext2_block_group): Added a missing member
48361 "used_dirs".
48362 (grub_ext2_read_inode): Divide by the inode size in a superblock
48363 instead of 128 to obtain INODES_PER_BLOCK.
48364 Use the macro EXT2_INODE_SIZE instead of directly using
48365 SBLOCK->INODE_SIZE.
48366
d70af616 483672007-03-18 Yoshinori K. Okuji <okuji@enbug.org>
48368
48369 * fs/ext2.c (grub_ext2_read_inode): Use the inode size in a
48370 superblock instead of the structure size to compute an
48371 offset. This fixes the problem that GRUB could not read a
48372 filesystem when inode size is different from 128-byte.
48373
3b801603 483742007-03-05 Marco Gerards <marco@gnu.org>
48375
48376 * normal/main.c (read_config_file): When "menu" is not set, create
48377 an initial context.
48378
4785bfe4 483792007-02-21 Hollis Blanchard <hollis@penguinppc.org>
48380
48381 * kern/powerpc/ieee1275/init.c (HEAP_SIZE): Removed.
48382 (HEAP_LIMIT): New macro.
48383 (grub_claim_heap): Claim memory up to `heaplimit'.
48384
a0cbb023 483852007-02-21 Hollis Blanchard <hollis@penguinppc.org>
48386
48387 * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Link at 64KB.
48388 * kern/powerpc/ieee1275/init.c (_end): Add declaration.
48389 (_start): Likewise.
48390 (grub_arch_modules_addr): Return address after `_end'.
48391 * util/powerpc/ieee1275/grub-mkimage.c: Include grub/misc.h.
48392 (load_modules): Use new parameter as `p_paddr' and `p_vaddr'.
48393 (add_segments): Calculate `_end' from phdr size and location.
48394 (ALIGN_UP): Moved to ...
48395 * include/grub/misc.h: here.
48396 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
48397 New macro.
48398 (GRUB_IEEE1275_MODULE_BASE): Removed.
48399
fd7d8eba 484002007-02-20 Hollis Blanchard <hollis@penguinppc.org>
48401
48402 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Correct
48403 loop boundary.
48404
9b09e6fc 484052007-02-20 Hollis Blanchard <hollis@penguinppc.org>
48406
48407 * include/grub/elfload.h (grub_elf32_load_hook_t): Return grub_err_t.
48408 All users updated.
48409 (grub_elf64_load_hook_t): Likewise.
48410 * kern/elf.c: Call `grub_error_push' before `grub_error'. Improve
48411 debug output.
48412
3ce27299 484132007-02-20 Hollis Blanchard <hollis@penguinppc.org>
48414
48415 * kern/mm.c: Update copyright.
48416 (grub_mm_debug): Correct syntax error.
48417 (grub_mm_dump_free): New function.
48418 (grub_debug_free): Call `grub_free'.
48419 * include/grub/mm.h: Update copyright.
48420 (grub_mm_dump_free): Add declaration.
48421
077d5fee 484222007-02-12 Hollis Blanchard <hollis@penguinppc.org>
48423
48424 * include/grub/ieee1275/ieee1275.h: Update copyright.
48425 * kern/powerpc/ieee1275/init.c: Likewise.
48426 * kern/powerpc/ieee1275/openfw.c: Likewise.
48427
48428 * loader/powerpc/ieee1275/linux.c: Likewise.
48429 * include/grub/elfload.h: Likewise.
48430 * kern/elf.c: Likewise.
48431 (grub_elf32_load): Pass `base' and `size' parameters. Update all
48432 callers.
48433 (grub_elf64_load): Likewise.
48434 (grub_elf32_load_segment): Move to a nested function.
48435 (grub_elf64_load_segment): Likewise.
48436
dc946850 484372007-02-12 Hollis Blanchard <hollis@penguinppc.org>
48438
48439 * include/grub/ieee1275/ieee1275.h (grub_available_iterate): New
48440 prototype.
48441 * kern/powerpc/ieee1275/init.c (grub_heap_start): Removed.
48442 (grub_heap_len): Likewise.
48443 (HEAP_SIZE): New macro.
48444 (grub_claim_heap): New function.
48445 (grub_machine_init): Don't claim heap directly. Call
48446 `grub_claim_heap'.
48447 * kern/powerpc/ieee1275/openfw.c: Include alloca.h.
48448 (grub_available_iterate): New function.
48449
baa2a121 484502007-02-03 Thomas Schwinge <tschwinge@gnu.org>
48451
48452 * aclocal.m4 (grub_CHECK_STACK_PROTECTOR): New definition.
48453 * configure.ac: Use it for testing the HOST and TARGET compilers.
48454
4fe9862e 484552006-12-13 Thomas Schwinge <tschwinge@gnu.org>
48456
48457 * Makefile.in (enable_grub_emu): New variable.
48458 * configure.ac (--enable-grub-emu): New option.
48459 Do the checks for (n)curses only if `--enable-grub-emu' is requested.
48460 * conf/i386-efi.rmk (sbin_UTILITIES): Add `grub-emu' only if requested.
48461 * conf/i386-pc.rmk: Likewise.
48462 * conf/powerpc-ieee1275.rmk: Likewise.
48463 * conf/sparc64-ieee1275.rmk (bin_UTILITIES): Likewise.
48464
a8aa5762 484652006-12-12 Marco Gerards <marco@gnu.org>
48466
48467 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_MENU'.
48468
48469 * kern/env.c (grub_env_unset): Don't free the member `value' when
48470 the type is GRUB_ENV_VAR_DATA, in this case it's a user defined
48471 pointer.
48472
48473 * normal/main.c (current_menu): Removed.
48474 (free_menu): Unset the `menu' environment variable.
48475 (grub_normal_menu_addentry): Make use of the environment variable
48476 `menu', instead of using the global `current_menu'. Allocate
48477 memory for the sourcecode of this entry.
48478 (read_config_file): New argument `nested', changed all callers.
48479 Only in the case of a new context, initialize a new menu. Set the
48480 `menu' environment variable.
48481 (grub_normal_execute): Don't set and unset the environment
48482 variable `menu' here anymore. Only free the menu when leaving the
48483 context.
48484
48485 * util/i386/pc/biosdisk.c (linux_find_partition): Fixed a memory
48486 leak.
48487
957b3a3e 484882006-12-11 Marco Gerards <marco@gnu.org>
48489
48490 * normal/menu_entry.c (run): Fix off by one bug so the last line
48491 is executed. Move the loader check to outside the loop.
48492
ef875714 484932006-12-08 Hollis Blanchard <hollis@penguinppc.org>
48494
48495 * kern/powerpc/ieee1275/cmain.c (cmain): Mark r3 and r4 as `UNUSED'.
48496
4e739985 484972006-11-25 Yoshinori K. Okuji <okuji@enbug.org>
48498
48499 * util/i386/pc/grub-mkimage.c (generate_image): Fix the offset of
48500 the number of sectors. Reported by Andrey Shuvikov
48501 <mr_hyro@yahoo.com>.
f19dbdb7 48502
790707f2 485032006-11-11 Jeroen Dekkers <jeroen@dekkers.cx>
48504
48505 * kern/disk.c (grub_disk_read): When there is a read error, always
48506 try to read only the necessary data.
f19dbdb7 48507
790707f2 48508 * conf/i386-pc.rmk (grub_probe_SOURCES): Add disk/lvm.c and
48509 disk/raid.c.
48510 * include/grub/disk.h [GRUB_UTIL] (grub_raid_init): New
48511 prototype.
48512 [GRUB_UTIL] (grub_raid_fini): Likewise.
48513 [GRUB_UTIL] (grub_lvm_init): Likewise.
f19dbdb7 48514 [GRUB_UTIL] (grub_lvm_fini): Likewise.
790707f2 48515 * util/i386/pc/grub-probe.c (probe): Check whether DEVICE_NAME is
48516 RAID device and copy DEVICE_NAME to DRIVE_NAME in that case.
48517 (main): Call grub_raid_init(), grub_lvm_init(), grub_lvm_fini()
48518 and grub_raid_fini().
f19dbdb7 48519
03e58196 485202006-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
48521
48522 * include/grub/types.h (__unused): Rename to UNUSED.
48523 * kern/elf.c (grub_elf32_size): Use UNUSED instead of __unused.
48524 (grub_elf64_size): Likewise.
f19dbdb7 48525
ae4f23bf 485262006-11-03 Hollis Blanchard <hollis@penguinppc.org>
48527
48528 * kern/elf.c (grub_elf_file): Call grub_file_seek. Call
48529 grub_error_push and grub_error_pop in the error-handling path.
48530 (grub_elf32_load_segment): Only call grub_file_read with non-zero
48531 length.
48532
2166cc83 485332006-11-03 Hollis Blanchard <hollis@penguinppc.org>
48534
48535 * conf/i386-efi.rmk (grub_emu_SOURCES): Add kern/elf.c.
48536 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
48537 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
48538 (kernel_elf_SOURCES): Likewise.
48539 * conf/i386-efi.rmk (kernel_mod_HEADERS): Add elfload.h and cache.h.
48540 * conf/i386-pc.rmk (kernel_mod_HEADERS): Likewise.
48541 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
48542 * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
48543 * conf/common.rmk (pkgdata_MODULES): Add elf.mod.
48544 (elf_mod_SOURCES): New variable.
48545 (elf_mod_CFLAGS): Likewise.
48546 (elf_mod_LDFLAGS): Likewise.
48547 * include/grub/types.h (__unused): New macro.
48548 * include/grub/elfload.h: New file.
48549 * kern/elf.c: Likewise.
48550 * loader/powerpc/ieee1275/linux.c: Include elfload.h.
48551 (ELF32_LOADMASK): New macro.
48552 (ELF64_LOADMASK): Likewise.
48553 (vmlinux): Removed.
48554 (grub_linux_load32): New function.
48555 (grub_linux_load64): Likewise.
48556 (grub_rescue_cmd_linux): Call grub_linux_load32 or grub_linux_load64.
48557 Use grub_elf_t instead of grub_file_t.
48558
a09d5aa5 485592006-11-02 Hollis Blanchard <hollis@penguinppc.org>
48560
48561 * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): Add
48562 `catch_result' to struct set_color_args.
48563
d976fc51 485642006-10-28 Yoshinori K. Okuji <okuji@enbug.org>
48565
48566 * normal/menu.c: Include grub/script.h.
48567 * normal/menu_entry.c: Likewise.
48568 * include/grub/normal.h: Do not include grub/script.h.
48569
67507549 485702006-10-27 Hollis Blanchard <hollis@penguinppc.org>
48571
48572 * kern/disk.c (grub_disk_read): Correct debug printf formatting.
48573
69203a99 485742006-10-27 Hollis Blanchard <hollis@penguinppc.org>
48575
48576 * kern/disk.c (grub_disk_open): Print debug messages when opening a
48577 disk.
48578 (grub_disk_close): Print debug messages when closing a disk.
48579 (grub_disk_read): Print debug messages when disk read fails.
48580 * kern/fs.c (grub_fs_probe): Print debug messages when detecting
48581 filesystem type.
48582 * kern/partition.c: Include misc.h.
48583 (grub_partition_iterate): Print debug messages when detecting
48584 partition type.
48585
e2b8278c 485862006-10-27 Hollis Blanchard <hollis@penguinppc.org>
48587
48588 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Return error if `status'
48589 is negative.
48590 * kern/ieee1275/ieee1275.c (IEEE1275_IHANDLE_INVALID): Change to 0.
48591
97b2f2ff 485922006-10-26 Hollis Blanchard <hollis@penguinppc.org>
48593
48594 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
48595 Reverse GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS test.
48596
6555d655 485972006-10-25 Jeroen Dekkers <jeroen@dekkers.cx>
48598
48599 * disk/lvm.c (grub_lvm_scan_device): Malloc sizeof(*lv) bytes
48600 instead of sizeof(lv). Patch by Michael Guntsche.
48601
4d42b77f 486022006-10-18 Jeroen Dekkers <jeroen@dekkers.cx>
48603
48604 * disk/lvm.c: Rename VGS to VG_LIST.
48605 (grub_lvm_iterate): Change VGS->LV to VG-LV.
48606 (grub_lvm_open): Likewise.
48607 Thanks to Michael Guntsche for finding this bug.
48608
5d74d927 486092006-10-15 Yoshinori K. Okuji <okuji@enbug.org>
48610
48611 * configure.ac (AC_INIT): Bumped to 1.95.
48612
a1bb27e4 486132006-10-14 Robert Millan <rmh@aybabtu.com>
48614
48615 * util/i386/pc/getroot.c (grub_guess_root_device): Don't compare os_dev
48616 with "/dev/.static/dev/md".
48617
e0994b8b 486182006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
48619
48620 * util/i386/pc/grub-probe.c (probe): Print DEVICE_NAME instead of
48621 DRIVE_NAME when grub_util_biosdisk_get_grub_dev fails. Open
48622 DRIVE_NAME instead of DEVICE_NAME. Make sure that DEVICE_NAME and
48623 DRIVE_NAME are always freed.
48624
48625 * util/i386/pc/biosdisk.c (make_device_name): Add one into
48626 DOS_PART, as a DOS partition is counted from one instead of zero
48627 now. Reported by Robert Millan.
48628
ddd5cee9 486292006-10-14 Robert Millan <rmh@aybabtu.com>
48630
48631 * util/i386/pc/getroot.c (grub_guess_root_device): Stop using
48632 grub_util_biosdisk_get_grub_dev to convert system device to GRUB device.
48633 * util/grub-emu.c (main): Use grub_util_biosdisk_get_grub_dev with the
48634 string returned by grub_guess_root_device.
48635 * util/i386/pc/grub-setup.c: Likewise.
48636 * util/i386/pc/grub-probefs.c: Likewise.
48637
48638 * util/i386/pc/grub-probefs.c: Rename to ...
48639 * util/i386/pc/grub-probe.c: ... this.
48640 * DISTLIST: Remove grub-probefs, add grub-probe.
48641 * conf/i386-efi.rmk: Likewise.
48642 * conf/i386-pc.rmk: Likewise.
48643 * util/i386/pc/grub-install.in: Likewise.
48644
48645 * util/i386/pc/grub-probe.c: Add --target=(fs|device|drive) option to
48646 choose which information we want to print.
48647
2b002173 486482006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
48649
48650 * DISTLIST: Added commands/echo.c, disk/lvm.c, disk/raid.c,
48651 include/grub/bitmap.h, include/grub/lvm.h, include/grub/raid.h,
48652 include/grub/i386/pc/vbeutil.h, include/grub/util/lvm.h,
48653 include/grub/util/raid.h, util/lvm.c, util/raid.c, video/bitmap.c,
48654 video/readers/tga.c and video/i386/pc/vbeutil.c.
48655
486562006-10-14 Jeroen Dekkers <jeroen@dekkers.cx>
48657
48658 Added support for RAID and LVM.
f19dbdb7 48659
2b002173 48660 * disk/lvm.c: New file.
48661 * disk/raid.c: Likewise.
48662 * include/grub/lvm.h: Likewise.
f19dbdb7 48663 * include/grub/raid.h: Likewise.
2b002173 48664 * include/grub/util/lvm.h: Likewise.
48665 * include/grub/util/raid.h: Likewise.
48666 * util/lvm.c: Likewise.
48667 * util/raid.c: Likewise.
48668
48669 * include/grub/disk.h (grub_disk_dev_id): Add
48670 GRUB_DISK_DEVICE_RAID_ID and GRUB_DISK_DEVICE_LVM_ID.
48671 (grub_disk_get_size): New prototype.
48672 * kern/disk.c (grub_disk_open): Check whether grub_partition_probe()
48673 returns a partition.
48674 (grub_disk_get_size): New function.
f19dbdb7 48675
2b002173 48676 * kern/i386/pc/init.c (make_install_device): Copy the prefix
48677 verbatim if grub_install_dos_part is -2.
48678
48679 * util/i386/pc/getroot.c (grub_guess_root_device): Support RAID
48680 and LVM devices.
48681
48682 * util/i386/pc/grub-setup.c (setup): New argument
48683 MUST_EMBED. Force embedding of GRUB when the argument is
48684 true. Close FILE before returning.
48685 (main): Add support for RAID and LVM.
f19dbdb7 48686
2b002173 48687 * conf/common.rmk: Add RAID and LVM modules.
48688 * conf/i386-pc.rmk (grub_setup_SOURCES): Add util/raid.c and
48689 util/lvm.c.
48690 (grub_emu_SOURCES): Add disk/raid.c and disk/lvm.c.
48691
48692 * kern/misc.c (grub_strstr): New function.
48693 * include/grub/misc.h (grub_strstr): New prototype.
48694
050548d0 486952006-10-10 Tristan Gingold <tristan.gingold@bull.net>
48696
48697 * include/grub/efi/api.h (GRUB_EFI_ERROR_CODE): Long constant.
48698
da849d2d 486992006-10-05 Tristan Gingold <tristan.gingold@bull.net>
48700
48701 * kern/misc.c (grub_strtoull): Guess the base only if not
48702 specified.
48703
97b2f2ff 487042006-10-01 Hollis Blanchard <hollis@penguinppc.org>
4f0acd39 48705
48706 * kern/powerpc/ieee1275/cmain.c (cmain): Remove incomplete Old World
48707 PowerMac support.
48708
97b2f2ff 487092006-10-01 Hollis Blanchard <hollis@penguinppc.org>
fba51f48 48710
48711 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Cast `size' to long.
48712
48713 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_next_property):
48714 Remove `flags' argument. All callers changed.
48715 * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_ROOT): Removed.
48716 (IEEE1275_IHANDLE_INVALID): New variable.
48717 (IEEE1275_CELL_INVALID): New variable.
48718 (grub_ieee1275_finddevice, grub_ieee1275_get_property,
48719 grub_ieee1275_get_property_length, grub_ieee1275_instance_to_package,
48720 grub_ieee1275_package_to_path, grub_ieee1275_instance_to_path,
48721 grub_ieee1275_peer, grub_ieee1275_child, grub_ieee1275_open,
48722 grub_ieee1275_claim, grub_ieee1275_set_property): Error-check return
48723 codes from Open Firmware. All callers updated.
48724 (grub_ieee1275_next_property): Directly return Open Firmware return
48725 code.
48726 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
48727 Standardize error checking from `grub_ieee1275_get_property'.
48728 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Rename
48729 `devalias' to `aliases'. Correct comments. Consolidate error paths.
48730
97b2f2ff 487312006-10-01 Hollis Blanchard <hollis@penguinppc.org>
cc6d3df3 48732
48733 * kern/ieee1275/ieee1275.c (grub_ieee1275_instance_to_path): Rename
48734 `instance_to_package_args' to `instance_to_path_args'.
48735
48736 * kern/powerpc/ieee1275/init.c (grub_machine_init): Use
48737 `grub_ieee1275_chosen'.
48738
48739 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Call
48740 `grub_ieee1275_interpret'.
48741
97b2f2ff 487422006-09-25 Hollis Blanchard <hollis@penguinppc.org>
02bb8acc 48743
48744 * util/powerpc/ieee1275/grub-mkimage.c: Include config.h.
48745
97b2f2ff 487462006-09-25 Hollis Blanchard <hollis@penguinppc.org>
663b72f0 48747
48748 * include/grub/powerpc/libgcc.h (__floatdisf): New prototype.
48749 (__cmpdi): Likewise.
48750
48751 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Pass 0 as
48752 `flags' to `grub_ieee1275_next_property'. Change `pathlen' to type
48753 `grub_ssize_t'.
48754
02bb8acc 48755 * kern/powerpc/ieee1275/cmain.c: Include grub/misc.h.
663b72f0 48756
48757 * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Change `actual'
48758 to type `grub_ssize_t'.
48759 (grub_rescue_cmd_linux): Cast -1 to `grub_off_t'.
48760
7f9a8531 487612006-09-22 Marco Gerards <marco@gnu.org>
48762
48763 * normal/script.c (grub_script_create_cmdmenu): Skip leading
48764 newlines.
48765
b5ef1102 487662006-09-22 Marco Gerards <marco@gnu.org>
48767
48768 * commands/echo.c: New file.
48769
48770 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/echo.c'.
48771
48772 * conf/common.rmk (echo_mod_SOURCES): New variable.
48773 (echo_mod_CFLAGS): Likewise.
48774 (echo_mod_LDFLAGS): Likewise.
48775
2cff3677 487762006-09-22 Marco Gerards <marco@gnu.org>
48777
48778 * normal/main.c (get_line): Malloc memory instead of using
48779 preallocated memory. Removed the arguments `cmdline' and
48780 `max_len'. Updated all callers.
48781
6ba4688b 487822006-09-22 Marco Gerards <marco@gnu.org>
48783
48784 * conf/i386-efi.rmk (grub_emu_DEPENDENCIES): New variable.
48785 (normal_mod_DEPENDENCIES): Likewise.
48786
48787 * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Likewise.
48788 (normal_mod_DEPENDENCIES): Likewise.
48789
48790 * conf/sparc64-ieee1275.rmk (normal_mod_DEPENDENCIES): Likewise.
48791
e02ac02c 487922006-09-22 Johan Rydberg <jrydberg@gnu.org>
48793
48794 * genmk.rb: Add DEPENDENCIES variables to modules, utilities, and
48795 programs.
48796 * conf/i386-pc.rmk (grub_emu_DEPENDENCIES): Declare.
48797 (normal_mod_DEPENDENCIES): Likewise.
48798 * conf/i386-pc.mk: Regenerate.
48799 * conf/i386-efi.mk: Likewise
48800 * conf/common.mk: Likewise.
48801 * conf/powerpc-ieee1275.mk: Likewise.
48802 * conf/sparc64-ieee1275.mk: Likewise.
f19dbdb7 48803
8d252e44 488042006-09-22 Robert Millan <rmh@aybabtu.com>
48805
48806 Sync with i386 version.
48807 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Remove grub-emu, add grub-mkimage.
48808 * conf/powerpc-ieee1275.rmk (sbin_UTILITIES): Remove grub-mkimage, add grub-emu.
48809
209bf7ac 488102006-09-21 Robert Millan <rmh@aybabtu.com>
48811
48812 Import from GRUB Legacy (lib/device.c):
48813 * util/i386/pc/grub-mkdevicemap.c (get_i2o_disk_name): New function.
48814 (init_device_map) [__linux__]: Add support for I2O devices.
48815
6b146090 488162006-09-14 Marco Gerards <marco@gnu.org>
48817
48818 * conf/i386-pc.rmk (COMMON_LDFLAGS): Use `-m32' instead of
48819 `-melf_i386'.
48820
e38600a8 488212006-09-14 Robert Millan <rmh@aybabtu.com>
2952da5d 48822
48823 * util/i386/pc/grub-install.in: Skip menu.lst when removing
48824 /boot/grub/*.lst.
78fa1790 48825
2952da5d 48826 * util/i386/pc/getroot.c: Don't recurse into dotdirs (e.g. ".static").
6b146090 48827
2952da5d 48828 * util/i386/pc/grub-mkdevicemap.c: Make sure the floppy device exists
48829 before adding it to device.map.
48830
01b82a64 488312006-08-15 Johan Rydberg <jrydberg@gnu.org>
48832
fe6b695a 48833 * genmk.rb: Let GCC generate dependencies the first time it
01b82a64 48834 compiles a file; using the -MD option.
48835 * conf/common.mk: Regenerate.
48836 * conf/i386-pc.mk: Likewise.
48837 * conf/i386-efi.mk: Likewise.
48838 * conf/powerpc-ieee1275.mk: Likewise.
48839 * conf/sparc64-ieee1275.mk: Likewise.
f19dbdb7 48840
1064790d 488412006-08-04 Yoshinori K. Okuji <okuji@enbug.org>
48842
48843 Move the prototypes of grub_setjmp and grub_longjmp to
48844 cpu/setjmp.h, so that each architecture may specify different
48845 attributes.
f19dbdb7 48846
1064790d 48847 * include/grub/i386/setjmp.h (grub_setjmp): New prototype.
48848 (grub_longjmp): Likewise.
48849 * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise..
48850 (grub_longjmp): Likewise.
48851 * include/grub/sparc64/setjmp.h (grub_setjmp): Likewise..
48852 (grub_longjmp): Likewise.
48853
48854 * include/grub/setjmp.h [!GRUB_UTIL] (grub_setjmp): Removed.
48855 [!GRUB_UTIL] (grub_longjmp): Removed.
48856
29dda3ed 488572006-08-01 Pelletier Vincent <subdino2004@yahoo.fr>
48858
48859 * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): IEEE1275
48860 "color!" method does not return any value.
48861
ad2a06ed 488622006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
48863
48864 * include/grub/bitmap.h: New file.
48865
48866 * include/grub/i386/pc/vbeutil.h: Likewise.
48867
48868 * video/bitmap.c: Likewise.
48869
48870 * video/readers/tga.c: Likewise.
48871
48872 * video/i386/pc/vbeutil.c: Likewise.
48873
48874 * commands/videotest.c: Code cleanup and updated to reflect to new
48875 video API.
48876
48877 * term/gfxterm.c: Likewise.
48878
48879 * video/video.c: Likewise.
48880
48881 * conf/i386-pc.rmk (pkgdata_MODULES): Added tga.mod and bitmap.mod.
48882 (vbe_mod_SOURCES): Added video/i386/pc/vbeutil.c.
48883 (bitmap_mod_SOURCES): New entry.
48884 (bitmap_mod_CFLAGS): Likewise.
48885 (bitmap_mod_LDFLAGS): Likewise.
48886 (tga_mod_SOURCES): Likewise.
48887 (tga_mod_CFLAGS): Likewise.
48888 (tga_mod_LDFLAGS): Likewise.
48889
48890 * include/grub/video.h (grub_video_blit_operators): New enum type.
48891 (grub_video_render_target): Changed as forward declaration and moved
48892 actual definition to be video driver specific.
48893 (grub_video_adapter.blit_bitmap): Added blitting operator.
48894 (grub_video_adapter.blit_render_target): Likewise.
48895 (grub_video_blit_bitmap): Likewise.
48896 (grub_video_blit_render_target): Likewise.
48897
48898 * include/grub/i386/pc/vbe.h (grub_video_render_target): Added
48899 driver specific render target definition.
48900 (grub_video_vbe_map_rgba): Added driver internal helper.
48901 (grub_video_vbe_unmap_color): Updated to use
48902 grub_video_i386_vbeblit_info.
48903 (grub_video_vbe_get_video_ptr): Likewise.
48904
48905 * include/grub/i386/pc/vbeblit.h
48906 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8): Updated to use
48907 grub_video_i386_vbeblit_info.
48908 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
48909 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
48910 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
48911 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
48912 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
48913 (grub_video_i386_vbeblit_index_index): Likewise.
48914 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): New blitter function.
48915 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
48916 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
48917 (grub_video_i386_vbeblit_blend): Added generic blitter for blend
48918 operator.
48919 (grub_video_i386_vbeblit_replace): Added generic blitter for replace
48920 operator.
48921
48922 * video/i386/pc/vbeblit.c: Updated to reflect changes on
48923 include/grub/i386/pc/vbeblit.h.
48924
48925 * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8):
48926 Updated to use grub_video_i386_vbeblit_info.
48927 (grub_video_i386_vbefill_R8G8B8): Likewise.
48928 (grub_video_i386_vbefill_index): Likewise.
48929 (grub_video_i386_vbefill): Added generic filler.
48930
48931 * video/i386/pc/vbefill.c: Updated to reflect changes on
48932 include/grub/i386/pc/vbefill.h.
48933
48934 * video/i386/pc/vbe.c (grub_video_vbe_get_video_ptr): Updated to use
48935 grub_video_i386_vbeblit_info.
48936 (grub_video_vbe_unmap_color): Likewise.
48937 (grub_video_vbe_blit_glyph): Likewise.
48938 (grub_video_vbe_scroll): Likewise.
48939 (grub_video_vbe_draw_pixel): Removed function.
48940 (grub_video_vbe_get_pixel): Likewise.
48941 (grub_video_vbe_fill_rect): Moved all blitters to vbefill.c and
48942 updated code to use it.
48943 (common_blitter): Added common blitter for render target and bitmap.
48944 (grub_video_vbe_blit_bitmap): Updated to use common_blitter.
48945 (grub_video_vbe_blit_render_target): Likewise.
48946
bc8c036d 489472006-07-30 Johan Rydberg <jrydberg@gnu.org>
48948
48949 * kern/efi/efi.c (grub_efi_set_text_mode): Assume console already
48950 is in text mode if there is no console control protocol instance
48951 available.
48952
684a8eff 489532006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
48954
48955 * include/grub/video.h: Code cleanup.
48956
48957 * include/grub/i386/pc/vbe.h: Likewise.
48958
48959 * video/i386/pc/vbe.c: Likewise.
48960
48961 * video/i386/pc/vbeblit.c: Likewise.
48962
48963 * video/i386/pc/vbefill.c: Likewise.
48964
48965 * video/video.c: Likewise. Also added more comments.
48966
5915059b 489672006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
48968
48969 * disk/i386/pc/biosdisk.c (struct grub_biosdisk_drp): Moved to ...
48970 (struct grub_biosdisk_dap): Likewise.
48971
48972 * include/grub/i386/pc/biosdisk.h: ... to here. Also corrected
48973 linkage settings for all functions.
48974
90ce5d56 489752006-07-12 Marco Gerards <marco@gnu.org>
48976
48977 * configure.ac (--enable-mm-debug): Fix typo.
48978
48979 * genkernsyms.sh.in: Use proper quoting for `CC'.
48980
43e7f879 489812006-07-02 Jeroen Dekkers <jeroen@dekkers.cx>
48982
48983 * conf/i386-pc.rmk (COMMON_ASFLAGS): Add "-m32".
48984 (normal_mod_ASFLAGS): Remove "-m32".
48985
4889bdec 489862006-06-14 Yoshinori K. Okuji <okuji@enbug.org>
48987
48988 * util/misc.c: Include config.h.
48989 [!HAVE_MEMALIGN]: Do not include malloc.h.
48990 (grub_memalign): Use posix_memalign, if present. Then, use
48991 memalign, if present. Otherwise, emit an error.
48992
48993 * util/grub-emu.c: Do not include malloc.h.
48994
48995 * include/grub/util/misc.h: Include unistd.h. This is required for
48996 FreeBSD, because off_t is defined in unistd.h. Reported by Harley
48997 D. Eades III <hde@foobar-qux.org>.
48998
48999 * configure.ac (AC_GNU_SOURCE): Added.
49000 (AC_CHECK_FUNCS): Check posix_memalign and memalign for the host
49001 type.
49002
fd39d4da 490032006-06-09 Yoshinori K. Okuji <okuji@enbug.org>
49004
49005 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Make sure that
49006 ADDR_MAX does not exceed GRUB_LINUX_INITRD_MAX_ADDRESS.
49007
b786f3b5 490082006-06-07 Jeroen Dekkers <jeroen@dekkers.cx>
49009
49010 * include/grub/types.h (grub_host_addr_t): Rename to
49011 grub_target_addr_t.
49012 (grub_host_off_t): Rename to grub_target_off_t.
49013 (grub_host_size_t): Rename to grub_target_size_t.
49014 (grub_host_ssize_t): Rename to grub_target_ssize_t.
49015 Refer to GRUB_TARGET_SIZEOF_VOID_P to define those variables.
49016
49017 * include/grub/kernel.h (struct grub_module_header): Change type
49018 of OFFSET to grub_target_off_t and type of SIZE to grub_target_size_t.
49019 (grub_module_info): Likewise.
f19dbdb7 49020
051988bb 490212006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
49022
49023 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): The conditional
49024 of checking LINUX_MEM_SIZE was reverse. Reported by Jesus
49025 Velazquez <jesus.velazquez@gmail.com>.
49026
deae281b 490272006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
49028
49029 Count partitions from 1 instead of 0 in the string representation
49030 of partitions. Still use 0-based internally.
f19dbdb7 49031
deae281b 49032 * partmap/sun.c (grub_sun_is_valid): A cosmetic change.
49033 (sun_partition_map_iterate): Use grub_partition_t instead of
49034 struct grub_partition *. Cast DESC->START_CYLINDER to
49035 grub_uint64_t after converting the endian.
49036 (sun_partition_map_probe): Subtract 1 for PARTNUM.
49037 (sun_partition_map_get_name): Add 1 to P->INDEX.
49038
49039 * partmap/pc.c (grub_partition_parse): Subtract 1 for
49040 PCDATA->DOS_PART.
49041 (pc_partition_map_get_name): Add 1 into PCDATA->DOS_PART.
49042
49043 * partmap/gpt.c (gpt_partition_map_iterate): Initialize PARTNO to
49044 zero instead of one.
49045 (gpt_partition_map_probe): Subtract 1 for PARTNUM.
49046 (gpt_partition_map_get_name): Add 1 into P->INDEX.
49047
49048 * partmap/apple.c (apple_partition_map_iterate): Change the type
49049 of POS to unsigned.
49050 (apple_partition_map_probe): Subtract 1 for PARTNUM.
49051 (apple_partition_map_get_name): Add 1 into P->INDEX.
49052
49053 * partmap/amiga.c (amiga_partition_map_iterate): Change the type
49054 of POS to unsigned.
49055 (amiga_partition_map_iterate): Cast NEXT to grub_off_t to
49056 calculate the offset of a partition.
49057 (amiga_partition_map_probe): Subtract 1 for PARTNUM.
49058 (amiga_partition_map_get_name): Add 1 into P->INDEX.
49059
49060 * partmap/acorn.c (acorn_partition_map_find): Change the type of
49061 SECTOR to grub_disk_addr_t.
49062 (acorn_partition_map_iterate): Likewise.
49063 (acorn_partition_map_probe): Subtract 1 for PARTNUM.
49064 Change the type of SECTOR to grub_disk_addr_t. Declare P on the
49065 top.
49066 (acorn_partition_map_get_name): Add 1 into P->INDEX.
49067
49068 * kern/i386/pc/init.c (make_install_device): Add 1 into
49069 GRUB_INSTALL_DOS_PART.
49070
49071 * fs/iso9660.c (grub_iso9660_mount): Fixed a reversed
49072 conditional.
49073
524a1e6a 490742006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
49075
49076 Clean up the code to support 64-bit addressing in disks and
49077 files. This change is not enough for filesystems yet.
f19dbdb7 49078
524a1e6a 49079 * util/i386/pc/grub-setup.c (struct boot_blocklist): Change the
49080 type of "start" to grub_uint64_t.
49081 (setup): Change the types of KERNEL_SECTOR and FIRST_SECTOR to
49082 grub_disk_addr_t * and grub_disk_addr_t. Fix the format string in
49083 save_first_sector and save_blocklists. Use grub_le_to_cpu64 to
49084 convert addresses.
49085
49086 * util/i386/pc/biosdisk.c (open_device): Change the type of SECTOR
49087 to grub_disk_addr_t.
49088
49089 * partmap/gpt.c (gpt_partition_map_iterate): Fix the format
49090 string.
49091
49092 * partmap/pc.c (pc_partition_map_iterate): Likewise.
49093
49094 * partmap/amiga.c (amiga_partition_map_iterate): Cast RDSK.MAGIC
49095 to char *.
49096
49097 * normal/script.c (grub_script_parse): Remove unused MEMFREE.
49098
49099 * normal/parser.y (YYLTYPE_IS_TRIVIAL): New macro.
49100
49101 * normal/lexer.c (grub_script_yyerror): Specify unused to LEX.
49102
49103 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf64): Cast -1
49104 to grub_off_t, to detect an error from grub_file_seek.
49105 (grub_multiboot_load_elf32): Likewise.
49106
49107 * kern/misc.c (grub_strtoul): Use grub_strtoull. Return the
49108 maximum unsigned long value when an overflow is detected.
49109 (grub_strtoull): New function.
49110 (grub_divmod64): Likewise.
49111 (grub_lltoa): use grub_divmod64.
49112
49113 * kern/fs.c (struct grub_fs_block): Change the type of "offset" to
49114 grub_disk_addr_t.
49115 (grub_fs_blocklist_open): Increase P if P is not NULL to advance
49116 the pointer to next character. Use grub_strtoull instead of
49117 grub_strtoul.
49118 (grub_fs_blocklist_read): Change the types of SECTOR, OFFSET and
49119 SIZE to grub_disk_addr_t, grub_off_t and grub_size_t,
49120 respectively.
49121
fe6b695a 49122 * kern/file.c (grub_file_read): Prevent an overflow of LEN, as the
524a1e6a 49123 return value is signed.
49124 (grub_file_seek): Change the type of OLD to grub_off_t. Do not
49125 test if OFFSET is less than zero, as OFFSET is unsigned now.
49126
49127 * kern/disk.c (struct grub_disk_cache): Change the type of
49128 "sector" to grub_disk_addr_t.
49129 (grub_disk_cache_get_index): Change the type of SECTOR to
49130 grub_disk_addr_t. Calculate the hash with SECTOR casted to
49131 unsigned after shifting.
49132 (grub_disk_cache_invalidate): Change the type of SECTOR to
49133 grub_disk_addr_t.
49134 (grub_disk_cache_unlock): Likewise.
49135 (grub_disk_cache_store): Likewise.
49136 (grub_disk_check_range): Change the types of SECTOR, OFFSET, SIZE,
49137 START and LEN to grub_disk_addr_t *, grub_off_t *, grub_size_t,
49138 grub_disk_addr_t and grub_uint64_t, respectively.
49139 (grub_disk_read): Use an unsigned variable REAL_OFFSET for the
49140 body, as the value of OFFSET is tweaked by
49141 grub_disk_check_range. Change the types of START_SECTOR, LEN and
49142 POS to grub_disk_addr_t, grub_size_t and grub_size_t,
49143 respectively.
49144 (grub_disk_write): Use an unsigned variable REAL_OFFSET for the
49145 body, as the value of OFFSET is tweaked by
49146 grub_disk_check_range. Change the types of LEN and N to
49147 grub_size_t.
49148
49149 * io/gzio.c (struct grub_gzio): Change the types of "data_offset"
49150 and "saved_offset" to grub_off_t.
49151 (test_header): Cast BUF to char *.
49152 (get_byte): Cast GZIO->DATA_OFFSET to grub_off_t. Cast GZIO->INBUF
49153 to char *.
49154 (grub_gzio_read): Change the types of OFFSET and SIZE to
49155 grub_off_t and grub_size_t, respectively.
49156
49157 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_FORCE_LBA):
49158 Removed.
49159 (GRUB_BOOT_MACHINE_BOOT_DRIVE): Changed to 0x4c.
49160 (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Changed to 0x40.
49161 (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Changed to 0x42.
49162 (GRUB_BOOT_MACHINE_DRIVE_CHECK): Changed to 0x4e.
49163 (GRUB_BOOT_MACHINE_LIST_SIZE): Increased to 12.
49164
49165 * include/grub/types.h (grub_off_t): Unconditionally set to
49166 grub_uint64_t.
49167 (grub_disk_addr_t): Changed to grub_uint64_t.
49168
49169 * include/grub/partition.h (struct grub_partition): Change the
49170 types of "start", "len" and "offset" to grub_disk_addr_t,
49171 grub_uint64_t and grub_disk_addr_t, respectively.
49172 (grub_partition_get_start): Return grub_disk_addr_t.
49173 (grub_partition_get_len): Return grub_uint64_t.
49174
49175 * include/grub/misc.h (grub_strtoull): New prototype.
49176 (grub_divmod64): Likewise.
49177
49178 * include/grub/fshelp.h (grub_fshelp_read_file): Change the types
49179 of SECTOR, LEN and FILESIZE to grub_disk_addr_t, grub_size_t and
49180 grub_off_t, respectively.
49181 All callers and references changed.
49182
49183 * include/grub/fs.h (struct grub_fs): Change the type of LEN to
49184 grub_size_t in "read".
49185 All callers and references changed.
49186
49187 * include/grub/file.h (struct grub_file): Change the types of
49188 "offset" and "size" to grub_off_t and grub_off_t,
49189 respectively. Change the type of SECTOR to grub_disk_addr_t in
49190 "read_hook".
49191 (grub_file_read): Change the type of LEN to grub_size_t.
49192 (grub_file_seek): Return grub_off_t. Change the type of OFFSET to
49193 grub_off_t.
49194 (grub_file_size): Return grub_off_t.
49195 (grub_file_tell): Likewise.
49196 All callers and references changed.
49197
49198 * include/grub/disk.h (struct grub_disk_dev): Change the types of
49199 SECTOR and SIZE to grub_disk_addr_t and grub_size_t in "read" and
49200 "write".
49201 (struct grub_disk): Change the type of "total_sectors" to
49202 grub_uint64_t. Change the type of SECTOR to grub_disk_addr_t in
f19dbdb7 49203 "read_hook".
524a1e6a 49204 (grub_disk_read): Change the types of SECTOR, OFFSET and SIZE to
49205 grub_disk_addr_t, grub_off_t and grub_size_t, respectively.
49206 (grub_disk_write): Likewise.
49207 All callers and references changed.
49208
49209 * fs/iso9660.c (grub_iso9660_susp_iterate): Cast parameters to
49210 char * for grub_strncmp to silence gcc.
49211 (grub_iso9660_mount): Likewise.
49212 (grub_iso9660_mount): Likewise.
49213 (grub_iso9660_read_symlink): Likewise. Also, remove the nonsense
49214 return statement.
49215 (grub_iso9660_iterate_dir): Likewise.
49216 (grub_iso9660_label): Cast DATA->VOLDESC.VOLNAME to char *.
49217
49218 * fs/hfs.c (grub_hfs_read_file): Change the types of SECTOR and
49219 LEN to grub_disk_addr_t and grub_size_t, respectively.
49220
49221 * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
49222
49223 * fs/jfs.c (grub_jfs_read_file): Likewise.
49224
49225 * fs/minix.c (grub_jfs_read_file): Likewise.
49226
49227 * fs/sfs.c (grub_jfs_read_file): Likewise.
49228
49229 * fs/ufs.c (grub_jfs_read_file): Likewise.
49230
49231 * fs/xfs.c (grub_jfs_read_file): Likewise.
49232
49233 * fs/fat.c (grub_fat_read_data): Change the types of SECTOR, LEN
49234 and SIZE to grub_disk_addr_t, grub_size_t and grub_size_t,
49235 respectively.
49236
49237 * fs/ext2.c (grub_ext2_read_block): When an error happens, set
49238 BLKNR to -1 instead of returning GRUB_ERRNO.
49239 (grub_ext2_read_file): Change the types of SECTOR and
49240 LEN to grub_disk_addr_t and grub_size_t, respectively.
49241
49242 * fs/affs.c (grub_affs_read_file): Change the types of SECTOR and
49243 LEN to grub_disk_addr_t and grub_size_t, respectively.
49244
49245 * font/manager.c (grub_font_get_glyph): Cast BITMAP to char * for
49246 grub_file_read.
49247
49248 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Fix the format
49249 string. Do not cast SECTOR explicitly.
49250
49251 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Change the type of
49252 TOTAL_SECTORS to grub_uint64_t. Do not mask DRP->TOTAL_SECTORS.
49253 (grub_biosdisk_rw): Change the types of SECTOR and SIZE to
49254 grub_disk_addr_t and grub_size_t, respectively. If the sector is
49255 over 2TB and LBA mode is not supported, raise an error.
49256 (get_safe_sectors): New function.
49257 (grub_biosdisk_read): Use get_safe_sectors.
49258 (grub_biosdisk_write): Likewise.
49259
49260 * disk/efi/efidisk.c (grub_efidisk_read): Fix the format string.
49261 (grub_efidisk_write): Likewise.
49262
49263 * disk/loopback.c (delete_loopback): Cosmetic changes.
49264 (grub_cmd_loopback): Likewise. Also, test NEWDEV->FILENAME
49265 correctly.
49266 (grub_loopback_open): Likewise.
49267 (grub_loopback_read): Likewise. Also, change the type of POS to
49268 grub_off_t, and fix the usage of grub_memset.
49269
49270 * commands/i386/pc/play.c: Include grub/machine/time.h.
49271
49272 * commands/ls.c (grub_ls_list_files): Use "llu" instead of "d" to
49273 print FILE->SIZE.
49274
49275 * commands/configfile.c: Include grub/env.h.
49276
49277 * commands/cmp.c (grub_cmd_cmp): Do not use ERR, but use
49278 GRUB_ERRNO directly instead. Change the type of POS to
49279 grub_off_t. Follow the coding standard.
49280
49281 * commands/blocklist.c: Include grub/partition.h.
49282 (grub_cmd_blocklist): Return an error if the underlying device is
49283 not a disk. Take the starting sector of a partition into account,
49284 if a partition is used.
49285
49286 * boot/i386/pc/diskboot.S (bootloop): Adapted to the new offset of
49287 a length field.
49288 (lba_mode): Support 64-bit addresses.
49289 (chs_mode): Likewise.
49290 (copy_buffer): Adapted to the new offsets of a length field and a
49291 segment field.
49292 (blocklist_default_start): Allocate 64-bit space.
49293
49294 * boot/i386/pc/boot.S (force_lba): Removed.
49295 (boot_drive): Moved to under KERNEL_SECTOR.
fe987087 49296 (kernel_sector): Moved to under KERNEL_SEGMENT. Allocate 64-bit
524a1e6a 49297 space.
49298 (real_start): Set %si earlier. Remove code for FORCE_LBA, since it
49299 is useless.
49300 (lba_mode): Refactored to support a 64-bit address. More size
49301 optimization.
49302 (setup_sectors): Likewise.
49303
53af98ad 493042006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
49305
49306 * DISTLIST: Added include/grub/i386/linux.h. Removed
49307 include/grub/i386/pc/linux.h
49308
49309 * configure.ac (AC_INIT): Bumped to 1.94.
49310
49311 * config.guess: Updated from gnulib.
49312 * config.sub: Likewise.
49313 * install-sh: Likewise.
49314 * mkinstalldirs: Likewise.
49315
b4c1940a 493162006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
49317
49318 * conf/common.rmk (grub_modules_init.lst): Depended on
49319 grub_emu_SOURCES, excluding grub_emu_init.c, instead of
49320 MODSRCFILES.
49321
49322 * genmk.rb (PModule::rule): Reverted the previous change.
49323
cfca1cfd 493242006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
49325
49326 * conf/common.rmk (grub_modules_init.lst): Depends on
49327 $(MODSRCFILES). Grep only the files in $(MODSRCFILES). Make sure
49328 that the target does not exist before producing.
49329 (grub_modules_init.h): Remove the target before generating.
49330 (grub_emu_init.c): Likewise.
49331
49332 * genmk.rb (PModule::rule): Add source files into MODSRCFILES.
49333
aa6d7826 493342006-05-31 Jeroen Dekkers <jeroen@dekkers.cx>
49335
49336 * configure.ac: Don't set host_m32 for x86_64. Also reset LIBS
49337 for the target-specific tests. Make sure that we also have the
49338 up-to-date target variables for those tests.
49339
26c607b9 493402006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
49341
49342 * genmk.rb (Image::rule): Prefix CFLAGS or ASFLAGS with TARGET_.
49343 (PModule::rule): Likewise.
49344
0162321a 493452006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
49346
49347 * genmk.rb (Image::rule): Set FLAG to CFLAGS or ASFLAGS instead of
49348 TARGET_CFLAGS or TARGET_ASFLAGS. There is no reason why
49349 target-specific flags should be prefixed.
49350 (PModule::rule): Likewise.
49351
6c826348 493522006-05-30 Yoshinori K. Okuji <okuji@enbug.org>
49353
49354 * configure.ac (CMP): Check if cmp is available explicitly.
49355
b977bf01 493562006-05-29 Yoshinori K. Okuji <okuji@enbug.org>
49357
49358 * util/powerpc/ieee1275/grub-install.in (host_cpu): Removed.
49359 (target_cpu): New variable.
49360 (pkglibdir): Use target_cpu instead of host_cpu.
f19dbdb7 49361
b977bf01 49362 * util/i386/pc/grub-install.in (host_cpu): Removed.
49363 (target_cpu): New variable.
49364 (pkglibdir): Use target_cpu instead of host_cpu.
49365
49366 * util/genmoddep.c: Removed.
f19dbdb7 49367
b977bf01 49368 * kern/efi/mm.c (filter_memory_map): Use GRUB_CPU_SIZEOF_VOID_P
49369 instead of GRUB_HOST_SIZEOF_VOID_P.
49370 * kern/dl.c: Likewise.
49371
49372 * include/grub/i386/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed to
49373 ...
49374 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
49375 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
49376 (GRUB_TARGET_SIZEOF_LONG): ... this.
49377 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
49378 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
49379 * include/grub/powerpc/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
49380 to ...
49381 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
49382 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
49383 (GRUB_TARGET_SIZEOF_LONG): ... this.
49384 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
49385 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
49386 * include/grub/sparc64/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
49387 to ...
49388 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
49389 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
49390 (GRUB_TARGET_SIZEOF_LONG): ... this.
49391 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
49392 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
49393
49394 * include/grub/types.h [!GRUB_UTIL] (GRUB_CPU_SIZEOF_VOID_P): Use
49395 GRUB_TARGET_SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P.
49396 [!GRUB_UTIL] (GRUB_CPU_SIZEOF_LONG): Use GRUB_TARGET_SIZEOF_LONG
49397 instead of GRUB_HOST_SIZEOF_LONG.
49398 [!GRUB_UTIL]: Refer to GRUB_TARGET_WORDS_BIGENDIAN instead of
49399 GRUB_HOST_WORDS_BIGENDIAN to define or undefine
49400 GRUB_CPU_WORDS_BIGENDIAN.
49401 Refer to SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P to
49402 define grub_host_addr_t, grub_host_off_t, grub_host_size_t and
49403 grub_host_ssize_t.
49404
49405 * conf/i386-efi.rmk (noinst_UTILITIES): Removed.
49406 (genmoddep_SOURCES): Likewise.
49407 * conf/i386-pc.rmk (noinst_UTILITIES): Likewise.
49408 (genmoddep_SOURCES): Likewise.
49409 * conf/conf/powerpc-ieee1275.rmk (noinst_UTILITIES): Likewise.
49410 (genmoddep_SOURCES): Likewise.
49411 * conf/conf/conf/sparc64-ieee1275.rmk (noinst_UTILITIES):
49412 Likewise.
49413 (genmoddep_SOURCES): Likewise.
49414
49415 * genmoddep.awk: New file.
49416
49417 * genmk.rb (Image::rule): Use TARGET_CC, TARGET_CPPFLAGS,
49418 TARGET_CFLAGS, TARGET_ASFLAGS and TARGET_LDFLAGS instead of CC,
49419 CPPFLAGS, CFLAGS, ASFLAGS and LDFLAGS, respectively.
49420 (PModule::rule): Likewise.
49421 (Program::rule): Likewise.
49422 (Utility::rule): Use CC, CPPFLAGS, CFLAGS and LDFLAGS instead of
49423 BUILD_CC, BUILD_CPPFLAGS, BUILD_CFLAGS and BUILD_LDFLAGS,
49424 respectively.
49425
49426 * configure.ac: Rewritten intensively to use host and target
49427 instead of build and host, respectively.
49428
49429 * Makefile.in (pkglibdir): Use target_cpu instead of host_cpu.
49430 (host_cpu): Removed.
49431 (target_cpu): New variable.
49432 (CPPFLAGS): Added @CPPFLAGS@ and -DGRUB_LIBDIR=\"$(pkglibdir)\".
49433 (BUILD_CC): Removed.
49434 (BUILD_CFLAGS): Likewise.
49435 (BUILD_CPPFLAGS): Likewise.
49436 (TARGET_CC): New variable.
49437 (TARGET_CFLAGS): Likewise.
49438 (TARGET_CPPFLAGS): Likewise.
49439 (TARGET_LDFLAGS): Likewise.
49440 (AWK): Likewise.
49441 (include): Use target_cpu instead of host_cpu.
49442 (moddep.lst:): Use genmoddep.awk instead of genmoddep.
f19dbdb7 49443
b977bf01 49444 * DISTLIST: Added genmoddep.awk. Removed util/genmoddep.c.
49445
f09771a1 494462006-05-29 Vesa Jaaskelainen <chaac@nic.fi>
49447
49448 * include/grub/script.h (grub_script_cmdif): Renamed field 'bool' to
49449 'exec_to_evaluate'. Renamed field 'true' to 'exec_on_true'. Renamed
49450 field 'false' to 'exec_on_false'.
49451 (grub_script_create_cmdif): Renamed argument names to reflect above
49452 changes.
49453
49454 * normal/execute.c (grub_script_execute_cmdif): Likewise.
49455
49456 * normal/script.c (grub_script_create_cmdif): Likewise.
49457
118f4fb3 494582006-05-28 Yoshinori K. Okuji <okuji@enbug.org>
49459
49460 * fs/hfsplus.c (grub_hfsplus_btree_recoffset): Moved to near the
49461 top.
49462 (grub_hfsplus_btree_recptr): Likewise.
49463 (grub_hfsplus_find_block): Do not take RETRY any longer. Use
49464 FILEBLOCK both to pass a block number and store next block
49465 number.
49466 (grub_hfsplus_read_block): Rewritten heavily to support an extent
49467 overflow file correctly. Specify errors appropriately, because
49468 fshelp expects that GRUB_ERRNO is set when fails. Reuse
49469 grub_hfsplus_btree_recptr to get the pointer to a found key.
49470 (grub_hfsplus_btree_search): Return 1 instead of 0 when no match
49471 is found.
49472
49473 * conf/i386-efi.rmk (pkgdata_MODULES): Added _linux.mod and
49474 linux.mod.
49475 (_linux_mod_SOURCES): New variable.
49476 (_linux_mod_CFLAGS): Likewise.
49477 (_linux_mod_LDFLAGS): Likewise.
49478 (linux_mod_SOURCES): Likewise.
49479 (linux_mod_CFLAGS): Likewise.
49480 (linux_mod_LDFLAGS): Likewise.
49481
49482 * DISTLIST: Added loader/i386/efi/linux.c,
49483 loader/i386/efi/linux_normal.c and
49484 include/grub/i386/efi/loader.h.
49485
49486 * loader/i386/efi/linux.c: New file.
49487 * loader/i386/efi/linux_normal.c: Likewise.
49488 * include/grub/i386/efi/loader.h: Likewise.
49489
89a7d726 494902006-05-27 Yoshinori K. Okuji <okuji@enbug.org>
49491
49492 * commands/blocklist.c: New file.
49493
49494 * DISTLIST: Added commands/blocklist.c.
49495
49496 * term/efi/console.c (grub_console_highlight_color): Use a lighter
43b553ad 49497 color for the background, and a darker color for the foreground.
89a7d726 49498 (grub_console_checkkey): Return READ_KEY.
49499 (grub_console_cls): Set the background to
49500 GRUB_EFI_BACKGROUND_BLACK temporarily to clean out the screen.
49501
49502 * kern/efi/efi.c (grub_efi_exit_boot_services): New function.
49503
49504 * include/grub/i386/linux.h (struct linux_kernel_params): Fixed
49505 the size of "padding5", "hd0_drive_info" and "hd1_drive_info".
49506
49507 * include/grub/efi/efi.h (grub_efi_exit_boot_services): New
49508 prototype.
49509
49510 * include/grub/efi/api.h (GRUB_EFI_TEXT_ATTR): Do not shift
49511 BG. The spec is wrong again.
49512
49513 * include/grub/normal.h [GRUB_UTIL] (grub_blocklist_init): New
49514 prototype.
49515 [GRUB_UTIL] (grub_blocklist_fini): Likewise.
49516
49517 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
49518 commands/blocklist.c.
49519 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
f19dbdb7 49520
89a7d726 49521 * conf/common.rmk (pkgdata_MODULES): Added blocklist.mod.
49522 (blocklist_mod_SOURCES): New variable.
49523 (blocklist_mod_CFLAGS): Likewise.
49524 (blocklist_mod_LDFLAGS): Likewise.
49525
75c8f258 495262006-05-20 Yoshinori K. Okuji <okuji@enbug.org>
49527
49528 * boot/i386/pc/boot.S (real_start): Set %si earlier to eliminate
49529 duplication.
49530 (lba_mode): Use %eax more intensively to reduce the code size.
49531
da2eb181 495322006-05-20 Marco Gerards <marco@gnu.org>
49533
49534 * normal/lexer.c (grub_script_yylex): Don't filter out newlines.
49535
49536 * normal/parser.y (commandblock): Defined as <cmd>. A subroutine
49537 for `menuentry'.
49538 (script): Accept leading newlines.
49539 (newlines): New rule to describe 0 or more newlines.
49540 (commands): Accept `command' with trailing newline. Fixed the
49541 order in which arguments were passed to `grub_script_add_cmd'.
49542 Accept commands separated by newlines.
49543 (function): Changed to accept newlines.
49544 (menuentry) Rewritten.
49545
49546 * normal/script.c (grub_script_create_cmdmenu): Add new entries in
49547 front of the list, instead of to the end.
49548
577b4050 495492006-05-19 Yoshinori K. Okuji <okuji@enbug.org>
49550
49551 * util/i386/pc/grub-install.in (bindir): New variable.
49552 (grub_mkimage): Use BINDIR instead of SBINDIR. Reported by Lee
49553 Shaver <lbgwjl@gmail.com>.
49554
0d6e1189 495552006-05-14 Yoshinori K. Okuji <okuji@enbug.org>
49556
49557 * kern/i386/pc/startup.S: Include grub/cpu/linux.h instead of
49558 grub/machine/linux.h
49559 * loader/i386/pc/linux.c: Likewise.
49560
49561 * include/grub/i386/pc/linux.h: Moved to ...
49562 * include/grub/i386/linux.h: ... here.
49563
49564 * include/grub/i386/linux.h (struct linux_kernel_params): New
49565 struct.
f19dbdb7 49566
31b86e9f 495672006-05-09 Vesa Jaaskelainen <chaac@nic.fi>
49568
49569 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Corrected bounds
49570 checking.
49571 (grub_video_vbe_blit_glyph): Likewise.
49572 (grub_video_vbe_blit_bitmap): Likewise.
49573 (grub_video_vbe_blit_render_target): Likewise.
49574
83b984de 495752006-05-09 Yoshinori K. Okuji <okuji@enbug.org>
49576
49577 * configure.ac (--with-platform): Properly quote the square
49578 brackets.
49579
5f0413bd 495802006-05-08 Marco Gerards <marco@gnu.org>
49581
49582 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Renamed from
49583 this...
49584 (kernel_elf_HEADERS): ...to this. Updated all users.
49585 (grubof_symlist.c): Renamed from this...
49586 (kernel_elf_symlist.c): ...to this. Updated all users.
49587 (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
49588 (grubof_SOURCES): Renamed from this...
49589 (kernel_elf_SOURCES): ...to this.
49590 (grubof_HEADERS): Renamed from this...
49591 (kernel_elf_HEADERS): ...to this.
49592 (grubof_CFLAGS): Renamed from this...
49593 (kernel_elf_CFLAGS): ...to this.
49594 (grubof_ASFLAGS): Renamed from this...
49595 (kernel_elf_ASFLAGS): ...to this.
49596 (grubof_LDFLAGS): Renamed from this...
49597 (kernel_elf_LDFLAGS): ...to this.
49598
49599 * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Renamed from
49600 this...
49601 (kernel_elf_HEADERS): ...to this. Updated all users.
49602 (grubof_symlist.c): Renamed from this...
49603 (kernel_elf_symlist.c): ...to this. Updated all users.
49604 (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
49605 (grubof_SOURCES): Renamed from this...
49606 (kernel_elf_SOURCES): ...to this.
49607 (grubof_HEADERS): Renamed from this...
49608 (kernel_elf_HEADERS): ...to this.
49609 (grubof_CFLAGS): Renamed from this...
49610 (kernel_elf_CFLAGS): ...to this.
49611 (grubof_ASFLAGS): Renamed from this...
49612 (kernel_elf_ASFLAGS): ...to this.
49613 (grubof_LDFLAGS): Renamed from this...
49614 (kernel_elf_LDFLAGS): ...to this.
49615
49616 * util/powerpc/ieee1275/grub-mkimage.c (add_segments): Use
49617 `kernel.elf' instead of `grubof'.
49618
05568c2e 496192006-05-08 Yoshinori K. Okuji <okuji@enbug.org>
49620
49621 Add --with-platform to configure. Use pkglibdir instead of
49622 pkgdatadir. This is reported by Roger Leigh.
49623
49624 * util/powerpc/ieee1275/grub-install.in (datadir): Removed.
49625 (host_vendor): Likewise.
49626 (host_os): Likewise.
49627 (pkgdatadir): Likewise.
49628 (platform): New variable.
49629 (pkglibdir): Likewise.
49630 Use PKGLIBDIR instead of PKGDATADIR.
f19dbdb7 49631
05568c2e 49632 * util/i386/pc/grub-install.in (datadir): Removed.
49633 (host_vendor): Likewise.
49634 (host_os): Likewise.
49635 (pkgdatadir): Likewise.
49636 (platform): New variable.
49637 (pkglibdir): Likewise.
49638 Use PKGLIBDIR instead of PKGDATADIR.
49639
49640 * util/powerpc/ieee1275/grub-mkimage.c (usage): Use GRUB_LIBDIR
49641 instead of GRUB_DATADIR.
49642 (main): Likewise.
49643 * util/i386/pc/grub-mkimage.c (usage): Likewise.
49644 (main): Likewise.
49645 * util/i386/efi/grub-mkimage.c (usage): Likewise.
49646 (main): Likewise.
49647
49648 * configure.ac (--with-platform): New option.
49649 Use PLATFORM instead of HOST_VENDOR to specify a platform.
49650
49651 * Makefile.in: Include a makefile based on PLATFORM instead of
49652 HOST_VENDOR.
49653 (pkgdatadir): Not appended by the machine type.
49654 (pkglibdir): Appended by the machine type.
49655 (host_vendor): Removed.
49656 (platform): New variable.
49657 (BUILD_CPPFLAGS): Specify GRUB_LIBDIR instead of GRUB_DATADIR.
49658 (install-local): Use PKGLIBDIR instead of PKGDATADIR.
49659 (uninstall): Likewise.
49660
4e93851c 496612006-05-07 Yoshinori K. Okuji <okuji@enbug.org>
49662
49663 Use the environment context in the menu. Remove the commands
49664 "default" and "timeout", and use variables instead.
f19dbdb7 49665
4e93851c 49666 * normal/menu.c: Include grub/env.h.
49667 (print_entry): Cast TITLE to silence gcc.
49668 (get_timeout): New function.
49669 (set_timeout): Likewise.
49670 (get_entry_number): Likewise.
49671 (run_menu): Use a default entry, a fallback entry and a timeout
49672 in the environment variables "default", "fallback" and
49673 "timeout". Also, tweak the default entry if it is not within the
49674 current menu entries.
49675 (grub_menu_run): Use a fallback entry in the environment variable
49676 "fallback".
49677
49678 * normal/main.c (read_config_file): Do not initialize
49679 NEWMENU->DEFAULT_ENTRY, NEWMENU->FALLBACK_ENTRY or
49680 NEWMENU->TIMEOUT.
49681 (grub_normal_execute): Use a data slot to store the menu.
49682
49683 * include/grub/normal.h (struct grub_menu): Removed default_entry,
49684 fallback_entry and timeout.
49685 (struct grub_menu_list): Removed.
49686 (grub_menu_list_t): Likewise.
49687 (struct grub_context): Likewise.
49688 (grub_context_t): Likewise.
49689 (grub_context_get): Likewise.
49690 (grub_context_get_current_menu): Likewise.
49691 (grub_context_push_menu): Likewise.
49692 (grub_context_pop_menu): Likewise.
49693 (grub_default_init): Likewise.
49694 (grub_default_fini): Likewise.
49695 (grub_timeout_init): Likewise.
49696 (grub_timeout_fini): Likewise.
49697
49698 * conf/sparc64-ieee1275.rmk (pkgdata_MODULES): Removed default.mod
49699 and timeout.mod.
49700 (normal_mod_SOURCES): Removed normal/context.c.
49701
49702 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Removed
49703 commands/default.c, commands/timeout.c and normal/context.c.
49704 (normal_mod_SOURCES): Removed normal/context.c.
49705
49706 * conf/i386-pc.rmk (grub_emu_SOURCES): Removed commands/default.c,
49707 commands/timeout.c and normal/context.c.
49708 (normal_mod_SOURCES): Removed normal/context.c.
49709
49710 * conf/i386-efi.rmk (grub_emu_SOURCES): Removed
49711 commands/default.c, commands/timeout.c and normal/context.c.
49712 (normal_mod_SOURCES): Removed normal/context.c.
49713
49714 * conf/common.rmk (pkgdata_MODULES): Removed default.mod and
49715 timeout.mod.
49716 (default_mod_SOURCES): Removed.
49717 (default_mod_CFLAGS): Likewise.
49718 (default_mod_LDFLAGS): Likewise.
49719 (timeout_mod_SOURCES): Removed.
49720 (timeout_mod_CFLAGS): Likewise.
49721 (timeout_mod_LDFLAGS): Likewise.
49722
49723 * DISTLIST: Removed commands/default.c, commands/timeout.c and
49724 normal/context.c.
49725
49726 * commands/default.c: Removed.
49727 * commands/timeout.c: Likewise.
49728 * normal/context.c: Likewise.
49729
1eb9cc1d 497302006-05-07 Vesa Jaaskelainen <chaac@nic.fi>
49731
49732 * kern/i386/pc/startup.S (grub_exit): Added missing .code32 tag.
49733
385bd9c1 497342006-05-02 Yoshinori K. Okuji <okuji@enbug.org>
49735
49736 * kern/env.c (struct grub_env_context): Removed "sorted". Renamed
49737 "next" to "prev" for readability.
49738 (struct grub_env_sorted_var): New struct.
49739 (grub_env_context): Renamed to ...
49740 (initial_context): ... this.
49741 (grub_env_var_context): Renamed to ...
49742 (current_context): ... this.
49743 (grub_env_find): Look only at CURRENT_CONTEXT.
49744 (grub_env_context_open): Rewritten to copy exported variables from
49745 previous context.
49746 (grub_env_context_close): Rewritten according to the new
49747 scheme. Also, add an assertion to prevent the initial context from
49748 removed.
49749 (grub_env_insert): Removed the code for the sorted list.
49750 (grub_env_remove): Likewise.
49751 (grub_env_export): Simply mark the variable with
49752 GRUB_ENV_VAR_GLOBAL.
49753 (grub_env_set): A cosmetic change for naming consistency.
49754 (grub_env_get): Likewise.
49755 (grub_env_unset): Likewise.
49756 (grub_env_iterate): Rewritten to sort variables within this
49757 function.
49758 (grub_register_variable_hook): Fixed for naming consistency. Call
49759 grub_env_find again, only if NAME is not found at the first time.
49760 (mangle_data_slot_name): New function.
49761 (grub_env_set_data_slot): Likewise.
49762 (grub_env_get_data_slot): Likewise.
49763 (grub_env_unset_data_slot): Likewise.
49764
49765 * include/grub/env.h (grub_env_var_type): New enum.
49766 (GRUB_ENV_VAR_LOCAL): New constant.
49767 (GRUB_ENV_VAR_GLOBAL): Likewise.
49768 (GRUB_ENV_VAR_DATA): Likewise.
49769 (struct grub_env_var): Removed "sort_next" and "sort_prevp". Added
49770 "type".
49771 (grub_env_set): Replace VAR with NAME for consistency.
49772 (grub_register_variable_hook): Likewise.
49773 (grub_env_export): Specify the name of the argument.
49774 (grub_env_set_data_slot): New prototype.
49775 (grub_env_get_data_slot): Likewise.
49776 (grub_env_unset_data_slot): Likewise.
49777
7f362539 497782006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
49779
49780 Extend the loader so that GRUB can accept a loader which comes
49781 back to GRUB when a loaded image exits. Also, this change adds
49782 support for a chainloader on EFI.
f19dbdb7 49783
7f362539 49784 * term/efi/console.c: Include grub/misc.h.
49785 (grub_console_checkkey): Display a scan code on the top for
49786 debugging. This will be removed once the EFI port gets stable.
49787 Correct the scan code mapping.
49788
49789 * kern/efi/mm.c (sort_memory_map): Sort in a descending order to
49790 allocate memory from larger regions, in order to reduce the number
49791 of allocated regions. Otherwise, the MacOSX loader panics.
49792 (filter_memory_map): Avoid less than 1MB for compatibility with
49793 other loaders.
49794 (add_memory_regions): Allocate from the tail of a region, if
49795 possible, to avoid allocating a region near to 1MB, for the MacOSX
49796 loader.
49797
49798 * kern/efi/init.c (grub_efi_set_prefix): Specify
49799 GRUB_EFI_IMAGE_HANDLE to grub_efi_get_loaded_image.
49800
49801 * kern/efi/efi.c (grub_efi_get_loaded_image): Accept a new
49802 argument IMAGE_HANDLE and specify it to get a loaded image.
49803 (grub_arch_modules_addr): Specify GRUB_EFI_IMAGE_HANDLE to
49804 grub_efi_get_loaded_image.
fe6b695a 49805 (grub_efi_get_filename): Divide the length by the size of
7f362539 49806 grub_efi_char16_t.
49807 (grub_efi_get_device_path): New function.
49808 (grub_efi_print_device_path): Print End Device Path nodes. Divide
49809 the length by the size of grub_efi_char16_t for a file path device
49810 path node.
49811
49812 * kern/loader.c (grub_loader_noreturn): New variable.
49813 (grub_loader_set): Accept a new argument NORETURN. Set
49814 GRUB_LOADER_NORETURN to NORETURN.
49815 All callers changed.
49816 (grub_loader_boot): If GRUB_LOADER_NORETURN is false, do not call
49817 grub_machine_fini.
49818
49819 * include/grub/efi/efi.h (grub_efi_get_device_path): New
49820 prototype.
49821 (grub_efi_get_loaded_image): Take an argument to specify an image
49822 handle.
49823
49824 * include/grub/loader.h (grub_loader_set): Added one more argument
49825 NORETURN.
49826
49827 * disk/efi/efidisk.c (make_devices): Use grub_efi_get_device_path
49828 instead of grub_efi_open_protocol.
49829 (grub_efidisk_get_device_name): Likewise.
49830 (grub_efidisk_close): Print a newline.
49831 (grub_efidisk_get_device_handle): Fixed to use
49832 GRUB_EFI_DEVICE_PATH_SUBTYPE instead of
49833 GRUB_EFI_DEVICE_PATH_TYPE.
49834
49835 * disk/efi/efidisk.c (device_path_guid): Moved to ...
49836 * kern/efi/efi.c (device_path_guid): ... here.
49837
49838 * conf/i386-efi.rmk (pkgdata_MODULES): Added _chain.mod and
49839 chain.mod.
49840 (kernel_mod_HEADERS): Added efi/disk.h.
49841 (_chain_mod_SOURCES): New variable.
49842 (_chain_mod_CFLAGS): Likewise.
49843 (_chain_mod_LDFLAGS): Likewise.
49844 (chain_mod_SOURCES): Likewise.
49845 (chain_mod_CFLAGS): Likewise.
49846 (chain_mod_LDFLAGS): Likewise.
49847
49848 * DISTLIST: Added include/grub/efi/chainloader.h,
49849 loader/efi/chainloader.c and loader/efi/chainloader_normal.c.
49850
49851 * include/grub/efi/chainloader.h: New file.
49852 * loader/efi/chainloader.c: Likewise.
49853 * loader/efi/chainloader_normal.c: Likewise.
49854
c0111d6e 498552006-04-30 Marco Gerards <marco@gnu.org>
49856
49857 * commands/configfile.c (grub_cmd_source): New function.
49858 (GRUB_MOD_INIT): Register the commands `source' and `.'.
49859 (GRUB_MOD_FINI): De-register the commands `source' and `.'.
49860
df5341da 498612006-04-30 Marco Gerards <marco@gnu.org>
49862
49863 * normal/execute.c (grub_script_execute_cmd): Change the return
49864 type to `grub_err_t'. Correctly return the error.
49865 (grub_script_execute_cmdline): In case a command line is not a
49866 command or a function, try to interpret it as an assignment.
49867
f85934bd 498682006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
49869
49870 * fs/hfsplus.c (grub_hfsplus_read_block): Fixed a memory leak.
49871 (grub_hfsplus_iterate_dir): Reordered to skip unknown nodes. Also,
49872 skip a node whose name is obviously invalid as UTF-16,
49873 i.e. contains a NUL character. Stop the iteration when the last
49874 directory entry is found. Instead of using the return value of
49875 grub_hfsplus_btree_iterate_node, store the value in RET and use
49876 it, because the iterator can be stopped by the last directory
49877 entry.
49878
8f8a2cf8 498792006-04-30 Marco Gerards <marco@gnu.org>
49880
49881 * include/grub/env.h (grub_env_export): New prototype. Reported
49882 by Jan C. Kleinsorge <jan.kleinsorge@udo.edu>.
49883
a27e84ce 498842006-04-30 Marco Gerards <marco@gnu.org>
49885
49886 * fs/hfsplus.c (grub_hfsplus_iterate_dir): Correctly calculate the
49887 size of the extents in a catalog file record.
49888
eaef0553 498892006-04-29 Marco Gerards <marco@gnu.org>
49890
49891 * commands/configfile.c (grub_cmd_configfile): Execute the
49892 configfile within its own context.
49893
49894 * include/grub/env.h (grub_env_context_open): New prototype.
49895 (grub_env_context_close): Likewise.
49896
49897 * kern/env.c (grub_env): Removed.
49898 (grub_env_sorted): Likewise.
49899 (grub_env_context): New variable.
49900 (grub_env_var_context): Likewise.
49901 (grub_env_find): Search both the active context and the global
49902 context.
49903 (grub_env_context_open): New function.
49904 (grub_env_context_close): Likewise.
49905 (grub_env_insert): Likewise.
49906 (grub_env_remove): Likewise.
49907 (grub_env_export): Likewise.
49908 (grub_env_set): Changed to use helper functions to avoid code
49909 duplication.
49910 (grub_env_iterate): Rewritten so both the current context and the
49911 global context are being used.
49912
49913 * normal/command.c (export_command): New function.
49914 (grub_command_init): Register the `export' function.
49915
7b455f4d 499162006-04-26 Yoshinori K. Okuji <okuji@enbug.org>
49917
49918 * util/i386/pc/grub-mkimage.c (compress_kernel): Cast arguments
49919 explicitly to suppress gcc's warnings.
49920 * fs/fat.c (grub_fat_find_dir): Likewise.
49921 (grub_fat_label): Likewise.
49922 * fs/xfs.c (grub_xfs_read_inode): Likewise.
49923 (grub_xfs_mount): Likewise.
49924 (grub_xfs_label): Likewise.
49925 * fs/affs.c (grub_affs_mount): Likewise.
49926 (grub_affs_label): Likewise.
49927 (grub_affs_iterate_dir): Likewise.
49928 * fs/sfs.c (grub_sfs_mount): Likewise.
49929 (grub_sfs_iterate_dir): Likewise.
49930 * fs/ufs.c (grub_ufs_lookup_symlink): Likewise.
49931 * fs/hfs.c (grub_hfs_mount): Likewise.
49932 (grub_hfs_cmp_catkeys): Likewise.
49933 (grub_hfs_find_dir): Likewise.
49934 (grub_hfs_dir): Likewise.
49935 (grub_hfs_label): Likewise.
49936 * fs/jfs.c (grub_jfs_mount): Likewise.
49937 (grub_jfs_opendir): Likewise.
49938 (grub_jfs_getent): Likewise.
49939 (grub_jfs_lookup_symlink): Likewise.
49940 (grub_jfs_label): Likewise.
49941 * fs/hfsplus.c (grub_hfsplus_cmp_catkey): Likewise.
49942 (grub_hfsplus_iterate_dir): Likewise.
49943 (grub_hfsplus_btree_iterate_node): Made static.
49944
49945 * util/grub-emu.c (prefix): New variable.
49946 (grub_machine_set_prefix): New function.
49947 (main): Do not set the environment variable "prefix" here. Only
49948 set PREFIX, which is used later by grub_machine_set_prefix.
49949
49950 * include/grub/video.h: Do not include grub/symbol.h.
49951 (grub_video_register): Not exported. This symbol is not defined in
49952 the kernel.
49953 (grub_video_unregister): Likewise.
49954 (grub_video_iterate): Likewise.
49955 (grub_video_setup): Likewise.
49956 (grub_video_restore): Likewise.
49957 (grub_video_get_info): Likewise.
49958 (grub_video_get_blit_format): Likewise.
49959 (grub_video_set_palette): Likewise.
49960 (grub_video_get_palette): Likewise.
49961 (grub_video_set_viewport): Likewise.
49962 (grub_video_get_viewport): Likewise.
49963 (grub_video_map_color): Likewise.
49964 (grub_video_map_rgb): Likewise.
49965 (grub_video_map_rgba): Likewise.
49966 (grub_video_fill_rect): Likewise.
49967 (grub_video_blit_glyph): Likewise.
49968 (grub_video_blit_bitmap): Likewise.
49969 (grub_video_blit_render_target): Likewise.
49970 (grub_video_scroll): Likewise.
49971 (grub_video_swap_buffers): Likewise.
49972 (grub_video_create_render_target): Likewise.
49973 (grub_video_delete_render_target): Likewise.
49974 (grub_video_set_active_render_target): Likewise.
49975
49976 * include/grub/symbol.h [GRUB_SYMBOL_GENERATOR] (EXPORT_FUNC):
49977 Undefined.
49978 [GRUB_SYMBOL_GENERATOR] (EXPORT_VAR): Likewise.
49979
49980 * conf/sparc64-ieee1275.rmk (grubof_symlist.c): Depended on
49981 config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh.
49982 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
49983 instead of $(srcdir)/genkernsyms.sh.
49984
49985 * conf/powerpc-ieee1275.rmk (grubof_symlist.c): Depended on
49986 config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh.
49987 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
49988 instead of $(srcdir)/genkernsyms.sh.
49989
49990 * conf/i386-pc.rmk (symlist.c): Depended on config.h. Use
49991 gensymlist.sh instead of $(srcdir)/gensymlist.sh.
49992 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
49993 instead of $(srcdir)/genkernsyms.sh.
49994
49995 * conf/i386-efi.rmk (symlist.c): Depended on config.h. Use
49996 gensymlist.sh instead of $(srcdir)/gensymlist.sh.
49997 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
49998 instead of $(srcdir)/genkernsyms.sh.
49999
50000 * configure.ac (AC_CONFIG_FILES): Added gensymlist.sh and
50001 genkernsyms.sh.
50002
50003 * Makefile.in (DISTCLEANFILES): Added gensymlist.sh and
50004 genkernsyms.sh.
50005 (gensymlist.sh): New target.
50006 (genkernsyms.sh): Likewise.
50007
50008 * DISTLIST: Removed genkernsyms.sh and gensymlist.sh. Added
50009 genkernsyms.sh.in and gensymlist.sh.in.
50010
50011 * genkernsyms.sh: Removed.
50012 * gensymlist.sh: Likewise.
f19dbdb7 50013
7b455f4d 50014 * genkernsyms.sh.in: New file.
50015 * gensymlist.sh.in: Likewise.
50016
1885bb27 500172006-04-25 Hollis Blanchard <hollis@penguinppc.org>
50018
50019 * kern/powerpc/ieee1275/init.c (grub_machine_set_prefix): Do not
50020 clobber "prefix", since we may have already set it manually.
50021
71538dff 500222006-04-25 Hollis Blanchard <hollis@penguinppc.org>
50023
50024 * kern/misc.c (abort): New alias for grub_abort.
50025
2965c7cc 500262006-04-25 Yoshinori K. Okuji <okuji@enbug.org>
50027
50028 A new machine-specific function "grub_machine_set_prefix" is
50029 defined. This is called after loading modules, so that a prefix
50030 initialization can use modules. Also, this change adds an
50031 intensive debugging feature for the memory manager via the
50032 configure option "--enable-mm-debug".
f19dbdb7 50033
2965c7cc 50034 * partmap/gpt.c (gpt_partition_map_iterate): Add one more into
50035 PART.LEN.
50036
50037 * kern/sparc64/ieee1275/init.c (abort): Removed.
50038 (grub_stop): Likewise.
50039 (grub_exit): New function.
50040 (grub_set_prefix): Renamed to ...
50041 (grub_machine_set_prefix): ... this.
50042 (grub_machine_init): Do not call grub_set_prefix.
50043
50044 * kern/powerpc/ieee1275/init.c (grub_set_prefix): Renamed to ...
50045 (grub_machine_set_prefix): ... this.
50046 (grub_machine_init): Do not call grub_set_prefix.
50047
50048 * kern/i386/pc/init.c (grub_machine_set_prefix): New function.
50049 (grub_machine_init): Do not set the prefix here.
50050
50051 * kern/i386/efi/init.c (grub_machine_set_prefix): New function.
50052
50053 * kern/efi/init.c: Include grub/mm.h.
50054 (grub_efi_set_prefix): New function.
50055
50056 * kern/efi/efi.c (grub_exit): Call grub_efi_fini.
50057 (grub_efi_get_filename): New function.
50058 (grub_print_device_path): Renamed to ...
50059 (grub_efi_print_device_path): ... this.
50060
50061 * kern/mm.c [MM_DEBUG] (grub_malloc): Undefined.
50062 [MM_DEBUG] (grub_realloc): Likewise.
50063 [MM_DEBUG] (grub_free): Likewise.
50064 [MM_DEBUG] (grub_memalign): Likewise.
50065 [MM_DEBUG] (grub_mm_debug): New variable.
50066 [MM_DEBUG] (grub_debug_malloc): New function.
50067 [MM_DEBUG] (grub_debug_free): New function.
50068 [MM_DEBUG] (grub_debug_realloc): New function.
50069 [MM_DEBUG] (grub_debug_memalign): New function.
50070
50071 * kern/misc.c (grub_abort): Print a newline to distinguish
50072 the message.
50073
50074 * kern/main.c (grub_main): Call grub_machine_set_prefix and
50075 grub_set_root_dev after loading modules. This is necessary when
50076 setting a prefix depends on modules.
50077
50078 * include/grub/efi/efi.h (grub_print_device_path): Renamed to ...
50079 (grub_efi_print_device_path): ... this.
50080 (grub_efi_get_filename): New prototype.
50081 (grub_efi_set_prefix): Likewise.
50082
50083 * include/grub/efi/disk.h: Include grub/efi/api.h, grub/symbol.h
50084 and grub/disk.h.
50085 (grub_efidisk_get_device_handle): New prototype.
50086 (grub_efidisk_get_device_name): Likewise.
50087
50088 * include/grub/mm.h: Include config.h.
50089 (MM_DEBUG): Removed.
50090 [MM_DEBUG && !GRUB_UTIL] (grub_mm_debug): New prototype.
50091 [MM_DEBUG && !GRUB_UTIL] (grub_malloc): New macro.
50092 [MM_DEBUG && !GRUB_UTIL] (grub_realloc): Likewise.
50093 [MM_DEBUG && !GRUB_UTIL] (grub_memalign): Likewise.
50094 [MM_DEBUG && !GRUB_UTIL] (grub_free): Likewise.
50095 [MM_DEBUG && !GRUB_UTIL] (grub_debug_malloc): New prototype.
50096 [MM_DEBUG && !GRUB_UTIL] (grub_debug_realloc): New prototype.
50097 [MM_DEBUG && !GRUB_UTIL] (grub_debug_memalign): New prototype.
50098 [MM_DEBUG && !GRUB_UTIL] (grub_debug_free): New prototype.
50099
50100 * include/grub/kernel.h (grub_machine_set_prefix): New prototype.
50101
50102 * disk/efi/efidisk.c: Include grub/partition.h.
50103 (iterate_child_devices): New function.
50104 (add_device): First, compare only last device path nodes, so that
50105 devices are sorted by the types.
50106 (grub_efidisk_get_device_handle): New function.
50107 (grub_efidisk_get_device_name): Likewise.
50108
50109 * configure.ac (--enable-mm-debug): New option to enable the
50110 memory manager debugging feature. This makes the binary much
50111 bigger, so is disabled by default.
50112
9cacaa17 501132006-04-23 Yoshinori K. Okuji <okuji@enbug.org>
50114
50115 Use grub_abort instead of grub_stop, and grub_exit must be
50116 define in each architecture now. Also, this change adds support
50117 for EFI disks.
f19dbdb7 50118
9cacaa17 50119 * util/i386/pc/grub-probefs.c: Include grub/term.h.
50120 (grub_getkey): New function.
50121 (grub_term_get_current): Likewise.
50122
50123 * util/i386/pc/grub-setup.c: Include grub/term.h.
50124 (grub_getkey): New function.
50125 (grub_term_get_current): Likewise.
50126
50127 * util/misc.c (grub_stop): Renamed to ...
50128 (grub_exit): ... this.
50129
50130 * kern/powerpc/ieee1275/init.c (abort): Renamed to ...
50131 (grub_exit): ... this.
50132 (grub_machine_init): Use grub_abort instead of abort.
50133 (grub_stop): Removed.
50134
50135 * kern/powerpc/ieee1275/cmain.c (cmain): Use grub_abort instead of
50136 abort.
50137
50138 * kern/i386/pc/startup.S (grub_exit): New function.
50139 (cold_reboot): New label.
50140
50141 * kern/efi/init.c: Include grub/efi/disk.h and grub/env.h.
50142 (grub_efi_init): Call grub_efidisk_init.
50143 (grub_efi_fini): Call grub_efidisk_fini.
50144
50145 * kern/efi/efi.c: Include grub/mm.h.
50146 (grub_efi_console_control_guid): Renamed to ...
50147 (console_control_guid): ... this.
50148 (grub_efi_loaded_image_guid): Renamed to ...
50149 (loaded_image_guid): ... this.
50150 (grub_efi_locate_handle): New function.
50151 (grub_efi_open_protocol): Likewise.
50152 (grub_efi_set_text_mode): Use CONSOLE_CONTROL_GUID instead of
50153 GRUB_EFI_CONSOLE_CONTROL_GUID.
50154 (grub_efi_exit): Removed.
50155 (grub_stop): Likewise.
50156 (grub_efi_get_loaded_image): Use grub_efi_open_protocol.
50157 (grub_exit): New function.
50158 (grub_print_device_path): Likewise.
50159
50160 * kern/rescue.c (grub_rescue_cmd_exit): New function.
50161 (grub_enter_rescue_mode): Register "exit".
50162
50163 * kern/misc.c (grub_real_dprintf): A cosmetic change.
50164 (grub_abort): New function.
50165
50166 * kern/err.c (grub_fatal): Use grub_abort instead of grub_stop.
50167
50168 * include/grub/sparc64/ieee1275/kernel.h (abort): Removed.
50169
50170 * include/grub/powerpc/ieee1275/kernel.h (abort): Removed.
50171
50172 * include/grub/efi/efi.h (grub_efi_exit): Removed.
50173 (grub_print_device_path): New prototype.
50174 (grub_efi_locate_handle): Likewise.
50175 (grub_efi_open_protocol): Likewise.
50176
50177 * include/grub/efi/disk.h (grub_efidisk_fini): New file.
50178 * disk/efi/efidisk.c: Likewise.
50179
50180 * DISTLIST: Added disk/efi/efidisk.c and include/grub/efi/disk.h.
50181
50182 * include/grub/efi/console_control.h
50183 (GRUB_EFI_CONSOLE_CONTROL_GUID): Use an array for the last 8 bytes.
50184
50185 * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): Specify the
50186 last 8 bytes as an array.
50187 (GRUB_EFI_DISK_IO_GUID): New macro.
50188 (GRUB_EFI_BLOCK_IO_GUID): Likewise.
50189 (GRUB_EFI_DEVICE_PATH_GUID): Likewise.
50190 (grub_efi_ipv6_address_t): Change the type to grub_uint16_t from
50191 grub_uint8_t.
50192 (struct grub_efi_guid): Use an array to specify the last 8 bytes.
50193 (struct grub_efi_device_path): Rename the member "sub_type" to
50194 "subtype".
50195 (GRUB_EFI_DEVICE_PATH_TYPE): New macro.
50196 (GRUB_EFI_DEVICE_PATH_SUBTYPE): Likewise.
50197 (GRUB_EFI_DEVICE_PATH_LENGTH): Likewise.
50198 (GRUB_EFI_END_DEVICE_PATH_TYPE): Likewise.
50199 (GRUB_EFI_END_ENTIRE_DEVICE_PATH_SUBTYPE): Likewise.
50200 (GRUB_EFI_END_THIS_DEVICE_PATH_SUBTYPE): Likewise.
50201 (GRUB_EFI_END_ENTIRE_DEVICE_PATH): Likewise.
50202 (GRUB_EFI_NEXT_DEVICE_PATH): Likewise.
50203 (GRUB_EFI_HARDWARE_DEVICE_PATH_TYPE): Likewise.
50204 (GRUB_EFI_PCI_DEVICE_PATH_SUBTYPE): Likewise.
50205 (struct grub_efi_pci_device_path): New structure.
50206 (grub_efi_pci_device_path_t): New type.
50207 (GRUB_EFI_PCCARD_DEVICE_PATH_SUBTYPE): New macro.
50208 (struct grub_efi_pccard_device_path): New structure.
50209 (grub_efi_pccard_device_path_t): New type.
50210 (GRUB_EFI_MEMORY_MAPPED_DEVICE_PATH_SUBTYPE): New macro.
50211 (struct grub_efi_memory_mapped_device_path): New structure.
50212 (grub_efi_memory_mapped_device_path_t): New type.
50213 (GRUB_EFI_VENDOR_DEVICE_PATH_SUBTYPE): New macro.
50214 (struct grub_efi_vendor_device_path): New structure.
50215 (grub_efi_vendor_device_path_t): New type.
50216 (GRUB_EFI_CONTROLLER_DEVICE_PATH_SUBTYPE): New macro.
50217 (struct grub_efi_controller_device_path): New structure.
50218 (grub_efi_controller_device_path_t): New type.
50219 (GRUB_EFI_ACPI_DEVICE_PATH_TYPE): New macro.
50220 (GRUB_EFI_ACPI_DEVICE_PATH_SUBTYPE): Likewise.
50221 (struct grub_efi_acpi_device_path): New structure.
50222 (grub_efi_acpi_device_path_t): New type.
50223 (GRUB_EFI_EXPANDED_ACPI_DEVICE_PATH_SUBTYPE): New macro.
50224 (struct grub_efi_expanded_acpi_device_path): New structure.
50225 (grub_efi_expanded_acpi_device_path_t): New type.
50226 (GRUB_EFI_EXPANDED_ACPI_HIDSTR): New macro.
50227 (GRUB_EFI_EXPANDED_ACPI_UIDSTR): Likewise.
50228 (GRUB_EFI_EXPANDED_ACPI_CIDSTR): Likewise.
50229 (GRUB_EFI_MESSAGING_DEVICE_PATH_TYPE): Likewise.
50230 (GRUB_EFI_ATAPI_DEVICE_PATH_SUBTYPE): Likewise.
50231 (struct grub_efi_atapi_device_path): New structure.
50232 (grub_efi_atapi_device_path_t): New type.
50233 (GRUB_EFI_FIBRE_CHANNEL_DEVICE_PATH_SUBTYPE): New macro.
50234 (struct grub_efi_fibre_channel_device_path): New structure.
50235 (grub_efi_fibre_channel_device_path_t): New type.
50236 (GRUB_EFI_1394_DEVICE_PATH_SUBTYPE): New macro.
50237 (struct grub_efi_1394_device_path): New structure.
50238 (grub_efi_1394_device_path_t): New type.
50239 (GRUB_EFI_USB_DEVICE_PATH_SUBTYPE): New macro.
50240 (struct grub_efi_usb_device_path): New structure.
50241 (grub_efi_usb_device_path_t): New type.
50242 (GRUB_EFI_USB_CLASS_DEVICE_PATH_SUBTYPE): New macro.
50243 (struct grub_efi_usb_class_device_path): New structure.
50244 (grub_efi_usb_class_device_path_t): New type.
50245 (GRUB_EFI_I2O_DEVICE_PATH_SUBTYPE): New macro.
50246 (struct grub_efi_i2o_device_path): New structure.
50247 (grub_efi_i2o_device_path_t): New type.
50248 (GRUB_EFI_MAC_ADDRESS_DEVICE_PATH_SUBTYPE): New macro.
50249 (struct grub_efi_mac_address_device_path): New structure.
50250 (grub_efi_mac_address_device_path_t): New type.
50251 (GRUB_EFI_IPV4_DEVICE_PATH_SUBTYPE): New macro.
50252 (struct grub_efi_ipv4_device_path): New structure.
50253 (grub_efi_ipv4_device_path_t): New type.
50254 (GRUB_EFI_IPV6_DEVICE_PATH_SUBTYPE): New macro.
50255 (struct grub_efi_ipv6_device_path): New structure.
50256 (grub_efi_ipv6_device_path_t): New type.
50257 (GRUB_EFI_INFINIBAND_DEVICE_PATH_SUBTYPE): New macro.
50258 (struct grub_efi_infiniband_device_path): New structure.
50259 (grub_efi_infiniband_device_path_t): New type.
50260 (GRUB_EFI_UART_DEVICE_PATH_SUBTYPE): New macro.
50261 (struct grub_efi_uart_device_path): New structure.
50262 (grub_efi_uart_device_path_t): New type.
50263 (GRUB_EFI_VENDOR_MESSAGING_DEVICE_PATH_SUBTYPE): New macro.
50264 (struct grub_efi_vendor_messaging_device_path): New structure.
50265 (grub_efi_vendor_messaging_device_path_t): New type.
50266 (GRUB_EFI_MEDIA_DEVICE_PATH_TYPE): New macro.
50267 (GRUB_EFI_HARD_DRIVE_DEVICE_PATH_SUBTYPE): Likewise.
50268 (struct grub_efi_hard_drive_device_path): New structure.
50269 (grub_efi_hard_drive_device_path_t): New type.
50270 (GRUB_EFI_CDROM_DEVICE_PATH_SUBTYPE): New macro.
50271 (struct grub_efi_cdrom_device_path): New structure.
50272 (grub_efi_cdrom_device_path_t): New type.
50273 (GRUB_EFI_VENDOR_MEDIA_DEVICE_PATH_SUBTYPE): New macro.
50274 (struct grub_efi_vendor_media_device_path): New structure.
50275 (grub_efi_vendor_media_device_path_t): New type.
50276 (GRUB_EFI_FILE_PATH_DEVICE_PATH_SUBTYPE): New macro.
50277 (struct grub_efi_file_path_device_path): New structure.
50278 (grub_efi_file_path_device_path_t): New type.
50279 (GRUB_EFI_PROTOCOL_DEVICE_PATH_SUBTYPE): New macro.
50280 (struct grub_efi_protocol_device_path): New structure.
50281 (grub_efi_protocol_device_path_t): New type.
50282 (GRUB_EFI_BIOS_DEVICE_PATH_TYPE): New macro.
50283 (GRUB_EFI_BIOS_DEVICE_PATH_SUBTYPE): Likewise.
50284 (struct grub_efi_bios_device_path): New structure.
50285 (grub_efi_bios_device_path_t): New type.
50286 (struct grub_efi_disk_io): New structure.
50287 (grub_efi_disk_io_t): New type.
50288 (struct grub_efi_block_io_media): New structure.
50289 (grub_efi_block_io_media_t): New type.
50290 (struct grub_efi_block_io): New structure.
50291 (grub_efi_block_io_t): New type.
50292
50293 * include/grub/misc.h (grub_stop): Removed.
50294 (grub_exit): New prototype.
50295 (grub_abort): Likewise.
50296
50297 * include/grub/disk.h (enum grub_disk_dev_id): Added
50298 GRUB_DISK_DEVICE_EFIDISK_ID.
50299
50300 * conf/i386-efi.rmk (kernel_mod_SOURCES): Added
50301 disk/efi/efidisk.c.
50302 (kernel_syms.lst): Remove the target if an error occurs.
50303
49986a9f 503042006-04-22 Yoshinori K. Okuji <okuji@enbug.org>
50305
50306 * kern/misc.c (grub_lltoa): Rewritten the decimal conversion part,
50307 as it was simply too buggy.
50308
970d3b8a 503092006-04-21 Yoshinori K. Okuji <okuji@enbug.org>
50310
50311 * kern/misc.c (grub_lltoa): New function.
50312 (grub_vsprintf): Added support for the long long suffix,
50313 i.e. "ll".
50314
ff04ec24 503152006-04-20 Hollis Blanchard <hollis@penguinppc.org>
50316
50317 * Makefile.in (LDFLAGS): Add variable.
50318 (LD): Remove variable.
50319 * configure.ac: Add -m32 to LDFLAGS.
50320 * genmk.rb (PModule#rule): Use $(CC) instead of $(LD).
50321 * conf/powerpc-ieee1275.rmk (COMMON_LDFLAGS): Add variable.
50322 (grubof_LDFLAGS): Use $(COMMON_LDFLAGS).
50323 (_linux_mod_LDFLAGS, linux_mod_LDFLAGS, normal_mod_LDFLAGS,
50324 suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS): New
50325 variables.
50326 * conf/sparc64-ieee1275.rmk (COMMON_LDFLAGS): Add -nostdlib.
50327 * conf/i386-pc.rmk (COMMON_LDFLAGS): Add -nostdlib.
50328 * conf/i386-efi.rmk (COMMON_LDFLAGS): Add -nostdlib.
50329
37e5e1a4 503302006-04-20 Vesa Jaaskelainen <chaac@nic.fi>
50331
50332 * term/gfxterm.c (grub_gfxterm_getcharwidth): Fixed character
50333 length for unknown glyph.
50334
c352d8dd 503352006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
50336
2eab1c0d 50337 Add support for pre-loaded modules into the EFI port.
f19dbdb7 50338
2eab1c0d 50339 * util/i386/efi/grub-mkimage.c (make_mods_section): Rewritten
50340 completely. Accept one more argument DIR. The caller has changed.
50341
50342 * kern/i386/efi/init.c (grub_arch_modules_addr): Removed.
50343
50344 * kern/efi/efi.c: Include grub/efi/pe32.h and grub/kernel.h.
50345 (grub_efi_loaded_image_guid): New variable.
50346 (grub_efi_get_loaded_image): New function.
50347 (grub_arch_modules_addr): Likewise.
50348
50349 * include/grub/efi/efi.h (grub_efi_get_loaded_image): New
50350 prototype.
50351
50352 * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): New macro.
50353 (struct grub_efi_loaded_image): New structure.
50354 (grub_efi_loaded_image_t): New type.
50355
503562006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
f19dbdb7 50357
c352d8dd 50358 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Compare the file
50359 size with GRUB_OS_AREA_SIZE as grub_size_t instead of
50360 grub_ssize_t. Reported by Jeff Chua <jeff84@silk.corp.fedex.com>.
50361
6d01d6b4 503622006-04-19 Roger Leigh <rleigh@whinlatter.ukfsn.org>
50363
50364 * DISTLIST: Added `util/powerpc/ieee1275/grub-install.in'.
50365
976a4ea0 503662006-04-19 Yoshinori K. Okuji <okuji@enbug.org>
50367
50368 * DISTLIST: Added include/grub/efi/console.h,
50369 include/grub/efi/time.h, include/grub/i386/efi/kernel.h,
50370 kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
50371
50372 * include/grub/efi/console.h: New file.
50373 * include/grub/efi/time.h: Likewise.
50374 * include/grub/i386/efi/kernel.h: Likewise.
50375 * kern/efi/init.c: Likewise.
50376 * kern/efi/mm.c: Likewise.
50377 * term/efi/console.c: Likewise.
f19dbdb7 50378
976a4ea0 50379 * kern/i386/efi/init.c: Do not include grub/machine/time.h.
50380 (grub_stop): Removed.
50381 (grub_get_rtc): Likewise.
50382 (grub_machine_init): Simply call grub_efi_init.
50383 (grub_machine_fini): Call grub_efi_fini.
50384
50385 * kern/efi/efi.c: Include grub/machine/time.h and grub/term.h.
50386 (grub_efi_output_string): Removed.
50387 (grub_efi_stall): New function.
50388 (grub_stop): Likewise.
50389 (grub_get_rtc): Likewise.
50390
50391 * include/grub/efi/efi.h (grub_efi_output_string): Removed.
50392 (grub_efi_stall): New prototype.
50393 (grub_efi_allocate_pages): Likewise.
50394 (grub_efi_free_pages): Likewise.
50395 (grub_efi_get_memory_map): Likewise.
50396 (grub_efi_mm_init): Likewise.
50397 (grub_efi_mm_fini): Likewise.
50398 (grub_efi_init): Likewise.
50399 (grub_efi_fini): Likewise.
50400
50401 * include/grub/i386/efi/time.h: Do not include
50402 grub/symbol.h. Include grub/efi/time.h.
50403 (GRUB_TICKS_PER_SECOND): Removed.
50404 (grub_get_rtc): Likewise.
50405
50406 * include/grub/efi/api.h (struct grub_efi_memory_descriptor):
50407 Added padding. The EFI spec is buggy.
50408 (GRUB_EFI_BLACK): New macro.
50409 (GRUB_EFI_BLUE): Likewise.
50410 (GRUB_EFI_GREEN): Likewise.
50411 (GRUB_EFI_CYAN): Likewise.
50412 (GRUB_EFI_RED): Likewise.
50413 (GRUB_EFI_MAGENTA): Likewise.
50414 (GRUB_EFI_BROWN): Likewise.
50415 (GRUB_EFI_LIGHTGRAY): Likewise.
50416 (GRUB_EFI_BRIGHT): Likewise.
50417 (GRUB_EFI_DARKGRAY): Likewise.
50418 (GRUB_EFI_LIGHTBLUE): Likewise.
50419 (GRUB_EFI_LIGHTGREEN): Likewise.
50420 (GRUB_EFI_LIGHTCYAN): Likewise.
50421 (GRUB_EFI_LIGHTRED): Likewise.
50422 (GRUB_EFI_LIGHTMAGENTA): Likewise.
50423 (GRUB_EFI_YELLOW): Likewise.
50424 (GRUB_EFI_WHITE): Likewise.
50425 (GRUB_EFI_BACKGROUND_BLACK): Likewise.
50426 (GRUB_EFI_BACKGROUND_BLUE): Likewise.
50427 (GRUB_EFI_BACKGROUND_GREEN): Likewise.
50428 (GRUB_EFI_BACKGROUND_CYAN): Likewise.
50429 (GRUB_EFI_BACKGROUND_RED): Likewise.
50430 (GRUB_EFI_BACKGROUND_MAGENTA): Likewise.
50431 (GRUB_EFI_BACKGROUND_BROWN): Likewise.
50432 (GRUB_EFI_BACKGROUND_LIGHTGRAY): Likewise.
50433 (GRUB_EFI_TEXT_ATTR): Likewise.
50434
50435 * conf/i386-efi.rmk (kernel_mod_SOURCES): Added kern/efi/efi.c,
50436 kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
50437 (kernel_mod_HEADERS): Added efi/time.h.
50438
83709125 504392006-04-18 Yoshinori K. Okuji <okuji@enbug.org>
50440
50441 * DISTLIST: Added conf/i386-efi.mk, conf/i386-efi.rmk,
50442 include/grub/efi/api.h, include/grub/efi/console_control.h,
50443 include/grub/efi/efi.h, include/grub/efi/pe32.h,
50444 include/grub/i386/efi/time.h, kern/efi/efi.c,
50445 kern/i386/efi/init.c, kern/i386/efi/startup.S,
50446 and util/i386/efi/grub-mkimage.c.
50447
50448 * Makefile.in (RMKFILES): Added i386-efi.rmk.
50449
50450 * genmk.rb (PModule#rule): Do not export symbols if
50451 #{prefix}_EXPORTS is set to "no".
50452
50453 * conf/i386-efi.mk: New file.
50454 * conf/i386-efi.rmk: Likewise.
50455 * include/grub/efi/api.h: Likewise.
50456 * include/grub/efi/console_control.h: Likewise.
50457 * include/grub/efi/efi.h: Likewise.
50458 * include/grub/efi/pe32.h: Likewise.
50459 * include/grub/i386/efi/time.h: Likewise.
50460 * kern/efi/efi.c: Likewise.
50461 * kern/i386/efi/init.c: Likewise.
50462 * kern/i386/efi/startup.S: Likewise.
50463 * util/i386/efi/grub-mkimage.c: Likewise.
50464
504652006-04-17 Marco Gerards <marco@gnu.org>
bfa2bd9e 50466
50467 * include/grub/script.h: Include <grub/parser.h> and
50468 "grub_script.tab.h".
50469 (struct grub_lexer_param): New struct.
50470 (struct grub_parser_param): Likewise.
50471 (grub_script_create_arglist): Pass the state in an argument.
50472 (grub_script_add_arglist): Likewise.
50473 (grub_script_create_cmdline): Likewise.
50474 (grub_script_create_cmdblock): Likewise.
50475 (grub_script_create_cmdif): Likewise.
50476 (grub_script_create_cmdmenu): Likewise.
50477 (grub_script_add_cmd): Likewise.
50478 (grub_script_arg_add): Likewise.
50479 (grub_script_lexer_ref): Likewise.
50480 (grub_script_lexer_deref): Likewise.
50481 (grub_script_lexer_record_start): Likewise.
50482 (grub_script_lexer_record_stop): Likewise.
50483 (grub_script_mem_record): Likewise.
50484 (grub_script_mem_record_stop): Likewise.
50485 (grub_script_malloc): Likewise.
50486 (grub_script_yylex): Likewise.
50487 (grub_script_yyparse): Likewise.
50488 (grub_script_yyerror): Likewise.
50489 (grub_script_yylex): Likewise.
50490 (grub_script_lexer_init): Return the state.
50491
50492 * normal/lexer.c (grub_script_lexer_state): Removed variable.
50493 (grub_script_lexer_done): Likewise.
50494 (grub_script_lexer_getline): Likewise.
50495 (grub_script_lexer_refs): Likewise.
50496 (script): Likewise.
50497 (newscript): Likewise.
50498 (record): Likewise.
50499 (recording): Likewise.
50500 (recordpos): Likewise.
50501 (recordlen): Likewise.
50502 (grub_script_lexer_init): Return the state instead of setting
50503 global variables.
50504 (grub_script_lexer_ref): Use the newly added argument for state
50505 instead of globals.
50506 (grub_script_lexer_deref): Likewise.
50507 (grub_script_lexer_record_start): Likewise.
50508 (grub_script_lexer_record_stop): Likewise.
50509 (recordchar): Likewise.
50510 (nextchar): Likewise.
50511 (grub_script_yylex2): Likewise.
50512 (grub_script_yylex): Likewise.
50513 (grub_script_yyerror): Likewise.
50514
50515 * normal/parser.y (func_mem): Removed variable.
50516 (menu_entry): Likewise.
50517 (err): Likewise.
50518 (%lex-param): New parser option.
50519 (%parse-param): Likewise.
50520 (script): Always return the AST.
50521 (argument): Pass the state around.
50522 (arguments): Likewise.
50523 (grubcmd): Likewise.
50524 (commands): Likewise.
50525 (function): Likewise.
50526 (menuentry): Likewise.
50527 (if_statement): Likewise.
50528 (if): Likewise.
50529
50530 * normal/script.c (grub_script_memused): Removed variable.
50531 (grub_script_parsed): Likewise.
50532 (grub_script_malloc): Added a state argument. Use that instead of
50533 global variables.
50534 (grub_script_mem_record): Likewise.
50535 (grub_script_mem_record_stop): Likewise.
50536 (grub_script_arg_add): Likewise.
50537 (grub_script_add_arglist): Likewise.
50538 (grub_script_create_cmdline): Likewise.
50539 (grub_script_create_cmdif): Likewise.
50540 (grub_script_create_cmdmenu): Likewise.
50541 (grub_script_add_cmd): Likewise.
50542 (grub_script_parse): Setup the state before calling the parser.
f19dbdb7 50543
e2a8c904 505442006-04-16 Marco Gerards <marco@gnu.org>
6de2ee99 50545
50546 * normal/command.c (grub_command_init): Remove the title command.
50547
50548 * normal/lexer.c (grub_script_yylex): Renamed from this...
50549 (grub_script_yylex2): ... to this.
50550 (grub_script_yylex): New function. Temporary
50551 introduced to filter some tokens.
50552 (grub_script_yyerror): Print a newline.
50553
50554 * normal/main.c (read_config_file): Output information about the
50555 lines that contain errors. Wait for a key after all lines have
50556 been processed. Don't return an empty menu.
50557
50558 * normal/parser.y (func_mem): Don't initialize.
50559 (menu_entry): Likewise.
50560 (err): New variable.
50561 (script): Don't return anything when an error was encountered.
50562 (ws, returns): Removed rules.
50563 (argument): Disabled concatenated variable support.
50564 (arguments): Remove explicit separators.
50565 (grubcmd): Likewise.
50566 (function): Likewise.
50567 (menuentry): Likewise.
50568 (if): Likewise.
50569 (commands): Likewise. Add error handling.
50570
50571 * normal/script.c (grub_script_create_cmdline): If
50572 `grub_script_parsed' is 0, assume the parser encountered an error.
50573
c9a86192 505742006-04-02 Yoshinori K. Okuji <okuji@enbug.org>
50575
50576 * configure.ac: Add support for EFI. Fix the typo
50577 BUILD_LDDFLAGS. Restore the LDFLAGS after testing.
50578
70f3b243 505792006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
50580
50581 * util/unifont2pff.rb: Removed unnecessary byte ordering. Now
50582 foreign multibyte characters should be shown correctly.
50583
65f201ad 505842006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
50585
50586 * normal/main.c (grub_normal_menu_addentry): Fixed menu size
50587 calculation.
50588 (read_config_file): Made it to close file before returning.
50589
b4b93674 505902006-03-31 Vesa Jaaskelainen <chaac@nic.fi>
50591
50592 * DISTLIST: Added include/grub/i386/pc/vbeblit.h,
50593 include/grub/i386/pc/vbefill.h, video/i386/pc/vbeblit.c,
50594 video/i386/pc/vbefill.c.
50595
50596 * conf/i386-pc.rmk (vbe_mod_SOURCES): Added video/i386/pc/vbeblit.c,
50597 video/i386/pc/vbefill.c.
50598
50599 * include/grub/video.h (grub_video_blit_format): New enum.
50600 (grub_video_mode_info): Added new member blit_format.
50601 (grub_video_get_blit_format): New function prototype.
50602
50603 * include/grub/i386/pc/vbe.h (grub_video_vbe_get_video_ptr): New
50604 function prototype.
50605 (grub_video_vbe_map_rgb): Likewise.
50606 (grub_video_vbe_unmap_color): Likewise.
50607
50608 * include/grub/i386/pc/vbeblit.h: New file.
50609
50610 * include/grub/i386/pc/vbefill.h: New file.
50611
50612 * video/video.c (grub_video_get_blit_format): New function.
50613 (grub_video_vbe_get_video_ptr): Re-declared as non-static.
50614 (grub_video_vbe_map_rgb): Likewise.
50615 (grub_video_vbe_unmap_color): Likewise.
50616
50617 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Changed to use more
50618 optimized fills.
50619 (grub_video_vbe_blit_render_target): Changed to use more optimized
50620 blits.
50621 (grub_video_vbe_setup): Added detection for optimized settings.
50622 (grub_video_vbe_create_render_target): Likewise.
50623
50624 * video/i386/pc/vbeblit.c: New file.
50625
50626 * video/i386/pc/vbefill.c: New file.
50627
c2379b9c 506282006-03-30 Vesa Jaaskelainen <chaac@nic.fi>
50629
50630 * font/manager.c (grub_font_get_glyph): Removed font fixup from
50631 here...
50632
50633 * util/unifont2pff.rb: ... and moved it to here. Improved argument
50634 parsing to support both hex and dec ranges. If filename was missing
50635 show usage information.
50636
bd0d7896 506372006-03-14 Vesa Jaaskelainen <chaac@nic.fi>
50638
50639 * DISTLIST: Added include/grub/video.h, term/gfxterm.c,
50640 video/video.c, commands/videotest.c. Removed term/i386/pc/vesafb.c.
50641
50642 * conf/i386-pc.rmk (pkgdata_MODULES): Added video.mod,
50643 gfxterm.mod, videotest.mod. Removed vga.mod, vesafb.mod.
50644 (video_mod_SOURCES): Added.
50645 (video_mod_CFLAGS): Likewise.
50646 (video_mod_LDFLAGS): Likewise.
50647 (gfxterm_mod_SOURCES): Likewise.
50648 (gfxterm_mod_CFLAGS): Likewise.
50649 (gfxterm_mod_LDFLAGS): Likewise.
50650 (videotest_mod_SOURCES): Likewise.
50651 (videotest_mod_CFLAGS): Likewise.
50652 (videotest_mod_LDFLAGS): Likewise.
50653 (vesafb_mod_SOURCES): Removed.
50654 (vesafb_mod_CFLAGS): Likewise.
50655 (vesafb_mod_LDFLAGS): Likewise.
50656 (vga_mod_SOURCES): Likewise.
50657 (vga_mod_CFLAGS): Likewise.
50658 (vga_mod_LDFLAGS): Likewise.
50659
50660 * commands/videotest.c: New file.
50661
50662 * font/manager.c (fill_with_default_glyph): Modified to use
50663 grub_font_glyph.
50664 (grub_font_get_glyph): Likewise.
50665 (fontmanager): Renamed from this...
50666 (font_manager): ... to this.
50667
50668 * include/grub/font.h (grub_font_glyph): Added new structure.
50669 (grub_font_get_glyph): Modified to use grub_font_glyph.
50670
50671 * include/grub/misc.h (grub_abs): Added as inline function.
50672
50673 * include/grub/video.h: New file.
50674
50675 * include/grub/i386/pc/vbe.h (GRUB_VBE_STATUS_OK): New macro.
50676 (GRUB_VBE_MEMORY_MODEL_PACKED_PIXEL): Likewise.
50677 (GRUB_VBE_MEMORY_MODEL_DIRECT_COLOR): Likewise.
50678 (grub_vbe_get_controller_info): Renamed from this...
50679 (grub_vbe_bios_get_controller_info): ... to this.
50680 (grub_vbe_get_mode_info): Renamed from this...
50681 (grub_vbe_bios_get_mode_info): ... to this.
50682 (grub_vbe_set_mode): Renamed from this...
50683 (grub_vbe_bios_set_mode): ... to this.
50684 (grub_vbe_get_mode): Renamed from this...
50685 (grub_vbe_bios_get_mode): ... to this.
50686 (grub_vbe_set_memory_window): Renamed from this...
50687 (grub_vbe_bios_set_memory_window): ... to this.
50688 (grub_vbe_get_memory_window): Renamed from this...
50689 (grub_vbe_bios_get_memory_window): ... to this.
50690 (grub_vbe_set_scanline_length): Renamed from this...
50691 (grub_vbe_set_scanline_length): ... to this.
50692 (grub_vbe_get_scanline_length): Renamed from this...
50693 (grub_vbe_bios_get_scanline_length): ... to this.
50694 (grub_vbe_set_display_start): Renamed from this...
50695 (grub_vbe_bios_set_display_start): ... to this.
50696 (grub_vbe_get_display_start): Renamed from this...
50697 (grub_vbe_bios_get_display_start): ... to this.
50698 (grub_vbe_set_palette_data): Renamed from this...
50699 (grub_vbe_bios_set_palette_data): ... to this.
50700 (grub_vbe_set_pixel_rgb): Removed.
50701 (grub_vbe_set_pixel_index): Likewise.
50702
50703 * kern/i386/pc/startup.S (grub_vbe_get_controller_info): Renamed
50704 from this...
50705 (grub_vbe_bios_get_controller_info): ... to this.
50706 (grub_vbe_get_mode_info): Renamed from this...
50707 (grub_vbe_bios_get_mode_info): ... to this.
50708 (grub_vbe_set_mode): Renamed from this...
50709 (grub_vbe_bios_set_mode): ... to this.
50710 (grub_vbe_get_mode): Renamed from this...
50711 (grub_vbe_bios_get_mode): ... to this.
50712 (grub_vbe_set_memory_window): Renamed from this...
50713 (grub_vbe_bios_set_memory_window): ... to this.
50714 (grub_vbe_get_memory_window): Renamed from this...
50715 (grub_vbe_bios_get_memory_window): ... to this.
50716 (grub_vbe_set_scanline_length): Renamed from this...
50717 (grub_vbe_set_scanline_length): ... to this.
50718 (grub_vbe_get_scanline_length): Renamed from this...
50719 (grub_vbe_bios_get_scanline_length): ... to this.
50720 (grub_vbe_set_display_start): Renamed from this...
50721 (grub_vbe_bios_set_display_start): ... to this.
50722 (grub_vbe_get_display_start): Renamed from this...
50723 (grub_vbe_bios_get_display_start): ... to this.
50724 (grub_vbe_set_palette_data): Renamed from this...
50725 (grub_vbe_bios_set_palette_data): ... to this.
50726 (grub_vbe_bios_get_controller_info): Fixed problem with registers
50727 getting corrupted after calling it. Added more pushes and pops.
50728 (grub_vbe_bios_set_mode): Likewise.
50729 (grub_vbe_bios_get_mode): Likewise.
50730 (grub_vbe_bios_get_memory_window): Likewise.
50731 (grub_vbe_bios_set_scanline_length): Likewise.
50732 (grub_vbe_bios_get_scanline_length): Likewise.
50733 (grub_vbe_bios_get_display_start): Likewise.
50734 (grub_vbe_bios_set_palette_data): Likewise.
50735
50736 * normal/cmdline.c (cl_set_pos): Refresh the screen.
50737 (cl_insert): Likewise.
50738 (cl_delete): Likewise.
50739
50740 * term/gfxterm.c: New file.
50741
50742 * term/i386/pc/vesafb.c: Removed file.
50743
50744 * video/video.c: New file.
50745
50746 * video/i386/pc/vbe.c (real2pm): Added new function.
50747 (grub_video_vbe_draw_pixel): Likewise.
50748 (grub_video_vbe_get_video_ptr): Likewise.
50749 (grub_video_vbe_get_pixel): Likewise
50750 (grub_video_vbe_init): Likewise.
50751 (grub_video_vbe_fini): Likewise.
50752 (grub_video_vbe_setup): Likewise.
50753 (grub_video_vbe_get_info): Likewise.
50754 (grub_video_vbe_set_palette): Likewise.
50755 (grub_video_vbe_get_palette): Likewise.
50756 (grub_video_vbe_set_viewport): Likewise.
50757 (grub_video_vbe_get_viewport): Likewise.
50758 (grub_video_vbe_map_color): Likewise.
50759 (grub_video_vbe_map_rgb): Likewise.
50760 (grub_video_vbe_map_rgba): Likewise.
50761 (grub_video_vbe_unmap_color): Likewise.
50762 (grub_video_vbe_fill_rect): Likewise.
50763 (grub_video_vbe_blit_glyph): Likewise.
50764 (grub_video_vbe_blit_bitmap): Likewise.
50765 (grub_video_vbe_blit_render_target): Likewise.
50766 (grub_video_vbe_scroll): Likewise.
50767 (grub_video_vbe_swap_buffers): Likewise.
50768 (grub_video_vbe_create_render_target): Likewise.
50769 (grub_video_vbe_delete_render_target): Likewise.
50770 (grub_video_vbe_set_active_render_target): Likewise.
50771 (grub_vbe_set_pixel_rgb): Remove function.
50772 (grub_vbe_set_pixel_index): Likewise.
50773 (index_color_mode): Remove static variable.
50774 (active_mode): Likewise.
50775 (framebuffer): Likewise.
50776 (bytes_per_scan_line): Likewise.
50777 (grub_video_vbe_adapter): Added new static variable.
50778 (framebuffer): Likewise.
50779 (render_target): Likewise.
50780 (initial_mode): Likewise.
50781 (mode_in_use): Likewise.
50782 (mode_list): Likewise.
50783
5f97350b 507842006-03-10 Marco Gerards <marco@gnu.org>
50785
50786 * configure.ac (AC_INIT): Bumped to 1.93.
50787
50788 * DISTLIST: Added `include/grub/hfs.h'.
50789
a3c5c6f8 507902006-02-01 Yoshinori K. Okuji <okuji@enbug.org>
50791
50792 * boot/i386/pc/boot.S (general_error): Before looping, try INT
50793 18H, which might help the BIOS falling back to next boot media.
50794
6de53d26 507952006-01-25 Yoshinori K. Okuji <okuji@enbug.org>
50796
50797 * util/i386/pc/grub-install.in: Escape a backslash. Reported by
50798 Poe Chen <poe.poechen@gmail.com>.
50799
77c4a393 508002006-01-17 Marco Gerards <marco@gnu.org>
50801
50802 * include/grub/normal.h: Include <grub/script.h>.
50803 (grub_command_list): Removed struct.
50804 (grub_command_list_t): Removed type.
50805 (grub_menu_entry): Remove members `num' and `command_list'. Add
50806 members `commands' and `sourcecode'.
50807 * include/grub/script.h: Add inclusion guards.
50808 (grub_script_cmd_menuentry): New struct.
50809 (grub_script_execute_menuentry): New prototype.
50810 (grub_script_lexer_record_start): Likewise.
50811 (grub_script_lexer_record_stop): Likewise.
50812 * normal/execute.c (grub_script_execute_menuentry): New function.
50813 * normal/lexer.c (record, recording, recordpos, recordlen): New
50814 variables.
50815 (grub_script_lexer_record_start): New function.
50816 (grub_script_lexer_record_stop): Likewise.
50817 (recordchar): Likewise.
50818 (nextchar): Likewise.
50819 (grub_script_yylex): Use `nextchar' to fetch new characters. Use
50820 2048 as the buffer size. Add the tokens `menuentry' and `@'.
50821 * normal/main.c: Include <grub/parser.h> and <grub/script.h>
50822 (current_menu): New variable.
50823 (free_menu): Mainly rewritten.
50824 (grub_normal_menu_addentry): New function.
50825 (read_config_file): Rewritten.
50826 * normal/menu.c (run_menu_entry): Mainly rewritten.
fe987087 50827 * normal/menu_entry.c (make_screen): Rewritten the code to insert
77c4a393 50828 the menu entry.
50829 (run): Mainly rewritten.
50830 * normal/parser.y (menu_entry): New variable.
50831 (GRUB_PARSER_TOKEN_MENUENTRY): New token.
50832 (menuentry): New rule.
50833 (command): Add `menuentry'.
50834 (if_statement): Allow additional returns before `fi'.
50835 * normal/script.c (grub_script_create_cmdmenu): New function.
50836
144f1f98 508372006-01-03 Marco Gerards <marco@gnu.org>
50838
50839 * INSTALL: GNU Bison is required.
50840 * configure.ac: Rewritten the test to detect Bison.
50841 * Makefile.in (YACC): New variable. Reported by Xun Sun
50842 <xun.sun.cn@gmail.com>.
50843
af4b2d89 508442006-01-03 Marco Gerards <marco@gnu.org>
50845
50846 * fs/hfsplus.c (grub_hfsplus_read_block): Convert the offset of
50847 the HFS+ filesystem to filesystem blocks.
50848 (grub_hfsplus_iterate_dir): Cast the `fileinfo' assignment so a
50849 GCC warning is silenced.
50850
15643b71 508512006-01-03 Marco Gerards <marco@gnu.org>
50852
50853 * partmap/apple.c (apple_partition_map_iterate): Convert the data
50854 read from disk from big endian to host byte order.
50855
00905879 508562006-01-03 Hollis Blanchard <hollis@penguinppc.org>
50857
50858 * fs/hfs.c: Include <grub/hfs.h>. Added reference to the official
50859 documentation.
50860 (GRUB_HFS_EMBED_HFSPLUS_SIG): New macro.
50861 (grub_hfs_mount): Grammar fix in error. Make sure this is not an
50862 embedded HFS+ filesystem.
50863 (GRUB_HFS_MAGIC, grub_hfs_extent, grub_hfs_datarecord_t)
50864 (grub_hfs_sblock): Move from here...
50865 * include/grub/hfs.h: To here... New file.
50866 * fs/hfsplus.c: Include <grub/hfs.h>. Added reference to the official
50867 documentation.
50868 (GRUB_HFSPLUS_MAGIC, GRUB_HFSPLUSX_MAGIC, GRUB_HFSPLUS_SBLOCK):
50869 New macros.
50870 (grub_hfsplus_volheader): Change type of member `magic' to
50871 `grub_uint16_t'.
50872 (grub_hfsplus_data): Add new member `embedded_offset'.
50873 (grub_hfsplus_read_block): Add the HFS+ wrapper offset to the
50874 returned block.
50875 (grub_hfsplus_mount): Read the HFS+ wrapper if it exists.
50876 Calculate the offset.
50877
8899bc3e 508782005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
50879
50880 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRP_ADDR):
50881 Removed.
50882 (GRUB_BOOT_MACHINE_DRP_SIZE): Likewise.
50883
ae8c0277 508842005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
50885
50886 * kern/env.c (grub_env_set): Check if ENV->VALUE instead of
50887 ENV->NAME is NULL after allocating ENV->VALUE.
50888
07084456 508892005-12-25 Marco Gerards <marco@gnu.org>
50890
50891 * kern/env.c (grub_env_set): Rewritten the error handling code.
50892
4750f5f1 508932005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
50894
50895 * geninit.sh: Made more robust, and more portable.
50896
50214199 508972005-12-25 Marco Gerards <marco@gnu.org>
50898
50899 Add support for Apple HFS+ filesystems.
f19dbdb7 50900
50214199 50901 * fs/hfsplus.c: New file.
50902
50903 * DISTLIST: Added `fs/hfsplus.c'.
50904
50905 * conf/common.rmk (pkgdata_MODULES): Add `hfsplus.mod'.
50906 (hfsplus_mod_SOURCES): New variable.
50907 (hfsplus_mod_CFLAGS): Likewise.
50908 (hfsplus_mod_LDFLAGS): Likewise.
50909 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/hfsplus.c'.
50910 (grub_setup_SOURCES): Likewise.
50911 (grub_mkdevicemap_SOURCES): Likewise.
50912 (grub_emu_SOURCES): Likewise.
50913 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
50914
50915 * fs/fshelp.c (grub_fshelp_log2blksize): New function.
50916
50917 * include/grub/fshelp.h (grub_fshelp_log2blksize): new prototype.
50918
befaed6c 509192005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
50920
50921 * DISTLIST: Added geninitheader.sh, geninit.sh, commands/test.c,
50922 commands/i386/pc/play.c, conf/common.mk, conf/common.rmk,
50923 include/grub/parser.h, include/grub/script.h, kern/parser.c,
50924 kern/sparc64/cache.S, normal/execute.c, normal/function.c,
50925 normal/lexer.c, normal/parser.y, normal/script.c, and
50926 partmap/gpt.c.
50927 Removed kern/sparc64/cache.c.
50928
50929 * conf/common.rmk (DISTCLEANFILES): Added grub_script.tab.c,
50930 grub_script.tab.h, grub_modules_init.lst, grub_modules_init.h,
50931 grub_emu_init.c.
50932
50933 * configure.ac (AC_INIT): Bumped to 1.92.
50934
6a124103 509352005-12-24 Vesa Jaaskelainen <chaac@nic.fi>
50936
50937 * kern/err.c (grub_error_push): Added new function to support error
50938 stacks.
50939 (grub_error_pop): Likewise.
50940 (grub_error_stack_items): New local variable to support error stacks.
50941 (grub_error_stack_pos): Likewise.
50942 (grub_error_stack_assert): Likewise.
50943 (GRUB_ERROR_STACK_SIZE): Added new define to configure maximum error
50944 stack depth.
50945 (grub_print_error): Added support to print errors from error stack.
50946
50947 * include/grub/err.h (grub_error_push): Added function prototype.
50948 (grub_error_pop): Likewise.
50949
be973c1b 509502005-12-09 Hollis Blanchard <hollis@penguinppc.org>
50951
50952 * configure.ac: Accept `powerpc64' as host_cpu.
50953 (amd64): Rename to `biarch32'.
50954
50955 * kern/powerpc/cache.S (grub_arch_sync_caches): Handle
50956 non-cacheline-aligned addresses.
50957
50958 * kern/dl.c (grub_dl_load_core): Add grub_dprintf messages.
50959 (grub_dl_flush_cache): Likewise. Only call `grub_arch_sync_caches'
50960 if `size' is non-zero.
50961
b04216ab 509622005-12-03 Marco Gerards <mgerards@xs4all.nl>
50963
50964 * conf/common.rmk (grub_modules_init.lst): Use `-printf "%P\n"'
50965 and `cd' to make sure the filename is not prefixed with a
50966 directory name.
50967 (pkgdata_MODULES): Add `gpt.mod'.
50968 (gpt_mod_SOURCES): New variable.
50969 (gpt_mod_CFLAGS): Likewise.
50970 (gpt_mod_LDFLAGS): Likewise.
50971
50972 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/gpt.c'.
50973
50974 * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_GPT_DISK):
50975 New macro.
50976
50977 * partmap/gpt.c: New file.
50978
50979 * partmap/pc.c (pc_partition_map_iterate): Don't continue when a
50980 GPT partition map is detected.
50981
41730ed9 509822005-12-03 Vincent Pelletier <subdino2004@yahoo.fr>
50983
50984 * commands/i386/pc/play.c: New file.
50985 * conf/i386-pc.rmk (pkgdata_MODULES): Added play.mod.
50986 (play_mod_SOURCES, play_mod_CFLAGS, play_mod_LDFLAGS): New
50987 macros.
f19dbdb7 50988
95dc3643 509892005-11-27 Marco Gerards <mgerards@xs4all.nl>
50990
50991 * include/grub/dl.h (GRUB_MOD_INIT): Use `__attribute__
50992 ((unused))' to silence gcc warning.
50993
1569ec51 509942005-11-26 Hollis Blanchard <hollis@penguinppc.org>
50995
50996 * configure.ac: Correct `AC_PROG_YACC' test.
50997
9abde152 509982005-11-22 Hollis Blanchard <hollis@penguinppc.org>
50999
51000 * util/powerpc/ieee1275/grub-install.in: Run the mount point
51001 check before installing files.
51002
44b83271 510032005-11-22 Mike Small <smallm@panix.com>
51004
51005 * util/powerpc/ieee1275/grub-install.in (grubdir): Fixed partition
51006 number regex so multidigit numbers are recognized correctly.
51007
510082005-11-22 Mike Small <smallm@panix.com>
51009
51010 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Add a
51011 debugging message before attempting to claim memory.
51012 (grub_rescue_cmd_initrd): Add a claim debugging message and try
51013 multiple addresses in case of failure.
51014
9c12956b 510152005-11-22 Hollis Blanchard <hollis@penguinppc.org>
51016
51017 * term/tparm.c (get_space): Remove empty `if' statement.
51018
51019 * fs/ufs.c (grub_ufs_find_file): Remove `grub_le_to_cpu32'.
51020
51021 * kern/parser.c (check_varstate): Rename `state' to 's'.
51022
aeaf81d9 510232005-11-22 Hollis Blanchard <hollis@penguinppc.org>
51024
51025 * partmap/acorn.c: Change `unsigned' to `unsigned int'. Move all
51026 variable definitions to the beginning of each function. Sort stack
51027 variables by size.
51028 (find): Rename to `acorn_partition_map_find'. Cast `grub_disk_read'
51029 `buf' argument to `char *'.
51030
79bbb63f 510312005-11-22 Hollis Blanchard <hollis@penguinppc.org>
51032
51033 * conf/powerpc-ieee1275.rmk: Include conf/common.mk.
51034 (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
fe6b695a 51035 minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
79bbb63f 51036 hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
51037 help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
51038 sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
51039 configfile.mod, search.mod, gzio.mod and test.mod.
51040 (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
51041 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
51042 (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
51043 (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
51044 (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
51045 (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
51046 (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
51047 (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
51048 (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
51049 (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
51050 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
51051 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
51052 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
51053 (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
51054 (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
51055 (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
51056 (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
51057 (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
51058 (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
51059 (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
51060 (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
51061 (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
51062 (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Removed.
51063
51064 * conf/common.mk (grub_modules_init.lst): Use `find' instead of
51065 `grep --include'.
51066 (pkgdata_MODULES): Add test.mod.
51067
233b1628 510682005-11-18 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
51069
51070 * genmk.rb: Fixed list rules moved to Makefile.in. Recognise
51071 appending to variables with "+=".
51072 (PModule): Use full pathname to generate *.lst filenames.
51073
51074 * Makefile.in: Fixed list rules moved from genmk.rb.
51075 (.DELETE_ON_ERROR): New special target.
51076 (RMKFILES): Add common.rmk and sparc64-ieee1275.rmk.
51077
51078 * conf/i386-pc.rmk: Include conf/common.mk.
51079 (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
fe6b695a 51080 minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
233b1628 51081 hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
51082 help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
51083 sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
51084 configfile.mod, search.mod, gzio.mod and test.mod.
51085 (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
51086 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
51087 (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
51088 (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
51089 (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
51090 (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
51091 (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
51092 (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
51093 (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
51094 (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
51095 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
51096 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
51097 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
51098 (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
51099 (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
51100 (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
51101 (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
51102 (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
51103 (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
51104 (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
51105 (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
51106 (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
51107 (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Move from
51108 here...
51109 * conf/common.rmk: ... to here. New file.
51110
51111 * conf/common.mk: New file.
51112
16f820c8 511132005-11-18 Yoshinori K. Okuji <okuji@enbug.org>
51114
51115 * conf/powerpc-ieee1275.rmk (grub_script.tab.h): Unified to ...
51116 (grub_script.tab.c): ... here.
51117
51118 * conf/sparc64-ieee1275.rmk (grub_script.tab.h): Unified to ...
51119 (grub_script.tab.c): ... here.
51120
51121 * conf/i386-pc.rmk (grub_script.tab.h): Unified to ...
51122 (grub_script.tab.c): ... here.
51123
51124 * normal/command.c (grub_command_find): Fixed a memory leak of
51125 MODULE_NAME. Reported by Mike Small <smallm@panix.com>.
51126
63ba1554 511272005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
51128
51129 * include/grub/symbol.h: (FUNCTION): Use double quotes instead of
51130 "@" which marks the start of a comment on ARM.
51131 (VARIABLE): Likewise.
51132
7f67dc13 511332005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
51134
79bbb63f 51135 Add support for Linux/ADFS partition tables.
7f67dc13 51136
51137 * partmap/acorn.c: New file.
51138
51139 * include/grub/acorn_filecore.h: Likewise.
51140
51141 * DISTLIST: Added `partmap/acorn.c' and
51142 `include/grub/acorn_filecore.h'.
f19dbdb7 51143
7f67dc13 51144 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
51145 `partmap/acorn.c'.
51146 (pkgdata_MODULES): Add `acorn.mod'.
51147 (acorn_mod_SOURCES): New variable.
51148 (acorn_mod_CFLAGS): Likewise.
51149
51150 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
51151 `partmap/acorn.c'.
51152 (pkgdata_MODULES): Add `acorn.mod'.
51153 (acorn_mod_SOURCES): New variable.
51154 (acorn_mod_CFLAGS): Likewise.
51155
51156 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/acorn.c'.
51157 (pkgdata_MODULES): Add `acorn.mod'.
51158 (acorn_mod_SOURCES): New variable.
51159 (acorn_mod_CFLAGS): Likewise.
51160 (acorn_mod_LDFLAGS): Likewise.
51161
51162 * include/types.h (grub_disk_addr_t): New typedef.
51163
6d099807 511642005-11-13 Marco Gerards <mgerards@xs4all.nl>
51165
51166 * geninit.sh: New file.
51167
51168 * geninitheader.sh: Likewise.
51169
51170 * commands/boot.c (grub_boot_init, grub_boot_fini): Removed.
51171 * commands/cat.c (grub_cat_init, grub_cat_fini): Likewise.
51172 * commands/cmp.c (grub_cmp_init, grub_cmp_fini): Likewise.
51173 * commands/configfile.c (grub_configfile_init)
51174 (grub_configfile_fini): Likewise.
51175 * commands/default.c (grub_default_init, grub_default_fini):
51176 Likewise.
51177 * commands/help.c (grub_help_init, grub_help_fini): Likewise.
51178 * commands/ls.c (grub_ls_init, grub_ls_fini): Likewise.
51179 * commands/search.c (grub_search_init, grub_search_fini): Likewise.
51180 * commands/terminal.c (grub_terminal_init, grub_terminal_fini):
51181 Likewise.
51182 * commands/test.c (grub_test_init, grub_test_fini): Likewise.
51183 * commands/timeout.c (grub_timeout_init, grub_timeout_fini):
51184 Likewise.
51185 * commands/i386/pc/halt.c (grub_halt_init, grub_halt_fini): Likewise.
fe6b695a 51186 * commands/ieee1275/halt.c (grub_halt_init, grub_halt_fini):
6d099807 51187 Likewise.
51188 * commands/i386/pc/reboot.c (grub_reboot_init, grub_reboot_fini):
51189 Likewise.
fe6b695a 51190 * commands/ieee1275/reboot.c (grub_reboot_init, grub_reboot_fini):
6d099807 51191 Likewise.
51192 * disk/loopback.c (grub_loop_init, grub_loop_fini): Likewise.
51193 * fs/affs.c (grub_affs_init, grub_affs_fini): Likewise.
51194 * fs/ext2.c (grub_ext2_init, grub_ext2_fini): Likewise.
51195 * fs/fat.c (grub_fat_init, grub_fat_fini): Likewise.
51196 * fs/hfs.c (grub_hfs_init, grub_hfs_fini): Likewise.
51197 * fs/iso9660.c (grub_iso9660_init, grub_iso9660_fini): Likewise.
51198 * fs/jfs.c (grub_jfs_init, grub_jfs_fini): Likewise.
51199 * fs/minix.c (grub_minix_init, grub_minix_fini): Likewise.
51200 * fs/sfs.c (grub_sfs_init, grub_sfs_fini): Likewise.
51201 * fs/ufs.c (grub_ufs_init, grub_ufs_fini): Likewise.
51202 * fs/xfs.c (grub_xfs_init, grub_xfs_fini): Likewise.
51203 * normal/main.c (grub_normal_init, grub_normal_fini): Likewise.
51204 * partmap/amiga.c (grub_amiga_partition_map_init)
51205 (grub_amiga_partition_map_fini): Likewise.
51206 * partmap/apple.c (grub_apple_partition_map_init)
51207 (grub_apple_partition_map_fini): Likewise.
51208 * partmap/pc.c (grub_pc_partition_map_init)
51209 (grub_pc_partition_map_fini): Likewise.
51210 * partmap/sun.c (grub_sun_partition_map_init,
51211 grub_sun_partition_map_fini): Likewise.
51212 * term/terminfo.c (grub_terminal_init, grub_terminal_fini):
51213 Likewise.
51214
51215 * util/grub-emu.c: Include <grub_modules_init.h>.
51216 (main): Don't initialize and de-initialize any modules directly,
51217 use `grub_init_all' and `grub_fini_all' instead.
51218
51219 * term/i386/pc/vesafb.c (grub_vesafb_init): Renamed to
51220 `grub_vesafb_mod_init'.
51221 (grub_vesafb_fini): Renamed to `grub_vesafb_mod_fini'. Updated
51222 all users.
51223 * term/i386/pc/vga.c (grub_vga_init): Renamed to
51224 `grub_vga_mod_init'. Updated all users.
51225 (grub_vga_fini): Renamed to `grub_vga_mod_fini'.
f19dbdb7 51226
6d099807 51227 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `grub_emu_init.c'.
51228 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c): New
51229 rules.
51230
51231 * include/grub/dl.h (GRUB_MOD_INIT): Add argument `name'.
51232 Generate a function to initialize the module in utilities.
51233 Updated all callers.
51234 (GRUB_MOD_FINI): Add argument `name'. Generate a function to
51235 initialize the module in utilities. Updated all callers.
51236
9046bcf0 512372005-11-09 Hollis Blanchard <hollis@penguinppc.org>
51238
51239 * term/ieee1275/ofconsole.c (grub_ofconsole_cls): Use both the ANSI
51240 escape sequence and a literal ^L to clear the screen.
51241
51242 * commands/ieee1275/suspend.c (grub_cmd_suspend): Clear the screen
51243 when returning from Open Firmware.
51244
d13ea639 512452005-11-09 Hollis Blanchard <hollis@penguinppc.org>
51246
51247 * term/ieee1275/ofconsole.c (grub_ofconsole_width): New variable.
51248 (grub_ofconsole_height): Likewise.
51249 (grub_ofconsole_putchar): If `grub_curr_x' exceeds console width,
51250 manually insert a '\n'.
51251 (grub_ofconsole_getwh): Set and return `grub_ofconsole_width' and
51252 `grub_ofconsole_height'. Return early if these are already set.
51253
a8fcf206 512542005-11-07 Vincent Pelletier <subdino2004@yahoo.fr>
51255
51256 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
51257 `commands/test.c', `fs/affs.c', `fs/sfs.c', `fs/xfs.c',
51258 `normal/execute.c', `normal/lexer.c', `io/gzio.c',
51259 `kern/parser.c', `grub_script.tab.c', `normal/function.c'
51260 and `normal/script.c'.
51261 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
51262 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
51263 (test_mod_SOURCES): New variable.
51264 (test_mod_CFLAGS): Likewise.
51265 (test_mod_LDFLAGS): Likewise.
51266 (pkgdata_MODULES): Add `test.mod'.
51267 (grub_script.tab.c): New rule.
51268 (grub_script.tab.h): Likewise.
51269
b6b32745 512702005-11-07 Marco Gerards <mgerards@xs4all.nl>
51271
51272 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
51273 `commands/test.c', `normal/execute.c', `normal/lexer.c',
51274 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
51275 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
51276 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
51277 (test_mod_SOURCES): New variable.
51278 (test_mod_CFLAGS): Likewise.
51279 (pkgdata_MODULES): Add `test.mod'.
51280 (grub_script.tab.c): New rule.
51281 (grub_script.tab.h): Likewise.
51282
daac212a 512832005-11-06 Marco Gerards <mgerards@xs4all.nl>
51284
51285 Add initial scripting support.
51286
51287 * commands/test.c: New file.
51288 * include/grub/script.h: Likewise.
51289 * normal/execute.c: Likewise.
51290 * normal/function.c: Likewise.
51291 * normal/lexer.c: Likewise.
51292 * normal/parser.y: Likewise.
51293 * normal/script.c: Likewise.
51294
51295 * configure.ac: Add `AC_PROG_YACC' test.
f19dbdb7 51296
daac212a 51297 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/test.c',
51298 `normal/execute.c', `normal/lexer.c', `grub_script.tab.c',
51299 `normal/function.c' and `normal/script.c'.
51300 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
51301 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
b6b32745 51302 (test_mod_SOURCES, test_mod_CFLAGS, test_mod_LDFLAGS): New
51303 variables.
daac212a 51304 (pkgdata_MODULES): Add `test.mod'.
51305 (grub_script.tab.c): New rule.
51306 (grub_script.tab.h): Likewise.
51307
51308 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TEST_FAILURE'.
51309
51310 * include/grub/normal.h (grub_test_init): New prototype.
51311 (grub_test_fini): Likewise.
f19dbdb7 51312
daac212a 51313 * normal/command.c: Include <grub/script.h>.
51314 (grub_command_execute): Rewritten.
f19dbdb7 51315
daac212a 51316 * util/grub-emu.c (main): Call `grub_test_init' and
51317 `grub_test_fini'.
51318
77500b2b 513192005-11-03 Hollis Blanchard <hollis@penguinppc.org>
51320
51321 * kern/powerpc/ieee1275/init.c (grub_get_rtc): Initialize `msecs'
51322 to 0.
51323 * term/ieee1275/ofconsole.c (grub_ofconsole_checkkey): Return -1 if
51324 there are no pending characters.
51325
e45deb9e 513262005-11-03 Hollis Blanchard <hollis@penguinppc.org>
51327
51328 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_get_devname): Use
51329 `grub_strndup' to drop device arguments. Replace unnecessary
51330 `grub_strndup' with `grub_strdup'.
51331
4ce32619 513322005-11-03 Hollis Blanchard <hollis@penguinppc.org>
51333
51334 * kern/term.c (grub_cls): Do not call grub_cur_term->cls() if the
51335 `debug' environment variable has been set.
51336
513372005-11-02 Hollis Blanchard <hollis@penguinppc.org>
f19dbdb7 51338
4ce32619 51339 * Makefile.in (install-local): Use $(DATA).
51340 (uninstall): Likewise.
51341 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Move grub-mkimage...
51342 (sbin_UTILITIES): ... to here.
51343 (sbin_SCRIPTS): New variable.
51344 (grub_install_SOURCES): New variable.
51345 * util/powerpc/ieee1275/grub-install.in: New file.
51346 * util/powerpc/ieee1275/grub-mkimage.c (kernel_path): Remove
51347 variable.
51348 (add_segments): Call `grub_util_get_path'.
51349
25fe6f03 513502005-10-28 Yoshinori K. Okuji <okuji@enbug.org>
51351
51352 From Timothy Baldwin:
51353 * commands/ls.c (grub_ls_list_files): Close FILE with
51354 grub_file_close.
51355 * kern/misc.c (grub_vsprintf): Terminate the string S with NUL.
51356
04ccf3ec 513572005-10-24 Marco Gerards <mgerards@xs4all.nl>
51358
51359 * include/grub/parser.h: New file.
51360
51361 * kern/parser.c: Likewise.
51362
51363 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/parser.c'.
51364 (grub_setup_SOURCES): Likewise.
51365 (grub_probefs_SOURCES): Likewise.
51366 (grub_emu_SOURCES): Likewise.
51367 (kernel_img_HEADERS): Add `parser.h'.
51368
51369 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
51370 (grub_emu_SOURCES): Add `kern/parser.c'.
51371 (grubof_SOURCES): Likewise.
51372
51373 * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
51374 (grubof_SOURCES): Add `kern/parser.c'.
51375
51376 * include/grub/misc.h (grub_split_cmdline): Removed prototype.
51377
51378 * kern/misc.c (grub_split_cmdline): Removed function.
51379
51380 * kern/rescue.c: Include <grub/parser.h>.
51381 (grub_enter_rescue_mode): Use `grub_parser_split_cmdline' instead
51382 of `grub_split_cmdline'.
51383
51384 * normal/command.c: Include <grub/parser.h>.
51385 (grub_command_execute): Use `grub_parser_split_cmdline' instead
51386 of `grub_split_cmdline'.
51387
51388 * normal/completion.c: Include <grub/parser.h>.
51389 (cmdline_state): New variable.
51390 (iterate_dir): End the filename with a quote depending on the
51391 command line state.
51392 (get_state): new function.
51393 (grub_normal_do_completion): Use `grub_parser_split_cmdline' to
51394 split the arguments and determine the current argument. When the
51395 argument string is not quoted, escape all spaces.
51396
6d8f4b0e 513972005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
51398
51399 * normal/sparc64/setjmp.S: New file.
51400
15cf03ed 514012005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
51402
51403 * include/grub/sparc64/libgcc.h: New file.
51404 * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Remove -Av9.
51405 (normal_mod_SOURCES): Use normal/sparc64/setjmp.S instead of
51406 normal/sparc64/setjmp.c.
51407
03e8661a 514082005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
51409
51410 * kern/sparc64/dl.c: Rewritten for SPARCV9 ELF.
51411 * kern/sparc64/cache.S: New file.
51412 * kern/sparc64/cache.c: Removed.
51413 * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Add -Av9.
51414 (COMMON_CFLAGS): Add -mno-app-regs. Remove -mcpu=v9 and
51415 -mtune=ultrasparc.
51416 (COMMON_LDFLAGS): Add -melf64_sparc.
51417 (grubof_HEADERS): Add sparc64/libgcc.h and machine/kernel.h.
51418 (grubof_SOURCES): Use cache.S instead of cache.c.
51419 (grubof_LDFLAGS): Add -mno-app-regs. Replace "-Xlinker
51420 --oformat -Xlinker elf64-sparc" by "-Bstatic,-melf64_sparc".
51421 (pkgdata_MODULES): Uncomment. Leave linux.mod and _linux.mod
51422 commented though.
51423 (normal_mod_SOURCES): Add normal/completion.c and normal/misc.c.
51424 (_linux_mod_SOURCES, _linux_mod_CFLAGS, linux_mod_SOURCES)
51425 (linux_mod_CFLAGS): Commented out.
51426 (_linux_mod_LDFLAGS, linux_mod_LDFLAGS): New macro, commented
51427 out because module isn't built.
51428 (fshelp_mod_LDFLAGS, fat_mod_LDFLAGS, ext2_mod_LDFLAGS)
51429 (ufs_mod_LDFLAGS, minix_mod_LDFLAGS, hfs_mod_LDFLAGS)
51430 (jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS, normal_mod_LDFLAGS)
51431 (hello_mod_LDFLAGS, boot_mod_LDFLAGS, terminal_mod_LDFLAGS)
51432 (ls_mod_LDFLAGS, cmp_mod_LDFLAGS, cat_mod_LDFLAGS)
51433 (font_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
51434 (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
51435 (suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS)
51436 (help_mod_LDFLAGS, default_mod_LDFLAGS, timeout_mod_LDFLAGS)
51437 (configfile_mod_LDFLAGS, search_mod_LDFLAGS, xfs_mod_SOURCES)
51438 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
51439 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
51440 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, gzio_mod_SOURCES)
51441 (gzio_mod_CFLAGS, gzio_mod_LDFLAGS): New macro.
51442
34eeec8a 514432005-10-20 Yoshinori K. Okuji <okuji@enbug.org>
51444
51445 * util/i386/pc/grub-probefs.c (main): Call grub_xfs_init and
51446 grub_xfs_fini. Do not call grub_hfs_init or grub_hfs_fini any
51447 longer, because HFS should not be used on PC.
51448
708367a3 514492005-10-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
51450
51451 * io/gzio.c (grub_gzio_read): Use OFFSET instead of FILE->OFFSET
51452 consistently within the loop.
51453
6fa1251a 514542005-10-15 Marco Gerards <mgerards@xs4all.nl>
51455
51456 * fs/xfs.c (grub_xfs_iterate_dir): Detect an error if part of a
51457 directory can not be read.
51458
4801580b 514592005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
51460
51461 * configure.ac (AC_INIT): Increase the version number to 1.91.
51462
51463 * DISTLIST: Added include/grub/terminfo.h, include/grub/tparm.h,
51464 include/grub/i386/pc/serial.h, term/terminfo.c, term/tparm.c and
51465 term/i386/pc/serial.c.
51466
219ad426 514672005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
51468
51469 * kern/file.c (grub_file_seek): Seeking to an offset equal to a
51470 file size must be permitted.
51471
51472 * kern/i386/pc/startup.S (multiboot_trampoline): Fix a mistake
51473 between %ah and %al.
51474
688e5699 514752005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
51476
51477 * fs/xfs.c (grub_xfs_iterate_dir): Change the type of BLK to
51478 grub_uint64_t.
51479 Call the hook with a NUL-terminated filename.
51480 (grub_xfs_mount): Use grub_be_to_cpu32 instead of
51481 grub_cpu_to_be32.
51482
51483 * kern/term.c (cursor_state): New variable.
51484 (grub_term_set_current): Reset the cursor state on a new
51485 terminal.
51486 (grub_setcursor): Rewritten to use CURSOR_STATE.
51487 (grub_getcursor): New function.
51488
51489 * include/grub/term.h (grub_getcursor): New prototype.
51490
51491 * io/gzio.c (test_header): Align BUF for accessing it as 32-bit
51492 integers on ARM. Reported by Timothy Baldwin
51493 <T.E.Baldwin99@members.leeds.ac.uk>.
51494
bb34586c 514952005-10-11 Marco Gerards <mgerards@xs4all.nl>
51496
51497 * fs/sfs.c (grub_sfs_open): Don't free `data->label' if it is not
51498 allocated.
51499 (grub_sfs_dir): Likewise.
51500
9a909877 515012005-10-09 Marco Gerards <mgerards@xs4all.nl>
51502
51503 Add support for the SFS filesystem.
51504
51505 * fs/sfs.c: New file.
51506
51507 * DISTLIST: Added `fs/sfs.c'.
51508
51509 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/sfs.c'.
51510 (grub_probefs_SOURCES): Likewise.
51511 (grub_emu_SOURCES): Likewise.
51512 (pkgdata_MODULES): Add `sfs.mod'.
51513 (sfs_mod_SOURCES): New variable.
51514 (sfs_mod_CFLAGS): Likewise.
51515 (sfs_mod_LDFLAGS): Likewise.
51516
51517 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/sfs.c'.
51518 (pkgdata_MODULES): Add `sfs.mod'.
51519 (sfs_mod_SOURCES): New variable.
51520 (sfs_mod_CFLAGS): Likewise.
51521
51522 * util/grub-emu.c (main): Call `grub_sfs_init' and
51523 `grub_sfs_fini'.
51524
51525 * include/grub/fs.h (grub_sfs_init): New prototype.
51526 (grub_sfs_fini): Likewise.
51527
57bdbde3 515282005-10-07 Marco Gerards <mgerards@xs4all.nl>
51529
51530 Add support for the AFFS filesystem.
51531
51532 * fs/affs.c: New file.
51533
51534 * DISTLIST: Added `fs/affs.c'.
51535
51536 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/affs.c'.
51537 (grub_probefs_SOURCES): Likewise.
51538 (grub_emu_SOURCES): Likewise.
51539 (pkgdata_MODULES): Add `affs.mod'.
51540 (affs_mod_SOURCES): New variable.
51541 (affs_mod_CFLAGS): Likewise.
51542 (affs_mod_LDFLAGS): Likewise.
51543
51544 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/affs.c'.
51545 (pkgdata_MODULES): Add `affs.mod'.
51546 (affs_mod_SOURCES): New variable.
51547 (affs_mod_CFLAGS): Likewise.
51548
51549 * util/grub-emu.c (main): Call `grub_affs_init' and
51550 `grub_affs_fini'.
51551
51552 * include/grub/fs.h (grub_affs_init): New prototype.
51553 (grub_affs_fini): Likewise.
51554
047b67e0 515552005-10-01 Marco Gerards <mgerards@xs4all.nl>
51556
51557 * fs/xfs.c (grub_xfs_iterate_dir): Add parentheses.
51558
59b8208a 515592005-10-01 Marco Gerards <mgerards@xs4all.nl>
51560
51561 * configure.ac: Accept `x86_64' as host_cpu. In that case add
51562 `-m32' to CFLAGS.
51563
51564 * genmk.rb (class PModule): Always use `$(#{prefix}_LDFLAGS)' when
51565 linking.
f19dbdb7 51566
59b8208a 51567 * conf/i386-pc.rmk (COMMON_CFLAGS): Add `-m32'.
51568 (COMMON_LDFLAGS): New variable.
51569 (kernel_img_LDFLAGS): Include `COMMON_FLAGS'.
51570 (_chain_mod_LDFLAGS, fshelp_mod_LDFLAGS, fat_mod_LDFLAGS)
51571 (ext2_mod_LDFLAGS, ufs_mod_LDFLAGS, minix_mod_LDFLAGS)
51572 (hfs_mod_LDFLAGS, jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS)
51573 (xfs_mod_LDFLAGS, _linux_mod_LDFLAGS, linux_mod_LDFLAGS)
51574 (normal_mod_LDFLAGS, hello_mod_LDFLAGS, boot_mod_LDFLAGS)
51575 (terminal_mod_LDFLAGS, ls_mod_LDFLAGS, cmp_mod_LDFLAGS)
51576 (cat_mod_LDFLAGS, help_mod_LDFLAGS, reboot_mod_LDFLAGS)
51577 (halt_mod_LDFLAGS, vga_mod_LDFLAGS, font_mod_LDFLAGS)
51578 (terminfo_mod_LDFLAGS, serial_mod_LDFLAGS, _multiboot_mod_LDFLAGS)
51579 (multiboot_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
51580 (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
51581 (default_mod_LDFLAGS, timeout_mod_LDFLAGS, configfile_mod_LDFLAGS)
51582 (vbe_mod_LDFLAGS, vesafb_mod_LDFLAGS, vbeinfo_mod_LDFLAGS)
51583 (vbetest_mod_LDFLAGS, search_mod_LDFLAGS, gzio_mod_LDFLAGS): New
51584 variables.
51585 (normal_mod_ASFLAGS): Add `-m32'.
51586
51587 * include/grub/types.h (grub_host_addr_t, grub_host_off_t)
51588 (grub_host_size_t, grub_host_ssize_t): New types.
51589 (grub_addr_t, grub_off_t, grub_size_t, grub_ssize_t): Make type
fe6b695a 51590 dependent of `GRUB_CPU_SIZEOF_VOID_P' instead on
59b8208a 51591 `GRUB_HOST_SIZEOF_VOID_P'.
51592
51593 * include/grub/kernel.h (struct grub_module_header): Type of
51594 member offset changed to `grub_host_off_t'. Type of member size
51595 changed to `grub_host_size_t'.
51596 (struct grub_module_info): Type of member offset changed to
51597 `grub_host_off_t'. Type of member size changed to
51598 `grub_host_size_t'.
51599
b4093103 516002005-09-29 Yoshinori K. Okuji <okuji@enbug.org>
51601
51602 Make GRUB's kernel compliant to Multiboot Specification.
f19dbdb7 51603
b4093103 51604 * kern/i386/pc/startup.S (multiboot_header): New label.
51605 (multiboot_entry): Likewise.
51606 (multiboot_trampoline): Likewise.
51607
51608 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
51609 Increased to 0x4A0.
51610
51611 * fs/xfs.c (grub_xfs_iterate_dir): Fix a syntax error. You may not
51612 put parentheses after a question mark.
51613 [!GRUB_UTIL] (my_mod): New variable.
51614
51615 * util/grub-emu.c (main): Call grub_xfs_init and grub_xfs_fini.
51616
b2499b29 516172005-09-28 Marco Gerards <mgerards@xs4all.nl>
51618
51619 Adds support for the XFS filesystem. Btrees are not supported
51620 yet.
51621
51622 * fs/xfs.c: New file.
51623
51624 * DISTLIST: Added `fs/xfs.c'.
51625
51626 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/xfs.c'.
51627 (grub_probefs_SOURCES): Likewise.
51628 (grub_emu_SOURCES): Likewise.
51629 (pkgdata_MODULES): Add `xfs.mod'.
51630 (xfs_mod_SOURCES): New variable.
51631 (xfs_mod_CFLAGS): Likewise.
51632
51633 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/xfs.c'.
51634 (pkgdata_MODULES): Add `xfs.mod'.
51635 (xfs_mod_SOURCES): New variable.
51636 (xfs_mod_CFLAGS): Likewise.
51637
51638 * util/grub-emu.c (main): Call `grub_xfs_init' and
51639 `grub_xfs_fini'.
51640
51641 * include/grub/fs.h (grub_xfs_init): New prototype.
51642 (grub_xfs_fini): Likewise.
51643
f19dbdb7 51644
83d37a62 516452005-09-18 Vesa Jaaskelainen <chaac@nic.fi>
51646
51647 * video/i386/pc/vbe.c (grub_vbe_set_video_mode): In indexed
51648 color modes, allow greater than 16 colors to be configured as
51649 a default palette.
51650
47d2d65e 516512005-09-03 Yoshinori K. Okuji <okuji@enbug.org>
51652
51653 * normal/completion.c (complete_arguments): Add the qualifier
51654 const into OPTIONS.
51655
51656 From Omniflux <omniflux+lists@omniflux.com>:
51657 * include/grub/terminfo.h: New file.
51658 * include/grub/tparm.h: Likewise.
51659 * include/grub/i386/pc/serial.h: Likewise.
51660 * term/terminfo.c: Likewise.
51661 * term/tparm.c: Likewise.
51662 * term/i386/pc/serial.c: Likewise.
51663 * conf/i386-pc.rmk (pkgdata_MODULES): Added terminfo.mod and
51664 serial.mod.
51665 (terminfo_mod_SOURCES): New variable.
51666 (terminfo_mod_CFLAGS): Likewise.
51667 (serial_mod_SOURCES): Likewise.
51668 (serial_mod_CFLAGS): Likewise.
51669
48b671ff 516702005-08-31 Yoshinori K. Okuji <okuji@enbug.org>
51671
51672 * DISTLIST: Replaced boot/powerpc/ieee1275/crt0.S and
51673 boot/powerpc/ieee1275/cmain.c with kern/powerpc/ieee1275/crt0.S
51674 and kern/powerpc/ieee1275/cmain.c, respectively.
51675
51676 * boot/powerpc/ieee1275/crt0.S: Moved to ...
51677 * kern/powerpc/ieee1275/crt0.S: ... here.
51678
51679 * boot/powerpc/ieee1275/cmain.c: Moved to ...
51680 * kern/powerpc/ieee1275/cmain.c: ... here.
f19dbdb7 51681
48b671ff 51682 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Use
51683 kern/powerpc/ieee1275/crt0.S and kern/powerpc/ieee1275/cmain.c
51684 instead of boot/powerpc/ieee1275/crt0.S and
51685 boot/powerpc/ieee1275/cmain.c, respectively.
51686
51687 * boot/i386/pc/boot.S (lba_mode): Do not store the total number of
51688 sectors. It was not used anyway.
51689
09fc77a7 516902005-08-30 Hollis Blanchard <hollis@penguinppc.org>
51691
51692 * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): Fix
51693 `unused parameter' warning.
51694
003789c7 516952005-08-30 Hollis Blanchard <hollis@penguinppc.org>
51696
51697 * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): New
51698 function.
51699 (grub_ofconsole_term): Specify grub_ofconsole_getcharwidth as
51700 getcharwidth.
51701
67f44c86 517022005-08-28 Marco Gerards <metgerards@student.han.nl>
51703
51704 * include/grub/normal.h (enum grub_completion_type): Added
51705 `GRUB_COMPLETION_TYPE_ARGUMENT'.
51706
51707 * normal/cmdline.c (print_completion): Handle
51708 the `GRUB_COMPLETION_TYPE_ARGUMENT' type.
51709 * normal/menu_entry.c (store_completion): Likewise.
51710
51711 * normal/completion.c (complete_arguments): New function.
51712 (grub_normal_do_completion): Call `complete_arguments' when the
51713 current words start with a dash.
51714
0b5abe02 517152005-08-27 Marco Gerards <metgerards@student.han.nl>
51716
51717 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Fix typo (use
51718 `gzio.mod' instead of `io.mod').
51719
d9864ee1 517202005-08-22 Yoshinori K. Okuji <okuji@enbug.org>
51721
51722 * gendistlist.sh (EXTRA_DISTFILES): Added genfslist.sh.
51723 (DISTDIRS): Added io and video.
51724 Rewrite the search routine to make an output consistently.
51725
51726 * DISTLIST: Added conf/sparc64-ieee1275.mk,
51727 conf/sparc64-ieee1275.rmk, include/grub/gzio.h,
51728 include/grub/ieee1275/ieee1275.h, include/grub/ieee1275/ofdisk.h,
51729 io/gzio.c, kern/sparc64/cache.c, kern/sparc64/dl.c,
51730 kern/sparc64/ieee1275/init.c, kern/sparc64/ieee1275/openfw.c and
51731 util/powerpc/ieee1275/misc.c.
f19dbdb7 51732
d9864ee1 51733 * include/grub/gzio.h: New file.
51734 * io/gzio.c: Likewise.
f19dbdb7 51735
d9864ee1 51736 * kern/file.c (grub_file_close): Call grub_device_close only if
51737 FILE->DEVICE is not NULL.
51738
51739 * include/grub/mm.h [!NULL] (NULL): New macro.
51740
51741 * include/grub/err.h (GRUB_ERR_BAD_GZIP_DATA): New constant.
51742
51743 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added io/gzip.c.
51744 (pkgdata_MODULES): Added gzio.mod.
51745 (gzio_mod_SOURCES): New variable.
51746 (gzio_mod_CFLAGS): Likewise.
51747
51748 * conf/i386-pc.rmk (grub_emu_SOURCES): Added io/gzip.c.
51749 (pkgdata_MODULES): Added gzio.mod.
51750 (gzio_mod_SOURCES): New variable.
51751 (gzio_mod_CFLAGS): Likewise.
51752
51753 * commands/cat.c: Include grub/gzio.h.
51754 (grub_cmd_cat): Use grub_gzfile_open instead of
51755 grub_file_open.
f19dbdb7 51756
d9864ee1 51757 * commands/cmp.c: Include grub/gzio.h.
51758 (grub_cmd_cmp): Use grub_gzfile_open instead of
51759 grub_file_open.
51760
51761 * loader/i386/pc/multiboot.c: Include grub/gzio.h.
51762 (grub_rescue_cmd_multiboot): Use grub_gzfile_open instead of
51763 grub_file_open.
51764 (grub_rescue_cmd_module): Likewise.
51765
fa46f4b5 517662005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
51767
51768 * conf/sparc64-ieee1275.rmk (grubof_SOURCES): The first file must be
51769 kern/sparc64/ieee1275/init.c because it contains _start.
51770 * conf/sparc64-ieee1275.mk: Generated from conf/sparc64-ieee1275.rmk.
51771
e9211b5d 517722005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
51773
51774 * configure.ac: Add support for sparc64 host with ieee1275
51775 firmware.
51776 * configure: Generated from configure.ac.
51777 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Use grub_ssize_t
51778 instead of int.
51779 (grub_ofdisk_read): Likewise.
51780 (grub_ofdisk_open): Use %p to print pointer values, and cast the
51781 pointers as (void *) to remove a warning.
51782 (grub_ofdisk_close): Likewise.
51783 (grub_ofdisk_read): Likewise.
51784 * kern/ieee1275/ieee1275.c (grub_ieee1275_exit): This never
51785 returns, so make it return void to remove a warning.
51786 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_exit):
51787 Corresponding prototype change.
51788 * kern/mm.c (grub_mm_init_region): Use %p to print pointer
51789 values, and cast the pointers as (void *) to remove a warning.
51790 (grub_mm_dump): Likewise.
51791 * conf/sparc64-ieee1275.mk: New file.
51792 * conf/sparc64-ieee1275.rmk: Likewise.
51793 * include/grub/sparc64/setjmp.h: Likewise.
51794 * include/grub/sparc64/types.h: Likewise.
51795 * include/grub/sparc64/ieee1275/console.h: Likewise.
51796 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
51797 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
51798 * include/grub/sparc64/ieee1275/time.h: Likewise.
51799 * kern/sparc64/cache.c: Likewise.
51800 * kern/sparc64/dl.c: Likewise.
51801 * kern/sparc64/ieee1275/init.c: Likewise.
51802 * kern/sparc64/ieee1275/openfw.c: Likewise.
51803
385c6a92 518042005-08-21 Yoshinori K. Okuji <okuji@enbug.org>
51805
51806 * util/console.c (grub_ncurses_putchar): If C is greater than
51807 0x7f, set C to a question mark.
51808 (grub_ncurses_getcharwidth): New function.
51809 (grub_ncurses_term): Specify grub_ncurses_getcharwidth as
51810 getcharwidth.
51811
51812 * normal/menu.c (print_entry): Made aware of Unicode. First,
51813 convert TITLE to UCS-4, and predict the cursor position by
51814 grub_getcharwidth.
51815
51816 * include/grub/misc.h (grub_utf8_to_ucs4): Specify the qualifier
51817 const to SRC.
51818 * kern/misc.c (grub_utf16_to_utf8): Likewise.
51819
16ccb8b1 518202005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
51821
51822 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Specify
51823 the boot file by the option BOOT_IMAGE. Use grub_stpcpy instead of
51824 grub_strcat.
51825
51826 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Specify the boot
51827 file by the option BOOT_IMAGE. Use grub_stpcpy instead of
51828 grub_strcpy and grub_strlen. Take it into account that a space
51829 character is inserted as a delimiter.
51830
6a85ce79 518312005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
51832
51833 * partmap/pc.c (pc_partition_map_iterate): Include the value of an
fe6b695a 51834 invalid magic in the error.
6a85ce79 51835
51836 * commands/search.c: New file.
f19dbdb7 51837
6a85ce79 51838 * util/grub-emu.c (main): Call grub_search_init and
51839 grub_search_fini.
51840
51841 * kern/rescue.c (grub_rescue_print_disks): Removed.
51842 (grub_rescue_print_devices): New function.
51843 (grub_rescue_cmd_ls): Use grub_device_iterate with
51844 grub_rescue_print_devices instead of grub_disk_dev_iterate with
51845 grub_rescue_print_disks.
51846
51847 * kern/partition.c (grub_partition_iterate): Return the result of
51848 PARTMAP->ITERATE instead of GRUB_ERRNO.
51849
51850 * kern/device.c: Include grub/partition.h.
51851 (grub_device_iterate): New function.
51852
51853 * include/grub/partition.h (grub_partition_iterate): Return int
51854 instead of grub_err_t.
51855
51856 * include/grub/normal.h [GRUB_UTIL] (grub_search_init): New
51857 prototype.
51858 [GRUB_UTIL] (grub_search_fini): Likewise.
51859
51860 * include/grub/device.h (grub_device_iterate): New prototype.
51861
51862 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
51863 commands/search.c.
51864 (pkgdata_MODULES): Added search.mod.
51865 (search_mod_SOURCES): New variable.
51866 (search_mod_CFLAGS): Likewise.
51867
51868 * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/search.c.
51869 (pkgdata_MODULES): Added search.mod.
51870 (search_mod_SOURCES): New variable.
51871 (search_mod_CFLAGS): Likewise.
51872
51873 * commands/ls.c (grub_ls_list_disks): Renamed to ...
51874 (grub_ls_list_devices): ... this, and use grub_device_iterate.
51875 All callers changed.
51876
51877 * DISTLIST: Added commands/search.c.
51878
ef095434 518792005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
51880
51881 * kern/term.c (grub_putchar): Use grub_utf8_to_ucs4 for the
51882 conversion.
51883 (grub_getcharwidth): New function.
51884
51885 * kern/misc.c (grub_utf8_to_ucs4): New function.
51886
51887 * include/grub/term.h (struct grub_term): Added a new member
51888 "getcharwidth".
51889 (grub_getcharwidth): New prototype.
51890
51891 * include/grub/misc.h (grub_utf8_to_ucs4): New prototype.
51892
51893 * term/i386/pc/console.c (map_char): New function. Segregated from
51894 grub_console_putchar.
51895 (grub_console_putchar): Use map_char.
51896 (grub_console_getcharwidth): New function.
51897 (grub_console_term): Specified grub_console_getcharwidth as
51898 getcharwidth.
51899
51900 * term/i386/pc/vga.c (grub_vga_getcharwidth): New function.
51901 (grub_vga_term): Specified grub_vga_getcharwidth as getcharwidth.
51902
51903 * term/i386/pc/vesafb.c (grub_virtual_screen_setup): Return
51904 GRUB_ERRNO.
51905 (grub_vesafb_init): Do not use RC. Instead, use GRUB_ERRNO. Rely
51906 on grub_strtoul completely.
51907 (write_char): Declare local variables in the beginning of the
51908 function.
51909 (grub_vesafb_getcharwidth): New function.
51910 (grub_vesafb_term): Specified grub_vesafb_getcharwidth as
51911 getcharwidth.
51912
1f0a95e4 519132005-08-19 Yoshinori K. Okuji <okuji@enbug.org>
51914
51915 * DISTLIST: Replace commands/i386/pc/vbe_list_modes.c and
51916 commands/i386/pc/vbe_test.c with commands/i386/pc/vbeinfo.c and
51917 commands/i386/pc/vbetest.c.
51918
51919 * video/i386/pc/vbe.c (grub_vbe_probe): If INFOBLOCK is not NULL,
51920 call grub_vbe_get_controller_info again, because the returned
51921 information is volatile.
51922 (grub_vbe_set_video_mode): Mostly rewritten.
51923 (grub_vbe_get_video_mode): Use grub_vbe_probe and use
51924 grub_vbe_status_t correctly.
51925 (grub_vbe_get_video_mode_info): Likewise.
51926 (grub_vbe_set_pixel_rgb): Use a switch statement rather than
51927 several if statements.
51928
51929 * commands/i386/pc/vbe_list_modes.c: Renamed to ...
51930 * commands/i386/pc/vbeinfo.c: ... this.
51931
51932 * commands/i386/pc/vbe_test.c: Renamed to ...
51933 * commands/i386/pc/vbetest.c: ... this.
51934
51935 * commands/i386/pc/vbeinfo.c (grub_cmd_vbe_list_modes): Renamed to
51936 ...
51937 (grub_cmd_vbeinfo): ... this. Save video modes before
51938 iterating. Skip a video mode, if it is not available, not enough
51939 information is given or it is monochrome. Show the memory
51940 model. Leave the interpretation of MODEVAR to grub_strtoul
51941 completely.
51942 (GRUB_MOD_INIT): Rename vbe_list_modes to vbeinfo.
51943 (GRUB_MOD_FINI): Likewise.
51944
51945 * commands/i386/pc/vbetest.c (grub_cmd_vbe_test): Renamed to ...
51946 (grub_cmd_vbetest): ... this. Don't print unnecessarily. Use
51947 grub_err_t instead of grub_uint32_t. Don't use SPTR. Remove a
51948 duplicated grub_env_get. Leave the interpretation of MODEVAR to
51949 grub_strtoul completely.
51950 (real2pm): Removed.
51951 (GRUB_MOD_INIT): Rename vbe_test to vbetest.
51952 (GRUB_MOD_FINI): Likewise.
51953
51954 * normal/misc.c: Include grub/mm.h.
51955
51956 * conf/i386-pc.rmk (pkgdata_MODULES): Replaced vbe_test.mod and
51957 vbe_list_modes with vbetest.mod and vbeinfo.mod.
51958 (vbe_list_modes_mod_SOURCES): Removed.
51959 (vbe_list_modes_mod_CFLAGS): Likewise.
51960 (vbe_test_mod_SOURCES): Likewise.
51961 (vbe_test_mod_CFLAGS): Likewise.
51962 (vbeinfo_mod_SOURCES): New variable.
51963 (vbeinfo_mod_CFLAGS): Likewise.
51964 (vbetest_mod_SOURCES): Likewise.
51965 (vbetest_mod_CFLAGS): Likewise.
51966
992ffbbe 519672005-08-18 Yoshinori K. Okuji <okuji@enbug.org>
51968
51969 * normal/misc.c: New file.
51970
51971 * DISTLIST: Added normal/misc.c.
f19dbdb7 51972
992ffbbe 51973 * partmap/amiga.c (amiga_partition_map_iterate): Add an argument
51974 DISK to HOOK. Call HOOK with DISK.
51975 * partmap/apple.c (apple_partition_map_iterate): Likewise.
51976 * partmap/pc.c (pc_partition_map_iterate): Likewise.
51977 * partmap/sun.c (sun_partition_map_iterate): Likewise.
51978
51979 * normal/menu_entry.c (struct screen): Added a new member
51980 "completion_shown".
51981 (completion_buffer): New global variable.
51982 (make_screen): Set SCREEN->COMPLETION_SHOWN to zero.
51983 (store_completion): New function.
51984 (complete): Likewise.
51985 (clear_completions): Likewise.
51986 (grub_menu_entry_run): If SCREEN->COMPLETION_SHOWN is non-zero,
51987 call clear_completions and reset SCREEN->COMPLETION_SHOWN. If C is
51988 a tab, call complete.
51989
51990 * normal/completion.c (disk_dev): Removed.
51991 (print_simple_completion): Likewise.
51992 (print_partition_completion): Likewise.
51993 (print_func): New global variable.
51994 (add_completion): Do not take the arguments WHAT or PRINT any
51995 longer. Added a new argument TYPE. Instead of printing directly,
51996 call PRINT_FUNC if not NULL.
51997 All callers changed.
51998 (complete_device): Use a local variable DEV instead of
51999 DISK_DEV. Do not move CURRENT_WORD to the end of a device name.
52000 (grub_normal_do_completion): Take a new argument HOOK. Do not
52001 initialize DISK_DEV. Initialize PRINT_FUNC to HOOK. If RET is an
52002 empty string, return NULL instead.
52003 All callers changed.
52004
52005 * normal/cmdline.c (print_completion): New function.
52006
52007 * kern/partition.c (grub_partition_iterate): Add an argument DISK
52008 to HOOK.
52009 All callers changed.
52010
52011 * kern/disk.c (grub_print_partinfo): Removed.
52012
52013 * include/grub/partition.h (struct grub_partition_map): Add a new
52014 argument DISK into HOOK of ITERATE.
52015 (grub_partition_iterate): Add a new argument DISK to HOOK.
52016
52017 * include/grub/normal.h (enum grub_completion_type): New enum.
52018 (grub_completion_type_t): New type.
52019 (GRUB_COMPLETION_TYPE_COMMAND): New constant.
52020 (GRUB_COMPLETION_TYPE_DEVICE): Likewise.
52021 (GRUB_COMPLETION_TYPE_PARTITION): Likewise.
52022 (GRUB_COMPLETION_TYPE_FILE): Likewise.
52023 (grub_normal_do_completion): Added a new argument HOOK.
52024 (grub_normal_print_device_info): New prototype.
52025
52026 * include/grub/disk.h (grub_print_partinfo): Removed.
52027
52028 * conf/i386-pc.rmk (grub_emu_SOURCES): Added normal/misc.c.
52029 (normal_mod_SOURCES): Likewise.
52030 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
52031 (normal_mod_SOURCES): Likewise.
52032
52033 * commands/ls.c (grub_ls_list_disks): Use
52034 grub_normal_print_device_info instead of grub_print_partinfo. Free
52035 PNAME.
52036 (grub_ls_list_files): Use grub_normal_print_device_info instead of
52037 duplicating the code.
52038
0bd41162 520392005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
52040
52041 * commands/i386/pc/vbe_list_modes.c: Update source formatting to
f19dbdb7 52042 follow GCS more precisely.
52043 * commands/i386/pc/vbe_test.c: Likewise.
52044 * include/grub/i386/pc/vbe.h: Likewise.
52045 * term/i386/pc/vesafb.c: Likewise.
52046 * video/i386/pc/vbe.c: Likewise.
0bd41162 52047
6323696a 520482005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
52049
52050 * DISTLIST: Added term/i386/pc/vesafb.c
52051 DISTLIST: Added video/i386/pc/vbe.c
52052 DISTLIST: Added commands/i386/pc/vbe_list_modes.c.
52053 DISTLIST: Added commands/i386/pc/vbe_test.c.
52054 * commands/i386/pc/vbe_list_modes.c: New file.
52055 * commands/i386/pc/vbe_test.c: Likewise.
52056 * term/i386/pc/vesafb.c: Likewise.
52057 * video/i386/pc/vbe.c: Likewise.
52058 * include/grub/i386/pc/vbe.h (GRUB_VBE_DEFAULT_VIDEO_MODE): Added define.
52059 (grub_vbe_probe) Added prototype.
52060 (grub_vbe_set_video_mode) Likewise.
52061 (grub_vbe_get_video_mode) Likewise.
52062 (grub_vbe_get_video_mode_info) Likewise.
52063 (grub_vbe_set_pixel_rgb) Likewise.
52064 (grub_vbe_set_pixel_index) Likewise.
52065 * conf/i386-pc.rmk (pkgdata_MODULES): Added vbe.mod.
52066 (pkgdata_MODULES): Added vesafb.mod.
52067 (pkgdata_MODULES): Added vbe_list_modes.mod.
52068 (pkgdata_MODULES): Added vbe_test.mod.
52069 (vbe_mod_SOURCES): Added.
52070 (vbe_mod_CFLAGS): Likewise.
52071 (vesafb_mod_SOURCES): Likewise.
52072 (vesafb_mod_CFLAGS): Likewise.
52073 (vbe_list_modes_mod_SOURCES): Likewise.
52074 (vbe_list_modes_mod_CFLAGS): Likewise.
52075 (vbe_test_mod_SOURCES): Likewise.
52076 (vbe_test_mod_CFLAGS): Likewise.
52077
0a74e62f 520782005-08-14 Yoshinori K. Okuji <okuji@enbug.org>
52079
0a74e62f 52080 * normal/command.c (grub_command_execute): If INTERACTIVE is
52081 false and GRUB_COMMAND_FLAG_NO_ECHO is not specified, print
52082 CMDLINE. Disable the pager if INTERACTIVE is true.
52083 All callers are changed.
52084
52085 * normal/main.c (grub_normal_execute): Read command.lst and fs.lst
52086 before reading a config file.
52087 * normal/main.c (read_config_file): Even if a command is not
52088 found, register it if it is within an entry.
52089
52090 * util/grub-emu.c: Include sys/types.h and unistd.h.
52091 (options): Added --hold.
52092 (struct arguments): Added a new member "hold".
52093 (parse_opt): If KEY is 'H', set ARGS->HOLD to ARG or -1 if ARG is
52094 missing.
52095 (main): Initialize ARGS.HOLD to zero. Wait until ARGS.HOLD is
52096 cleared by a debugger, if it is not zero.
52097
52098 * include/grub/normal.h (grub_command_execute): Add an argument
52099 INTERACTIVE.
52100
e51f85ae 521012005-08-14 Vesa Jaaskelainen <chaac@nic.fi>
52102
52103 * DISTLIST: Added include/grub/i386/pc/vbe.h.
52104
e9c6f39b 521052005-08-13 Yoshinori K. Okuji <okuji@enbug.org>
52106
52107 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Replace the test
52108 program with another one, because the old one didn't detect a bug
52109 in gcc-3.4. Always use regparm 2, because the new test is still
52110 not enough for gcc-4.0. Someone must investigate a simple test
52111 case which detects a bug in gcc-4.0.
52112
8de3495c 521132005-08-12 Yoshinori K. Okuji <okuji@enbug.org>
52114
52115 * DISTLIST: Added normal/completion.c.
52116
52117 * normal/completion.c: New file.
f19dbdb7 52118
8de3495c 52119 * term/i386/pc/console.c (grub_console_getwh): New function.
52120 (grub_console_term): Assign grub_console_getwh to getwh.
52121
52122 * normal/cmdline.c (grub_tab_complete): Removed. Now the same
52123 function is defined in normal/completion.c as
52124 grub_normal_do_completion.
52125 (grub_cmdline_get): Use grub_normal_do_completion instead of
52126 grub_tab_complete.
52127
52128 * kern/partition.c (grub_partition_map_iterate): Return 1 if HOOK
52129 returns non-zero, otherwise return 0.
52130 (grub_partition_iterate): First, probe the partition map. Then,
52131 call ITERATE only for this partition map.
52132
52133 * kern/misc.c (grub_strncmp): Rewritten.
52134
52135 * kern/disk.c (grub_disk_dev_iterate): Return 1 if P->ITERATE
52136 returns non-zero. Otherwise return 0.
52137
52138 * include/grub/partition.h (grub_partition_map_iterate): Return
52139 int instead of void.
52140
52141 * include/grub/normal.h (grub_normal_do_completion): New prototype.
52142
52143 * include/grub/misc.h (grub_strncmp): Change the type of N to
52144 grub_size_t.
52145
52146 * include/grub/disk.h (grub_disk_dev_iterate): Return int instead
52147 of void.
52148
52149 * normal/menu.c (draw_border): Cast GRUB_TERM_BORDER_WIDTH to
fe6b695a 52150 unsigned explicitly before comparing it with I.
8de3495c 52151
52152 * kern/main.c (grub_env_write_root): Add the attribute unused into
52153 VAR.
52154
52155 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
52156 normal/completion.c.
52157 (normal_mod_SOURCES): Likewise.
52158 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
52159 (normal_mod_SOURCES): Likewise.
52160
52161 * normal/command.c (grub_iterate_commands): If ITERATE returns
52162 non-zero, return one immediately.
52163
e85e144b 521642005-08-09 Vesa Jaaskelainen <chaac@nic.fi>
52165
52166 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vbe.h.
52167 * kern/i386/pc/startup.S: Updated Global Descriptor table's
52168 descriptions.
52169 (grub_vbe_get_controller_info): New function.
52170 (grub_vbe_get_mode_info): Likewise.
52171 (grub_vbe_set_mode): Likewise.
52172 (grub_vbe_get_mode): Likewise.
52173 (grub_vbe_set_memory_window): Likewise.
52174 (grub_vbe_get_memory_window): Likewise.
52175 (grub_vbe_set_scanline_length): Likewise.
52176 (grub_vbe_get_scanline_length): Likewise.
52177 (grub_vbe_set_display_start): Likewise.
52178 (grub_vbe_get_display_start): Likewise.
52179 (grub_vbe_set_palette_data): Likewise.
52180 * include/grub/i386/pc/vbe.h: New file.
52181
c46153d2 521822005-08-08 Hollis Blanchard <hollis@penguinppc.org>
52183
52184 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
52185 kern/ieee1275/of.c with kern/ieee1275/ieee1275.c.
52186 * DISTLIST: Likewise.
52187 * kern/ieee1275/of.c: Moved to ...
52188 * kern/ieee1275/ieee1275.c: ... here.
52189
0cb90c45 521902005-08-08 Hollis Blanchard <hollis@penguinppc.org>
52191
52192 * term/ieee1275/ofconsole.c: Include <grub/mm.h>.
52193 (grub_ofconsole_getwh): Cast -1 to type grub_ieee1275_ihandle_t.
52194 Pass 0 as `end' parameter to grub_strtoul().
52195
a19fb360 521962005-08-08 Hollis Blanchard <hollis@penguinppc.org>
52197
52198 * include/grub/powerpc/ieee1275/console.h: Do not include
52199 <grub/types.h>. Do not include <grub/symbol.h>. Remove ASM_FILE
52200 ifdef.
52201 (grub_console_cur_color): Remove i386-specific prototype.
52202 (grub_console_real_putchar): Likewise.
52203 (grub_console_checkkey): Likewise.
52204 (grub_console_getkey): Likewise.
52205 (grub_console_getxy): Likewise.
52206 (grub_console_gotoxy): Likewise.
52207 (grub_console_cls): Likewise.
52208 (grub_console_setcursor): Likewise.
52209 * kern/powerpc/ieee1275/init.c: Don't include <grub/console.h>.
52210 Include <grub/machine/console.h>.
52211 * term/ieee1275/ofconsole.c: Likewise.
52212
4ac9bd04 522132005-08-08 Yoshinori K. Okuji <okuji@enbug.org>
52214
52215 * Makefile.in (LIBLZO): New variable.
52216
52217 * configure.ac: Check for LZO version 2.
52218
52219 * util/i386/pc/grub-mkimage.c [HAVE_LZO_LZO1X_H]: Include
52220 lzo/lzo1x.h instead of lzo1x.h.
52221
52222 * conf/i386-pc.rmk (grub_mkimage_LDFLAGS): Use $(LIBLZO) instead
52223 of -llzo.
52224
52225 * util/i386/pc/grub-setup.c (main): Do not free PREFIX
52226 twice. Reported by Vladimir Serbinenko <phcoder@gmail.com>.
52227
52228 * partmap/pc.c (pc_partition_map_probe): Restore P->DATA after
52229 copying the data from PARTITION to P.
52230
f4917dfd 522312005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
52232
52233 * kern/rescue.c (grub_rescue_cmd_rmmod): If the reference count is
52234 negative, unload the module.
52235
52236 * util/i386/pc/grub-setup.c (setup): The name of the PC partition
52237 map is "pc_partition_map" but not "pc".
52238 (usage): Fix the description. The options are --boot-image and
52239 --core-image but not --boot-file or --core-file.
52240 (main): If not specified explicitly, make BOOT_FILE and CORE_FILE
52241 based on DEFAULT_BOOT_FILE and DEFAULT_CORE_FILE with DIR or
52242 DEFAULT_DIRECTORY.
52243
52244 * util/i386/pc/grub-install.in: Do not specify --boot-file or
52245 --core-file. Specify INSTALL_DEVICE as an argument.
52246
52247 * util/console.c: Include config.h.
52248 [HAVE_NCURSeS_CURSES_H]: Include ncurses/curses.h.
52249 [HAVE_NCURSES_H]: Include ncurses.h.
52250 [HAVE_CURSES_H]: Include curses.h.
52251 [!A_NORMAL] (A_NORMAL): Defined as zero.
52252 [!A_STANDOUT] (A_STANDOUT): Likewise.
52253
52254 * conf/i386-pc.rmk (grub_emu_LDFLAGS): Use $(LIBCURSES) instead of
52255 -lncurses.
52256 * conf/powerpc-ieee1275.rmk (grub_emu_LDFLAGS): Likewise.
52257
52258 * configure.ac: Check for curses libraries and headers.
52259
52260 * Makefile.in (LIBCURSES): New variable.
52261
52262 * genmk.rb (Script::rule): Set the executable bits.
52263
52264 * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): The
52265 name of the PC partition map is "pc_partition_map" but not "pc".
52266
0e143073 522672005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
52268
52269 * util/i386/pc/grub-install.in (grub_probefs): New variable.
52270 (modules): Likewise.
52271 (usage): Added descriptions for --modules and --grub-probefs.
52272 Handle --modules and --grub-probefs. Save the arguments in MODULES
52273 and GRUB_PROBEFS, respectively.
52274 Auto-detect a filesystem module against GRUBDIR. If the result is
52275 empty and modules are not specified explicitly, abort the
52276 installation. Add the result to MODULES.
52277
52278 * DISTLIST: Removed boot/powerpc/ieee1275/ieee1275.c,
52279 disk/powerpc/ieee1275/ofdisk.c,
52280 include/grub/powerpc/ieee1275/init.h and
52281 term/powerpc/ieee1275/ofconsole.c.
52282 Added disk/ieee1275/ofdisk.c, kern/ieee1275/of.c and
52283 term/ieee1275/ofconsole.c.
52284
52285 * include/grub/powerpc/ieee1275/console.h: Resurrected.
52286
52287 * COPYING: Upgraded to the latest version. Only the address of the
52288 FSF office has changed.
f19dbdb7 52289
efd6e6d5 522902005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
52291
52292 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
52293 kern/ieee1275.c with kern/ieee1275/of.c.
52294
52295 * kern/ieee1275.c: Moved to ...
52296 * kern/ieee1275/of.c: ... here.
52297
8ceafda2 522982005-08-06 Yoshinori K. Okuji <okuji@enbug.org>
52299
52300 * conf/i386-pc.rmk (kernel_img_HEADERS): Reordered for
fe6b695a 52301 readability.
8ceafda2 52302
52303 * config.guess: Updated to the latest version from gnulib.
52304 * config.sub: Likewise.
52305 * install.sh: Likewise.
52306 * mkinstalldirs: Likewise.
52307
52308 * include/grub/console.h: Removed. This file is arch-specific. Do
52309 not put this in include/grub.
52310
52311 * include/grub/i386/pc/console.h: Resurrected.
52312
52313 * util/console.c: Include grub/machine/console.h instead of
52314 grub/console.h.
52315 * util/grub-emu.c: Likewise.
52316
267f6cd9 523172005-08-04 Marco Gerards <metgerards@student.han.nl>
52318
52319 * kern/term.c (grub_putcode): Use `grub_getwh' instead of
52320 hardcoded value.
f19dbdb7 52321
267f6cd9 52322 From Vincent Pelletier <subdino2004@yahoo.fr>
52323 * include/grub/term.h (GRUB_TERM_WIDTH, GRUB_TERM_HEIGHT):
52324 Redefined to use grub_getwh.
52325 (grub_term): New member named getwh.
52326 (grub_getwh): New prototype.
52327 * kern/term.c (grub_getwh): New function.
52328 * term/i386/pc/console.c (grub_console_getwh): New function.
52329 (grub_console_term): New member `getwh'.
52330 * term/i386/pc/vga.c (grub_vga_getwh): New function.
52331 (grub_vga_term): New member `getwh'.
0b5abe02 52332 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Use
267f6cd9 52333 grub_ssize_t.
52334 (grub_ofconsole_getw): New function.
52335 (grub_ofconsole_init): Use grub_ssize_t and unsigned char.
52336 (grub_ofconsole_term): New field named getwh and new initial
52337 value.
52338
3be7266d 523392005-08-03 Hollis Blanchard <hollis@penguinppc.org>
52340
52341 * include/grub/powerpc/ieee1275/ieee1275.h: Move ...
52342 * include/grub/ieee1275/ieee1275.h: ... to here. All users updated.
52343 Move `abort', `grub_reboot', and `grub_halt' prototypes ...
52344 * include/grub/powerpc/ieee1275/kernel.h: ... to here.
52345 * commands/ieee1275/halt.c: Include <grub/machine/kernel.h> instead
52346 of <grub/machine/ieee1275.h>.
52347 * commands/ieee1275/reboot.c: Likewise.
52348 * boot/powerpc/ieee1275/ieee1275.c: Move ...
52349 * kern/ieee1275.c: ... to here. All users updated. Change all
52350 parameter structs to use new type `grub_ieee1275_cell_t'.
52351 * term/powerpc/ieee1275/ofconsole.c: Move ...
52352 * term/ieee1275/ofconsole.c: ... to here. All users updated.
52353 * disk/powerpc/ieee1275/ofdisk.c: Move ...
52354 * disk/ieee1275/ofdisk.c: ... to here. All users updated.
52355 * boot/powerpc/ieee1275/cmain.c: Change `grub_ieee1275_entry_fn' type
52356 to return int.
52357 * include/grub/i386/pc/console.h: Move to include/grub/console.h.
52358 Remove unused prototypes. All users updated.
52359 * include/grub/powerpc/ieee1275/console.h: Removed.
52360 * include/grub/powerpc/ieee1275/ieee1275.h: Define
52361 `grub_ieee1275_cell_t'.
52362 * kern/powerpc/ieee1275/openfw.c: Include <grub/machine/kernel.h>.
52363 Cast comparisons with -1 to the correct type.
52364 * loader/powerpc/ieee1275/linux.c (kernel_entry_t): Change parameter
52365 type to match `grub_ieee1275_entry_fn'.
52366
8b5f3938 523672005-08-01 Yoshinori K. Okuji <okuji@enbug.org>
52368
52369 * DISTLIST: Added util/i386/pc/grub-probefs.c.
52370
52371 * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-probefs.
52372 (grub_setup_SOURCES): Removed partmap/amiga.c, partmap/apple.c and
52373 partmap/sun.c.
52374 (grub_probefs_SOURCES): New variable.
52375
52376 * util/i386/pc/grub-probefs.c: New file.
52377
52378 * util/i386/pc/grub-setup.c (main): Call
52379 grub_pc_partition_map_init, grub_ufs_init, grub_minix_init,
52380 grub_hfs_init and grub_jfs_init to initialize the system. Call
52381 grub_ufs_fini, grub_minix_fini, grub_hfs_fini, grub_jfs_init and
52382 grub_pc_partition_map_fini to finish the system.
52383
ea409713 523842005-07-31 Yoshinori K. Okuji <okuji@enbug.org>
52385
52386 * loader/i386/pc/multiboot.c (grub_multiboot_is_elf32): New
52387 function.
52388 (grub_multiboot_load_elf32): Likewise.
52389 (grub_multiboot_is_elf64): Likewise.
52390 (grub_multiboot_load_elf64): Likewise.
52391 (grub_multiboot_load_elf): Likewise.
52392 (grub_rescue_cmd_multiboot): Call grub_multiboot_load_elf to load
52393 an ELF32 or ELF64 file.
52394 This is based on a patch from Ruslan Nikolaev <nruslan@mail.com>.
52395
52396 From Serbinenko Vladimir <serbinenko.vova@list.ru>:
52397 * kern/disk.c (grub_print_partinfo): Check if FS->LABEL is not
52398 NULL before calling FS->LABEL.
52399 * fs/fat.c (grub_fat_dir): Initialize DIRNAME to NULL.
52400 * commands/ls.c (grub_ls_list_files): Show labels, if possible.
52401 (grub_ls_list_disks): Check if FS and FS->LABEL are not NULL
52402 before calling FS->LABEL.
52403
141a288b 524042005-07-26 Yoshinori K. Okuji <okuji@enbug.org>
52405
52406 * util/i386/pc/grub-install.in (datadir): New variable.
52407 (libdir): Removed.
52408 (pkgdatadir): New variable.
52409 (pkglibdir): Removed.
52410
0d5f8a54 524112005-07-24 Yoshinori K. Okuji <okuji@enbug.org>
52412
52413 * DISTLIST: Added util/i386/pc/grub-install.in.
52414
52415 * util/i386/pc/grub-install.in: New file.
52416
52417 * conf/i386-pc.rmk (sbin_SCRIPTS): New variable.
52418 (grub_install_SOURCES): Likewise.
52419
52420 * genmk.rb: Added support for scripts.
52421 (Script): New class.
52422 (scripts): New variable.
52423
52424 * Makefile.in (install-local): Install sbin_SCRIPTS by
52425 INSTALL_SCRIPT.
52426 (uninstall): Remove sbin_SCRIPTS.
52427
52428 * util/i386/pc/grub-setup.c (main): If the argument is not a GRUB
52429 device, try to get a GRUB device by
52430 grub_util_biosdisk_get_grub_dev.
52431 Free DEST_DEV.
52432
52433 * util/i386/pc/grub-mkdevicemap.c (usage): Remove a duplicated
52434 description for --device-map.
52435
5f968e1e 524362005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
52437
52438 Change the semantics of variable hooks. They now return strings
52439 instead of error values.
f19dbdb7 52440
5f968e1e 52441 * util/i386/pc/grub-setup.c: Include grub/env.h.
52442 (setup): Use grub_device_set_root instead of grub_env_set.
52443
52444 * kern/rescue.c (grub_rescue_cmd_root): Use grub_env_set and
52445 grub_env_get instead of grub_device_set_root and
52446 grub_device_get_root, respectively.
52447
52448 * kern/main.c (grub_env_write_root): New function.
52449 (grub_set_root_dev): Register grub_env_write_hook for "root". Use
52450 grub_env_set instead of grub_device_set_root.
52451
52452 * kern/env.c (HASHSZ): Reduced to 13, because GRUB does not need
52453 many variables.
52454 (grub_env_set): Set ENV->VALUE to the result of ENV->WRITE_HOOK
52455 rather than calling ENV->WRITE_HOOK afterwards.
52456 (grub_env_get): Return the result of ENV->READ_HOOK rather than
52457 passing a pointer of a pointer.
52458 (grub_register_variable_hook): Change the types of "read_hook" and
52459 "write_hook" to grub_env_read_hook_t and grub_env_write_hook_t,
52460 respectively.
52461 Allocate the default empty string on the heap, because this string
52462 may be freed later.
52463
52464 * kern/device.c: Include grub/env.h.
52465 (grub_device_set_root): Removed.
52466 (grub_device_get_root): Likewise.
52467 (grub_device_open): Use grub_env_get instead of
52468 grub_device_get_root.
52469
52470 * include/grub/env.h (grub_env_read_hook_t): New type.
52471 (grub_env_write_hook_t): Likewise.
52472 (grub_env_var): Change the types of "read_hook" and "write_hook"
52473 to grub_env_read_hook_t and grub_env_write_hook_t, respectively.
52474 (grub_register_variable_hook): Likewise.
52475
52476 * include/grub/device.h (grub_device_set_root): Removed.
52477 (grub_device_set_root): Likewise.
52478
52479 * fs/fat.c (grub_fat_dir): Make a copy of PATH in DIRNAME, and
52480 make sure that DIRNAME terminates with '/', so that
52481 grub_fat_find_dir will fail if PATH is not a directory.
52482
52483 * commands/ls.c (grub_ls_list_files): Remove the qualifier const
52484 from DIRNAME.
52485 Use the qualifier auto for print_files and print_files_long.
52486 If FS->DIR sets GRUB_ERRNO to GRUB_ERR_BAD_FILE_TYPE, try DIRNAME
52487 as a regular file.
52488 Put a newline only if there is no error.
52489 (grub_cmd_ls): Remove grub_ls_print_files, because this is not
52490 used.
52491
896f0afd 524922005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
52493
52494 * kern/partition.c (grub_partition_probe): Initialize PART to
52495 NULL. Otherwise, when no partition map is registered, this returns
52496 a garbage.
52497
b28b81b2 524982005-07-19 Yoshinori K. Okuji <okuji@enbug.org>
52499
52500 * partmap/apple.c (apple_partition_map_iterate): Check if POS
52501 equals GRUB_DISK_SECTOR_SIZE to see if the partition table is
52502 valid.
52503
5f3607e0 525042005-07-18 Yoshinori K. Okuji <okuji@enbug.org>
52505
52506 * commands/ls.c (grub_ls_list_disks): Print the filesystem
52507 information on each device, if it does not have partitions. Print
52508 "Device" instead of "Disk", because this function is not specific
52509 to disk devices.
52510
52511 * normal/main.c (grub_rescue_cmd_normal): Make the variable CONFIG
52512 static to ensure that it is put on the memory rather than a
52513 register.
52514
502c87e8 525152005-07-17 Yoshinori Okuji <okuji@enbug.org>
52516
52517 * commands/cat.c (GRUB_MOD_INIT): Use better documentation.
52518 (grub_cat_init): Likewise.
52519 * loader/i386/pc/chainloader_normal.c (GRUB_MOD_INIT): Likewise.
52520 (options): Likewise.
52521 * commands/configfile.c (GRUB_MOD_INIT): Likewise.
52522 (grub_configfile_init): Likewise.
52523 * font/manager.c (GRUB_MOD_INIT): Likewise.
52524 * commands/help.c (GRUB_MOD_INIT): Likewise.
52525 (grub_help_init): Likewise.
52526 * normal/command.c (grub_command_init): Likewise.
52527 * loader/i386/pc/linux_normal.c (GRUB_MOD_INIT): Likewise.
52528 * disk/loopback.c (grub_loop_init): Likewise.
52529 (GRUB_MOD_INIT): Likewise.
52530 * commands/ls.c (grub_ls_init): Likewise.
52531 (GRUB_MOD_INIT): Likewise.
52532 (options): Likewise.
52533 * commands/boot.c (grub_boot_init): Likewise.
52534 (GRUB_MOD_INIT): Likewise.
52535 * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Likewise.
52536 * commands/i386/pc/reboot.c (grub_reboot_init): Likewise.
52537 (GRUB_MOD_INIT): Likewise.
52538 * commands/cmp.c (grub_cmp_init): Likewise.
52539 (GRUB_MOD_INIT): Likewise.
52540
52541 * normal/arg.c: Use <> instead of "" to include header files.
52542 (SHORT_ARG_HELP): New macro.
52543 (SHORT_ARG_USAGE): Likewise.
52544 (help_options): Specify SHORT_ARG_HELP and SHORT_ARG_USAGE instead
52545 of 'h' and 'u' for help and usage, respectively. Use more GNU-like
52546 descriptions.
52547 (find_short): Check if C is 'h' or 'u' explicitly.
52548 (grub_arg_show_help): Use space characters instead of tabs. Treat
52549 SHORT_ARG_HELP and SHORT_ARG_USAGE exceptionally so that -h and -u
52550 are shown with --help and --usage only if they are not used for
52551 the command itself.
52552 (parse_option): Use SHORT_ARG_HELP and SHORT_ARG_USAGE instead of
52553 'h' and 'u'.
52554
52555 * include/grub/arg.h (struct grub_arg_option): Add the qualifier
52556 const into "longarg". Change the type of "shortarg" to int.
52557
f806d18e 525582005-07-17 Yoshinori Okuji <okuji@enbug.org>
52559
52560 * boot/i386/pc/boot.S (boot_drive_check): New label.
52561
52562 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRIVE_CHECK): New
52563 macro.
52564
52565 * util/i386/pc/grub-setup.c (setup): Added a workaround for BIOSes
52566 which do not pass a boot drive correctly. Copied from GRUB Legacy.
52567
e293232b 525682005-07-17 Yoshinori Okuji <okuji@enbug.org>
52569
52570 * kern/i386/pc/startup.S (gate_a20_try_system_control_port_a):
52571 When turning off Gate A20, skip the check and return immediately,
52572 because this is not fatal usually.
52573
ebedfd00 525742005-07-17 Yoshinori Okuji <okuji@enbug.org>
52575
52576 * conf/i386-pc.rmk (pxeboot_img_LDFLAGS): The text address should
52577 be 0x7C00 instead of 0x8000.
52578
52579 * boot/i386/pc/pxeboot.S: Rewritten.
52580
52581 * kern/i386/pc/startup.S (gate_a20_try_bios): No need to specify
52582 EXT_C.
52583 (gate_a20_check_state): Read a byte from 0x108000. Invert the
52584 result.
52585
654fc59f 525862005-07-16 Yoshinori K. Okuji <okuji@enbug.org>
52587
52588 * kern/i386/pc/startup.S (grub_gate_a20): Rewritten for
52589 robustness. This routine now supports a BIOS call and System
52590 Control Port A to modify the gate A20.
52591
52592 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
52593 Increased to 0x440.
52594
09f9923f 525952005-07-12 Hollis Blanchard <hollis@penguinppc.org>
52596
52597 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): dprintf the
52598 device path and resulting ihandle.
52599 (grub_ofdisk_close): dprintf the ihandle being closed.
52600 (grub_ofdisk_read): dprintf function parameters.
52601 * kern/mm.c (grub_mm_init_region): Likewise.
52602 * loader/powerpc/ieee1275/linux.c: Remove extra whitespace.
52603 (grub_linux_boot): dprintf the Linux entry point, initrd address and
52604 size, and boot arguments.
52605 (grub_rescue_cmd_linux): dprintf each ELF segment's address and size
52606 before loading into memory.
52607 (grub_rescue_cmd_initrd): dprintf the initrd's address and size
52608 before loading into memory.
52609
7ef504d8 526102005-07-12 Yoshinori K. Okuji <okuji@enbug.org>
52611
52612 * kern/mm.c: Added much documentation.
52613 (GRUB_MM_ALIGN_LOG2): When GRUB_CPU_SIZEOF_VOID_P is
52614 8, set to 5 instead of 8.
52615
e0f050c2 526162005-07-10 Yoshinori Okuji <okuji@enbug.org>
52617
52618 * DISTLIST: Added util/i386/pc/grub-mkimage.c.
52619
52620 * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-mkdevicemap.
52621 (grub_mkdevicemap_SOURCES): New variable.
52622
52623 * util/i386/pc/grub-mkdevicemap.c: New file. Mostly copied from
52624 lib/device.c of GRUB Legacy.
52625
7224189a 526262005-07-10 Yoshinori Okuji <okuji@enbug.org>
52627
52628 * commands/ls.c (grub_ls_list_files): Check if *PATH is NUL
52629 instead of PATH is NULL.
52630
68c864eb 526312005-07-09 Vincent Pelletier <subdino2004@yahoo.fr>
52632
52633 * commands/cmp.c (BUFFER_SIZE): New macro.
52634 (grub_cmd_cmp): Close the right file at the right time. Compare
52635 only data just read. Don't report files of different size as
52636 identical. Dynamically allocate buffers. Move variable
52637 declarations at the beginning of function.
52638
e6f3e614 526392005-07-09 Yoshinori Okuji <okuji@enbug.org>
52640
52641 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): The return value was
52642 reverse.
52643
f8f1559a 526442004-07-04 Vincent Pelletier <subdino2004@yahoo.fr>
52645
52646 * normal/cmdline.c (grub_cmdline_get): Don't fallback on ctrl-d
52647 when backspace is pressed at beginning of line.
52648
39c9d41d 526492005-07-03 Yoshinori Okuji <okuji@enbug.org>
52650
52651 * DISTLIST: Added genfslist.sh.
52652
52653 * normal/main.c (fs_module_list): New variable.
52654 (autoload_fs_module): New function.
52655 (read_fs_list): Likewise.
52656 (grub_normal_execute): Call read_fs_list.
52657
52658 * kern/fs.c (grub_fs_autoload_hook): New variable.
52659 (grub_fs_probe): Added support for auto-loading.
52660
52661 * include/grub/normal.h (struct grub_fs_module_list): New struct.
52662 (grub_fs_module_list_t): New type.
52663
52664 * include/grub/fs.h (grub_fs_autoload_hook_t): New type.
52665 (grub_fs_autoload_hook): New prototype.
52666
52667 * genfslist.sh: New file.
f19dbdb7 52668
39c9d41d 52669 * genmk.rb: Added a rule to generate a filesystem list.
52670
121c1d83 526712005-06-30 Marco Gerards <metgerards@student.han.nl>
52672
52673 * configure.ac: Fix the test for cross-compiling.
52674
52675 * genmk.rb (Program): Use `$(CC)' instead of `$(BUILD_CC)'. Don't
52676 define GRUB_UTIL anymore.
52677
52678 * util/powerpc/ieee1275/grub-mkimage.c (load_note): Endian fixes
52679 so this function works on other systems than just big endian.
52680 (load_modules): Likewise.
52681 (add_segments): Likewise.
52682
e75d76e1 526832005-06-23 Hollis Blanchard <hollis@penguinppc.org>
52684
52685 * kern/misc.c (grub_vsprintf): Add `longfmt'. If format string
52686 contains `l' modifier, get a long from va_arg().
52687
50b5a0a7 526882005-06-23 Yoshinori K. Okuji <okuji@enbug.org>
52689
52690 * kern/mm.c (grub_free): If the next free block which is being
52691 merged is the first free block, set the first block to the block
52692 being freed.
52693 Reported by Vincent Guffens <guffens@inma.ucl.ac.be>.
52694
89371b20 526952005-05-08 Hollis Blanchard <hollis@penguinppc.org>
52696
52697 * boot/powerpc/ieee1275/cmain.c (cmain): Initialize
52698 `grub_ieee1275_chosen'.
52699
168d6e58 527002005-05-08 Hollis Blanchard <hollis@penguinppc.org>
52701
52702 * boot/powerpc/ieee1275/cmain.c (module_info): Remove definition.
52703 (grub_ieee1275_chosen): New variable.
52704 (cmain): Initialize and use `grub_ieee1275_chosen' instead of
52705 `chosen'.
52706 * boot/powerpc/ieee1275/crt0.S (init_stack): Remove stack space.
52707 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
52708 Rename first argument to `phandle' for consistency.
52709 (grub_ieee1275_get_property_length): Likewise.
52710 (grub_ieee1275_next_property): Likewise. Change type of first argument
52711 to grub_ieee1275_phandle_t.
52712 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_entry_fn):
52713 Move export next to declaration.
52714 (grub_ieee1275_chosen): New variable.
52715 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MODULE_BASE):
52716 Correct cosmetic typo.
52717 * kern/powerpc/ieee1275/init.c (grub_set_prefix): Use
52718 `grub_ieee1275_chosen'.
52719 * kern/powerpc/ieee1275/openfw.c (grub_map): Likewise.
52720 * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Likewise.
52721 (grub_rescue_cmd_linux): Set `initrd_addr' to 0.
52722 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_refresh): Use
52723 `grub_ieee1275_chosen'.
52724
ca5baa3f 527252005-05-10 Hollis Blanchard <hollis@penguinppc.org>
52726
52727 * boot/powerpc/ieee1275/cmain.c (cmain): Remove code to parse
52728 /chosen/bootargs.
52729 * kern/powerpc/ieee1275/init.c (grub_machine_init): Parse
52730 /chosen/bootargs as "variable=value" pairs.
52731
708b345f 527322005-05-08 Vincent Pelletier <subdino2004@yahoo.fr>
52733
52734 * include/grub/misc.h (grub_dprintf): New macro.
52735 (grub_real_dprintf): New prototype.
52736 (grub_strword): Likewise.
52737 (grub_iswordseparator): Likewise.
52738 * kern/misc.c (grub_real_dprintf): New function.
52739 (grub_strword): Likewise.
52740 (grub_iswordseparator): Likewise.
52741
f4c5e67c 527422005-04-30 Hollis Blanchard <hollis@penguinppc.org>
52743
52744 * boot/powerpc/ieee1275/cmain.c: Don't include grub/machine/init.h.
52745 (roundup): Remove macro.
52746 (grub_ieee1275_flags): Make static.
52747 (grub_ieee1275_realmode): Remove.
52748 (grub_ieee1275_test_flag): New function.
52749 (grub_ieee1275_set_flag): Likewise.
52750 (find_options): Rename to `grub_ieee1275_find_options'; update
52751 callers. Set GRUB_IEEE1275_FLAG_REAL_MODE and
52752 GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS.
52753 (cmain): New prototype.
52754 (cmain): Use `grub_ieee1275_set_flag' instead of accessing
52755 `grub_ieee1275_flags' directly.
52756 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Remove
52757 machine/biosdisk.h.
52758 * disk/powerpc/ieee1275/ofdisk.c: Include grub/machine/ofdisk.h.
52759 Don't include grub/machine/init.h.
52760 (grub_ofdisk_open): Call `grub_ieee1275_test_flag'.
52761 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
52762 Remove prototype.
52763 (grub_ieee1275_realmode): Likewise.
52764 (grub_ieee1275_flag): New enum.
52765 (grub_ieee1275_test_flag): New prototype.
52766 (grub_ieee1275_set_flag): New prototype.
52767 * include/grub/powerpc/ieee1275/init.h: Remove file.
52768 * include/grub/powerpc/ieee1275/ofdisk.h: New file.
52769 * kern/powerpc/ieee1275/init.c: Don't include grub/machine/init.h.
52770 Include grub/machine/console.h. Include grub/machine/ofdisk.h.
52771 (grub_machine_fini): Don't call `grub_ieee1275_release'. Remove
52772 comment.
52773 * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Call
52774 `grub_ieee1275_test_flag'.
52775 (grub_ieee1275_encode_devname): Likewise.
52776
ed16607e 527772005-04-21 Hollis Blanchard <hollis@penguinppc.org>
52778
52779 * include/grub/powerpc/ieee1275/ieee1275.h
52780 (grub_ieee1275_encode_devname): New prototype.
52781 (grub_ieee1275_get_filename): Likewise.
52782 * kern/powerpc/ieee1275/init.c (grub_translate_ieee175_path): New
52783 function.
52784 (grub_set_prefix): Likewise.
52785 (grub_machine_init): Call grub_set_prefix.
52786 * kern/powerpc/ieee1275/openfw.c: Fix typos.
52787 (grub_parse_type): New enum.
52788 (grub_ieee1275_get_devargs): New function.
52789 (grub_ieee1275_get_devname): Likewise.
52790 (grub_ieee1275_parse_args): Likewise.
52791 (grub_ieee1275_get_filename): Likewise.
52792 (grub_ieee1275_encode_devname): Likewise.
52793
be369920 527942005-03-30 Marco Gerards <metgerards@student.han.nl>
52795
52796 * kern/powerpc/ieee1275/init.c (grub_machine_fini): Don't call
52797 `grub_loader_unset'.
52798
a5ce3a4a 527992005-03-26 Hollis Blanchard <hollis@penguinppc.org>
52800
52801 * commands/ieee1275/halt.c (grub_cmd_halt): Call grub_halt
52802 instead of grub_ieee1275_interpret.
52803 (grub_halt_init): New function.
52804 (grub_halt_fini): Likewise.
52805 (GRUB_MOD_INIT): Correct message grammar.
52806 * commands/ieee1275/reboot.c (grub_cmd_reboot): Call grub_reboot
52807 instead of grub_ieee1275_interpret.
52808 (grub_reboot_init): New function.
52809 (grub_reboot_fini): Likewise.
52810 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace
52811 commands/i386/pc/halt.c, commands/i386/pc/reboot.c, and
52812 util/i386/pc/misc.c with commands/ieee1275/halt.c,
52813 commands/ieee1275/reboot.c, and util/powerpc/ieee1275/misc.c.
52814 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_fini): New
52815 function.
52816 * include/grub/powerpc/ieee1275/console.h (grub_console_fini):
52817 Add prototype.
52818 * include/grub/powerpc/ieee1275/ieee1275.h (grub_reboot): Add
52819 prototype.
52820 (grub_halt): Likewise.
52821 * include/grub/powerpc/ieee1275/init.h: Remove inaccurate comment.
52822 (cmain): Remove __attribute__((unused)).
52823 * kern/powerpc/ieee1275/init.c (grub_heap_start): New variable.
52824 (grub_heap_len): Likewise.
52825 (grub_machine_fini): New function.
52826 * kern/powerpc/ieee1275/openfw.c (grub_reboot): New function.
52827 (grub_halt): Likewise.
52828 * term/powerpc/ieee1275/ofconsole.c (grub_console_fini): New
52829 function.
52830 * util/powerpc/ieee1275/misc.c: New file.
52831
0058f771 528322005-03-19 Yoshinori K. Okuji <okuji@enbug.org>
52833
52834 * DISTLIST: New file.
52835 * gendistlist.sh: Likewise.
f19dbdb7 52836
0058f771 52837 * Makefile.in (COMMON_DISTFILES): Removed.
52838 (BOOT_DISTFILES): Likewise.
52839 (CONF_DISTFILES): Likewise.
52840 (DISK_DISTFILES): Likewise.
52841 (FS_DISTFILES): Likewise.
52842 (INCLUDE_DISTFILES): Likewise.
52843 (KERN_DISTFILES): Likewise.
52844 (LOADER_DISTFILES): Likewise.
52845 (TERM_DISTFILES): Likewise.
52846 (UTIL_DISTFILES): Likewise.
52847 (DISTFILES): Likewise.
52848 (uninstall): Uninstall files in $(pkgdata_DATA).
52849 (DISTLIST): New target.
52850 (distdir): Use the contents of the file DISTLIST to get a list of
52851 distributed files.
52852
46b3b8a5 528532005-03-18 Yoshinori K. Okuji <okuji@enbug.org>
52854
52855 * fs/fat.c (grub_fat_mount): Ignore the 3rd bit of a media
52856 descriptor. This is ported from GRUB Legacy.
52857
52858 * gencmdlist.sh: Added an extra semicolon to make it work with
52859 old sed versions. Reported by Robert Bihlmeyer
52860 <robbe@orcus.priv.at>.
52861
5822ff87 528622005-03-08 Yoshinori Okuji <okuji@enbug.org>
52863
52864 Automatic loading of commands is supported.
f19dbdb7 52865
5822ff87 52866 * normal/main.c (read_command_list): New function.
52867 (grub_normal_execute): Call read_command_list.
52868
52869 * normal/command.c (grub_register_command): Return zero or CMD.
52870 Allocate CMD->NAME from the heap.
52871 Initialize CMD->MODULE_NAME to zero.
52872 Find the same name as well. If the same command is found and it is
52873 a dummy command, overwrite members. If it is not a dummy command,
52874 return zero.
52875 (grub_unregister_command): Free Q->NAME and Q->MODULE_NAME.
52876 (grub_command_find): If a dummy command is found, load a module
52877 and retry to find a command only once.
52878
52879 * normal/cmdline.c (grub_tab_complete): Call grub_command_find to
52880 make sure that each command is loaded.
52881
52882 * include/grub/normal.h (GRUB_COMMAND_FLAG_NOT_LOADED): New
52883 macro.
52884 (struct grub_command): Remove const from the member `name'.
52885 Add a new member `module_name'.
52886 (grub_register_command): Return grub_command_t.
52887
52888 * commands/help.c (grub_cmd_help): Call grub_command_find to make
52889 sure that each command is loaded.
52890
52891 * genmk.rb (PModule::rule): Specify a module name without the
52892 suffix ".mod" to gencmdlist.sh.
52893
7b1f4b57 528942005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
52895
52896 * gencmdlist.sh: New file.
f19dbdb7 52897
7b1f4b57 52898 * genmk.rb (PModule::rule): Generate a rule for a command list.
52899 Clean command.lst.
52900 Generate command.lst from $(COMMANDFILES).
52901
52902 * Makefile.in (COMMON_DISTFILES): Added gencmdlist.sh.
52903 (DATA): Added $(pkgdata_DATA).
52904 (install-local): Install files in $(pkgdata_DATA).
52905
062aaf39 529062005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
52907
52908 * term/i386/pc/vga.c (debug_command): Removed.
52909 (GRUB_MOD_INIT): Do not register the command "debug".
52910
52911 From Hollis Blanchard:
52912 * commands/configfile.c: New file.
52913 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
52914 commands/configfile.c.
52915 (pkgdata_MODULES): Added configfile.mod.
52916 (configfile_mod_SOURCES): New variable.
52917 (configfile_mod_CFLAGS): Likewise.
52918 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
52919 commands/configfile.c.
52920 (pkgdata_MODULES): Added configfile.mod.
52921 (configfile_mod_SOURCES): New variable.
52922 (configfile_mod_CFLAGS): Likewise.
52923 * util/grub-emu.c (main): Call grub_configfile_init and
52924 grub_configfile_fini.
52925 * include/grub/normal.h [GRUB_UTIL] (grub_configfile_init): New
52926 prototype.
52927 [GRUB_UTIL] (grub_configfile_fini): Likewise.
f19dbdb7 52928
cee01aa6 529292005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
52930
52931 * normal/arg.c (grub_arg_show_help): Do not show the bug report
52932 address.
52933
52934 * commands/help.c (grub_cmd_help): Do not print newlines after
52935 the last command in print_command_help.
52936
93f3a1d8 529372005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
52938
52939 * commands/default.h: New file.
52940 * commands/timeout.h: Likewise.
52941 * normal/context.c: Likewise.
f19dbdb7 52942
93f3a1d8 52943 * util/misc.c: Do not include sys/times.h.
52944 Include sys/time.h and grub/machine/time.h.
52945 (grub_get_rtc): Rewritten with gettimeofday.
52946
52947 * util/grub-emu.c (main): Call grub_default_init and
52948 grub_timeout_init before grub_normal_init, and call
52949 grub_timeout_fini and grub_default_fini after grub_main.
52950
52951 * util/console.c (grub_ncurses_checkkey): Return the read
52952 character or -1.
52953
52954 * normal/menu.c (run_menu): Set MENU->TIMEOUT to -1 once it
52955 timeouts.
52956
52957 * normal/main.c (read_config_file): Push MENU. If this fails,
52958 print an error and wait for a user input.
52959 Print an error only if GRUB_ERRNO is not GRUB_ERR_NONE.
52960 If a menu is empty or an error occurs, pop MENU.
52961 (grub_normal_execute): Pop and free MENU after grub_menu_run
52962 returns.
52963
52964 * kern/loader.c (grub_loader_boot): Call grub_machine_fini.
52965
52966 * include/grub/powerpc/ieee1275/time.h [GRUB_UTIL]: Do not
52967 include time.h.
52968 [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
52969 without GRUB_UTIL.
52970 * include/grub/i386/pc/time.h [GRUB_UTIL]: Do not include
52971 time.h.
52972 [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
52973 without GRUB_UTIL.
52974
52975 * include/grub/normal.h (struct grub_menu_list): New struct.
52976 (grub_menu_list_t): New type.
52977 (struct grub_context): New struct.
52978 (grub_context_t): New type.
52979 (grub_register_command): Got rid of EXPORT_FUNC.
52980 (grub_unregister_command): Likewise.
52981 (grub_context_get): New prototype.
52982 (grub_context_get_current_menu): Likewise.
52983 (grub_context_push_menu): Likewise.
52984 (grub_context_pop_menu): Likewise.
52985 [GRUB_UTIL] (grub_default_init): Likewise.
52986 [GRUB_UTIL] (grub_default_fini): Likewise.
52987 [GRUB_UTIL] (grub_timeout_init): Likewise.
52988 [GRUB_UTIL] (grub_timeout_fini): Likewise.
52989
52990 * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/default.c,
52991 commands/timeout.c and normal/context.c.
52992 (pkgdata_MODULES): Added default.mod and timeout.mod.
52993 (normal_mod_SOURCES): Added normal/context.c.
52994 (default_mod_SOURCES): New variable.
52995 (default_mod_CFLAGS): Likewise.
52996 (timeout_mod_SOURCES): Likewise.
52997 (timeout_mod_CFLAGS): Likewise.
52998 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Copied from
52999 conf/i386-pc.rmk.
53000 (pkgdata_MODULES): Added default.mod and timeout.mod.
53001 (normal_mod_SOURCES): Added normal/context.c.
53002 (default_mod_SOURCES): New variable.
53003 (default_mod_CFLAGS): Likewise.
53004 (timeout_mod_SOURCES): Likewise.
53005 (timeout_mod_CFLAGS): Likewise.
53006
53007 * Makefile.in (all-local): Added $(MKFILES).
53008
4ed2e1dd 530092005-02-21 Vincent Pelletier <subdino2004@yahoo.fr>
53010
53011 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `partmap/sun.c'.
53012 (grub_emu_SOURCES): Likewise.
53013 (pkgdata_MODULES): Add `sun.mod'.
53014 (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
53015 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
53016 `partmap/sun.c'.
53017 (pkgdata_MODULES): Add `sun.mod'.
53018 (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
53019 * include/grub/partition.h (grub_sun_partition_map_init): New
53020 prototype.
53021 (grub_sun_partition_map_fini): Likewise.
53022 * partmap/sun.c: New file.
53023 * util/grub-emu.c (main): Initialize and de-initialize the sun
53024 partitionmap support.
53025
4d4e372e 530262005-02-19 Yoshinori K. Okuji <okuji@enbug.org>
53027
53028 This implements an Emacs-like menu entry editor.
f19dbdb7 53029
4d4e372e 53030 * normal/menu_entry.c: New file.
f19dbdb7 53031
4d4e372e 53032 * util/console.c (grub_ncurses_putchar): Translate some Unicode
53033 characters to ASCII.
53034 (saved_char): New variable.
53035 (grub_ncurses_checkkey): Rewritten completely.
53036 (grub_ncurses_getkey): Likewise.
53037 (grub_ncurses_init): Call raw instead of cbreak.
53038
53039 * normal/menu.c (print_entry): Do not put a space.
53040 (init_page): Renamed to ...
53041 (grub_menu_init_page): ... this. All callers changed.
53042 (edit_menu_entry): Removed.
53043 (run_menu): Call grub_menu_entry_run instead of edit_menu_entry.
53044
53045 * normal/cmdline.c (grub_cmdline_run): Call grub_setcursor.
53046
53047 * kern/misc.c (grub_vprintf): Call grub_refresh.
53048
53049 * normal/menu.c (DISP_LEFT): Renamed to ...
53050 * include/grub/term.h (GRUB_TERM_DISP_LEFT): ... this.
53051 * normal/menu.c (DISP_UP): Renamed to ...
53052 * include/grub/term.h (GRUB_TERM_DISP_UP): ... this.
53053 * normal/menu.c (DISP_RIGHT): Renamed to ...
53054 * include/grub/term.h (GRUB_TERM_DISP_RIGHT): ... this.
53055 * normal/menu.c (DISP_DOWN): Renamed to ...
53056 * include/grub/term.h (GRUB_TERM_DISP_DOWN): ... this.
53057 * normal/menu.c (DISP_HLINE): Renamed to ...
53058 * include/grub/term.h (GRUB_TERM_DISP_HLINE): ... this.
53059 * normal/menu.c (DISP_VLINE): Renamed to ...
53060 * include/grub/term.h (GRUB_TERM_DISP_VLINE): ... this.
53061 * normal/menu.c (DISP_UL): Renamed to ...
53062 * include/grub/term.h (GRUB_TERM_DISP_UL): ... this.
53063 * normal/menu.c (DISP_UR): Renamed to ...
53064 * include/grub/term.h (GRUB_TERM_DISP_UR): ... this.
53065 * normal/menu.c (DISP_LL): Renamed to ...
53066 * include/grub/term.h (GRUB_TERM_DISP_LL): ... this.
53067 * normal/menu.c (DISP_LR): Renamed to ...
53068 * include/grub/term.h (GRUB_TERM_DISP_LR): ... this.
53069 * normal/menu.c (TERM_WIDTH): Renamed to ...
53070 * include/grub/term.h (GRUB_TERM_WIDTH): ... this.
53071 * normal/menu.c (TERM_HEIGHT): Renamed to ...
53072 * include/grub/term.h (GRUB_TERM_HEIGHT): ... this.
53073 * normal/menu.c (TERM_INFO_HEIGHT): Renamed to ...
53074 * include/grub/term.h (GRUB_TERM_INFO_HEIGHT): ... this.
53075 * normal/menu.c (TERM_MARGIN): Renamed to ...
53076 * include/grub/term.h (GRUB_TERM_MARGIN): ... this.
53077 * normal/menu.c (TERM_SCROLL_WIDTH): Renamed to ...
53078 * include/grub/term.h (GRUB_TERM_SCROLL_WIDTH): ... this.
53079 * normal/menu.c (TERM_TOP_BORDER_Y): Renamed to ...
53080 * include/grub/term.h (GRUB_TERM_TOP_BORDER_Y): ... this.
53081 * normal/menu.c (TERM_LEFT_BORDER_X): Renamed to ...
53082 * include/grub/term.h (GRUB_TERM_LEFT_BORDER_X): ... this.
53083 * normal/menu.c (TERM_BORDER_WIDTH): Renamed to ...
53084 * include/grub/term.h (GRUB_TERM_BORDER_WIDTH): ... this.
53085 * normal/menu.c (TERM_MESSAGE_HEIGHT): Renamed to ...
53086 * include/grub/term.h (GRUB_TERM_MESSAGE_HEIGHT): ... this.
53087 * normal/menu.c (TERM_BORDER_HEIGHT): Renamed to ...
53088 * include/grub/term.h (GRUB_TERM_BORDER_HEIGHT): ... this.
53089 * normal/menu.c (TERM_NUM_ENTRIES): Renamed to ...
53090 * include/grub/term.h (GRUB_TERM_NUM_ENTRIES): ... this.
53091 * normal/menu.c (TERM_FIRST_ENTRY_Y): Renamed to ...
53092 * include/grub/term.h (GRUB_TERM_FIRST_ENTRY_Y): ... this.
53093 * normal/menu.c (TERM_ENTRY_WIDTH): Renamed to ...
53094 * include/grub/term.h (GRUB_TERM_ENTRY_WIDTH): ... this.
53095 * normal/menu.c (TERM_CURSOR_X): Renamed to ...
53096 * include/grub/term.h (GRUB_TERM_CURSOR_X): ... this.
53097 All callers changed.
53098
53099 * include/grub/normal.h: New prototype.
53100
53101 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
53102 normal/menu_entry.c.
53103 (normal_mod_SOURCES): Likewise.
53104 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
53105 (normal_mod_SOURCES): Likewise.
53106
e6b92c8a 531072005-02-15 Yoshinori K. Okuji <okuji@enbug.org>
53108
53109 * include/grub/normal.h (grub_halt_init): New prototype.
53110 (grub_halt_fini): Likewise.
53111 (grub_reboot_init): Likewise.
53112 (grub_reboot_fini): Likewise.
53113
53114 * util/grub-emu.c: Include signal.h.
53115 (main_env): New global variable.
53116 (grub_machine_init): Ignore SIGINT. Otherwise grub-emu cannot
53117 catch C-c.
53118 (grub_machine_fini): New function.
53119 (main): Call grub_halt_init and grub_reboot_init before
53120 grub_main, and grub_reboot_fini and grub_halt_fini after it.
53121 Call setjmp with MAIN_ENV to go back afterwards.
53122 Call grub_machine_fini right before return.
53123
53124 * include/grub/util/misc.h: Include setjmp.h.
53125 (main_env): New prototype.
53126
53127 * include/grub/kernel.h (grub_machine_fini): New prototype.
53128 * include/grub/i386/pc/biosdisk.h (grub_biosdisk_fini): Likewise.
53129 * include/grub/i386/pc/console.h (grub_console_fini): Likewise.
53130
53131 * disk/i386/pc/biosdisk.c (grub_biosdisk_fini): New function.
53132 * kern/i386/pc/init.c (grub_machine_fini): Likewise.
53133 * term/i386/pc/console.c (grub_console_fini): Likewise.
f19dbdb7 53134
e6b92c8a 53135 * util/i386/pc/misc.c: New file.
f19dbdb7 53136
e6b92c8a 53137 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
53138 util/i386/pc/misc.c, commands/i386/pc/halt.c and
53139 commands/i386/pc/reboot.c.
53140
c642636f 531412005-02-14 Guillem Jover <guillem@hadrons.org>
53142
53143 * include/grub/dl.h (grub_dl_check_header): New prototype.
53144 (grub_arch_dl_check_header): Change return type to grub_err_t,
53145 remove size parameter and export function. Update all callers.
53146 * kern/dl.c (grub_dl_check_header): New function.
53147 (grub_dl_load_core): Use `grub_dl_check_header' instead of
53148 `grub_arch_dl_check_header'. Check ELF type. Check if sections
53149 are inside the core.
53150 * kern/i386/dl.c (grub_arch_dl_check_header): Remove arch
53151 independent ELF header checks.
53152 * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
53153 * loader/i386/pc/multiboot.c (grub_rescue_cmd_multiboot): Use
53154 `grub_dl_check_header' instead of explicit checks. Check for the
53155 ELF type.
53156 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Use
53157 `grub_dl_check_header' instead of explicit checks. Remove arch
53158 specific ELF header checks.
53159
e6b92c8a 53160 * util/grub-emu.c (grub_arch_dl_check_header): Remove the
53161 argument SIZE.
53162
5eabe94b 531632005-02-13 Hollis Blanchard <hollis@penguinppc.org>
53164
53165 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add ls.mod.
53166 * include/grub/powerpc/libgcc.h (__mulsf3): New prototype.
53167
1b14a681 531682005-02-12 Hollis Blanchard <hollis@penguinppc.org>
53169
53170 * kern/partition.c (grub_partition_probe): Clear `grub_errno' and
f19dbdb7 53171 return 0 if `grub_errno' is GRUB_ERR_BAD_PART_TABLE.
1b14a681 53172 (part_map_iterate): Clear `grub_errno' and return 0 if
f19dbdb7 53173 `partmap->iterate' returns GRUB_ERR_BAD_PART_TABLE.
1b14a681 53174 * partmap/amiga.c (amiga_partition_map_iterate): Return
53175 GRUB_ERR_BAD_PART_TABLE if no partition map magic is found.
53176 * partmap/apple.c (apple_partition_map_iterate): Likewise.
53177
aca108aa 531782005-02-01 Guillem Jover <guillem@hadrons.org>
53179
53180 * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Fix module
53181 help info.
53182
c9f9c556 531832005-01-31 Marco Gerards <metgerards@student.han.nl>
53184
53185 * include/grub/powerpc/ieee1275/loader.h (grub_load_linux):
53186 Removed prototype.
53187 (grub_rescue_cmd_linux): New prototype.
53188 (grub_rescue_cmd_initrd): Likewise.
53189 * powerpc/ieee1275/linux.c (grub_linux_boot): Remove struct
53190 `bi_rec'.
53191 (grub_linux_release_mem): Release the memory for the initrd.
53192 (grub_load_linux): Renamed from this...
53193 (grub_rescue_cmd_linux): ...To this. Changed all callers.
53194 Changed `entry' not to be static. Loop over memory regions to
53195 find another one when the default fails.
53196 (grub_rescue_cmd_initrd): New function.
53197 (grub_linux_init): Remove function.
53198 (grub_linux_fini): Likewise.
53199 (GRUB_MOD_INIT): Register `initrd'.
53200 (GRUB_MOD_FINI): Unregister `initrd'.
53201 * powerpc/ieee1275/linux_normal.c (grub_linux_normal_init):
53202 Function removed.
53203 (grub_linux_normal_fini): Likewise.
53204 (GRUB_MOD_INIT): Register `initrd'.
53205 (GRUB_MOD_FINI): Unregister `initrd'.
53206
990cf3aa 532072005-01-31 Marco Gerards <metgerards@student.han.nl>
53208
53209 * commands/help.c: New file.
53210 * normal/arg.c (show_help): Renamed to...
53211 (grub_arg_show_help): ... this.
53212 * commands/i386/pc/halt.c: New file.
53213 * commands/i386/pc/reboot.c: Likewise.
53214 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/help.c'.
53215 (pkgdata_MODULES): Add `reboot.mod', `halt.mod' and `help.mod'.
53216 (help_mod_SOURCES, help_mod_CFLAGS, reboot_mod_SOURCES)
53217 (reboot_mod_CFLAGS, halt_mod_SOURCES, halt_mod_CFLAGS): New
53218 variables.
53219 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
53220 `commands/help.c'.
53221 (pkgdata_MODULES): Add `help.mod'.
53222 (help_mod_SOURCES, help_mod_CFLAGS): New variables.
53223 * grub/i386/pc/init.h (grub_reboot): New prototype.
53224 (grub_halt): Likewise.
53225 * include/grub/normal.h (grub_arg_show_help): New prototype.
53226 (grub_help_init): Likewise.
53227 (grub_help_fini): Likewise.
53228 * util/grub-emu.c (main): Initialize and deinitialize the help
53229 command.
53230
53231 * normal/cmdline.c (grub_cmdline_get): Doc fix.
53232
53233 * normal/command.c (grub_command_init): Fixed the description of
53234 the `set' and `unset' commands.
53235
532362005-01-31 Marco Gerards <metgerards@student.han.nl>
0f79cdc1 53237
53238 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_interpret): New
53239 function.
53240 * commands/ieee1275/halt.c: New file.
53241 * commands/ieee1275/reboot.c: Likewise.
53242 * commands/ieee1275/suspend.c (grub_cmd_suspend): Use
53243 `__attribute__ ((unused))'. Some GCS related fixed.
53244 (grub_suspend_init) [GRUB_UTIL]: Function removed.
53245 (grub_suspend_fini): Likewise.
53246 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add `reboot.mod'
53247 and `halt.mod'.
53248 (reboot_mod_SOURCES, reboot_mod_CFLAGS, halt_mod_SOURCES)
53249 (halt_mod_CFLAGS): New variables.
53250 * include/grub/powerpc/ieee1275/ieee1275.h
53251 (grub_ieee1275_interpret): New prototype.
53252
1ab09cc7 532532005-01-29 Yoshinori K. Okuji <okuji@enbug.org>
53254
53255 * include/grub/misc.h (memmove): New prototype.
53256 (memcpy): Likewise.
53257
8b8cbdb2 532582005-01-22 Hollis Blanchard <hollis@penguinppc.org>
53259
53260 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Don't initialize
53261 `devpath' to 0. Use `name' instead of `devpath' with `grub_strndup'.
53262
e3741a27 532632005-01-22 Marco Gerards <metgerards@student.han.nl>
53264
53265 * kern/misc.c (grub_strndup): Function rewritten.
53266
776bd780 532672005-01-22 Vincent Pelletier <subdino2004@yahoo.fr>
53268
53269 * normal/menu.c (TERM_WIDTH): Macro redefined.
53270 (TERM_TOP_BORDER_Y): Likewise.
53271 (draw_border): Replaced while-loop by a for-loop. Make the number
53272 of lines consistent with the number of lines displayed in
53273 print_entries. Added a margin below the rectangle.
53274 (print_entry): Make the entry fit in the rectangle.
53275 (print_entries): Display the scroll arrows next to the right
53276 border.
53277
78026bce 532782005-01-21 Marco Gerards <metgerards@student.han.nl>
53279
53280 * fs/minix.c (grub_minix_find_file): Reserve more space for
53281 `fpath' so the \0 can be stored. Use `grub_strcpy' instead of
53282 `grub_strncpy' to copy `path' into it.
53283
67bbaf0f 532842005-01-21 Marco Gerards <metgerards@student.han.nl>
53285
53286 Add the loopback device, a device via which files can be accessed
53287 as devices.
f19dbdb7 53288
67bbaf0f 53289 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/loopback.c'.
53290 (pkgdata_MODULES): Add loopback.mod.
53291 (loopback_mod_SOURCES): New variable.
53292 (loopback_mod_CFLAGS): Likewise.
53293 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
53294 `disk/loopback.c'.
53295 (pkgdata_MODULES): Add loopback.mod.
53296 (loopback_mod_SOURCES): New variable.
53297 (loopback_mod_CFLAGS): Likewise.
53298 * disk/loopback.c: new file.
53299 * include/grub/normal.h (grub_loop_init): New prototype.
53300 (grub_loop_fini): New prototype.
53301 * util/grub-emu.c (main): Initialize and de-initialize loopback
53302 support.
53303 * include/grub/disk.h (grub_disk_dev_id): Add
53304 `GRUB_DISK_DEVICE_LOOPBACK_ID'.
53305
6f1c18bd 533062005-01-20 Hollis Blanchard <hollis@penguinppc.org>
53307
53308 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_enter): New
53309 function.
53310 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add suspend.mod.
53311 (suspend_mod_SOURCES): New variable.
53312 (suspend_mod_CFLAGS): Likewise.
53313 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_enter):
53314 New prototype.
53315 * commands/ieee1275/suspend.c: New file.
53316
b38551da 533172005-01-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
53318
53319 * include/grub/dl.h (GRUB_MOD_INIT): Changed `__attribute__
f19dbdb7 53320 ((unused))' to `__attribute__ ((used))'.
b38551da 53321 (GRUB_MOD_FINI): Likewise.
53322 * kern/dl.c (grub_dl_load_file): Fix null pointer dereference.
53323 * genmk.rb (PModule): Assign space to common symbols when linking
53324 modules.
53325
777aff39 533262005-01-20 Marco Gerards <metgerards@student.han.nl>
53327
53328 * include/grub/mm.h (grub_mm_init_region): Change the type of the
53329 `unsigned' arguments to `grub_size_t'.
53330 (grub_malloc): Likewise.
53331 (grub_realloc): Likewise.
53332 (grub_memalign): Likewise.
53333 * kern/i386/dl.c (grub_arch_dl_check_header): Likewise.
53334 * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
53335 * util/misc.c (grub_malloc): Likewise.
53336 (grub_realloc): Likewise.
53337 * kern/mm.c (get_header_from_pointer): Change the casts to
53338 `unsigned' into a cast to `grub_size_t'.
53339
53340 * fs/fshelp.c (grub_fshelp_find_file): The `oldnode' should always
53341 point to `currnode' when `currnode' is changed.
53342
53343 * util/grub-emu.c (main): Initialize `progname'. Reported by Nico
53344 Schottelius <nico-linux@schottelius.org>.
53345
d0ff18e1 533462005-01-09 Hollis Blanchard <hollis@penguinppc.org>
53347
53348 * util/powerpc/ieee1275/grub-mkimage.c: Include <string.h>.
53349 (note_path): Remove variable.
53350 (GRUB_IEEE1275_NOTE_NAME): New macro.
53351 (GRUB_IEEE1275_NOTE_TYPE): Likewise.
53352 (grub_ieee1275_note_hdr): New structure.
53353 (grub_ieee1275_note_desc): Likewise.
53354 (grub_ieee1275_note): Likewise.
53355 (load_note): Remove `dir' argument. All callers updated. Remove
53356 `note_img' and `path'. Do not load a file from `note_path'.
53357 Initialize a struct grub_ieee1275_note and write that to `out'.
53358 Use GRUB_IEEE1275_MODULE_BASE instead of MODULE_BASE.
53359
4ca7004c 533602005-01-05 Marco Gerards <metgerards@student.han.nl>
53361
53362 * util/misc.c (grub_util_read_image): Revert last change. It
53363 called `grub_util_read_at', which seeks from the beginning of the
53364 file.
53365
0b412211 533662005-01-04 Hollis Blanchard <hollis@penguinppc.org>
53367
53368 * TODO: Add note about endianness in grub-mkimage.
53369 * boot/powerpc/ieee1275/crt0.S (note): Remove unused .note
53370 section.
53371 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Add grub-mkimage.
53372 (grub_mkimage_SOURCES): New target.
53373 * include/grub/kernel.h (grub_start_addr): Remove variable.
53374 (grub_end_addr): Likewise.
53375 (grub_total_module_size): Likewise.
53376 (grub_kernel_image_size): Likewise.
53377 (GRUB_MODULE_MAGIC): New constant.
53378 (grub_module_info): New structure.
53379 (grub_arch_modules_addr): New prototype.
53380 (grub_get_end_addr): Remove prototype.
53381 * include/grub/i386/pc/kernel.h (grub_end_addr): New prototype.
53382 * include/grub/powerpc/ieee1275/kernel.h: New file.
53383 * include/grub/util/misc.h (grub_util_get_fp_size): New
53384 prototype.
53385 (grub_util_read_at): Likewise.
53386 (grub_util_write_image_at): Likewise.
53387 * kern/main.c (grub_get_end_addr): Remove function.
53388 (grub_load_modules): Call grub_arch_modules_addr instead of using
53389 grub_end_addr. Look for a grub_module_info struct in memory. Use
53390 the grub_module_info fields instead of calling grub_get_end_addr
53391 as loop conditions. Move grub_add_unused_region code here.
53392 (grub_add_unused_region): Remove function.
53393 * kern/i386/pc/init.c: Include grub/cache.h.
53394 (grub_machine_init): Remove call to grub_get_end_addr. Remove
53395 one call to add_mem_region.
53396 (grub_arch_modules_addr): New function.
53397 * kern/powerpc/ieee1275/init.c (grub_end_addr): Remove variable.
53398 (grub_total_module_size): Likewise.
53399 Include grub/machine/kernel.h.
53400 (grub_arch_modules_addr): New function.
53401 * util/grub-emu.c (grub_end_addr): Remove variable.
53402 (grub_total_module_size): Likewise.
53403 (grub_arch_modules_addr): New function.
53404 * util/misc.c: Include unistd.h.
53405 (grub_util_get_fp_size): New function.
53406 (grub_util_read_at): Likewise.
53407 (grub_util_write_image_at): Likewise.
53408 (grub_util_read_image): Call grub_util_read_at.
53409 (grub_util_write_image): Call grub_util_write_image_at.
53410 * util/i386/pc/grub-mkimage.c (generate_image): Allocate
53411 additional memory in kernel_img for a struct grub_module_info.
53412 Fill in that grub_module_info.
53413 * util/powerpc/ieee1275/grub-mkimage.c: New file.
53414
458786f8 534152005-01-03 Hollis Blanchard <hollis@penguinppc.org>
53416
53417 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_milliseconds):
53418 New function.
53419 * include/grub/powerpc/ieee1275/ieee1275.h
53420 (grub_ieee1275_milliseconds): New prototype.
53421 * include/grub/powerpc/ieee1275/time.h (GRUB_TICKS_PER_SECOND):
53422 Change to 1000.
53423 * kern/powerpc/ieee1275/init.c (grub_get_rtc): Call
53424 grub_ieee1275_milliseconds.
53425
ac507d1b 534262005-01-03 Hollis Blanchard <hollis@penguinppc.org>
53427
53428 * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_realmode): New
53429 variable.
53430 (find_options): New function.
53431 (cmain): Call find_options.
53432 * include/grub/powerpc/ieee1275/ieee1275.h
53433 (grub_ieee1275_realmode): New extern variable.
53434 * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Only call
53435 grub_map if grub_ieee1275_realmode is false.
53436
6b8fd1c4 534372004-12-29 Marco Gerards <metgerards@student.han.nl>
53438
53439 * normal/cmdline.c (grub_cmdline_get): Redone logic so no empty
53440 lines are inserted and make it work like readline. Reported by
53441 Vincent Pelletier <subdino2004@yahoo.fr>.
53442
8514a1e0 534432004-12-28 Marco Gerards <metgerards@student.han.nl>
53444
53445 * boot/powerpc/ieee1275/crt0.S (_start): Don't set up the stack.
53446
53447 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCE): Remove
53448 `kern/powerpc/cache.S'.
53449
924b6140 534502004-12-27 Marco Gerards <metgerards@student.han.nl>
53451
53452 * genmk.rb: Handle the `Program' class in the main loop. Written
53453 by Johan Rydberg <jrydberg@gnu.org>.
53454 (Program): New class.
53455 (programs): New variable.
53456 * boot/powerpc/ieee1275/cmain.c: Include <grub/machine/ieee1275.h>
53457 instead of "grub/machine/ieee1275.h". Include <grub/kernel.h>
53458 instead of "grub/kernel.h". Include <grub/machine/init.h>.
53459 (help_arch): Function removed.
53460 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add
53461 `powerpc/libgcc.h' and `loader.h'.
53462 (pkgdata_PROGRAMS): New variable.
53463 (sbin_UTILITIES): Variable removed.
53464 (grub_emu_SOURCES): Added kern/powerpc/cache.S.
53465 (grubof_SOURCES): Variable re-defined so it only includes the
53466 core functionality.
53467 (grubof_CFLAGS): Remove `-DGRUBOF'.
53468 (pkgdata_MODULES, fshelp_mod_SOURCES, fshelp_mod_CFLAGS,
53469 (fat_mod_SOURCES, fat_mod_CFLAGS, ext2_mod_SOURCES)
53470 (ext2_mod_CFLAGS, ufs_mod_SOURCES, ufs_mod_CFLAGS)
53471 (minix_mod_SOURCES, minix_mod_CFLAGS, hfs_mod_SOURCES)
53472 (hfs_mod_CFLAGS, jfs_mod_SOURCES, jfs_mod_CFLAGS)
53473 (iso9660_mod_SOURCES, iso9660_mod_CFLAGS, _linux_mod_SOURCES)
53474 (_linux_mod_CFLAGS, linux_mod_SOURCES, linux_mod_CFLAGS)
53475 (normal_mod_SOURCES, normal_mod_CFLAGS, normal_mod_ASFLAGS)
53476 (hello_mod_SOURCES, hello_mod_CFLAGS, boot_mod_SOURCES)
53477 (boot_mod_CFLAGS, terminal_mod_SOURCES, terminal_mod_CFLAGS)
53478 (ls_mod_SOURCES, ls_mod_CFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
53479 (cat_mod_SOURCES, cat_mod_CFLAGS, font_mod_SOURCES)
53480 (font_mod_CFLAGS, amiga_mod_SOURCES, amiga_mod_CFLAGS)
53481 (apple_mod_SOURCES, apple_mod_CFLAGS, pc_mod_SOURCES)
53482 (pc_mod_CFLAGS): New variables.
53483 * disk/powerpc/ieee1275/ofdisk.c: Include <grub/machine/init.h>.
53484 (grub_ofdisk_iterate): Add a prototype for `dev_iterate'.
53485 * include/grub/dl.h (grub_arch_dl_sync_caches): New prototype.
53486 * include/grub/loader.h (grub_os_area_addr, grub_os_area_size):
53487 Moved from here...
53488 * include/grub/i386/pc/init.h (grub_os_area_addr)
53489 (rub_os_area_size): ... to here.
53490 * include/grub/powerpc/ieee1275/ieee1275.h
53491 (grub_ieee1275_entry_fn): Export symbol.
53492 * include/grub/powerpc/ieee1275/init.h: New file.
53493 * include/grub/powerpc/libgcc.h: Likewise.
53494 * include/grub/cache.h: Likewise.
53495 * kern/powerpc/cache.S: Likewise. Written by Hollis Blanchard
53496 <hollis@penguinppc.org>.
53497 * kern/dl.c: Include <grub/cache.h>.
53498 (grub_dl_flush_cache): New function.
53499 (grub_dl_load_core): Call `grub_dl_flush_cache' to flush the cache
53500 for this module.
53501 * kern/powerpc/ieee1275/init.c (grub_ofdisk_init)
53502 (grub_console_init): Removed prototypes.
53503 (grub_machine_init): Don't initialize the modules anymore.
53504 * kern/powerpc/ieee1275/openfw.c (grub_map): Make the function
53505 static.
53506 * include/grub/powerpc/types.h (GRUB_HOST_WORDS_LITTLEENDIAN):
53507 Macro undef removed.
53508 (GRUB_HOST_WORDS_BIGENDIAN): New macro.
53509 * kern/powerpc/dl.c (grub_arch_dl_relocate_symbols): Add
53510 relocation `R_PPC_REL32'. Return an error when the relocation is
53511 unknown.
53512 * Makefile.in (DATA): Add `$(pkgdata_PROGRAMS)'.
53513 * kern/i386/pc/init.c (grub_arch_sync_caches): New function.
53514 * util/misc.c (grub_arch_sync_caches): Likewise.
53515
e4b47e0c 535162004-12-19 Marco Gerards <metgerards@student.han.nl>
53517
53518 * conf/powerpc-ieee1275.rmk (MOSTLYCLEANFILES): Remove
53519 `symlist.c', add `grubof_symlist.c'.
53520 (symlist.c): Variable removed.
53521 (grubof_HEADERS): Variable added.
53522 (grubof_symlist.c): New target.
53523 (kernel_syms.lst): Use `grubof_HEADERS' instead of
53524 `kernel_img_HEADERS'.
53525 (grubof_SOURCES): Add `kern/powerpc/dl.c' and `grubof_symlist.c'.
53526 * kern/powerpc/dl.c: New file.
53527 * kern/powerpc/ieee1275/init.c (grub_arch_dl_check_header):
53528 Function removed.
53529 (grub_arch_dl_relocate_symbols): Likewise.
53530 (grub_register_exported_symbols): Likewise.
53531
4ceb3636 535322004-12-13 Marco Gerards <metgerards@student.han.nl>
53533
53534 * fs/ext2.c (grub_ext2_open): Don't use data after freeing it.
53535 (grub_ext2_dir): Likewise. Don't return in case of an error, jump
53536 to fail instead. Reported by Vincent Pelletier
53537 <subdino2004@yahoo.fr>.
53538
53539 * fs/fshelp.c (grub_fshelp_find_file): Don't free `oldnode' when
53540 it is not allocated. Reported by Vincent Pelletier
53541 <subdino2004@yahoo.fr>.
53542
53543 * normal/cmdline.c (grub_tab_complete): Add a blank line to the
53544 output so the output looks better.
f19dbdb7 53545
3f1578fe 535462004-12-04 Marco Gerards <metgerards@student.han.nl>
53547
53548 Modulize the partition map support and add support for the amiga
53549 partition map.
f19dbdb7 53550
3f1578fe 53551 * commands/ls.c: Include <grub/partition.h> instead of
53552 <grub/machine/partition.h>.
53553 * kern/disk.c: Likewise.
53554 * kern/rescue.c: Likewise.
53555 * loader/i386/pc/chainloader.c: Likewise.
53556 * normal/cmdline.c: Likewise.
53557 * kern/powerpc/ieee1275/init.c: Likewise.
53558 (grub_machine_init): Call `grub_pc_partition_map_init',
53559 `grub_amiga_partition_map_init' and
53560 `grub_apple_partition_map_init'.
53561 * conf/i386-pc.rmk (kernel_img_SOURCES): Remove
53562 `disk/i386/pc/partition.c'. Add `kern/partition.c'.
53563 (kernel_img_HEADERS): Remove `machine/partition.h'. Add
53564 `partition.h' and `pc_partition.h'.
53565 (grub_setup_SOURCES): Remove
53566 `disk/i386/pc/partition.c'. Add `kern/partition.c',
53567 `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
53568 (grub_emu_SOURCES): Likewise.
53569 (pkgdata_MODULES): Add `amiga.mod', `apple.mod' and `pc.mod'.
53570 (amiga_mod_SOURCES, amiga_mod_CFLAGS, apple_mod_SOURCES)
53571 (apple_mod_CFLAGS, pc_mod_SOURCES, pc_mod_CFLAGS): New variables.
53572 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
53573 `disk/powerpc/ieee1275/partition.c'. Add `kern/partition.c',
53574 `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
53575 (grubof_SOURCES): Likewise.
53576 * disk/i386/pc/partition.c: File removed.
53577 * disk/powerpc/ieee1275/partition.c: Likewise.
53578 * include/grub/powerpc/ieee1275/partition.h: Likewise.
53579 * include/grub/i386/pc/partition.h: Likewise.
53580 * kern/partition.c: New file.
53581 * partmap/amiga.c: Likewise.
53582 * partmap/apple.c: Likewise.
53583 * partmap/pc.c: Likewise.
53584 * include/grub/partition.h: Likewise..
53585 * include/grub/pc_partition.h: Likewise.
53586 * util/grub-emu.c: Include <grub/partition.h> instead of
53587 <grub/machine/partition.h>.
53588 (main): Call `grub_pc_partition_map_init',
53589 `grub_amiga_partition_map_init' and
53590 `grub_apple_partition_map_init' and deinitialize afterwards.
53591 * util/i386/pc/biosdisk.c: Include `#include
53592 <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
53593 `<grub/machine/partition.h>'.
53594 * util/i386/pc/grub-setup.c: Likewise.
53595 * util/i386/pc/biosdisk.c: Likewise.
53596 (grub_util_biosdisk_get_grub_dev): Only access the PC specific
53597 partition information in case of a PC partition.
53598 * util/i386/pc/grub-setup.c: Include `#include
53599 <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
53600 `<grub/machine/partition.h>'.
53601 (setup): Only access the PC specific partition information in case
53602 of a PC partition.
53603
0ef4ced9 536042004-11-17 Hollis Blanchard <hollis@penguinppc.org>
f19dbdb7 53605
0ef4ced9 53606 * kern/powerpc/ieee1275/init.c (grub_setjmp): Remove function.
53607 (grub_longjmp): Likewise.
53608 * include/grub/powerpc/setjmp.h (grub_jmp_buf): Set array size to
53609 20.
53610 * normal/powerpc/setjmp.S: New file.
53611 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
53612 `normal/powerpc/setjmp.S'.
53613 (grubof_CFLAGS): Add `-DGRUBOF'.
53614 * include/grub/setjmp.h [GRUB_UTIL]: Changed condition to
53615 [GRUB_UTIL && !GRUBOF].
f19dbdb7 53616
19950e29 536172004-11-16 Marco Gerards <metgerards@student.han.nl>
53618
53619 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Skip any
53620 property named `name'. Correctly handle the error returned by
53621 `grub_ieee1275_finddevice' if a device can not be opened.
53622
a2fea427 536232004-11-02 Hollis Blanchard <hollis@penguinppc.org>
53624
53625 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_readkey): Test
53626 `actual' for negativity.
53627 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
53628 kern/fshelp.c.
53629
41ea0ea3 536302004-11-01 Marco Gerards <metgerards@student.han.nl>
53631
53632 * term/i386/pc/vga.c (VGA_HEIGHT): Changed to 350.
53633 (PAGE_OFFSET): New macro.
53634 (CRTC_ADDR_PORT): Likewise.
53635 (CRTC_DATA_PORT): Likewise.
53636 (START_ADDR_HIGH_REGISTER): Likewise.
53637 (START_ADDR_LOW_REGISTER): Likewise.
53638 (GRAPHICS_ADDR_PORT): Likewise.
53639 (GRAPHICS_DATA_PORT): Likewise.
53640 (READ_MAP_REGISTER): Likewise.
53641 (INPUT_STATUS1_REGISTER): Likewise.
53642 (INPUT_STATUS1_VERTR_BIT): Likewise.
53643 (page): New variable.
53644 (wait_vretrace): New function.
53645 (set_read_map): Likewise.
53646 (set_start_address): Likewise.
53647 (grub_vga_init): Use mode 0x10 instead of mode 0x12. Switch to
53648 the right page.
53649 (check_vga_mem): Take the page into account.
53650 (write_char): Likewise.
53651 (write_cursor): Likewise.
53652 (scroll_up): Likewise. Copy the page to the page that is not
53653 shown and switch between both pages.
53654 (grub_vga_putchar): Fix off by one error.
53655 (grub_vga_cls): Wait for the vertical retrace. Take the page into
53656 account.
53657
ad0bd20b 536582004-11-01 Marco Gerards <metgerards@student.han.nl>
53659
53660 Add support for iso9660 (including rockridge).
f19dbdb7 53661
ad0bd20b 53662 * conf/i386-pc.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
53663 (iso9660_mod_SOURCES): New variable.
53664 (iso9660_mod_CFLAGS): Likewise.
53665 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
53666 * include/grub/fs.h (grub_iso9660_init): New prototype.
53667 * util/grub-emu.c (main): Call `grub_iso9660_init'.
53668 * fs/iso9660.c: New file.
53669
53670 * include/grub/misc.h (grub_strncat): New prototype.
53671 * kern/misc.c (grub_strncat): New function.
f19dbdb7 53672
ad0bd20b 53673 * fs/hfs.c (grub_hfs_mount): Translate the error
53674 `GRUB_ERR_OUT_OF_RANGE' to `GRUB_ERR_BAD_FS'.
53675 * fs/jfs.c (grub_jfs_mount): Likewise.
53676 * fs/ufs.c (grub_ufs_mount): Likewise.
53677
a5477a59 536782004-10-28 Hollis Blanchard <hollis@penguinppc.org>
53679
53680 * boot/powerpc/ieee1275/cmain.c (cmain): Remove asm statements
53681 which initialized BAT registers.
53682 * boot/powerpc/ieee1275/ieee1275.c (IEEE1275_CALL_ENTRY_FN,
53683 grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
53684 Move from here...
53685 * include/grub/powerpc/ieee1275/ieee1275.h (IEEE1275_CALL_ENTRY_FN,
53686 grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
53687 ... to here.
53688 * kern/powerpc/ieee1275/openfw.c (grub_map): New function.
53689 (grub_mapclaim): Likewise.
53690 * loader/powerpc/ieee1275/linux.c (grub_load_linux): Use
53691 grub_mapclaim instead of grub_ieee1275_claim. Assign linux_addr by
53692 hand.
53693
9304c1f8 536942004-10-19 Hollis Blanchard <hollis@penguinppc.org>
53695
53696 * conf/powerpc-ieee1275.rmk (COMMON_ASFLAGS): Remove -fno-builtin.
53697 (COMMON_CFLAGS): Remove -fno-builtin and -D__ASSEMBLY__. Add
53698 -ffreestanding and -msoft-float.
53699
86f4ae25 537002004-10-15 Hollis Blanchard <hollis@penguinppc.org>
53701
53702 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Do not
53703 append ":0" to devpath if the GRUB_IEEE1275_NO_PARTITION_0 flag is
53704 set in grub_ieee1275_flags.
53705
38912228 537062004-10-14 Hollis Blanchard <hollis@penguinppc.org>
53707
53708 * include/grub/powerpc/ieee1275/ieee1275.h (abort): Add function
53709 prototype.
53710 * kern/powerpc/ieee1275/init.c (grub_machine_init): Call
53711 grub_console_init first.
53712 Change the memory range used for grub_ieee1275_claim and
53713 grub_mm_init_region.
53714 Print an error message if the claim fails.
53715 Include <grub/misc.h>.
53716
d1923dc8 537172004-10-13 Hollis Blanchard <hollis@penguinppc.org>
53718
53719 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_iterate):
53720 Call grub_children_iterate for device nodes of type `scsi',
53721 `ide', or `ata'.
53722 (grub_ofdisk_open): Remove manual device alias resolution.
53723 Fix memory leak when device cannot be opened.
f19dbdb7 53724 * include/grub/powerpc/ieee1275/ieee1275.h
d1923dc8 53725 (grub_children_iterate): New prototype.
53726 * kern/powerpc/ieee1275/openfw.c (grub_children_iterate):
53727 New function.
53728 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
53729 Return -1 if args.size was -1.
53730
4512e4f3 537312004-10-11 Hollis Blanchard <hollis@penguinppc.org>
53732
53733 * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_flags): New global.
53734 (cmain): Accept 3 parameters. Test for 0xdeadbeef, indicating Old
53735 World Macintosh. If Old Wold, set flag in grub_ieee1275_flags; claim
53736 Open Firmware's memory for it; claim memory from _start to _end.
53737 * boot/powerpc/ieee1275/crt0.S (__bss_start): New extern.
53738 (_end): New extern.
53739 (_start): Zero BSS from __bss_start to _end.
53740 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
53741 New extern.
53742 (GRUB_IEEE1275_NO_PARTITION_0): New #define.
53743
4d61feb0 537442004-10-11 Hollis Blanchard <hollis@penguinppc.org>
53745
ad0bd20b 53746 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): Return
53747 -1 if args.base was -1.
4d61feb0 53748
026fa2f9 537492004-10-08 Hollis Blanchard <hollis@penguinppc.org>
53750
53751 * term/powerpc/ieee1275/ieee1275.c (grub_ofconsole_cls): Use an ANSI
53752 escape sequence instead of a literal ^L. Also call
53753 grub_ofconsole_gotoxy.
53754
9f2220ef 537552004-10-03 Hollis Blanchard <hollis@penguinppc.org>
53756
53757 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): change
53758 void * arguments to grub_addr_t. All callers updated. Also make
53759 the `result' argument optional.
53760 (grub_ieee1275_release): change void * arguments to grub_addr_t.
53761 All callers updated.
53762
8a572cd7 537632004-09-22 Hollis Blanchard <hollis@penguinppc.org>
53764
53765 * commands/ls.c (grub_ls_list_files): Use the string following the
53766 initial ')', if present, as the filesystem path.
53767 * kern/rescue.c (grub_rescue_cmd_ls): Likewise.
53768
53769 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): List crt0.S first.
53770
18aa81f2 537712004-09-18 Yoshinori K. Okuji <okuji@enbug.org>
53772
53773 Make the source code of the menu interface more readable.
f19dbdb7 53774
18aa81f2 53775 * normal/menu.c: Include grub/mm.h.
53776 (TERM_WIDTH): New macro.
53777 (TERM_HEIGHT): Likewise.
53778 (TERM_INFO_HEIGHT): Likewise.
53779 (TERM_MARGIN): Likewise.
53780 (TERM_SCROLL_WIDTH): Likewise.
53781 (TERM_TOP_BORDER_Y): Likewise.
53782 (TERM_LEFT_BORDER_X): Likewise.
53783 (TERM_BORDER_WIDTH): Likewise.
53784 (TERM_MESSAGE_HEIGHT): Likewise.
53785 (TERM_BORDER_HEIGHT): Likewise.
53786 (TERM_NUM_ENTRIES): Likewise.
53787 (TERM_FIRST_ENTRY_Y): Likewise.
53788 (TERM_ENTRY_WIDTH): Likewise.
53789 (TERM_CURSOR_X): Likewise.
53790 (draw_border): Use macros instead of magic numbers.
53791 (print_entry): Likewise.
53792 (print_entries): Likewise.
53793 (run_menu): Likewise. Also, handle the key 'e'.
53794 (run_menu_entry): Ignore empty command lines.
53795 (print_message): Added a new argument EDIT. If EDIT is true,
53796 print a different message.
53797 (init_page): Likewise.
53798 (edit_menu_entry): New function. Not implemented yet.
53799
b47efe30 538002004-09-17 Marco Gerards <metgerards@student.han.nl>
53801
53802 Add `linux.mod' and `multiboot.mod' so linux and multiboot kernels
53803 can be loaded from normal mode.
f19dbdb7 53804
b47efe30 53805 * conf/i386-pc.rmk (pkgdata_MODULES): Add `linux.mod' and
53806 `multiboot.mod'.
53807 (linux_mod_SOURCES, linux_mod_CFLAGS, multiboot_mod_SOURCES)
53808 (multiboot_mod_CFLAGS): New variables.
53809 * loader/i386/pc/linux_normal.c: New file.
f19dbdb7 53810 * loader/i386/pc/multiboot_normal.c: Likewise.
53811
b47efe30 53812 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Don't use the
53813 attribute `unused'.
f19dbdb7 53814
b47efe30 53815 * fs/ext2.c (grub_ext2_iterate_dir): Fix typos in inode type. Use
53816 `fdiro' to read the mode information from instead of `diro'.
53817
53818 * fs/fshelp.c (grub_fshelp_find_file): Set type to foundtype after
53819 looking up a symlink.
53820
53821 * include/grub/normal.h (GRUB_COMMAND_FLAG_NO_ARG_PARSE): New
53822 macro.
53823 * normal/command.c (grub_command_execute): Don't parse the
53824 arguments when `GRUB_COMMAND_FLAG_NO_ARG_PARSE' is set in the
53825 flags of the command.
53826
53827 * normal/menu.c (grub_menu_run): Fix typo.
53828
da75ac71 538292004-09-14 Hollis Blanchard <hollis@penguinppc.org>
53830
53831 * kern/powerpc/ieee1275/init.c (abort): Trap into Open Firmware.
53832
53833 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_gotoxy): Use
53834 `y + 1' instead of `y - 1'.
53835
53836 * conf/powerpc-ieee1275.rmk (grubof_LDFLAGS): Add `-N' and `-S'.
f19dbdb7 53837
062b24c2 538382004-09-14 Yoshinori K. Okuji <okuji@enbug.org>
53839
53840 From Hollis Blanchard <hollis@penguinppc.org>:
53841 * kern/misc.c (memmove): New alias for grub_memmove.
53842 (memcmp): New alias for grub_memcmp.
53843 (memset): New alias for grub_memset.
f19dbdb7 53844 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
062b24c2 53845 Change "int handle" to "grub_ieee1275_phandle_t handle".
f19dbdb7 53846 * include/grub/powerpc/ieee1275/ieee1275.h
062b24c2 53847 (grub_ieee1275_get_property): Likewise.
f19dbdb7 53848
8ddad845 538492004-09-12 Tomas Ebenlendr <ebik@ucw.cz>
53850
53851 Added normal mode command `chainloader' as module chain.mod, which
53852 depends on normal.mod and _chain.mod.
f19dbdb7 53853
8ddad845 53854 * conf/i386-pc.rmk (pkgdata_MODULES): Add `chain.mod'.
53855 (chain_mod_SOURCES, chain_mod_CFLAGS): Variables added.
53856 * include/grub/i386/pc/loader.h (grub_rescue_cmd_chainloader):
53857 Deleted prototype.
53858 * loader/i386/pc/chainloader.c (grub_rescue_cmd_chainloader): All
53859 but arguments parsing moved to ...
53860 (grub_chainloader_cmd): ... here. New function.
53861 * include/grub/i386/pc/chainloader.h: New file.
53862 * loader/i386/pc/chainloader_normal.c: Likewise.
53863
2c1f4ce3 538642004-09-11 Marco Gerards <metgerards@student.han.nl>
53865
53866 * conf/i386-pc.rmk (kernel_img_SOURCES): Added kern/fshelp.c.
53867 (grub_mkimage_LDFLAGS): Likewise.
53868 (grub_emu_SOURCES): Likewise.
53869 (kernel_img_HEADERS): Added fshelp.h.
53870 * fs/ext2.c: Include <grub/fshelp.h>.
53871 (FILETYPE_REG): New macro.
53872 (FILETYPE_INO_REG): Likewise.
53873 (grub_ext_sblock): Renamed to `grub_ext2_sblock'.
53874 Changed all users.
53875 (ext2_block_group): Renamed to `grub_ext2_block_group'. Changed
53876 all users.
53877 (grub_fshelp_node): New struct.
53878 (grub_ext2_data): Added member `diropen'. Changed member `inode'
53879 to a pointer.
53880 (grub_ext2_get_file_block): Removed function.
53881 (grub_ext2_read_block): New function.
53882 (grub_ext2_read_file): Replaced parameter `data' by `node'.
53883 This function was written.
53884 (grub_ext2_mount): Read the root inode. Create a diropen struct.
53885 (grub_ext2_find_file): Removed function.
53886 (grub_ext2_read_symlink): New function.
53887 (grub_ext2_iterate_dir): Likewise.
53888 (grub_ext2_open): Rewritten.
53889 (grub_ext2_dir): Rewritten.
53890 * include/grub/fshelp.h: New file.
53891 * fs/fshelp.c: Likewise.
53892
3c52136a 538932004-09-10 Yoshinori K. Okuji <okuji@enbug.org>
53894
53895 * normal/menu.c: Include grub/loader.h and grub/machine/time.h.
53896 (print_message): Add a missing newline.
53897 (run_menu): Added timeout support.
53898 (run_menu_entry): New local function.
53899 (grub_menu_run): Added support for booting.
53900
53901 * kern/loader.c (grub_loader_is_loaded): New function.
53902
53903 * include/grub/powerpc/ieee1275/time.h: Include grub/symbol.h.
53904 (grub_get_rtc): Exported.
53905
53906 * include/grub/i386/pc/time.h: Include grub/symbol.h.
53907 (grub_get_rtc): Exported.
53908
53909 * include/grub/normal.h (struct grub_command_list): Remove
53910 constant from the member `command'.
53911
53912 * include/grub/loader.h (grub_loader_is_loaded): Declared.
53913
53914 * include/grub/err.h (GRUB_ERR_INVALID_COMMAND): New constant.
53915
53916 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/time.h.
53917
aa033560 539182004-08-28 Marco Gerards <metgerards@student.han.nl>
53919
53920 Add support for the JFS filesystem.
53921
53922 * fs/jfs.c: New file.
53923 * include/grub/fs.h (grub_jfs_init): New prototype.
53924 (grub_jfs_fini): New prototype.
53925 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/jfs.c.
53926 (grub_emu_SOURCES): Likewise.
53927 (pkgdata_MODULES): Add jfs.mod.
53928 (jfs_mod_SOURCES): New variable.
53929 (jfs_mod_CFLAGS): Likewise.
53930 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs.jfs.c.
53931 (grubof_SOURCES): Likewise.
53932 * util/grub-emu.c (main): Initialize and deinitialize JFS support.
53933
53934 * fs/fat.c (grub_fat_find_dir): Convert the filename little
53935 endian to the host endian.
53936 (grub_fat_utf16_to_utf8): Move function from there...
53937 * kern/misc.c (grub_utf16_to_utf8): ...to here. Do not convert
fe987087 53938 the endianness of the source string anymore.
aa033560 53939 * include/grub/misc.h (grub_utf16_to_utf8): New prototype.
53940
94bc45af 539412004-08-24 Marco Gerards <metgerards@student.han.nl>
53942
53943 * commands/boot.c (grub_boot_init) [GRUB_UTIL]: Make conditional.
53944 (grub_boot_fini) [GRUB_UTIL]: Likewise.
53945 (GRUB_MOD_INIT) [!GRUB_UTIL]: Likewise.
53946 (GRUB_MOD_FINI) [!GRUB_UTIL]: Likewise.
f19dbdb7 53947
94bc45af 53948 * fs/hfs.c (grub_hfs_find_node): Add a prototype for `node_found'.
53949 (grub_hfs_iterate_dir): Make the function static. Add prototypes
53950 for `node_found' and `it_dir'.
53951 (grub_hfs_dir): Add prototype for `dir_hook'.
53952
53953 * fs/minix.c (grub_minix_get_file_block): Add prototype for
53954 `grub_get_indir'. Rename `indir' in two blocks to `indir16'
53955 and `indir32' to silence a gcc warning.
53956
53957 * include/grub/fs.h (grub_hfs_init): New prototype.
53958 (grub_hfs_fini): Likewise.
f19dbdb7 53959
53960
97543f08 539612004-08-21 Yoshinori K. Okuji <okuji@enbug.org>
53962
53963 Each disk device has its own id now. This is useful to make use
53964 of multiple disk devices.
f19dbdb7 53965
97543f08 53966 * include/grub/disk.h (grub_disk_dev_id): New enum.
53967 (GRUB_DISK_DEVICE_BIOSDISK_ID): New constant.
53968 (GRUB_DISK_DEVICE_OFDISK_ID): Likewise.
53969
53970 * disk/i386/pc/biosdisk.c (grub_biosdisk_dev): Specify
53971 GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
53972
53973 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_dev): Specify
53974 GRUB_DISK_DEVICE_OFDISK_ID as an id.
53975
53976 * util/i386/pc/biosdisk.c (grub_util_biosdisk_dev): Specify
53977 GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
53978
53979 * include/grub/disk.h (struct grub_disk_dev): Added a new member
53980 "id" which is used by the cache manager.
53981
53982 * normal/main.c (grub_normal_init_page): Use "GNU GRUB" instead
53983 of just "GRUB".
53984
64372eb4 539852004-08-18 Marco Gerards <metgerards@student.han.nl>
53986
53987 * fs/hfs.c: New file.
53988 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/hfs.c.
53989 (grub_emu_SOURCES): Likewise.
53990 (pkgdata_MODULES): Add hfs.mod.
53991 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/hfs.c.
53992 (grubof_SOURCES): Likewise.
53993 * util/grub-emu.c (main): Initialize and deinitialize HFS support.
53994
53995 * include/grub/misc.h (grub_strncasecmp): Add prototype.
53996 * kern/misc.c (grub_strncasecmp): Add function.
53997
cc61b58f 539982004-08-14 Marco Gerards <metgerards@student.han.nl>
53999
54000 * include/grub/arg.h (GRUB_ARG_OPTION_OPTIONAL): Surround macro
54001 with parentheses.
54002
54003 * fs/ext2.c (FILETYPE_UNKNOWN): New macro.
54004 (grub_ext2_dir): In case the directory entry type is unknown, read
54005 it from the inode.
54006
0ef123f6 540072004-08-02 Peter Bruin <pjbruin@dds.nl>
54008
54009 * loader/powerpc/ieee1275/linux.c (grub_linux_init): Pass
54010 grub_load_linux instead of grub_rescue_cmd_linux as second
54011 argument of grub_rescue_register_command.
54012
54013 * Makefile.in (RMKFILES): Add conf/powerpc-ieee1275.rmk.
54014
a447c5df 540152004-07-27 Marco Gerards <metgerards@student.han.nl>
54016
54017 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_release): New
54018 function.
54019 * commands/boot.c: Remove the check for `GRUB_UTIL'.
54020 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
54021 `loader/powerpc/ieee1275/linux.c',
54022 `loader/powerpc/ieee1275/linux_normal.c' and `commands/boot.c'.
54023 * include/grub/powerpc/ieee1275/ieee1275.h
54024 (grub_ieee1275_release): New prototype.
54025 * include/grub/powerpc/ieee1275/loader.h: Rewritten.
54026 * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize
54027 normal, boot, linux and linux_normal.
54028 * loader/powerpc/ieee1275/linux.c: New file.
54029 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
54030
5a9e3546 540312004-07-12 Marco Gerards <metgerards@student.han.nl>
54032
54033 * normal/arg.c (grub_arg_parse): Correct error handling after
54034 reallocating the argumentlist (check if `argl' is not null instead
54035 of checking if `args' is not null).
54036 * kern/mm.c (grub_realloc): Return the same pointer when using the
54037 same region, instead of returning the header address.
54038
e15199cb 540392004-07-11 Marco Gerards <metgerards@student.han.nl>
54040
54041 * disk/powerpc/ieee1275/partition.c (grub_partition_iterate): Skip
54042 one block instead of two when looking for the initial partition.
54043 (grub_partition_probe): Initialize the local variable `p' with 0.
54044 Use base 10 for the grub_strtoul call.
54045 * kern/misc.c (grub_strncpy): Fix off by one bug. Eliminated the
54046 need for one local variable.
54047 (grub_strtoul): Don't add the new value to `num', instead of that
54048 just assign it.
54049
020616c2 540502004-07-11 Marco Gerards <metgerards@student.han.nl>
54051
54052 * conf/i386-pc.rmk (pkgdata_IMAGE): Add pxeboot.img.
54053 (pxeboot_img_SOURCES): New variable.
54054 (pxeboot_img_ASFLAGS): Likewise.
54055 (pxeboot_img_LDFLAGS): Likewise.
54056 * boot/i386/pc/pxeboot.S: New file. Based on pxeloader.S from
54057 GRUB Legacy and boot.S. Adopted for GRUB 2 by lode leroy
54058 <lode_leroy@hotmail.com>.
54059
6c51eb64 540602004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
54061
54062 * kern/rescue.c (grub_enter_rescue_mode): Don't continue when
54063 there was no input.
54064
cfb12aff 540652004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
54066
54067 * normal/cmdline.c (grub_set_history): Fix off by one bug. Fixed
54068 the history buffer logic.
54069
6eabba74 540702004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
54071
54072 * fs/ext2.c (FILETYPE_INO_MASK, FILETYPE_INO_DIRECTORY)
54073 (FILETYPE_INO_SYMLINK): New macros.
54074 (grub_ext2_find_file): Check if the node is a directory using the
54075 inode stat information instead of using the filetype in the
54076 dirent. Exclude the first character of an absolute symlink.
54077 (grub_ext2_dir): Mask out the filetype part of the mode member of
54078 the inode.
54079
66e19ef8 540802004-05-24 Marco Gerards <metgerards@student.han.nl>
54081
54082 Add support for UFS version 1 and 2. Add support for the minix
54083 filesystem version 1 and 2, both the variants with 14 and 30 long
54084 filenames.
f19dbdb7 54085
66e19ef8 54086 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ufs.c and
54087 fs/minix.c.
54088 (grub_emu_SOURCES): Likewise.
54089 (pkgdata_MODULES): Add ufs.mod and minix.mod.
54090 (ufs_mod_SOURCES): New variable.
54091 (ufs_mod_CFLAGS): Likewise.
54092 (minix_mod_SOURCES): Likewise.
54093 (minix_mod_CFLAGS): Likewise.
54094 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/ufs.c and
54095 fs/minix.c.
54096 (grubof_SOURCES): Likewise.
54097 * fs/ufs.c: New file.
54098 * fs/minix.c: New file.
54099 * include/grub/fs.h (grub_ufs_init): New prototype.
54100 (grub_ufs_fini): Likewise.
54101 (grub_minix_init): Likewise.
54102 (grub_minix_fini): Likewise.
54103 * util/grub-emu.c (main): Initialize and deinitialize UFS and
54104 minix fs.
54105
cc2e748a 541062004-04-30 Jeroen Dekkers <jeroen@dekkers.cx>
54107
54108 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add normal/arg.c,
54109 commands/ls.c, commands/terminal.c, commands/boot.c,
54110 commands/cmp.c and commands/cat.c.
54111 (grubof_LDFLAGS): Add -nostdlib -static-libgcc -lgcc.
54112
54113 * kern/powerpc/ieee1275/init.c: Include "grub/env.h" instead of
54114 "env.h"
54115
4b13b216 541162004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
54117
54118 All symbols prefixed with PUPA_ and pupa_ are renamed to GRUB_
54119 and grub_, respectively. Because the conversion is trivial and
54120 mechanical, I omit the details here. Please refer to the CVS
54121 if you need more information.
54122
6a142551 541232004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
54124
54125 * include/pupa: Renamed to ...
54126 * include/grub: ... this.
54127 * util/i386/pc/pupa-mkimage.c: Renamed to ...
54128 * util/i386/pc/grub-mkimage.c: ... this.
54129 * util/i386/pc/pupa-setup.c: Renamed to ...
54130 * util/i386/pc/grub-setup.c: ... this.
54131 * util/pupa-emu.c: Renamed to ...
54132 * util/grub-emu.c: ... this.
54133
e56cdf21 541342004-03-29 Marco Gerards <metgerards@student.han.nl>
54135
54136 Add support for the newworld apple macintosh (PPC). This has been
54137 tested on the powerbook 2000 only. It only adds support for
54138 generic ieee1275 functions, console and disk support. This should
54139 be easy to port to other architectures with support for Open
54140 Firmware.
f19dbdb7 54141
e56cdf21 54142 * configure.ac: Accept the powerpc as host_cpu. In the case of
54143 the powerpc cpu set the host_vendor to ieee1275. Make sure the i386
54144 specific tests are only executed while building for the i386.
54145 Inverse test for crosscompile.
54146 * genmk.rb (Utility): Allow assembler files.
54147 * normal/cmdline.c (pupa_tab_complete): Reset pupa_errno.
54148 * conf/powerpc-ieee1275.rmk: New file.
54149 * disk/powerpc/ieee1275/ofdisk.c: Likewise.
54150 * disk/powerpc/ieee1275/partition.c: Likewise.
54151 * include/pupa/powerpc/ieee1275/biosdisk.h: Likewise.
54152 * include/pupa/powerpc/ieee1275/console.h: Likewise.
54153 * include/pupa/powerpc/ieee1275/partition.h: Likewise.
54154 * include/pupa/powerpc/ieee1275/time.h: Likewise.
54155 * include/pupa/powerpc/ieee1275/util/biosdisk.h: Likewise.
54156 * include/pupa/powerpc/ieee1275/multiboot.h: Likewise.
54157 * include/pupa/powerpc/ieee1275/loader.h
54158 * include/pupa/powerpc/setjmp.h: Likewise.
54159 * include/pupa/powerpc/types.h: Likewise.
54160 * kern/powerpc/ieee1275/init.c: Likewise.
54161 * kern/powerpc/ieee1275/openfw.c: Likewise.
54162 * term/powerpc/ieee1275/ofconsole.c: Likewise.
54163
54164 These files were written by Johan Rydberg
54165 (jrydberg@night.trouble.net) and I only modified them slightly.
f19dbdb7 54166
e56cdf21 54167 * boot/powerpc/ieee1275/cmain.c: New file.
54168 * boot/powerpc/ieee1275/crt0.S: Likewise.
54169 * boot/powerpc/ieee1275/ieee1275.c: Likewise.
54170 * include/pupa/powerpc/ieee1275/ieee1275.h: Likewise.
54171
8c8cc205 541722004-03-14 Jeroen Dekkers <jeroen@dekkers.cx>
54173
54174 * Makefile.in: Update copyright.
54175 * genmodsrc.sh: Likewise.
54176 * gensymlist.sh: Likewise.
54177 * term/i386/pc/vga.c: Indent correctly.
54178
54179 * util/i386/pc/pupa-mkimage.c (usage): Use PACKAGE_BUGREPORT as
54180 bugreporting address.
54181 * util/i386/pc/pupa-setup.c (usage): Likewise,
54182 (main): Call pupa_ext2_init and pupa_ext2_fini.
54183
f19dbdb7 54184 * fs/fat.c (log2): Renamed to ...
8c8cc205 54185 (fat_log2): ... this.
54186 All callers changed.
54187 * kern/misc.c (memcpy): Alias to pupa_memmove.
54188 * loader/i386/pc/multiboot.c (pupa_rescue_cmd_multiboot): Fix
54189 lvalue cast.
54190 * util/console.c (pupa_ncurses_fini): Return 0.
54191
54192 * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open)[__linux__]:
54193 Move fail label here.
54194 [__GNU__]: Don't warn when using stat.
54195 (open_device)[!__linux__]: Check if FD < 0 instead of !FD.
54196 (pupa_util_biosdisk_get_pupa_dev)[__GNU__]: Change type of N to
54197 long int. Use strtol instead of strtoul.
f19dbdb7 54198
db1771cf 541992004-03-14 Marco Gerards <metgerards@student.han.nl>
54200
54201 * commands/boot.c: New file.
54202 * commands/cat.c: Likewise.
54203 * commands/cmp.c: Likewise.
54204 * commands/ls.c: Likewise.
54205 * commands/terminal.c: Likewise.
54206 * normal/command.c: Include <pupa/env.h> and <pupa/dl.h>.
54207 (pupa_register_command): Changed interface to match the new
54208 argument parser.
54209 (pupa_command_execute): Changed (almost rewritten) so it uses
54210 pupa_split_command. Added support for setting variables using the
54211 syntax `foo=bar'.
54212 (rescue_command): Changed to work with the new argument parser.
54213 (terminal_command): Moved from here to commands/terminal.c.
54214 (set_command): New function.
54215 (unset_command): New function.
54216 (insmod_command): New function.
54217 (rmmod_command): New function.
54218 (lsmod_command): New function.
54219 (pupa_command_init): Don't initialize the command terminal
54220 anymore. Initialize the commands set, unset, insmod, rmmod and
54221 lsmod.
54222 * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/env.c.
54223 (kernel_img_HEADERS): Add arg.h and env.h.
54224 (pupa_mkimage_LDFLAGS): Add kern/env.c.
54225 (pupa_emu_SOURCES): Add kern/env.c, commands/ls.c,
54226 commands/terminal.c commands/boot.c commands/cmp.c commands/cat.c,
54227 normal/arg.c.
54228 (pkgdata_MODULES): Add ls.mod, boot.mod, cmp.mod, cat.mod and
54229 terminal.mod.
54230 (normal_mod_SOURCES): Add normal/arg.c and normal/arg.c.
54231 (boot_mod_SOURCES): New variable.
54232 (terminal_mod_SOURCES): Likewise.
54233 (ls_mod_SOURCES): Likewise.
54234 (cmp_mod_SOURCES): Likewise.
54235 (cat_mod_SOURCES): Likewise.
54236
54237 * normal/arg.c: New file.
54238 * kern/env.c: Likewise.
54239 * include/pupa/arg.h: Likewise.
54240 * include/pupa/env.h: Likewise.
54241 * font/manager.c (font_command): Changed to match argument parsing
54242 interface changes.
54243 (PUPA_MOD_INIT): Likewise.
54244 * hello/hello.c (pupa_cmd_hello): Likewise.
54245 (PUPA_MOD_INIT): Likewise.
54246 * include/pupa/disk.h: Include <pupa/device.h>.
54247 (pupa_print_partinfo): New prototype.
54248 * include/pupa/dl.h (pupa_dl_set_prefix): Prototype removed.
54249 (pupa_dl_get_prefix): Likewise.
54250 * include/pupa/misc.h: Include <pupa/err.h>.
54251 (pupa_isgraph): New prototype.
54252 (pupa_isdigit): Likewise.
54253 (pupa_split_cmdline): Likewise.
54254 * include/pupa/normal.h: Include <pupa/arg.h>.
54255 (pupa_command): Changed the prototype of the member `func' to
54256 match the argument parsing interface. Added member `options'.
54257 (pupa_register_command): Updated to match function.
54258 (pupa_arg_parse): New prototype.
54259 (pupa_hello_init) [PUPA_UTIL]: New prototype.
54260 (pupa_hello_fini) [PUPA_UTIL]: Likewise.
54261 (pupa_ls_init) [PUPA_UTIL]: Likewise.
54262 (pupa_ls_fini) [PUPA_UTIL]: Likewise.
54263 (pupa_cat_init) [PUPA_UTIL]: Likewise.
54264 (pupa_cat_fini) [PUPA_UTIL]: Likewise.
54265 (pupa_boot_init) [PUPA_UTIL]: Likewise.
54266 (pupa_boot_fini) [PUPA_UTIL]: Likewise.
54267 (pupa_cmp_init) [PUPA_UTIL]: Likewise.
54268 (pupa_cmp_fini) [PUPA_UTIL]: Likewise.
54269 (pupa_terminal_init) [PUPA_UTIL]: Likewise.
54270 (pupa_terminal_fini) [PUPA_UTIL]: Likewise.
54271 * kern/disk.c: Include <pupa/file.h>.
54272 (pupa_print_partinfo): New function.
54273 * kern/dl.c: Include <pupa/env.h>.
54274 (pupa_dl_dir): Variable removed.
54275 (pupa_dl_load): Use the environment variable `prefix' instead of
54276 the variable pupa_dl_dir.
54277 (pupa_dl_set_prefix): Function removed.
54278 (pupa_dl_get_prefix): Likewise.
54279 * kern/i386/pc/init.c: Include <pupa/env.h>.
54280 (pupa_machine_init): Use the environment variable `prefix' instead of
54281 using pupa_dl_set_prefix to set the prefix.
54282 * kern/main.c: Include <pupa/env.h>.
54283 (pupa_set_root_dev): Use the environment variable `prefix' instead of
54284 using pupa_dl_get_prefix to get the prefix.
54285 * kern/misc.c: Include <pupa/env.h>.
54286 (pupa_isdigit): New function.
54287 (pupa_isgraph): Likewise.
54288 (pupa_ftoa): Likewise.
54289 (pupa_vsprintf): Added support for printing values of the type
54290 `double'. Make it possible to format variable output when using
54291 formatting like `%1.2%f'.
54292 (pupa_split_cmdline): New function.
54293 * kern/rescue.c: Include <pupa/env.h>.
54294 (next_word): Removed function.
54295 (pupa_rescue_cmd_prefix): Likewise.
54296 (pupa_rescue_cmd_set): New function.
54297 (pupa_rescue_cmd_unset): New function.
54298 (pupa_enter_rescue_mode): Use the `pupa_split_cmdline' function to
54299 split the command line instead of splitting it here. Added
54300 support for setting variables using the syntax `foo=bar'. Don't
54301 initialize the prefix command anymore. Initialized the set and
54302 unset commands.
54303 * normal/cmdline.c: Include <pupa/env.h>.
54304 (pupa_tab_complete): Added prototypes for print_simple_completion,
54305 print_partition_completion, add_completion, iterate_commands,
54306 iterate_dev, iterate_part and iterate_dir. Moved code to print
54307 partition information from here to kern/disk.c.
fe6b695a 54308 (pupa_cmdline_run): Don't check if the function exists anymore.
db1771cf 54309 * normal/main.c: Include <pupa/env.h>.
54310 (pupa_rescue_cmd_normal): Use the environment variable `prefix'
54311 instead of using pupa_dl_get_prefix to get the prefix.
54312 * term/i386/pc/vga.c: Include <pupa/arg.h>.
54313 (check_vga_mem): Cast pointers to `void *' to silence a gcc
54314 warning.
54315 (pupa_vga_putchar) [! DEBUG_VGA]: Removed for this case.
54316 (pupa_vga_setcolor): Declare unused variables with `__attribute__
54317 ((unused))' to silence a gcc warning.
54318 (pupa_vga_setcolor): Likewise.
54319 (debug_command): Changed to match argument parsing
54320 interface changes.
54321 * util/pupa-emu.c: Include <pupa/env.h>.
54322 (options): Added 0's for unused fields to silence a gcc warning.
54323 (argp): Likewise.
54324 (main): Use the environment variable `prefix' instead of using
54325 pupa_dl_set_prefix to set the prefix. Initialize the commands ls,
54326 boot, cmp, cat and terminal. Finish the commands boot, cmp, cat
54327 and terminal.
54328
54329 * util/i386/pc/getroot.c: Include <pupa/i386/pc/util/biosdisk.h>.
54330 * util/misc.c: Include <malloc.h>.
54331 (pupa_malloc): Rewritten so errors are correctly reported.
54332 (pupa_realloc): Likewise.
54333 (pupa_memalign): Likewise.
54334 (pupa_mm_init_region): Declare unused variables with
54335 `__attribute__ ((unused))' to silence a gcc warning.
54336 * normal/i386/setjmp.S: Remove tab at the end of the file to
54337 silence a gcc warning.
54338 * loader/i386/pc/linux.c (pupa_rescue_cmd_initrd): Declare unused
54339 variables with `__attribute__ ((unused))' to silence a gcc
54340 warning.
54341 * loader/i386/pc/multiboot.c (pupa_multiboot_unload): Make the
54342 local variable i unsigned to silence a gcc warning.
54343
54344 * kern/term.c: Include <pupa/misc.h>.
54345 (pupa_more_lines): New variable.
54346 (pupa_more): Likewise.
54347 (pupa_putcode): When the pager is active pause at the end of every
54348 screen.
54349 (pupa_set_more): New function.
54350 * include/pupa/term.h (pupa_set_more): New prototype.
54351
54352
3b1139cb 543532004-03-07 Yoshinori K. Okuji <okuji@enbug.org>
54354
54355 Now this project is GRUB 2 rather than PUPA. The location of
54356 the CVS repository was moved to GRUB's.
f19dbdb7 54357
3b1139cb 54358 * configure.ac: Use bug-grub as the reporting address.
54359 Use GRUB instead of PUPA.
54360 Change the version number to 1.90.
54361
8367695c 543622004-02-24 Yoshinori K. Okuji <okuji@enbug.org>
54363
54364 * genkernsyms.sh: Updated copyright information.
54365 * genmk.rb: Likewise.
54366 * genmodsrc.sh: Likewise.
54367 * gensymlist.sh: Likewise.
54368 * boot/i386/pc/boot.S: Likewise.
54369 * boot/i386/pc/diskboot.S: Likewise.
54370 * disk/i386/pc/biosdisk.c: Likewise.
54371 * disk/i386/pc/partition.c: Likewise.
54372 * font/manager.c: Likewise.
54373 * fs/ext2.c: Likewise.
54374 * fs/fat.c: Likewise.
54375 * include/pupa/boot.h: Likewise.
54376 * include/pupa/device.h: Likewise.
54377 * include/pupa/disk.h: Likewise.
54378 * include/pupa/dl.h: Likewise.
54379 * include/pupa/elf.h: Likewise.
54380 * include/pupa/err.h: Likewise.
54381 * include/pupa/file.h: Likewise.
54382 * include/pupa/font.h: Likewise.
54383 * include/pupa/fs.h: Likewise.
54384 * include/pupa/kernel.h: Likewise.
54385 * include/pupa/loader.h: Likewise.
54386 * include/pupa/misc.h: Likewise.
54387 * include/pupa/mm.h: Likewise.
54388 * include/pupa/net.h: Likewise.
54389 * include/pupa/normal.h: Likewise.
54390 * include/pupa/rescue.h: Likewise.
54391 * include/pupa/setjmp.h: Likewise.
54392 * include/pupa/symbol.h: Likewise.
54393 * include/pupa/term.h: Likewise.
54394 * include/pupa/types.h: Likewise.
54395 * include/pupa/i386/setjmp.h: Likewise.
54396 * include/pupa/i386/types.h: Likewise.
54397 * include/pupa/i386/pc/biosdisk.h: Likewise.
54398 * include/pupa/i386/pc/boot.h: Likewise.
54399 * include/pupa/i386/pc/console.h: Likewise.
54400 * include/pupa/i386/pc/init.h: Likewise.
54401 * include/pupa/i386/pc/kernel.h: Likewise.
54402 * include/pupa/i386/pc/linux.h: Likewise.
54403 * include/pupa/i386/pc/loader.h: Likewise.
54404 * include/pupa/i386/pc/memory.h: Likewise.
54405 * include/pupa/i386/pc/multiboot.h: Likewise.
54406 * include/pupa/i386/pc/partition.h: Likewise.
54407 * include/pupa/i386/pc/time.h: Likewise.
54408 * include/pupa/i386/pc/vga.h: Likewise.
54409 * include/pupa/i386/pc/util/biosdisk.h: Likewise.
54410 * include/pupa/util/getroot.h: Likewise.
54411 * include/pupa/util/misc.h: Likewise.
54412 * include/pupa/util/resolve.h: Likewise.
54413 * kern/device.c: Likewise.
54414 * kern/disk.c: Likewise.
54415 * kern/dl.c: Likewise.
54416 * kern/err.c: Likewise.
54417 * kern/file.c: Likewise.
54418 * kern/fs.c: Likewise.
54419 * kern/loader.c: Likewise.
54420 * kern/main.c: Likewise.
54421 * kern/misc.c: Likewise.
54422 * kern/mm.c: Likewise.
54423 * kern/rescue.c: Likewise.
54424 * kern/term.c: Likewise.
54425 * kern/i386/dl.c: Likewise.
54426 * kern/i386/pc/init.c: Likewise.
54427 * kern/i386/pc/lzo1x.S: Likewise.
54428 * kern/i386/pc/startup.S: Likewise.
54429 * loader/i386/pc/chainloader.c: Likewise.
54430 * loader/i386/pc/linux.c: Likewise.
54431 * loader/i386/pc/multiboot.c: Likewise.
54432 * normal/cmdline.c: Likewise.
54433 * normal/command.c: Likewise.
54434 * normal/main.c: Likewise.
54435 * normal/menu.c: Likewise.
54436 * normal/i386/setjmp.S: Likewise.
54437 * term/i386/pc/console.c: Likewise.
54438 * term/i386/pc/vga.c: Likewise.
54439 * util/console.c: Likewise.
54440 * util/genmoddep.c: Likewise.
54441 * util/misc.c: Likewise.
54442 * util/pupa-emu.c: Likewise.
54443 * util/resolve.c: Likewise.
54444 * util/unifont2pff.rb: Likewise.
54445 * util/i386/pc/biosdisk.c: Likewise.
54446 * util/i386/pc/getroot.c: Likewise.
54447 * util/i386/pc/pupa-mkimage.c: Likewise.
54448 * util/i386/pc/pupa-setup.c: Likewise.
54449
e6eced71 544502004-02-15 Jeroen Dekkers <jeroen@dekkers.cx>
54451
54452 * fs/ext2.c (pupa_ext2_read_file): Correct the value of BLOCKEND
54453 when it is EXT2_BLOCK_SIZE (data). New argument READ_HOOK, all
54454 callers changed. Set DATA->DISK->READ_HOOK to READ_HOOK before
54455 reading and reset it after reading.
54456 (pupa_ext2_close): Return PUPA_ERR_NONE.
54457
54458 * include/pupa/i386/pc/linux.h (PUPA_LINUX_INITRD_MAX_ADDRESS):
54459 Correct value.
54460 (struct linux_kernel_header): Add kernel_version and
54461 initrd_addr_max.
54462 * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Check whether
54463 pupa_file_read succeeds.
54464 (pupa_rescue_cmd_initrd): Implement.
54465
5aded270 544662003-12-03 Marco Gerards <metgerards@student.han.nl>
54467
54468 * fs/ext2.c (pupa_ext2_label): New function.
54469 (pupa_ext2_fs): Added label.
54470 * fs/fat.c (pupa_fat_label): New function.
54471 (pupa_fat_fs): Added label.
54472 * include/pupa/fs.h (struct pupa_fs): Added prototype label.
54473
54474 * kern/misc.c (pupa_strndup): New function.
54475 * include/pupa/misc.h (pupa_strndup): New prototype.
54476
54477 * include/pupa/normal.h: Include <pupa/err.h>.
54478 (pupa_set_history): New prototype.
54479 (pupa_iterate_commands): New prototype.
54480 * normal/cmdline.c: Include <pupa/machine/partition.h>,
54481 <pupa/disk.h>, <pupa/file.h>.
54482 (hist_size): New variable.
54483 (hist_lines): Likewise.
54484 (hist_end): Likewise.
54485 (hist_used): Likewise.
54486 (pupa_set_history): New function.
54487 (pupa_history_get): Likewise.
54488 (pupa_history_add): Likewise.
54489 (pupa_history_replace): Likewise.
54490 (pupa_tab_complete): Likewise.
54491 (pupa_cmdline_run): Added tab completion and history buffer. Tab
54492 completion shows partitionnames while completing partitions, this
54493 feature was suggested by Jeff Bailey.
54494 * normal/command.c (pupa_iterate_commands): New function.
54495 * normal/main.c (PUPA_DEFAULT_HISTORY_SIZE): New macro.
54496 (pupa_normal_init): Initialize history buffer.
54497 (PUPA_MOD_INIT): Likewise.
54498 (pupa_normal_fini): Free the history buffer.
54499 (PUPA_MOD_FINI): Likewise.
54500
54501 * util/console.c (pupa_ncurses_getkey): Accept 127 as backspace
54502 key.
54503
54504 * aclocal.m4 (pupa_I386_CHECK_REGPARM_BUG): New DEFUN.
54505 * configure.ac [i386]: Check for regparam bug.
54506 (NESTED_FUNC_ATTR) [! i386]: Defined.
54507
1f7315a3 545082003-11-17 Marco Gerards <metgerards@student.han.nl>
54509
54510 * conf/i386-pc.rmk (sbin_UTILITIES): Added pupa-emu.
54511 (pupa_setup_SOURCES): Added util/i386/pc/getroot.c.
54512 (pupa_emu_SOURCES): New variable.
54513 (pupa_emu_LDFLAGS): Likewise.
54514 * include/pupa/fs.h (pupa_ext2_init) [PUPA_UTIL]: New prototype.
54515 (pupa_ext2_fini) [PUPA_UTIL]: Likewise.
54516 * include/pupa/normal.h (pupa_normal_init) [PUPA_UTIL]: Likewise.
54517 (pupa_normal_fini) [PUPA_UTIL]: Likewise.
54518 * include/pupa/setjmp.h [PUPA_UTIL]: Include <setjmp.h>.
54519 (pupa_jmp_buf): New typedef.
54520 (pupa_setjmp) [PUPA_UTIL]: New macro.
54521 (pupa_longjmp) [PUPA_UTIL]: Likewise.
54522 * include/pupa/term.h (struct pupa_term): New member `refresh'.
54523 (pupa_refresh): New prototype.
54524 * include/pupa/util/getroot.h: New file.
54525 * kern/misc.c (pupa_vsprintf): Refresh the screen after updating
54526 it.
54527 * kern/rescue.c (pupa_rescue_get_command_line): Likewise.
54528 (pupa_rescue_cmd_cat): Likewise.
54529 (pupa_rescue_cmd_ls): Likewise.
54530 (pupa_rescue_cmd_testload): Likewise.
54531 (pupa_rescue_cmd_lsmod): Likewise.
54532 * normal/cmdline.c (pupa_cmdline_get): Likewise.
54533 * normal/menu.c (run_menu): Likewise.
54534 * kern/term.c (pupa_cls): Likewise.
54535 (pupa_refresh): New function.
54536 * normal/normal.c (pupa_normal_init) [PUPA_UTIL]: New function.
54537 (pupa_normal_fini) [PUPA_UTIL]: Likewise.
54538 * util/console.c: New file.
f19dbdb7 54539
1f7315a3 54540 * util/i386/pc/getroot.c: New file.
54541 * util/i386/pc/pupa-setup.c: Include <pupa/util/getroot.h>.
54542 (pupa_putchar): New function.
54543 (pupa_refresh): Likewise.
54544 (xgetcwd): Function moved to ...
54545 (strip_extra_slashes): Likewise.
54546 (get_prefix): Likewise.
f19dbdb7 54547 * util/i386/pc/getroot.c: ... here.
1f7315a3 54548 (find_root_device): Function moved and renamed to...
54549 * util/i386/pc/getroot.c (pupa_find_root_device): ... here.
54550 Changed all callers.
54551 * util/i386/pc/pupa-setup.c (guess_root_device): Function moved
54552 and renamed to...
54553 * util/i386/pc/getroot.c (pupa_guess_root_device): ... here.
54554 Changed all callers.
54555 * util/misc.c (pupa_memalign): New function.
54556 (pupa_mm_init_region): Likewise.
54557 (pupa_register_exported_symbols): Likewise.
54558 (pupa_putchar): Function removed.
54559 * util/pupa-emu.c: New file.
54560
9a5c1ade 545612003-11-16 Jeroen Dekkers <jeroen@dekkers.cx>
54562
54563 * conf/i386-pc.rmk (pkgdata_MODULES): Add _multiboot.mod.
54564 (_multiboot_mod_SOURCES): New variable.
54565 (_multiboot_mod_CFLAGS): Likewise.
54566 * loader/i386/pc/multiboot.c: New file.
54567 * include/pupa/i386/pc/multiboot.h: Likewise.
54568 * kern/i386/pc/startup.S: Include pupa/machine/multiboot.h.
54569 (pupa_multiboot_real_boot): New function.
54570 * include/pupa/i386/pc/loader.h: Include pupa/machine/multiboot.h.
54571 (pupa_multiboot_real_boot): New prototype.
54572 (pupa_rescue_cmd_multiboot): Likewise
54573 (pupa_rescue_cmd_module): Likewise.
54574
54575 * kern/loader.c (pupa_loader_set): Continue when
54576 pupa_loader_unload_func() fails.
54577 (pupa_loader_unset): New function.
54578 * include/pupa/loader.h (pupa_loader_unset): New prototype.
54579
54580 * kern/misc.c (pupa_stpcpy): New function.
54581 * include/pupa/misc.h (pupa_stpcpy): New prototype.
54582
8e72a9c0 545832003-11-12 Marco Gerards <metgerards@student.han.nl>
54584
54585 * disk/i386/pc/biosdisk.c (pupa_biosdisk_open): Correctly check
54586 for available extensions.
54587
54588 * include/pupa/i386/pc/time.h: New file.
54589 * kern/disk.c: Include <pupa/machine/time.h>.
54590 (PUPA_CACHE_TIMEOUT): New macro.
54591 (pupa_last_time): New variable.
54592 (pupa_disk_open): Flush the cache when there was a timeout.
54593 (pupa_disk_close): Reset the timer.
54594 * kern/i386/pc/startup.S (pupa_get_rtc): Renamed from
54595 pupa_currticks.
54596 * util/misc.c: Include <sys/times.h>
54597 (pupa_get_rtc): New function.
54598
c4adbd32 545992003-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
54600
54601 * fs/ext2.c (struct pupa_ext2_inode): Declare struct datablocks
54602 as blocks.
54603 (pupa_ext2_get_file_block): Use blocks member.
54604
54605 * fs/ext2.c (pupa_ext2_read_file): Only set skipfirst for the
54606 first block. Return -1 instead of pupa_errno on error.
54607
bfd30f06 546082003-10-27 Marco Gerards <metgerards@student.han.nl>
54609
54610 * README: In the pupa-mkimage example use _chain instead of chain
54611 and ext2 instead of fat.
54612 * TODO: Replace ext2fs with jfs as an example. Add an item for
54613 adding journal playback for ext2fs.
54614 * conf/i386-pc.rmk (pupa_setup_SOURCES): Added fs/ext2.c.
54615 (pkgdata_MODULES): Added ext2.mod.
54616 (ext2_mod_SOURCES): New variable.
54617 (ext2_mod_CFLAGS): Likewise.
54618 * include/pupa/err.h (pupa_err_t): Added PUPA_ERR_SYMLINK_LOOP.
54619 * include/pupa/misc.h (pupa_strncpy): New prototype.
54620 (pupa_strcat): Likewise.
54621 (pupa_strncmp): Likewise.
54622 * kern/misc.c (pupa_strcat): Enable function.
54623 (pupa_strncpy): New function.
54624 (pupa_strncmp): Likewise.
54625 * fs/ext2.c: New file.
f19dbdb7 54626
bfd30f06 54627 * kern/disk.c (pupa_disk_read): Set pupa_errno to PUPA_ERR_NONE
54628 when the read failed before retrying.
54629 * util/i386/pc/biosdisk.c (_LARGEFILE_SOURCE): Removed.
54630 (_FILE_OFFSET_BITS): Likewise.
54631 * configure.ac: Added AC_SYS_LARGEFILE.
54632
98d15063 546332003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
54634
54635 * genmk.rb (PModule#rule): Make sure to get only symbol names
54636 from the output of nm.
59cad637 54637 Reported by Robert Millan <rmh.grub@aybabtu.com>.
98d15063 54638
18d9c7cd 546392003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
54640
54641 I forgot to check in these changes for a long time. This adds
54642 incomplete support for VGA console, and this is still very
54643 buggy. Also, a lot of consideration is required for I18N,
54644 UNICODE, and VGA font issues. Therefore, assume that this is
54645 such that "better than nothing".
f19dbdb7 54646
18d9c7cd 54647 * font/manager.c: New file.
54648 * include/pupa/font.h: Likewise.
54649 * include/pupa/i386/pc/vga.h: Likewise.
54650 * term/i386/pc/vga.c: Likewise.
54651 * util/unifont2pff.rb: Likewise.
54652
54653 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vga.h.
54654 (pkgdata_MODULES): Added vga.mod and font.mod.
54655 (vga_mod_SOURCES): New variables.
54656 (vga_mod_CFLAGS): Likewise.
54657 (font_mod_SOURCES): Likewise.
54658 (font_mod_CFLAGS): Likewise.
54659
54660 * include/pupa/err.h (PUPA_ERR_BAD_FONT): New constant.
54661
54662 * include/pupa/term.h: Include pupa/err.h.
f19dbdb7 54663 (struct pupa_term): Added init and fini.
18d9c7cd 54664 Changed the argument of putchar to pupa_uint32_t.
54665
54666 * include/pupa/i386/pc/console.h: Include pupa/symbol.h.
54667 (pupa_console_real_putchar): New prototype.
54668 (pupa_console_putchar): Removed.
54669 (pupa_console_checkkey): Exported.
54670 (pupa_console_getkey): Likewise.
54671
54672 * kern/misc.c (pupa_vsprintf): Add support for UNICODE
54673 characters.
54674
54675 * kern/term.c (pupa_term_set_current): Rewritten.
54676 (pupa_putchar): Likewise.
54677 (pupa_putcode): New function.
54678
54679 * kern/i386/pc/startup.S (pupa_console_putchar): Renamed to ...
54680 (pupa_console_real_putchar): ... this.
54681 (pupa_vga_set_mode): New function.
54682 (pupa_vga_get_font): Likewise.
54683
54684 * normal/command.c: Include pupa/term.h.
54685 (terminal_command): New function.
54686 (pupa_command_init): Register the command "terminal".
54687
54688 * normal/menu.c (DISP_LEFT): Changed to a UNICODE value.
54689 (DISP_UP): Likewise.
54690 (DISP_RIGHT): Likewise.
54691 (DISP_DOWN): Likewise.
54692 (DISP_HLINE): Likewise.
54693 (DISP_VLINE): Likewise.
54694 (DISP_UL): Likewise.
54695 (DISP_UR): Likewise.
54696 (DISP_LL): Likewise.
54697 (DISP_LR): Likewise.
54698
54699 * term/i386/pc/console.c (pupa_console_putchar): New function.
f19dbdb7 54700
977329f5 547012003-02-08 NIIBE Yutaka <gniibe@m17n.org>
54702
54703 * util/resolve.c (pupa_util_resolve_dependencies): BUG
54704 FIX. Reverse the path_list.
54705
54706 * include/pupa/normal.h: Export pupa_register_command and
54707 pupa_unregister_command.
54708
54709 * hello/hello.c (pupa_cmd_hello): New module.
54710 * conf/i386-pc.rmk: Added hello.mod.
54711
1f5ab428 547122003-01-31 Yoshinori K. Okuji <okuji@enbug.org>
54713
54714 * kern/i386/pc/lzo1x.S: New file.
f19dbdb7 54715
1f5ab428 54716 * util/i386/pc/pupa-mkimage.c: Include lzo1x.h.
54717 (compress_kernel): New variable.
54718 (generate_image): Heavily modified to support compressing a
54719 large part of the core image.
54720
54721 * util/misc.c (pupa_util_read_image): Fix a file descriptor
54722 leak.
54723 (pupa_util_load_image): New function.
54724
54725 * kern/i386/pc/startup.S: Include pupa/machine/kernel.h.
54726 (pupa_compressed_size): New variable.
54727 (codestart): Enable Gate A20 here.
54728 Decompress the compressed part of the core image.
54729 Rearrange the code to put functions and variables which are
54730 required for initialization in the non-compressed part.
54731 Include lzo1x.S.
54732
54733 * kern/i386/pc/init.c (pupa_machine_init): Don't enable Gate A20
54734 here.
54735
54736 * include/pupa/util/misc.h (pupa_util_write_image): Declared.
54737
f19dbdb7 54738 * include/pupa/i386/pc/kernel.h
1f5ab428 54739 (PUPA_KERNEL_MACHINE_COMPRESSED_SIZE): New macro.
54740 (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): Increased by 4.
54741 (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
54742 (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
54743 (PUPA_KERNEL_MACHINE_RAW_SIZE): New macro.
54744
54745 * conf/i386-pc.rmk (pupa_mkimage_LDFLAGS): New variable.
54746
54747 * genmk.rb (Image#rule): Put LDFLAGS at the end of a line.
54748 (Utility#rule): Likewise.
54749
54750 * configure.ac: Check if LZO is available.
54751
ce5bf700 547522003-01-20 Yoshinori K. Okuji <okuji@enbug.org>
54753
54754 * include/pupa/normal.h: New file.
54755 * include/pupa/setjmp.h: Likewise.
54756 * include/pupa/i386/setjmp.h: Likewise.
54757 * normal/cmdline.c: Likewise.
54758 * normal/command.c: Likewise.
54759 * normal/main.c: Likewise.
54760 * normal/menu.c: Likewise.
54761 * normal/i386/setjmp.S: Likewise.
f19dbdb7 54762
ce5bf700 54763 * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Made global.
54764 (pupa_rescue_cmd_initrd): Likewise.
54765
54766 * loader/i386/pc/chainloader.c (pupa_rescue_cmd_chainloader):
54767 Likewise.
54768
54769 * kern/i386/pc/startup.S (translation_table): New variable.
54770 (translate_keycode): New function.
54771 (pupa_console_getkey): Call translate_keycode.
54772
54773 * kern/rescue.c (attempt_normal_mode): New function.
54774 (pupa_enter_rescue_mode): Attempt to execute the normal mode. If
54775 it failed, print a message.
54776
54777 * kern/mm.c (pupa_real_malloc): Print more information when a
54778 free magic is broken.
54779 (pupa_free): If the first free header is not free actually, set
54780 it to P.
54781
54782 * kern/main.c (pupa_load_normal_mode): Just load the module
54783 "normal".
54784 (pupa_main): Don't print the message
54785 "Entering into rescue mode..." here.
54786
54787 * include/pupa/i386/pc/loader.h (pupa_rescue_cmd_initrd):
54788 Declared.
54789 (pupa_rescue_cmd_initrd): Likewise.
54790 (pupa_rescue_cmd_initrd): Likewise.
54791
54792 * include/pupa/symbol.h (FUNCTION): Specify the type.
54793 (VARIABLE): Likewise.
54794
54795 * include/pupa/err.h (pupa_err_t): Added
54796 PUPA_ERR_UNKNOWN_COMMAND.
54797
54798 * include/pupa/dl.h (pupa_dl_set_prefix): Exported.
54799 (pupa_dl_get_prefix): Likewise.
54800
54801 * conf/i386-pc.rmk (pkgdata_MODULES): Added normal.mod.
54802 Added _chain.mod and _linux.mod instead of chain.mod and
54803 linux.mod.
54804 (chain_mod_SOURCES): Renamed to ...
54805 (_chain_mod_SOURCES): ... this.
54806 (chain_mod_CFLAGS): Renamed to ...
54807 (_chain_mod_CFLAGS): ... this.
54808 (linux_mod_SOURCES): Renamed to ...
54809 (_linux_mod_SOURCES): ... this.
54810 (linux_mod_CFLAGS): Renamed to ...
54811 (_linux_mod_CFLAGS): ... this.
54812 (normal_mod_SOURCES): New variable.
54813 (normal_mod_CFLAGS): Likewise.
54814 (normal_mod_ASFLAGS): Likewise.
54815
548162003-01-18 Yoshinori K. Okuji <okuji@enbug.org>
54817
54818 * kern/rescue.c (pupa_rescue_cmd_rmmod): Call pupa_dl_unload, if
54819 possible.
54820
fe6b695a 54821 * kern/dl.c (pupa_dl_ref): Refer depending modules
ce5bf700 54822 recursively.
54823 (pupa_dl_unref): Unrefer depending modules recursively.
54824 Don't call pupa_dl_unload implicitly, because PUPA can crash if
54825 a module is unloaded before one depending on that module is
54826 unloaded.
54827 (pupa_dl_unload): Unload depending modules explicitly,
54828 if possible.
54829
c04da074 548302003-01-17 Yoshinori K. Okuji <okuji@enbug.org>
54831
54832 * include/pupa/i386/pc/linux.h: New file.
54833 * loader/i386/pc/linux.c: Likewise.
f19dbdb7 54834
c04da074 54835 * loader/i386/pc/chainloader.c (pupa_chainloader_boot_sector):
54836 Removed.
54837 (pupa_chainloader_unload): Return PUPA_ERR_NONE.
54838 (pupa_rescue_cmd_chainloader): Read the image to 0x7C00 instead
54839 of PUPA_CHAINLOADER_BOOT_SECTOR.
54840
54841 * kern/i386/pc/startup.S: Include pupa/machine/linux.h.
54842 (pupa_linux_prot_size): New variable.
54843 (pupa_linux_tmp_addr): Likewise.
54844 (pupa_linux_real_addr): Likewise.
54845 (pupa_linux_boot_zimage): New function.
54846 (pupa_linux_boot_bzimage): Likewise.
54847
54848 * kern/i386/pc/init.c (struct mem_region): New structure.
54849 (MAX_REGIONS): New macro.
54850 (mem_regions): New variable.
54851 (num_regions): Likewise.
54852 (pupa_os_area_addr): Likewise.
54853 (pupa_os_area_size): Likewise.
54854 (pupa_lower_mem): Likewise.
54855 (pupa_upper_mem): Likewise.
54856 (add_mem_region): New function.
54857 (compact_mem_regions): Likewise.
54858 (pupa_machine_init): Set PUPA_LOWER_MEM and PUPA_UPPER_MEM to
54859 the size of the conventional memory and that of so-called upper
54860 memory (before the first memory hole).
54861 Instead of adding each found region to free memory, use
54862 add_mem_region and add them after removing overlaps.
54863 Also, add only 1/4 of the upper memory to free memory. The rest
54864 is used for loading OS images. Maybe this is ad hoc, but this
54865 makes it much easier to relocate OS images when booting.
54866
54867 * kern/rescue.c (pupa_rescue_cmd_module): Removed.
54868 (pupa_enter_rescue_mode): Don't register initrd and module.
54869
54870 * kern/mm.c: Include pupa/dl.h.
54871
54872 * kern/main.c: Include pupa/file.h and pupa/device.h.
54873
54874 * kern/loader.c (pupa_loader_load_module_func): Removed.
54875 (pupa_loader_load_module): Likewise.
54876
54877 * kern/dl.c (pupa_dl_load): Use the suffix ``.mod'' instead of
54878 ``.o''.
54879
54880 * include/pupa/i386/pc/loader.h (pupa_linux_prot_size): Declared.
54881 (pupa_linux_tmp_addr): Likewise.
54882 (pupa_linux_real_addr): Likewise.
54883 (pupa_linux_boot_zimage): Likewise.
54884 (pupa_linux_boot_bzimage): Likewise.
54885
54886 * include/pupa/i386/pc/init.h (pupa_lower_mem): Declared.
54887 (pupa_upper_mem): Likewise.
54888 (pupa_gate_a20): Don't export, because turning off Gate A20 in a
54889 module is too dangerous.
54890
54891 * include/pupa/loader.h (pupa_os_area_addr): Declared.
54892 (pupa_os_area_size): Likewise.
54893 (pupa_loader_set): Remove the first argument. Loader doesn't
54894 manage modules or initrd any longer.
54895 (pupa_loader_load_module): Removed.
54896
54897 * conf/i386-pc.rmk (pkgdata_MODULES): Added linux.mod.
54898 (linux_mod_SOURCES): New variable.
54899 (linux_mod_CFLAGS): Likewise.
54900
a13f9237 549012003-01-07 Yoshinori K. Okuji <okuji@enbug.org>
54902
54903 * util/i386/pc/pupa-setup.c (setup): Convert the endianness of
54904 the length of a blocklist correctly.
54905
54906 * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open) [__linux__]:
54907 Use ioctl only if the OS file is a block device.
54908 (pupa_util_biosdisk_open): Don't use ST.ST_BLOCKS, because it is
54909 not very useful for normal files.
54910
54911 * kern/main.c (pupa_set_root_dev): New function.
54912 (pupa_load_normal_mode): Likewise.
54913 (pupa_main): Call those above.
54914
54915 * include/pupa/types.h (pupa_swap_bytes16): Cast the result to
54916 pupa_uint16_t.
54917
54918 * include/pupa/kernel.h (pupa_enter_normal_mode): Removed.
54919
a5ffe966 549202003-01-06 Yoshinori K. Okuji <okuji@enbug.org>
54921
54922 * util/i386/pc/pupa-setup.c: Include pupa/machine/kernel.h.
54923 (setup): Configure the installed partition information and the
54924 dl prefix.
54925
54926 * loader/i386/pc/chainloader.c (my_mod): New variable.
54927 (pupa_chainloader_unload): New function.
54928 (pupa_rescue_cmd_chainloader): Refer itself.
54929 (PUPA_MOD_INIT): Save its own module in MY_MOD.
54930
54931 * kern/i386/pc/startup.S (install_partition): Removed.
54932 (version_string): Likewise.
54933 (config_file): Likewise.
54934 (pupa_install_dos_part): New variable.
54935 (pupa_install_bsd_part): Likewise.
54936 (pupa_prefix): Likewise.
54937 (pupa_chainloader_real_boot): Call pupa_dl_unload_all.
54938
54939 * kern/i386/pc/init.c: Include pupa/machine/kernel.h, pupa/dl.h
54940 and pupa/misc.h.
54941 (make_install_device): New function.
54942 (pupa_machine_init): Set the dl prefix.
54943
54944 * kern/rescue.c: Include pupa/rescue.h and pupa/dl.h.
54945 (buf): Renamed to ...
54946 (linebuf): ... this.
54947 (pupa_rescue_cmd_prefix): New function.
54948 (pupa_rescue_cmd_insmod): Likewise.
54949 (pupa_rescue_cmd_rmmod): Likewise.
54950 (pupa_rescue_cmd_lsmod): Likewise.
54951 (pupa_enter_rescue_mode): Register new commands: prefix, insmod,
54952 rmmod and lsmod.
54953
54954 * kern/mm.c (pupa_memalign): If failed even after invalidating
54955 disk caches, unload unneeded modules and retry.
54956
54957 * kern/misc.c (pupa_memmove): New function.
54958 (pupa_memcpy): Removed.
54959 (pupa_strcpy): New function.
54960 (pupa_itoa): Made static.
54961
54962 * kern/dl.c (pupa_dl_iterate): New function.
54963 (pupa_dl_ref): Likewise.
54964 (pupa_dl_unref): Likewise.
54965 (pupa_dl_unload): Return if succeeded or not.
54966 (pupa_dl_unload_unneeded): New function.
54967 (pupa_dl_unload_all): Likewise.
54968 (pupa_dl_init): Renamed to ...
54969 (pupa_dl_set_prefix): ... this.
54970 (pupa_dl_get_prefix): New function.
54971
54972 * include/pupa/i386/pc/kernel.h: Include pupa/types.h.
54973 (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): New macro.
54974 (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
54975 (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
54976 (pupa_install_dos_part): Declared.
54977 (pupa_install_bsd_part): Likewise.
54978 (pupa_prefix): Likewise.
54979 (pupa_boot_drive): Likewise.
54980
54981 * include/pupa/types.h: Fix a typo.
54982
54983 * include/pupa/misc.h (pupa_memcpy): New macro. Just an alias to
54984 pupa_memmove.
54985 (pupa_memmove): Declared.
54986 (pupa_strcpy): Likewise.
54987
54988 * include/pupa/dl.h (PUPA_MOD_INIT): Change the prototype. Now
54989 pupa_mod_init takes one argument, its own module.
54990 (pupa_dl_unload_unneeded): Declared.
54991 (pupa_dl_unload_all): Likewise.
54992 (pupa_dl_ref): Likewise.
54993 (pupa_dl_unref): Likewise.
54994 (pupa_dl_iterate): Likewise.
54995 (pupa_dl_init): Renamed to ...
54996 (pupa_dl_set_prefix): ... this.
54997 (pupa_dl_get_prefix): Declared.
54998
54999 * fs/fat.c [!PUPA_UTIL] (my_mod): New variable.
f19dbdb7 55000 (pupa_fat_dir) [!PUPA_UTIL]: Prevent the fat module from being
a5ffe966 55001 unloaded.
55002 (pupa_fat_open) [!PUPA_UTIL]: Refer itself if succeeded.
55003 (pupa_fat_close) [!PUPA_UTIL]: Unrefer itself.
55004
55005 * configure.ac (tmp_CFLAGS): Added -Wshadow, -Wpointer-arith,
55006 -Wmissing-prototypes, -Wundef and -Wstrict-prototypes.
55007
012d7999 550082003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
55009
55010 * util/i386/pc/pupa-setup.c (setup): Define the internal
55011 function find_first_partition_start at the top level, because GCC
55012 3.0.x cannot compile internal functions in deeper scopes
55013 correctly.
55014 (find_root_device): Use lstat instead of stat.
55015 Don't follow symbolic links.
55016 Fix the path-constructing code.
55017
55018 * util/i386/pc/biosdisk.c [__linux__] (BLKFLSBUF): New macro.
55019 (pupa_util_biosdisk_open) [__linux__]: Get the size of a device
55020 by a BLKGETSIZE ioctl first, because block devices don't fill
55021 the member st_mode of the structure stat on Linux.
55022 [__linux__] (linux_find_partition): Use a temporary buffer
55023 REAL_DEV for the working space. Copy it to DEV before returning.
55024 (open_device) [__linux__]: Call ioctl with BLKFLSBUF to make the
55025 buffer cache consistent.
55026 (get_os_disk) [__linux__]: Use the length 5 instead of 4 for
55027 strncmp. The previous value was merely wrong.
55028 (pupa_util_biosdisk_get_pupa_dev): Use stat instead of lstat.
55029
55030 * fs/fat.c (pupa_fat_read_data): Shift 4 instead of 12 when the
55031 FAT size is 12. The previous value was merely wrong.
55032
55033 * kern/main.c (pupa_main): Don't split the starting message from
55034 newlines.
55035
55036 * kern/term.c (pupa_putchar): Put CR after LF instead of before
55037 LF, because BIOS goes crazy about character attributes in this
55038 case.
55039
1cc73a62 550402003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
55041
55042 * include/i386/pc/util/biosdisk.h: New file.
55043 * util/i386/pc/biosdisk.c: Likewise.
55044 * util/i386/pc/pupa-setup.c: Likewise.
f19dbdb7 55045
1cc73a62 55046 * Makefile.in (INCLUDE_DISTFILES): Added
55047 include/pupa/i386/pc/util/biosdisk.h.
55048 (UTIL_DISTFILES): Added biosdisk.c and pupa-setup.c under the
55049 directory util/i386/pc.
55050 (install-local): Added a rule for sbin_UTILITIES.
55051 (uninstall): Likewise.
55052
55053 * util/i386/pc/pupa-mkimage.c (usage): Fix a typo in the doc.
55054
55055 * util/misc.c (xrealloc): New function.
55056 (pupa_malloc): Likewise.
55057 (pupa_free): Likewise.
55058 (pupa_realloc): Likewise.
55059 (pupa_stop): Likewise.
55060 (pupa_putchar): Likewise.
55061
55062 * kern/disk.c (pupa_disk_read): Prevent L from underflowing.
55063
55064 * include/pupa/util/misc.h (xrealloc): Declared.
55065
55066 * include/pupa/i386/pc/boot.h (PUPA_BOOT_MACHINE_BPB_START): New
55067 macro.
55068 (PUPA_BOOT_MACHINE_BPBEND): Renamed to ...
55069 (PUPA_BOOT_MACHINE_BPB_END): ... this.
55070
55071 * include/pupa/fs.h [PUPA_UTIL] (pupa_fat_init): Declared.
55072 [PUPA_UTIL] (pupa_fat_fini): Likewise.
55073
55074 * fs/fat.c [PUPA_UTIL] (pupa_fat_init): Defined. Maybe a better
55075 way should be implemented.
55076 [PUPA_UTIL] (pupa_fat_fini): Likewise.
55077
55078 * disk/i386/pc/biosdisk.c (pupa_biosdisk_call_hook): Increase
55079 the size of NAME for safety.
55080 (pupa_biosdisk_iterate): Search hard disks to 0x90 instead of
55081 0x88.
55082
55083 * conf/i386-pc.rmk (sbin_UTILITIES): New variable.
55084 (pupa_setup_SOURCES): Likewise.
55085
55086 * genmk.rb (Utility#rule): Add $(BUILD_CFLAGS) into the rules.
55087
08b70fe8 550882002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
55089
55090 * kern/i386/pc/startup.S (push_get_mmap_entry): Revert to a
55091 bunch of pushl's from pusha, because this destroys the return
55092 value.
55093
62ddcc8f 550942002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
55095
55096 Use -mrtd and -mregparm=3 to reduce the generated code sizes.
55097 This means that any missing prototypes could be fatal. Also, you
55098 must take care when writing assembly code. See the comments at
55099 the beginning of startup.S, for more details.
f19dbdb7 55100
62ddcc8f 55101 * kern/i386/pc/startup.S (pupa_halt): Modified for the new
55102 compilation mechanism.
55103 (pupa_chainloader_real_boot): Likewise.
55104 (pupa_biosdisk_rw_int13_extensions): Likewise.
55105 (pupa_biosdisk_rw_standard): Likewise.
55106 (pupa_biosdisk_check_int13_extensions): Likewise.
55107 (pupa_biosdisk_get_diskinfo_int13_extensions): Likewise.
55108 (pupa_biosdisk_get_diskinfo_standard): Likewise.
55109 (pupa_get_memsize): Likewise.
55110 (pupa_get_mmap_entry): Likewise.
55111 (pupa_console_putchar): Likewise.
55112 (pupa_console_setcursor): Likewise.
55113 (pupa_getrtsecs): Use pushl instead of push.
55114
55115 * kern/i386/pc/init.c (pupa_machine_init): Use the scratch
55116 memory instead of the stack for a mmap entry, because some
55117 BIOSes may ignore the maximum size and overflow.
55118
55119 * conf/i386-pc.rmk (COMMON_CFLAGS): Added -mrtd and -mregparm=3.
55120
55121 * genmk.rb (PModule#rule): Compile automatically generated
55122 sources with module-specific CFLAGS as well as other sources.
55123
9962ed99 551242002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
55125
55126 * configure.ac: Check ld.
55127 Replace CFLAGS and CPPFLAGS with BUILD_CFLAGS and BUILD_CPPFLAGS
55128 respectively, before checking endianness and sizes.
55129
55130 * Makefile.in (LD): New variable.
f19dbdb7 55131
abdfc3c5 551322002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
55133
55134 * Makefile.in (BUILD_CC): CC -> BUILD_CC.
55135
6a161fa9 551362002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
55137
55138 * Changelog: New file.
55139